ymz 1 mesiac pred
rodič
commit
05b5472757

+ 2 - 2
.env.development

@@ -2,8 +2,8 @@ NODE_ENV = 'development'
 VUE_APP_TYPE= 'dev'
 # VUE_APP_URL = 'http://10.144.62.235:9999'
 # VUE_APP_URL = 'https://mic.freerr.cn'
-VUE_APP_URL = 'https://mic.cnbg.com.cn'
+# VUE_APP_URL = 'https://mic.cnbg.com.cn'
 # VUE_APP_URL = 'https://cnbg.yaoyi.net'
 # VUE_APP_URL = 'http://192.168.110.25:9999'
-# VUE_APP_URL = 'https://mic-t.cnbg.com.cn'
+VUE_APP_URL = 'https://mic-t.cnbg.com.cn'
 # VUE_APP_URL = 'http://nk5xzj.natappfree.cc'

+ 7 - 0
src/api/taskManagement/points.js

@@ -230,3 +230,10 @@ export function pkgInfoExportApi() {
     responseType: 'arraybuffer'
   });
 }
+
+export function getPlanInfoApi(plan_id) {
+  return request({
+    url: `/admin/plan/info/${plan_id}`,
+    method: 'get'
+  });
+}

+ 130 - 126
src/views/admin/taskManagement/points.vue

@@ -48,9 +48,7 @@
               :disabled="scope.row.packageFinishStatus === '2' || scope.row.packageFinishStatus === '1'"
               >编辑
             </el-button>
-            <el-button type="text" v-if="false" size="small" icon="el-icon-close" @click="suspendBtn(scope.row, scope.index)">
-              终止
-            </el-button>
+            <el-button type="text" v-if="false" size="small" icon="el-icon-close" @click="suspendBtn(scope.row, scope.index)"> 终止 </el-button>
             <!-- <el-button
               type="text"
               size="small"
@@ -65,9 +63,7 @@
               <!-- 合同下载 -->
             </el-button>
             <!-- :disabled="scope.row.ysh == 0 || scope.row.ysh == null" -->
-            <el-button v-if="scope.row.contract" type="text" size="small" icon="el-icon-folder-checked" @click="exportFile(scope.row, scope.index)">
-              合同下载
-            </el-button>
+            <el-button v-if="scope.row.contract" type="text" size="small" icon="el-icon-folder-checked" @click="exportFile(scope.row, scope.index)"> 合同下载 </el-button>
           </template>
         </template>
       </avue-crud>
@@ -121,7 +117,7 @@
           <el-row>
             <el-col :span="12">
               <el-form-item label="服务目标" prop="planId">
-                <el-select v-model="distributionForm.planId" style="width: 100%" @change="planIdChange" :disabled="planIdDisabled">
+                <el-select v-model="distributionForm.planId" style="width: 100%" @change="planIdChange" :disabled="planIdDisabled || editDisabled">
                   <el-option v-for="item in planList" :key="item.planId" :label="item.planName" :value="item.planId"> </el-option>
                 </el-select>
               </el-form-item>
@@ -151,7 +147,7 @@
               </el-form-item>
             </el-col>
             <el-col :span="12">
-              <el-form-item label="截止日期" prop="endTimeValue">
+              <el-form-item label="截止日期">
                 <el-date-picker
                   disabled
                   class="w100"
@@ -189,7 +185,7 @@
             </el-col>
             <el-col :span="12">
               <el-form-item label="服务区域" prop="provAbbr" v-if="IS_DLS">
-                <el-select v-model="distributionForm.provAbbr" placeholder="请选择服务区域" style="width: 100%" :disabled="!distributionForm.acceptSug">
+                <el-select v-model="distributionForm.provAbbr" placeholder="请选择服务区域" style="width: 100%" :disabled="!distributionForm.acceptSug || editDisabled">
                   <el-option v-for="(item, index) in provAbbrList" :key="index" :label="item" :value="item"></el-option>
                 </el-select>
               </el-form-item>
@@ -385,9 +381,9 @@
         </template>
         <span slot="footer" class="dialog-footer">
           注意: 1.报告将于24小时之内生成完毕,请注意下载。<br />
