|
@@ -124,17 +124,17 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
- <el-table v-loading="loading" :data="annualSaleGoalMergeList" @selection-change="handleSelectionChange" @row-dblclick="useDoubleClick"
|
|
|
- v-horizontal-scroll>
|
|
|
+ <el-table v-loading="loading" :data="annualSaleGoalMergeList" @selection-change="handleSelectionChange"
|
|
|
+ @row-dblclick="useDoubleClick" v-horizontal-scroll>
|
|
|
<el-table-column label="编码" align="center" prop="code" width="180" />
|
|
|
- <el-table-column label="目标名称" align="center" prop="goalName" width="180" />
|
|
|
+ <el-table-column label="目标名称" align="center" prop="goalName" width="240" />
|
|
|
<el-table-column label="单据日期" align="center" prop="documentDate" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ parseTime(scope.row.documentDate, '{y}-{m}-{d}') }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="年度" align="center" prop="annual" width="180" />
|
|
|
- <el-table-column show-overflow-tooltip label="状态" align="center" width="200" prop="status">
|
|
|
+ <el-table-column label="年度" align="center" prop="annual" width="100" />
|
|
|
+ <el-table-column show-overflow-tooltip label="状态" align="center" width="100" prop="status">
|
|
|
<template slot-scope="scope">
|
|
|
<dict-tag :options="dict.type.sys_status" :value="scope.row.status" />
|
|
|
</template>
|
|
@@ -142,23 +142,25 @@
|
|
|
<el-table-column label="制单人" align="center" prop="creator" width="180" />
|
|
|
<el-table-column label="部门" align="center" prop="dept" width="180" />
|
|
|
<el-table-column label="目标类型" align="center" prop="goalCategory" width="180" />
|
|
|
- <el-table-column label="目标值汇总" align="center" prop="goalTotal" width="180" />
|
|
|
+ <el-table-column label="目标值汇总(元)" align="center" prop="goalTotal" width="180" />
|
|
|
<el-table-column label="销售区域" align="center" prop="saleZone" width="220" />
|
|
|
<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)">修改
|
|
|
- </el-button>
|
|
|
- <el-button size="mini" type="text" @click="handleDelete(scope.row)">删除
|
|
|
- </el-button>
|
|
|
- <el-button size="mini" type="text" @click="handleSubmit(scope.row)">提交</el-button>
|
|
|
- </div>
|
|
|
- <div v-if="scope.row.status == '1'">
|
|
|
- <el-button size="mini" type="text" @click="handleReback(scope.row)">收回</el-button>
|
|
|
- </div>
|
|
|
+ <el-button size="mini" type="text" @click="useDoubleClick(scope.row)">查看
|
|
|
+ </el-button>
|
|
|
+ <el-button v-if="scope.row.status == '0' || scope.row.status == '3'" size="mini" type="text"
|
|
|
+ @click="handleUpdate(scope.row)">修改
|
|
|
+ </el-button>
|
|
|
+ <el-button v-if="scope.row.status == '0' || scope.row.status == '3'" size="mini" type="text"
|
|
|
+ @click="handleDelete(scope.row)">删除
|
|
|
+ </el-button>
|
|
|
+ <el-button v-if="scope.row.status == '0' || scope.row.status == '3'" size="mini" type="text"
|
|
|
+ @click="handleSubmit(scope.row)">提交</el-button>
|
|
|
+ <el-button v-if="scope.row.status == '1'" size="mini" type="text" @click="handleReback(scope.row)">收回
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -218,7 +220,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>
|
|
@@ -260,7 +262,8 @@
|
|
|
<div>
|
|
|
<el-row :gutter="10" class="mb8" style="margin-left: 94%">
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button type="primary" plain icon="el-icon-folder-opened" size="mini" @click="clickMerge">合 并</el-button>
|
|
|
+ <el-button type="primary" plain icon="el-icon-folder-opened" size="mini" @click="clickMerge">合 并
|
|
|
+ </el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-tabs v-model="activeName" @tab-click="getNewTwoArray">
|
|
@@ -320,12 +323,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 +336,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 +344,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 +352,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,31 +360,34 @@
|
|
|
: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])"
|
|
|
- v-model="annualSaleGoalMergeDetailsList[scope.$index].mayGoal" :precision="2" :step="0.1" :min="0">
|
|
|
+ v-model="annualSaleGoalMergeDetailsList[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
|
|
|
@change="computeTotalDetails(scope.$index, annualSaleGoalMergeDetailsList[scope.$index])"
|
|
|
- v-model="annualSaleGoalMergeDetailsList[scope.$index].juneGoal" :precision="2" :step="0.1" :min="0">
|
|
|
+ v-model="annualSaleGoalMergeDetailsList[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
|
|
|
@change="computeTotalDetails(scope.$index, annualSaleGoalMergeDetailsList[scope.$index])"
|
|
|
- v-model="annualSaleGoalMergeDetailsList[scope.$index].julyGoal" :precision="2" :step="0.1" :min="0">
|
|
|
+ v-model="annualSaleGoalMergeDetailsList[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
|
|
|
@change="computeTotalDetails(scope.$index, annualSaleGoalMergeDetailsList[scope.$index])"
|
|
@@ -389,7 +395,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 +403,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 +411,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 +419,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])"
|
|
@@ -451,78 +457,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="areaDetailList[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="areaDetailList[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="areaDetailList[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="areaDetailList[scope.$index].marchGoal" :precision="2" :step="0.1"
|
|
|
- :min="0"></el-input-number>
|
|
|
+ <el-input-number disabled v-model="areaDetailList[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="areaDetailList[scope.$index].aprilGoal" :precision="2" :step="0.1"
|
|
|
- :min="0"></el-input-number>
|
|
|
+ <el-input-number disabled v-model="areaDetailList[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="areaDetailList[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="areaDetailList[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="areaDetailList[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="areaDetailList[scope.$index].augustGoal" :precision="2" :step="0.1"
|
|
|
- :min="0"></el-input-number>
|
|
|
+ <el-input-number disabled v-model="areaDetailList[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="areaDetailList[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="areaDetailList[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="areaDetailList[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="areaDetailList[scope.$index].decemberGoal" :precision="2"
|
|
|
:step="0.1" :min="0"></el-input-number>
|
|
@@ -536,16 +542,16 @@
|
|
|
<el-table-column label="序号" type="index" width="70" align="center" fixed />
|
|
|
<el-table-column label="销售组织" align="center" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-popover-select-v2 v-model="customerDetailList[scope.$index].saleOrg" title="销售组织" valueKey="name"
|
|
|
- referName="CUSTOMER_PARAM" disabled :dataMapping="{saleOrg: 'name'}"
|
|
|
+ <el-popover-select-v2 v-model="customerDetailList[scope.$index].saleOrg" title="销售组织"
|
|
|
+ valueKey="name" referName="CUSTOMER_PARAM" disabled :dataMapping="{saleOrg: 'name'}"
|
|
|
:source.sync="customerDetailList[scope.$index]" placeholder="请输入销售组织">
|
|
|
</el-popover-select-v2>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="销售区域" align="center" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-popover-select-v2 v-model="customerDetailList[scope.$index].saleZone" title="销售区域" valueKey="name"
|
|
|
- referName="CUSTOMER_PARAM" disabled :dataMapping="{saleZone: 'name'}"
|
|
|
+ <el-popover-select-v2 v-model="customerDetailList[scope.$index].saleZone" title="销售区域"
|
|
|
+ valueKey="name" referName="CUSTOMER_PARAM" disabled :dataMapping="{saleZone: 'name'}"
|
|
|
:source.sync="customerDetailList[scope.$index]" placeholder="请输入销售区域">
|
|
|
</el-popover-select-v2>
|
|
|
</template>
|
|
@@ -558,78 +564,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>
|
|
@@ -923,6 +929,9 @@
|
|
|
this.annualSaleGoalMergeList = response.rows;
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
|
+ this.annualSaleGoalMergeList.forEach(item => {
|
|
|
+ item.goalTotal = item.goalTotal.toFixed(2);
|
|
|
+ })
|
|
|
});
|
|
|
},
|
|
|
getListDetails() {
|
|
@@ -1084,7 +1093,7 @@
|
|
|
});
|
|
|
},
|
|
|
//双击行
|
|
|
- useDoubleClick(row){
|
|
|
+ useDoubleClick(row) {
|
|
|
this.openStatus = 'see';
|
|
|
this.reset();
|
|
|
const id = row.id || this.ids
|
|
@@ -1117,7 +1126,7 @@
|
|
|
this.form.code = null
|
|
|
this.title = "添加--年度销售目标合并明细";
|
|
|
this.form.documentDate = new Date().getFullYear().toString() + '-' + (new Date().getMonth() + 1)
|
|
|
- .toString().padStart(2, '0') + '-' + new Date().getDate().toString().padStart(2, '0')
|
|
|
+ .toString().padStart(2, '0') + '-' + new Date().getDate().toString().padStart(2, '0')
|
|
|
this.form.annual = new Date().getFullYear().toString()
|
|
|
this.form.goalTotal = 0
|
|
|
this.form.goalTotal = this.form.goalTotal.toFixed(2)
|
|
@@ -1454,7 +1463,9 @@
|
|
|
console.log(key);
|
|
|
if (map.has(key)) {
|
|
|
const existingObj = map.get(key)
|
|
|
- existingObj.totalGoal += obj.totalGoal
|
|
|
+ existingObj.totalGoal = parseFloat(existingObj.totalGoal)
|
|
|
+ existingObj.totalGoal += parseFloat(obj.totalGoal)
|
|
|
+ existingObj.totalGoal = existingObj.totalGoal.toFixed(2)
|
|
|
existingObj.januaryGoal += obj.januaryGoal
|
|
|
existingObj.februaryGoal += obj.februaryGoal
|
|
|
existingObj.marchGoal += obj.marchGoal
|