修改问题

master
sunzehua 1 year ago
parent bd656fb63d
commit 355f6184c7

@ -48,7 +48,7 @@ export default {
onEdit(targetKey, action) {
const _that = this
if (targetKey.includes('BookingDetail')) {
console.log(Object.keys(this.needSavePages).includes(targetKey), this.needSavePages[targetKey], this.needSavePages[targetKey])
console.log(Object.keys(this.needSavePages).includes(targetKey), this.needSavePages[targetKey].details, this.needSavePages[targetKey].hbList)
if (
Object.keys(this.needSavePages).includes(targetKey) &&
(this.needSavePages[targetKey].details || this.needSavePages[targetKey].hbList)

@ -836,6 +836,7 @@ export default {
.then(res => {
const defaultData = JSON.parse(res.data.configJson)
this.defaultData = defaultData
console.log(defaultData)
const Fn = item => {
const field = item.field.split('.')
let label = field[1].toLowerCase()
@ -917,10 +918,11 @@ export default {
if (item.Carrier) {
if (this.bookingDetails.carrierid == item.Carrier) {
Fn(item)
} else {
item.code = ''
Fn(item)
}
}
// else {
// item.code = ''
// Fn(item)
// }
} else {
Fn(item)
}
@ -1086,6 +1088,9 @@ export default {
if (!res.data.bookingEDIExt) {
res.data.bookingEDIExt = bookingEDIExt
}
if (res.data.cargoid == 'R') {
this.cargoRules['description'][0].required = true
}
if (res.data.ctnInputs.length > 0) {
res.data.ctnInputs.map((item, index) => {
if (item.weightype === '累加') {

Loading…
Cancel
Save