|
|
|
@ -17,13 +17,14 @@
|
|
|
|
|
<div class="main-bill-box">
|
|
|
|
|
<div class="flex" style="position: relative;">
|
|
|
|
|
<ActionBar
|
|
|
|
|
v-if="source == 'edit'"
|
|
|
|
|
v-if="source == 'edit' || (route.query.source == 'Create' && route.query.status == 'WAIT_ORDER_AUDIT')"
|
|
|
|
|
:id="route.query.id"
|
|
|
|
|
code="sea_freight_export"
|
|
|
|
|
name="hyck"
|
|
|
|
|
:save="save"
|
|
|
|
|
:copy="copyData"
|
|
|
|
|
:submit="submit"
|
|
|
|
|
:showBtns="(route.query.source == 'Create' && route.query.status == 'WAIT_ORDER_AUDIT') ? ['save'] : ['save', 'submit', 'copy', 'print', 'next', 'last']"
|
|
|
|
|
layout="horizontal"
|
|
|
|
|
></ActionBar>
|
|
|
|
|
<operationArea
|
|
|
|
@ -99,9 +100,6 @@
|
|
|
|
|
businessType="1"
|
|
|
|
|
>
|
|
|
|
|
<span>
|
|
|
|
|
<a-button v-repeat class="mr10" v-if="route.query.source == 'Create' && route.query.status == 'WAIT_ORDER_AUDIT'" @click="save" type="primary">
|
|
|
|
|
保存
|
|
|
|
|
</a-button>
|
|
|
|
|
<a-button v-repeat v-if="route.query.status != 'WAIT_ORDER_AUDIT'" @click="completeTask" type="primary">
|
|
|
|
|
{{ completeText }}
|
|
|
|
|
</a-button>
|
|
|
|
@ -193,7 +191,8 @@
|
|
|
|
|
SeaExportCopy,
|
|
|
|
|
SeaExportTaskAudit,
|
|
|
|
|
CreateTask,
|
|
|
|
|
SetTaskStatus
|
|
|
|
|
SetTaskStatus,
|
|
|
|
|
AutomaticBooking
|
|
|
|
|
} from '../api/BookingLedger'
|
|
|
|
|
import { GetFormSetListByModule } from '/@/api/common'
|
|
|
|
|
const appStore = useAppStore()
|
|
|
|
@ -217,7 +216,6 @@
|
|
|
|
|
|
|
|
|
|
import { useMultipleTabStore } from '/@/store/modules/multipleTab'
|
|
|
|
|
import { Divider } from 'ant-design-vue'
|
|
|
|
|
import { fastCall } from 'handsontable/helpers'
|
|
|
|
|
|
|
|
|
|
const go = useGo()
|
|
|
|
|
// 页面loading
|
|
|
|
@ -347,6 +345,10 @@ import { fastCall } from 'handsontable/helpers'
|
|
|
|
|
res.data.ctnPriceInfo = [{}]
|
|
|
|
|
}
|
|
|
|
|
bookingDetails.value = res.data
|
|
|
|
|
// 如果是审批页面切状态是已审单弹出选择现舱非现舱
|
|
|
|
|
if (res.data.businessStatusName == '已审单' && route.query.taskId) {
|
|
|
|
|
cvisible.value = true
|
|
|
|
|
}
|
|
|
|
|
inPageLoading.value = false
|
|
|
|
|
// 如果存在表单修改规则,重新更新表单
|
|
|
|
|
if (res.data.formSetList && res.data.formSetList.length) {
|
|
|
|
@ -409,7 +411,6 @@ import { fastCall } from 'handsontable/helpers'
|
|
|
|
|
loading.value = false
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
if (postData.id) {
|
|
|
|
|
if (!!route.query.taskId) return
|
|
|
|
|
createMessage.success('保存成功!')
|
|
|
|
|
} else {
|
|
|
|
|
createMessage.success('新增成功!')
|
|
|
|
@ -751,9 +752,11 @@ import { fastCall } from 'handsontable/helpers'
|
|
|
|
|
const cvalue = ref(1)
|
|
|
|
|
const handleOk = () => {
|
|
|
|
|
if (cvalue.value == 1) {
|
|
|
|
|
// 选择现舱
|
|
|
|
|
sspace.value.init()
|
|
|
|
|
} else {
|
|
|
|
|
createTask('WAIT_BOOKING')
|
|
|
|
|
// 非现舱
|
|
|
|
|
AutomaticBooking({ businessId: id.value })
|
|
|
|
|
}
|
|
|
|
|
cvisible.value = false
|
|
|
|
|
}
|
|
|
|
|