|
|
|
@ -32,7 +32,6 @@
|
|
|
|
|
:id="id"
|
|
|
|
|
:details="bookingDetails"
|
|
|
|
|
:inChildLoading="inChildLoading"
|
|
|
|
|
:taskType="taskType"
|
|
|
|
|
:source="source"
|
|
|
|
|
@refresh="refreshPage"
|
|
|
|
|
@SetOCR="SetOCR"
|
|
|
|
@ -109,7 +108,8 @@
|
|
|
|
|
:id="id"
|
|
|
|
|
businessType="1"
|
|
|
|
|
>
|
|
|
|
|
<a-button v-repeat v-if="taskType > 201" @click="completeTask" type="primary">
|
|
|
|
|
|
|
|
|
|
<a-button v-repeat v-if="route.query.status != 'WAIT_ORDER_AUDIT'" @click="completeTask" type="primary">
|
|
|
|
|
{{ completeText }}
|
|
|
|
|
</a-button>
|
|
|
|
|
</ApproveBtns>
|
|
|
|
@ -192,7 +192,6 @@
|
|
|
|
|
SeaExportCopy,
|
|
|
|
|
SeaExportTaskAudit,
|
|
|
|
|
CreateTask,
|
|
|
|
|
GetCurrent,
|
|
|
|
|
SetTaskStatus
|
|
|
|
|
} from '../api/BookingLedger'
|
|
|
|
|
import { getDictDropDown } from '/@/api/common'
|
|
|
|
@ -253,8 +252,6 @@
|
|
|
|
|
const inGoodsSave = ref(false)
|
|
|
|
|
const tabStore = useMultipleTabStore()
|
|
|
|
|
const moreStr = ref('')
|
|
|
|
|
// 存储任务状态
|
|
|
|
|
const taskType = ref()
|
|
|
|
|
// 计算费用表格高度
|
|
|
|
|
const feeHeight = computed(() => {
|
|
|
|
|
const height = window.innerHeight
|
|
|
|
@ -265,8 +262,16 @@
|
|
|
|
|
const status = route.query.status
|
|
|
|
|
if (status == 'WAIT_BC') {
|
|
|
|
|
return '收到BC'
|
|
|
|
|
} else if (status == 'WAIT_CANGDAN') {
|
|
|
|
|
} else if (status == 'WAIT_BILL_CONFIRM') {
|
|
|
|
|
return '提单确认'
|
|
|
|
|
} else if (status == 'WAIT_DRAFT') {
|
|
|
|
|
return '收到DRAFT'
|
|
|
|
|
} else if (status == 'WAIT_CHECKOUT_BILL') {
|
|
|
|
|
return '放单'
|
|
|
|
|
} else if (status == 'WAIT_BAOGUAN') {
|
|
|
|
|
return '报关完成'
|
|
|
|
|
} else if (status == 'WAIT_AMS') {
|
|
|
|
|
return '发送AMS'
|
|
|
|
|
} else {
|
|
|
|
|
return '完成任务'
|
|
|
|
|
}
|
|
|
|
@ -332,10 +337,6 @@
|
|
|
|
|
console.log(document.getElementsByClassName('main-tab')[0])
|
|
|
|
|
// 如果详情页,隐藏主页面tab标签页
|
|
|
|
|
if (source.value != 'edit') document.getElementsByClassName('main-tab')[0].getElementsByClassName('ant-tabs-nav-wrap')[0].style.display = 'none'
|
|
|
|
|
// 如果是任务业务,获取任务状态
|
|
|
|
|
if (route.query.taskId) {
|
|
|
|
|
getTask()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
init()
|
|
|
|
|
// 初始化
|
|
|
|
@ -967,8 +968,7 @@
|
|
|
|
|
const submit = async () => {
|
|
|
|
|
const postData = {
|
|
|
|
|
businessId: id.value,
|
|
|
|
|
businessType: '1',
|
|
|
|
|
taskType: '201',
|
|
|
|
|
businessType: '1'
|
|
|
|
|
}
|
|
|
|
|
loading.value = true
|
|
|
|
|
await CreateTask(postData)
|
|
|
|
@ -985,11 +985,10 @@
|
|
|
|
|
const postData = {
|
|
|
|
|
businessId: id.value,
|
|
|
|
|
businessType: '1',
|
|
|
|
|
taskType: type
|
|
|
|
|
taskTypeName: route.query.status
|
|
|
|
|
}
|
|
|
|
|
loading.value = true
|
|
|
|
|
await CreateTask(postData).then(res => {
|
|
|
|
|
taskType.value = type
|
|
|
|
|
loading.value = false
|
|
|
|
|
createMessage.success(res.message)
|
|
|
|
|
}).catch(() => {
|
|
|
|
@ -1492,26 +1491,19 @@
|
|
|
|
|
loading.value = false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 获取当前任务的任务状态
|
|
|
|
|
const getTask = () => {
|
|
|
|
|
GetCurrent({ businessId: id.value, businessType: 1 }).then(res => {
|
|
|
|
|
taskType.value = res.data.taskType
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 完成任务
|
|
|
|
|
const completeTask = () => {
|
|
|
|
|
const { fullPath } = route //获取当前路径
|
|
|
|
|
const postData = {
|
|
|
|
|
businessId: id.value,
|
|
|
|
|
businessType: 1,
|
|
|
|
|
taskType: taskType.value,
|
|
|
|
|
taskTypeName: route.query.status,
|
|
|
|
|
taskStatus: 2,
|
|
|
|
|
autoCreateNext: true
|
|
|
|
|
}
|
|
|
|
|
SetTaskStatus(postData).then(res => {
|
|
|
|
|
createMessage.success('操作成功!')
|
|
|
|
|
tabStore.closeTabByKey(fullPath, router)
|
|
|
|
|
taskType.value = res.data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
function setDeatilsFun(res, overSet = false) {
|
|
|
|
|