|
|
@ -124,6 +124,10 @@ export default {
|
|
|
|
type: Object,
|
|
|
|
type: Object,
|
|
|
|
required: true,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
getOrderList: {
|
|
|
|
|
|
|
|
type: Function,
|
|
|
|
|
|
|
|
required: true
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
@ -212,7 +216,11 @@ export default {
|
|
|
|
deleteCodesTempById(tQuery)
|
|
|
|
deleteCodesTempById(tQuery)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
if (response.code === 20000) {
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
|
|
|
if ((this.codeArry.length - 1) === 0) {
|
|
|
|
|
|
|
|
this.getOrderList();
|
|
|
|
|
|
|
|
}
|
|
|
|
this.getCodeList();
|
|
|
|
this.getCodeList();
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(response.message);
|
|
|
|
this.$message.error(response.message);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -257,7 +265,7 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
this.list = [];
|
|
|
|
this.codeArry = [];
|
|
|
|
this.total = 0;
|
|
|
|
this.total = 0;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|