|
@@ -199,7 +199,7 @@
|
|
|
'noTaxTotalPrice',
|
|
'noTaxTotalPrice',
|
|
|
'taxAmount',
|
|
'taxAmount',
|
|
|
'accountableAmount',
|
|
'accountableAmount',
|
|
|
- 'availableAmount',
|
|
|
|
|
|
|
+ // 剩余可对账金额 availableAmount 只作展示,不参与任何判定,故不纳入标红
|
|
|
// 单价与税率组
|
|
// 单价与税率组
|
|
|
'taxSinglePrice',
|
|
'taxSinglePrice',
|
|
|
'noTaxSinglePrice',
|
|
'noTaxSinglePrice',
|
|
@@ -411,8 +411,8 @@
|
|
|
text('productName', '物料名称', 165, { slot: 'product' }),
|
|
text('productName', '物料名称', 165, { slot: 'product' }),
|
|
|
text('spec', '规格型号', 130),
|
|
text('spec', '规格型号', 130),
|
|
|
text('unit', '单位', 75),
|
|
text('unit', '单位', 75),
|
|
|
- text('batchNo', '批次号', 100),
|
|
|
|
|
- num('inventoryQuantity', '库存数量', 100)
|
|
|
|
|
|
|
+ text('batchNo', '批次号', 100)
|
|
|
|
|
+ // num('inventoryQuantity', '库存数量', 100)
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -471,7 +471,7 @@
|
|
|
money('noTaxTotalPrice', '不含税金额', 125),
|
|
money('noTaxTotalPrice', '不含税金额', 125),
|
|
|
money('taxAmount', '税额', 110),
|
|
money('taxAmount', '税额', 110),
|
|
|
money('accountableAmount', '可对账金额', 130),
|
|
money('accountableAmount', '可对账金额', 130),
|
|
|
- money('availableAmount', '剩余可对账金额', 145)
|
|
|
|
|
|
|
+ // money('availableAmount', '剩余可对账金额', 145)
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -612,8 +612,10 @@
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // 发起对账的金额口径按「可对账金额」accountableAmount 计算。
|
|
|
|
|
+ // availableAmount(剩余可对账金额)只作为列表/详情里的参考数据展示,不参与判定。
|
|
|
const total = +list
|
|
const total = +list
|
|
|
- .reduce((s, r) => s + (Number(r.availableAmount) || 0), 0)
|
|
|
|
|
|
|
+ .reduce((s, r) => s + (Number(r.accountableAmount) || 0), 0)
|
|
|
.toFixed(2);
|
|
.toFixed(2);
|
|
|
try {
|
|
try {
|
|
|
await this.$confirm(
|
|
await this.$confirm(
|
|
@@ -624,7 +626,7 @@
|
|
|
: `确认按已勾选的 ${list.length} 条明细发起对账?`) +
|
|
: `确认按已勾选的 ${list.length} 条明细发起对账?`) +
|
|
|
`<br/>往来单位:${contacts[0]}` +
|
|
`<br/>往来单位:${contacts[0]}` +
|
|
|
`<br/>本次对账金额:<b>¥${this.money(total)}</b>` +
|
|
`<br/>本次对账金额:<b>¥${this.money(total)}</b>` +
|
|
|
- `<br/><span style="color:#8b95a5;font-size:12px">对账金额由后端按各明细剩余可对账金额全额生成</span>`,
|
|
|
|
|
|
|
+ `<br/><span style="color:#8b95a5;font-size:12px">对账金额由后端按各明细可对账金额全额生成</span>`,
|
|
|
'发起对账',
|
|
'发起对账',
|
|
|
{
|
|
{
|
|
|
type: 'warning',
|
|
type: 'warning',
|
|
@@ -681,8 +683,9 @@
|
|
|
this.handleReconOne(row);
|
|
this.handleReconOne(row);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
+ /** 行底色:可对账金额为 0 时标记出来 */
|
|
|
rowClassName({ row }) {
|
|
rowClassName({ row }) {
|
|
|
- return Number(row.availableAmount) <= 0 ? 'pool-row-bad' : '';
|
|
|
|
|
|
|
+ return Number(row.accountableAmount) <= 0 ? 'pool-row-bad' : '';
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
* 金额类单元格取负值时标红。
|
|
* 金额类单元格取负值时标红。
|