|
|
@@ -120,7 +120,8 @@
|
|
|
<span v-else>{{ scope.row.marks }}</span>
|
|
|
</template>
|
|
|
<template slot-scope="{row}" slot="tare">
|
|
|
- <el-input v-if="row.edit" v-model="row.tare" size="small" clearable placeholder="请输入箱皮重" @change="computeChange(row)"></el-input>
|
|
|
+ <el-input v-if="row.edit" v-model="row.tare" size="small" clearable placeholder="请输入箱皮重"
|
|
|
+ @change="computeChange(row)"></el-input>
|
|
|
<span v-else>{{ row.tare }}</span>
|
|
|
</template>
|
|
|
<!-- <template slot-scope="{row}" slot="vgmWeight">
|
|
|
@@ -269,6 +270,35 @@ export default {
|
|
|
refreshBtn: false,
|
|
|
columnBtn: false,
|
|
|
menu: false,
|
|
|
+ summaryText: "合计",
|
|
|
+ showSummary: true,
|
|
|
+ sumColumnList: [
|
|
|
+ {
|
|
|
+ name: 'quantity',
|
|
|
+ type: 'sum',
|
|
|
+ decimals: 0
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'grossWeight',
|
|
|
+ type: 'sum',
|
|
|
+ decimals: 3
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'measurement',
|
|
|
+ type: 'sum',
|
|
|
+ decimals: 3
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'tare',
|
|
|
+ type: 'sum',
|
|
|
+ decimals: 0
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'vgmWeight',
|
|
|
+ type: 'sum',
|
|
|
+ decimals: 3
|
|
|
+ }
|
|
|
+ ],
|
|
|
column: [
|
|
|
{
|
|
|
label: "箱型",
|
|
|
@@ -287,7 +317,12 @@ export default {
|
|
|
width: "140",
|
|
|
overHidden: true,
|
|
|
},
|
|
|
-
|
|
|
+ {
|
|
|
+ label: "HB/L NO",
|
|
|
+ prop: "hblno",
|
|
|
+ width: "140",
|
|
|
+ overHidden: true,
|
|
|
+ },
|
|
|
{
|
|
|
label: "件数",
|
|
|
prop: "quantity",
|
|
|
@@ -366,8 +401,8 @@ export default {
|
|
|
},
|
|
|
created() { },
|
|
|
methods: {
|
|
|
- computeChange(row){
|
|
|
- row.vgmWeight=Number(Number(row.grossWeight?row.grossWeight:0)+Number(row.tare?row.tare:0)).toFixed(3)
|
|
|
+ computeChange(row) {
|
|
|
+ row.vgmWeight = Number(Number(row.grossWeight ? row.grossWeight : 0) + Number(row.tare ? row.tare : 0)).toFixed(3)
|
|
|
},
|
|
|
rowDicChange(name, row, el) {
|
|
|
if (name == 'podStationCname') {
|