领用还回修改+备件

This commit is contained in:
2022-07-05 16:51:05 +08:00
parent 1575290605
commit c94bd6df55
3 changed files with 29 additions and 12 deletions

View File

@@ -98,9 +98,12 @@ export default {
async _queryIODis (e) {
let res = await queryIODis(e, this.$store.getters.materObj.iostorinvdtl_id)
if (res.code === '1') {
if (this.dataList.indexOf(res.content) > -1) {
} else {
if (!this.dataList.length) {
this.dataList.push(res.content)
} else {
if (JSON.stringify(this.dataList).indexOf(JSON.stringify(res.content)) == -1) {
this.dataList.push(res.content)
}
}
} else {
this.Dialog(res.desc)
@@ -111,6 +114,9 @@ export default {
let res = await confirmDis('1', this.$store.getters.materObj, this.dataList)
if (res.code === '1') {
this.toast(res.desc)
this.$router.push({
path: '/SparePartOutstore'
})
} else {
this.Dialog(res.desc)
}