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