|
|
@ -455,7 +455,6 @@
|
|
|
|
res.data.stlDate = res.data.stlDate.split(' ')[0]
|
|
|
|
res.data.stlDate = res.data.stlDate.split(' ')[0]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
bookingDetails.value = res.data
|
|
|
|
bookingDetails.value = res.data
|
|
|
|
console.log(bookingDetails.value)
|
|
|
|
|
|
|
|
// 如果是审批页面切状态是已审单弹出选择现舱非现舱
|
|
|
|
// 如果是审批页面切状态是已审单弹出选择现舱非现舱
|
|
|
|
inPageLoading.value = false
|
|
|
|
inPageLoading.value = false
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -567,6 +566,18 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 获取右侧勾选中的服务项目的code,拼接成字符串传给后台
|
|
|
|
|
|
|
|
let serviceItem = ''
|
|
|
|
|
|
|
|
const seriveItems = RefrightContent.value.bookingServiceItem
|
|
|
|
|
|
|
|
if (seriveItems && seriveItems.length) {
|
|
|
|
|
|
|
|
const sitems = seriveItems.filter(item => {
|
|
|
|
|
|
|
|
return item.isYield == true
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
const codes = sitems.map(item => {
|
|
|
|
|
|
|
|
return item.projectCode
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
serviceItem = String(codes)
|
|
|
|
|
|
|
|
}
|
|
|
|
// 提交的post数据
|
|
|
|
// 提交的post数据
|
|
|
|
const postData = {
|
|
|
|
const postData = {
|
|
|
|
...baseinfoForm,
|
|
|
|
...baseinfoForm,
|
|
|
@ -577,7 +588,10 @@
|
|
|
|
...customerForm,
|
|
|
|
...customerForm,
|
|
|
|
...noteForm,
|
|
|
|
...noteForm,
|
|
|
|
ediInfo: ediFrom,
|
|
|
|
ediInfo: ediFrom,
|
|
|
|
ctnInfo
|
|
|
|
ctnInfo,
|
|
|
|
|
|
|
|
soRemark: ediFrom.soRemark,
|
|
|
|
|
|
|
|
closeDocRemark: ediFrom.closeDocRemark,
|
|
|
|
|
|
|
|
serviceItem
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 处理截港截单时间
|
|
|
|
// 处理截港截单时间
|
|
|
|
if (postData.closingDate && postData.closingDate.length == 13) {
|
|
|
|
if (postData.closingDate && postData.closingDate.length == 13) {
|
|
|
@ -998,6 +1012,7 @@
|
|
|
|
Withdraw(postData).then(res => {
|
|
|
|
Withdraw(postData).then(res => {
|
|
|
|
if (res.succeeded) {
|
|
|
|
if (res.succeeded) {
|
|
|
|
createMessage.success('撤销成功!')
|
|
|
|
createMessage.success('撤销成功!')
|
|
|
|
|
|
|
|
RefrightContent.value.getStatusServiceList(1, null)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
init()
|
|
|
|
init()
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -1026,10 +1041,10 @@
|
|
|
|
businessType: '1',
|
|
|
|
businessType: '1',
|
|
|
|
taskTypeName: type || route.query.status
|
|
|
|
taskTypeName: type || route.query.status
|
|
|
|
}
|
|
|
|
}
|
|
|
|
completeTask(type, true)
|
|
|
|
await completeTask(type, true)
|
|
|
|
if (type) postData['hasCabin'] = true
|
|
|
|
if (type) postData['hasCabin'] = true
|
|
|
|
loading.value = true
|
|
|
|
loading.value = true
|
|
|
|
await CreateTask(postData).then(res => {
|
|
|
|
CreateTask(postData).then(res => {
|
|
|
|
loading.value = false
|
|
|
|
loading.value = false
|
|
|
|
if (!b) createMessage.success(res.message)
|
|
|
|
if (!b) createMessage.success(res.message)
|
|
|
|
}).catch(() => {
|
|
|
|
}).catch(() => {
|
|
|
@ -1181,12 +1196,16 @@
|
|
|
|
if (res.data) {
|
|
|
|
if (res.data) {
|
|
|
|
// 是最后一个审批人,若果此票是现舱,弹窗选择现舱弹窗
|
|
|
|
// 是最后一个审批人,若果此票是现舱,弹窗选择现舱弹窗
|
|
|
|
const shippingSpaceType = RefbasicInfo.value.formData.shippingSpaceType
|
|
|
|
const shippingSpaceType = RefbasicInfo.value.formData.shippingSpaceType
|
|
|
|
if (shippingSpaceType == 'xc') {
|
|
|
|
if (shippingSpaceType == 'xc' && route.query.status == 'WAIT_ORDER_AUDIT') {
|
|
|
|
// 选择现舱
|
|
|
|
// 选择现舱
|
|
|
|
sspace.value.init()
|
|
|
|
sspace.value.init()
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// 非现舱直接审核通过
|
|
|
|
// 非现舱直接审核通过 (如果是审单,需要自动订舱)
|
|
|
|
|
|
|
|
if (route.query.status == 'WAIT_ORDER_AUDIT') {
|
|
|
|
seaExportTaskAudit(remark, true)
|
|
|
|
seaExportTaskAudit(remark, true)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
seaExportTaskAudit(remark, false)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// 不是最后一个审批人,直接审核
|
|
|
|
// 不是最后一个审批人,直接审核
|
|
|
@ -1231,12 +1250,14 @@
|
|
|
|
return createMessage.warning('请填写订舱编号或主提单号!')
|
|
|
|
return createMessage.warning('请填写订舱编号或主提单号!')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
if (status == 'ORDER_AUDIT_REJECTED') {
|
|
|
|
if (status == 'ORDER_AUDIT_REJECTED') {
|
|
|
|
SubmitAudit({
|
|
|
|
SubmitAudit({
|
|
|
|
businessId: id.value,
|
|
|
|
businessId: id.value,
|
|
|
|
businessType: 1,
|
|
|
|
businessType: 1,
|
|
|
|
taskTypeName: 'WAIT_ORDER_AUDIT'
|
|
|
|
taskTypeName: 'WAIT_ORDER_AUDIT'
|
|
|
|
}).then(res => {
|
|
|
|
}).then(res => {
|
|
|
|
|
|
|
|
resolve(res)
|
|
|
|
tabStore.closeTabByKey(fullPath, router)
|
|
|
|
tabStore.closeTabByKey(fullPath, router)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else if (status == 'WAIT_SI_REJECT') {
|
|
|
|
} else if (status == 'WAIT_SI_REJECT') {
|
|
|
@ -1245,6 +1266,7 @@
|
|
|
|
businessType: 1,
|
|
|
|
businessType: 1,
|
|
|
|
taskTypeName: 'WAIT_SI'
|
|
|
|
taskTypeName: 'WAIT_SI'
|
|
|
|
}).then(res => {
|
|
|
|
}).then(res => {
|
|
|
|
|
|
|
|
resolve(res)
|
|
|
|
tabStore.closeTabByKey(fullPath, router)
|
|
|
|
tabStore.closeTabByKey(fullPath, router)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -1258,9 +1280,11 @@
|
|
|
|
if (type) postData.autoCreateNext = false
|
|
|
|
if (type) postData.autoCreateNext = false
|
|
|
|
SetTaskStatus(postData).then(res => {
|
|
|
|
SetTaskStatus(postData).then(res => {
|
|
|
|
if (!b) createMessage.success('操作成功!')
|
|
|
|
if (!b) createMessage.success('操作成功!')
|
|
|
|
|
|
|
|
resolve(res)
|
|
|
|
tabStore.closeTabByKey(fullPath, router)
|
|
|
|
tabStore.closeTabByKey(fullPath, router)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
watch(
|
|
|
|
watch(
|
|
|
|
() => copyFlag,
|
|
|
|
() => copyFlag,
|
|
|
|