1.修复接口404问题

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

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

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

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

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

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

Loading…
Cancel
Save