1.修复单据编辑bug

prod
x_z 2 years ago
parent 9a310c8d87
commit c20befb329

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

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

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

Loading…
Cancel
Save