给订单增加导入明细Excel的功能

This commit is contained in:
季圣华
2023-05-12 00:49:42 +08:00
parent a3f1040a20
commit 4deb815d27
5 changed files with 142 additions and 1 deletions

View File

@@ -807,6 +807,19 @@ export const BillModalMixin = {
this.scanStatus = true
this.scanBarCode = ''
},
onImport(prefixNo) {
this.$refs.importItemModalForm.add(prefixNo);
},
importItemModalFormOk(data) {
this.materialTable.dataSource = data
this.$nextTick(() => {
let discountLastMoney = 0
for (let i = 0; i < data.length; i++) {
discountLastMoney += data[i].taxLastMoney
}
this.form.setFieldsValue({'discountLastMoney':discountLastMoney})
});
},
//保存并审核
handleOkAndCheck() {
this.billStatus = '1'