1.修复单据编辑bug

prod
x_z 2 years ago
parent 9a310c8d87
commit c20befb329

@ -29,7 +29,7 @@
<span>{{ fromTypeMap[scope.row.fromType] }}</span>
</template>
</el-table-column>
<el-table-column label="往来单位" prop="fromName" width="220">
<el-table-column label="往来单位" prop="fromCorpName" width="220">
</el-table-column>
<el-table-column label="当前部门" prop="deptName" width="120">
</el-table-column>
@ -382,6 +382,7 @@
>
<IoEditOrderCodeDetail
:order="order"
:getOrderList="getList"
></IoEditOrderCodeDetail>
</el-dialog>
@ -534,6 +535,9 @@ export default {
},
//
getList() {
if (isBlank(this.filterQuery.billNo)) {
return;
}
this.loading = true;
this.currentRow = {billNo: ""};
this.orderIds = [];
@ -575,6 +579,8 @@ export default {
this.$message.success("删除成功");
this.list = [];
this.detailList = [];
this.filterQuery.billNo = null;
this.clearDetailList();
}
}).catch((error) => {
this.$message.error("删除失败");

@ -116,6 +116,10 @@ export default {
order: {
type: Object,
required: true
},
getOrderList: {
type: Function,
required: true
}
},
data() {
@ -201,12 +205,13 @@ export default {
let params = {
createTime: this.createTime,
auditTime: this.auditTime,
orderIds: this.orderIds
orderIds: [this.filterQuery.orderId]
};
updateOrderInfo(params).then((res) => {
if (res.code === 20000) {
this.$message.success("修改成功");
this.getList();
this.getOrderList();
}
}).catch((error) => {
this.$message.error(error.message);

@ -258,14 +258,20 @@ export default {
});
},
getSpaceList() {
let params = {invWarehouseCode: this.filterQuery.invCode};
let params = {
invWarehouseCode: this.filterQuery.invCode,
status: 1
};
getInvSpaceList(params).then((res) => {
this.spaceList = res.data.list || [];
})
},
formInvChange() {
this.formData.invSpaceCode = null;
let params = {invWarehouseCode: this.formData.invCode}
let params = {
invWarehouseCode: this.formData.invCode,
status: 1
};
getInvSpaceList(params).then((res) => {
this.formSpaceList = res.data.list || [];
})

Loading…
Cancel
Save