From ef9633e0d1689fd8869170f3aa0af6c90c2e5e7f Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 07 九月 2022 16:18:24 +0800
Subject: [PATCH] 1.优化项目2.搜索栏多行的变为一行可展开

---
 src/views/scgl/gdplgb.vue |  523 ++++++++++++++++++++++++++++++++++-----------------------
 1 files changed, 308 insertions(+), 215 deletions(-)

diff --git a/src/views/scgl/gdplgb.vue b/src/views/scgl/gdplgb.vue
index 004b88f..4b6b910 100644
--- a/src/views/scgl/gdplgb.vue
+++ b/src/views/scgl/gdplgb.vue
@@ -1,9 +1,12 @@
 <template>
   <div>
     <div class="body" :style="{height:mainHeight+'px'}">
-      <div class="bodyTopButtonGroup">
-        <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">鏂板</el-button>
-        <el-button icon="el-icon-download" @click="upload">瀵煎叆</el-button>
+      <div class="bodyTopButtonGroup" style="justify-content: space-between">
+        <!--        <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">鏂板</el-button>-->
+        <!--        <el-button icon="el-icon-download" @click="upload">瀵煎叆</el-button>-->
+        <el-button icon="el-icon-switch-button" @click="handleClose('close')">鎵归噺鍏冲崟</el-button>
+        <el-button icon="el-icon-switch-button" @click="handleClose('noClose')">鎵归噺鍙嶅叧鍗�</el-button>
+
       </div>
 
       <div class="bodyTopFormGroup">
@@ -15,24 +18,39 @@
           style="display: flex;justify-content: space-between"
         >
           <div class="elForm">
-            <el-form-item label="缁勭粐缂栫爜" style=" display: flex;">
-              <el-input v-model="form.OrgCode" placeholder="璇疯緭鍏�" style="width: 200px" />
+            <el-form-item label="宸ュ崟鐘舵��" style=" display: flex;">
+              <el-input v-model="form.mesorderstus" placeholder="璇疯緭鍏�" style="width: 200px" />
             </el-form-item>
-            <el-form-item label="缁勭粐鍚嶇О" style=" display: flex;">
-              <el-input v-model="form.OrgName" placeholder="璇疯緭鍏�" style="width: 200px" />
+            <el-form-item label="宸ュ崟缂栧彿" style=" display: flex;">
+              <el-input v-model="form.mesordercode" placeholder="璇疯緭鍏�" style="width: 200px" />
             </el-form-item>
-            <el-form-item label="缁勭粐绫诲瀷" style=" display: flex;">
-              <el-select v-model="form.OrgType" style="width: 200px" placeholder="璇烽�夋嫨">
+            <el-form-item label="婧愬崟鍗曞彿" style=" display: flex;">
+              <el-input v-model="form.sourceorder" placeholder="璇疯緭鍏�" style="width: 200px" />
+            </el-form-item>
+            <el-form-item label="鍗曟嵁绫诲瀷" style=" display: flex;">
+              <el-select v-model="form.ordertype" style="width: 200px" placeholder="璇烽�夋嫨">
                 <el-option
-                  v-for="item in OrgTypeArr"
+                  v-for="item in ordertypeArr"
                   :key="item.code"
                   :label="item.name"
                   :value="item.code"
                 />
               </el-select>
             </el-form-item>
+            <el-form-item label="浜у搧缂栫爜" style=" display: flex;">
+              <el-input v-model="form.partcode" style="width: 200px" placeholder="璇疯緭鍏�" />
+            </el-form-item>
+            <el-form-item label="浜у搧鍚嶇О" style=" display: flex;">
+              <el-input v-model="form.partname" style="width: 200px" placeholder="璇疯緭鍏�" />
+            </el-form-item>
+            <el-form-item label="浜у搧瑙勬牸" style=" display: flex;">
+              <el-input v-model="form.partspec" style="width: 200px" placeholder="璇疯緭鍏�" />
+            </el-form-item>
             <el-form-item label="鍒涘缓浜哄憳" style=" display: flex;">
