Browse Source

修改排版

xiaodai2022 2 years ago
parent
commit
4d16f2d15b

+ 64 - 65
src/views/purchaseIn/purchaseOrder/index.vue

@@ -26,29 +26,7 @@
         <template #table-header="{}">
           <div style="width: 100%">
             <el-row style="padding: 0 0 0 80px">
-              <el-col :span="4" style="width: 150px">
-                <el-select
-                  :size="searchSize"
-                  v-model="parmValue.status"
-                  filterable
-                  clearable
-                  placeholder="采购单状态"
-                  style="width: 100%"
-                  @change="
-                    pageInfo.curr = 1;
-                    parmValue.page = 1;
-                    searchList();
-                  "
-                >
-                  <el-option
-                    v-for="item in statusOptions"
-                    :key="'status' + item.value"
-                    :label="item.label"
-                    :value="item.value"
-                  />
-                </el-select>
-              </el-col>
-              <el-col :span="4" style="width: 130px; padding: 0 0 0 10px">
+              <el-col :span="4" style="width: 120px">
                 <el-dropdown @command="handleClick($event)" :size="searchSize">
                   <el-button :size="searchSize" style="width: 120px">
                     {{ sselect }}
@@ -74,6 +52,7 @@
                   @timeReturned="handleTime"
                 />
               </el-col>
+
               <el-col :span="3" style="width: 66px; float: right">
                 <el-button
                   :size="searchSize"
@@ -100,7 +79,29 @@
               </el-col>
             </el-row>
             <el-row style="padding: 10px 0 0 0">
-              <el-col :span="4" style="width: 130px; margin-right: 10px">
+              <el-col :span="4" style="width: 200px">
+                <el-select
+                  :size="searchSize"
+                  v-model="parmValue.status"
+                  filterable
+                  clearable
+                  placeholder="采购单状态"
+                  style="width: 100%"
+                  @change="
+                    pageInfo.curr = 1;
+                    parmValue.page = 1;
+                    searchList();
+                  "
+                >
+                  <el-option
+                    v-for="item in statusOptions"
+                    :key="'status' + item.value"
+                    :label="item.label"
+                    :value="item.value"
+                  />
+                </el-select>
+              </el-col>
+              <el-col :span="4" style="width: 151px; padding: 0 0 0 10px">
                 <el-select
                   :size="searchSize"
                   v-model="parmValue.order_type"
@@ -123,7 +124,7 @@
                 </el-select>
               </el-col>
 
-              <el-col :span="4" style="width: 130px; margin-right: 10px">
+              <el-col :span="4" style="width: 151px; padding: 0 0 0 10px">
                 <el-select
                   :size="searchSize"
                   v-model="parmValue.order_source"
@@ -159,21 +160,6 @@
                   </el-select>
               </el-col> -->
 
-              <el-col :span="4">
-                <search-supplier
-                  :size="'mini'"
-                  style="width: 220px"
-                  :value="supplierNo"
-                  :disabled="false"
-                  :placeholder="'供应商名称'"
-                  :names="''"
-                  :isDetail="false"
-                  :noDisabled="true"
-                  @searchChange="supplierChange"
-                />
-              </el-col>
-
-
               <el-col :span="4" style="width: 66px; float: right">
                 <el-button
                   type="warning"
@@ -185,23 +171,8 @@
                 </el-button>
               </el-col>
               <!-- 暂时注释,下版需要导出 -->
-              <el-col
-                :span="4"
-                style="width: 66px; float: right"
-                v-if="powers.some((i) => i == '087') && !isSupertube"
-              >
-                <el-button
-                  type="primary"
-                  style="margin-left: 30px"
-                  @click="download"
-                  :size="searchSize"
-                  class="fr"
-                >
-                  导出
-                </el-button>
-              </el-col>
 
