lilei 1 năm trước cách đây
mục cha
commit
31e037754c

+ 9 - 1
src/views/common/shelfList.js

@@ -28,6 +28,10 @@ const shelfSList = {
     mode: {
       type: String,
       default: 'default'
+    },
+    showAll: {
+      type: Boolean,
+      default: false
     }
   },
   data () {
@@ -60,7 +64,11 @@ const shelfSList = {
     },
     //  货架列表
     getShelf () {
-      shelfList({ stateSet:[ 'ENABLE', 'SUSPEND', 'DISABLED' ], pageNo: 1, pageSize: 1000 }).then(res => {
+      const params = {pageNo: 1, pageSize: 1000}
+      if(!this.showAll){
+        params.stateSet = [ 'ENABLE', 'SUSPEND', 'DISABLED' ]
+      }
+      shelfList(params).then(res => {
         if (res.status == 200) {
           this.shelfList = res.data && res.data.list ? res.data.list : []
         } else {

+ 1 - 1
src/views/numsGoodsShelves/shelfOrder/list.vue

@@ -12,7 +12,7 @@
             </a-col>
             <a-col :md="6" :sm="24">
               <a-form-item label="货架名称">
-                <shelfSList ref="shelfSList" mode="multiple" v-model="queryParam.shelfSnList"></shelfSList>
+                <shelfSList ref="shelfSList" :showAll="true" mode="multiple" v-model="queryParam.shelfSnList"></shelfSList>
               </a-form-item>
             </a-col>
             <a-col :md="6" :sm="24">