|
|
@ -30,7 +30,6 @@
|
|
|
|
<operationArea
|
|
|
|
<operationArea
|
|
|
|
:id="id"
|
|
|
|
:id="id"
|
|
|
|
:details="bookingDetails"
|
|
|
|
:details="bookingDetails"
|
|
|
|
:inChildLoading="inChildLoading"
|
|
|
|
|
|
|
|
:source="source"
|
|
|
|
:source="source"
|
|
|
|
@refresh="refreshPage"
|
|
|
|
@refresh="refreshPage"
|
|
|
|
@SetOCR="SetOCR"
|
|
|
|
@SetOCR="SetOCR"
|
|
|
@ -133,7 +132,6 @@
|
|
|
|
@changeDetail="changeDetailFun"
|
|
|
|
@changeDetail="changeDetailFun"
|
|
|
|
@handleComplete="handleComplete"
|
|
|
|
@handleComplete="handleComplete"
|
|
|
|
@rules="getRules"
|
|
|
|
@rules="getRules"
|
|
|
|
@upDateRight="upDateRightFun"
|
|
|
|
|
|
|
|
@inGoodsSave="inGoodsSaveFun"
|
|
|
|
@inGoodsSave="inGoodsSaveFun"
|
|
|
|
@handleRefsh="handleRefshRight"
|
|
|
|
@handleRefsh="handleRefshRight"
|
|
|
|
@openFlag="setOpenFlag"
|
|
|
|
@openFlag="setOpenFlag"
|
|
|
@ -228,7 +226,6 @@
|
|
|
|
const bookingDetails = ref({ ...initDetail })
|
|
|
|
const bookingDetails = ref({ ...initDetail })
|
|
|
|
// // const bookingDetails = ref()
|
|
|
|
// // const bookingDetails = ref()
|
|
|
|
const tabActiveKey = ref('1')
|
|
|
|
const tabActiveKey = ref('1')
|
|
|
|
const inChildLoading = ref(false)
|
|
|
|
|
|
|
|
const RefrightContent = ref()
|
|
|
|
const RefrightContent = ref()
|
|
|
|
const excuteRules = ref([])
|
|
|
|
const excuteRules = ref([])
|
|
|
|
const excuteRulesType = ref('')
|
|
|
|
const excuteRulesType = ref('')
|
|
|
@ -240,7 +237,6 @@
|
|
|
|
const RefediMore = ref(null)
|
|
|
|
const RefediMore = ref(null)
|
|
|
|
const RefNoteInfo = ref(null)
|
|
|
|
const RefNoteInfo = ref(null)
|
|
|
|
const mainOrderActiveKey = ref('1-1')
|
|
|
|
const mainOrderActiveKey = ref('1-1')
|
|
|
|
const inPageLoading = ref(false)
|
|
|
|
|
|
|
|
const detailsLoadOver = ref(false)
|
|
|
|
const detailsLoadOver = ref(false)
|
|
|
|
// const cargoRules = ref(rules.cargoRules)
|
|
|
|
// const cargoRules = ref(rules.cargoRules)
|
|
|
|
const isLockBooking = ref(false)
|
|
|
|
const isLockBooking = ref(false)
|
|
|
@ -300,7 +296,6 @@
|
|
|
|
Showtabs.value = false
|
|
|
|
Showtabs.value = false
|
|
|
|
if (id.value) {
|
|
|
|
if (id.value) {
|
|
|
|
getDetail()
|
|
|
|
getDetail()
|
|
|
|
getRightAll()
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
detailsLoadOver.value = false
|
|
|
|
detailsLoadOver.value = false
|
|
|
|
isLockBooking.value = false
|
|
|
|
isLockBooking.value = false
|
|
|
@ -308,11 +303,6 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 获取详情
|
|
|
|
// 获取详情
|
|
|
|
function getDetail() {
|
|
|
|
function getDetail() {
|
|
|
|
if (inPageLoading.value) {
|
|
|
|
|
|
|
|
return false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
inPageLoading.value = true
|
|
|
|
|
|
|
|
inChildLoading.value = true
|
|
|
|
|
|
|
|
detailsLoadOver.value = false
|
|
|
|
detailsLoadOver.value = false
|
|
|
|
loading.value = true
|
|
|
|
loading.value = true
|
|
|
|
BookingOrderGet({
|
|
|
|
BookingOrderGet({
|
|
|
@ -329,9 +319,12 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
loading.value = false
|
|
|
|
loading.value = false
|
|
|
|
setDeatilsFun(res, false)
|
|
|
|
if (!res.data.ctnPriceInfo.length) {
|
|
|
|
|
|
|
|
res.data.ctnPriceInfo = [{}]
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log(res)
|
|
|
|
|
|
|
|
bookingDetails.value = res.data
|
|
|
|
appStore.settopDown(false)
|
|
|
|
appStore.settopDown(false)
|
|
|
|
inPageLoading.value = false
|
|
|
|
|
|
|
|
// 解决 业务来源 联动问题
|
|
|
|
// 解决 业务来源 联动问题
|
|
|
|
// if (res.data.sourceId) {
|
|
|
|
// if (res.data.sourceId) {
|
|
|
|
// let sourceDetailIdArr: any = []
|
|
|
|
// let sourceDetailIdArr: any = []
|
|
|
@ -594,7 +587,6 @@
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// OCR 赋值
|
|
|
|
// OCR 赋值
|
|
|
|
function SetOCR(data) {
|
|
|
|
function SetOCR(data) {
|
|
|
|
console.log(data)
|
|
|
|
|
|
|
|
bookingDetails.value = { ...bookingDetails.value, ...data }
|
|
|
|
bookingDetails.value = { ...bookingDetails.value, ...data }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 组件的值发生变化时
|
|
|
|
// 组件的值发生变化时
|
|
|
@ -754,9 +746,6 @@
|
|
|
|
function handleComplete() {
|
|
|
|
function handleComplete() {
|
|
|
|
checkSaveFun({ type: 'details', hasChange: false })
|
|
|
|
checkSaveFun({ type: 'details', hasChange: false })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function upDateRightFun() {
|
|
|
|
|
|
|
|
getRightAll()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function inGoodsSaveFun(data) {
|
|
|
|
function inGoodsSaveFun(data) {
|
|
|
|
inGoodsSave.value = data
|
|
|
|
inGoodsSave.value = data
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -889,15 +878,6 @@
|
|
|
|
tabStore.closeTabByKey(fullPath, router)
|
|
|
|
tabStore.closeTabByKey(fullPath, router)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function setDeatilsFun(res, overSet = false) {
|
|
|
|
|
|
|
|
let newData = res.data
|
|
|
|
|
|
|
|
bookingDetails.value = {
|
|
|
|
|
|
|
|
...bookingDetails.value,
|
|
|
|
|
|
|
|
...newData,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function getRightAll() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="less">
|
|
|
|
<style lang="less">
|
|
|
|