瀏覽代碼

提交箱管

caojunjie 2 年之前
父節點
當前提交
ff0d86a2b7

+ 9 - 1
src/views/boxManagement/exportShipment/detailsPage.vue

@@ -102,7 +102,7 @@
             </el-dropdown-menu>
           </el-dropdown>
           <el-button style="margin-left: 0" type="success" size="small"
-                     :disabled="option.disabled || (selectionList.findIndex(function(item){return item.status !== '空箱入场' && item.stockpilingStatus == '1'}) == -1?false:true) || selectionList.length === 0"
+                     :disabled="option.disabled || storeUp || selectionList.length === 0"
                      @click="stockpiling()">堆存
           </el-button>
         </template>
@@ -317,6 +317,7 @@ export default {
       key: 0,
       importList: [],
       title: '',
+      storeUp:true,
       loading: false,
       disabledVisible: false,
       boxTrack: false,
@@ -1090,6 +1091,13 @@ export default {
     },
     selectionChange(list) {
       this.selectionList = list
+      for (let item of list){
+        if (item.status == '空箱入场' && item.stockpilingStatus == '1'){
+          this.storeUp = false
+        }else {
+          return this.storeUp = true
+        }
+      }
     },
     track(row) {
       // this.dataTrackList = row

+ 9 - 1
src/views/boxManagement/importReturnTrip/detailsPage.vue

@@ -101,7 +101,7 @@
             </el-dropdown-menu>
           </el-dropdown>
           <el-button style="margin-left: 0" type="success" size="small"
-                     :disabled="option.disabled || (selectionList.findIndex(function(item){return item.status !== '空箱入场' && item.stockpilingStatus == '1'}) == -1?false:true) || selectionList.length === 0"
+                     :disabled="option.disabled || storeUp || selectionList.length === 0"
                      @click="stockpiling()">堆存
           </el-button>
         </template>
@@ -315,6 +315,7 @@ export default {
       key: 0,
       importList: [],
       title: '',
+      storeUp:true,
       loading: false,
       boxTrack: false,
       importOpen: false,
@@ -1095,6 +1096,13 @@ export default {
     },
     selectionChange(list) {
       this.selectionList = list
+      for (let item of list){
+        if (item.status == '空箱入场' && item.stockpilingStatus == '1'){
+          this.storeUp = false
+        }else {
+          return this.storeUp = true
+        }
+      }
     },
     track(row) {
       // this.dataTrackList = row

+ 9 - 1
src/views/boxManagement/leaseIn/detailsPage.vue

@@ -100,7 +100,7 @@
             报表打印
           </el-button>
           <el-button style="margin-left: 0" type="success" size="small"
-                     :disabled="option.disabled || (selectionList.findIndex(function(item){return item.status !== '待使用' && item.stockpilingStatus == '1'}) == -1?false:true) || selectionList.length === 0"
+                     :disabled="option.disabled || storeUp || selectionList.length === 0"
                      @click="stockpiling()">堆存
           </el-button>
         </template>
@@ -256,6 +256,7 @@ export default {
       formSearch: {},
       optionState: {},
       formState: {},
+      storeUp:true,
       selectionList: [],
       optionStateTwoTwo: {
         menuBtn: false,
@@ -996,6 +997,13 @@ export default {
     },
     selectionChange(list) {
       this.selectionList = list
+      for (let item of list){
+        if (item.status == '待使用' && item.stockpilingStatus == '1'){
+          this.storeUp = false
+        }else {
+          return this.storeUp = true
+        }
+      }
     },
     confirmEdit() {
       if (this.form.status > 0) {

+ 9 - 1
src/views/boxManagement/leaseOut/detailsPage.vue

@@ -95,7 +95,7 @@
           <el-button class="el-icon-download" type="info" size="small" :disabled="!form.id" @click="openReport">
             报表打印
           </el-button>
-          <el-button style="margin-left: 0" type="success" size="small":disabled="option.disabled || (selectionList.findIndex(function(item){return item.status !== '待使用' && item.stockpilingStatus == '1'}) == -1?false:true) || selectionList.length === 0"@click="stockpiling()">堆存
+          <el-button style="margin-left: 0" type="success" size="small":disabled="option.disabled || storeUp || selectionList.length === 0"@click="stockpiling()">堆存
           </el-button>
         </template>
       </avue-crud>
@@ -438,6 +438,7 @@ export default {
         }]
       },
       option: {},
+      storeUp:true,
       optionBack: {
         align: 'center',
         index: true,
@@ -999,6 +1000,13 @@ export default {
     },
     selectionChange(list) {
       this.selectionList = list
+      for (let item of list){
+        if (item.status == '待使用' && item.stockpilingStatus == '1'){
+          this.storeUp = false
+        }else {
+          return this.storeUp = true
+        }
+      }
     },
     confirmEdit() {
       if (this.form.status > 0) {