|
@@ -153,7 +153,7 @@ export default {
|
|
discountMoney: '',
|
|
discountMoney: '',
|
|
deposit: '',
|
|
deposit: '',
|
|
remark: '',
|
|
remark: '',
|
|
- defaultDepotId: '',
|
|
|
|
|
|
+ depotId: '',
|
|
queryParam: {
|
|
queryParam: {
|
|
number: '',
|
|
number: '',
|
|
materialParam: '',
|
|
materialParam: '',
|
|
@@ -304,12 +304,12 @@ export default {
|
|
},
|
|
},
|
|
handleOk() {
|
|
handleOk() {
|
|
if (this.selectType === 'list') {
|
|
if (this.selectType === 'list') {
|
|
- this.getDepotByCurrentUser()
|
|
|
|
this.getSelectBillRows()
|
|
this.getSelectBillRows()
|
|
this.selectType = 'detail'
|
|
this.selectType = 'detail'
|
|
this.title = '请选择单据明细'
|
|
this.title = '请选择单据明细'
|
|
if (this.selectBillRows && this.selectBillRows.length > 0) {
|
|
if (this.selectBillRows && this.selectBillRows.length > 0) {
|
|
let record = this.selectBillRows[0]
|
|
let record = this.selectBillRows[0]
|
|
|
|
+ console.log('this.selectBillRows======', this.selectBillRows)
|
|
this.linkNumber = record.number
|
|
this.linkNumber = record.number
|
|
this.organId = record.organId
|
|
this.organId = record.organId
|
|
this.accountId = record.accountId
|
|
this.accountId = record.accountId
|
|
@@ -317,6 +317,7 @@ export default {
|
|
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
|
|
|
|
+ this.depotId = record.depotId
|
|
this.initListColumns()
|
|
this.initListColumns()
|
|
this.loadDetailData(1)
|
|
this.loadDetailData(1)
|
|
}
|
|
}
|
|
@@ -331,7 +332,7 @@ export default {
|
|
this.discountMoney,
|
|
this.discountMoney,
|
|
this.deposit,
|
|
this.deposit,
|
|
this.remark,
|
|
this.remark,
|
|
- this.defaultDepotId,
|
|
|
|
|
|
+ this.depotId,
|
|
this.accountId,
|
|
this.accountId,
|
|
this.salesMan
|
|
this.salesMan
|
|
)
|
|
)
|
|
@@ -439,22 +440,6 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- //加载默认仓库id
|
|
|
|
- getDepotByCurrentUser() {
|
|
|
|
- getAction('/depot/findDepotByCurrentUser').then((res) => {
|
|
|
|
- if (res.code === 200) {
|
|
|
|
- if (res.data.length === 1) {
|
|
|
|
- this.defaultDepotId = res.data[0].id + ''
|
|
|
|
- } else {
|
|
|
|
- for (let i = 0; i < res.data.length; i++) {
|
|
|
|
- if (res.data[i].isDefault) {
|
|
|
|
- this.defaultDepotId = res.data[i].id + ''
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
rowAction(record, index) {
|
|
rowAction(record, index) {
|
|
return {
|
|
return {
|
|
on: {
|
|
on: {
|