维修
This commit is contained in:
@@ -96,6 +96,7 @@ export default {
|
|||||||
let res = await maintOpeate(this.pkObj, type)
|
let res = await maintOpeate(this.pkObj, type)
|
||||||
if (res.code === '1') {
|
if (res.code === '1') {
|
||||||
this.toast(res.desc)
|
this.toast(res.desc)
|
||||||
|
this._queryMaintenance(this.val1)
|
||||||
} else {
|
} else {
|
||||||
this.Dialog(res.desc)
|
this.Dialog(res.desc)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,7 +72,11 @@ export default {
|
|||||||
}
|
}
|
||||||
next()
|
next()
|
||||||
},
|
},
|
||||||
activated () {},
|
activated () {
|
||||||
|
if (this.$route.query.prePage === 'MaintainResults') {
|
||||||
|
this._queryMaintenance(this.val1)
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleChange1 (e, type) {
|
handleChange1 (e, type) {
|
||||||
if (type) {
|
if (type) {
|
||||||
@@ -97,6 +101,7 @@ export default {
|
|||||||
let res = await maintOpeate(this.pkObj, type)
|
let res = await maintOpeate(this.pkObj, type)
|
||||||
if (res.code === '1') {
|
if (res.code === '1') {
|
||||||
this.toast(res.desc)
|
this.toast(res.desc)
|
||||||
|
this._queryMaintenance(this.val1)
|
||||||
} else {
|
} else {
|
||||||
this.Dialog(res.desc)
|
this.Dialog(res.desc)
|
||||||
}
|
}
|
||||||
@@ -127,7 +132,8 @@ export default {
|
|||||||
if (this.pkId) {
|
if (this.pkId) {
|
||||||
this.$store.dispatch('materObj', this.pkObj)
|
this.$store.dispatch('materObj', this.pkObj)
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/MaintainResults'
|
path: '/MaintainResults',
|
||||||
|
query: {prePage: 'MaintainExecution'}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,10 +126,10 @@ export default {
|
|||||||
this.$store.dispatch('materObj', {})
|
this.$store.dispatch('materObj', {})
|
||||||
this.$router.back()
|
this.$router.back()
|
||||||
},
|
},
|
||||||
getValue (p) {
|
getValue (id, val) {
|
||||||
this.dataList.map(el => {
|
this.dataList.map(el => {
|
||||||
if (el.repair_dtl_id === p[0]) {
|
if (el.repair_dtl_id === id) {
|
||||||
el.isfinish = p[1]
|
el.isfinish = val
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,10 +88,10 @@ export default {
|
|||||||
this.pkId = this.pkId === e.maint_dtl_id ? '' : e.maint_dtl_id
|
this.pkId = this.pkId === e.maint_dtl_id ? '' : e.maint_dtl_id
|
||||||
this.pkObj = this.pkId === e.maint_dtl_id ? e : {}
|
this.pkObj = this.pkId === e.maint_dtl_id ? e : {}
|
||||||
},
|
},
|
||||||
getValue (p) {
|
getValue (id, val) {
|
||||||
this.dataList.map(el => {
|
this.dataList.map(el => {
|
||||||
if (el.maint_dtl_id === p[0]) {
|
if (el.maint_dtl_id === id) {
|
||||||
el.isfinish = p[1]
|
el.isfinish = val
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -130,7 +130,14 @@ export default {
|
|||||||
},
|
},
|
||||||
toCancle () {
|
toCancle () {
|
||||||
this.$store.dispatch('materObj', {})
|
this.$store.dispatch('materObj', {})
|
||||||
this.$router.back()
|
if (this.$route.query.prePage === 'MaintainExecution') {
|
||||||
|
this.$router.push({
|
||||||
|
path: '/MaintainExecution',
|
||||||
|
query: {prePage: 'MaintainResults'}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$router.back()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user