From 05aaefcd14f655e7514ffd6e1ae4d4249529b8ea Mon Sep 17 00:00:00 2001 From: lijingjia Date: Sun, 29 Sep 2024 11:41:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E9=80=BB=E8=BE=91=E8=BF=AD?= =?UTF-8?q?=E4=BB=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Print/index.vue | 14 +++++++++++++- src/views/operation/seaexport/detail/index.vue | 16 +++++++++++++--- src/views/taskmanage/index.vue | 13 ++++++++++++- 3 files changed, 38 insertions(+), 5 deletions(-) diff --git a/src/components/Print/index.vue b/src/components/Print/index.vue index 77f892ef..ac8e1d38 100644 --- a/src/components/Print/index.vue +++ b/src/components/Print/index.vue @@ -107,9 +107,17 @@ // 附件原始数据 const sourceData = ref([]) // 组件初始化接口 (接收打印的数据list) + const ids = ref() const init = (v) => { visible.value = true - if (v) jsonDataStr.value = JSON.stringify(v) + if (v) { + // 储存选中的ids + ids.value = v.map(item => { + return item.id + }) + ids.value = String(ids.value) + jsonDataStr.value = JSON.stringify(v) + } loading.value = true const postData = { pageCondition: { @@ -163,6 +171,10 @@ templateCode: item.templateCode, tenantId: userStore.getUserInfo.tenantId } + // 费用打印:paramJsonStr 需要传窜中的费用的id集合 + if (item.templateCode == 'fee') { + postData.paramJsonStr = JSON.stringify({ id: ids.value}) + } loading.value = true GetOpenSqlPrintInfo(postData).then(res => { loading.value = false diff --git a/src/views/operation/seaexport/detail/index.vue b/src/views/operation/seaexport/detail/index.vue index f2d0ae38..d21562f6 100644 --- a/src/views/operation/seaexport/detail/index.vue +++ b/src/views/operation/seaexport/detail/index.vue @@ -33,6 +33,7 @@ > - + {{ completeText }} @@ -280,7 +282,7 @@ return '报关完成' } else if (status == 'WAIT_AMS') { return '发送AMS' - } else if (status == 'ORDER_AUDIT_REJECTED') { + } else if (status == 'ORDER_AUDIT_REJECTED' || status == 'WAIT_SI_REJECTED') { return '重新提交' } else { return '完成任务' @@ -907,6 +909,14 @@ }).then(res => { tabStore.closeTabByKey(fullPath, router) }) + } else if (status == 'WAIT_SI_REJECT') { + SubmitAudit({ + businessId: id.value, + businessType: 1, + taskTypeName: 'WAIT_SI' + }).then(res => { + tabStore.closeTabByKey(fullPath, router) + }) } else { const postData = { businessId: id.value, @@ -965,7 +975,7 @@ overflow-x: hidden; } .approve-main-scorll { - height: calc(100vh - 115px); + height: calc(100vh - 155px); } } .line { diff --git a/src/views/taskmanage/index.vue b/src/views/taskmanage/index.vue index cb8b73f5..8727a492 100644 --- a/src/views/taskmanage/index.vue +++ b/src/views/taskmanage/index.vue @@ -435,7 +435,9 @@ import { useRoute, useRouter } from 'vue-router' import { useOptionsStore } from '/@/store/modules/options' import { BasicForm, useForm } from '/@/components/Form/index' + import { useUserStore } from '/@/store/modules/user' import taskCustom from './taskList/taskCustom.vue' + const userStore = useUserStore() const optionsStore = useOptionsStore() const { createMessage } = useMessage() const route = useRoute() @@ -987,6 +989,14 @@ console.log('handleResetFunc') } function handleEdit(data) { + // 当前用户id + const userid = userStore.getUserInfo.userId + let statusFlag = false + if (data?.recvUserList && data.recvUserList.length) { + data.recvUserList.forEach(item => { + if (item.recvUserId == userid) statusFlag = true + }) + } switch (data.tasK_TYPE) { case 'VGM_COMPARE': // VGM比对查看页面 @@ -1169,6 +1179,7 @@ case 'WAIT_Insurance': case 'ORDER_AUDIT_REJECTED': case 'RETURN_CABIN_AUDIT': + case 'WAIT_SI_REJECTED': // 跳转到订舱详情查看页面 go({ path: '/taskmanage/booking-approval', @@ -1176,7 +1187,7 @@ id: data.ouT_BS_NO, source: data.tasK_USER_STATUS, taskId: data.id, - status: data.tasK_TYPE, + status: statusFlag ? data.tasK_TYPE : 'n', }, }) break