内部码选入单据时加上判断

dev
wangwei 2 years ago
parent 9be928c396
commit 88fc636c44

@ -414,7 +414,8 @@ export default {
.then(response => { .then(response => {
this.loading = false; this.loading = false;
if (response.code == 20000) { if (response.code == 20000) {
this.list = response.data.list || []; //this.list = response.data.list || [];
this.list = [];
this.total = response.data.total || 0; this.total = response.data.total || 0;
this.detailList = []; this.detailList = [];
} else { } else {
@ -430,7 +431,9 @@ export default {
}, },
combine(){ combine(){
if(this.orderQuery==null && this.orderQuery.length==0){ debugger
console.log(this.orderQuery)
if(this.orderQuery==null || this.orderQuery.length==0){
this.$message.error("请先选择单据!") this.$message.error("请先选择单据!")
return; return;
} }

Loading…
Cancel
Save