更新 #397

Merged
zwq merged 1 commits from projects/zg-zwq into projects/zg-test 2024-09-14 09:02:44 +08:00
16 changed files with 303 additions and 212 deletions

54
src/api/cost/allCost.js Normal file
View File

@ -0,0 +1,54 @@
/*
* @Author: zwq
* @Date: 2024-04-18 16:53:17
* @LastEditors: zwq
* @LastEditTime: 2024-09-06 14:35:13
* @Description:
*/
import request from '@/utils/request'
// 获得总成本统计-按日期分页
export function getCostSumPage(query) {
return request({
url: '/monitoring/cost-sum/page',
method: 'get',
params: query
})
}
// 更新总成本统计-按日期
export function updateCostSum(data) {
return request({
url: '/monitoring/cost-sum/update',
method: 'put',
data: data
})
}
// 获得原片成本统计成本查询分页
export function getRawCostStatisticsRealtimePage(query) {
return request({
url: '/monitoring/cost-sum/page',
method: 'get',
params: query
})
}
// 导出总成本统计-按日期 Excel
export function exportCostSumExcel(query) {
return request({
url: '/monitoring/cost-sum/export-excel',
method: 'get',
params: query,
responseType: 'blob'
})
}
// 导出原片成本统计-历史成本 Excel
export function exportRawCostStatisticsHisExcel(query) {
return request({
url: '/monitoring/cost-sum/export-excel',
method: 'get',
params: query,
responseType: 'blob'
})
}

View File

