|
|
|
@ -1001,10 +1001,22 @@
|
|
|
|
|
init()
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 选择舱位完成后,审核订单,创建订舱任务
|
|
|
|
|
// 选择舱位完成后,先审核订单,然后创建订舱任务
|
|
|
|
|
const approveAndCreateTast = (type) => {
|
|
|
|
|
createTask(type)
|
|
|
|
|
seaExportTaskAudit(null, false)
|
|
|
|
|
const postData = {
|
|
|
|
|
result: 1,
|
|
|
|
|
ids: [id.value],
|
|
|
|
|
businessType: '1',
|
|
|
|
|
taskTypeName: route.query.status
|
|
|
|
|
}
|
|
|
|
|
loading.value = true
|
|
|
|
|
SeaExportTaskAudit(postData).then(res => {
|
|
|
|
|
loading.value = false
|
|
|
|
|
createMessage.success(res.message)
|
|
|
|
|
createTask(type)
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
loading.value = false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 创建任务
|
|
|
|
|
const createTask = async (type) => {
|
|
|
|
|