-          <i style="margin-left:62px"></i>2.报告汇总为封面+任务数据汇总+任务列表明细。
+          <i style="margin-left: 62px"></i>2.报告汇总为封面+任务数据汇总+任务列表明细。
           <br />
-          <i style="margin-left:10px"></i>3.报告详情为每条任务的任务详情+图片。
+          <i style="margin-left: 10px"></i>3.报告详情为每条任务的任务详情+图片。
         </span>
       </el-dialog>
       <!-- 终止任务 -->
@@ -403,7 +399,7 @@
               </el-form-item>
             </el-col>
           </el-row>
-          <p class="tc" v-if="suspendData.stopStatus === 'NOTHING' && isShengyu" style="color: red;">
+          <p class="tc" v-if="suspendData.stopStatus === 'NOTHING' && isShengyu" style="color: red">
             由于({{ suspendData.score - suspendData.kfpjf }})积分已被下级分派,您将回收({{ suspendData.kfpjf }})积分,是否继续?
           </p>
         </el-form>
@@ -420,7 +416,8 @@
     <el-dialog title="重启积分包" :visible.sync="restartVisible" center width="45%" :before-close="restartVisibleClose">
       <el-form :model="restartForm" :rules="restartFormRef" ref="restartForm">
         <el-form-item label="截止日期" prop="endTimeValue">
-          <el-date-picker style="width:500px" v-model="restartForm.endTimeValue" format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date" placeholder="选择日期"> </el-date-picker>
+          <el-date-picker style="width: 500px" v-model="restartForm.endTimeValue" format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date" placeholder="选择日期">
+          </el-date-picker>
         </el-form-item>
       </el-form>
 
@@ -471,9 +468,9 @@
 
 <script>
 import dismantleTable from './components/dismantleTable.vue';
