Browse Source

取消发货的不计算在合计中

java8
han\hanst 8 months ago
parent
commit
a5cba2d1b3
  1. 13
      src/views/modules/ecss/codelnotify.vue
  2. 9
      src/views/modules/ecss/codelnotifyConfirm.vue
  3. 9
      src/views/modules/ecss/createDeclaration.vue

13
src/views/modules/ecss/codelnotify.vue

@ -141,9 +141,14 @@
:min-width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<template v-if="item.columnProp === 'ttlAmount' || item.columnProp === 'sumPrice'">
<span>{{!!scope.row[item.columnProp]?scope.row[item.columnProp].toFixed(2):''}}</span>
</template>
<template v-else>
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
</template>
</template>
</el-table-column>
<el-table-column
fixed="left"
@ -1650,10 +1655,7 @@
//
if (data && data.code == 0) {
this.dataList2 = data.rows
this.dataList2.forEach(o => {
o.ttlAmount = o.ttlAmount.toFixed(2);
o.sumPrice = o.sumPrice.toFixed(2);
});
} else {
this.dataList2 = [];
}
@ -2019,7 +2021,8 @@
sums[index] = '合计';
return;
}
const values = this.dataList2.map(item => Number(item[column.property]));
let sumDataList = this.dataList2.filter(item => item.qty>0);
const values = sumDataList.map(item => Number(item[column.property]));
if (!values.every(value => isNaN(value))) {
switch(column.property) {
case 'qty':

9
src/views/modules/ecss/codelnotifyConfirm.vue

@ -119,9 +119,14 @@
:min-width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<template v-if="item.columnProp === 'ttlAmount' || item.columnProp === 'sumPrice'">
<span>{{!!scope.row[item.columnProp]?scope.row[item.columnProp].toFixed(2):''}}</span>
</template>
<template v-else>
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
</template>
</template>
</el-table-column>
<!-- <el-table-column-->
<!-- fixed="left"-->
@ -2056,10 +2061,6 @@
//
if (data && data.code == 0) {
this.dataList2 = data.rows
this.dataList2.forEach(o => {
o.ttlAmount = o.ttlAmount.toFixed(2);
o.sumPrice = o.sumPrice.toFixed(2);
});
} else {
this.dataList2 = [];
}

9
src/views/modules/ecss/createDeclaration.vue

@ -120,9 +120,14 @@
:min-width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<template v-if="item.columnProp === 'ttlAmount' || item.columnProp === 'sumPrice'">
<span>{{!!scope.row[item.columnProp]?scope.row[item.columnProp].toFixed(2):''}}</span>
</template>
<template v-else>
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
</template>
</template>
</el-table-column>
</el-table>
</el-tab-pane>
@ -1584,10 +1589,6 @@
//
if (data && data.code == 0) {
this.dataList2 = data.rows
this.dataList2.forEach(o => {
o.ttlAmount = o.ttlAmount.toFixed(2);
o.sumPrice = o.sumPrice.toFixed(2);
});
} else {
this.dataList2 = [];
}

Loading…
Cancel
Save