|
|
@ -30,18 +30,22 @@
|
|
|
|
派车信息
|
|
|
|
派车信息
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
<Divider type="vertical" />
|
|
|
|
<Divider type="vertical" />
|
|
|
|
<a-button type="link" @click="FnTxxpLink">
|
|
|
|
<a-button type="link" v-repeat @click="FnTxxpLink">
|
|
|
|
<span class="iconfont icon-a-xiaopiaofapiao-01"></span>
|
|
|
|
<span class="iconfont icon-a-xiaopiaofapiao-01"></span>
|
|
|
|
提箱小票
|
|
|
|
提箱小票
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
<a-button type="link" @click="ShowOCR">
|
|
|
|
<a-button type="link" v-repeat @click="ShowOCR">
|
|
|
|
<span class="iconfont icon-OCR"></span>
|
|
|
|
<span class="iconfont icon-OCR"></span>
|
|
|
|
OCR
|
|
|
|
OCR
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
<a-button type="link" @click="handleSubmitTelex">
|
|
|
|
<a-button type="link" v-repeat @click="handleSubmitTelex">
|
|
|
|
<span class="iconfont icon-lunchuan"></span>
|
|
|
|
<span class="iconfont icon-lunchuan"></span>
|
|
|
|
船司电放
|
|
|
|
船司电放
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
|
|
|
|
<!-- 场站入货 -->
|
|
|
|
|
|
|
|
<OpBusinessYardDetails :businessId="details.id" @register="OYregisterModal" />
|
|
|
|
|
|
|
|
<!-- 派车信息 -->
|
|
|
|
|
|
|
|
<OpBusinessTruckDetails :businessId="details.id" @register="OTregisterModal" />
|
|
|
|
<!-- <a-card
|
|
|
|
<!-- <a-card
|
|
|
|
:bordered="false"
|
|
|
|
:bordered="false"
|
|
|
|
:bodyStyle="{
|
|
|
|
:bodyStyle="{
|
|
|
@ -234,25 +238,20 @@
|
|
|
|
@cancel="handleModelCancel"
|
|
|
|
@cancel="handleModelCancel"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<template v-if="['bookingSpace', 'cutOff'].includes(modelType)">
|
|
|
|
<template v-if="['bookingSpace', 'cutOff'].includes(modelType)">
|
|
|
|
<a-form>
|
|
|
|
<a-form
|
|
|
|
<a-row :gutter="16">
|
|
|
|
layout="vertical"
|
|
|
|
<a-col :span="24">
|
|
|
|
class="ds-form-detail"
|
|
|
|
<a-form-item
|
|
|
|
>
|
|
|
|
label="文件功能"
|
|
|
|
<a-form-item
|
|
|
|
:labelCol="{ xs: { span: 24 }, sm: { span: 6 } }"
|
|
|
|
label="文件功能"
|
|
|
|
:wrapperCol="{ xs: { span: 24 }, sm: { span: 15 } }"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
>
|
|
|
|
layout="vertical"
|
|
|
|
<a-radio-group v-model:value="bookingModelFrom.fileRole">
|
|
|
|
class="ant-form-file"
|
|
|
|
<a-radio :value="9"> 原始 </a-radio>
|
|
|
|
>
|
|
|
|
<a-radio :disabled="forwarderFlag" :value="1"> 更新 </a-radio>
|
|
|
|
<a-radio-group v-model:value="bookingModelFrom.fileRole">
|
|
|
|
<a-radio :disabled="forwarderFlag" :value="5"> 退舱 </a-radio>
|
|
|
|
<a-radio :style="radioStyle" :value="9"> 原始 </a-radio>
|
|
|
|
</a-radio-group>
|
|
|
|
<a-radio :disabled="forwarderFlag" :style="radioStyle" :value="1"> 更新 </a-radio>
|
|
|
|
</a-form-item>
|
|
|
|
<a-radio :disabled="forwarderFlag" :style="radioStyle" :value="5"> 退舱 </a-radio>
|
|
|
|
|
|
|
|
</a-radio-group>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
</a-form>
|
|
|
|
</a-form>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template v-else-if="['initCabin', 'ladingBill', 'vgmlink'].includes(modelType)">
|
|
|
|
<template v-else-if="['initCabin', 'ladingBill', 'vgmlink'].includes(modelType)">
|
|
|
@ -878,48 +877,47 @@
|
|
|
|
}}</li>
|
|
|
|
}}</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</a-drawer>
|
|
|
|
</a-drawer>
|
|
|
|
<!-- OCR抽屉 end -->
|
|
|
|
<!-- 运踪弹窗 -->
|
|
|
|
<!-- 运踪弹窗 start -->
|
|
|
|
|
|
|
|
<a-modal
|
|
|
|
<a-modal
|
|
|
|
width="50vw"
|
|
|
|
width="500px"
|
|
|
|
|
|
|
|
class="ds-modal-small"
|
|
|
|
:maskClosable="false"
|
|
|
|
:maskClosable="false"
|
|
|
|
v-model:visible="traceModalVisible"
|
|
|
|
v-model:visible="traceModalVisible"
|
|
|
|
title="运踪订阅"
|
|
|
|
title="运踪订阅"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div class="trace-box">
|
|
|
|
<a-form
|
|
|
|
<a-form>
|
|
|
|
ref=traceRef
|
|
|
|
<a-row :gutter="16">
|
|
|
|
class="ds-detail-form"
|
|
|
|
<a-col :span="24" class="book-model-box">
|
|
|
|
layout="vertical"
|
|
|
|
<a-form-item
|
|
|
|
:model="traceForm"
|
|
|
|
label="请选择订阅内容"
|
|
|
|
:rules="rules"
|
|
|
|
:labelCol="{ xs: { span: 24 }, sm: { span: 6 } }"
|
|
|
|
>
|
|
|
|
:wrapperCol="{ xs: { span: 24 }, sm: { span: 15 } }"
|
|
|
|
<a-form-item
|
|
|
|
has-feedback
|
|
|
|
label="请选择订阅内容"
|
|
|
|
>
|
|
|
|
name="traceValue"
|
|
|
|
<a-checkbox-group
|
|
|
|
>
|
|
|
|
class="trace-check"
|
|
|
|
<a-checkbox-group
|
|
|
|
v-model:value="traceValue"
|
|
|
|
class="trace-check"
|
|
|
|
name="checkboxgroup"
|
|
|
|
v-model:value="traceForm.traceValue"
|
|
|
|
:options="traceOptions"
|
|
|
|
:options="traceOptions"
|
|
|
|
@change="onTraceChange"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form>
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
</a-form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<template #footer>
|
|
|
|
<template #footer>
|
|
|
|
<a-button type="primary" @click="traceSend">订阅</a-button>
|
|
|
|
<a-button @click="traceModalVisible = false">关闭</a-button>
|
|
|
|
|
|
|
|
<a-button :loading="tloading" type="primary" @click="traceSend">订阅</a-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</a-modal>
|
|
|
|
</a-modal>
|
|
|
|
<!-- 运踪弹窗 end -->
|
|
|
|
<!-- 预配舱单 -->
|
|
|
|
<pre-order ref="RefpreOrder" :details="details" @frompre="frompre" />
|
|
|
|
<pre-order ref="RefpreOrder" :details="details" @frompre="frompre" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
|
|
<script lang="ts" setup>
|
|
|
|
import preOrder from './preOrder.vue'
|
|
|
|
import preOrder from './preOrder.vue'
|
|
|
|
|
|
|
|
// 场站入货组件
|
|
|
|
|
|
|
|
import OpBusinessYardDetails from './Letter/OpBusinessYardDetails.vue'
|
|
|
|
|
|
|
|
// 派车信息组件
|
|
|
|
|
|
|
|
import OpBusinessTruckDetails from './Letter/OpBusinessTruckDetails.vue'
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
GetOpenPrintModuleList,
|
|
|
|
GetOpenPrintModuleList,
|
|
|
|
GetOpenPrintTemplateList,
|
|
|
|
GetOpenPrintTemplateList,
|
|
|
@ -951,7 +949,7 @@
|
|
|
|
const router = useRouter()
|
|
|
|
const router = useRouter()
|
|
|
|
const route = useRoute()
|
|
|
|
const route = useRoute()
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'
|
|
|
|
const { notification } = useMessage()
|
|
|
|
const { notification, createMessage } = useMessage()
|
|
|
|
import { columns, searchFormSchema } from './operationAreaColumns'
|
|
|
|
import { columns, searchFormSchema } from './operationAreaColumns'
|
|
|
|
import { BasicTable, useTable, TableAction } from '/@/components/Table'
|
|
|
|
import { BasicTable, useTable, TableAction } from '/@/components/Table'
|
|
|
|
const emit = defineEmits([
|
|
|
|
const emit = defineEmits([
|
|
|
@ -984,13 +982,22 @@
|
|
|
|
// =============
|
|
|
|
// =============
|
|
|
|
const id = ref(route.query.id)
|
|
|
|
const id = ref(route.query.id)
|
|
|
|
const spinning = ref(false)
|
|
|
|
const spinning = ref(false)
|
|
|
|
const templateType = ref<any>([])
|
|
|
|
|
|
|
|
const PrintModalVisible = ref(false)
|
|
|
|
const PrintModalVisible = ref(false)
|
|
|
|
const forwarderFlag = ref(false)
|
|
|
|
const forwarderFlag = ref(false)
|
|
|
|
const modelType = ref('')
|
|
|
|
const modelType = ref('')
|
|
|
|
const bookingModelvisible = ref(false)
|
|
|
|
const bookingModelvisible = ref(false)
|
|
|
|
const bookingModelconfirm = ref(false)
|
|
|
|
const bookingModelconfirm = ref(false)
|
|
|
|
|
|
|
|
// 表单校验规则
|
|
|
|
|
|
|
|
const rules = {
|
|
|
|
|
|
|
|
traceValue: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
type: 'array',
|
|
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
|
|
message: '请选择订阅内容',
|
|
|
|
|
|
|
|
trigger: 'change'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
}
|
|
|
|
const initCabinFrom = ref({
|
|
|
|
const initCabinFrom = ref({
|
|
|
|
toName: '',
|
|
|
|
toName: '',
|
|
|
|
attn: '',
|
|
|
|
attn: '',
|
|
|
@ -1286,9 +1293,11 @@
|
|
|
|
bookingModelFrom.orderNo = props.details.mblno
|
|
|
|
bookingModelFrom.orderNo = props.details.mblno
|
|
|
|
bookingModelFrom.id = route.query.id
|
|
|
|
bookingModelFrom.id = route.query.id
|
|
|
|
if (type == 'save') {
|
|
|
|
if (type == 'save') {
|
|
|
|
|
|
|
|
// 保存EDI文件
|
|
|
|
EDISloading.value = true
|
|
|
|
EDISloading.value = true
|
|
|
|
downloadBookingOrEDI(type)
|
|
|
|
downloadBookingOrEDI(type)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
// 上传EDI
|
|
|
|
EDIUloading.value = true
|
|
|
|
EDIUloading.value = true
|
|
|
|
sendBookingOrEDI(type)
|
|
|
|
sendBookingOrEDI(type)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1300,23 +1309,11 @@
|
|
|
|
.then((res) => {
|
|
|
|
.then((res) => {
|
|
|
|
EDISloading.value = false
|
|
|
|
EDISloading.value = false
|
|
|
|
EDIUloading.value = false
|
|
|
|
EDIUloading.value = false
|
|
|
|
|
|
|
|
console.log(res)
|
|
|
|
// 未完成
|
|
|
|
// 未完成
|
|
|
|
if (res.succeeded) {
|
|
|
|
if (res.succeeded) {
|
|
|
|
notification.success({ message: '发送成功', duration: 3 })
|
|
|
|
createMessage.success('发送成功!')
|
|
|
|
handleModelCancel()
|
|
|
|
handleModelCancel()
|
|
|
|
} else {
|
|
|
|
|
|
|
|
notification.error({
|
|
|
|
|
|
|
|
content: () =>
|
|
|
|
|
|
|
|
h(
|
|
|
|
|
|
|
|
'p',
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
style: {
|
|
|
|
|
|
|
|
whiteSpace: 'pre-wrap',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
res.message,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
@ -1365,54 +1362,54 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const traceModalVisible = ref(false)
|
|
|
|
const traceModalVisible = ref(false)
|
|
|
|
const traceValue = ref([])
|
|
|
|
// 运踪弹窗部分
|
|
|
|
const traceOptions = reactive([
|
|
|
|
const traceForm = reactive({
|
|
|
|
|
|
|
|
traceValue: []
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
const traceOptions = [
|
|
|
|
{ label: '起运港', value: '1' },
|
|
|
|
{ label: '起运港', value: '1' },
|
|
|
|
{ label: '目的港', value: '2' },
|
|
|
|
{ label: '目的港', value: '2' }
|
|
|
|
])
|
|
|
|
]
|
|
|
|
// 运踪选择 Change
|
|
|
|
const traceRef = ref(null)
|
|
|
|
function onTraceChange() {
|
|
|
|
const tloading = ref(false)
|
|
|
|
console.log(traceValue.value)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// 订阅运踪
|
|
|
|
// 订阅运踪
|
|
|
|
function traceSend() {
|
|
|
|
function traceSend() {
|
|
|
|
if (!traceValue.value) {
|
|
|
|
traceRef.value.validate().then(() => {
|
|
|
|
notification.error({ message: '请选择订阅内容', duration: 3 })
|
|
|
|
console.log(props.details.yardId)
|
|
|
|
return false
|
|
|
|
if (traceForm.traceValue.includes('1') && !props.details.yardId) {
|
|
|
|
}
|
|
|
|
return createMessage.warning('请选择场站!')
|
|
|
|
if (traceValue.value.includes('1') && (!props.details.yard || !props.details.yardId)) {
|
|
|
|
}
|
|
|
|
notification.error({ message: '请选择场站', duration: 3 })
|
|
|
|
if (traceForm.traceValue.includes('2') && !props.details.carrierId) {
|
|
|
|
return false
|
|
|
|
return createMessage.warning('请选择船公司!')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (traceValue.value.includes('2') && (!props.details.carrierId || !props.details.carrier)) {
|
|
|
|
const query = {
|
|
|
|
notification.error({ message: '请选择船公司', duration: 3 })
|
|
|
|
businessId: route.query.id,
|
|
|
|
return false
|
|
|
|
mblno: props.details.mblno,
|
|
|
|
}
|
|
|
|
yard: traceForm.traceValue.includes('1') ? props.details.yard : '',
|
|
|
|
const query = {
|
|
|
|
yardCode: traceForm.traceValue.includes('1') ? props.details.yardId : '',
|
|
|
|
businessId: route.query.id,
|
|
|
|
carrierId: traceForm.traceValue.includes('2') ? props.details.carrierId : '',
|
|
|
|
mblno: props.details.mblno,
|
|
|
|
carrier: traceForm.traceValue.includes('2') ? props.details.carrier : '',
|
|
|
|
yard: traceValue.value.includes('1') ? props.details.yard : '',
|
|
|
|
isBook: !!traceForm.traceValue.includes('2')
|
|
|
|
yardCode: traceValue.value.includes('1') ? props.details.yardid : '',
|
|
|
|
}
|
|
|
|
carrierid: traceValue.value.includes('2') ? props.details.carrierid : '',
|
|
|
|
tloading.value = true
|
|
|
|
carrier: traceValue.value.includes('2') ? props.details.carrier : '',
|
|
|
|
SendTrace([query]).then((res) => {
|
|
|
|
isBook: !!traceValue.value.includes('2'),
|
|
|
|
tloading.value = false
|
|
|
|
}
|
|
|
|
|
|
|
|
SendTrace([query])
|
|
|
|
|
|
|
|
.then((res) => {
|
|
|
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
if (res.succeeded) {
|
|
|
|
const tip = `订阅成功`
|
|
|
|
createMessage.success('订阅成功!')
|
|
|
|
notification.success({ message: tip, duration: 3 })
|
|
|
|
|
|
|
|
traceModalVisible.value = false
|
|
|
|
traceModalVisible.value = false
|
|
|
|
traceValue.value = []
|
|
|
|
traceForm.traceValue = []
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
notification.warning({ message: res.message, duration: 3 })
|
|
|
|
|
|
|
|
traceModalVisible.value = false
|
|
|
|
traceModalVisible.value = false
|
|
|
|
traceValue.value = []
|
|
|
|
traceForm.traceValue = []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch((err) => {
|
|
|
|
|
|
|
|
tloading.value = false
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
|
|
|
console.log('error', error)
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 打开对话框 VGM
|
|
|
|
// 打开对话框 VGM
|
|
|
|
function openDialog(type) {
|
|
|
|
function openDialog(type) {
|
|
|
@ -1425,6 +1422,7 @@
|
|
|
|
Modal.confirm({
|
|
|
|
Modal.confirm({
|
|
|
|
title: '温馨提示',
|
|
|
|
title: '温馨提示',
|
|
|
|
content: content,
|
|
|
|
content: content,
|
|
|
|
|
|
|
|
class: 'ds-modal-small',
|
|
|
|
onOk() {
|
|
|
|
onOk() {
|
|
|
|
if (type === 'vgm') {
|
|
|
|
if (type === 'vgm') {
|
|
|
|
vgmSend()
|
|
|
|
vgmSend()
|
|
|
@ -1432,19 +1430,15 @@
|
|
|
|
FnsendXHZ()
|
|
|
|
FnsendXHZ()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onCancel() {},
|
|
|
|
onCancel() {}
|
|
|
|
class: 'test',
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 发送 VGM
|
|
|
|
// 发送 VGM
|
|
|
|
function vgmSend() {
|
|
|
|
function vgmSend() {
|
|
|
|
VgmSend(id.value)
|
|
|
|
VgmSend(id.value)
|
|
|
|
.then((res) => {
|
|
|
|
.then((res) => {
|
|
|
|
// notification.open({ message: '发送中..' })
|
|
|
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
if (res.succeeded) {
|
|
|
|
notification.success({ message: 'VGM发送成功', duration: 3 })
|
|
|
|
createMessage.success('VGM发送成功!')
|
|
|
|
} else {
|
|
|
|
|
|
|
|
notification.error({ message: res.message, duration: 3 })
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch((err) => {
|
|
|
@ -1454,11 +1448,8 @@
|
|
|
|
function FnsendXHZ() {
|
|
|
|
function FnsendXHZ() {
|
|
|
|
SendXHZ({ id: id.value })
|
|
|
|
SendXHZ({ id: id.value })
|
|
|
|
.then((res) => {
|
|
|
|
.then((res) => {
|
|
|
|
// notification.loading({ message: '发送中..' })
|
|
|
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
if (res.succeeded) {
|
|
|
|
notification.success({ message: '下货纸发送成功', duration: 3 })
|
|
|
|
createMessage.success('下货纸发送成功!')
|
|
|
|
} else {
|
|
|
|
|
|
|
|
notification.error({ message: res.message, duration: 3 })
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch((err) => {
|
|
|
@ -1547,8 +1538,6 @@
|
|
|
|
.then((res) => {
|
|
|
|
.then((res) => {
|
|
|
|
if (res.succeeded) {
|
|
|
|
if (res.succeeded) {
|
|
|
|
copyFun(res.data)
|
|
|
|
copyFun(res.data)
|
|
|
|
} else {
|
|
|
|
|
|
|
|
notification.error({ message: res.message, duration: 3 })
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch((err) => {
|
|
|
@ -1695,7 +1684,7 @@
|
|
|
|
copyInput.setAttribute('value', data)
|
|
|
|
copyInput.setAttribute('value', data)
|
|
|
|
copyInput.select()
|
|
|
|
copyInput.select()
|
|
|
|
document.execCommand('Copy', false, null)
|
|
|
|
document.execCommand('Copy', false, null)
|
|
|
|
notification.success({ message: '复制成功', duration: 3 })
|
|
|
|
createMessage.success('复制成功!')
|
|
|
|
copyInput.remove()
|
|
|
|
copyInput.remove()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function beforeUpload(file) {
|
|
|
|
function beforeUpload(file) {
|
|
|
@ -1868,8 +1857,7 @@
|
|
|
|
const RefpreOrder = ref()
|
|
|
|
const RefpreOrder = ref()
|
|
|
|
function openPreOrderFun() {
|
|
|
|
function openPreOrderFun() {
|
|
|
|
if (!id.value) {
|
|
|
|
if (!id.value) {
|
|
|
|
notification.error({ message: '请先保存主单', duration: 3 })
|
|
|
|
return createMessage.warning('请先保存主单!')
|
|
|
|
return false
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
RefpreOrder.value.init()
|
|
|
|
RefpreOrder.value.init()
|
|
|
|
}
|
|
|
|
}
|
|
|
|