Jelajahi Sumber

1.资产流程-勘察定价节点可修改项目成员
2.资产评估人员绩效申报可添加新的项目参与人

GouGengquan 3 bulan lalu
induk
melakukan
0f0d63169a
3 mengubah file dengan 150 tambahan dan 119 penghapusan
  1. 4 0
      src/api/modules/assets.js
  2. 37 9
      src/views/assets/orderDetail.vue
  3. 109 110
      src/views/income/assets/evaluate.vue

+ 4 - 0
src/api/modules/assets.js

@@ -31,6 +31,10 @@ export default {
     updatePrincipalAndMembers(params) {
         return request.put(`assets/updatePrincipalAndMembers`, params)
     },
+    // 更新项目成员但不完成节点任务
+    updateMembers(params) {
+        return request.put(`assets/updateMembers`, params)
+    },
     // 根据资产业务id获取资产业务评估对象集合
     getAETargetListByAssetsId(params) {
         return request.get(`assetsEvaluationTarget/getAETargetListByAssetsId`, { params: params })

+ 37 - 9
src/views/assets/orderDetail.vue

@@ -311,7 +311,7 @@
         <!-- <y-detail-page-layout @save="updatePrincipalAndMembers" ref="addAssetsOrder" name="assets"
           :editStatus="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION' || !disabledStatus"> -->
         <el-form ref="assetsForm" :model="assetsForm" :rules="assetsFormRules"
-          :disabled="currentNode.nodeCode !== 'DEPARTMENT_ALLOCATION' || disabledStatus">
+          :disabled="currentNode.nodeCode !== 'DEPARTMENT_ALLOCATION' && currentNode.nodeCode !== 'SPOT_RECONNAISSANCE_DETERMINE_PRICE' || disabledStatus">
           <div class="createMajor-main-container">
             <div class="postInfo-container">
               <div style="margin-top: 35px;">
@@ -326,7 +326,9 @@
                 <el-col :xs="24" :sm="12" :lg="4" :span="6">
                   <el-form-item label="接单部门:" prop="departmentId" label-width="120px"
                     :class="['postInfo-container-item', currentNode.nodeCode === 'DEPARTMENT_ALLOCATION' ? 'task-class' : '']">
-                    <el-select @change="getPrincipalByAllotDepartment()" v-model="assetsForm.departmentId">
+                    <el-select @change="getPrincipalByAllotDepartment()" v-model="assetsForm.departmentId"
+                      :readonly="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'"
+                      :disabled="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'">
                       <el-option v-for="(d, id) in allotDepartment" :label="d.name" :value="d.id" :key="d.id"></el-option>
                     </el-select>
                   </el-form-item>
@@ -338,8 +340,7 @@
                     :class="['postInfo-container-item', currentNode.nodeCode === 'DEPARTMENT_ALLOCATION' ? 'task-class' : '']"
                     :rules="{ required: true, message: '项目负责人不能为空', trigger: 'blur' }">
                     <el-select v-model="assetsForm.principalId" placeholder="请选择(可搜索)"
-                      :filterable="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'"
-                      :clearable="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'"
+                      filterable clearable
                       :readonly="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'"
                       :disabled="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'">
                       <el-option v-for="(p, id) in principals" :label="p.name" :value="p.id" :key="p.id"></el-option>
@@ -353,10 +354,9 @@
                     :class="['postInfo-container-item', currentNode.nodeCode === 'DEPARTMENT_ALLOCATION' ? 'task-class' : '']"
                     :rules="{ required: true, message: '项目成员不能为空', trigger: 'blur' }">
                     <el-select v-model="assetsForm.members" placeholder="请选择(可搜索)" multiple style=" width: 686px"
-                      :filterable="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'"
-                      :clearable="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'"
-                      :readonly="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'"
-                      :disabled="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'">
+                      filterable clearable
+                      :readonly="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION' && currentNode.nodeCode != 'SPOT_RECONNAISSANCE_DETERMINE_PRICE'"
+                      :disabled="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION' && currentNode.nodeCode != 'SPOT_RECONNAISSANCE_DETERMINE_PRICE'">
                       <el-option v-for="(u, id) in depUsers" :label="u.name" :value="u.id" :key="u.id"></el-option>
                     </el-select>
                   </el-form-item>
@@ -364,7 +364,8 @@
               </el-row>
               <el-row class="row-style">
                 <el-col :xs="24" :sm="12" :lg="3" :span="6">
-                  <el-button type="danger" @click="updatePrincipalAndMembers()" round>保存项目人员信息</el-button>
+                  <el-button v-if="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'" type="danger" @click="updatePrincipalAndMembers()" round>保存项目人员信息</el-button>
+                  <el-button v-if="currentNode.nodeCode === 'SPOT_RECONNAISSANCE_DETERMINE_PRICE'" type="danger" @click="updateMembers()" round>修改成员</el-button>
                 </el-col>
               </el-row>
             </div>
@@ -2298,6 +2299,33 @@ export default {
       }
 
     },
+    // 更新项目成员但不完成节点任务
+    updateMembers() {
+      let assetsPrincipalMembers = new Object();
+      assetsPrincipalMembers.id = this.assetsForm.id;
+      assetsPrincipalMembers.principalId = this.assetsForm.principalId;
+      assetsPrincipalMembers.departmentId = this.assetsForm.departmentId;
+      assetsPrincipalMembers.members = JSON.stringify(this.assetsForm.members);
+      if (assetsPrincipalMembers.id && assetsPrincipalMembers.principalId && assetsPrincipalMembers.departmentId && this.assetsForm.members.length > 0) {
+        this.$api.assets.updateMembers(assetsPrincipalMembers).then(res => {
+          if (res.code === 200 && res.data) {
+            this.$notify({
+              title: '成功',
+              message: '修改成功',
+              type: 'success',
+              duration: 2000
+            });
+          }
+        })
+      } else {
+        this.$notify({
+          title: '警告',
+          message: '请先完善项目成员信息!',
+          type: 'error',
+          duration: 2000
+        });
+      }
+    },
     // 根据节点返回不同的操作按钮信息
     hanlderType() {
       if (this.currentNode) {

+ 109 - 110
src/views/income/assets/evaluate.vue

@@ -5,35 +5,25 @@
         </div>
         <y-page-list-layout :page-list="pageData" :page-para="listQuery" :get-page-list="assetsEvaluateDeclarePage">
             <template slot="left">
-                <el-input v-model="listQuery.orderId" placeholder="订单号" clearable style="width: 200px;float: left;">
-                </el-input>
-                <el-input v-model="listQuery.name" placeholder="项目名称" clearable
-                    style="margin-left: 20px;width: 200px;float: left;">
-                </el-input>
-                <el-input v-model="listQuery.reportNo" placeholder="报告号" clearable
-                    style="margin-left: 20px;width: 200px;float: left;">
-                </el-input>
-                <el-select clearable v-model="listQuery.commissionRateId" placeholder="提成类型"
-                    style="margin-left: 20px;width: 200px;float: left;">
+                <el-input v-model="listQuery.orderId" placeholder="订单号" clearable style="width: 200px;float: left;"></el-input>
+                <el-input v-model="listQuery.name" placeholder="项目名称" clearable style="margin-left: 20px;width: 200px;float: left;"></el-input>
+                <el-input v-model="listQuery.reportNo" placeholder="报告号" clearable style="margin-left: 20px;width: 200px;float: left;"></el-input>
+                <el-select clearable v-model="listQuery.commissionRateId" placeholder="提成类型" style="margin-left: 20px;width: 200px;float: left;">
                     <el-option v-for="(c, id) in cates" :value="c.id" :label="c.name">{{ c.name }}</el-option>
                 </el-select>
                 <!-- <el-select clearable v-model="listQuery.declareType" placeholder="申报类型"
                     style="margin-left: 20px;width: 200px;float: left;">
                     <el-option :value="true" label="产品">产品</el-option>
                     <el-option :value="false" label="订单">订单</el-option>
-                </el-select> -->
-                <el-select clearable v-model="listQuery.declareResult" placeholder="审核状态"
-                    style="margin-left: 20px;width: 200px;float: left;">
+                </el-select>-->
+                <el-select clearable v-model="listQuery.declareResult" placeholder="审核状态" style="margin-left: 20px;width: 200px;float: left;">
                     <el-option value="待申报" label="待申报"></el-option>
                     <el-option value="审核中" label="审核中"></el-option>
                     <el-option value="审核通过" label="审核通过"></el-option>
                     <el-option value="审核拒绝" label="审核拒绝"></el-option>
                 </el-select>
-                <el-button class="filter-item" style="margin-left:20px;float: left;" type="primary" @click="searchList()"
-                    round>搜索
-                </el-button>
-                <el-button class="filter-item" style="float: left;" round type="success" @click="resetSearch()">重置
-                </el-button>
+                <el-button class="filter-item" style="margin-left:20px;float: left;" type="primary" @click="searchList()" round>搜索</el-button>
+                <el-button class="filter-item" style="float: left;" round type="success" @click="resetSearch()">重置</el-button>
             </template>
             <parentTable :data="pageData.records" slot="table" style="width: 100%;">
                 <el-table-column label="订单号" width="150" align="center">
@@ -112,18 +102,14 @@
                 <el-table-column fixed="right" label="操作" align="center">
                     <template slot-scope="{row}">
                         <div>
-                            <el-button v-if="row.declareResult == null || row.declareResult == '审核拒绝'" type="text"
-                                size="small" @click="openAssetsAchievementRatioDialog(row)">申报</el-button>
-                            <el-button
-                                v-if="row.declareResult == '审核中' || row.declareResult == '审核通过' || row.declareResult == '审核拒绝'"
-                                type="text" size="small" @click="checkDetail(row.id)">查看</el-button>
+                            <el-button v-if="row.declareResult == null || row.declareResult == '审核拒绝'" type="text" size="small" @click="openAssetsAchievementRatioDialog(row)">申报</el-button>
+                            <el-button v-if="row.declareResult == '审核中' || row.declareResult == '审核通过' || row.declareResult == '审核拒绝'" type="text" size="small" @click="checkDetail(row.id)">查看</el-button>
                         </div>
                     </template>
                 </el-table-column>
             </parentTable>
         </y-page-list-layout>
-        <el-dialog :visible.sync="assetsAchievementRatioDialogVisible" @closed="resetBusinessPerformanceDistributionForm()"
-            width="40%">
+        <el-dialog :visible.sync="assetsAchievementRatioDialogVisible" @closed="resetBusinessPerformanceDistributionForm()" width="40%">
             <div v-if="businessPerformanceDistributionForm.distributionList !== null" class="createMajor-main-container">
                 <div class="postInfo-container">
                     <div>
@@ -135,56 +121,37 @@
                         </el-divider>
                     </div>
                     <el-form :model="declareForm" ref="declareForm" :rules="rules">
-                        <el-form-item label="业务分类:" prop="commissionRateId" label-width="140px"
-                            class="postInfo-container-item">
-                            <el-select clearable v-model="declareForm.commissionRateId" placeholder="请选择业务分类"
-                                style="width: 100%;" @change="getAssetsEvaluateCateDetail()">
+                        <el-form-item label="业务分类:" prop="commissionRateId" label-width="140px" class="postInfo-container-item">
+                            <el-select clearable v-model="declareForm.commissionRateId" placeholder="请选择业务分类" style="width: 100%;" @change="getAssetsEvaluateCateDetail()">
                                 <el-option v-for="(c, id) in cates" :value="c.id" :label="c.name">{{ c.name }}</el-option>
                             </el-select>
                         </el-form-item>
                         <el-form-item label="提成比例:" prop="ratio" label-width="140px" class="postInfo-container-item">
-                            <el-input v-model="declareForm.ratio" :placeholder="ratioPlaceholderData" type="number"
-                                :disabled="cateDetail == null || cateDetail.maxRatio == null">
-                                <template #suffix>
-                                    %
-                                </template>
+                            <el-input v-model="declareForm.ratio" :placeholder="ratioPlaceholderData" type="number" :disabled="cateDetail == null || cateDetail.maxRatio == null">
+                                <template #suffix>%</template>
                             </el-input>
                         </el-form-item>
                     </el-form>
                     <p style="color: red;">绩效比例&参与时长:</p>
-                    <el-row style="margin-top: 10px;margin-left: 40px;" v-for="(member, index) in assetsBusinessMembers"
-                        :key="index" class="row-style">
+                    <el-row style="margin-top: 10px;margin-left: 40px;" v-for="(member, index) in assetsBusinessMembers" :key="index" class="row-style">
                         <el-col>
-                            <p style="width: 65px; display: inline-block; text-align: right;">
-                                {{ member.memberName }}:
-                            </p>
-                            <el-input-number
-                                v-model="businessPerformanceDistributionForm.distributionList[index].performanceDistribution"
-                                :precision="2" :step="0.1" :max="100">
-                            </el-input-number>
-                            <p style="margin-left: 5px; margin-right: 15px; display: inline-block;">
-                                %
-                            </p>
-                            <el-input-number
-                                v-model="businessPerformanceDistributionForm.distributionList[index].participationDuration"
-                                :step="1">
-                            </el-input-number>
-                            <p style="margin-left: 5px; display: inline-block;">
-                                小时
-                            </p>
+                            <p style="width: 65px; display: inline-block; text-align: right;">{{ member.memberName }}:</p>
+                            <el-input-number v-model="businessPerformanceDistributionForm.distributionList[index].performanceDistribution" :precision="2" :step="0.1" :max="100"></el-input-number>
+                            <p style="margin-left: 5px; margin-right: 15px; display: inline-block;">%</p>
+                            <el-input-number v-model="businessPerformanceDistributionForm.distributionList[index].participationDuration" :step="1"></el-input-number>
+                            <p style="margin-left: 5px; display: inline-block;">小时</p>
                             <p style="margin-left: 15px; display: inline-block;">
-                                <span v-if="member.memberType === '项目负责人'" style="color: blueviolet;">
-                                    * {{ member.memberType }}
-                                </span>
-                                <span v-if="member.memberType === '项目参与人'">
-                                    * {{ member.memberType }}
-                                </span>
-                                <span v-if="member.memberType === '签字师'" style="color: red;">
-                                    * {{ member.memberType }}
-                                </span>
+                                <span v-if="member.memberType === '项目负责人'" style="color: blueviolet;">* {{ member.memberType }}</span>
+                                <span v-if="member.memberType === '项目参与人'">* {{ member.memberType }}</span>
+                                <span v-if="member.memberType === '签字师'" style="color: red;">* {{ member.memberType }}</span>
                             </p>
                         </el-col>
                     </el-row>
+                    <el-row style="margin-top: 10px;margin-left: 40px;" class="row-style">
+                        <el-col>
+                            <el-button v-if="showDistributionButton" type="warning" @click="addUserDialogVisible = true, getAllUser()">添加人员</el-button>
+                        </el-col>
+                    </el-row>
                 </div>
             </div>
             <span v-if="businessPerformanceDistributionForm.distributionList !== null" slot="footer" class="dialog-footer">
@@ -192,12 +159,17 @@
                 <el-button v-if="showDistributionButton" type="primary" @click="assetsDeclare()">提 交</el-button>
             </span>
         </el-dialog>
+        <el-dialog :visible.sync="addUserDialogVisible" width="350px">
+            <el-select v-model="addUser" filterable placeholder="新增人员(可搜索)" style=" width: 200px;margin-right: 10px;float: left;">
+                <el-option v-for="(u, id) in allUsers" :label="u.name" :key="u.id" :value="u"></el-option>
+            </el-select>
+            <el-button v-if="showDistributionButton" type="primary" @click="confirmAddUser()">确认</el-button>
+        </el-dialog>
     </div>
 </template>
 <script>
-import YPageListLayout from '@/components/YPageListLayout'
-import Breadcrumb from '@/components/Breadcrumb'
-
+import YPageListLayout from '@/components/YPageListLayout';
+import Breadcrumb from '@/components/Breadcrumb';
 
 export default {
     name: 'declareAssetEvaluate',
@@ -205,40 +177,37 @@ export default {
         Breadcrumb,
         YPageListLayout,
     },
-    filters: {
-
-    },
+    filters: {},
     data() {
         var checkRatioValue = (rule, value, callback) => {
             if (this.cateDetail.maxRatio !== undefined && this.cateDetail.maxRatio !== null) {
                 if (this.declareForm.ratio >= this.cateDetail.minRatio && this.declareForm.ratio <= this.cateDetail.maxRatio) {
                     callback();
                 } else {
-                    return callback(new Error('提成比例须在 ' + this.cateDetail.minRatio + "% - " + this.cateDetail.maxRatio + "% 之间"));
+                    return callback(new Error('提成比例须在 ' + this.cateDetail.minRatio + '% - ' + this.cateDetail.maxRatio + '% 之间'));
                 }
             } else {
                 callback();
             }
         };
         return {
+            allUsers: [],
             rules: {
-                commissionRateId: [
-                    { required: true, message: '业务分类不能为空', trigger: 'blur' }
-                ],
+                commissionRateId: [{ required: true, message: '业务分类不能为空', trigger: 'blur' }],
                 ratio: [
                     { required: true, message: '提成比例不能为空', trigger: 'blur' },
-                    { required: true, validator: checkRatioValue, trigger: 'blur' }
-                ]
+                    { required: true, validator: checkRatioValue, trigger: 'blur' },
+                ],
             },
-            ratioPlaceholderData: "请输入提成比例",
+            ratioPlaceholderData: '请输入提成比例',
             pageData: { records: [] },
             listQuery: {
                 page: 1,
                 size: 10,
                 descs: 'id',
                 name: null,
-                reportNo: null
-            },// 项目所有参与人信息
+                reportNo: null,
+            }, // 项目所有参与人信息
             assetsBusinessMembers: [],
             cates: [],
             cateDetail: null,
@@ -252,7 +221,7 @@ export default {
                 businessType: 'COMMISSION_DECLARE_ASSET_EVALUATE',
                 commissionRateId: null,
                 ratio: null,
-                definedLowLimitAmount: null
+                definedLowLimitAmount: null,
             },
             showDistributionButton: null,
             assetsAchievementRatioDialogVisible: false,
@@ -262,9 +231,11 @@ export default {
                 businessType: null,
                 reportNo: null,
                 userType: null,
-                distributionList: []
-            }
-        }
+                distributionList: [],
+            },
+            addUserDialogVisible: false,
+            addUser: null,
+        };
     },
     created() {
         this.listQuery.name = this.$route.query.name;
@@ -281,30 +252,30 @@ export default {
                 size: 10,
                 descs: 'id',
                 name: null,
-                reportNo: null
-            }
-            this.assetsEvaluateDeclarePage()
+                reportNo: null,
+            };
+            this.assetsEvaluateDeclarePage();
         },
         searchList() {
             this.listQuery.current = 1;
             this.assetsEvaluateDeclarePage();
         },
         assetsEvaluateDeclarePage() {
-            this.$api.commissonDeclare.assetsEvaluateDeclarePage(this.listQuery).then(res => {
+            this.$api.commissonDeclare.assetsEvaluateDeclarePage(this.listQuery).then((res) => {
                 if (res.code === 200) {
                     this.pageData = res.data;
                 }
-            })
+            });
         },
         getAssetsEvaluateCate() {
-            this.$api.businessCommissionRate.cateList("ASSET_BUSINESS", "EVALUATOR").then(res => {
+            this.$api.businessCommissionRate.cateList('ASSET_BUSINESS', 'EVALUATOR').then((res) => {
                 if (res.code === 200) {
                     this.cates = res.data;
                 }
-            })
+            });
         },
         getAssetsEvaluateCateDetail() {
-            this.$api.businessCommissionRate.detail(this.declareForm.commissionRateId).then(res => {
+            this.$api.businessCommissionRate.detail(this.declareForm.commissionRateId).then((res) => {
                 if (res.code === 200) {
                     this.cateDetail = res.data;
                     this.declareForm.definedLowLimitAmount = this.cateDetail.lowLimitAmount;
@@ -312,13 +283,15 @@ export default {
                         this.declareForm.ratio = this.cateDetail.minRatio;
                     } else {
                         this.declareForm.ratio = null;
-                        this.ratioPlaceholderData = "请输入提成比例 " + this.cateDetail.minRatio + "%" + " - " + this.cateDetail.maxRatio + "%";
+                        this.ratioPlaceholderData = '请输入提成比例 ' + this.cateDetail.minRatio + '%' + ' - ' + this.cateDetail.maxRatio + '%';
                     }
                 }
-            })
+            });
         },
         checkDetail(id) {
-            this.$router.push(`/income/assets/declare/detail?businessId=${id}&businessType=COMMISSION_DECLARE_ASSET_EVALUATE&doWorkflow=${false}&back=${'/income/assets/declare/evaluate'}&couldEdit=${false}`)
+            this.$router.push(
+                `/income/assets/declare/detail?businessId=${id}&businessType=COMMISSION_DECLARE_ASSET_EVALUATE&doWorkflow=${false}&back=${'/income/assets/declare/evaluate'}&couldEdit=${false}`
+            );
         },
         // 打开绩效比例分配弹窗
         openAssetsAchievementRatioDialog(row) {
@@ -339,7 +312,7 @@ export default {
             this.businessPerformanceDistributionForm.userType = '评估人员';
             let selectDTO = this.businessPerformanceDistributionForm;
             selectDTO.distributionList = null;
-            this.$api.businessPerformanceDistribution.getPerformanceDistributionList(this.businessPerformanceDistributionForm).then(res => {
+            this.$api.businessPerformanceDistribution.getPerformanceDistributionList(this.businessPerformanceDistributionForm).then((res) => {
                 if (res.code === 200 && res.data !== null && res.data.length > 0) {
                     this.businessPerformanceDistributionForm.distributionList = res.data;
                     this.getAssetsBusinessMembers(false, row);
@@ -348,29 +321,34 @@ export default {
                     this.showDistributionButton = true;
                     this.getAssetsBusinessMembers(true, row);
                 }
-            })
+            });
         },
         // 获取项目参与人信息
         getAssetsBusinessMembers(state, row) {
             let assetsBusinessMembersDTO = { businessId: null, reportNo: null };
             assetsBusinessMembersDTO.businessId = row.businessId;
             assetsBusinessMembersDTO.reportNo = row.reportNo;
-            this.$api.assets.getAssetsBusinessMembers(assetsBusinessMembersDTO).then(res => {
+            this.$api.assets.getAssetsBusinessMembers(assetsBusinessMembersDTO).then((res) => {
                 // 返回不为空,且没有绩效分配信息
                 if (res.code === 200 && res.data !== null) {
                     this.assetsBusinessMembers = res.data;
                     if (state) {
                         this.businessPerformanceDistributionForm.distributionList = [];
                         for (let i = 0; i < this.assetsBusinessMembers.length; i++) {
-                            let memberInfo = { memberId: this.assetsBusinessMembers[i].memberId, performanceDistribution: 0, participationDuration: 0, memberType: this.assetsBusinessMembers[i].memberType }
+                            let memberInfo = {
+                                memberId: this.assetsBusinessMembers[i].memberId,
+                                performanceDistribution: 0,
+                                participationDuration: 0,
+                                memberType: this.assetsBusinessMembers[i].memberType,
+                            };
                             if (memberInfo.memberType === '签字师') {
                                 memberInfo.performanceDistribution = 8;
                             }
-                            this.businessPerformanceDistributionForm.distributionList.push(memberInfo)
+                            this.businessPerformanceDistributionForm.distributionList.push(memberInfo);
                         }
                     }
                 }
-            })
+            });
         },
         // 重置绩效分配表单
         resetBusinessPerformanceDistributionForm() {
@@ -381,20 +359,20 @@ export default {
         },
         // 新增评估人员绩效申报
         assetsDeclare() {
-            this.$refs.declareForm.validate(valid => {
+            this.$refs.declareForm.validate((valid) => {
                 if (valid) {
                     const sum = this.businessPerformanceDistributionForm.distributionList.reduce((accumulator, obj) => {
                         return accumulator + obj.performanceDistribution;
                     }, 0);
                     if (sum === 100) {
                         this.declareForm.distributionDto = this.businessPerformanceDistributionForm;
-                        this.$api.commissonDeclare.assetsDeclare(this.declareForm).then(res => {
+                        this.$api.commissonDeclare.assetsDeclare(this.declareForm).then((res) => {
                             if (res.code === 200) {
                                 this.$notify({
                                     title: '成功',
                                     message: '提成申报已提交',
                                     type: 'success',
-                                    duration: 2000
+                                    duration: 2000,
                                 });
                                 this.resetBusinessPerformanceDistributionForm();
                                 this.assetsEvaluateDeclarePage();
@@ -404,24 +382,45 @@ export default {
                                     title: '失败',
                                     message: '提成申报提交失败,请联系管理员',
                                     type: 'error',
-                                    duration: 2000
+                                    duration: 2000,
                                 });
                             }
-                        })
+                        });
                     } else {
                         this.$notify({
                             title: '警告',
                             message: '所有人员分配的绩效之和必须等于100%!',
                             type: 'error',
-                            duration: 3000
+                            duration: 3000,
                         });
                     }
                 }
-            })
-        }
-    }
-
-}
+            });
+        },
+        // 获取用户下拉列表
+        getAllUser() {
+            this.$api.user.simpleAll().then((res) => {
+                if (res.code === 200) {
+                    this.allUsers = res.data;
+                }
+            });
+        },
+        // 确认添加项目参与人
+        confirmAddUser() {
+            let memberInfo = {
+                memberId: this.addUser.id,
+                performanceDistribution: 0,
+                participationDuration: 0,
+                memberType: '项目参与人',
+                memberName: this.addUser.name
+            };
+            this.businessPerformanceDistributionForm.distributionList.push(memberInfo);
+            this.assetsBusinessMembers.push(memberInfo);
+            this.addUser = null;
+            this.addUserDialogVisible = false;
+        },
+    },
+};
 </script>
 <style lang="scss" scoped>
 /deep/.doWarehouseClass {
@@ -431,7 +430,7 @@ export default {
 .real-amount {
     /deep/ .el-form-item__label {
         color: red;
-        font-weight: bold
+        font-weight: bold;
     }
 }
 </style>