业务办理-领用记录查询查看时没有值

This commit is contained in:
BianLzhaoMin 2025-07-04 11:24:18 +08:00
parent 17c0d69623
commit f7dd157444
1 changed files with 40 additions and 14 deletions

View File

@ -586,22 +586,48 @@ export default {
} }
// //
this.$refs.maForm.clearValidate('deviceType') this.$refs.maForm.clearValidate('deviceType')
},
// type
$route: {
handler(newVal) {
if (newVal.query.type == 'edit') {
this.isEdit = true
this.isDetail = false
this.id = newVal.query.id
const obj = Object.assign({}, newVal, { title: '领用申请编辑' })
this.$tab.updatePage(obj)
} else if (newVal.query.type == 'detail') {
this.isEdit = false
this.isDetail = true
this.id = newVal.query.id
const obj = Object.assign({}, this.$route, { title: '领用申请详情' })
this.$tab.updatePage(obj)
}
if (this.isEdit || this.isDetail) {
console.log('isEdit', this.isEdit)
this.getTaskInfo()
}
},
deep: true,
immediate: true
} }
}, },
created() { created() {
// getCode() // getCode()
if (this.$route.query.type == 'edit') { if (this.$route.query.type == 'edit') {
this.isEdit = true // this.isEdit = true
this.isDetail = false // this.isDetail = false
this.id = this.$route.query.id // this.id = this.$route.query.id
const obj = Object.assign({}, this.$route, { title: '领用申请编辑' }) // const obj = Object.assign({}, this.$route, { title: '' })
this.$tab.updatePage(obj) // this.$tab.updatePage(obj)
} else if (this.$route.query.type == 'detail') { } else if (this.$route.query.type == 'detail') {
this.isEdit = false // this.isEdit = false
this.isDetail = true // this.isDetail = true
this.id = this.$route.query.id // this.id = this.$route.query.id
const obj = Object.assign({}, this.$route, { title: '领用申请详情' }) // const obj = Object.assign({}, this.$route, { title: '' })
this.$tab.updatePage(obj) // this.$tab.updatePage(obj)
} else { } else {
this.isEdit = false this.isEdit = false
this.isDetail = false this.isDetail = false
@ -613,10 +639,10 @@ export default {
this.equipmentType() // this.equipmentType() //
this.getStandardConfigList() // this.getStandardConfigList() //
this.getMaTypeNameOpt() // this.getMaTypeNameOpt() //
if (this.isEdit || this.isDetail) { // if (this.isEdit || this.isDetail) {
console.log('isEdit', this.isEdit) // console.log('isEdit', this.isEdit)
this.getTaskInfo() // this.getTaskInfo()
} // }
console.log('🚀 ~ created ~ this.isDetail:', this.isDetail) console.log('🚀 ~ created ~ this.isDetail:', this.isDetail)
console.log(this.$store, 'this.$store.getters') console.log(this.$store, 'this.$store.getters')
console.log(this.$route.query, 'this.$route.query') console.log(this.$route.query, 'this.$route.query')