Przeglądaj źródła

fix: 配提增加 批量修改

zh 2 lat temu
rodzic
commit
82bf2a1bdd

+ 9 - 0
src/api/policy_list.js

@@ -573,3 +573,12 @@ export function getPolicyLimitGroupList(params) {
     params
   })
 }
+
+// 经销商配提套数上限-批量修改配提套数
+export function updateLimitGrouppdate(params) {
+  return request({
+    url: '/policy/limit/group/batchupdate',
+    method: 'post',
+    params
+  })
+}

+ 8 - 0
src/api/stock.js

@@ -323,3 +323,11 @@ export function kunCunImportData(data) {
 export function kunCunTiaoImportData(data) {
   return handleImport("/customer/front/kunCunTiaoImportData", data.formdata, data.id || "");
 }
+
+export function downloadkunCunDownload(data, name) {
+  return getBlob({
+    url: 'customer/front/kunCunDownload',
+    data,
+    name
+  })
+}

+ 11 - 22
src/views/sales_policy/components/Examine.vue

@@ -448,19 +448,7 @@
                     </el-table-column>
                   </el-table>
                 </div>
-                <!-- 分页 -->
-                <!-- <div style="margin: 20px 0">
-                  <el-pagination
-                    @size-change="handleSizeChanges"
-                    @current-change="handleCurrentChanges"
-                    :current-page="currentPages"
-                    :page-sizes="[10, 20, 30, 50]"
-                    :page-size="10"
-                    layout="total, sizes, prev, pager, next, jumper"
-                    :total="clistTotals"
-                  >
-                  </el-pagination>
-                </div> -->
+
               </el-col>
             </el-row>
           </template>
@@ -916,8 +904,13 @@ export default {
     // 更改每页数量
     handleSizeChanges(val) {
       this.pageSizes = val
-      this.currentPages = 1
-      this.getCond()
+      this.currentPage = 1
+      this.getCrList()
+    },
+      // 更改当前页
+    handleCurrentChanges(val) {
+      this.currentPage = val
+      this.getCrList()
     },
     handleBack() {
       this.isEdit = 1
@@ -946,11 +939,7 @@ export default {
     openPdf(pdfUrl) {
       window.open(this.$imageUrl + pdfUrl)
     },
-    // 更改当前页
-    handleCurrentChanges(val) {
-      this.currentPages = val
-      this.getCond()
-    },
+  
     // 更改每页数量
     handleSizeChange2(val) {
       this.dpageSize = val
@@ -970,8 +959,8 @@ export default {
     getCond() {
       this.listLoading = true
       const custoParams = {
-        pageNum: this.currentPages,
-        pageSize: this.pageSizes,
+        pageNum: 1,
+        pageSize: -1,
         policyId: this.detail.code
       }
       getCustomerList(custoParams).then(res => {

+ 144 - 11
src/views/sales_policy/components/TabelTransfer.vue

@@ -254,8 +254,24 @@
           <el-button size="mini" @click="submitScreenForm2">确定</el-button>
           <el-button size="mini" @click="resetScreenForm2">重置</el-button>
           <template v-if="batch">
-            <el-button v-if="list.length" type="primary" size="mini" @click="handelBatchData">批量修改上限</el-button>
-            <el-button v-if="list.length" type="primary" size="mini" @click="handelBatchData2">批量修改组数</el-button>
+            <el-button
+              v-if="list.length"
+              type="primary"
+              size="mini"
+              @click="()=>{
+                visible = true
+                handelBatchData()
+              }"
+            >批量修改上限</el-button>
+            <el-button
+              v-if="list.length"
+              type="primary"
+              size="mini"
+              @click="()=>{
+                maxBuyNumVisible = true
+                handelBatchData()
+              }"
+            >批量修改组数</el-button>
           </template>
         </el-col>
       </el-row>
@@ -363,6 +379,15 @@
           :ex-params="{ policyId: comCode || code }"
         />
         <el-button type="primary" size="mini" @click="hanleDownloadFilesPolicyLimitGroupPolicy">下载模板</el-button>
+        <el-button
+          v-if="policyLimitGroupList.length"
+          type="primary"
+          size="mini"
+          @click="()=>{
+            limitGroupvisible = true
+            handelLimitGroupData()
+          }"
+        >批量修改配提套数上限</el-button>
       </div>
       <el-row style="margin: 20px 0">
         <el-col :span="12">
@@ -534,6 +559,51 @@
         <el-button type="primary" @click="onSubmit">确定</el-button>
       </span>
     </el-dialog>
+    <el-dialog
+      title="批量修改"
+      :visible.sync="limitGroupvisible"
+      width="50%"
+      :append-to-body="true"
+      :close-on-click-modal="false"
+      @close="handleLimitDialogVisible"
+    >
+      <el-row :gutter="20">
+        <el-col :span="24" style="display: flex; align-items: center; margin-bottom: 20px">
+          <el-col :span="4" :offset="0"> 配提套数上限 </el-col>
+          <el-col :span="8" :offset="0"> <el-input v-model="limitGroupNum" size="mini" /></el-col>
+        </el-col>
+        <el-col :span="24" :offset="0" style="margin-bottom: 20px">
+          <div style="display: flex">
+            <el-input v-model="limitGroupKeyWord" placeholder="输入关键字搜索" size="mini" />
+            <el-button style="margin-left: 20px" type="primary" size="mini" @click="handelLimitGroupData('search')">查询</el-button>
+            <el-button size="mini" @click="onLimitReset">重置</el-button>
+          </div>
+        </el-col>
+      </el-row>
+
+      <zj-table
+        :table-attributes="tableAttributes"
+        :table-events="tableEvents"
+        :is-drop="true"
+        :columns="columns"
+        :table-data="limitTableData"
+      />
+      <div style="margin: 20px 0">
+        <el-pagination
+          :current-page="limitCurrentPages"
+          :page-sizes="[10, 20, 30, 50]"
+          :page-size="10"
+          layout="total, sizes, prev, pager, next, jumper"
+          :total="limitTotal"
+          @size-change="handleLimitSizeChanges"
+          @current-change="handleLimitCurrentChanges"
+        />
+      </div>
+      <span slot="footer">
+        <el-button @click="handleLimitDialogVisible">取消</el-button>
+        <el-button type="primary" @click="onLimitSubmit('limit')">确定</el-button>
+      </span>
+    </el-dialog>
   </div>
 </template>
 
@@ -545,7 +615,7 @@ import {
   getCrList,
   getCustomerList,
   getPolicyList,
-  updateCustomerCountBatch,
+  updateLimitGrouppdate,
   updateLimitBatchupdate,
   getPolicyLimitGroupList
 } from '@/api/policy_list'
@@ -654,7 +724,14 @@ export default {
       policyCurrentPages: 1,
       policyPageSize: 10,
       policyListTotal: 0,
-      policyKeyWord: ''
+      policyKeyWord: '',
+      limitGroupvisible: false,
+      limitGroupNum: 0,
+      limitGroupKeyWord: '',
+      limitCurrentPages: 1,
+      limitTotal: 0,
+      limitPageSizes: 10,
+      limitTableData: []
     }
   },
   computed: {
@@ -1025,10 +1102,6 @@ export default {
         this.tableData = res.data.records
         this.batchTotal = res.data.total
       })
-      this.visible = true
-    },
-    handelBatchData2() {
-      this.maxBuyNumVisible = true
     },
     handleDialogVisible() {
       this.visible = false
@@ -1054,14 +1127,14 @@ export default {
           return k.customerId
         })
         .join(',')
-      const dis = this.selectedData
+      const ids = this.selectedData
         .map(k => {
           return k.id
         })
         .join(',')
       const params = {
         customerIds,
-        dis
+        ids
       }
       if (type) {
         params.limitQty = this.limitQty
@@ -1079,7 +1152,8 @@ export default {
       this.handelBatchData()
     },
     onReset() {
-      this.handleDialogVisible()
+      this.limitQtyKeyWord = ''
+      this.maxBuyNumKeyWord = ''
       this.handelBatchData()
     },
     handleBatchCurrentChanges(val) {
@@ -1140,6 +1214,65 @@ export default {
           confirmButtonText: '确定'
         })
       }
+    },
+    handelLimitGroupData(search) {
+      if (search) {
+        this.limitCurrentPages = 1
+      }
+      this.limitGroupvisible = true
+      getPolicyLimitGroupList({
+        pageNum: this.limitCurrentPages,
+        pageSize: this.limitPageSizes,
+        policyId: this.comCode || this.code,
+        keyword: this.limitGroupKeyWord
+      }).then(res => {
+        this.limitTableData = res.data.records
+        this.limitTotal = res.data.total
+      })
+    },
+    onLimitSubmit(type) {
+      if (!this.selectedData.length) {
+        this.$errorMsg('不能为空,请选择')
+        return
+      }
+      if (this.limitGroupNum <= 0) {
+        this.$errorMsg('配提套数上限不能小于0')
+        return
+      }
+      const ids = this.selectedData
+        .map(k => {
+          return k.id
+        })
+        .join(',')
+      const params = {
+        ids,
+        limitGroupNum: this.limitGroupNum
+      }
+      updateLimitGrouppdate(params).then(res => {
+        this.handleLimitDialogVisible()
+        this.$successMsg('批量修改成功')
+      })
+    },
+    handleLimitSizeChanges(val) {
+      this.limitCurrentPages = 1
+      this.limitPageSizes = val
+      this.handelLimitGroupData()
+    },
+    handleLimitCurrentChanges(val) {
+      this.limitCurrentPages = val
+      this.handelLimitGroupData()
+    },
+    onLimitReset() {
+      this.limitGroupKeyWord = ''
+      this.handelLimitGroupData()
+    },
+    handleLimitDialogVisible() {
+      this.limitGroupvisible = false
+      this.limitGroupNum = 0
+      this.limitGroupKeyWord = ''
+      this.limitCurrentPages = 1
+      this.limitTotal = 0
+      this.limitPageSizes = 10
     }
   }
 }

+ 23 - 22
src/views/sales_policy/components/details.vue

@@ -91,9 +91,9 @@
                     :preview-src-list="[$imageUrl + item]"
                     class="elImageClose"
                   />
-                  <img v-if="checkFileType(item) == 'word'" class="file" src="@/assets/common/word.png" />
-                  <img v-if="checkFileType(item) == 'excel'" class="file" src="@/assets/common/excel.png" />
-                  <img v-if="checkFileType(item) == 'ppt'" class="file" src="@/assets/common/ppt.png" />
+                  <img v-if="checkFileType(item) == 'word'" class="file" src="@/assets/common/word.png">
+                  <img v-if="checkFileType(item) == 'excel'" class="file" src="@/assets/common/excel.png">
+                  <img v-if="checkFileType(item) == 'ppt'" class="file" src="@/assets/common/ppt.png">
 
                   <img
                     v-if="checkFileType(item) == 'pdf'"
@@ -101,9 +101,9 @@
                     style="cursor: pointer"
                     src="@/assets/common/pdf.png"
                     @click="openPdf(item)"
-                  />
+                  >
 
-                  <img v-if="checkFileType(item) == 'file'" class="file aaa" src="@/assets/common/zip.jpeg" />
+                  <img v-if="checkFileType(item) == 'file'" class="file aaa" src="@/assets/common/zip.jpeg">
                 </template>
                 <!-- <el-image
                   v-for="item in detail.imgSrc"
@@ -366,8 +366,7 @@
                     <template slot-scope="scope">
                       <CopyButton :copy-text="scope.row.customerNumber" />
                       <span>{{ scope.row.customerNumber }}</span>
-                    </template></el-table-column
-                  >
+                    </template></el-table-column>
                   <el-table-column prop="customerName" label="经销商名称" align="left">
                     <template slot-scope="scope">
                       <CopyButton :copy-text="scope.row.customerName" />
@@ -436,13 +435,11 @@
                 </el-col>
                 <el-col :span="4" class="middle_box" :offset="0">
                   <el-col>
-                    <el-button size="mini" :disabled="type == 2" @click="handleAllAdd">全部添加</el-button></el-col
-                  >
+                    <el-button size="mini" :disabled="type == 2" @click="handleAllAdd">全部添加</el-button></el-col>
                   <el-col> <el-button size="mini" :disabled="type == 2" @click="handleAdd">增加</el-button></el-col>
                   <el-col> <el-button size="mini" :disabled="type == 1" @click="handleDelete">删除</el-button></el-col>
                   <el-col>
-                    <el-button size="mini" :disabled="type == 1" @click="handleAllDelete">全部删除</el-button></el-col
-                  >
+                    <el-button size="mini" :disabled="type == 1" @click="handleAllDelete">全部删除</el-button></el-col>
                 </el-col>
                 <el-col :span="10" :offset="0">
                   <h5>已选经销商</h5>
@@ -503,9 +500,11 @@
                   v-if="detail.type !== 'PROVISION' && list.length"
                   type="primary"
                   size="mini"
-                  @click="handelBatchData"
-                  >批量修改</el-button
-                >
+                  @click="()=>{
+                    visible = true
+                    handelBatchData()
+                  }"
+                >批量修改</el-button>
 
                 <el-divider />
               </div>
