1.修复接口404问题

2.修复分页,查询问题
zhairh
x_z 2 years ago
parent 373ee8f5d5
commit adb807eae4

@ -348,7 +348,7 @@ export default {
},
},
created() {
this.getByStockOrder();
// this.getByStockOrder();
}
}
</script>

@ -512,7 +512,7 @@ export default {
this.loading = false;
this.$message.error(res.message);
} else if (res.code === 7) {
this.$confirm(res.data, '提示', {
this.$confirm(res.message, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
@ -520,10 +520,6 @@ export default {
this.codeArray.push(this.formData.code);
}).catch(() => {
this.loading = false;
this.$message({
type: 'info',
message: '已取消'
});
});
}
});

@ -170,12 +170,6 @@ export default {
zczbhhzbapzbh: null,
ylqxzcrbarmc: null,
},
detailQuery: {
code: null,
productIdFk: null,
page: 1,
limit: 20,
},
list: [],
codeDetailVisible: false,
total: 0,

@ -232,7 +232,7 @@
<el-form-item>
<el-button-group>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="queryInvProducts"
<el-button type="primary" icon="search" @click="queryInvProductsList"
>查询
</el-button
>
@ -414,6 +414,10 @@ export default {
this.$message.warning("请先选择养护仓库!");
return;
}
if (isBlank(this.formData.code)) {
this.$message.error("请输入或扫描条码!")
return;
}
if (isBlank(this.formData.orderId)) {
this.saveOrder(this.formData.code);
return;
@ -494,6 +498,10 @@ export default {
this.filterQuery.page = val;
this.queryInvProducts();
},
queryInvProductsList() {
this.filterQuery.page = 1;
this.queryInvProducts();
},
queryInvProducts() {
this.filterQuery.invWarehouseCode = this.formData.invWarehouseCode;
this.filterQuery.invSpaceCode = this.formData.invSpaceCode;

@ -176,6 +176,7 @@ export default {
this.getList();
},
onSubmit() {
this.filterQuery.page = 1;
this.getList();
},
handleSizeChange(val) {
@ -263,7 +264,6 @@ export default {
}
})
}).catch((error) => {
this.$message.error(error.message);
});
},
},

Loading…
Cancel
Save