|
@@ -290,6 +290,7 @@
|
|
|
:data-source="fabricLoss.fabricAccidentList"
|
|
|
bordered
|
|
|
:pagination="false"
|
|
|
+ :footer="accidentFooterShow"
|
|
|
>
|
|
|
<!-- 事故单 -->
|
|
|
<span slot="accidentNum" slot-scope="text">
|
|
@@ -934,6 +935,19 @@ export default {
|
|
|
></a-table>
|
|
|
)
|
|
|
},
|
|
|
+ //事故单 -----合计
|
|
|
+ accidentFooterShow(){
|
|
|
+ return (
|
|
|
+ <a-table
|
|
|
+ rowKey={Math.random}
|
|
|
+ bordered={false}
|
|
|
+ pagination={false}
|
|
|
+ columns={this.accidentListColumns}
|
|
|
+ dataSource={this.accidentFooterDataSource || []}
|
|
|
+ showHeader={false}
|
|
|
+ ></a-table>
|
|
|
+ )
|
|
|
+ },
|
|
|
// 开票成本-面料 ----合计行
|
|
|
clothFooterShow(data) {
|
|
|
return (
|
|
@@ -1144,6 +1158,18 @@ export default {
|
|
|
item.inatMoney = parseFloat(inatMoney.toFixed(4));
|
|
|
item.imoney = parseFloat(imoney.toFixed(4));
|
|
|
return [item];
|
|
|
+ },
|
|
|
+ accidentFooterDataSource(){
|
|
|
+ //费用支出 合计
|
|
|
+ var item = {
|
|
|
+ "cvenAbbName":"合计"
|
|
|
+ };
|
|
|
+ var ioriSum = 0
|
|
|
+ for (let row of this.fabricLoss.fabricAccidentList){
|
|
|
+ ioriSum += row.ioriSum*1
|
|
|
+ }
|
|
|
+ item.ioriSum = parseFloat(ioriSum.toFixed(4));
|
|
|
+ return [item];
|
|
|
}
|
|
|
}
|
|
|
}
|