-              <el-input v-model="form.UserName" style="width: 200px" placeholder="璇疯緭鍏�" />
+              <el-input v-model="form.creatuser" style="width: 200px" placeholder="璇疯緭鍏�" />
+            </el-form-item>
+            <el-form-item label="鍒涘缓鏃堕棿" style=" display: flex;">
+              <el-input v-model="form.createdate" style="width: 200px" placeholder="璇疯緭鍏�" />
             </el-form-item>
           </div>
           <div style="display: flex;align-items: start;margin-top: 5px;z-index: 2">
@@ -44,6 +62,7 @@
 
       <div class="elTableDiv">
         <el-table
+          ref="multipleTable"
           :data="tableData"
           :height="tableHeight+'px'"
           border
@@ -52,38 +71,192 @@
           highlight-current-row
           :header-cell-style="this.$headerCellStyle"
           :cell-style="this.$cellStyle"
+          @selection-change="handleSelectionChange"
           @sort-change="sortChange"
         >
           <el-table-column
+            type="selection"
+            fixed
+            width="50"
+          />
+          <!--          <el-table-column-->
+          <!--            width="50"-->
+          <!--            fixed-->
+          <!--          >-->
+          <!--            <template slot-scope="{row}">-->
+          <!--              <el-radio-->
+          <!--                v-model="radioSelected"-->
+          <!--                :label="row.wo_code"-->
+          <!--                style="color: transparent;padding-left: 10px;"-->
+          <!--                @change.native="getCurrentRow(row.wo_code)"-->
+          <!--              />-->
+          <!--            </template>-->
+          <!--          </el-table-column>-->
+          <el-table-column
             prop="RowNum"
             width="50"
-            fixed
             label="搴忓彿"
+            fixed
           />
           <el-table-column
-            prop="org_code"
-            label="缁勭粐缂栫爜"
+            prop="status"
+            label="璁㈠崟鐘舵��"
+            sortable="custom"
+            width="110"
+          >
+            <template slot-scope="{row}">
+              <div v-if="row.status==='NEW'">鏂板伐鍗�</div>
+              <!--              <div v-if="row.status==='CREATING'">鎵ц涓�</div>-->
+              <!--              <div v-if="row.status==='CREATED'">宸插叧闂�</div>-->
+              <div v-if="row.status==='ALLO'">宸叉淳鍙�</div>
+              <div v-if="row.status==='START'">寮�宸�</div>
+              <div v-if="row.status==='CLOSED'">瀹屽伐</div>
+            </template>
+          </el-table-column>
+          <el-table-column
+            prop="wo_code"
+            label="宸ュ崟缂栧彿"
+            sortable="custom"
+            min-width="160"
+          />
+          <el-table-column
+            prop="m_po"
+            label="婧愬崟鍗曞彿"
+            sortable="custom"
+            min-width="160"
+          />
+          <el-table-column
+            prop="wotype"
+            label="鍗曟嵁绫诲瀷"
+            sortable="custom"
+            min-width="120"
+          >
+            <template slot-scope="{row}">
+              <div v-if="row.wotype==='PO'">鏍囧噯宸ュ崟</div>
+              <div v-else-if="row.wotype==='FO'">鎶ュ簾琛ュ崟</div>
+              <div v-else>/</div>
+            </template>
+          </el-table-column>
+          <el-table-column
+            prop="partcode"
+            label="浜у搧缂栫爜"
+            sortable="custom"
+            min-width="120"
+          />
+          <el-table-column
+            prop="partname"
+            min-width="150"
+            label="浜у搧鍚嶇О"
             sortable="custom"
           />
           <el-table-column
-            prop="org_name"
-            label="缁勭粐鍚嶇О"
+            prop="partspec"
+            label="浜у搧瑙勬牸"
             sortable="custom"
