aXin-0810 před 1 rokem
rodič
revize
cf98b3c387
1 změnil soubory, kde provedl 229 přidání a 178 odebrání
  1. 229 178
      src/views/engineerFeeSettlement/costPerDimension/index.vue

+ 229 - 178
src/views/engineerFeeSettlement/costPerDimension/index.vue

@@ -1,18 +1,25 @@
 <template>
-  <template-page v-if="showTable" ref="pageRef" :get-list="[getList1, getList2][pageLevel]"
+  <template-page
+    v-if="showTable"
+    ref="pageRef"
+    :get-list="[getList1, getList2][pageLevel]"
     :exportList="[exportList1, exportList2][pageLevel]"
     :options-evens-group="[optionsEvensGroup1, optionsEvensGroup2][pageLevel]"
-    :operation="([operation1, operation2][pageLevel])()" :expCode="['exp', 'detailExp'][pageLevel]"
-    :table-attributes="tableAttributes" :table-events="tableEvents" :moreParameters="moreParameters"
-    :column-parsing="columnParsing">
-    <div slot="moreSearch" v-if="pageLevel==0">
-			<el-radio-group v-model="tagStatus" size="mini" @change="changeType">
-				<el-radio-button label="">全部</el-radio-button>
-				<el-radio-button label="NO">未汇总</el-radio-button>
-				<el-radio-button label="YES">已汇总</el-radio-button>
-			</el-radio-group>
-			<br><br>
-		</div>
+    :operation="[operation1, operation2][pageLevel]()"
+    :expCode="['exp', 'detailExp'][pageLevel]"
+    :table-attributes="tableAttributes"
+    :table-events="tableEvents"
+    :moreParameters="moreParameters"
+    :column-parsing="columnParsing"
+  >
+    <div slot="moreSearch" v-if="pageLevel == 0">
+      <el-radio-group v-model="tagStatus" size="mini" @change="changeType">
+        <el-radio-button label="">全部</el-radio-button>
+        <el-radio-button label="NO">未汇总</el-radio-button>
+        <el-radio-button label="YES">已汇总</el-radio-button>
+      </el-radio-group>
+      <br /><br />
+    </div>
     <div class="cartographer_big">
       <el-dialog title="费用明细" width="100%" :modal="false" :visible.sync="formBool" :before-close="handleClose">
         <zj-page-container v-if="formBool">
@@ -22,7 +29,7 @@
             </zj-form-container>
           </zj-page-fill>
           <div>
-            <div style="box-sizing: border-box; padding: 10px;text-align: right;">
+            <div style="box-sizing: border-box; padding: 10px; text-align: right">
               <el-button size="mini" @click="handleClose">取 消</el-button>
               <el-button v-if="!formEdit" size="mini" @click="formConfirm" type="primary">确 定</el-button>
             </div>
@@ -39,9 +46,19 @@ import import_mixin from '@/components/template/import_mixin.js'
 import operation_mixin from '@/components/template/operation_mixin.js'
 import ImageUpload from '@/components/file-upload'
 import { required, mobileRequired, mobile, httpUrl, email } from '@/components/template/rules_verify.js'
-import { settleExpenseGatherList, settleExpenseGatherListExport, settleExpenseImport, settleExpenseMonthGather, settleExpenseList, settleExpenseListExport, settleExpenseGatherBatchDel, settleExpenseBatchDel, settleExpenseSave } from "@/api/costPerDimension";
+import {
+  settleExpenseGatherList,
+  settleExpenseGatherListExport,
+  settleExpenseImport,
+  settleExpenseMonthGather,
+  settleExpenseList,
+  settleExpenseListExport,
+  settleExpenseGatherBatchDel,
+  settleExpenseBatchDel,
+  settleExpenseSave
+} from '@/api/costPerDimension'
 import { commonTemplateDownload } from '@/api/common.js'
