|
@@ -147,7 +147,7 @@
|
|
|
<el-table-column label="一级分类" align="center" prop="oneLevelClassify" width="180" />
|
|
|
<el-table-column label="二级分类" align="center" prop="twoLevelClassify" width="180" />
|
|
|
<el-table-column label="备注" align="center" prop="notes" width="180" />
|
|
|
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180" fixed="right">
|
|
|
+ <el-table-column label="操作" align="center" class-name="small-padding" width="180" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
<div v-if="scope.row.status == '0' || scope.row.status == '3'">
|
|
|
<el-button size="mini" type="text" @click="handleUpdate(scope.row)">修改
|
|
@@ -218,7 +218,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
- <el-form-item label="目标值汇总" prop="goalTotal">
|
|
|
+ <el-form-item label="目标值汇总(元)" prop="goalTotal">
|
|
|
<el-input v-model="form.goalTotal" placeholder="目标值汇总自动计算" disabled />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -320,12 +320,12 @@
|
|
|
</el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="合计" align="center" prop="totalGoal" width="180">
|
|
|
+ <el-table-column label="合计(元)" align="center" prop="totalGoal" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input v-model="annualSaleGoalMergeDetailsList[scope.$index].totalGoal" disabled></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="一月" align="center" prop="januaryGoal" width="220">
|
|
|
+ <el-table-column label="一月(元)" align="center" prop="januaryGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number
|
|
|
@change="computeTotalDetails(scope.$index, annualSaleGoalMergeDetailsList[scope.$index])"
|
|
@@ -333,7 +333,7 @@
|
|
|
:min="0"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="二月" align="center" prop="februaryGoal" width="220">
|
|
|
+ <el-table-column label="二月(元)" align="center" prop="februaryGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number
|
|
|
@change="computeTotalDetails(scope.$index, annualSaleGoalMergeDetailsList[scope.$index])"
|
|
@@ -341,7 +341,7 @@
|
|
|
:min="0"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="三月" align="center" prop="marchGoal" width="220">
|
|
|
+ <el-table-column label="三月(元)" align="center" prop="marchGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number
|
|
|
@change="computeTotalDetails(scope.$index, annualSaleGoalMergeDetailsList[scope.$index])"
|
|
@@ -349,7 +349,7 @@
|
|
|
:min="0"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="四月" align="center" prop="aprilGoal" width="220">
|
|
|
+ <el-table-column label="四月(元)" align="center" prop="aprilGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number
|
|
|
@change="computeTotalDetails(scope.$index, annualSaleGoalMergeDetailsList[scope.$index])"
|
|
@@ -357,7 +357,7 @@
|
|
|
:min="0"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="五月" align="center" prop="mayGoal" width="220">
|
|
|
+ <el-table-column label="五月(元)" align="center" prop="mayGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number
|
|
|
@change="computeTotalDetails(scope.$index, annualSaleGoalMergeDetailsList[scope.$index])"
|
|
@@ -365,7 +365,7 @@
|
|
|
</el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="六月" align="center" prop="juneGoal" width="220">
|
|
|
+ <el-table-column label="六月(元)" align="center" prop="juneGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number
|
|
|
@change="computeTotalDetails(scope.$index, annualSaleGoalMergeDetailsList[scope.$index])"
|
|
@@ -373,7 +373,7 @@
|
|
|
</el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="七月" align="center" prop="julyGoal" width="220">
|
|
|
+ <el-table-column label="七月(元)" align="center" prop="julyGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number
|
|
|
@change="computeTotalDetails(scope.$index, annualSaleGoalMergeDetailsList[scope.$index])"
|
|
@@ -381,7 +381,7 @@
|
|
|
</el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="八月" align="center" prop="augustGoal" width="220">
|
|
|
+ <el-table-column label="八月(元)" align="center" prop="augustGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number
|
|
|
@change="computeTotalDetails(scope.$index, annualSaleGoalMergeDetailsList[scope.$index])"
|
|
@@ -389,7 +389,7 @@
|
|
|
:min="0"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="九月" align="center" prop="septemberGoal" width="220">
|
|
|
+ <el-table-column label="九月(元)" align="center" prop="septemberGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number
|
|
|
@change="computeTotalDetails(scope.$index, annualSaleGoalMergeDetailsList[scope.$index])"
|
|
@@ -397,7 +397,7 @@
|
|
|
:min="0"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="十月" align="center" prop="octoberGoal" width="220">
|
|
|
+ <el-table-column label="十月(元)" align="center" prop="octoberGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number
|
|
|
@change="computeTotalDetails(scope.$index, annualSaleGoalMergeDetailsList[scope.$index])"
|
|
@@ -405,7 +405,7 @@
|
|
|
:min="0"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="十一月" align="center" prop="novemberGoal" width="220">
|
|
|
+ <el-table-column label="十一月(元)" align="center" prop="novemberGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number
|
|
|
@change="computeTotalDetails(scope.$index, annualSaleGoalMergeDetailsList[scope.$index])"
|
|
@@ -413,7 +413,7 @@
|
|
|
:min="0"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="十二月" align="center" prop="decemberGoal" width="220">
|
|
|
+ <el-table-column label="十二月(元)" align="center" prop="decemberGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number
|
|
|
@change="computeTotalDetails(scope.$index, annualSaleGoalMergeDetailsList[scope.$index])"
|
|
@@ -558,78 +558,78 @@
|
|
|
</el-popover-select-v2>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="合计" align="center" prop="totalGoal" width="180">
|
|
|
+ <el-table-column label="合计(元)" align="center" prop="totalGoal" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input v-model="customerDetailList[scope.$index].totalGoal" disabled></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="一月" align="center" prop="januaryGoal" width="220">
|
|
|
+ <el-table-column label="一月(元)" align="center" prop="januaryGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number disabled v-model="customerDetailList[scope.$index].januaryGoal" :precision="2"
|
|
|
:step="0.1" :min="0"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="二月" align="center" prop="februaryGoal" width="220">
|
|
|
+ <el-table-column label="二月(元)" align="center" prop="februaryGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number disabled v-model="customerDetailList[scope.$index].februaryGoal" :precision="2"
|
|
|
:step="0.1" :min="0"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="三月" align="center" prop="marchGoal" width="220">
|
|
|
+ <el-table-column label="三月(元)" align="center" prop="marchGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number disabled v-model="customerDetailList[scope.$index].marchGoal" :precision="2"
|
|
|
:step="0.1" :min="0"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="四月" align="center" prop="aprilGoal" width="220">
|
|
|
+ <el-table-column label="四月(元)" align="center" prop="aprilGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number disabled v-model="customerDetailList[scope.$index].aprilGoal" :precision="2"
|
|
|
:step="0.1" :min="0"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="五月" align="center" prop="mayGoal" width="220">
|
|
|
+ <el-table-column label="五月(元)" align="center" prop="mayGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number disabled v-model="customerDetailList[scope.$index].mayGoal" :precision="2"
|
|
|
:step="0.1" :min="0"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="六月" align="center" prop="juneGoal" width="220">
|
|
|
+ <el-table-column label="六月(元)" align="center" prop="juneGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number disabled v-model="customerDetailList[scope.$index].juneGoal" :precision="2"
|
|
|
:step="0.1" :min="0"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="七月" align="center" prop="julyGoal" width="220">
|
|
|
+ <el-table-column label="七月(元)" align="center" prop="julyGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number disabled v-model="customerDetailList[scope.$index].julyGoal" :precision="2"
|
|
|
:step="0.1" :min="0"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="八月" align="center" prop="augustGoal" width="220">
|
|
|
+ <el-table-column label="八月(元)" align="center" prop="augustGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number disabled v-model="customerDetailList[scope.$index].augustGoal" :precision="2"
|
|
|
:step="0.1" :min="0"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="九月" align="center" prop="septemberGoal" width="220">
|
|
|
+ <el-table-column label="九月(元)" align="center" prop="septemberGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number disabled v-model="customerDetailList[scope.$index].septemberGoal" :precision="2"
|
|
|
:step="0.1" :min="0"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="十月" align="center" prop="octoberGoal" width="220">
|
|
|
+ <el-table-column label="十月(元)" align="center" prop="octoberGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number disabled v-model="customerDetailList[scope.$index].octoberGoal" :precision="2"
|
|
|
:step="0.1" :min="0"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="十一月" align="center" prop="novemberGoal" width="220">
|
|
|
+ <el-table-column label="十一月(元)" align="center" prop="novemberGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number disabled v-model="customerDetailList[scope.$index].novemberGoal" :precision="2"
|
|
|
:step="0.1" :min="0"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="十二月" align="center" prop="decemberGoal" width="220">
|
|
|
+ <el-table-column label="十二月(元)" align="center" prop="decemberGoal" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number disabled v-model="customerDetailList[scope.$index].decemberGoal" :precision="2"
|
|
|
:step="0.1" :min="0"></el-input-number>
|
|
@@ -1395,31 +1395,7 @@
|
|
|
this.form.goalTotal = sum.toFixed(2)
|
|
|
},
|
|
|
getSummaries(param) {
|
|
|
- console.log(param, 'param')
|
|
|
- const { columns, data } = param;
|
|
|
- console.log(columns, 'columns')
|
|
|
- const sums = [];
|
|
|
- columns.forEach((column, index) => {
|
|
|
- if (index === 0) {
|
|
|
- sums[index] = '小计';
|
|
|
- return;
|
|
|
- }
|
|
|
- const values = data.map(item => Number(item[column.property]));
|
|
|
- if (!values.every(value => isNaN(value))) {
|
|
|
- sums[index] = values.reduce((prev, curr) => {
|
|
|
- const value = Number(curr);
|
|
|
- if (!isNaN(value)) {
|
|
|
- return prev + curr;
|
|
|
- } else {
|
|
|
- return prev;
|
|
|
- }
|
|
|
- }, 0);
|
|
|
- sums[index] = sums[index].toFixed(2);
|
|
|
- } else {
|
|
|
- sums[index] = ' ';
|
|
|
- }
|
|
|
- });
|
|
|
- return sums;
|
|
|
+ return getSummary(param)
|
|
|
},
|
|
|
// 合并数据
|
|
|
clickMerge() {
|