+            width="110"
+          >
+            <template slot-scope="{row}">
+              <div v-if="row.partspec">{{ row.partspec }}</div>
+              <div v-else>/</div>
+            </template>
+          </el-table-column>
+          <el-table-column
+            prop="plan_qty"
+            label="浠诲姟鏁伴噺"
+            sortable="custom"
+            width="110"
           />
           <el-table-column
-            prop="description"
-            label="缁勭粐绫诲瀷"
+            prop="good_qty"
+            label="鍚堟牸鏁伴噺"
             sortable="custom"
+            width="110"
           />
           <el-table-column
-            prop="parentorg_name"
-            label="涓婄骇鍗曚綅"
+            prop="ng_qty"
+            label="涓嶈壇鏁伴噺"
             sortable="custom"
+            width="110"
           />
+          <el-table-column
+            prop="bad_qty"
+            label="鎶ュ簾鏁伴噺"
+            sortable="custom"
+            width="110"
+          />
+          <el-table-column
+            prop="wkshp_name"
+            label="鐢熶骇杞﹂棿"
+            sortable="custom"
+            width="120"
+          >
+            <template slot-scope="{row}">
+              <div v-if="row.wkshp_name">{{ row.wkshp_name }}</div>
+              <div v-else>/</div>
+            </template>
+          </el-table-column>
+          <el-table-column
+            prop="route_name"
+            label="宸ヨ壓璺嚎"
+            show-tooltip-when-overflow
+            sortable="custom"
+            width="180"
+          >
+            <template slot-scope="{row}">
+              <div v-if="row.route_name">{{ row.route_name }}</div>
+              <div v-else>/</div>
+            </template>
+          </el-table-column>
+          <!--          <el-table-column-->
+          <!--            prop="route_name"-->
+          <!--            label="鍏宠仈宸ヨ壓璺嚎"-->
+          <!--            min-width="110"-->
+          <!--          >-->
+          <!--            <template slot-scope="{row}">-->
+          <!--              <i v-if="row.route_name" class="el-icon-share" @click="routeClick(row)" />-->
+          <!--              <i v-else style="color:rgb(180 ,181, 185)" class="el-icon-share" @click="routeClick(row)" />-->
+          <!--            </template>-->
+          <!--          </el-table-column>-->
+          <el-table-column
+            prop="plan_startdate"
+            label="璁″垝寮�濮嬫椂闂�"
+            sortable="custom"
+            width="160"
+          >
+            <template slot-scope="{row}">
+              <div v-if="row.plan_startdate">{{ row.plan_startdate }}</div>
+              <div v-else>/</div>
+            </template>
+          </el-table-column>
+          <el-table-column
+            prop="plan_enddate"
+            label="璁″垝缁撴潫鏃堕棿"
+            sortable="custom"
+            width="160"
+          >
+            <template slot-scope="{row}">
+              <div v-if="row.plan_enddate">{{ row.plan_enddate }}</div>
+              <div v-else>/</div>
+            </template>
+          </el-table-column>
+          <el-table-column
+            prop="piroque"
+            label="宸ュ崟绛夌骇"
+            sortable="custom"
+            width="120"
+          >
+            <template slot-scope="{row}">
+              <div v-if="row.piroque==='1'">鐗圭骇</div>
+              <div v-if="row.piroque==='2'">绱ф��</div>
+              <div v-if="row.piroque==='3'">姝e父</div>
+              <div v-else>/</div>
+            </template>
+          </el-table-column>
           <el-table-column
             prop="lm_user"
             label="鍒涘缓浜哄憳"
             sortable="custom"
+            width="120"
           />
           <el-table-column
             prop="lm_date"
@@ -91,22 +264,26 @@
             width="160"
             sortable="custom"
           />