@ -2,7 +2,7 @@
* @Author: zwq * @Author: zwq
* @Date: 2021-11-18 14:16:25 * @Date: 2021-11-18 14:16:25
* @LastEditors: zwq * @LastEditors: zwq
* @LastEditTime: 2024-04-19 16:59:45 * @LastEditTime: 2024-09-11 15:49:14
* @Description: * @Description:
--> -->
<template> <template>
@ -11,46 +11,71 @@
:rules="dataRule" :rules="dataRule"
ref="dataForm" ref="dataForm"
@keyup.enter.native="dataFormSubmit()" @keyup.enter.native="dataFormSubmit()"
label-position="top"
label-width="80px"> label-width="80px">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="原料名称" prop="materialName"> <el-form-item label="日期" prop="recTime">
<el-input <el-date-picker
v-model="dataForm.materialName" v-model="dataForm.recTime"
type="date"
value-format="timestamp"
:style="{ width: '100%' }"
disabled disabled
placeholder="请输入原料名称" /> placeholder="日期"></el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="单价" prop="matPrice"> <el-form-item label="总成本" prop="price">
<el-input
v-model="dataForm.matPrice"
disabled
style="width: 70%"
placeholder="请输入单价" />
(/)
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="总价" prop="price">
<el-input-number <el-input-number
:min="0" :min="0"
style="width: 80%" style="width: 80%"
v-model="dataForm.price" v-model="dataForm.price"
clearable disabled
placeholder="请输入总价" /> placeholder="总成本" />
() ()
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="累计用量" prop="quantity"> <el-form-item label="原片下片面积" prop="originArea">
<el-input-number <el-input-number
:min="0" :min="0"
style="width: 80%" style="width: 80%"
v-model="dataForm.quantity" v-model="dataForm.originArea"
clearable clearable
placeholder="请输入累计用量" /> placeholder="请输入原片下片面积" />
() </el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="深加工下片面积" prop="deepArea">
<el-input-number
:min="0"
style="width: 80%"
v-model="dataForm.deepArea"
clearable
placeholder="请输入深加工下片面积" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="原片成本" prop="originPrice">
<el-input-number
:min="0"
style="width: 80%"
v-model="dataForm.originPrice"
clearable
placeholder="请输入原片成本" />
()
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="深加工成本" prop="deepPrice">
<el-input-number
:min="0"
style="width: 80%"
v-model="dataForm.deepPrice"
clearable
placeholder="请输入深加工成本" />
()
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -59,28 +84,24 @@
<script> <script>
import basicAdd from '@/mixins/basic-add'; import basicAdd from '@/mixins/basic-add';
import { updateMaterialHis } from '@/api/cost/costMaterial'; import { updateCostSum } from '@/api/cost/allCost';
export default { export default {
mixins: [basicAdd], mixins: [basicAdd],
data() { data() {
return { return {
urlOptions: { urlOptions: {
updateURL: updateMaterialHis, updateURL: updateCostSum,
}, },
dataForm: { dataForm: {
id: undefined, id: undefined,
originArea: undefined,
deepArea: undefined,
originPrice: undefined,
deepPrice: undefined,
price: undefined, price: undefined,
quantity: undefined,
matPrice: undefined,
materialName: undefined,
recTime: undefined,
}, },
dataRule: { dataRule: {
price: [{ required: true, message: '总价不能为空', trigger: 'blur' }],
quantity: [
{ required: true, message: '累计用量不能为空', trigger: 'blur' },
],
}, },
}; };
}, },
@ -99,10 +120,17 @@ export default {
if (!valid) { if (!valid) {
return false; return false;
} }
this.dataForm.modifyPrice = this.dataForm.price; const data = {
this.dataForm.modifyQuantity = this.dataForm.quantity; id: this.dataForm.id,
statisticType: this.dataForm.statisticType,
modifyOriginArea: this.dataForm.originArea,
modifyOriginPrice: this.dataForm.originPrice,
modifyDeepArea: this.dataForm.deepArea,
modifyDeepPrice: this.dataForm.deepPrice,
modifyPrice: this.dataForm.deepPrice + this.dataForm.originPrice,
};
// //
this.urlOptions.updateURL(this.dataForm).then((response) => { this.urlOptions.updateURL(data).then((response) => {
this.$modal.msgSuccess('修改成功'); this.$modal.msgSuccess('修改成功');
this.visible = false; this.visible = false;
this.$emit('refreshDataList'); this.$emit('refreshDataList');

View File

@ -1,4 +1,15 @@
<template> <template>
<div>
<div style="background: #f2f4f9; height: 40px; width: 100%">
<ButtonNav :menus="['按日期', '按规格']" @change="currentMenu">
<template v-slot:tab1>
<div>按日期</div>
</template>
<template v-slot:tab2>
<div>按规格</div>
</template>
</ButtonNav>
</div>
<div class="app-container energyOverlimitLog"> <div class="app-container energyOverlimitLog">
<div v-show="activeName === 'his'"> <div v-show="activeName === 'his'">
<!-- 搜索工作栏 --> <!-- 搜索工作栏 -->
@ -14,10 +25,6 @@
ref="searchBarForm2" ref="searchBarForm2"
@headBtnClick="buttonClick" /> @headBtnClick="buttonClick" />
</div> </div>
<el-tabs v-model="activeName" @tab-click="toggleTab">
<el-tab-pane label="历史成本" name="his"></el-tab-pane>
<el-tab-pane label="成本查询" name="now"></el-tab-pane>
</el-tabs>
<!-- 列表 --> <!-- 列表 -->
<div v-if="activeName === 'his'"> <div v-if="activeName === 'his'">
<base-table <base-table
@ -60,19 +67,23 @@
@refreshDataList="successSubmit"></add-or-update> @refreshDataList="successSubmit"></add-or-update>
</base-dialog> </base-dialog>
</div> </div>
</div>
</template> </template>
<script> <script>
import AddOrUpdate from './add-or-updata'; import AddOrUpdate from './add-or-updata';
import basicPage from '@/mixins/basic-page'; import basicPage from '@/mixins/basic-page';
import { getMaterialPage } from '@/api/base/material';
import { import {
getMaterialHisPage, getCostSumPage,
getMaterialRealtimePage, getRawCostStatisticsRealtimePage,
} from '@/api/cost/costMaterial'; exportRawStatisticsRealtimeExcel,
exportCostSumExcel
} from '@/api/cost/allCost';
import { parseTime } from '@/filter/code-filter'; import { parseTime } from '@/filter/code-filter';
import tableHeightMixin from '@/mixins/lb/tableHeightMixin'; import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
import typeRule from './typeRule'; import typeRule from './typeRule';
import ButtonNav from '@/components/ButtonNav';
const tableProps = [ const tableProps = [
{ {
prop: 'recTime', prop: 'recTime',
@ -80,56 +91,66 @@ const tableProps = [
filter: (val) => parseTime(val, '{y}年{m}月{d}日'), filter: (val) => parseTime(val, '{y}年{m}月{d}日'),
}, },
{ {
prop: 'materialName', prop: 'originArea',
label: '原料名称', label: '原片下片面积',
}, },
{ {
prop: 'matPrice', prop: 'deepArea',
label: '单价(元/吨)', label: '深加工下片面积',
},
{
prop: 'originPrice',
label: '原片成本/元',
align: 'right', align: 'right',
}, },
{ {
prop: 'quantity', prop: 'deepPrice',
label: '累计使用量(吨)', label: '深加工成本/元',
align: 'right',
}, },
{ {
prop: 'price', prop: 'price',
label: '总价(元)', label: '总成本/元',
align: 'right', align: 'right',
}, },
]; ];
const tableProps2 = [ const tableProps2 = [
{ {
prop: 'materialName', prop: 'bindObjectName',
label: '原料名称', label: '产品名称',
}, },
{ {
prop: 'matPrice', prop: 'spec',
label: '单价(元/吨)', label: '规格',
},
{
prop: 'costSum',
label: '原片单片成本/元',
align: 'right', align: 'right',
}, },
{ {
prop: 'time', prop: 'costPiece',
label: '单价生效时间', label: '深加工单片成本/元',
subcomponent: typeRule, align: 'right',
}, },
{ {
prop: 'quantity', prop: 'costPiece',
label: '累计使用量(吨)', label: '成品单片成本/元',
align: 'right',
}, },
{ {
prop: 'price', prop: 'costArea',
label: '总价(元)', label: '每平米成本/元',
align: 'right', align: 'right',
}, },
]; ];
export default { export default {
name: 'costMaterial', name: 'allCost',
mixins: [basicPage, tableHeightMixin], mixins: [basicPage, tableHeightMixin],
data() { data() {
return { return {
urlOptions: { urlOptions: {
getDataListURL: getMaterialHisPage, getDataListURL: getCostSumPage,
}, },
formConfig: [ formConfig: [
{ {
@ -144,14 +165,6 @@ export default {
defaultSelect: 1, // , defaultSelect: 1, // ,
clearable: false, clearable: false,
}, },
{
type: 'select',
label: '原料名称',
selectOptions: [],
param: 'name',
labelField: 'name',
filterable: true,
},
{ {
type: 'datePicker', type: 'datePicker',
label: '时间范围', label: '时间范围',
@ -169,16 +182,17 @@ export default {
name: 'search', name: 'search',
color: 'primary', color: 'primary',
}, },
{
type: 'separate',
},
{
type: 'button',
btnName: '导出',
name: 'export',
color: 'warning',
},
], ],
formConfig2: [ formConfig2: [
{
type: 'select',
label: '原料名称',
selectOptions: [],
param: 'name',
labelField: 'name',
filterable: true,
},
{ {
type: 'datePicker', type: 'datePicker',
label: '时间范围', label: '时间范围',
@ -196,6 +210,15 @@ export default {
name: 'search', name: 'search',
color: 'primary', color: 'primary',
}, },
{
type: 'separate',
},
{
type: 'button',
btnName: '导出',
name: 'export',
color: 'warning',
},
], ],
listQuery: { listQuery: {
statisticType: 1, statisticType: 1,
@ -204,12 +227,10 @@ export default {
tableProps, tableProps,
tableProps2, tableProps2,
tableBtn: [ tableBtn: [
this.$auth.hasPermi(`monitoring:cost-material-his:update`) {
? {
type: 'edit', type: 'edit',
btnName: '编辑', btnName: '编辑',
} }
: undefined,
].filter((v) => v), ].filter((v) => v),
tableData: [], tableData: [],
tableData2: [], tableData2: [],
@ -217,24 +238,26 @@ export default {
}, },
components: { components: {
AddOrUpdate, AddOrUpdate,
ButtonNav,
}, },
created() { created() {
const params = {
pageNo: 1,
pageSize: 100,
};
getMaterialPage(params).then((response) => {
this.formConfig[1].selectOptions = response.data.list;
this.formConfig2[0].selectOptions = response.data.list;
});
}, },
methods: { methods: {
buttonClick(val) { buttonClick(val) {
if (val.statisticType === 2) {
this.tableProps[0].filter = (val) =>
parseTime(val, '{y}年第{w}周');
}else{
this.tableProps[0].filter = (val) =>
parseTime(val, '{y}年{m}月{d}日');
}
this.formConfig2[0].startPlaceholder = '开始时间';
this.formConfig2[0].endPlaceholder = '结束时间';
switch (val.btnName) { switch (val.btnName) {
case 'search': case 'search':
this.listQuery.pageNo = 1; this.listQuery.pageNo = 1;
this.listQuery.pageSize = 10; this.listQuery.pageSize = 10;
this.listQuery.materialId = val.name || null; this.listQuery.bindObjectId = val.name || null;
this.listQuery.statisticType = val.statisticType || 1; this.listQuery.statisticType = val.statisticType || 1;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null; this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
this.listQuery.endTime = val.searchTime this.listQuery.endTime = val.searchTime
@ -252,7 +275,8 @@ export default {
case 'export': case 'export':
this.listQuery.pageNo = 1; this.listQuery.pageNo = 1;
this.listQuery.pageSize = 10; this.listQuery.pageSize = 10;
this.listQuery.name = val.name; this.listQuery.bindObjectId = val.name || null;
this.listQuery.statisticType = val.statisticType || 1;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null; this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
this.listQuery.endTime = val.searchTime this.listQuery.endTime = val.searchTime
? val.searchTime[1].substr(0, 10) + ' 23:59:59' ? val.searchTime[1].substr(0, 10) + ' 23:59:59'
@ -263,7 +287,8 @@ export default {
console.log(val); console.log(val);
} }
}, },
toggleTab() { currentMenu(val) {
this.activeName = val === '按日期' ? 'his' : 'now';
if (this.activeName === 'his') { if (this.activeName === 'his') {
this.$refs.searchBarForm.resetForm(); this.$refs.searchBarForm.resetForm();
this.listQuery.name = null; this.listQuery.name = null;
@ -274,9 +299,14 @@ export default {
this.getDataList(); this.getDataList();
} else { } else {
this.$refs.searchBarForm2.resetForm(); this.$refs.searchBarForm2.resetForm();
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
this.listQuery.startTime = parseTime(start).substr(0, 10) + ' 00:00:00';
this.listQuery.endTime = parseTime(end).substr(0, 10) + ' 23:59:59';
this.formConfig2[0].startPlaceholder = parseTime(start).substr(0, 10);
this.formConfig2[0].endPlaceholder = parseTime(end).substr(0, 10);
this.listQuery.name = null; this.listQuery.name = null;
this.listQuery.startTime = null;
this.listQuery.endTime = null;
this.listQuery.pageNo = 1; this.listQuery.pageNo = 1;
this.getDataList2(); this.getDataList2();
} }
@ -284,7 +314,7 @@ export default {
// 2 // 2
getDataList2() { getDataList2() {
if (this.listQuery.startTime) { if (this.listQuery.startTime) {
getMaterialRealtimePage(this.listQuery).then((response) => { getRawCostStatisticsRealtimePage(this.listQuery).then((response) => {
this.tableData2 = response.data.list; this.tableData2 = response.data.list;
this.listQuery.total = response.data.total; this.listQuery.total = response.data.total;
}); });
@ -304,6 +334,30 @@ export default {
this.otherMethods(val); this.otherMethods(val);
} }
}, },
/** 导出按钮操作 */
handleExport() {
let exportURL, title;
if (this.activeName === 'his') {
exportURL = exportCostSumExcel;
title = '总成本统计-按日期';
} else {
exportURL = exportRawStatisticsRealtimeExcel;
title = '总成本统计-按规格';
}
//
let params = { ...this.listQuery };
params.pageNo = undefined;
params.pageSize = undefined;
this.$modal
.confirm('是否确认导出所有数据项?')
.then(() => {
return exportURL(params);
})
.then((response) => {
this.$download.excel(response, title + '报表.xls');
})
.catch(() => {});
},
}, },
}; };
</script> </script>

View File

@ -237,13 +237,10 @@ export default {
activeName: 'his', activeName: 'his',
tableProps, tableProps,
tableProps2, tableProps2,
tableBtn: [ tableBtn: [{
this.$auth.hasPermi(`monitoring:cost-deep-energy-his:update`)
? {
type: 'edit', type: 'edit',
btnName: '编辑', btnName: '编辑',
} }
: undefined,
].filter((v) => v), ].filter((v) => v),
tableData: [], tableData: [],
tableData2: [], tableData2: [],

View File

@ -212,13 +212,10 @@ export default {
activeName: 'his', activeName: 'his',
tableProps, tableProps,
tableProps2, tableProps2,
tableBtn: [ tableBtn: [{
this.$auth.hasPermi(`monitoring:cost-deep-othercost-his:update`)
? {
type: 'edit', type: 'edit',
btnName: '编辑', btnName: '编辑',
} }
: undefined,
].filter((v) => v), ].filter((v) => v),
tableData: [], tableData: [],
tableData2: [], tableData2: [],

View File

@ -82,19 +82,13 @@ export default {
exportURL: exportRawOthercostLogExcel, exportURL: exportRawOthercostLogExcel,
}, },
tableProps, tableProps,
tableBtn: [ tableBtn: [{
this.$auth.hasPermi(`monitoring:cost-deep-othercost-log:update`)
? {
type: 'edit', type: 'edit',
btnName: '编辑', btnName: '编辑',
} },{
: undefined,
this.$auth.hasPermi(`monitoring:cost-deep-othercost-log:delete`)
? {
type: 'delete', type: 'delete',
btnName: '删除', btnName: '删除',
} }
: undefined,
].filter((v) => v), ].filter((v) => v),
tableData: [], tableData: [],
formConfig: [ formConfig: [

View File

@ -2,7 +2,7 @@
* @Author: zwq * @Author: zwq
* @Date: 2024-04-15 16:52:38 * @Date: 2024-04-15 16:52:38
* @LastEditors: zwq * @LastEditors: zwq
* @LastEditTime: 2024-04-22 16:46:26 * @LastEditTime: 2024-09-11 15:30:41
* @Description: * @Description:
--> -->
<template> <template>
@ -77,13 +77,10 @@ export default {
getDataListURL: getRawOthercostRulePage, getDataListURL: getRawOthercostRulePage,
}, },
tableProps, tableProps,
tableBtn: [ tableBtn: [{
this.$auth.hasPermi(`monitoring:cost-deep-othercost-rule:update`)
? {
type: 'edit', type: 'edit',
btnName: '编辑', btnName: '编辑',
} }
: undefined,
].filter((v) => v), ].filter((v) => v),
tableData: [], tableData: [],
}; };

View File

@ -200,13 +200,10 @@ export default {
activeName: 'his', activeName: 'his',
tableProps, tableProps,
tableProps2, tableProps2,
tableBtn: [ tableBtn: [{
this.$auth.hasPermi(`monitoring:cost-deep-ratio-his:update`)
? {
type: 'edit', type: 'edit',
btnName: '编辑', btnName: '编辑',
} }
: undefined,
].filter((v) => v), ].filter((v) => v),
tableData: [], tableData: [],
tableData2: [], tableData2: [],

View File

@ -262,13 +262,10 @@ export default {
activeName: 'his', activeName: 'his',
tableProps, tableProps,
tableProps2, tableProps2,
tableBtn: [ tableBtn: [{
this.$auth.hasPermi(`monitoring:cost-material-his:update`)
? {
type: 'edit', type: 'edit',
btnName: '编辑', btnName: '编辑',
} }
: undefined,
].filter((v) => v), ].filter((v) => v),
tableData: [], tableData: [],
tableData2: [], tableData2: [],

View File

@ -237,13 +237,10 @@ export default {
activeName: 'his', activeName: 'his',
tableProps, tableProps,
tableProps2, tableProps2,
tableBtn: [ tableBtn: [{
this.$auth.hasPermi(`monitoring:cost-energy-his:update`)
? {
type: 'edit', type: 'edit',
btnName: '编辑', btnName: '编辑',
} }
: undefined,
].filter((v) => v), ].filter((v) => v),
tableData: [], tableData: [],
tableData2: [], tableData2: [],

View File

@ -234,13 +234,10 @@ export default {
activeName: 'his', activeName: 'his',
tableProps, tableProps,
tableProps2, tableProps2,
tableBtn: [ tableBtn: [{
this.$auth.hasPermi(`monitoring:cost-material-his:update`)
? {
type: 'edit', type: 'edit',
btnName: '编辑', btnName: '编辑',
} }
: undefined,
].filter((v) => v), ].filter((v) => v),
tableData: [], tableData: [],
tableData2: [], tableData2: [],

View File

@ -144,13 +144,10 @@ export default {
statisticType: 1, statisticType: 1,
}, },
tableProps, tableProps,
tableBtn: [ tableBtn: [{
this.$auth.hasPermi(`monitoring:cost-origin-ratio-his:update`)
? {
type: 'edit', type: 'edit',
btnName: '编辑', btnName: '编辑',
} }
: undefined,
].filter((v) => v), ].filter((v) => v),
tableData: [], tableData: [],
}; };

View File

@ -212,13 +212,10 @@ export default {
activeName: 'his', activeName: 'his',
tableProps, tableProps,
tableProps2, tableProps2,
tableBtn: [ tableBtn: [{
this.$auth.hasPermi(`monitoring:cost-othercost-his:update`)
? {
type: 'edit', type: 'edit',
btnName: '编辑', btnName: '编辑',
} }
: undefined,
].filter((v) => v), ].filter((v) => v),
tableData: [], tableData: [],
tableData2: [], tableData2: [],

View File

@ -82,19 +82,13 @@ export default {
exportURL: exportRawOthercostLogExcel, exportURL: exportRawOthercostLogExcel,
}, },
tableProps, tableProps,
tableBtn: [ tableBtn: [{
this.$auth.hasPermi(`monitoring:cost-othercost-log:update`)
? {
type: 'edit', type: 'edit',
btnName: '编辑', btnName: '编辑',
} },{
: undefined,
this.$auth.hasPermi(`monitoring:cost-othercost-log:delete`)
? {
type: 'delete', type: 'delete',
btnName: '删除', btnName: '删除',
} }
: undefined,
].filter((v) => v), ].filter((v) => v),
tableData: [], tableData: [],
formConfig: [ formConfig: [

View File

@ -2,7 +2,7 @@
* @Author: zwq * @Author: zwq
* @Date: 2024-04-15 16:52:38 * @Date: 2024-04-15 16:52:38
* @LastEditors: zwq * @LastEditors: zwq
* @LastEditTime: 2024-04-17 17:01:26 * @LastEditTime: 2024-09-11 15:31:12
* @Description: * @Description:
--> -->
<template> <template>
@ -77,13 +77,10 @@ export default {
getDataListURL: getRawOthercostRulePage, getDataListURL: getRawOthercostRulePage,
}, },
tableProps, tableProps,
tableBtn: [ tableBtn: [{
this.$auth.hasPermi(`monitoring:cost-othercost-rule:update`)
? {
type: 'edit', type: 'edit',
btnName: '编辑', btnName: '编辑',
} }
: undefined,
].filter((v) => v), ].filter((v) => v),
tableData: [], tableData: [],
}; };

View File

@ -261,13 +261,10 @@ export default {
activeName: 'his', activeName: 'his',
tableProps, tableProps,
tableProps2, tableProps2,
tableBtn: [ tableBtn: [{
this.$auth.hasPermi(`monitoring:cost-material-his:update`)
? {
type: 'edit', type: 'edit',
btnName: '编辑', btnName: '编辑',
} }
: undefined,
].filter((v) => v), ].filter((v) => v),
tableData: [], tableData: [],
tableData2: [], tableData2: [],