完善单据关联,带上账户和销售人员的信息

This commit is contained in:
jishenghua 2025-03-17 17:23:04 +08:00
parent 5c84df18e9
commit 0469b178d5
5 changed files with 15 additions and 5 deletions

View File

@ -131,6 +131,8 @@
selectType: 'list', selectType: 'list',
linkNumber: '', linkNumber: '',
organId: '', organId: '',
accountId: '',
salesMan: '',
discountMoney: '', discountMoney: '',
deposit: '', deposit: '',
remark: '', remark: '',
@ -285,6 +287,8 @@
let record = this.selectBillRows[0] let record = this.selectBillRows[0]
this.linkNumber = record.number this.linkNumber = record.number
this.organId = record.organId this.organId = record.organId
this.accountId = record.accountId
this.salesMan = record.salesMan
this.discountMoney = record.discountMoney this.discountMoney = record.discountMoney
this.deposit = record.changeAmount - record.finishDeposit this.deposit = record.changeAmount - record.finishDeposit
this.remark = record.remark this.remark = record.remark
@ -294,7 +298,7 @@
} else { } else {
if(this.selectedDetailRowKeys.length) { if(this.selectedDetailRowKeys.length) {
this.getSelectBillDetailRows() this.getSelectBillDetailRows()
this.$emit('ok', this.selectBillDetailRows, this.linkNumber, this.organId, this.discountMoney, this.deposit, this.remark, this.defaultDepotId) this.$emit('ok', this.selectBillDetailRows, this.linkNumber, this.organId, this.discountMoney, this.deposit, this.remark, this.defaultDepotId, this.accountId, this.salesMan)
this.close() this.close()
} else { } else {
this.$message.warning('抱歉请选择单据明细') this.$message.warning('抱歉请选择单据明细')

View File

@ -388,7 +388,7 @@
this.$refs.linkBillList.show('入库', '采购', '供应商', "1,2,3") this.$refs.linkBillList.show('入库', '采购', '供应商', "1,2,3")
this.$refs.linkBillList.title = "请选择采购入库" this.$refs.linkBillList.title = "请选择采购入库"
}, },
linkBillListOk(selectBillDetailRows, linkNumber, organId, discountMoney, deposit, remark) { linkBillListOk(selectBillDetailRows, linkNumber, organId, discountMoney, deposit, remark, depotId, accountId) {
this.rowCanEdit = false this.rowCanEdit = false
this.materialTable.columns[1].type = FormTypes.normal this.materialTable.columns[1].type = FormTypes.normal
this.changeFormTypes(this.materialTable.columns, 'preNumber', 1) this.changeFormTypes(this.materialTable.columns, 'preNumber', 1)
@ -426,6 +426,7 @@
'discountMoney': discountMoney, 'discountMoney': discountMoney,
'discountLastMoney': discountLastMoney, 'discountLastMoney': discountLastMoney,
'changeAmount': discountLastMoney, 'changeAmount': discountLastMoney,
'accountId': accountId,
'remark': remark 'remark': remark
}) })
}) })

View File

@ -441,7 +441,7 @@
this.$refs.linkBillList.show('其它', '采购订单', '供应商', "1,3") this.$refs.linkBillList.show('其它', '采购订单', '供应商', "1,3")
this.$refs.linkBillList.title = "请选择采购订单" this.$refs.linkBillList.title = "请选择采购订单"
}, },
linkBillListOk(selectBillDetailRows, linkNumber, organId, discountMoney, deposit, remark, depotId) { linkBillListOk(selectBillDetailRows, linkNumber, organId, discountMoney, deposit, remark, depotId, accountId) {
let that = this let that = this
this.rowCanEdit = false this.rowCanEdit = false
this.materialTable.columns[1].type = FormTypes.normal this.materialTable.columns[1].type = FormTypes.normal
@ -486,6 +486,7 @@
'discountLastMoney': discountLastMoney, 'discountLastMoney': discountLastMoney,
'deposit': deposit, 'deposit': deposit,
'changeAmount': changeAmount, 'changeAmount': changeAmount,
'accountId': accountId,
'remark': remark 'remark': remark
}) })
}) })

View File

@ -398,7 +398,7 @@
this.$refs.linkBillList.show('出库', '销售', '客户', "1,2,3") this.$refs.linkBillList.show('出库', '销售', '客户', "1,2,3")
this.$refs.linkBillList.title = "请选择销售出库" this.$refs.linkBillList.title = "请选择销售出库"
}, },
linkBillListOk(selectBillDetailRows, linkNumber, organId, discountMoney, deposit, remark) { linkBillListOk(selectBillDetailRows, linkNumber, organId, discountMoney, deposit, remark, depotId, accountId, salesMan) {
this.rowCanEdit = false this.rowCanEdit = false
this.materialTable.columns[1].type = FormTypes.normal this.materialTable.columns[1].type = FormTypes.normal
this.changeFormTypes(this.materialTable.columns, 'preNumber', 1) this.changeFormTypes(this.materialTable.columns, 'preNumber', 1)
@ -436,8 +436,10 @@
'discountMoney': discountMoney, 'discountMoney': discountMoney,
'discountLastMoney': discountLastMoney, 'discountLastMoney': discountLastMoney,
'changeAmount': discountLastMoney, 'changeAmount': discountLastMoney,
'accountId': accountId,
'remark': remark 'remark': remark
}) })
this.personList.value = salesMan
}) })
} }
}, },

View File

@ -458,7 +458,7 @@
this.$refs.linkBillList.show('其它', '销售订单', '客户', "1,3") this.$refs.linkBillList.show('其它', '销售订单', '客户', "1,3")
this.$refs.linkBillList.title = "请选择销售订单" this.$refs.linkBillList.title = "请选择销售订单"
}, },
linkBillListOk(selectBillDetailRows, linkNumber, organId, discountMoney, deposit, remark, depotId) { linkBillListOk(selectBillDetailRows, linkNumber, organId, discountMoney, deposit, remark, depotId, accountId, salesMan) {
let that = this let that = this
this.rowCanEdit = false this.rowCanEdit = false
this.materialTable.columns[1].type = FormTypes.normal this.materialTable.columns[1].type = FormTypes.normal
@ -503,8 +503,10 @@
'discountLastMoney': discountLastMoney, 'discountLastMoney': discountLastMoney,
'deposit': deposit, 'deposit': deposit,
'changeAmount': changeAmount, 'changeAmount': changeAmount,
'accountId': accountId,
'remark': remark 'remark': remark
}) })
this.personList.value = salesMan
}) })
//判断后进行仓库的切换 //判断后进行仓库的切换
if(depotId) { if(depotId) {