1.修复部分bug

prod
x_z 2 years ago
parent e54026a9bb
commit 17f7945977

@ -454,7 +454,7 @@ export default {
deleteLoading: false, deleteLoading: false,
busTypes: [], busTypes: [],
currentRow: { currentRow: {
billNo:null, billNo: null,
}, },
bizQuery: { bizQuery: {
productName: null, productName: null,
@ -578,14 +578,12 @@ export default {
}; };
deleteInvByBillNo(params).then((res) => { deleteInvByBillNo(params).then((res) => {
if (res.code === 20000) { if (res.code === 20000) {
debugger
this.$message.success("删除成功"); this.$message.success("删除成功");
this.list = []; this.list = [];
this.detailList = []; this.detailList = [];
this.clearDetailList(); this.clearDetailList();
this.filterQuery={ this.filterQuery.billNo = null;
billNo: "", this.currentRow.billNo = "";
};
} }
}).catch((error) => { }).catch((error) => {
this.$message.error("删除失败"); this.$message.error("删除失败");
@ -660,8 +658,12 @@ export default {
this.getBizDetailList(); this.getBizDetailList();
}, },
getBizDetailList() { getBizDetailList() {
debugger
if (null == this.currentRow) {
return;
}
if (isBlank(this.currentRow.billNo)) { if (isBlank(this.currentRow.billNo)) {
this.$message.error("请先选择需要查询的单据!") this.$message.error("请先选择需要查询的单据!");
return; return;
} }
this.bizDetailLoading = true; this.bizDetailLoading = true;
@ -696,6 +698,9 @@ export default {
this.getCodeDetailList(); this.getCodeDetailList();
}, },
getCodeDetailList() { getCodeDetailList() {
if (null == this.currentRow) {
return;
}
if (isBlank(this.currentRow.billNo)) { if (isBlank(this.currentRow.billNo)) {
this.$message.error("请先选择需要查询的单据!") this.$message.error("请先选择需要查询的单据!")
return; return;
@ -734,6 +739,9 @@ export default {
this.getResultDetailList(); this.getResultDetailList();
}, },
getResultDetailList() { getResultDetailList() {
if (null == this.currentRow) {
return;
}
if (isBlank(this.currentRow.billNo)) { if (isBlank(this.currentRow.billNo)) {
this.$message.error("请先选择需要查询的单据!") this.$message.error("请先选择需要查询的单据!")
return; return;

@ -550,7 +550,7 @@ export default {
}, },
created() { created() {
this.getInvList(); this.getInvList();
if (null !== this.maOrder) { if (null !== this.maOrder && !isBlank(this.maOrder.orderId)) {
this.formData.orderId = this.maOrder.orderId; this.formData.orderId = this.maOrder.orderId;
this.formData.createTime = this.maOrder.createTime; this.formData.createTime = this.maOrder.createTime;
this.formData.invCode = this.maOrder.invWarehouseCode; this.formData.invCode = this.maOrder.invWarehouseCode;

Loading…
Cancel
Save