-              <el-col :span="4" style="width: 66px; float: right" v-if="!isSupertube">
+              <el-col :span="4" style="width: 80px; float: right" v-if="!isSupertube">
                 <el-button
                   type="primary"
                   @click="handleBatchIn"
@@ -212,9 +183,20 @@
                 </el-button>
               </el-col>
             </el-row>
-
-            <el-row>
-              <el-col :span="4" style="width: 500px; margin-top: 10px">
+            <el-row style="padding: 10px 0 0 0">
+              <el-col :span="4" style="width: 350px">
+                <search-supplier
+                  :size="'mini'"
+                  :value="supplierNo"
+                  :disabled="false"
+                  :placeholder="'供应商名称'"
+                  :names="''"
+                  :isDetail="false"
+                  :noDisabled="true"
+                  @searchChange="supplierChange"
+                />
+              </el-col>
+              <el-col :span="4" style="width: 400px; padding: 0 0 0 10px">
                 <el-input
                   clearable
                   placeholder="关键字"
@@ -230,7 +212,7 @@
                 >
                   <el-select
                     v-model="select"
-                    style="width: 125px"
+                    style="width: 140px"
                     slot="prepend"
                     placeholder="关键字类型"
                     @change="
@@ -240,6 +222,7 @@
                     "
                   >
                     <el-option label="采购单编号" value="1"></el-option>
+                    <el-option label="订单编号" value="8"></el-option>
                     <!-- <el-option label="入库单编号" value="2"></el-option> -->
                     <!-- 列表未渲染备库编号,注释 -->
                     <!-- <el-option label="备库编号" value="3"></el-option> -->
@@ -248,20 +231,36 @@
                     <el-option label="商品创建人" value="6"></el-option>
                     <!-- <el-option label="采购供应商编号" value="7"></el-option> -->
                     <!-- <el-option label="采购供应商名称" value="10"></el-option> -->
-                    <el-option label="订单编号" value="8"></el-option>
+
                     <el-option label="商品创建人部门" value="9"></el-option>
                   </el-select>
                 </el-input>
-              </el-col> 
+              </el-col>
+              <el-col
+                :span="4"
+                style="width: 66px; float: right"
+                v-if="powers.some((i) => i == '087') && !isSupertube"
+              >
+                <el-button
+                  type="primary"
+                  style="margin-left: 30px"
+                  @click="download"
+                  :size="searchSize"
+                  class="fr"
+                >
+                  导出
+                </el-button>
+              </el-col>
             </el-row>
           </div>
         </template>
-        
+
         <template #has_account="{ scope }">
           <el-tag
             :size="tablebtnSize"
             :type="scope.row.has_account == '0' ? 'warning' : ''"
-          >{{ String(scope.row.has_account) === '1' ? '已开通' : '未开通' }}</el-tag>
+            >{{ String(scope.row.has_account) === "1" ? "已开通" : "未开通" }}</el-tag
+          >
         </template>
 
         <template #good_name="{ scope }">
