Commit 3564c808 by yangchen

拉去develop分支

parents a58b4e61 283c60a7
module.exports = {
root: true,
env: {
node: true
},
'extends': [
'plugin:vue/essential',
'eslint:recommended'
],
parserOptions: {
parser: 'babel-eslint'
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-unused-vars': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'vue/no-unused-components': 'off',
'vue/no-side-effects-in-computed-properties': 'off',
// 'vue/require-v-for-key': 'off',
'vue/no-unused-vars': 'off',
'no-prototype-builtins': 'off',
'no-extra-semi': 'off',
}
}
...@@ -155,6 +155,14 @@ export default { ...@@ -155,6 +155,14 @@ export default {
? bill.getGlobalParam(BILL_GLOBAL_PARAM.APPROVAL_COMMENT).suggestions ? bill.getGlobalParam(BILL_GLOBAL_PARAM.APPROVAL_COMMENT).suggestions
: ''; : '';
if (!comments) {
comments = '同意'
bill.setGlobalParam(BILL_GLOBAL_PARAM.APPROVAL_COMMENT, {
taskId,
suggestions: comments
})
}
const fn = () => { const fn = () => {
saveBill(bill, param).then(() => { saveBill(bill, param).then(() => {
GMS.$http.post('/rbc/workflow/approve/completed/' + taskId + '?result=1&comments=' + comments).then( GMS.$http.post('/rbc/workflow/approve/completed/' + taskId + '?result=1&comments=' + comments).then(
......
...@@ -51,10 +51,22 @@ export default { ...@@ -51,10 +51,22 @@ export default {
} }
}, },
approval: function(bill, param){ approval: function(bill, param){
if (!bill.getGlobalParam(BILL_GLOBAL_PARAM.APPROVAL_COMMENT) || !bill.getGlobalParam(BILL_GLOBAL_PARAM.APPROVAL_COMMENT).taskId) { if (
!bill.getGlobalParam(BILL_GLOBAL_PARAM.APPROVAL_COMMENT)
|| !bill.getGlobalParam(BILL_GLOBAL_PARAM.APPROVAL_COMMENT).taskId
) {
GMS.$hideContainer.$Message.error('请配置审批轨迹') GMS.$hideContainer.$Message.error('请配置审批轨迹')
return return
} }
if (
!bill.getGlobalParam(BILL_GLOBAL_PARAM.APPROVAL_COMMENT)
|| !bill.getGlobalParam(BILL_GLOBAL_PARAM.APPROVAL_COMMENT).suggestions
) {
GMS.$hideContainer.$Message.error('请输入审批意见')
bill.setControlsSate(param["_control_name_"], "enable", true)
return
}
let taskId = bill.getGlobalParam(BILL_GLOBAL_PARAM.APPROVAL_COMMENT).taskId; let taskId = bill.getGlobalParam(BILL_GLOBAL_PARAM.APPROVAL_COMMENT).taskId;
let comments = let comments =
bill.getGlobalParam(BILL_GLOBAL_PARAM.APPROVAL_COMMENT).suggestions bill.getGlobalParam(BILL_GLOBAL_PARAM.APPROVAL_COMMENT).suggestions
......
...@@ -52,7 +52,7 @@ export const showSignModal = (bill, param, nodeName) => { ...@@ -52,7 +52,7 @@ export const showSignModal = (bill, param, nodeName) => {
const approvalComment = const approvalComment =
bill.getGlobalParam(BILL_GLOBAL_PARAM.APPROVAL_COMMENT) bill.getGlobalParam(BILL_GLOBAL_PARAM.APPROVAL_COMMENT)
&& bill.getGlobalParam(BILL_GLOBAL_PARAM.APPROVAL_COMMENT).suggestions && bill.getGlobalParam(BILL_GLOBAL_PARAM.APPROVAL_COMMENT).suggestions
|| '' || '提交'
const subDataObj = bill.getSubData(SIGNATURE_TABLE_NAME) const subDataObj = bill.getSubData(SIGNATURE_TABLE_NAME)
const tableLength = subDataObj.length || 0 const tableLength = subDataObj.length || 0
const subDataIndex = tableLength - 1 const subDataIndex = tableLength - 1
......
...@@ -57,7 +57,10 @@ ...@@ -57,7 +57,10 @@
</div> </div>
</div> </div>
<div v-if="isCurrentStep(step, k) || step.state == 2">{{formatStepTime(step)}}</div> <div v-if="isCurrentStep(step, k) || step.state == 2">{{formatStepTime(step)}}</div>
<div v-if="step.comments">审批意见:{{step.comments}}</div> <div class="comment" v-if="step.comments">
<div class="label">审批意见:</div>
<div class="text">{{step.comments}}</div>
</div>
<div v-if="step.title" :class="isRejectStep(step) ? 'text-error' : 'text-main'">环节名称: {{step.title}}</div> <div v-if="step.title" :class="isRejectStep(step) ? 'text-error' : 'text-main'">环节名称: {{step.title}}</div>
</div> </div>
</div> </div>
...@@ -172,6 +175,7 @@ export default { ...@@ -172,6 +175,7 @@ export default {
if (step.subTasks && step.subTasks.length) { if (step.subTasks && step.subTasks.length) {
let participants = [] let participants = []
let actualOwnerList = [] let actualOwnerList = []
let commentList = []
let resultFlag = 0 let resultFlag = 0
let rejectFlag = false let rejectFlag = false
for (let task of step.subTasks) { for (let task of step.subTasks) {
...@@ -190,6 +194,9 @@ export default { ...@@ -190,6 +194,9 @@ export default {
actualOwnerList.push(task.actualOwner) actualOwnerList.push(task.actualOwner)
} }
} }
if (task.comments) {
commentList.push(task.comments)
}
const curResult = task.result || 0 const curResult = task.result || 0
resultFlag |= 1 << curResult resultFlag |= 1 << curResult
} }
...@@ -202,6 +209,7 @@ export default { ...@@ -202,6 +209,7 @@ export default {
: 1 : 1
rejectFlag && (step.state = 2) rejectFlag && (step.state = 2)
step.comments = commentList.join(';\n')
step.participants = participants step.participants = participants
step.actualOwner = actualOwnerList.join('、') step.actualOwner = actualOwnerList.join('、')
} }
...@@ -376,6 +384,12 @@ export default { ...@@ -376,6 +384,12 @@ export default {
font-size: 14px; font-size: 14px;
line-height: 20px; line-height: 20px;
} }
.comment {
display: flex;
.text {
white-space: pre-line;
}
}
} }
} }
} }
......
...@@ -134,7 +134,7 @@ export default { ...@@ -134,7 +134,7 @@ export default {
] ]
}, },
"value": "userSelectControl", "value": "userSelectControl",
"path": "资产/通用" "path": "报销/通用"
}, },
{ {
"title": "整数输入", "title": "整数输入",
...@@ -161,7 +161,7 @@ export default { ...@@ -161,7 +161,7 @@ export default {
] ]
}, },
"value": "integerControl", "value": "integerControl",
"path": "资产/通用" "path": "报销/通用"
}, },
{ {
"title": "功能文本框", "title": "功能文本框",
...@@ -185,7 +185,7 @@ export default { ...@@ -185,7 +185,7 @@ export default {
] ]
}, },
"value": "IntroduceInputControl", "value": "IntroduceInputControl",
"path": "资产/通用" "path": "报销/通用"
}, },
{ {
"value": "InputModalControl", "value": "InputModalControl",
...@@ -193,7 +193,7 @@ export default { ...@@ -193,7 +193,7 @@ export default {
"description": "", "description": "",
"discard": false, "discard": false,
"dynamicComponent": 'billForm', "dynamicComponent": 'billForm',
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"config": [ "config": [
{ {
...@@ -329,7 +329,7 @@ export default { ...@@ -329,7 +329,7 @@ export default {
{ {
"value": "ButtonControl", "value": "ButtonControl",
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"initParam": ["config"], "initParam": ["config"],
"config": [ "config": [
...@@ -449,7 +449,7 @@ export default { ...@@ -449,7 +449,7 @@ export default {
"title": "审批意见", "title": "审批意见",
"description": "", "description": "",
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"config": [ "config": [
{ {
...@@ -1384,7 +1384,7 @@ export default { ...@@ -1384,7 +1384,7 @@ export default {
billAction: [ billAction: [
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [ "param": [
{ {
...@@ -1423,7 +1423,7 @@ export default { ...@@ -1423,7 +1423,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [{ "param": [{
"title": "选择单据", "title": "选择单据",
...@@ -1456,7 +1456,7 @@ export default { ...@@ -1456,7 +1456,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [ "param": [
{ {
...@@ -1481,7 +1481,7 @@ export default { ...@@ -1481,7 +1481,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [ "param": [
{ {
...@@ -1606,7 +1606,7 @@ export default { ...@@ -1606,7 +1606,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [{ "param": [{
"key": "detailTableName" "key": "detailTableName"
...@@ -1618,7 +1618,7 @@ export default { ...@@ -1618,7 +1618,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [{ "param": [{
"key": "detailTableName" "key": "detailTableName"
...@@ -1636,7 +1636,7 @@ export default { ...@@ -1636,7 +1636,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [{ "param": [{
"key": "detailTableName" "key": "detailTableName"
...@@ -1659,7 +1659,7 @@ export default { ...@@ -1659,7 +1659,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [{ "param": [{
"isRequired": false, "isRequired": false,
...@@ -1691,7 +1691,7 @@ export default { ...@@ -1691,7 +1691,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [{ "param": [{
"isRequired": false, "isRequired": false,
...@@ -1723,7 +1723,7 @@ export default { ...@@ -1723,7 +1723,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [] "param": []
}, },
...@@ -1732,7 +1732,7 @@ export default { ...@@ -1732,7 +1732,7 @@ export default {
"value": "editAction" "value": "editAction"
}, { }, {
"discard": false, "discard": false,
"path": "单据/草稿", "path": "报销/通用",
"extends": { "extends": {
"param": [ "param": [
{ {
...@@ -1749,7 +1749,7 @@ export default { ...@@ -1749,7 +1749,7 @@ export default {
"btnDisable": "false" "btnDisable": "false"
}, { }, {
"discard": false, "discard": false,
"path": "单据/草稿", "path": "报销/通用",
"extends": { "extends": {
"param": [] "param": []
}, },
...@@ -1760,7 +1760,7 @@ export default { ...@@ -1760,7 +1760,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "单据/草稿", "path": "报销/通用",
"extends": { "extends": {
"param": [ "param": [
] ]
...@@ -1771,7 +1771,7 @@ export default { ...@@ -1771,7 +1771,7 @@ export default {
"btnDisable": "billReadOnly;1;90;91;92" "btnDisable": "billReadOnly;1;90;91;92"
}, { }, {
"discard": false, "discard": false,
"path": "单据/复制单据", "path": "报销/通用",
"extends": { "extends": {
"param": [ "param": [
{ {
...@@ -1859,7 +1859,7 @@ export default { ...@@ -1859,7 +1859,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [{ "param": [{
"key": "detailTableName" "key": "detailTableName"
...@@ -1914,7 +1914,7 @@ export default { ...@@ -1914,7 +1914,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [ "param": [
{ {
...@@ -1938,7 +1938,7 @@ export default { ...@@ -1938,7 +1938,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [ "param": [
] ]
...@@ -1950,7 +1950,7 @@ export default { ...@@ -1950,7 +1950,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [ "param": [
] ]
...@@ -1962,7 +1962,7 @@ export default { ...@@ -1962,7 +1962,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [ "param": [
...@@ -1975,7 +1975,7 @@ export default { ...@@ -1975,7 +1975,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [ "param": [
...@@ -1988,7 +1988,7 @@ export default { ...@@ -1988,7 +1988,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [ "param": [
{ {
...@@ -2005,7 +2005,7 @@ export default { ...@@ -2005,7 +2005,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [ "param": [
...@@ -2018,7 +2018,7 @@ export default { ...@@ -2018,7 +2018,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [] "param": []
}, },
...@@ -2029,15 +2029,9 @@ export default { ...@@ -2029,15 +2029,9 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [ "param": [
// {
// "ref": "bill",
// "type": "metaData",
// "title": "成功跳转页面",
// "key": "viewName"
// },
{ {
"clearable": true, "clearable": true,
"ref": "gams2.bill", "ref": "gams2.bill",
...@@ -2055,7 +2049,27 @@ export default { ...@@ -2055,7 +2049,27 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/工会",
"extends": {
"param": [
{
"clearable": true,
"ref": "gams2.bill",
"type": "select",
"title": "执行动作",
"key": "actions",
"innerRef": "actions"
},
]
},
"description": "",
"title": "财务_同意[GH_agreeAction]",
"value": "GH_agreeAction",
"btnDisable": "billEdit"
},
{
"discard": false,
"path": "报销/通用",
"extends": { "extends": {
"param": [ "param": [
] ]
...@@ -2067,7 +2081,7 @@ export default { ...@@ -2067,7 +2081,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [ "param": [
{ {
...@@ -2089,7 +2103,7 @@ export default { ...@@ -2089,7 +2103,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [ "param": [
...@@ -2102,7 +2116,7 @@ export default { ...@@ -2102,7 +2116,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [ "param": [
// { // {
...@@ -2128,7 +2142,33 @@ export default { ...@@ -2128,7 +2142,33 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/工会",
"extends": {
"param": [
// {
// "ref": "bill",
// "type": "metaData",
// "title": "成功跳转页面",
// "key": "viewName"
// },
{
"clearable": true,
"ref": "gams2.bill",
"type": "select",
"title": "执行动作",
"key": "actions",
"innerRef": "actions"
},
]
},
"description": "",
"title": "财务_驳回[GH_rejectAction]",
"value": "GH_rejectAction",
"btnDisable": "billEdit"
},
{
"discard": false,
"path": "报销/通用",
"extends": { "extends": {
"param": [ "param": [
{ {
...@@ -2152,7 +2192,31 @@ export default { ...@@ -2152,7 +2192,31 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/工会",
"extends": {
"param": [
{
"budgetcontrol": false,
"type": "Boolean",
"title": "启用预算控制",
"key": "budgetcontrol"
},
{
"useSignature": false,
"type": "Boolean",
"title": "电子签章",
"key": "useSignature"
}
]
},
"description": "",
"title": "财务_提交[GH_submitAction]",
"value": "GH_submitAction",
"btnDisable": "billEdit;1;90;92"
},
{
"discard": false,
"path": "报销/通用",
"extends": { "extends": {
"param": [ "param": [
] ]
...@@ -2164,7 +2228,7 @@ export default { ...@@ -2164,7 +2228,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "财务/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [] "param": []
}, },
...@@ -2175,7 +2239,7 @@ export default { ...@@ -2175,7 +2239,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "财务/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [] "param": []
}, },
...@@ -2186,7 +2250,7 @@ export default { ...@@ -2186,7 +2250,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "财务/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [] "param": []
}, },
...@@ -2197,7 +2261,7 @@ export default { ...@@ -2197,7 +2261,7 @@ export default {
}, },
{ {
"discard": false, "discard": false,
"path": "财务/通用", "path": "报销/通用",
"extends": { "extends": {
"param": [] "param": []
}, },
...@@ -5053,7 +5117,7 @@ export default { ...@@ -5053,7 +5117,7 @@ export default {
"title": "rbc查询日期组件", "title": "rbc查询日期组件",
"type": "RANGE", "type": "RANGE",
"discard": false, "discard": false,
"path": "资产/通用", "path": "报销/通用",
"description": "在高级查询条件中配置的查询日期组件", "description": "在高级查询条件中配置的查询日期组件",
"extends": { "extends": {
"config": { "config": {
......
...@@ -42,9 +42,9 @@ import saveActionBXD from './actions/saveActionBXD'; ...@@ -42,9 +42,9 @@ import saveActionBXD from './actions/saveActionBXD';
import lincaoAddView from './actions/lincaoAddView'; import lincaoAddView from './actions/lincaoAddView';
import CW_verifySignature from './actions/verifySignature'; import CW_verifySignature from './actions/verifySignature';
import lincaoReadView from './actions/lincaoReadView'; import lincaoReadView from './actions/lincaoReadView';
import GH_agreeAction from './actions/labourUnion/gh_agreeAction'; import GH_agreeAction from './actions/labourUnion/gh_agreeAction.js';
import GH_rejectAction from './actions/labourUnion/gh_rejectAction'; import GH_rejectAction from './actions/labourUnion/gh_rejectAction.js';
import GH_submitAction from './actions/labourUnion/gh_submitAction'; import GH_submitAction from './actions/labourUnion/gh_submitAction.js';
//queryAction //queryAction
import leafletGenerationAction from './query-actions/leafletGenerationAction.js' import leafletGenerationAction from './query-actions/leafletGenerationAction.js'
......
...@@ -102,3 +102,18 @@ export const loadScript = (url) => { ...@@ -102,3 +102,18 @@ export const loadScript = (url) => {
document.head.appendChild(scriptElement) document.head.appendChild(scriptElement)
}) })
} }
export const formatCurrency = (number) => {
const rawNumber = number
try {
number = Number(number).toFixed(2)
return isNaN(number)
? rawNumber
: (number + '').replace(/\d{1,3}(?=(\d{3})+(\.))/g, (match) => {
return match + ',';
})
} catch (error) {
return rawNumber
}
}
...@@ -20,9 +20,14 @@ export default { ...@@ -20,9 +20,14 @@ export default {
`/yxgl/deleteImage`, `/yxgl/deleteImage`,
[...this.selectedRows], [...this.selectedRows],
).then((res) => { ).then((res) => {
if (res.data && res.data.code != 0) { if (res.data) {
if (res.data.code != 0) {
this.$Message.error(res.data.msg) this.$Message.error(res.data.msg)
} }
else {
this.$Message.success('删除成功')
}
}
}).catch(() => { }).catch(() => {
this.$Message.warning('删除失败'); this.$Message.warning('删除失败');
}).finally(() => { }).finally(() => {
......
...@@ -28,9 +28,14 @@ export default { ...@@ -28,9 +28,14 @@ export default {
`/yxgl/ocr`, `/yxgl/ocr`,
{ ...this.selectedRows[0] } { ...this.selectedRows[0] }
).then((res) => { ).then((res) => {
if (res.data && res.data.code != 0) { if (res.data) {
if (res.data.code != 0) {
this.$Message.error(res.data.msg) this.$Message.error(res.data.msg)
} }
else {
this.$Message.success(res.data.msg)
}
}
}).finally(() => { }).finally(() => {
this.$emit('after-click') this.$emit('after-click')
}) })
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
:on-change="handleFileChange" :on-change="handleFileChange"
:http-request="handleClick" :http-request="handleClick"
:show-file-list="false" :show-file-list="false"
:multiple="true"
> >
<Button size="small" type="text" @click="handleClick">票据导入</Button> <Button size="small" type="text" @click="handleClick">票据导入</Button>
</el-upload> </el-upload>
...@@ -24,9 +25,6 @@ export default { ...@@ -24,9 +25,6 @@ export default {
} }
}, },
computed: { computed: {
baseUrl() {
return'http://10.2.9.28:8091'
}
}, },
methods: { methods: {
handleFileChange(file) { handleFileChange(file) {
......
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
size="small" size="small"
v-model="imageInfo[item.key]" v-model="imageInfo[item.key]"
></Input> ></Input>
<span v-else-if="item.type == 'currency'">{{ formatCurrency(imageInfo[item.key]) }}</span>
<span v-else>{{ imageInfo[item.key] }}</span> <span v-else>{{ imageInfo[item.key] }}</span>
</div> </div>
...@@ -66,6 +67,8 @@ ...@@ -66,6 +67,8 @@
<script> <script>
import moment from 'moment' import moment from 'moment'
import { formatCurrency } from '../../../../@gms/gms-plugin-billexpand/src/utils'
export default { export default {
props: { props: {
isInfoEdit: { isInfoEdit: {
...@@ -166,14 +169,17 @@ export default { ...@@ -166,14 +169,17 @@ export default {
noTaxMoney: { noTaxMoney: {
label: '金额', label: '金额',
key: 'noTaxMoney', key: 'noTaxMoney',
type: 'currency',
}, },
taxMoney: { taxMoney: {
label: '税额', label: '税额',
key: 'taxMoney', key: 'taxMoney',
type: 'currency',
}, },
totalMoney: { totalMoney: {
label: '价税合计', label: '价税合计',
key: 'totalMoney', key: 'totalMoney',
type: 'currency',
}, },
invoiceCheckCode: { invoiceCheckCode: {
label: '校验码', label: '校验码',
...@@ -217,6 +223,7 @@ export default { ...@@ -217,6 +223,7 @@ export default {
trainMoney: { trainMoney: {
label: '火车票总金额', label: '火车票总金额',
key: 'trainMoney', key: 'trainMoney',
type: 'currency',
}, },
seatType: { seatType: {
label: '坐位类别', label: '坐位类别',
...@@ -250,11 +257,12 @@ export default { ...@@ -250,11 +257,12 @@ export default {
fareMoney: { fareMoney: {
label: '票价', label: '票价',
key: 'fareMoney', key: 'fareMoney',
type: 'money', type: 'currency',
}, },
fuelsurCharge: { fuelsurCharge: {
label: '燃油附加费', label: '燃油附加费',
key: 'fuelsurCharge', key: 'fuelsurCharge',
type: 'currency',
}, },
caacDevelopmentFund: { caacDevelopmentFund: {
label: '民航发展基金', label: '民航发展基金',
...@@ -263,6 +271,7 @@ export default { ...@@ -263,6 +271,7 @@ export default {
insurance: { insurance: {
label: '保险费', label: '保险费',
key: 'insurance', key: 'insurance',
type: 'currency',
}, },
}, },
itemTypeMap: { itemTypeMap: {
...@@ -409,6 +418,9 @@ export default { ...@@ -409,6 +418,9 @@ export default {
} }
}, },
methods: { methods: {
formatCurrency(number) {
return formatCurrency(number)
},
formatDate(date) { formatDate(date) {
return moment(date).format('YYYY-MM-DD') return moment(date).format('YYYY-MM-DD')
}, },
...@@ -423,7 +435,6 @@ export default { ...@@ -423,7 +435,6 @@ export default {
.invoice-image-info-content { .invoice-image-info-content {
position: relative; position: relative;
overflow: hidden; overflow: hidden;
height: 265px;
overflow-y: scroll; overflow-y: scroll;
form { form {
.ivu-row { .ivu-row {
......
...@@ -69,11 +69,16 @@ export default { ...@@ -69,11 +69,16 @@ export default {
`/yxgl/verification`, `/yxgl/verification`,
{ ...this.imageInfo } { ...this.imageInfo }
).then((res) => { ).then((res) => {
if (res.data && res.data.code != 0) { if (res.data) {
if (res.data.code != 0) {
this.$Message.error(res.data.msg) this.$Message.error(res.data.msg)
} }
else {
this.$Message.success(res.data.msg)
}
}
}).finally(() => { }).finally(() => {
this.queryImageInfo() this.queryImageInfo(this.tabKey)
}) })
}, },
handleSave() { handleSave() {
...@@ -85,7 +90,7 @@ export default { ...@@ -85,7 +90,7 @@ export default {
this.queryImageInfo() this.queryImageInfo()
}) })
}, },
queryImageInfo() { queryImageInfo(tabKey = 0) {
this.loading = true this.loading = true
window.GMS.$http.post( window.GMS.$http.post(
`/yxgl/selectDetails`, `/yxgl/selectDetails`,
...@@ -97,7 +102,7 @@ export default { ...@@ -97,7 +102,7 @@ export default {
label: `发票${index + 1}`, label: `发票${index + 1}`,
value: index, value: index,
})) }))
this.tabKey = 0 this.tabKey = tabKey
this.imageInfo = { ...(res?.data?.rows?.[this.tabKey] || {}) } this.imageInfo = { ...(res?.data?.rows?.[this.tabKey] || {}) }
this.$emit('load-info', this.imageInfoList) this.$emit('load-info', this.imageInfoList)
}) })
...@@ -124,7 +129,7 @@ export default { ...@@ -124,7 +129,7 @@ export default {
content: ""; content: "";
width: 3px; width: 3px;
height: 16px; height: 16px;
background: #4bc0c6; background: #005791;
} }
.title { .title {
margin-left: 12px; margin-left: 12px;
......
...@@ -57,7 +57,7 @@ export default { ...@@ -57,7 +57,7 @@ export default {
font-weight: 400; font-weight: 400;
line-height: 20px; line-height: 20px;
font-weight: 500; font-weight: 500;
color: #03A4AD; color: #005791;
} }
} }
} }
......
...@@ -17,7 +17,18 @@ ...@@ -17,7 +17,18 @@
{{row.sourceType == 1 ? '移动端' : 'PC端'}} {{row.sourceType == 1 ? '移动端' : 'PC端'}}
</template> </template>
<template slot-scope="{ row }" slot="taskType"> <template slot-scope="{ row }" slot="taskType">
{{row.taskType == 0 ? '识别失败' : row.taskType == 1 ? '识别成功' : '未识别'}} {{
row.taskType == 0
? '识别失败'
: row.taskType == 1
? '识别成功'
: row.taskType == 2
? '无需识别'
: '未识别'
}}
</template>
<template slot-scope="{ row }" slot="createTime">
{{formatTime(row.createTime)}}
</template> </template>
</Table> </Table>
<div class="pagination"> <div class="pagination">
...@@ -51,6 +62,7 @@ ...@@ -51,6 +62,7 @@
</template> </template>
<script> <script>
import moment from 'moment'
import ImageTab from './image-tab.vue' import ImageTab from './image-tab.vue'
import ImageInfo from './image-info.vue' import ImageInfo from './image-info.vue'
import { getImgUrl, verificationTypeList } from '../utils' import { getImgUrl, verificationTypeList } from '../utils'
...@@ -113,11 +125,11 @@ export default { ...@@ -113,11 +125,11 @@ export default {
}, },
{ {
title: '文件名称', title: '文件名称',
key: 'imageFileName', key: 'customName',
}, },
{ {
title: '上传时间', title: '上传时间',
key: 'createTime', slot: 'createTime',
} }
], ],
tableData: [ tableData: [
...@@ -160,6 +172,9 @@ export default { ...@@ -160,6 +172,9 @@ export default {
} }
}, },
methods: { methods: {
formatTime(str) {
return moment(str).format('YYYY-MM-DD HH:mm:ss')
},
viewImage() { viewImage() {
const imageId = this.currentSelection[0].id const imageId = this.currentSelection[0].id
const yearFlag = this.currentSelection[0].yearFlag const yearFlag = this.currentSelection[0].yearFlag
......
<template> <template>
<div class="main"> <div class="main">
<Toolbar> <Toolbar>
<UploadButton @after-click="queryImageInfo" /> <UploadButton @after-click="queryImageInfo" />
<DeleteButton :selectedRows="currentSelection" @after-click="queryImageInfo" /> <DeleteButton :selectedRows="currentSelection" @after-click="queryImageInfo" />
<EditDescriptionButton v-if="mode == 0" :selectedRows="currentSelection" @after-click="queryImageInfo" /> <EditDescriptionButton v-if="mode == 0" :selectedRows="currentSelection" @after-click="queryImageInfo" />
...@@ -9,7 +8,7 @@ ...@@ -9,7 +8,7 @@
<TransmitButton v-if="mode == 0" :selectedRows="currentSelection" @after-click="queryImageInfo" /> <TransmitButton v-if="mode == 0" :selectedRows="currentSelection" @after-click="queryImageInfo" />
<TransmitTrackButton v-if="mode == 0" :selectedRows="currentSelection" /> <TransmitTrackButton v-if="mode == 0" :selectedRows="currentSelection" />
</Toolbar> </Toolbar>
<SearchBar @search="handleSearch" /> <SearchBar style="margin-top: 32px" @search="handleSearch" />
<div class="image-table-wrapper"> <div class="image-table-wrapper">
<ImageTable :mode="mode" :searchParams="searchParams" ref="imageTable" @selectionChange="handleSelectionChange" /> <ImageTable :mode="mode" :searchParams="searchParams" ref="imageTable" @selectionChange="handleSelectionChange" />
</div> </div>
...@@ -75,14 +74,12 @@ export default { ...@@ -75,14 +74,12 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.main { .main {
width: 100%; width: 100%;
height: 100%;
background-color: white; background-color: white;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
position: relative;
.image-table-wrapper { .image-table-wrapper {
flex: 1;
width: 100%; width: 100%;
height: 850px;
padding: 12px; padding: 12px;
background-color: #F8F8F8; background-color: #F8F8F8;
} }
......
...@@ -7,14 +7,20 @@ ...@@ -7,14 +7,20 @@
:value="dateRange" :value="dateRange"
@on-change="dateRange = $event" @on-change="dateRange = $event"
></DatePicker> ></DatePicker>
<div class="margin-left-5"></div>
<span class="search-bar-label">数据来源:</span> <span class="search-bar-label">数据来源:</span>
<Select v-model="searchParam.sourceType" style="width:200px" clearable> <Select v-model="searchParam.sourceType" style="width:200px" clearable>
<Option v-for="item in sourceTypeOptions" :value="item.value" :key="item.value">{{ item.label }}</Option> <Option v-for="item in sourceTypeOptions" :value="item.value" :key="item.value">{{ item.label }}</Option>
</Select> </Select>
<div class="margin-left-5"></div>
<span class="search-bar-label">识别任务状态:</span> <span class="search-bar-label">识别任务状态:</span>
<Select v-model="searchParam.taskType" style="width:200px" clearable> <Select v-model="searchParam.taskType" style="width:200px" clearable>
<Option v-for="item in taskTypeOptions" :value="item.value" :key="item.value">{{ item.label }}</Option> <Option v-for="item in taskTypeOptions" :value="item.value" :key="item.value">{{ item.label }}</Option>
</Select> </Select>
<div class="margin-left-5"></div>
<Button size="small" ghost type="primary" @click="handleSearch">查询</Button> <Button size="small" ghost type="primary" @click="handleSearch">查询</Button>
<Button size="small" @click="resetSearch">重置</Button> <Button size="small" @click="resetSearch">重置</Button>
</div> </div>
...@@ -46,8 +52,8 @@ export default { ...@@ -46,8 +52,8 @@ export default {
label: '识别成功', label: '识别成功',
}, },
{ {
value: 2, value: 3,
label: '识别', label: '识别',
}, },
], ],
searchParam: {}, searchParam: {},
...@@ -85,6 +91,9 @@ export default { ...@@ -85,6 +91,9 @@ export default {
button { button {
margin-right: 10px; margin-right: 10px;
} }
.margin-left-5 {
margin-left: 10px;
}
.search-bar-label { .search-bar-label {
height: 17px; height: 17px;
font-size: 12px; font-size: 12px;
...@@ -92,15 +101,5 @@ export default { ...@@ -92,15 +101,5 @@ export default {
color: #888888; color: #888888;
line-height: 17px; line-height: 17px;
} }
.ivu-date-picker {
input {
border: none;
}
}
.ivu-select {
.ivu-select-selection {
border: none;
}
}
} }
</style> </style>
\ No newline at end of file
...@@ -12,7 +12,11 @@ export default { ...@@ -12,7 +12,11 @@ export default {
} }
return h( return h(
'div', 'div',
{ attrs: { class: 'toolbar-wrapper' } }, {
attrs: {
class: `toolbar-wrapper ${'toolbar-wrapper-fixed'}`
}
},
children, children,
) )
}, },
...@@ -23,9 +27,12 @@ export default { ...@@ -23,9 +27,12 @@ export default {
.toolbar-wrapper { .toolbar-wrapper {
padding: 0 16px; padding: 0 16px;
height: 32px; height: 32px;
width: 100%;
background-color: white;
border-bottom: 1px solid #DDD; border-bottom: 1px solid #DDD;
display: flex; display: flex;
align-items: center; align-items: center;
z-index: 999;
.divider { .divider {
margin: 0 16px; margin: 0 16px;
width: 1px; width: 1px;
...@@ -34,4 +41,8 @@ export default { ...@@ -34,4 +41,8 @@ export default {
} }
} }
.toolbar-wrapper-fixed {
position: fixed;
}
</style> </style>
\ No newline at end of file
...@@ -11,6 +11,7 @@ export const verificationTypeList = [ ...@@ -11,6 +11,7 @@ export const verificationTypeList = [
'00103', '00103',
'002', '002',
'00104', '00104',
'008',
] ]
export const getImgUrl = (objId, yearFlag) => { export const getImgUrl = (objId, yearFlag) => {
......
...@@ -253,12 +253,14 @@ export default { ...@@ -253,12 +253,14 @@ export default {
bgImgCode bgImgCode
? this.getImgUrl(bgImgCode).then((url) => { ? this.getImgUrl(bgImgCode).then((url) => {
this.loginImageBg = url this.loginImageBg = url
}).finally(() => {
this.imgLoading -= 1 this.imgLoading -= 1
}) })
: this.imgLoading -= 1 : this.imgLoading -= 1
iconCode iconCode
? this.getImgUrl(iconCode).then((url) => { ? this.getImgUrl(iconCode).then((url) => {
this.loginIcon = url this.loginIcon = url
}).finally(() => {
this.imgLoading -= 1 this.imgLoading -= 1
}) })
: this.imgLoading -= 1 : this.imgLoading -= 1
...@@ -267,6 +269,7 @@ export default { ...@@ -267,6 +269,7 @@ export default {
boxImgCode boxImgCode
? this.getImgUrl(boxImgCode).then((url) => { ? this.getImgUrl(boxImgCode).then((url) => {
this.boxImgUrl = url this.boxImgUrl = url
}).finally(() => {
this.imgLoading -= 1 this.imgLoading -= 1
}) })
: this.imgLoading -= 1 : this.imgLoading -= 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment