|
|
@ -1001,10 +1001,22 @@
|
|
|
|
init()
|
|
|
|
init()
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 选择舱位完成后,审核订单,创建订舱任务
|
|
|
|
// 选择舱位完成后,先审核订单,然后创建订舱任务
|
|
|
|
const approveAndCreateTast = (type) => {
|
|
|
|
const approveAndCreateTast = (type) => {
|
|
|
|
|
|
|
|
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)
|
|
|
|
createTask(type)
|
|
|
|
seaExportTaskAudit(null, false)
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
loading.value = false
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 创建任务
|
|
|
|
// 创建任务
|
|
|
|
const createTask = async (type) => {
|
|
|
|
const createTask = async (type) => {
|
|
|
|