|
|
|
@ -30,6 +30,7 @@
|
|
|
|
|
<operationArea
|
|
|
|
|
:id="id"
|
|
|
|
|
:details="bookingDetails"
|
|
|
|
|
:inChildLoading="inChildLoading"
|
|
|
|
|
:source="source"
|
|
|
|
|
@refresh="refreshPage"
|
|
|
|
|
@SetOCR="SetOCR"
|
|
|
|
@ -215,7 +216,6 @@
|
|
|
|
|
import { Divider } from 'ant-design-vue'
|
|
|
|
|
|
|
|
|
|
const go = useGo()
|
|
|
|
|
const initDetail = {}
|
|
|
|
|
// 页面loading
|
|
|
|
|
const loading = ref(false)
|
|
|
|
|
const id = ref(route.query.id)
|
|
|
|
@ -223,9 +223,10 @@
|
|
|
|
|
const source = ref(route.query.source || 'edit')
|
|
|
|
|
// const isCopy = ref(route.query.isCopy || false)
|
|
|
|
|
const Showtabs = ref(false)
|
|
|
|
|
const bookingDetails = ref({ ...initDetail })
|
|
|
|
|
const bookingDetails = ref({})
|
|
|
|
|
// // const bookingDetails = ref()
|
|
|
|
|
const tabActiveKey = ref('1')
|
|
|
|
|
const inChildLoading = ref(false)
|
|
|
|
|
const RefrightContent = ref()
|
|
|
|
|
const excuteRules = ref([])
|
|
|
|
|
const excuteRulesType = ref('')
|
|
|
|
@ -237,6 +238,7 @@
|
|
|
|
|
const RefediMore = ref(null)
|
|
|
|
|
const RefNoteInfo = ref(null)
|
|
|
|
|
const mainOrderActiveKey = ref('1-1')
|
|
|
|
|
const inPageLoading = ref(false)
|
|
|
|
|
const detailsLoadOver = ref(false)
|
|
|
|
|
// const cargoRules = ref(rules.cargoRules)
|
|
|
|
|
const isLockBooking = ref(false)
|
|
|
|
@ -290,7 +292,7 @@
|
|
|
|
|
if (route.query.id && !id.value) {
|
|
|
|
|
id.value = route.query.id
|
|
|
|
|
}
|
|
|
|
|
bookingDetails.value = { ...initDetail }
|
|
|
|
|
bookingDetails.value = {}
|
|
|
|
|
excuteRules.value = []
|
|
|
|
|
excuteRulesType.value = ''
|
|
|
|
|
Showtabs.value = false
|
|
|
|
@ -303,6 +305,11 @@
|
|
|
|
|
}
|
|
|
|
|
// 获取详情
|
|
|
|
|
function getDetail() {
|
|
|
|
|
if (inPageLoading.value) {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
inPageLoading.value = true
|
|
|
|
|
inChildLoading.value = true
|
|
|
|
|
detailsLoadOver.value = false
|
|
|
|
|
loading.value = true
|
|
|
|
|
BookingOrderGet({
|
|
|
|
@ -322,9 +329,8 @@
|
|
|
|
|
if (!res.data.ctnPriceInfo.length) {
|
|
|
|
|
res.data.ctnPriceInfo = [{}]
|
|
|
|
|
}
|
|
|
|
|
console.log(res)
|
|
|
|
|
bookingDetails.value = res.data
|
|
|
|
|
appStore.settopDown(false)
|
|
|
|
|
inPageLoading.value = false
|
|
|
|
|
// 解决 业务来源 联动问题
|
|
|
|
|
// if (res.data.sourceId) {
|
|
|
|
|
// let sourceDetailIdArr: any = []
|
|
|
|
@ -587,6 +593,7 @@
|
|
|
|
|
// }
|
|
|
|
|
// OCR 赋值
|
|
|
|
|
function SetOCR(data) {
|
|
|
|
|
console.log(data)
|
|
|
|
|
bookingDetails.value = { ...bookingDetails.value, ...data }
|
|
|
|
|
}
|
|
|
|
|
// 组件的值发生变化时
|
|
|
|
|