张同海 2 years ago
parent 60dec0e0ce
commit 034c46d76c

@ -100,7 +100,12 @@ import basicItem from './components/basicItem'
import ediMore from './components/ediMore'
import sedOrder from './components/sedOrder'
import { BookingOrderGet, BookingOrderUpdate, BookingOrderAdd, BookingOrderAddOrUpdate } from '@/api/modular/main/BookingLedger'
import {
BookingOrderGet,
BookingOrderUpdate,
BookingOrderAdd,
BookingOrderAddOrUpdate
} from '@/api/modular/main/BookingLedger'
import { mapGetters } from 'vuex'
export default {
name: 'BookingDetail',

@ -261,7 +261,7 @@ export default {
fileList: [],
bookingLogList: [],
logList: [],
showKey: ['1'],
showKey: [],
fileModelvisible: false,
fileModelconfirm: false,
authorization: 'authorization-text',
@ -276,19 +276,35 @@ export default {
locaService: []
}
},
created() {
this.getRemark()
this.getFile()
this.getBookingLog()
this.getLog()
this.getLocal()
let items = null
if (window.localStorage.getItem('locaService')) {
items = JSON.parse(window.localStorage.getItem('locaService'))[this.id]
created() {},
watch: {
'$route.query': {
immediate: true,
handler(nD, oD) {
if (!nD.id) {
this.bookingServiceItem = []
this.fileList = []
this.remarkList = []
this.logList = []
} else {
this.init()
}
}
}
this.locaService = items || []
},
methods: {
init() {
this.getRemark()
this.getFile()
this.getBookingLog()
this.getLog()
this.getLocal()
let items = null
if (window.localStorage.getItem('locaService')) {
items = JSON.parse(window.localStorage.getItem('locaService'))[this.id]
}
this.locaService = items || []
},
getLocal() {
this.bookingServiceItem = this.$options.filters['dictData']('booking_service_item')
this.bookingAttachType = this.$options.filters['dictData']('booking_attach_type')

@ -506,7 +506,7 @@ export default {
},
addSubmit() {
this.addVisible = false
this.$router.push({ name: 'BookingDetail', query: { type: this.carrierRadio } })
this.$router.push({ name: 'BookingDetailAdd', query: { type: this.carrierRadio } })
},
addCancel() {
this.addVisible = false

@ -29,13 +29,13 @@ export default {
required: true
},
// eslint-disable-next-line vue/require-default-prop
formRes: {
fromRes: {
type: Object,
required: false
}
},
watch: {
formRes: {
fromRes: {
handler(nval, oval) {
console.log('编辑结果发生变化', nval, oval)
if (Object.keys(nval).length > 0 && nval && oval) {

Loading…
Cancel
Save