-          <el-table-column
-            label="鎿嶄綔"
-            width="120"
-            fixed="right"
-          >
-            <template slot-scope="{row}">
-              <div class="operationClass">
-                <el-tooltip class="item" effect="dark" content="缂栬緫" placement="top">
-                  <i class="el-icon-edit-outline" @click="edit('edit',row)" />
-                </el-tooltip>
-                <el-tooltip v-del-tab-index class="item" effect="dark" content="鍒犻櫎" placement="top">
-                  <i class="el-icon-delete" @click="del(row)" />
-                </el-tooltip>
-              </div>
-            </template>
-          </el-table-column>
+          <!--          <el-table-column-->
+          <!--            label="鎿嶄綔"-->
+          <!--            width="120"-->
+          <!--            fixed="right"-->
+          <!--          >-->
+          <!--            <template slot-scope="{row}">-->
+          <!--              <div class="operationClass">-->
+          <!--                <el-tooltip class="item" effect="dark" content="宸ュ簭浠诲姟" placement="top">-->
+          <!--                  <i-->
+          <!--                    class="el-icon-tickets"-->
+          <!--                    style="cursor: pointer;color: #42b983;margin-right: 15px"-->
+          <!--                    @click="check(row)"-->
+          <!--                  />-->
+          <!--                </el-tooltip>-->
+          <!--                <el-tooltip v-del-tab-index class="item" effect="dark" content="鍒犻櫎" placement="top">-->
+          <!--                  <i class="el-icon-delete" @click="del(row)" />-->
+          <!--                </el-tooltip>-->
+          <!--              </div>-->
+          <!--            </template>-->
+          <!--          </el-table-column>-->
         </el-table>
       </div>
       <!--鍒嗛〉-->
@@ -115,54 +292,21 @@
         :page.sync="form.page"
         :limit.sync="form.rows"
         align="right"
-        layout="prev, pager, next,sizes"
+        layout="total,prev, pager, next,sizes"
         popper-class="select_bottom"
-        @pagination="getOrganizationSearch"
+        @pagination="getMesOrderBitchClosedSearch"
       />
     </div>
 
-    <el-dialog
-      :title="operation==='add'?'鏂板':'缂栬緫'"
-      :visible.sync="dialogVisible"
-      width="800px"
-      :close-on-click-modal="false"
-      top="15vh"
-      @closed="handleClose"
-      @close="handleClose"
-    >
-      <el-form ref="dialogForm" inline :rules="dialogFormRules" :model="dialogForm" label-width="80px">
-        <el-form-item label="缁勭粐缂栫爜" prop="OrgCode">
-          <el-input v-model="dialogForm.OrgCode" :disabled="operation!=='add'" style="width: 200px" />
-        </el-form-item>
-        <el-form-item label="缁勭粐鍚嶇О" prop="OrgName">
-          <el-input v-model="dialogForm.OrgName" style="width: 200px" />
-        </el-form-item>
-        <el-form-item prop="SupUnit" label="涓婄骇鍗曚綅">
-          <el-select
-            v-model="dialogForm.SupUnit"
-            style="width: 200px"
-            placeholder="璇烽�夋嫨"
-            :popper-append-to-body="false"
-          >
-            <el-option
-              v-for="item in SupUnitArr"
-              :key="item.code"
-              :label="item.name"
-              :value="item.code"
-            />
-          </el-select>
-        </el-form-item>
-      </el-form>
-      <span slot="footer" class="dialog-footer">
-        <div class="footerButton">
-          <el-button @click="dialogVisibleCancel">鍙� 娑�</el-button>
-          <el-button type="primary" @click="dialogVisibleConfirm">纭� 瀹�</el-button>
-        </div>
-      </span>
-    </el-dialog>
-
     <!--瀵煎叆缁勪欢-->
-    <import-picker ref="importPickerFunc" class="importPickerClass" :shows.sync="shows" :title="title_value" :colos="colos" :code="code" />
+    <import-picker
+      ref="importPickerFunc"
+      class="importPickerClass"
+      :shows.sync="shows"
+      :title="title_value"
+      :colos="colos"
+      :code="code"
+    />
 
   </div>
 </template>
@@ -172,77 +316,41 @@
 import { AddUpdateOrganization, DeleteOrganization, OrganizationSearch, PrentOrganization } from '@/api/jcsz'
 import { getCookie } from '@/utils/auth'
 import ImportPicker from '@/components/ImportPicker'
