|
|
|
@ -1172,7 +1172,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
...mapGetters(['bookingList', 'bookingGridOptions', 'firstFlag', 'saveNeedNumber', 'deleteId'])
|
|
|
|
|
...mapGetters(['bookingList', 'bookingGridOptions', 'firstFlag', 'saveNeedNumber', 'deleteId', 'statusDIct'])
|
|
|
|
|
},
|
|
|
|
|
beforeRouteLeave(to, from, next) {
|
|
|
|
|
this.setBookingGridOptions(this.gridOptions)
|
|
|
|
@ -1261,23 +1261,14 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (item.bsstatusname) {
|
|
|
|
|
const arr = JSON.parse(localStorage.getItem('pro__DICT_TYPE_TREE_DATA'))
|
|
|
|
|
if (arr) {
|
|
|
|
|
let arrColor = ''
|
|
|
|
|
arr.value.forEach(ite => {
|
|
|
|
|
if (ite.code == 'booking_goods_status') {
|
|
|
|
|
arrColor = ite
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
if (arrColor) {
|
|
|
|
|
arrColor.children.forEach(ite => {
|
|
|
|
|
if (this.statusDIct) {
|
|
|
|
|
this.statusDIct.forEach(ite => {
|
|
|
|
|
if (ite.name == item.bsstatusname) {
|
|
|
|
|
item.bsstatusnameColor = ite.remark
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
item.bookstatus = bookstatus
|
|
|
|
|
item.refshYzitemLoad = false
|
|
|
|
|
item.dzmarkLoading = false
|
|
|
|
@ -2152,6 +2143,12 @@ export default {
|
|
|
|
|
this.formRes[form.label] = value
|
|
|
|
|
} else if (form.type === 'selectTree') {
|
|
|
|
|
this.formRes[form.label] = value
|
|
|
|
|
} else if (form.type === 'multiple') {
|
|
|
|
|
if (value.length == 0) {
|
|
|
|
|
this.formRes[form.label] = ''
|
|
|
|
|
} else {
|
|
|
|
|
this.formRes[form.label] = value
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.$forceUpdate()
|
|
|
|
|
},
|
|
|
|
@ -2272,23 +2269,14 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (item.bsstatusname) {
|
|
|
|
|
const arr = JSON.parse(localStorage.getItem('pro__DICT_TYPE_TREE_DATA'))
|
|
|
|
|
if (arr) {
|
|
|
|
|
let arrColor = ''
|
|
|
|
|
arr.value.forEach(ite => {
|
|
|
|
|
if (ite.code == 'booking_goods_status') {
|
|
|
|
|
arrColor = ite
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
if (arrColor) {
|
|
|
|
|
arrColor.children.forEach(ite => {
|
|
|
|
|
if (this.statusDIct) {
|
|
|
|
|
this.statusDIct.forEach(ite => {
|
|
|
|
|
if (ite.name == item.bsstatusname) {
|
|
|
|
|
item.bsstatusnameColor = ite.remark
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
item.bookstatus = bookstatus
|
|
|
|
|
item.refshYzitemLoad = false
|
|
|
|
|
item.atdLoading = false
|
|
|
|
|