|
@@ -168,7 +168,9 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="table" style="margin-top: 20px">
|
|
|
- <el-table :data="goodsList" element-loading-text="Loading" border fit highlight-current-row stripe max-height="400">
|
|
|
+ <el-table :data="goodsList" element-loading-text="Loading" border fit highlight-current-row stripe max-height="400"
|
|
|
+ show-summary
|
|
|
+ :summary-method="$getSummaries">
|
|
|
<el-table-column align="center" label="序号" type="index" width="50"></el-table-column>
|
|
|
<el-table-column align="center" label="销售类型" prop="saleTypeName" min-width="120" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column align="center" label="物料编码" prop="materialNumber" min-width="120" show-overflow-tooltip></el-table-column>
|
|
@@ -190,7 +192,7 @@
|
|
|
<el-input v-model="scope.row.qty" size="small" type="number"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="订单金额" min-width="100" show-overflow-tooltip>
|
|
|
+ <el-table-column align="center" label="订单金额" min-width="100" prop="totalAmount" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
{{(scope.row.price || 0) * (scope.row.qty || 0)}}
|
|
|
</template>
|
|
@@ -431,6 +433,10 @@ export default {
|
|
|
getDetail() {
|
|
|
getEnginDetail({id: this.listItem.enginInfoId}).then(res => {
|
|
|
this.detailData = res.data;
|
|
|
+ res.data.items.forEach(item => {
|
|
|
+ item.sums1 = ['qty', 'hasOrderQty', 'hasDeliverQty'];
|
|
|
+ item.sums2 = ['totalAmount', 'price'];
|
|
|
+ })
|
|
|
this.goodsList = res.data.items;
|
|
|
})
|
|
|
},
|