+import { validateCode } from '@/utils/global'
+import { MesOrderBitchAntiClosedSeave, MesOrderBitchClosedSearch, MesOrderBitchClosedSeave } from '@/api/scgl'
 
-const SER_HZ = /^[\u4e00-\u9fa5]+$/
 export default {
   name: 'Zzjg',
   components: {
     Pagination, ImportPicker
   },
   data() {
-    const validateName = (rule, value, callback) => {
-      if (!value) {
-        return callback(new Error('璇疯緭鍏ョ紪鐮�'))
-      } else {
-        if (SER_HZ.test(value)) {
-          return callback(new Error('缂栫爜涓嶈兘涓轰腑鏂�'))
-        } else {
-          callback()
-        }
-      }
-    }
-    const validateTypeCode = (rule, value, callback) => {
-      if (!value) {
-        return callback(new Error('璇烽�夋嫨涓婄骇'))
-      } else {
-        callback()
-      }
-    }
     return {
       mainHeight: 0,
       tableHeight: 0,
       form: {
-        OrgCode: '', // 缁勭粐鏋舵瀯浠g爜
-        OrgName: '', // 缁勭粐鏋舵瀯鍚嶇О
-        OrgType: '', // 缁勭粐绫诲瀷
-        UserName: '', // 鍒涘缓浜哄憳
+        mesorderstus: '', // 宸ュ崟鐘舵��
+        mesordercode: '', // 宸ュ崟缂栧彿
+        sourceorder: '', // 婧愬崟鍗曞彿
+        ordertype: '', // 鍗曟嵁绫诲瀷
+        partcode: '', // 浜у搧缂栫爜
+        partname: '', // 浜у搧鍚嶇О
+        partspec: '', // 浜у搧瑙勬牸
+        creatuser: '', // 鍒涘缓浜哄憳
+        createdate: '', // 鍒涘缓鏃堕棿
         prop: 'lm_date', // 鎺掑簭瀛楁
         order: 'desc', // 鎺掑簭瀛楁
         page: 1, // 绗嚑椤�
         rows: 20 // 姣忛〉澶氬皯鏉�
       },
-      OrgTypeArr: [
-        { label: '宸ュ巶', value: 'F' },
-        { label: '閮ㄩ棬', value: 'D' },
-        { label: '杞﹂棿', value: 'W' },
-        { label: '绉戝', value: 'K' },
-        { label: '鐢熶骇绾�', value: 'L' }
+      ordertypeArr: [// 宸ュ崟绫诲瀷
+        { code: 'PO', name: '鏍囧噯宸ュ崟' },
+        { code: 'FO', name: '鎶ュ簾琛ュ崟' }
       ],
-
       total: 10,
       tableData: [],
-      dialogVisible: false,
-      dialogForm: {
-        OrgType: '',
-        OrgCode: '',
-        OrgName: '',
-        SupUnit: ''// 涓婄骇鍗曚綅
-      },
-      operation: '',
-      dialogFormRules: {
-        OrgType: [
-          { required: true, message: '璇疯緭鍏ラ�夋嫨绫诲瀷', trigger: ['blur', 'change'] }
-        ],
-        OrgCode: [
-          { required: true, validator: validateName, trigger: ['blur', 'change'] }
-        ],
-        OrgName: [
-          { required: true, message: '璇疯緭鍏ュ悕绉�', trigger: ['blur', 'change'] }
-        ],
-        SupUnit: [
-          { required: true, validator: validateTypeCode, trigger: ['blur', 'change'] }
-        ]
-      },
+
+      multipleSelection: [],
 
       title_value: '鏁版嵁瀵煎叆 / 鐐规閮ㄤ綅',
       code: '4',
@@ -253,20 +361,20 @@
   watch: {
     shows() {
       if (!this.shows) {
-        this.getOrganizationSearch()
+        this.getMesOrderBitchClosedSearch()
       }
     }
   },
   created() {
-    this.getOrganizationSearch()
+    this.getMesOrderBitchClosedSearch()
   },
   mounted() {
     window.addEventListener('resize', this.getHeight)
     this.getHeight()
   },
   methods: {
-    async getOrganizationSearch() {
-      const res = await OrganizationSearch(this.form)
+    async getMesOrderBitchClosedSearch() {
+      const res = await MesOrderBitchClosedSearch(this.form)
       this.tableData = res.data
       this.total = res.count
     },
@@ -281,11 +389,11 @@
       }
       this.form.order = order
       this.form.prop = prop
-      this.getOrganizationSearch()
+      this.getMesOrderBitchClosedSearch()
     },
     // 鏌ヨ
     search() {
-      this.getOrganizationSearch()
+      this.getMesOrderBitchClosedSearch()
     },
     // 瀵煎叆鎸夐挳
     upload() {
@@ -297,88 +405,71 @@
     },
     // 閲嶇疆
     reset() {
-      this.form.OrgCode = ''
-      this.form.OrgName = ''
-      this.form.OrgType = ''
-      this.form.UserName = ''
-      this.getOrganizationSearch()
+      this.form.mesorderstus = ''
+      this.form.mesordercode = ''
+      this.form.sourceorder = ''
+      this.form.ordertype = ''
+      this.form.partcode = ''
+      this.form.partname = ''
+      this.form.partspec = ''
+      this.form.creatuser = ''
+      this.form.createdate = ''
+      this.getMesOrderBitchClosedSearch()
     },
-
-    // 鏂板鎸夐挳
-    add(operation) {
-      this.operation = operation
-      this.dialogVisible = true
+    handleSelectionChange(val) {
+      this.multipleSelection = val
     },
-    // 淇敼鎸夐挳
-    edit(operation, row) {
-      this.operation = operation
-      this.dialogVisible = true
-
-      this.$nextTick(() => {
-        this.dialogForm.OrgCode = row.org_code
-        this.dialogForm.OrgName = row.org_name
-        this.dialogForm.SupUnit = row.parent_id
-      })
-    },
-    // 鍒犻櫎鎸夐挳
-    async del(row) {
-      this.$confirm('鏄惁纭鍒犻櫎?', '鎻愮ず', {
-        confirmButtonText: '纭畾',
-        cancelButtonText: '鍙栨秷',
-        type: 'warning'
-      }).then(() => {
-        DeleteOrganization({ orgid: row.code }).then(res => {
-          if (res.code === '200') {
-            this.$message.success('鍒犻櫎鎴愬姛!')
-            if (this.form.page > 1 && this.tableData.length === 1) {
-              this.form.page--
-            }
-            this.getOrganizationSearch()
+    handleClose(val) {
+      const data = []
+      if (val === 'close') {
+        // 鍒ゆ柇閫昏緫:鍚堟牸+涓嶈壇>=浠诲姟鏁伴噺鏃� 涓旂姸鎬佷笉涓篊LOSED
+        this.multipleSelection.forEach(item => {
+          if (item.status !== 'CLOSED' && parseFloat(item.good_qty) + parseFloat(item.ng_qty) + parseFloat(item.bad_qty) >= parseFloat(item.plan_qty)) {
+            data.push({ wo_code: item.wo_code })
           }
         })
-      }).catch(() => {
-        this.$message.info('宸插彇娑堝垹闄�')
-      })
-    },
-    // 瀵硅瘽妗嗗叧闂簨浠�
-    handleClose() {
-      this.dialogForm.OrgType = ''
-      this.dialogForm.OrgCode = ''
-      this.dialogForm.OrgName = ''
-      this.dialogForm.SupUnit = ''
-      this.$refs.dialogForm.clearValidate()
-    },
-    // 瀵硅瘽妗嗗彇娑�
-    dialogVisibleCancel() {
-      this.dialogVisible = false
-    },
-    // 瀵硅瘽妗嗙‘璁�
-    dialogVisibleConfirm() {
-      this.$refs.dialogForm.validate(valid => {
-        if (valid) {
-          const data = {
-            OrganCode: this.dialogForm.OrgCode,
-            OrganName: this.dialogForm.OrgName,
-            OperType: this.operation === 'add' ? 'Add' : 'Update',
-            Operator: getCookie('admin')
-          }
-          AddUpdateOrganization(data).then(res => {
+        this.$confirm('鏄惁纭鎵归噺鍏冲崟?', '鎻愮ず', {
+          confirmButtonText: '纭畾',
+          cancelButtonText: '鍙栨秷',
+          type: 'warning'
+        }).then(() => {
+          MesOrderBitchClosedSeave({ dt: data }).then(res => {
             if (res.code === '200') {
-              this.$message.success(this.operation === 'add' ? '娣诲姞鎴愬姛锛�' : '淇敼鎴愬姛锛�')
-              this.dialogVisible = false
-              this.getOrganizationSearch()
-            } else {
-              this.$message.error(this.operation === 'add' ? '娣诲姞澶辫触锛�' : '淇敼澶辫触锛�')
+              this.$message.success('鎵归噺鍏冲崟鎴愬姛锛�')
+              this.$refs.multipleTable.clearSelection()
             }
           })
-        }
-      })
+        }).catch(() => {
+          this.$message.info('宸插彇娑堟壒閲忓叧鍗曪紒')
+        })
+      } else if (val === 'noClose') {
+        this.multipleSelection.forEach(item => {
+          if (item.status === 'CLOSED') {
+            data.push({ wo_code: item.wo_code })
+          }
+        })
+        this.$confirm('鏄惁纭鎵归噺鍙嶅叧鍗�?', '鎻愮ず', {
+          confirmButtonText: '纭畾',
+          cancelButtonText: '鍙栨秷',
+          type: 'warning'
+        }).then(() => {
+          MesOrderBitchAntiClosedSeave({ dt: data }).then(res => {
+            if (res.code === '200') {
+              this.$message.success('鎵归噺鍙嶅叧鍗曟垚鍔燂紒')
+              this.$refs.multipleTable.clearSelection()
+            }
+          })
+        }).catch(() => {
+          this.$message.info('宸插彇娑堟壒閲忓弽鍏冲崟锛�')
+        })
+      }
     },
+
     // 鑾峰彇椤甸潰楂樺害
     getHeight() {
       this.$nextTick(() => {
         this.mainHeight = window.innerHeight - 85
-        this.tableHeight = this.mainHeight - 200
+        this.tableHeight = this.mainHeight - 240
       })
     },
     tableRowClassName({ row, rowIndex }) {
@@ -391,15 +482,17 @@
 <!--鍏叡椤甸潰鏍峰紡-->
 <style lang="scss" scoped>
 $main_color: #42b983;
-::v-deep .el-button--text{
-  font-size: 14px ;
-  cursor: pointer ;
+::v-deep .el-button--text {
+  font-size: 14px;
+  cursor: pointer;
 }
-.el-icon-share ,.el-icon-delete,.el-icon-edit-outline{
+
+.el-icon-share, .el-icon-delete, .el-icon-edit-outline {
   color: $main_color;
   cursor: pointer;
 }
-.el-icon-edit-outline{
+
+.el-icon-edit-outline {
   margin-right: 15px;
 }
 
@@ -460,8 +553,8 @@
   background-color: #f8f8fa;
 }
 
-::v-deep .el-table__body .el-table__row.hover-row td{
-  background-color: #eaecef ;
+::v-deep .el-table__body .el-table__row.hover-row td {
+  background-color: #eaecef;
 }
 
 ::v-deep .el-form--inline .el-form-item__label {
@@ -482,7 +575,7 @@
   margin-bottom: 0;
 }
 
-::v-deep .el-select__caret{
+::v-deep .el-select__caret {
   display: flex;
   align-items: center;
   justify-content: center;

--
Gitblit v1.9.3