|
|
@@ -8,7 +8,10 @@
|
|
|
class="time-form"
|
|
|
@columns-change="handleColumnChange"
|
|
|
:cache-key="cacheKeyUrl"
|
|
|
- :maxHeight="350"
|
|
|
+ height="350"
|
|
|
+ full-height="calc(100vh - 76px)"
|
|
|
+ show-summary
|
|
|
+ :summary-method="getSummaries"
|
|
|
>
|
|
|
<!-- 表头工具栏 -->
|
|
|
<template v-slot:toolbar>
|
|
|
@@ -307,7 +310,7 @@
|
|
|
placeholder="请输入"
|
|
|
type="number"
|
|
|
:min="0"
|
|
|
- @input="changeCount(scope.row, scope.$index)"
|
|
|
+ @input="changeCount(scope.row, scope.$index,false)"
|
|
|
>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
@@ -442,6 +445,7 @@
|
|
|
import { levelList } from '@/enum/dict.js';
|
|
|
import { changeCount } from '@/BIZComponents/setProduct.js';
|
|
|
import { parameterGetByCode } from '@/api/main/index.js';
|
|
|
+ import { getSummaries } from '@/utils/util.js';
|
|
|
|
|
|
export default {
|
|
|
mixins: [dictMixins, getDynamicsColumns, tabMixins],
|
|
|
@@ -560,7 +564,7 @@
|
|
|
columns() {
|
|
|
return [
|
|
|
{
|
|
|
- width: 45,
|
|
|
+ width: 60,
|
|
|
type: 'index',
|
|
|
columnKey: 'index',
|
|
|
align: 'center',
|
|
|
@@ -960,6 +964,13 @@
|
|
|
this.$store.state.user.info.clientEnvironmentId;
|
|
|
},
|
|
|
methods: {
|
|
|
+ getSummaries(param) {
|
|
|
+ return getSummaries(
|
|
|
+ param,
|
|
|
+ ['saleCount', 'blockCount', 'totalCount'],
|
|
|
+ ' '
|
|
|
+ );
|
|
|
+ },
|
|
|
downloadFile(file) {
|
|
|
getFile({ objectName: file.storePath }, file.name);
|
|
|
},
|
|
|
@@ -1059,7 +1070,7 @@
|
|
|
);
|
|
|
},
|
|
|
//改变数量
|
|
|
- changeCount(row, index, isBlockCount) {
|
|
|
+ changeCount(row, index, isBlockCount=true) {
|
|
|
this.$set(
|
|
|
this.form,
|
|
|
'datasource[' + index + ']',
|
|
|
@@ -1190,7 +1201,7 @@
|
|
|
(Number(row.blockCount) * modelLong * modeWide * modeHight) /
|
|
|
1000000;
|
|
|
row.saleCount = row.totalCount;
|
|
|
- this.changeCount(row, index, true);
|
|
|
+ this.changeCount(row, index, false);
|
|
|
}
|
|
|
}
|
|
|
},
|