Browse Source

订单系统

zhangjinxing 3 years ago
parent
commit
86febffcd3

+ 1 - 1
src/App.vue

@@ -6,7 +6,7 @@
 
 <script>
 import { JudgeEnvironment } from "@/utils/validate";
-import asyncRequest from "@/mock/service/stock/allot";
+import asyncRequest from "@/mock/service/stock/allotFlow";
 import { getCode } from "@/utils/dingding";
 export default {
   name: "App",

+ 1 - 0
src/mock/service/stock/allot/index.js

@@ -5,5 +5,6 @@ export default {
   // 分页查询
   list:  (data, params) => http(api + 'orderWarnList', data, 'post', params),
   listAll: (data, params) => http(api + 'stockListAll', data, 'post', params),
+  goodsList:  (data, params) => http(api + 'stockGoodsList', data, 'post', params),
   
 }

+ 4 - 4
src/views/login/index.vue

@@ -151,10 +151,10 @@ export default {
       show: false,
       loginForm: {
         // username: "17744520491",
-        // password: "dingding123",
-        username: "15501067031",
-        password: "wugg123",
-        // username: "",
+        password: "dingding123",
+        // username: "15501067031",
+        // password: "wugg123",
+        username: "18617668688",
         // password: "",
       },
       loginRules: {

+ 133 - 0
src/views/stock/allotFlow/components/companySearch.vue

@@ -0,0 +1,133 @@
+<template>
+  <div class="stockSearch">
+    <div class="block" style="width: 100%">
+      <!-- <el-cascader
+        style="width: 400px"
+        :options="options"
+        v-model="value"
+        collapse-tags
+        :props="{ multiple: true, checkStrictly: false }"
+        clearable
+        filterable
+        @change="a"
+      ></el-cascader> -->
+      <el-select
+        :size="searchSize"
+        v-model="value"
+        :multiple="false"
+        filterable
+        remote
+        reserve-keyword
+        placeholder="请选择公司"
+        :remote-method="remoteMethod"
+        :loading="loading"
+        @change="a"
+      >
+        <el-option
+          v-for="item in options"
+          :key="item.value"
+          :label="item.label"
+          :value="item.value"
+        >
+        </el-option>
+      </el-select>
+    </div>
+  </div>
+</template>
+
+<script>
+import { mapGetters } from "vuex";
+
+export default {
+  data() {
+    return {
+      options: [],
+      value: [],
+      list: [],
+      states: [
+        "Alabama",
+        "Alaska",
+        "Arizona",
+        "Arkansas",
+        "California",
+        "Colorado",
+        "Connecticut",
+        "Delaware",
+        "Florida",
+        "Georgia",
+        "Hawaii",
+        "Idaho",
+        "Illinois",
+        "Indiana",
+        "Iowa",
+        "Kansas",
+        "Kentucky",
+        "Louisiana",
+        "Maine",
+        "Maryland",
+        "Massachusetts",
+        "Michigan",
+        "Minnesota",
+        "Mississippi",
+        "Missouri",
+        "Montana",
+        "Nebraska",
+        "Nevada",
+        "New Hampshire",
+        "New Jersey",
+        "New Mexico",
+        "New York",
+        "North Carolina",
+        "North Dakota",
+        "Ohio",
+        "Oklahoma",
+        "Oregon",
+        "Pennsylvania",
+        "Rhode Island",
+        "South Carolina",
+        "South Dakota",
+        "Tennessee",
+        "Texas",
+        "Utah",
+        "Vermont",
+        "Virginia",
+        "Washington",
+        "West Virginia",
+        "Wisconsin",
+        "Wyoming",
+      ],
+    };
+  },
+  mounted() {
+    this.list = this.states.map((item) => {
+      return { value: `value:${item}`, label: `label:${item}` };
+    });
+  },
+  computed: {
+    ...mapGetters(["searchSize"]),
+  },
+  props: ["options"],
+  methods: {
+    a() {
+      console.log("选择了一个公司");
+      this.$emit("searchCard");
+    },
+    remoteMethod(query) {
+      if (query !== "") {
+        this.loading = true;
+        setTimeout(() => {
+          this.loading = false;
+          this.options = this.list.filter((item) => {
+            return item.label.toLowerCase().indexOf(query.toLowerCase()) > -1;
+          });
+        }, 200);
+      } else {
+        this.options = [];
+      }
+    },
+  },
+};
+</script>
+
+<style>
+</style>

+ 133 - 0
src/views/stock/allotFlow/components/stockSearch.vue

@@ -0,0 +1,133 @@
+<template>
+  <div class="stockSearch">
+    <div class="block" style="width: 100%">
+      <!-- <el-cascader
+        style="width: 400px"
+        :options="options"
+        v-model="value"
+        collapse-tags
+        :props="{ multiple: true, checkStrictly: false }"
+        clearable
+        filterable
+        @change="a"
+      ></el-cascader> -->
+      <el-select
+        :size="searchSize"
+        v-model="value"
+        multiple
+        filterable
+        remote
+        reserve-keyword
+        placeholder="请选择仓库"
+        :remote-method="remoteMethod"
+        :loading="loading"
+        @change="a"
+      >
+        <el-option
+          v-for="item in options"
+          :key="item.value"
+          :label="item.label"
+          :value="item.value"
+        >
+        </el-option>
+      </el-select>
+    </div>
+  </div>
+</template>
+
+<script>
+import { mapGetters } from "vuex";
+
+export default {
+  data() {
+    return {
+      options: [],
+      value: [],
+      list: [],
+      states: [
+        "Alabama",
+        "Alaska",
+        "Arizona",
+        "Arkansas",
+        "California",
+        "Colorado",
+        "Connecticut",
+        "Delaware",
+        "Florida",
+        "Georgia",
+        "Hawaii",
+        "Idaho",
+        "Illinois",
+        "Indiana",
+        "Iowa",
+        "Kansas",
+        "Kentucky",
+        "Louisiana",
+        "Maine",
+        "Maryland",
+        "Massachusetts",
+        "Michigan",
+        "Minnesota",
+        "Mississippi",
+        "Missouri",
+        "Montana",
+        "Nebraska",
+        "Nevada",
+        "New Hampshire",
+        "New Jersey",
+        "New Mexico",
+        "New York",
+        "North Carolina",
+        "North Dakota",
+        "Ohio",
+        "Oklahoma",
+        "Oregon",
+        "Pennsylvania",
+        "Rhode Island",
+        "South Carolina",
+        "South Dakota",
+        "Tennessee",
+        "Texas",
+        "Utah",
+        "Vermont",
+        "Virginia",
+        "Washington",
+        "West Virginia",
+        "Wisconsin",
+        "Wyoming",
+      ],
+    };
+  },
+  mounted() {
+    this.list = this.states.map((item) => {
+      return { value: `value:${item}`, label: `label:${item}` };
+    });
+  },
+  computed: {
+    ...mapGetters(["searchSize"]),
+  },
+  props: ["options"],
+  methods: {
+    a() {
+      console.log("选择了一个仓库");
+      this.$emit("searchCard");
+    },
+    remoteMethod(query) {
+      if (query !== "") {
+        this.loading = true;
+        setTimeout(() => {
+          this.loading = false;
+          this.options = this.list.filter((item) => {
+            return item.label.toLowerCase().indexOf(query.toLowerCase()) > -1;
+          });
+        }, 200);
+      } else {
+        this.options = [];
+      }
+    },
+  },
+};
+</script>
+
+<style>
+</style>

+ 7 - 130
src/views/stock/allotFlow/index.vue

@@ -3,135 +3,8 @@
     <div
       v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
     >
-      <!-- <el-form
-        :model="ruleForm"
-        :rules="rules"
-        ref="ruleForm"
-        label-width="100px"
-      >
-        <el-form-item label="出库仓库" prop="stock_go_rule">
-          <el-cascader
-            placeholder="请选择出库仓库"
-            filterable
-            clearable
-            :size="searchSize"
-            v-model="selectStock_go"
-            :options="options"
-            style="width: 30%"
-            @change="
-              pageInfo.curr = 1;
-              parmValue.page = 1;
-              stockName();
-            "
-          ></el-cascader>
-        </el-form-item>
-        <el-form-item label="入库仓库" prop="stock_in_rule">
-          <el-cascader
-            placeholder="请选择入库仓库"
-            filterable
-            clearable
-            :size="searchSize"
-            v-model="selectStock_in"
-            :options="options"
-            style="width: 30%"
-            @change="
-              pageInfo.curr = 1;
-              parmValue.page = 1;
-              stockName();
-            "
-          ></el-cascader>
-        </el-form-item>
-        <el-form-item label="出库商品" prop="stock_go_product">
-          <ex-table
-            v-loading="false"
-            :table="table"
-            :data="tableData"
-            :columns="columns"
-            :page="pageInfo"
-            :size="size"
-            @page-curr-change="handlePageChange"
-            @page-size-change="handleSizeChange"
-            @screen-reset="
-              pageInfo.curr = 1;
-              parmValue.page = 1;
-              searchList();
-            "
-            @screen-submit="
-              pageInfo.curr = 1;
-              parmValue.page = 1;
-              searchList();
-            "
-          >
-            <template #table-header="{}">
-              <div style="width: 100%; height: 40px"></div>
-            </template>
-            <template #operation="{ scope }">
-              <el-tooltip
-                v-if="powers.some((item) => item == '002')"
-                effect="dark"
-                content="重置密码"
-                placement="top"
-              >
-                <i
-                  class="el-icon-refresh-left tb-icon"
-                  @click="openPasswordModal(scope.row.id, false)"
-                ></i>
-              </el-tooltip>
-
-              <el-tooltip
-                v-if="powers.some((item) => item == '007')"
-                effect="dark"
-                content="详情"
-                placement="top"
-              >
-                <i
-                  class="el-icon-view tb-icon"
-                  @click="openModal(scope.row.id, true, scope.row)"
-                ></i>
-              </el-tooltip>
-              <el-tooltip
-                v-if="powers.some((item) => item == '005')"
-                effect="dark"
-                content="修改"
-                placement="top"
-              >
-                <i
-                  class="el-icon-edit tb-icon"
-                  @click="openModal(scope.row.id, false, scope.row)"
-                ></i>
-              </el-tooltip>
-              <el-tooltip
-                v-if="
-                  powers.some((item) => item == '004') &&
-                  scope.row.status === '1'
-                "
-                effect="dark"
-                content="禁用"
-                placement="top"
-              >
-                <i
-                  class="el-icon-video-pause tb-icon"
-                  @click="statusConfirm(scope.row.id, scope.row.status)"
-                ></i>
-              </el-tooltip>
-              <el-tooltip
-                v-if="
-                  powers.some((item) => item == '004') &&
-                  scope.row.status === '0'
-                "
-                effect="dark"
-                content="启用"
-                placement="top"
-              >
-                <i
-                  class="el-icon-video-play tb-icon"
-                  @click="statusConfirm(scope.row.id, scope.row.status)"
-                ></i>
-              </el-tooltip>
-            </template>
-          </ex-table>
-        </el-form-item>
-      </el-form> -->
+      <StockSearch></StockSearch>
+      <CompanySearch></CompanySearch>
       <NewApply :myType="type"></NewApply>
       <InStock :myType="type" v-if="type != 1"></InStock>
       <GoStock :myType="type" v-if="type != 1 && type != 2"></GoStock>
@@ -171,9 +44,11 @@ import addEdit from "./addEdit";
 import { mapGetters } from "vuex";
 import NewApply from "./components/newApply"; //新建申请页面
 import InStock from "./components/inStock-audit.vue"; //入库方审核界面
-import GoStock from "./components//goStock-audit"; //出库方发货
+import GoStock from "./components//goStock-audit.vue"; //出库方发货
 import InStockCheck from "./components/inStock-check.vue"; //入库方验货
 import CheckStock from "./components/checkStock.vue"; //验货审核
+import StockSearch from "./components/stockSearch.vue";
+import CompanySearch from "./components/companySearch.vue";
 
 export default {
   name: "newApply",
@@ -186,6 +61,8 @@ export default {
     GoStock,
     InStockCheck,
     CheckStock,
+    StockSearch,
+    CompanySearch,
   },
   computed: {
     ...mapGetters(["tablebtnSize", "searchSize", "size"]),

+ 49 - 143
src/views/stock/spaceCount/index.vue

@@ -28,7 +28,7 @@
             <el-row style="padding: 0 0 0 80px">
               <el-col :span="24">
                 <!-- 请选择仓库 -->
-                <el-col :span="5" style="width: 250px">
+                <!-- <el-col :span="5" style="width: 250px">
                   <el-cascader
                     placeholder="请选择仓库"
                     filterable
@@ -43,9 +43,9 @@
                       searchList();
                     "
                   ></el-cascader>
-                </el-col>
+                </el-col> -->
 
-                <el-col :span="4" style="width: 160px; padding-left: 10px">
+                <!-- <el-col :span="4" style="width: 160px; padding-left: 10px">
                   <el-select
                     v-model="value"
                     :size="searchSize"
@@ -60,7 +60,32 @@
                     >
                     </el-option>
                   </el-select>
+                </el-col> -->
+
+                <el-col :span="8" style="width: 500px">
+                  <el-input
+                    :size="searchSize"
+                    placeholder="请输入内容"
+                    v-model="content"
+                    class="input-with-select"
+                  >
+                    <el-select
+                      style="width: 100px"
+                      v-model="select"
+                      slot="prepend"
+                      placeholder="请选择"
+                    >
+                      <el-option label="商品" value="product"></el-option>
+                      <el-option label="仓库" value="stock"></el-option>
+                    </el-select>
+                    <el-button
+                      slot="append"
+                      icon="el-icon-search"
+                      type="primary"
+                    ></el-button>
+                  </el-input>
                 </el-col>
+
                 <el-col :span="6" style="width: 303px; padding: 0 0 0 10px">
                   <PeriodDatePicker
                     :start="parmValue.total_low"
@@ -72,18 +97,9 @@
                     @numReturned="numReturned($event, 0)"
                   />
                 </el-col>
-                <el-col :span="4" style="width: 74px; margin-left: 10px">
-                  <el-button
-                    :size="searchSize"
-                    type="primary"
-                    class="fr"
-                    icon="el-icon-search"
-                    label=""
-                    @click="searchList"
-                    >搜索</el-button
-                  >
-                </el-col>
+
                 <!-- 重置 -->
+
                 <el-col
                   :span="4"
                   style="width: 74px; margin-left: 10px"
@@ -91,66 +107,26 @@
                 >
                   <el-button
                     :size="searchSize"
-                    class="fr"
-                    icon="el-icon-refresh-right"
+                    class="fl"
+                    type="warning"
                     @click="searchList"
                     >重置</el-button
                   >
                 </el-col>
-                <!-- <el-col :span="4" style="width: 150px; padding: 0 0 0 10px">
-                  <el-input
-                    :size="searchSize"
-                    v-model="parmValue.name"
-                    :maxlength="40"
-                    placeholder="业务员姓名"
-                  />
-                </el-col>
-                <el-col :span="4" style="width: 160px; padding: 0 0 0 10px">
-                  <el-input
-                    :size="searchSize"
-                    v-model="parmValue.username"
-                    :maxlength="40"
-                    placeholder="手机号"
-                  />
-                </el-col>
-                <el-col :span="4" style="width: 54px">
-                  <el-button
-                    :size="searchSize"
-                    type="primary"
-                    class="fr"
-                    icon="el-icon-search"
-                    @click="searchList"
-                /></el-col>
-                <el-col
-                  :span="4"
-                  style="width: 66px"
-                >
-                  <el-button
-                    type="warning"
-                    class="fr"
-                    :size="searchSize"
-                    @click="restSearch"
-                  >
-                    重置
-                  </el-button>
-                </el-col>
-                <el-col
-                  :span="3"
-                  style="width: 66px; float: right"
-                >
-                  <el-button
-                    :size="searchSize"
-                    type="primary"
-                    style="float: right; margin-left: 5px"
-                    @click="searchList"
-                  >
-                    刷新
-                  </el-button>
-                </el-col> -->
               </el-col>
-              <!-- 搜索 -->
             </el-row>
           </div>
+          <!-- 刷新 -->
+          <el-col :span="4" style="width: 74px; margin-left: 10px">
+            <el-button
+              :size="searchSize"
+              type="primary"
+              class="fr"
+              label=""
+              @click="searchList"
+              >刷新</el-button
+            >
+          </el-col>
         </template>
         <template #status="{ scope }">
           <el-tag
@@ -162,68 +138,6 @@
             "
           ></el-tag>
         </template>
-        <!-- <template #operation="{ scope }">
-          <el-tooltip
-            v-if="powers.some((item) => item == '002')"
-            effect="dark"
-            content="重置密码"
-            placement="top"
-          >
-            <i
-              class="el-icon-refresh-left tb-icon"
-              @click="openPasswordModal(scope.row.id, false)"
-            ></i>
-          </el-tooltip>
-
-          <el-tooltip
-            v-if="powers.some((item) => item == '007')"
-            effect="dark"
-            content="详情"
-            placement="top"
-          >
-            <i
-              class="el-icon-view tb-icon"
-              @click="openModal(scope.row.id, true, scope.row)"
-            ></i>
-          </el-tooltip>
-          <el-tooltip
-            v-if="powers.some((item) => item == '005')"
-            effect="dark"
-            content="修改"
-            placement="top"
-          >
-            <i
-              class="el-icon-edit tb-icon"
-              @click="openModal(scope.row.id, false, scope.row)"
-            ></i>
-          </el-tooltip>
-          <el-tooltip
-            v-if="
-              powers.some((item) => item == '004') && scope.row.status === '1'
-            "
-            effect="dark"
-            content="禁用"
-            placement="top"
-          >
-            <i
-              class="el-icon-video-pause tb-icon"
-              @click="statusConfirm(scope.row.id, scope.row.status)"
-            ></i>
-          </el-tooltip>
-          <el-tooltip
-            v-if="
-              powers.some((item) => item == '004') && scope.row.status === '0'
-            "
-            effect="dark"
-            content="启用"
-            placement="top"
-          >
-            <i
-              class="el-icon-video-play tb-icon"
-              @click="statusConfirm(scope.row.id, scope.row.status)"
-            ></i>
-          </el-tooltip>
-        </template> -->
       </ex-table>
       <add-edit
         :id="modelId"
@@ -282,6 +196,10 @@ export default {
   },
   data() {
     return {
+      select: "",
+      product: "",
+      stock: "",
+      content: "",
       options: [],
       loading: true,
       showModel: false,
@@ -362,13 +280,7 @@ export default {
       // passwordModelId: 0,
       // isPasswordDetail: false,
       // statusList: statusList,
-      parmValue: {
-        // name: "", // 业务员名字
-        // username: "", // 账号
-        // status: "", //
-        // page: 1, // 页码
-        // size: 15, // 每页显示条数
-      },
+      parmValue: {},
     };
   },
   mounted() {
@@ -378,13 +290,7 @@ export default {
 
   methods: {
     restSearch() {
-      this.parmValue = {
-        // name: "", // 业务员名字
-        // username: "", // 账号
-        // status: "", //
-        // page: 1, // 页码
-        // size: 10, // 每页显示条数
-      };
+      this.parmValue = {};
       this.searchList();
     },
 

+ 1 - 1
src/views/stock/stockCount/index.vue

@@ -5,7 +5,7 @@
     >
       <div style="width: 100%">
         <el-row>
-          <el-col style="width: 248px">
+          <el-col>
             <el-tabs v-model="activeName" @tab-click="handleClick">
               <el-tab-pane label="商品维度" name="productWeido"></el-tab-pane>
               <el-tab-pane label="数据维度" name="dataWeido"></el-tab-pane>

+ 20 - 142
src/views/stock/survey/index.vue

@@ -6,71 +6,7 @@
       <div style="width: 100%">
         <el-row style="padding: 20px 0 0 30px">
           <el-col :span="24" style="width: 220px">
-            <el-cascader
-              placeholder="请选择仓库"
-              filterable
-              clearable
-              :size="searchSize"
-              v-model="value"
-              :options="options"
-              style="width: 100%"
-              @change="
-                pageInfo.curr = 1;
-                parmValue.page = 1;
-                stockName();
-              "
-            ></el-cascader>
-
-            <!-- 请选择仓库 -->
-            <!-- <el-col :span="5" style="width: 220px">
-              <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 stock"
-                  :key="item.id"
-                  :label="`${item.name}  ${item.id}`"
-                  :value="item.id"
-                />
-              </el-select>
-            </el-col> -->
-
-            <!-- <el-col
-              :span="4"
-              style="width: 66px"
-            >
-              <el-button
-                type="warning"
-                class="fr"
-                :size="searchSize"
-                @click="restSearch"
-              >
-                重置
-              </el-button>
-            </el-col>
-            <el-col
-              :span="3"
-              style="width: 66px; float: right"
-            >
-              <el-button
-                :size="searchSize"
-                type="primary"
-                style="float: right; margin-left: 5px"
-                @click="searchList"
-              >
-                刷新
-              </el-button>
-            </el-col> -->
+            <StockSearch :options="options" @searchCard="a()"></StockSearch>
           </el-col>
         </el-row>
       </div>
@@ -114,80 +50,10 @@
         "
       >
         <template #table-header="{}">
-          <div style="width: 100%; height: 30px"></div>
+          <div style="width: 100%; height: 30px; line-height: 30px">
+            <i class="el-icon-s-unfold" style="height: 10px"></i>库存操作记录
+          </div>
         </template>
-        <!-- <template #status="{ scope }">
-          <el-tag
-            :size="tablebtnSize"
-            :type="scope.row.status == '0' ? 'warning' : ''"
-            v-text="
-              (statusOptions.find((item) => item.id == scope.row.status) || {})
-                .label || '--'
-            "
-          ></el-tag>
-        </template> -->
-        <!-- <template #operation="{ scope }">
-          <el-tooltip
-            v-if="powers.some((item) => item == '002')"
-            effect="dark"
-            content="重置密码"
-            placement="top"
-          >
-            <i
-              class="el-icon-refresh-left tb-icon"
-              @click="openPasswordModal(scope.row.id, false)"
-            ></i>
-          </el-tooltip>
-
-          <el-tooltip
-            v-if="powers.some((item) => item == '007')"
-            effect="dark"
-            content="详情"
-            placement="top"
-          >
-            <i
-              class="el-icon-view tb-icon"
-              @click="openModal(scope.row.id, true, scope.row)"
-            ></i>
-          </el-tooltip>
-          <el-tooltip
-            v-if="powers.some((item) => item == '005')"
-            effect="dark"
-            content="修改"
-            placement="top"
-          >
-            <i
-              class="el-icon-edit tb-icon"
-              @click="openModal(scope.row.id, false, scope.row)"
-            ></i>
-          </el-tooltip>
-          <el-tooltip
-            v-if="
-              powers.some((item) => item == '004') && scope.row.status === '1'
-            "
-            effect="dark"
-            content="禁用"
-            placement="top"
-          >
-            <i
-              class="el-icon-video-pause tb-icon"
-              @click="statusConfirm(scope.row.id, scope.row.status)"
-            ></i>
-          </el-tooltip>
-          <el-tooltip
-            v-if="
-              powers.some((item) => item == '004') && scope.row.status === '0'
-            "
-            effect="dark"
-            content="启用"
-            placement="top"
-          >
-            <i
-              class="el-icon-video-play tb-icon"
-              @click="statusConfirm(scope.row.id, scope.row.status)"
-            ></i>
-          </el-tooltip>
-        </template> -->
       </ex-table>
       <add-edit
         :id="modelId"
@@ -201,7 +67,6 @@
     <div v-else>
       <no-auth></no-auth>
     </div>
-
     <add-edit
       :showModel="showModel"
       :id="modelId"
@@ -221,6 +86,7 @@ import asyncRequest from "@/mock/service/stock/survey";
 import countTo from "vue-count-to";
 import addEdit from "./addEdit";
 import { mapGetters } from "vuex";
+import StockSearch from "@/views/stock/allotFlow/components/stockSearch.vue";
 
 export default {
   name: "survey",
@@ -229,6 +95,7 @@ export default {
     addEdit,
     ExTable,
     countTo,
+    StockSearch,
   },
   computed: {
     ...mapGetters(["tablebtnSize", "searchSize", "size"]),
@@ -287,6 +154,8 @@ export default {
           endVal: 0,
         },
       ],
+      arr1:[],
+
       loading: true,
       showModel: false,
       isDetail: false,
@@ -296,7 +165,7 @@ export default {
         // 表格 - 参数
         stripe: true,
         border: true,
-        _defaultHeader_: ["setcol"],
+        // _defaultHeader_: ["setcol"],
       },
       // 表格 - 分页
       pageInfo: {
@@ -367,11 +236,16 @@ export default {
   },
   mounted() {
     this.searchList(); //获取表格信息
-    this.stockList(); //获取卡片内库存数据信息
+    // this.stockList(); //获取卡片内库存数据信息
     this.stockName(); //获取多级仓库列表信息
   },
 
   methods: {
+    wchange(e){
+      
+      console.log(e);
+
+    },
     restSearch() {
       //清空入参参数
       // this.parmValue = {
@@ -421,6 +295,10 @@ export default {
       //     console.log("取消");
       //   });
     },
+    a() {
+      console.log("获取卡片数据");
+      this.stockList();
+    },
     async stockList() {
       //获取表格上方的卡片数据
       // console.log(this.stock_list);
@@ -460,7 +338,7 @@ export default {
         });
         this.options.push(item);
       });
-      // console.log(this.options);
+      console.log(this.options);
       // console.log(this.pageInfo.total);
     },
     async searchList() {