|
@@ -209,6 +209,7 @@ export default {
|
|
|
salesTotal: 0,
|
|
|
purchaseTotal: 0
|
|
|
},
|
|
|
+ oldTableData: [],
|
|
|
tableData: [],
|
|
|
columns: [
|
|
|
{
|
|
@@ -217,7 +218,8 @@ export default {
|
|
|
const columnsDeep = this.columns.toSpliced(0, 2)
|
|
|
columnsDeep.unshift({
|
|
|
label: '序号',
|
|
|
- prop: 'tOrder'
|
|
|
+ prop: 'tOrder',
|
|
|
+ width: '60',
|
|
|
})
|
|
|
return <cy-comm-table
|
|
|
columns={ columnsDeep }
|
|
@@ -229,7 +231,8 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: '序号',
|
|
|
- prop: 'fOrder'
|
|
|
+ prop: 'fOrder',
|
|
|
+ width: '60',
|
|
|
},
|
|
|
{
|
|
|
label: '验收单货物编号',
|
|
@@ -314,6 +317,7 @@ export default {
|
|
|
accountsTotal: 0,
|
|
|
netAccounts: 0
|
|
|
},
|
|
|
+ oldTableDataInfo: [],
|
|
|
tableDataInfo: [],
|
|
|
columnsInfo: [
|
|
|
{
|
|
@@ -322,7 +326,8 @@ export default {
|
|
|
const columnsDeep = this.columnsInfo.toSpliced(0, 2)
|
|
|
columnsDeep.unshift({
|
|
|
label: '序号',
|
|
|
- prop: 'tOrder'
|
|
|
+ prop: 'tOrder',
|
|
|
+ width: '60',
|
|
|
})
|
|
|
return <cy-comm-table
|
|
|
columns={ columnsDeep }
|
|
@@ -334,7 +339,8 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: '序号',
|
|
|
- prop: 'fOrder'
|
|
|
+ prop: 'fOrder',
|
|
|
+ width: '60'
|
|
|
},
|
|
|
{
|
|
|
label: '验收单货物编号',
|
|
@@ -459,6 +465,7 @@ export default {
|
|
|
methods: {
|
|
|
initData(data) {
|
|
|
const { financingBasicInfo, financingGoodsInfoList, financingAccountsReceivableInfoList, financingApplicantInfo, fileStorageDOList } = data
|
|
|
+ this.oldTableData = financingGoodsInfoList
|
|
|
this.tableData = this.handlerGoodsFormat(financingGoodsInfoList)
|
|
|
const { applicantContact,
|
|
|
applicantContactNumber,
|
|
@@ -476,6 +483,7 @@ export default {
|
|
|
applicantDesignatedBank
|
|
|
}
|
|
|
this.fileStorageList = fileStorageDOList
|
|
|
+ this.oldTableDataInfo = financingAccountsReceivableInfoList
|
|
|
this.tableDataInfo = this.handlerGoodsFormat(financingAccountsReceivableInfoList)
|
|
|
this.getGoodsCalc(financingGoodsInfoList)
|
|
|
this.getReceivableCalc(financingAccountsReceivableInfoList)
|
|
@@ -567,7 +575,7 @@ export default {
|
|
|
},
|
|
|
// 底层货物
|
|
|
getMultipleList(multipleList) {
|
|
|
- var listData = []
|
|
|
+ this.oldTableData = []
|
|
|
multipleList.forEach(item => {
|
|
|
const { acceptanceNumber, settlementNumber, expectedSettlementDate, acceptanceGoodInfos } = item
|
|
|
const list = acceptanceGoodInfos.map(item => {
|
|
@@ -576,11 +584,11 @@ export default {
|
|
|
item.expectedSettlementDate = expectedSettlementDate
|
|
|
return item
|
|
|
})
|
|
|
- listData.push(...list)
|
|
|
+ this.oldTableData.push(...list)
|
|
|
})
|
|
|
- this.getGoodsCalc(listData)
|
|
|
- this.getReceivable(listData)
|
|
|
- this.tableData = this.handlerGoodsFormat(listData)
|
|
|
+ this.getGoodsCalc(this.oldTableData)
|
|
|
+ this.getReceivable(this.oldTableData)
|
|
|
+ this.tableData = this.handlerGoodsFormat(this.oldTableData)
|
|
|
},
|
|
|
// 底层货物计算
|
|
|
getGoodsCalc(list) {
|
|
@@ -601,6 +609,7 @@ export default {
|
|
|
// 生成底层
|
|
|
getReceivable(list) {
|
|
|
generateReceivable(list).then(({ data }) => {
|
|
|
+ this.oldTableDataInfo = data
|
|
|
this.tableDataInfo = this.handlerGoodsFormat(data)
|
|
|
this.getReceivableCalc(data)
|
|
|
})
|
|
@@ -628,8 +637,8 @@ export default {
|
|
|
financingBasicInfo: {
|
|
|
...this.ruleForm
|
|
|
},
|
|
|
- financingGoodsInfoList: this.tableData,
|
|
|
- financingAccountsReceivableInfoList: this.tableDataInfo,
|
|
|
+ financingGoodsInfoList: this.oldTableData,
|
|
|
+ financingAccountsReceivableInfoList: this.oldTableDataInfo,
|
|
|
financingApplicantInfo: {
|
|
|
applicantContact,
|
|
|
applicantContactNumber,
|