-import { memberListPageV2 } from "@/api/masterManagement";
+import { memberListPageV2 } from '@/api/masterManagement'
 export default {
   components: { TemplatePage, ImageUpload },
   mixins: [import_mixin, operation_mixin],
@@ -63,12 +80,12 @@ export default {
       showTable: true,
       collectItem: {},
       formData: {
-        companyWechatName: JSON.parse(localStorage.getItem('greemall_user')).companyName,
+        companyWechatName: JSON.parse(localStorage.getItem('greemall_user')).companyName
       },
       formBool: false,
       formEdit: false,
       workerList: [],
-      tagStatus: this?.pageCode || ""
+      tagStatus: this?.pageCode || ''
     }
   },
   computed: {
@@ -76,7 +93,7 @@ export default {
       return [
         [
           [
-            this.optionsEvensAuth("batchSummary", {
+            this.optionsEvensAuth('batchSummary', {
               click: () => {
                 if (this.recordSelected.length === 0) {
                   this.$message.warning('请勾选工单')
@@ -87,29 +104,29 @@ export default {
                   cancelButtonText: '取消',
                   inputPattern: /\S/,
                   inputErrorMessage: '名称不能为空'
-                }).then(({ value }) => {
-                  settleExpenseMonthGather({
-                    ids: this.recordSelected.map(item => item.id),
-                    name: value
-                  }).then(res => {
-                    this.$message({
-                      type: 'success',
-                      message: '操作成功!'
+                })
+                  .then(({ value }) => {
+                    settleExpenseMonthGather({
+                      ids: this.recordSelected.map(item => item.id),
+                      name: value
+                    }).then(res => {
+                      this.$message({
+                        type: 'success',
+                        message: '操作成功!'
+                      })
+                      this.$refs?.pageRef?.refreshList()
                     })
-                    this.$refs?.pageRef?.refreshList()
                   })
-                }).catch(() => {
-
-                });
+                  .catch(() => {})
               }
             })
           ],
           [
-            this.optionsEvensAuth(["import", "download1", "download2", "download3", "download4"], {
+            this.optionsEvensAuth(['import', 'download1', 'download2', 'download3', 'download4'], {
               name: '导入费用',
-              click: () => { }
+              click: () => {}
             }),
-            this.optionsEvensAuth("import", ({ moduleName }) => {
+            this.optionsEvensAuth('import', ({ moduleName }) => {
               return {
                 name: moduleName,
                 render: () => {
@@ -117,7 +134,7 @@ export default {
                 }
               }
             }),
-            this.optionsEvensAuth("download1", {
+            this.optionsEvensAuth('download1', {
               click: () => {
                 commonTemplateDownload({ name: '师傅费用结算导入模板(其它).xlsx' }, `师傅费用结算导入模板(其它)`)
                   .then(res => {
@@ -131,9 +148,12 @@ export default {
                   })
               }
             }),
-            this.optionsEvensAuth("download2", {
+            this.optionsEvensAuth('download2', {
               click: () => {
-                commonTemplateDownload({ name: '师傅费用结算导入模板(安装其它).xlsx' }, `师傅费用结算导入模板(安装其它)`)
+                commonTemplateDownload(
+                  { name: '师傅费用结算导入模板(安装其它).xlsx' },
+                  `师傅费用结算导入模板(安装其它)`
+                )
                   .then(res => {
                     this.$message({
                       message: '下载成功',
@@ -145,9 +165,12 @@ export default {
                   })
               }
             }),
-            this.optionsEvensAuth("download3", {
+            this.optionsEvensAuth('download3', {
               click: () => {
-                commonTemplateDownload({ name: '师傅费用结算导入模板(安装家用空调).xlsx' }, `师傅费用结算导入模板(安装家用空调)`)
+                commonTemplateDownload(
+                  { name: '师傅费用结算导入模板(安装家用空调).xlsx' },
+                  `师傅费用结算导入模板(安装家用空调)`
+                )
                   .then(res => {
                     this.$message({
                       message: '下载成功',
@@ -159,7 +182,7 @@ export default {
                   })
               }
             }),
-            this.optionsEvensAuth("download4", {
+            this.optionsEvensAuth('download4', {
               click: () => {
                 commonTemplateDownload({ name: '师傅费用结算导入模板(维修).xlsx' }, `师傅费用结算导入模板(维修)`)
                   .then(res => {
@@ -172,8 +195,8 @@ export default {
                     this.$message.error('下载失败')
                   })
               }
-            }),
-          ],
+            })
+          ]
         ]
       ]
     },
@@ -182,27 +205,28 @@ export default {
         [
           [
             {
-              name: "返回汇总页面",
+              name: '返回汇总页面',
               click: () => {
                 this.pageLevel = 0
               }
             }
-          ],
+          ]
         ],
         ...(() => {
-          if (this.collectItem.status != "YES") {
+          if (this.collectItem.status != 'YES') {
             return [
               [
                 [
-                  this.optionsEvensAuth("detailAdd", {
+                  this.optionsEvensAuth('detailAdd', {
                     click: () => {
                       this.formBool = true
+                      this.formEdit = false
                       this.getWorkers()
                     }
                   })
                 ],
                 [
-                  this.optionsEvensAuth("detailBatchDel", {
+                  this.optionsEvensAuth('detailBatchDel', {
                     click: () => {
                       if (this.recordSelected.length === 0) {
                         this.$message.warning('请勾选工单')
@@ -212,20 +236,20 @@ export default {
                         confirmButtonText: '确定',
                         cancelButtonText: '取消',
                         type: 'warning'
-                      }).then(() => {
-                        settleExpenseBatchDel(this.recordSelected.map(item => item.id)).then(res => {
-                          this.$message({
-                            type: 'success',
-                            message: '删除成功!'
+                      })
+                        .then(() => {
+                          settleExpenseBatchDel(this.recordSelected.map(item => item.id)).then(res => {
+                            this.$message({
+                              type: 'success',
+                              message: '删除成功!'
+                            })
+                            this.$refs?.pageRef?.refreshList()
                           })
-                          this.$refs?.pageRef?.refreshList()
                         })
-                      }).catch(() => {
-
-                      });
+                        .catch(() => {})
                     }
                   })
-                ],
+                ]
               ]
             ]
           }
@@ -243,119 +267,129 @@ export default {
           name: 'el-input',
           md: 12,
           attributes: {
-            disabled: true,
+            disabled: true
           },
           formItemAttributes: {
             label: '所属商户',
             prop: 'companyWechatName',
             rules: []
           }
-        }, {
+        },
+        {
           name: 'el-input',
           md: 12,
           attributes: {
-            disabled: this.formEdit,
+            disabled: this.formEdit
           },
           formItemAttributes: {
             label: '网点名称',
             prop: 'importWebsitName',
             rules: []
           }
-        }, {
+        },
+        {
           name: 'el-date-picker',
           md: 6,
           attributes: {
-            type: "month",
+            type: 'month',
             disabled: this.formEdit,
-            'value-format': 'yyyy-MM',
+            'value-format': 'yyyy-MM'
           },
           formItemAttributes: {
             label: '发放月份',
             prop: 'sendMonth',
             rules: [...required]
           }
-        }, {
+        },
+        {
           name: 'el-input',
           md: 6,
           attributes: {
-            disabled: this.formEdit,
+            disabled: this.formEdit
           },
           formItemAttributes: {
             label: '费用类型',
             prop: 'typeName',
             rules: [...required]
           }
-        }, {
+        },
+        {
           name: 'el-input',
           md: 6,
           attributes: {
-            disabled: this.formEdit,
+            disabled: this.formEdit
           },
           formItemAttributes: {
             label: '安装/维修品类',
             prop: 'category',
             rules: []
           }
-        }, {
+        },
+        {
           name: 'el-input',
           md: 6,
           attributes: {
-            disabled: this.formEdit,
+            disabled: this.formEdit
           },
           formItemAttributes: {
             label: '维修自编号',
             prop: 'repairCustomCode',
             rules: []
           }
-        }, {
+        },
+        {
           name: 'el-input',
           md: 6,
           attributes: {
-            disabled: this.formEdit,
+            disabled: this.formEdit
           },
           formItemAttributes: {
             label: '内机条码',
             prop: 'insideCode',
             rules: []
           }
-        }, {
+        },
+        {
           name: 'el-input',
           md: 6,
           attributes: {
-            disabled: this.formEdit,
+            disabled: this.formEdit
           },
           formItemAttributes: {
             label: '内机名称',
             prop: 'insideName',
             rules: []
           }
-        }, {
+        },
+        {
           name: 'el-input',
           md: 6,
           attributes: {
-            disabled: this.formEdit,
+            disabled: this.formEdit
           },
           formItemAttributes: {
             label: '基础安装/维修费用',
             prop: 'baseAmount',
             rules: []
           }
-        }, {
+        },
+        {
           name: 'el-input',
           md: 6,
           attributes: {
-            disabled: this.formEdit,
+            disabled: this.formEdit
           },
           formItemAttributes: {
             label: '辅材达标',
             prop: 'materialAmount',
             rules: []
           }
-        }, {
+        },
+        {
           name: 'el-input',
           md: 6,
           attributes: {
-            disabled: this.formEdit,
+            disabled: this.formEdit
           },
           formItemAttributes: {
             label: '评价数据达标',
@@ -373,14 +407,12 @@ export default {
           },
           attributes: {},
           render: (h, { props, onInput }) => {
-            this.formData.totalAmount = Number(this.formData.baseAmount||0) + Number(this.formData.materialAmount||0) + Number(this.formData.appraiseAmount||0)
+            this.formData.totalAmount =
+              Number(this.formData.baseAmount || 0) +
+              Number(this.formData.materialAmount || 0) +
+              Number(this.formData.appraiseAmount || 0)
             return (
-              <el-input
-                value={this.formData.totalAmount}
-                disabled={true}
-                size="mini"
-                placeholder="请输入"
-              ></el-input>
+              <el-input value={this.formData.totalAmount} disabled={true} size="mini" placeholder="请输入"></el-input>
             )
           }
         },
@@ -388,93 +420,101 @@ export default {
           name: 'el-input',
           md: 6,
           attributes: {
-            disabled: this.formEdit,
+            disabled: this.formEdit
           },
           formItemAttributes: {
             label: '工单编号',
             prop: 'orderNo',
             rules: []
           }
-        }, {
+        },
+        {
           name: 'el-input',
           md: 6,
           attributes: {
-            disabled: this.formEdit,
+            disabled: this.formEdit
           },
           formItemAttributes: {
             label: '销售单号',
             prop: 'salesOrderNo',
             rules: []
           }
-        }, {
+        },
+        {
           name: 'el-date-picker',
           md: 6,
           attributes: {
-            type: "date",
+            type: 'date',
             disabled: this.formEdit,
-            'value-format': 'yyyy-MM-dd HH:mm:ss',
+            'value-format': 'yyyy-MM-dd HH:mm:ss'
           },
           formItemAttributes: {
             label: '安装/维修日期',
             prop: 'workDate',
             rules: []
           }
-        }, {
+        },
+        {
           name: 'el-input',
           md: 6,
           attributes: {
-            disabled: this.formEdit,
+            disabled: this.formEdit
           },
           formItemAttributes: {
             label: '销售类型',
             prop: 'salesType',
             rules: []
           }
-        }, {
+        },
+        {
           name: 'el-input',
           md: 12,
           attributes: {
-            disabled: this.formEdit,
+            disabled: this.formEdit
           },
           formItemAttributes: {
             label: '维修内容',
             prop: 'repairContent',
             rules: []
           }
-        }, {
+        },
+        {
           name: 'el-input',
           md: 6,
           attributes: {
-            disabled: this.formEdit,
+            disabled: this.formEdit
           },
           formItemAttributes: {
             label: '客户名称',
             prop: 'userName',
             rules: []
           }
-        }, {
+        },
+        {
           name: 'el-input',
           md: 6,
           attributes: {
-            disabled: this.formEdit,
+            disabled: this.formEdit
           },
           formItemAttributes: {
             label: '客户电话',
             prop: 'userMobile',
             rules: []
           }
-        }, {
+        },
+        {
           name: 'el-input',
           md: 24,
           attributes: {
-            disabled: this.formEdit,
+            disabled: this.formEdit
           },
           formItemAttributes: {
             label: '客户地址',
             prop: 'userAddress',
             rules: []
           }
-        }, {
+        },
+        {
           name: 'zj-select',
           options: this.workerList,
           md: 6,
@@ -483,8 +523,8 @@ export default {
             placeholder: '请选择',
             clearable: true,
             filterable: true,
-            blurNoMatchText:true,
-            blurNoMatchInputBorderColor:""
+            blurNoMatchText: true,
+            blurNoMatchInputBorderColor: ''
           },
           formItemAttributes: {
             label: '工程师1名称',
@@ -492,52 +532,56 @@ export default {
             rules: [...required]
           },
           events: {
-            change: (val) => {
+            change: val => {
               var data = this.workerList.find(item => item.value == val)?.data
-              if(data){
-                this.formData.workerName1 = data?.workerName || ""
-                this.formData.workerMobile1 = data?.workerMobile || ""
-              }else{
+              if (data) {
+                this.formData.workerName1 = data?.workerName || ''
+                this.formData.workerMobile1 = data?.workerMobile || ''
+              } else {
                 this.formData.workerName1 = val
-                this.formData.workerMobile1 = ""
+                this.formData.workerMobile1 = ''
               }
             }
-          },
-        }, {
+          }
+        },
+        {
           name: 'el-input',
           md: 6,
           attributes: {
             disabled: this.formEdit,
-            placeholder: '请输入',
+            placeholder: '请输入'
           },
           formItemAttributes: {
             label: '工程师1电话',
             prop: 'workerMobile1',
             rules: []
           }
-        }, {
+        },
+        {
           name: 'el-input',
           md: 6,
           attributes: {
-            disabled: this.formEdit,
+            disabled: this.formEdit
           },
           formItemAttributes: {
             label: '工程师1结算比例',
             prop: 'workerSettleRate1',
             rules: []
           }
-        }, {
+        },
+        {
           name: 'el-input',
           md: 6,
           attributes: {
-            disabled: this.formEdit,
+            disabled: this.formEdit
           },
           formItemAttributes: {
             label: '工程师1结算金额',
             prop: 'workerSettleAmount1',
             rules: []
           }
-        }, {
+        },
+        {
           name: 'zj-select',
           options: this.workerList,
           md: 6,
@@ -546,8 +590,8 @@ export default {
             placeholder: '请选择',
             clearable: true,
             filterable: true,
-            blurNoMatchText:true,
-            blurNoMatchInputBorderColor:""
+            blurNoMatchText: true,
+            blurNoMatchInputBorderColor: ''
           },
           formItemAttributes: {
             label: '工程师2名称',
@@ -555,63 +599,67 @@ export default {
             rules: []
           },
           events: {
-            change: (val) => {
+            change: val => {
               var data = this.workerList.find(item => item.value == val)?.data
-              if(data){
-                this.formData.workerName2 = data?.workerName || ""
-                this.formData.workerMobile2 = data?.workerMobile || ""
-              }else{
+              if (data) {
+                this.formData.workerName2 = data?.workerName || ''
+                this.formData.workerMobile2 = data?.workerMobile || ''
+              } else {
                 this.formData.workerName2 = val
-                this.formData.workerMobile2 = ""
+                this.formData.workerMobile2 = ''
               }
             }
-          },
-        }, {
+          }
+        },
+        {
           name: 'el-input',
           md: 6,
           attributes: {
             disabled: this.formEdit,
-            placeholder: '请输入',
+            placeholder: '请输入'
           },
           formItemAttributes: {
             label: '工程师2电话',
             prop: 'workerMobile2',
             rules: []
           }
-        }, {
+        },
+        {
           name: 'el-input',
           md: 6,
           attributes: {
-            disabled: this.formEdit,
+            disabled: this.formEdit
           },
           formItemAttributes: {
             label: '工程师2结算比例',
             prop: 'workerSettleRate2',
             rules: []
           }
-        }, {
+        },
+        {
           name: 'el-input',
           md: 6,
           attributes: {
-            disabled: this.formEdit,
+            disabled: this.formEdit
           },
           formItemAttributes: {
             label: '工程师2结算金额',
             prop: 'workerSettleAmount2',
             rules: []
           }
-        }, {
+        },
+        {
           name: 'el-input',
           md: 24,
           attributes: {
-            disabled: this.formEdit,
+            disabled: this.formEdit
           },
           formItemAttributes: {
             label: '备注',
             prop: 'remark',
             rules: []
           }
-        },
+        }
       ]
     }
   },
@@ -623,42 +671,40 @@ export default {
       })
     }
   },
-  created(){
-    if(this.pageCode){
+  created() {
+    if (this.pageCode) {
       this.tagStatus = this?.pageCode
     }
   },
   methods: {
     changeType(val) {
-			this.$refs.pageRef.refreshList()
-		},
+      this.$refs.pageRef.refreshList()
+    },
     getList1(p, cb) {
       var pam = JSON.parse(JSON.stringify(p))
       try {
-        if(this.tagStatus){
-          pam.params.push({"param":"a.status","compare":"=","value": this.tagStatus})
+        if (this.tagStatus) {
+          pam.params.push({ param: 'a.status', compare: '=', value: this.tagStatus })
         }
         cb && cb(pam)
         return settleExpenseGatherList(pam)
-      } catch (err) {
-      }
+      } catch (err) {}
     },
     exportList1: settleExpenseGatherListExport,
     getList2(p, cb) {
       var pam = JSON.parse(JSON.stringify(p))
       try {
-        pam.params.push({ "param": "a.settle_expense_id", "compare": "=", "value": this.collectItem.id })
+        pam.params.push({ param: 'a.settle_expense_id', compare: '=', value: this.collectItem.id })
         cb && cb(pam)
         return settleExpenseList(pam)
-      } catch (err) {
-      }
+      } catch (err) {}
     },
     exportList2: settleExpenseListExport,
     selectable(row, index) {
       if (this.pageLevel) {
-        return this?.collectItem?.status != "YES"
+        return this?.collectItem?.status != 'YES'
       }
-      return !["YES"].includes(Object.entries(row.selectMapData.status).find(([key, val]) => val == row.status)?.[0])
+      return !['YES'].includes(Object.entries(row.selectMapData.status).find(([key, val]) => val == row.status)?.[0])
     },
     operation1() {
       return this.operationBtn({
@@ -670,7 +716,7 @@ export default {
         },
         summary: {
           conditions: ({ row, index, column }) => {
-            return row.status != "YES"
+            return row.status != 'YES'
           },
           click: ({ row, index, column }) => {
             this.$prompt('汇总名称', '汇总', {
@@ -678,26 +724,26 @@ export default {
               cancelButtonText: '取消',
               inputPattern: /\S/,
               inputErrorMessage: '名称不能为空'
-            }).then(({ value }) => {
-              settleExpenseMonthGather({
-                ids: [row.id],
-                name: value
-              }).then(res => {
-                this.$message({
-                  type: 'success',
-                  message: '操作成功!'
+            })
+              .then(({ value }) => {
+                settleExpenseMonthGather({
+                  ids: [row.id],
+                  name: value
+                }).then(res => {
+                  this.$message({
+                    type: 'success',
+                    message: '操作成功!'
+                  })
+                  this.$refs?.pageRef?.refreshList()
                 })
-                this.$refs?.pageRef?.refreshList()
               })
-            }).catch(() => {
-
-            });
+              .catch(() => {})
           }
         },
         del: {
-          prompt: "此操作将永久删除数据, 是否继续?",
+          prompt: '此操作将永久删除数据, 是否继续?',
           conditions: ({ row, index, column }) => {
-            return row.status != "YES"
+            return row.status != 'YES'
           },
           click: ({ row, index, column }) => {
             settleExpenseGatherBatchDel([row.id]).then(res => {
@@ -715,17 +761,17 @@ export default {
       return this.operationBtn({
         detailEdit: {
           conditions: ({ row, index, column }) => {
-            return row.status != "YES"
+            return row.status != 'YES'
           },
           click: ({ row, index, column }) => {
-            this.formData = { 
+            this.formData = {
               ...row,
-              ...(()=>{
+              ...(() => {
                 var obj = {}
-                if(!row.workerId1 && row.workerName1){
+                if (!row.workerId1 && row.workerName1) {
                   obj.workerId1 = row.workerName1
                 }
-                if(!row.workerId2 && row.workerName2){
+                if (!row.workerId2 && row.workerName2) {
                   obj.workerId2 = row.workerName2
                 }
                 return obj
@@ -737,9 +783,9 @@ export default {
           }
         },
         detailDel: {
-          prompt: "此操作将永久删除数据, 是否继续?",
+          prompt: '此操作将永久删除数据, 是否继续?',
           conditions: ({ row, index, column }) => {
-            return row.status != "YES"
+            return row.status != 'YES'
           },
           click: ({ row, index, column }) => {
             settleExpenseBatchDel([row.id]).then(res => {
@@ -753,14 +799,14 @@ export default {
         },
         details_mx: {
           click: ({ row, index, column }) => {
-            this.formData = { 
+            this.formData = {
               ...row,
-              ...(()=>{
+              ...(() => {
                 var obj = {}
-                if(!row.workerId1 && row.workerName1){
+                if (!row.workerId1 && row.workerName1) {
                   obj.workerId1 = row.workerName1
                 }
-                if(!row.workerId2 && row.workerName2){
+                if (!row.workerId2 && row.workerName2) {
                   obj.workerId2 = row.workerName2
                 }
                 return obj
@@ -784,6 +830,7 @@ export default {
     handleClose() {
       this.$data.formData = this.$options.data().formData
       this.formBool = false
+      this.formEdit = false
     },
     formConfirm() {
       this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
@@ -800,7 +847,11 @@ export default {
       })
     },
     getWorkers() {
-      memberListPageV2({ "pageNum": 1, "pageSize": -1, "params": [{ "param": "b.examine_status", "compare": "=", "value": "OK" }] }).then(res => {
+      memberListPageV2({
+        pageNum: 1,
+        pageSize: -1,
+        params: [{ param: 'b.examine_status', compare: '=', value: 'OK' }]
+      }).then(res => {
         this.workerList = res.data.records.map(item => {
           var { id, userId, ...data } = item
           return {
@@ -826,11 +877,11 @@ export default {
   box-sizing: border-box;
   padding-left: 16px;
 
-  ::v-deep &>.zj-page-fill-scroll {
+  ::v-deep & > .zj-page-fill-scroll {
     box-sizing: border-box;
     padding-right: 16px;
 
-    &>div:nth-child(1) {
+    & > div:nth-child(1) {
       margin-top: 20px;
     }
   }