@@ -824,7 +823,7 @@ export default {
       const res = await asyncRequest.list({
         ...this.parmValue,
         supplierNo: Array.isArray(this.supplierNo) ? this.supplierNo[0] : this.supplierNo,
-        needRela: true
+        needRela: true,
       });
 
       if (res && res.code === 0 && res.data) {

+ 1 - 1
src/views/purchaseIn/wsmInOrder/columns.js

@@ -13,7 +13,7 @@ const columns = [
     prop: 'has_account',
     label: '供应商端',
     _slot_: 'has_account',
-    width: '120px'
+    width: '80px'
   },
   {
     prop: 'status',

+ 104 - 103
src/views/purchaseIn/wsmInOrder/index.vue

@@ -24,13 +24,13 @@
         <template #table-header="{}">
           <div style="width: 100%">
             <el-row style="padding: 0 0 0 80px">
-              <el-col :span="4" style="width: 130px">
+              <el-col :span="4" style="width: 120px">
                 <el-select
                   :size="searchSize"
-                  v-model="parmValue.order_type"
+                  v-model="parmValue.status"
                   filterable
                   clearable
-                  placeholder="商品类型"
+                  placeholder="状态"
                   style="width: 100%"
                   @change="
                     pageInfo.curr = 1;
@@ -39,20 +39,42 @@
                   "
                 >
                   <el-option
-                    v-for="item in cg_order_type_options"
+                    v-for="item in statusOptions"
+                    :key="'status' + item.value"
+                    :label="item.label"
+                    :value="item.value"
+                  />
+                </el-select>
+              </el-col>
+              <el-col :span="4" style="width: 130px; padding: 0 0 0 10px">
+                <el-select
+                  :size="searchSize"
+                  v-model="parmValue.order_source"
+                  filterable
+                  clearable
+                  placeholder="订单来源"
+                  style="width: 100%"
+                  @change="
+                    pageInfo.curr = 1;
+                    parmValue.page = 1;
+                    searchList();
+                  "
+                >
+                  <el-option
+                    v-for="item in cg_order_source_options"
                     :key="'order_type' + item.id"
                     :label="item.label"
                     :value="item.id"
                   />
                 </el-select>
               </el-col>
-              <el-col :span="4" style="width: 170px; padding: 0 0 0 10px">
+              <el-col :span="4" style="width: 130px; padding: 0 0 0 10px">
                 <el-select
                   :size="searchSize"
-                  v-model="parmValue.status"
+                  v-model="parmValue.order_type"
                   filterable
                   clearable
-                  placeholder="入库单状态"
+                  placeholder="商品类型"
                   style="width: 100%"
                   @change="
                     pageInfo.curr = 1;
@@ -61,13 +83,14 @@
                   "
                 >
                   <el-option
-                    v-for="item in statusOptions"
-                    :key="'status' + item.value"
+                    v-for="item in cg_order_type_options"
+                    :key="'order_type' + item.id"
                     :label="item.label"
-                    :value="item.value"
+                    :value="item.id"
                   />
                 </el-select>
               </el-col>
+
               <el-col :span="6" style="width: 303px; padding: 0 0 0 10px">
                 <period-date-picker
                   :type="1"
@@ -91,7 +114,20 @@
             </el-row>
             <el-row style="padding: 10px 0 0 0">
               <el-row>
-                <el-col :span="6" style="width: 520px; padding: 0 0 0 0px">
+                <el-col :span="4" style="width: 330px">
+                  <search-supplier
+                    :size="'mini'"
+                    style="width: 100%"
+                    :value="supplierNo"
+                    :disabled="false"
+                    :placeholder="'供应商'"
+                    :names="''"
+                    :isDetail="false"
+                    :noDisabled="true"
+                    @searchChange="supplierChange"
+                  />
+                </el-col>
+                <el-col :span="6" style="width: 487px; padding: 0 0 0 10px">
                   <el-input
                     clearable
                     placeholder="关键字"
@@ -104,29 +140,29 @@
                       searchList();
                     "
                   >
-                  <el-select style="width:140px" v-model="select" slot="prepend">
-                    <el-option label="采购单编号" value="1"></el-option>
-                    <el-option label="入库单编号" value="2"></el-option>
-                    <!-- <el-option label="备库编号" value="3"></el-option> -->
-                    <el-option label="商品属性编号" value="4"></el-option>
-                    <el-option label="产品名称" value="5"></el-option>
-                    <el-option label="申请人" value="6"></el-option>
-                    <!-- <el-option label="采购供应商编号" value="7"></el-option> -->
-                    <el-option label="申请人部门" value="8"></el-option>
-                  </el-select>
+                    <el-select style="width: 130px" v-model="select" slot="prepend">
+                      <el-option label="采购单编号" value="1"></el-option>
+                      <el-option label="入库单编号" value="2"></el-option>
+                      <!-- <el-option label="备库编号" value="3"></el-option> -->
+                      <el-option label="商品成本编号" value="4"></el-option>
+                      <el-option label="产品名称" value="5"></el-option>
+                      <el-option label="申请人" value="6"></el-option>
+                      <!-- <el-option label="采购供应商编号" value="7"></el-option> -->
+                      <el-option label="申请人部门" value="8"></el-option>
+                    </el-select>
 
-                  <el-button
-                    slot="append"
-                    @click="
-                      pageInfo.curr = 1;
-                      parmValue.page = 1;
-                      searchList();
-                    "
-                    icon="el-icon-search"
-                  ></el-button>
-                </el-input>
-              </el-col>
-<!-- 
+                    <el-button
+                      slot="append"
+                      @click="
+                        pageInfo.curr = 1;
+                        parmValue.page = 1;
+                        searchList();
+                      "
+                      icon="el-icon-search"
+                    ></el-button>
+                  </el-input>
+                </el-col>
+                <!-- 
               <el-col :span="4" >
                   <el-select style="width:100%;margin-left:10px" placeholder="供应商端" clearable size="mini"  v-model="parmValue.has_account"  
                     @change="
@@ -139,58 +175,17 @@
                     <el-option value="1" label="已开通"/>
                   </el-select>
               </el-col>  -->
-            </el-row>
-
-              <el-col :span="4" style="width: 66px; float: right">
-                <el-button
-                  type="warning"
-                  class="fr"
-                  :size="searchSize"
-                  @click="restSearch"
-                >
-                  重置
-                </el-button>
-              </el-col>
-
-              <el-col
-                :span="4"
-                style="width: 130px; margin-top: 10px; margin-right: 10px"
-              >
-                <el-select
-                  :size="searchSize"
-                  v-model="parmValue.order_source"
-                  filterable
-                  clearable
-                  placeholder="订单来源"
-                  style="width: 100%"
-                  @change="
-                    pageInfo.curr = 1;
-                    parmValue.page = 1;
-                    searchList();
-                  "
-                >
-                  <el-option
-                    v-for="item in cg_order_source_options"
-                    :key="'order_type' + item.id"
-                    :label="item.label"
-                    :value="item.id"
-                  />
-                </el-select>
-              </el-col>
-
-              <el-col :span="4">
-                <search-supplier
-                  :size="'mini'"
-                  style="width: 220px; margin-top: 10px"
-                  :value="supplierNo"
-                  :disabled="false"
-                  :placeholder="'供应商名称'"
-                  :names="''"
-                  :isDetail="false"
-                  :noDisabled="true"
-                  @searchChange="supplierChange"
-                />
-             </el-col>
+                <el-col :span="4" style="width: 66px; float: right">
+                  <el-button
+                    type="warning"
+                    class="fr"
+                    :size="searchSize"
+                    @click="restSearch"
+                  >
+                    重置
+                  </el-button>
+                </el-col>
+              </el-row>
             </el-row>
 
             <!-- <el-col :span="4" style="width: 120px">
@@ -232,22 +227,24 @@
           ></el-tag>
         </template>
         <template #has_account="{ scope }">
-        <el-tag
-          :size="tablebtnSize"
-          :type="
-            (
-              has_account_list.find((item) => item.code == scope.row.has_account + '') ||
-              {}
-            ).type || '--'
-          "
-          v-text="
-            (
-              has_account_list.find((item) => item.code == scope.row.has_account + '') ||
-              {}
-            ).name || '--'
-          "
-        ></el-tag>
-      </template>
+          <el-tag
+            :size="tablebtnSize"
+            :type="
+              (
+                has_account_list.find(
+                  (item) => item.code == scope.row.has_account + ''
+                ) || {}
+              ).type || '--'
+            "
+            v-text="
+              (
+                has_account_list.find(
+                  (item) => item.code == scope.row.has_account + ''
+                ) || {}
+              ).name || '--'
+            "
+          ></el-tag>
+        </template>
 
         <template #order_source="{ scope }">
           <el-tag
@@ -307,8 +304,12 @@ import mixinPage from "@/mixins/elPaginationHandle";
 import resToken from "@/mixins/resToken";
 import companyHelper from "@/mixins/companyHelper";
 import asyncRequest from "@/apis/service/purchaseIn/wsmInOrder";
-import { cg_order_type_options, cg_order_source_options, has_account_list } from "@/assets/js/statusList";
-import {columns,statusOptions} from "./columns"; //表格列参数
+import {
+  cg_order_type_options,
+  cg_order_source_options,
+  has_account_list,
+} from "@/assets/js/statusList";
+import { columns, statusOptions } from "./columns"; //表格列参数
 import { mapGetters } from "vuex";
 
 export default {

+ 140 - 113
src/views/supplierPurchaseIn/supplierPurchaseOrder/index.vue

@@ -10,7 +10,7 @@
         :size="size"
         @page-curr-change="handlePageChange"
         @page-size-change="handleSizeChange"
-        @selection-change="list => tableSelection = list"
+        @selection-change="(list) => (tableSelection = list)"
         @screen-reset="
           pageInfo.curr = 1;
           parmValue.page = 1;
@@ -26,29 +26,7 @@
         <template #table-header="{}">
           <div style="width: 100%">
             <el-row style="padding: 0 0 0 80px">
-              <el-col :span="4" style="width: 150px">
-                <el-select
-                  :size="searchSize"
-                  v-model="parmValue.status"
-                  filterable
-                  clearable
-                  placeholder="采购单状态"
-                  style="width: 100%"
-                  @change="
-                    pageInfo.curr = 1;
-                    parmValue.page = 1;
-                    searchList();
-                  "
-                >
-                  <el-option
-                    v-for="item in statusOptions"
-                    :key="'status' + item.value"
-                    :label="item.label"
-                    :value="item.value"
-                  />
-                </el-select>
-              </el-col>
-              <el-col :span="4" style="width: 130px; padding: 0 0 0 10px">
+              <el-col :span="4" style="width: 120px">
                 <el-dropdown @command="handleClick($event)" :size="searchSize">
                   <el-button :size="searchSize" style="width: 120px">
                     {{ sselect }}
@@ -84,8 +62,12 @@
                   刷新
                 </el-button>
               </el-col>
-          
-              <el-col :span="4" style="width: 150px; float: right"  v-if="powers.some((i) => i == '089') && !isSupertube">
+
+              <el-col
+                :span="4"
+                style="width: 150px; float: right"
+                v-if="powers.some((i) => i == '089') && !isSupertube"
+              >
                 <el-button
                   type="primary"
                   @click="statusConfirm"
@@ -97,47 +79,74 @@
               </el-col>
             </el-row>
 
+            <el-row style="padding: 10px 0 0 0">
+              <el-col :span="4" style="width: 200px">
+                <el-select
+                  :size="searchSize"
+                  v-model="parmValue.status"
+                  filterable
+                  clearable
+                  placeholder="状态"
+                  style="width: 100%"
+                  @change="
+                    pageInfo.curr = 1;
+                    parmValue.page = 1;
+                    searchList();
+                  "
+                >
+                  <el-option
+                    v-for="item in statusOptions"
+                    :key="'status' + item.value"
+                    :label="item.label"
+                    :value="item.value"
+                  />
+                </el-select>
+              </el-col>
+              <el-col :span="4" style="width: 151px; padding: 0 0 0 10px">
+                <el-select
+                  :size="searchSize"
+                  v-model="parmValue.order_type"
+                  filterable
+                  clearable
+                  placeholder="商品类型"
+                  style="width: 100%"
+                  @change="
+                    pageInfo.curr = 1;
+                    parmValue.page = 1;
+                    searchList();
+                  "
+                >
+                  <el-option
+                    v-for="item in cg_order_type_options"
+                    :key="'order_type' + item.id"
+                    :label="item.label"
+                    :value="item.id"
+                  />
+                </el-select>
+              </el-col>
 
-            <el-row style="margin-top:10px">
-                <el-col :span="6" style="width: 500px; padding: 0 0 0 0px">
-                  <el-input
-                    clearable
-                    placeholder="关键字"
-                    v-model="input"
-                    maxlength="40"
-                    :size="searchSize"
-                    class="input-with-select"
-                    @blur="
-                      pageInfo.curr = 1;
-                      parmValue.page = 1;
-                      searchList();
-                    "
-                  >
-                    <el-select
-                      v-model="select"
-                      style="width: 125px"
-                      slot="prepend"
-                      placeholder="关键字类型"
-                      @change="
-                        pageInfo.curr = 1;
-                        parmValue.page = 1;
-                        searchList();
-                      "
-                    >
-                      <el-option label="采购单编号" value="1"></el-option>
-                      <!-- <el-option label="入库单编号" value="2"></el-option> -->
-                      <!-- 列表未渲染备库编号,注释 -->
-                      <!-- <el-option label="备库编号" value="3"></el-option> -->
-                      <el-option label="商品成本编号" value="4"></el-option>
-                      <el-option label="商品名称" value="5"></el-option>
-                      <el-option label="商品创建人" value="6"></el-option>
-                      <!-- <el-option label="采购供应商编号" value="7"></el-option> -->
-                      <!-- <el-option label="采购供应商名称" value="10"></el-option> -->
-                      <el-option label="订单编号" value="8"></el-option>
-                      <el-option label="商品创建人部门" value="9"></el-option>
-                    </el-select>
-                  </el-input>
-                </el-col>
+              <el-col :span="4" style="width: 151px; padding: 0 0 0 10px">
+                <el-select
+                  :size="searchSize"
+                  v-model="parmValue.order_source"
+                  filterable
+                  clearable
+                  placeholder="订单来源"
+                  style="width: 100%"
+                  @change="
+                    pageInfo.curr = 1;
+                    parmValue.page = 1;
+                    searchList();
+                  "
+                >
+                  <el-option
+                    v-for="item in cg_order_source_options"
+                    :key="'order_type' + item.id"
+                    :label="item.label"
+                    :value="item.id"
+                  />
+                </el-select>
+              </el-col>
 
               <el-col :span="4" style="width: 66px; float: right">
                 <el-button
@@ -151,23 +160,8 @@
               </el-col>
               <!-- 暂时注释,下版需要导出 -->
               <!---->
-              <el-col :span="4" style="width: 66px; float: right" v-if="powers.some((i) => i == '087') && !isSupertube">
-                <el-button
-                  type="primary"
-                  style="margin-left: 30px"
-                  @click="download"
-                  :size="searchSize"
-                  class="fr"
-                >
-                  导出
-                </el-button>
-              </el-col>
 
-              <el-col
-               :span="4"
-               style="width: 66px; float: right"
-               v-if="!isSupertube"
-              >
+              <el-col :span="4" style="width: 80px; float: right" v-if="!isSupertube">
                 <el-button
                   type="primary"
                   @click="handleBatchIn"
@@ -180,7 +174,7 @@
             </el-row>
 
             <el-row style="padding: 10px 0 0 0">
-              <el-col :span="4" style="margin-right: 10px">
+              <el-col :span="4" style="width: 350px">
                 <search-work-company
                   :value="parmValue.companyNo"
                   :placeholder="'业务公司'"
@@ -189,28 +183,60 @@
                 />
               </el-col>
 
-
-              <el-col :span="4" style="width: 150px">
-                <el-select
-                  :size="searchSize"
-                  v-model="parmValue.order_source"
-                  filterable
+              <el-col :span="4" style="width: 400px; padding: 0 0 0 10px">
+                <el-input
                   clearable
-                  placeholder="订单来源"
-                  style="width: 100%"
-                  @change="
+                  placeholder="关键字"
+                  v-model="input"
+                  maxlength="40"
+                  :size="searchSize"
+                  class="input-with-select"
+                  @blur="
                     pageInfo.curr = 1;
                     parmValue.page = 1;
                     searchList();
                   "
                 >
-                  <el-option
-                    v-for="item in cg_order_source_options"
-                    :key="'status' + item.id"
-                    :label="item.label"
-                    :value="item.id"
-                  />
-                </el-select>
+                  <el-select
+                    v-model="select"
+                    style="width: 140px"
+                    slot="prepend"
+                    placeholder="关键字类型"
+                    @change="
+                      pageInfo.curr = 1;
+                      parmValue.page = 1;
+                      searchList();
+                    "
+                  >
+                    <el-option label="采购单编号" value="1"></el-option>
+                    <el-option label="订单编号" value="8"></el-option>
+                    <!-- <el-option label="入库单编号" value="2"></el-option> -->
+                    <!-- 列表未渲染备库编号,注释 -->
+                    <!-- <el-option label="备库编号" value="3"></el-option> -->
+                    <el-option label="商品成本编号" value="4"></el-option>
+                    <el-option label="商品名称" value="5"></el-option>
+                    <el-option label="商品创建人" value="6"></el-option>
+                    <!-- <el-option label="采购供应商编号" value="7"></el-option> -->
+                    <!-- <el-option label="采购供应商名称" value="10"></el-option> -->
+
+                    <el-option label="商品创建人部门" value="9"></el-option>
+                  </el-select>
+                </el-input>
+              </el-col>
+              <el-col
+                :span="4"
+                style="width: 66px; float: right"
+                v-if="powers.some((i) => i == '087') && !isSupertube"
+              >
+                <el-button
+                  type="primary"
+                  style="margin-left: 30px"
+                  @click="download"
+                  :size="searchSize"
+                  class="fr"
+                >
+                  导出
+                </el-button>
               </el-col>
             </el-row>
           </div>
@@ -236,8 +262,9 @@
             :size="tablebtnSize"
             v-text="
               (
-                cg_order_source_options.find((item) => item.id == scope.row.order_source) ||
-                {}
+                cg_order_source_options.find(
+                  (item) => item.id == scope.row.order_source
+                ) || {}
               ).label || '--'
             "
           ></el-tag>
@@ -405,36 +432,36 @@ export default {
   },
 
   methods: {
-    async handleBatchIn(){
-      if(this.tableSelection.length === 0){
+    async handleBatchIn() {
+      if (this.tableSelection.length === 0) {
         this.$message.warning("请选择至少一条采购单");
-        return
+        return;
       }
 
-      for(let i = 0; i < this.tableSelection.length; i++){
+      for (let i = 0; i < this.tableSelection.length; i++) {
         const item = this.tableSelection[i];
 
-        if(item.order_type === "1"){
+        if (item.order_type === "1") {
           this.$message.warning("选择的采购单中不能包含库存品");
-           return
+          return;
         }
 
-        if(item.can && item.can[0].id === 6){
+        if (item.can && item.can[0].id === 6) {
           this.$message.warning("选择的采购单中不能包含贵金属");
-          return
+          return;
         }
       }
 
-      const cgdNo = this.tableSelection.map(item => item.cgdNo)
-      const { code, message } = await asyncRequest.orderBatchIn({cgdNo})
+      const cgdNo = this.tableSelection.map((item) => item.cgdNo);
+      const { code, message } = await asyncRequest.orderBatchIn({ cgdNo });
 
-      switch(code){
+      switch (code) {
         case 0:
           this.searchList();
           break;
         default:
           this.$message.warning(message);
-          break
+          break;
       }
     },
     companyNosearchChange({ code }) {