|
|
|
@ -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')
|
|
|
|
|