@@ -768,9 +767,12 @@
           <el-col :span="24" :offset="0" style="margin-bottom: 20px">
             <div style="display: flex">
               <el-input v-model="buyNumKeyWord" placeholder="输入关键字搜索" size="mini" />
-              <el-button style="margin-left: 20px" type="primary" size="mini" @click="handelBatchData('search')"
-                >查询</el-button
-              >
+              <el-button
+                style="margin-left: 20px"
+                type="primary"
+                size="mini"
+                @click="handelBatchData('search')"
+              >查询</el-button>
               <el-button size="mini" @click="onReset">重置</el-button>
             </div>
           </el-col>
@@ -1054,9 +1056,9 @@ export default {
         }
         this.dataL = res.data.records
         for (let k = 0; k < this.dataL.length; k++) {
-          ;(this.dataL[k].customerId = this.dataL[k].id),
-            (this.dataL[k].customerName = this.dataL[k].name),
-            (this.dataL[k].customerNumber = this.dataL[k].number)
+          (this.dataL[k].customerId = this.dataL[k].id),
+          (this.dataL[k].customerName = this.dataL[k].name),
+          (this.dataL[k].customerNumber = this.dataL[k].number)
         }
 
         console.log(this.dataL, '获取经销商列表')
@@ -1203,7 +1205,7 @@ export default {
      * @param {String} index - 索引值
      * @return Boolean
      */
-    selectable: function (row, index) {
+    selectable: function(row, index) {
       // row.disabled == undefined 才能被选中
       if (row.disabled == undefined || row.disabled == false) {
         return true
@@ -1345,7 +1347,6 @@ export default {
         this.tableData = res.data.records
         this.batchTotal = res.data.total
       })
-      this.visible = true
     },
     handelBatchData2() {
       this.maxBuyNumVisible = true

+ 21 - 2
src/views/stock_control/preposition_stock_list.vue

@@ -6,7 +6,7 @@
 import TemplatePage from '@/components/template/template-page-1.vue'
 import import_mixin from '@/components/template/import_mixin.js'
 
-import { getcustomerFrontList, partsNewInExport, kunCunImportData, kunCunTiaoImportData } from '@/api/stock'
+import { getcustomerFrontList, partsNewInExport, kunCunImportData, kunCunTiaoImportData, downloadkunCunDownload } from '@/api/stock'
 export default {
   components: { TemplatePage },
   mixins: [import_mixin],
@@ -28,6 +28,25 @@ export default {
             render: this.importButton(kunCunTiaoImportData, '库存调整')
           }
         ]
+      ],
+      [
+        [
+          {
+            name: '导入模版',
+            click: () => {
+              downloadkunCunDownload({}, `${this.$route.meta.title}`)
+                .then(_res => {
+                  this.$message({
+                    message: '下载成功',
+                    type: 'success'
+                  })
+                })
+                .catch(_err => {
+                  this.$message.error('下载失败')
+                })
+            }
+          }
+        ]
       ]],
       // 表格属性
       tableAttributes: {
@@ -50,7 +69,7 @@ export default {
     // 列表导出函数
     exportList: partsNewInExport,
     // 表格列解析渲染数据更改
-    columnParsing(item, defaultData) {
+    columnParsing(_item, defaultData) {
       return defaultData
     },
     // 监听勾选变化

+ 104 - 105
src/views/supply/apply/engin_list.vue

@@ -1,15 +1,15 @@
 <template>
   <template-page
     ref="pageRef"
-    :getList="getList"
+    :get-list="getList"
     :operation="operation()"
-    :optionsEvensGroup="optionsEvensGroup"
-    :exportList="exportList"
-    :columnParsing="columnParsing"
-    :tableAttributes="tableAttributes"
-    :tableEvents="tableEvents"
-    :operationColumnWidth="200"
-    :replaceOrNotMap="false"
+    :options-evens-group="optionsEvensGroup"
+    :export-list="exportList"
+    :column-parsing="columnParsing"
+    :table-attributes="tableAttributes"
+    :table-events="tableEvents"
+    :operation-column-width="200"
+    :replace-or-not-map="false"
   >
     <ExamineDialog :is-show.sync="isShowExamineDialog" :examine-form.sync="examineForm" @submit="submitExamineForm" />
 
@@ -17,7 +17,7 @@
       <EnginDetail v-if="isShowDetail" ref="refDetail" :list-item="queryItem" @backListFormDetail="backList" />
       <EnginExamine v-if="isShowExamine" :list-item="queryItem" @backListFormDetail="backList" />
       <EnginForm v-if="isShowForm" :list-item="queryItem" @backListFormDetail="backList" />
-      <EnginReturnForm v-if="isShowReturnForm" :isShow="isShow" :list-item="queryItem" @backListFormDetail="backList" />
+      <EnginReturnForm v-if="isShowReturnForm" :is-show="isShow" :list-item="queryItem" @backListFormDetail="backList" />
     </Popu>
   </template-page>
 </template>
@@ -86,7 +86,7 @@ export default {
           [
             {
               name: '批量审批',
-              click: async () => {
+              click: async() => {
                 if (this.recordSelected.length === 0) {
                   this.$message.error('请选择需要批量审批的数据')
                   return
@@ -234,7 +234,7 @@ export default {
   methods: {
     // 列表请求函数
     getList(...p) {
-      let params = {
+      const params = {
         ...p[0]
       }
       return invoiceListProjectV2(params)
@@ -251,7 +251,7 @@ export default {
     },
     fieldBeansHook(val) {
       if (this.isCustomer !== '') {
-        let res = val.filter(
+        const res = val.filter(
           v => v.jname !== 'refPowerCategory' && v.jname !== 'geLiInerNote' && v.jname !== 'geLiNote'
         )
         return res
@@ -262,7 +262,7 @@ export default {
     operation() {
       return (h, { row, index, column }) => {
         return (
-          <div class="operation-btns">
+          <div class='operation-btns'>
             {this.$checkBtnRole('apply', this.$route.meta.roles) &&
             ((!this.isCustomer &&
               !row.automaticStatus &&
@@ -275,121 +275,120 @@ export default {
                 row.automaticStatus &&
                 (row.examineStatus === 'SAVE' || row.examineStatus === 'FAIL') &&
                 row.type === 2)) ? (
-              <el-popconfirm
-                onOnConfirm={async () => {
-                  this.handleSubmit(row.id, 'WAIT')
-                }}
-                title="是否确定需要申请该项内容?"
-              >
-                <el-button slot="reference" size="mini" type="text">
+                <el-popconfirm
+                  onOnConfirm={async() => {
+                    this.handleSubmit(row.id, 'WAIT')
+                  }}
+                  title='是否确定需要申请该项内容?'
+                >
+                  <el-button slot='reference' size='mini' type='text'>
                   申请
-                </el-button>
-              </el-popconfirm>
-            ) : (
-              ''
-            )}
+                  </el-button>
+                </el-popconfirm>
+              ) : (
+                ''
+              )}
 
             {this.$checkBtnRole('apply', this.$route.meta.roles) &&
             ((!this.isCustomer && !row.automaticStatus && row.examineStatus === 'WAIT') ||
               (this.isCustomer && !row.automaticStatus && row.examineStatus === 'WAIT' && row.type != 2) ||
               (!this.isCustomer && row.automaticStatus && row.examineStatus === 'WAIT' && row.type == 2)) ? (
-              <el-popconfirm
-                onOnConfirm={async () => {
-                  this.handleSubmit(row.id, 'SAVE')
-                }}
-                title="是否确定需要撤回该项内容?"
-              >
-                <el-button slot="reference" size="mini" type="text">
+                <el-popconfirm
+                  onOnConfirm={async() => {
+                    this.handleSubmit(row.id, 'SAVE')
+                  }}
+                  title='是否确定需要撤回该项内容?'
+                >
+                  <el-button slot='reference' size='mini' type='text'>
                   撤回
-                </el-button>
-              </el-popconfirm>
-            ) : (
-              ''
-            )}
+                  </el-button>
+                </el-popconfirm>
+              ) : (
+                ''
+              )}
 
             {this.$checkBtnRole('examine', this.$route.meta.roles) &&
             ((!this.isCustomer && !row.automaticStatus && row.examineStatus === 'OK') ||
               (this.isCustomer && !row.automaticStatus && row.examineStatus === 'OK' && row.type != 2) ||
               (!this.isCustomer && row.automaticStatus && row.examineStatus === 'OK' && row.type == 2)) ? (
-              <el-popconfirm
-                onOnConfirm={async () => {
-                  this.handleAbandon(row.id)
-                }}
-                title="是否确定需要弃审该项内容?"
-              >
-                <el-button slot="reference" size="mini" type="text">
+                <el-popconfirm
+                  onOnConfirm={async() => {
+                    this.handleAbandon(row.id)
+                  }}
+                  title='是否确定需要弃审该项内容?'
+                >
+                  <el-button slot='reference' size='mini' type='text'>
                   弃审
-                </el-button>
-              </el-popconfirm>
-            ) : (
-              ''
-            )}
+                  </el-button>
+                </el-popconfirm>
+              ) : (
+                ''
+              )}
 
             {this.$checkBtnRole('edit', this.$route.meta.roles) &&
-            !row.automaticStatus &&
+            (!row.automaticStatus &&
             (row.examineStatus === 'SAVE' || row.examineStatus === 'FAIL') &&
-            row.type === 1 ? (
-              <el-button
-                size="mini"
-                type="text"
-                onClick={async () => {
-                  this.toForm(row)
-                }}
-              >
+            row.type === 1) || (this.isCustomer &&
+                !row.automaticStatus &&
+                (row.examineStatus === 'WAIT' || row.examineStatus === 'FAIL') &&
+                row.type != 2 &&
+                row.type !== 1) ? (
+                <el-button
+                  size='mini'
+                  type='text'
+                  onClick={async() => {
+                    this.toForm(row)
+                  }}
+                >
                 编辑
-              </el-button>
-            ) : (
-              ''
-            )}
+                </el-button>
+              ) : (
+                ''
+              )}
 
             {this.$checkBtnRole('edit', this.$route.meta.roles) &&
             ((!this.isCustomer &&
               !row.automaticStatus &&
               (row.examineStatus === 'SAVE' || row.examineStatus === 'FAIL') &&
               row.type === 2) ||
-              (this.isCustomer &&
-                !row.automaticStatus &&
-                (row.examineStatus === 'SAVE' || row.examineStatus === 'FAIL') &&
-                row.type != 2 &&
-                row.type !== 1) ||
               (!this.isCustomer &&
                 row.automaticStatus &&
                 (row.examineStatus === 'SAVE' || row.examineStatus === 'FAIL') &&
                 row.type === 2)) ? (
-              <el-button
-                size="mini"
-                type="text"
-                onClick={async () => {
-                  this.toReturnForm(row)
-                }}
-              >
+                <el-button
+                  size='mini'
+                  type='text'
+                  onClick={async() => {
+                    this.toReturnForm(row)
+                  }}
+                >
                 编辑
-              </el-button>
-            ) : (
-              ''
-            )}
+                </el-button>
+              ) : (
+                ''
+              )}
 
             {this.$checkBtnRole('examine', this.$route.meta.roles) &&
             ((!this.isCustomer && !row.automaticStatus && row.examineStatus === 'WAIT') ||
               (this.isCustomer && !row.automaticStatus && row.examineStatus === 'WAIT' && row.type != 2) ||
               (!this.isCustomer && row.automaticStatus && row.examineStatus === 'WAIT' && row.type == 2)) ? (
-              <el-button
-                size="mini"
-                type="text"
-                onClick={async () => {
-                  this.toExamine(row)
-                }}
-              >
+                <el-button
+                  size='mini'
+                  type='text'
+                  onClick={async() => {
+                    this.toExamine(row)
+                  }}
+                >
                 审核
-              </el-button>
-            ) : (
-              ''
-            )}
+                </el-button>
+              ) : (
+                ''
+              )}
 
             <el-button
-              size="mini"
-              type="text"
-              onClick={async () => {
+              size='mini'
+              type='text'
+              onClick={async() => {
                 this.toDetail(row)
               }}
             >
@@ -400,19 +399,19 @@ export default {
             ((!this.isCustomer && !row.automaticStatus && row.examineStatus !== 'OK') ||
               (this.isCustomer && !row.automaticStatus && row.examineStatus !== 'OK' && row.type != 2) ||
               (!this.isCustomer && row.automaticStatus && row.examineStatus !== 'OK' && row.type == 2)) ? (
-              <el-popconfirm
-                onOnConfirm={async () => {
-                  this.handleDelete(row.id)
-                }}
-                title="是否确定需要删除该项内容?"
-              >
-                <el-button slot="reference" size="mini" type="text">
+                <el-popconfirm
+                  onOnConfirm={async() => {
+                    this.handleDelete(row.id)
+                  }}
+                  title='是否确定需要删除该项内容?'
+                >
+                  <el-button slot='reference' size='mini' type='text'>
                   删除
-                </el-button>
-              </el-popconfirm>
-            ) : (
-              ''
-            )}
+                  </el-button>
+                </el-popconfirm>
+              ) : (
+                ''
+              )}
           </div>
         )
       }
@@ -612,7 +611,7 @@ export default {
      * @param {String} index - 索引值
      * @return Boolean
      */
-    selectable: function (row, index) {
+    selectable: function(row, index) {
       if (row.automaticStatus) {
         return false
       }