|
@@ -11,6 +11,8 @@
|
|
|
@columns-change="handleColumnChange"
|
|
@columns-change="handleColumnChange"
|
|
|
:cache-key="cacheKeyUrl"
|
|
:cache-key="cacheKeyUrl"
|
|
|
:selection.sync="selection"
|
|
:selection.sync="selection"
|
|
|
|
|
+ :show-summary="showSummary"
|
|
|
|
|
+ :summary-method="getSummaries"
|
|
|
>
|
|
>
|
|
|
<!-- 表头工具栏 -->
|
|
<!-- 表头工具栏 -->
|
|
|
<template v-slot:toolbar>
|
|
<template v-slot:toolbar>
|
|
@@ -999,6 +1001,7 @@
|
|
|
getGoodsByCategoryId
|
|
getGoodsByCategoryId
|
|
|
} from '@/api/goodsManage/index';
|
|
} from '@/api/goodsManage/index';
|
|
|
import { parameterGetByCode } from '@/api/main/index.js';
|
|
import { parameterGetByCode } from '@/api/main/index.js';
|
|
|
|
|
+ import { getSummaries } from '@/utils/util.js';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
mixins: [dictMixins, tabMixins],
|
|
mixins: [dictMixins, tabMixins],
|
|
@@ -1149,6 +1152,10 @@
|
|
|
unitIdKey: 'saleUnitId'
|
|
unitIdKey: 'saleUnitId'
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
|
|
+ },
|
|
|
|
|
+ showSummary: {
|
|
|
|
|
+ type: Boolean,
|
|
|
|
|
+ default: false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
@@ -1209,7 +1216,7 @@
|
|
|
// 基础列定义
|
|
// 基础列定义
|
|
|
let baseColumns = [
|
|
let baseColumns = [
|
|
|
{
|
|
{
|
|
|
- width: 45,
|
|
|
|
|
|
|
+ width: 65,
|
|
|
type: 'index',
|
|
type: 'index',
|
|
|
columnKey: 'index',
|
|
columnKey: 'index',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
@@ -1773,6 +1780,13 @@
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ getSummaries(param) {
|
|
|
|
|
+ return getSummaries(
|
|
|
|
|
+ param,
|
|
|
|
|
+ ['saleCount'],
|
|
|
|
|
+ ' '
|
|
|
|
|
+ );
|
|
|
|
|
+ },
|
|
|
handleCountChange(row, index,weightType) {
|
|
handleCountChange(row, index,weightType) {
|
|
|
// 数量变化时,若为生产加工类型,触发含税小计计算
|
|
// 数量变化时,若为生产加工类型,触发含税小计计算
|
|
|
if (this.quoteType === 2) {
|
|
if (this.quoteType === 2) {
|