-import {templateDownload} from '@/api/assignPoints/currency/manList';
-import {pointsData} from '@/const/crud/points';
-import {tree1, tree2, tree3, tree7, pFlist} from '@/const/crud/taskTypeTree/index';
+import { templateDownload } from '@/api/assignPoints/currency/manList';
+import { pointsData } from '@/const/crud/points';
+import { tree1, tree2, tree3, tree7, pFlist } from '@/const/crud/taskTypeTree/index';
 import store from '@/store';
 import {
   selectWmScorePackageLists,
@@ -498,13 +495,14 @@ import {
   settleSave,
   getSysFileApi,
   getListAncestorApi,
-  pkgInfoExportApi
+  pkgInfoExportApi,
+  getPlanInfoApi
 } from '@/api/taskManagement/points.js';
-import {getDrugProducerList, getListDrugApi, getTaskTypeTree, updateEnable, exportInfoApi, restartApi} from '@/api/assignPoints/currency/index';
+import { getDrugProducerList, getListDrugApi, getTaskTypeTree, updateEnable, exportInfoApi, restartApi } from '@/api/assignPoints/currency/index';
 // import Form from "../../gen/form.vue";
-import {mapGetters} from 'vuex';
-import {getAvailQuizList} from '@/api/test';
-import {getPlanListApi} from '@/api/wmdeptbudget/plan.js';
+import { mapGetters } from 'vuex';
+import { getAvailQuizList } from '@/api/test';
+import { getPlanListApi } from '@/api/wmdeptbudget/plan.js';
 import taskStatistics from './components/taskStatistics.vue';
 
 export default {
@@ -585,9 +583,9 @@ export default {
         }
       },
       rules: {
-        scorePackageName: [{required: true, message: '请输入执行包名称', trigger: 'blur'}],
-        acceptSug: [{required: true, message: '请选择承接对象', trigger: 'blur'}],
-        provAbbr: [{required: true, message: '请选择服务区域', trigger: 'blur'}],
+        scorePackageName: [{ required: true, message: '请输入执行包名称', trigger: 'blur' }],
+        acceptSug: [{ required: true, message: '请选择承接对象', trigger: 'blur' }],
+        provAbbr: [{ required: true, message: '请选择服务区域', trigger: 'blur' }],
         relationScoreId: [
           {
             required: true,
@@ -595,8 +593,11 @@ export default {
             trigger: 'change'
           }
         ],
-        score: [{required: true, message: '请输入执行包总值', trigger: 'blur'}, {pattern: /^[0-9]*$/, message: '请输入正确的执行包总值'}],
-        planId: [{required: true, message: '请选择服务目标', trigger: 'change'}],
+        score: [
+          { required: true, message: '请输入执行包总值', trigger: 'blur' },
+          { pattern: /^[0-9]*$/, message: '请输入正确的执行包总值' }
+        ],
+        planId: [{ required: true, message: '请选择服务目标', trigger: 'change' }],
         packageType1: [
           {
             required: true,
@@ -611,8 +612,8 @@ export default {
             trigger: 'blur'
           }
         ],
-        relatedService: [{required: true, message: '请选择关联服务企业', trigger: 'blur'}],
-        belongDate: [{required: true, message: '请选择所属月份', trugger: 'blur'}],
+        relatedService: [{ required: true, message: '请选择关联服务企业', trigger: 'blur' }],
+        belongDate: [{ required: true, message: '请选择所属月份', trugger: 'blur' }],
         startTime: [
           {
             required: true,
@@ -698,7 +699,7 @@ export default {
       enableFlagDig: false,
       enableForm: {},
       enableRule: {
-        enableFlag: [{required: true, message: '请选择积分回收方式', trigger: 'change'}]
+        enableFlag: [{ required: true, message: '请选择积分回收方式', trigger: 'change' }]
       },
       isShengyu: false, // 是否剩余
       quizList: [], // 测试试卷列表
@@ -719,7 +720,7 @@ export default {
       ] // 支持上传的文件类型
     };
   },
-  components: {taskStatistics, dismantleTable},
+  components: { taskStatistics, dismantleTable },
   mounted() {
     if (this.userInfo.roles.includes(39)) {
       this.addShowFlag = false;
@@ -780,7 +781,7 @@ export default {
       templateDownload({
         fileName: 'ent_pkg_batch_create_tmpl.xlsx'
       })
-        .then(response => {
+        .then((response) => {
           this.importLoading = false;
           let url = window.URL.createObjectURL(new Blob([response.data]));
           let link = document.createElement('a');
@@ -832,7 +833,7 @@ export default {
     async getPlanList(pkgId, planId) {
       const res = await getPlanListApi('QRT', pkgId);
       this.planList = res.data.data;
-      this.planList.forEach(item => {
+      this.planList.forEach((item) => {
         item.planName = item.planName + `(${item.planIssue} ~ ${item.planExpiry})`;
       });
       // 编辑
@@ -871,7 +872,7 @@ export default {
 
     // 推广产品企业
     getDrugProducerList() {
-      getDrugProducerList({deptId: this.$store.getters.userInfo.deptId}).then(res => {
+      getDrugProducerList({ deptId: this.$store.getters.userInfo.deptId }).then((res) => {
         this.drugProducerListCopy = res.data.data;
       });
     },
@@ -1013,7 +1014,7 @@ export default {
     },
     getTaskTree() {
       this.distributionForm.wmScoreTaskTypeList = [];
-      getTaskTree().then(response => {
+      getTaskTree().then((response) => {
         this.distributionForm.wmScoreTaskTypeList = response.data.data;
       });
     },
@@ -1031,7 +1032,7 @@ export default {
         obj.onlySelf = true;
       }
       getListAncestorApi(obj)
-        .then(response => {
+        .then((response) => {
           console.log('response', response);
           // debugger
           this.fwqyOptions = response.data.data;
@@ -1057,7 +1058,7 @@ export default {
       let arg = {
         description: '1'
       };
-      getTaskTypeTree(arg).then(response => {
+      getTaskTypeTree(arg).then((response) => {
         // this.distributionForm.wmScoreTaskTypeList = response.data.data.treeList
         if (type == '1') {
           this.checkedDsScope = response.data.data.keys;
@@ -1082,8 +1083,8 @@ export default {
 
     // 积分包任务类型展示
     showRemote() {
-      remote('packsge_type1').then(response => {
-        response.data.data.forEach(item => {
+      remote('packsge_type1').then((response) => {
+        response.data.data.forEach((item) => {
           const addnew = {
             value: item.value,
             label: item.label
@@ -1107,7 +1108,7 @@ export default {
           this.searchForm
         )
       )
-        .then(response => {
+        .then((response) => {
           this.tableData = [];
           this.tableData = response.data.data.records;
           this.page.total = response.data.data.total;
@@ -1181,7 +1182,7 @@ export default {
       let args = {
         scoreId: id
       };
-      selectWmScorePackage(args).then(response => {
+      selectWmScorePackage(args).then(async (response) => {
         // this.packsgeTypebtn(this.packageType1Val);
         this.returnVal = [];
         // this.returnVal = response.data.data.wmScoreTaskTypeList;
@@ -1191,28 +1192,42 @@ export default {
         for (let i = 0; i < this.returnVal.length; i++) {
           showVal.push(this.returnVal[i].type);
         }
+
         const data = response.data.data;
 
-        data.relatedService = data.relatedService ? Number(data.relatedService) : '';
-        data.planId = data.planId ? Number(data.planId) : '';
-        data.acceptSug = data.acceptSug ? Number(data.acceptSug) : '';
+        this.setDetailOptin(data);
+
+        // data.relatedService = data.relatedService ? Number(data.relatedService) : '';
+        // data.planId = data.planId ? Number(data.planId) : '';
+        // data.acceptSug = data.acceptSug ? Number(data.acceptSug) : '';
         if (this.IS_DLS) {
-          this.getPlanList(data.relationScoreId, data.planId);
+          const planInfo = await getPlanInfoApi(data.planId);
+          console.log('planInfo', planInfo);
+          // this.getPlanList(data.relationScoreId, data.planId);
+          this.planItem = planInfo.data.data.planDetails;
+          if (planInfo.data.data.planItems) {
+            this.$refs.dismantleTableRef.setData(planInfo.data.data.planItems, planInfo.data.data.planScore);
+          }
+
+          // if (planDetails) {
+          //   this.$refs.dismantleTableRef.setData(curr.planItems, curr.planScore);
+          //   this.distributionForm.score = planDetails.total;
+          // }
         }
         this.distributionForm = data; // 查看和编辑的回显
-        const timestamp = new Date(this.distributionForm.endTime).getTime();
+        // const timestamp = new Date(this.distributionForm.endTime).getTime();
         this.distributionForm.endTimeValue = this.distributionForm.endTime;
         // this.belongDate = this.distributionForm.belongDate;
         // this.distributionForm.wmScoreTaskTypeList = this.taskTypeSet; // 回显复选框
         // this.getKfpVal(response.data.data.relationScoreId);
 
-        const list = [
-          {
-            relationScoreName: data.relationScoreName,
-            id: data.relationScoreId
-          }
-        ];
-        this.gljfbOptions = list;
+        // const list = [
+        //   {
+        //     relationScoreName: data.relationScoreName,
+        //     id: data.relationScoreId
+        //   }
+        // ];
+        // this.gljfbOptions = list;
         // this.getRelatedVal(response.data.data.relatedService);
         // this.distributionForm.relationScoreId = response.data.data.relationScoreId; // 查看和编辑的回显
         // if (this.distributionForm.wmScoreTaskTypeList == null) {
@@ -1221,10 +1236,40 @@ export default {
         this.showTaskType();
         // 回显选中的有效服务类型
         this.checkedDsScope = this.distributionForm.taskTypeSet;
+        console.log(' this.checkedDsScope', this.checkedDsScope);
+
+        this.$forceUpdate();
         this.showDig = true;
         this.tableLoading = false;
       });
     },
+    setDetailOptin(info) {
+      this.fwqyOptions = [
+        {
+          deptId: info.relatedService,
+          name: info.relatedServiceName
+        }
+      ];
+      this.gljfbOptions = [
+        {
+          id: info.relationScoreId,
+          relationScoreName: info.relationScoreId == '-1' ? '无' : info.relationScoreName
+        }
+      ];
+      this.planList = [info.plan];
+      this.jbdxOptions = [
+        {
+          id: info.acceptSug,
+          gsmc: info.acceptSugName
+        }
+      ];
+      this.drugList = [
+        {
+          drug_id: info.drugtable[0],
+          drug_name: info.drugtableName[0]
+        }
+      ];
+    },
 
     // 获取可分配积分
     getKfpVal(id) {
@@ -1233,7 +1278,7 @@ export default {
         // scoreId: scoreName,
         id: id
       };
-      selectKfpjf(args).then(response => {
+      selectKfpjf(args).then((response) => {
         // debugger
         this.kfpjfz = response.data.data[0].kfpjf == null ? 0 : response.data.data[0].kfpjf;
         this.jbdxOptions = response.data.data[0].acceptSug;
@@ -1254,7 +1299,7 @@ export default {
       let args = {
         relatedService: relatedService
       };
-      selectRelationScoreId(args).then(response => {
+      selectRelationScoreId(args).then((response) => {
         // debugger
         this.gljfbOptions = response.data.data;
         //关联服务企业展示关联积分包
@@ -1285,7 +1330,7 @@ export default {
     //
     //   });
     // },
-    dateFormat: function(time) {
+    dateFormat: function (time) {
       var date = new Date(time);
       var year = date.getFullYear();
       /* 在日期格式中,月份是从0开始的,因此要加0
@@ -1335,7 +1380,7 @@ export default {
         this.drugProducerList = [...this.drugProducerListCopy]; // 推广产品企业
         this.getListDrug();
       } else {
-        let curr = this.gljfbOptions.find(item => item.id === id);
+        let curr = this.gljfbOptions.find((item) => item.id === id);
         this.distributionForm.wmScoreTaskTypeList = this.wmScoreTaskTypeList;
         this.typeList = true;
         this.packsgeType = true;
@@ -1346,11 +1391,11 @@ export default {
         id: id
       };
       selectKfpjf(arg)
-        .then(response => {
+        .then((response) => {
           // debugger
           if (response.data.code == '0') {
             this.jbdxOptions = [];
-            response.data.data[0].acceptSug.forEach(item => {
+            response.data.data[0].acceptSug.forEach((item) => {
               const addnew = {
                 gsmc: item.gsmc,
                 deptId: item.deptId,
@@ -1415,7 +1460,7 @@ export default {
     },
     // 新增按钮-提交
     submitForm(formName) {
-      this.$refs[formName].validate(valid => {
+      this.$refs[formName].validate((valid) => {
         if (valid) {
           // const date = this.formatDate(this.distributionForm.endTimeValue);
           const date = this.distributionForm.endTimeValue;
@@ -1432,7 +1477,7 @@ export default {
           // 代理商发包
           if (this.IS_DLS) {
             const tableData = this.$refs.dismantleTableRef.getDetail();
-            pkgTaskTypeQtyList = tableData.map(item => {
+            pkgTaskTypeQtyList = tableData.map((item) => {
               return {
                 taskTypeName: item.taskTypeName,
                 price: item.score,
@@ -1441,7 +1486,7 @@ export default {
               };
             });
 
-            let treeArr = tableData.map(item => {
+            let treeArr = tableData.map((item) => {
               return {
                 taskTypeName: item.taskTypeName,
                 taskTypeId: item.orgTaskTypeId
@@ -1449,8 +1494,8 @@ export default {
             });
 
             let arr1 = [...pFlist];
-            tableData.forEach(item => {
-              const curr = arr1.find(iten => iten.taskTypeId === item.parent_id);
+            tableData.forEach((item) => {
+              const curr = arr1.find((iten) => iten.taskTypeId === item.parent_id);
               if (curr) {
                 curr.children.push({
                   taskTypeId: item.orgTaskTypeId,
@@ -1460,7 +1505,7 @@ export default {
             });
 
             let arr3 = arr1.concat(treeArr);
-            const arr4 = arr3.filter(item => {
+            const arr4 = arr3.filter((item) => {
               if (!item.children || item.children.length > 0) {
                 return item;
               }
@@ -1509,11 +1554,11 @@ export default {
               args.drugProducerList = this.distributionForm.drugProducerList;
             }
             if (!this.distributionForm.drugtable || this.distributionForm.drugtable.length === 0) {
-              args.drugtable = this.drugList.map(item => item.drug_id);
+              args.drugtable = this.drugList.map((item) => item.drug_id);
             }
           } else {
             this.distributionForm.drugProducerList = this.drugProducerList; // 推广产品企业
-            args.drugtable = this.drugList.map(item => item.drug_id);
+            args.drugtable = this.drugList.map((item) => item.drug_id);
           }
 
           if (this.dialogType == 'add') {
@@ -1528,7 +1573,7 @@ export default {
             this.buttonLoading = true;
             saves(args)
               // saves(this.distributionForm)
-              .then(response => {
+              .then((response) => {
                 // debugger
                 this.planList = [];
                 this.buttonLoading = false;
@@ -1548,7 +1593,7 @@ export default {
             }
             this.buttonLoading = true;
             updateByIds(args)
-              .then(response => {
+              .then((response) => {
                 // updateByIds(this.distributionForm).then((response) => {
                 // debugger
                 this.planList = [];
@@ -1579,48 +1624,18 @@ export default {
     },
     // 编辑回显
     async updateBtn(row) {
-      // debugger
-      //积分包如果被分派,承接对象不可以修改
-      this.showRelatedService();
-      this.packageIsConduct = row.packageIsConduct;
-      if (row.packageIsConduct == '0') {
-        this.isAble = false;
-      } else {
-        this.isAble = true;
-      }
-      //积分包如果已结算,关联积分包不可以修改
-      this.settleStatus = row.settleStatus;
-      if (row.settleStatus == '1') {
-        this.scoreAble = true;
-      } else {
-        this.scoreAble = false;
-      }
-      //无 可以编辑任务类型,其他不可以编辑
-      if (row.relationScoreId == '') {
-        this.typeList = false;
-        this.packsgeType = false;
-        this.kfpjfz = '';
-        this.distributionForm.belongDate = '';
-      } else {
-        this.typeList = true;
-        this.packsgeType = true;
-      }
       // debugger
       this.showDig = true;
+      this.showRelatedService();
       this.dialogType = 'edit';
       this.showTitle = '编辑';
       this.editDisabled = true;
       this.allNot = false;
       this.addShow = true;
       this.idVal = row.id;
-      this.packageIsConductVal = row.packageIsConduct;
-      this.relationScoreIdVal = row.relationScoreId;
+      // this.packageIsConductVal = row.packageIsConduct;
+      // this.relationScoreIdVal = row.relationScoreId;
       await this.lookDetail(row.id);
-      if (row.endTime) {
-        const timestamp = new Date(row.endTime).getTime();
-        // this.distributionForm.endTimeValue = timestamp;
-        this.distributionForm.endTimeValue = row.endTime;
-      }
     },
     showRestart(row) {
       return false;
@@ -1651,7 +1666,7 @@ export default {
       this.restartVisible = false;
     },
     restartSubmit() {
-      this.$refs.restartForm.validate(async valid => {
+      this.$refs.restartForm.validate(async (valid) => {
         if (valid) {
           // const date = this.formatDate(this.restartForm.endTimeValue);
           const date = this.restartForm.endTimeValue;
@@ -1675,7 +1690,8 @@ export default {
 
     // 计划包id
     planIdChange(e) {
-      const curr = this.planList.find(item => item.planId === e);
+      const curr = this.planList.find((item) => item.planId === e);
+
       if (this.IS_DLS) {
         if (!curr.planDetails) {
           this.$refs.dismantleTableRef.setData([]);
@@ -1690,7 +1706,7 @@ export default {
         this.distributionForm.endTimeValue = curr.planExpiry;
         this.distributionForm.score = curr.planScore;
       }
-      const currA = this.jbdxOptions.find(item => item.deptId == curr.consigneeId);
+      const currA = this.jbdxOptions.find((item) => item.deptId == curr.consigneeId);
       if (currA) {
         this.distributionForm.acceptSug = currA.id;
         if (currA.provAbbr) {
@@ -1723,7 +1739,7 @@ export default {
         relatedService: relatedService
       };
       selectRelationScoreId(arg)
-        .then(response => {
+        .then((response) => {
           this.gljfbOptions = response.data.data;
         })
         .catch(() => {
@@ -1776,13 +1792,13 @@ export default {
         this.isShengyu = true;
         return;
       }
-      this.$refs[formName].validate(valid => {
+      this.$refs[formName].validate((valid) => {
         if (valid) {
           let args = {
             enableType: this.enableForm.enableFlag,
             id: this.suspendData.id
           };
-          stopWmScorePackage(args).then(response => {
+          stopWmScorePackage(args).then((response) => {
             this.$message.success('终止成功');
             this.getList(this.page);
             this.stopcancelBtn();
@@ -1872,7 +1888,7 @@ export default {
     async settleById(row) {
       this.id = row.id;
       this.settleButtonShow = true;
-      let {scorePackageName, score, ysh: finishScore, description} = row;
+      let { scorePackageName, score, ysh: finishScore, description } = row;
       this.form = {
         scorePackageName,
         score,
@@ -1931,7 +1947,7 @@ export default {
       }
     },
     getSummaries(param) {
-      const {columns, data} = param;
+      const { columns, data } = param;
       const sums = [];
       columns.forEach((column, index) => {
         if (index === 0) {
@@ -1939,7 +1955,7 @@ export default {
           return;
         }
         if (index === 4) {
-          let isNumber = num => num === +num;
+          let isNumber = (num) => num === +num;
           let a = data[0] ? data[0].settleAmount : 0;
           let b = data[0] ? data[0].p2pServiceAmount : 0;
           let pre;
@@ -1958,10 +1974,7 @@ export default {
       value = value.replace(/[^\d.\-]/g, ''); //清除"数字"和"." "-"负号以外的字符
       value = value.replace(/^\./g, ''); //验证第一个字符是数字
       value = value.replace(/\.{2,}/g, ''); //只保留第一个, 清除多余的
-      value = value
-        .replace('.', '$#$')
-        .replace(/\./g, '')
-        .replace('$#$', '.');
+      value = value.replace('.', '$#$').replace(/\./g, '').replace('$#$', '.');
       value = value.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数
       e.discount = value;
       e.settleAmount = (Number(e.allScore) * Number(value)).toFixed(2);
@@ -1971,10 +1984,7 @@ export default {
       value = value.replace(/[^\d.\-]/g, ''); //清除"数字"和"." "-"负号以外的字符
       value = value.replace(/^\./g, ''); //验证第一个字符是数字
       value = value.replace(/\.{2,}/g, ''); //只保留第一个, 清除多余的
-      value = value
-        .replace('.', '$#$')
-        .replace(/\./g, '')
-        .replace('$#$', '.');
+      value = value.replace('.', '$#$').replace(/\./g, '').replace('$#$', '.');
       value = value.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数
       e.discount = value;
       e.settleAmount = (Number(e.allScore) * Number(value)).toFixed(2);
@@ -1985,10 +1995,7 @@ export default {
       if (value) {
         value = value.replace(/[^\d.\-]/g, ''); //清除"数字"和"." "-"负号以外的字符
         value = value.replace(/\.{2,}/g, ''); //只保留第一个, 清除多余的
-        value = value
-          .replace('.', '$#$')
-          .replace(/\./g, '')
-          .replace('$#$', '.');
+        value = value.replace('.', '$#$').replace(/\./g, '').replace('$#$', '.');
         value = value.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数
         let discount = (Number(value) / Number(e.allScore)).toFixed(2);
         e.settleAmount = value;
@@ -2002,10 +2009,7 @@ export default {
       let value = e.settleAmount;
       value = value.replace(/[^\d.\-]/g, ''); //清除"数字"和"." "-"负号以外的字符
       value = value.replace(/\.{2,}/g, ''); //只保留第一个, 清除多余的
-      value = value
-        .replace('.', '$#$')
-        .replace(/\./g, '')
-        .replace('$#$', '.');
+      value = value.replace('.', '$#$').replace(/\./g, '').replace('$#$', '.');
       value = value.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数
       let discount = 0;
       if (value) {