Browse Source

【修改】产品现存 货品类型多选

howie 2 years ago
parent
commit
45a7317831
1 changed files with 8 additions and 8 deletions
  1. 8 8
      src/views/basic_data/stock/product_list.vue

+ 8 - 8
src/views/basic_data/stock/product_list.vue

@@ -46,14 +46,14 @@
 
           <el-col :xs="24" :sm="12" :lg="6">
             <el-form-item label="仓库" prop="correspondId">
-              <el-select v-model="screenForm.correspondId" multiple  style="width: 100%" placeholder="请选择仓库" size="mini" filterable clearable>
+              <el-select v-model="screenForm.correspondId" multiple style="width: 100%" placeholder="请选择仓库" size="mini" filterable clearable>
                 <el-option v-for="(item, index) in warehouseList" :key="index" :label="item.name" :value="item.id" />
               </el-select>
             </el-form-item>
           </el-col>
           <el-col :xs="24" :sm="12" :lg="6">
-            <el-form-item label="存货类别" >
-              <el-select v-model="screenForm.categoryId" style="width: 100%" placeholder="选择存货类别" filterable clearable>
+            <el-form-item label="存货类别" prop="categoryId">
+              <el-select v-model="screenForm.categoryId" style="width: 100%" placeholder="选择存货类别" filterable clearable multiple>
                 <el-option v-for="item in categoryList" :key="item.name" :label="item.name" :value="item.id" />
               </el-select>
             </el-form-item>
@@ -70,7 +70,7 @@
     </div>
     <div class="mymain-container">
       <div class="btn-group clearfix">
-        <div >
+        <div>
           <ExportButton
             :ex-url="'/stock/manager/exportStockToDay'"
             :ex-params="exParams"
@@ -94,7 +94,7 @@
             min-width="100"
             show-overflow-tooltip
           />
-            <el-table-column
+          <el-table-column
             align="left"
             label="存货类别"
             prop="categoryName"
@@ -204,7 +204,7 @@ export default {
       dataList: null, // 列表数据
       listLoading: false, // 列表加载loading
       screenForm: {
-        categoryId: '',
+        categoryId: [],
         correspondId: [],
         materialName: '',
         materialNumber: '',
@@ -220,7 +220,7 @@ export default {
   computed: {
     exParams() {
       return {
-        categoryId: this.screenForm.categoryId,
+        categoryId: this.screenForm.categoryId.join(','),
         correspondId: this.screenForm.correspondId.join(','),
         materialName: this.screenForm.materialName,
         materialNumber: this.screenForm.materialNumber,
@@ -238,7 +238,7 @@ export default {
       const params = {
         pageNum: this.currentPage,
         pageSize: this.pageSize,
-        categoryId: this.screenForm.categoryId,
+        categoryId: this.screenForm.categoryId.join(','),
         correspondId: this.screenForm.correspondId.join(','),
         materialName: this.screenForm.materialName,
         materialNumber: this.screenForm.materialNumber,