给采购入库和销售出库关联单据的时候自动加载默认的仓库id

This commit is contained in:
jishenghua
2024-02-03 23:20:20 +08:00
parent 6d2cd8af63
commit 847acce9a4
3 changed files with 23 additions and 3 deletions

View File

@@ -433,7 +433,7 @@
this.$refs.linkBillList.show('其它', '采购订单', '供应商', "1,3")
this.$refs.linkBillList.title = "选择采购订单"
},
linkBillListOk(selectBillDetailRows, linkNumber, organId, discountMoney, deposit, remark) {
linkBillListOk(selectBillDetailRows, linkNumber, organId, discountMoney, deposit, remark, depotId) {
this.rowCanEdit = false
this.materialTable.columns[1].type = FormTypes.normal
this.changeFormTypes(this.materialTable.columns, 'preNumber', 1)
@@ -450,6 +450,7 @@
info.taxMoney = (info.allPrice*taxRate/100).toFixed(2)-0
info.taxLastMoney = (info.allPrice + info.taxMoney).toFixed(2)-0
}
info.depotId = depotId ? depotId:''
info.linkId = info.id
allTaxLastMoney += info.taxLastMoney
listEx.push(info)

View File

@@ -451,7 +451,7 @@
this.$refs.linkBillList.show('其它', '销售订单', '客户', "1,3")
this.$refs.linkBillList.title = "选择销售订单"
},
linkBillListOk(selectBillDetailRows, linkNumber, organId, discountMoney, deposit, remark) {
linkBillListOk(selectBillDetailRows, linkNumber, organId, discountMoney, deposit, remark, depotId) {
this.rowCanEdit = false
this.materialTable.columns[1].type = FormTypes.normal
this.changeFormTypes(this.materialTable.columns, 'preNumber', 1)
@@ -468,6 +468,7 @@
info.taxMoney = (info.allPrice*taxRate/100).toFixed(2)-0
info.taxLastMoney = (info.allPrice + info.taxMoney).toFixed(2)-0
}
info.depotId = depotId ? depotId:''
info.linkId = info.id
allTaxLastMoney += info.taxLastMoney
listEx.push(info)