打印逻辑迭代

szh-new
lijingjia 2 months ago
parent f4c36dc26b
commit 05aaefcd14

@ -107,9 +107,17 @@
// //
const sourceData = ref([]) const sourceData = ref([])
// (list) // (list)
const ids = ref()
const init = (v) => { const init = (v) => {
visible.value = true 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 loading.value = true
const postData = { const postData = {
pageCondition: { pageCondition: {
@ -163,6 +171,10 @@
templateCode: item.templateCode, templateCode: item.templateCode,
tenantId: userStore.getUserInfo.tenantId tenantId: userStore.getUserInfo.tenantId
} }
// paramJsonStr id
if (item.templateCode == 'fee') {
postData.paramJsonStr = JSON.stringify({ id: ids.value})
}
loading.value = true loading.value = true
GetOpenSqlPrintInfo(postData).then(res => { GetOpenSqlPrintInfo(postData).then(res => {
loading.value = false loading.value = false

@ -33,6 +33,7 @@
></ActionBar> ></ActionBar>
<!-- 操作按钮组 --> <!-- 操作按钮组 -->
<operationArea <operationArea
v-if="route.query.status != 'n'"
:id="id" :id="id"
:details="bookingDetails" :details="bookingDetails"
:inChildLoading="inChildLoading" :inChildLoading="inChildLoading"
@ -95,11 +96,12 @@
rejectText="驳回任务" rejectText="驳回任务"
:approve="approveDc" :approve="approveDc"
:source="source" :source="source"
:status="route.query.status == 'WAIT_SI' ? 'WAIT_SI' : undefined"
:id="id" :id="id"
businessType="1" businessType="1"
> >
<span> <span>
<a-button v-repeat v-if="route.query.status != 'WAIT_ORDER_AUDIT' && route.query.source != 'Complete'" @click="save(true)" type="primary"> <a-button class="ml10" v-repeat v-if="route.query.status != 'WAIT_ORDER_AUDIT' && route.query.source != 'Complete'" @click="save(true)" type="primary">
{{ completeText }} {{ completeText }}
</a-button> </a-button>
</span> </span>
@ -280,7 +282,7 @@
return '报关完成' return '报关完成'
} else if (status == 'WAIT_AMS') { } else if (status == 'WAIT_AMS') {
return '发送AMS' return '发送AMS'
} else if (status == 'ORDER_AUDIT_REJECTED') { } else if (status == 'ORDER_AUDIT_REJECTED' || status == 'WAIT_SI_REJECTED') {
return '重新提交' return '重新提交'
} else { } else {
return '完成任务' return '完成任务'
@ -907,6 +909,14 @@
}).then(res => { }).then(res => {
tabStore.closeTabByKey(fullPath, router) 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 { } else {
const postData = { const postData = {
businessId: id.value, businessId: id.value,
@ -965,7 +975,7 @@
overflow-x: hidden; overflow-x: hidden;
} }
.approve-main-scorll { .approve-main-scorll {
height: calc(100vh - 115px); height: calc(100vh - 155px);
} }
} }
.line { .line {

@ -435,7 +435,9 @@
import { useRoute, useRouter } from 'vue-router' import { useRoute, useRouter } from 'vue-router'
import { useOptionsStore } from '/@/store/modules/options' import { useOptionsStore } from '/@/store/modules/options'
import { BasicForm, useForm } from '/@/components/Form/index' import { BasicForm, useForm } from '/@/components/Form/index'
import { useUserStore } from '/@/store/modules/user'
import taskCustom from './taskList/taskCustom.vue' import taskCustom from './taskList/taskCustom.vue'
const userStore = useUserStore()
const optionsStore = useOptionsStore() const optionsStore = useOptionsStore()
const { createMessage } = useMessage() const { createMessage } = useMessage()
const route = useRoute() const route = useRoute()
@ -987,6 +989,14 @@
console.log('handleResetFunc') console.log('handleResetFunc')
} }
function handleEdit(data) { 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) { switch (data.tasK_TYPE) {
case 'VGM_COMPARE': case 'VGM_COMPARE':
// VGM // VGM
@ -1169,6 +1179,7 @@
case 'WAIT_Insurance': case 'WAIT_Insurance':
case 'ORDER_AUDIT_REJECTED': case 'ORDER_AUDIT_REJECTED':
case 'RETURN_CABIN_AUDIT': case 'RETURN_CABIN_AUDIT':
case 'WAIT_SI_REJECTED':
// //
go({ go({
path: '/taskmanage/booking-approval', path: '/taskmanage/booking-approval',
@ -1176,7 +1187,7 @@
id: data.ouT_BS_NO, id: data.ouT_BS_NO,
source: data.tasK_USER_STATUS, source: data.tasK_USER_STATUS,
taskId: data.id, taskId: data.id,
status: data.tasK_TYPE, status: statusFlag ? data.tasK_TYPE : 'n',
}, },
}) })
break break

Loading…
Cancel
Save