浏览代码

提交箱管

caojunjie 2 年之前
父节点
当前提交
0fbc895425

+ 1 - 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?true:false)"
+                     :disabled="option.disabled || (selectionList.findIndex(function(item){return item.status !== '空箱入场' && item.stockpilingStatus == '1'}) == -1?false:true) || selectionList.length === 0"
                      @click="stockpiling()">堆存
           </el-button>
         </template>

+ 1 - 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?true:false)"
+                     :disabled="option.disabled || (selectionList.findIndex(function(item){return item.status !== '空箱入场' && item.stockpilingStatus == '1'}) == -1?false:true) || selectionList.length === 0"
                      @click="stockpiling()">堆存
           </el-button>
         </template>

+ 1 - 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?true:false)"
+                     :disabled="option.disabled || (selectionList.findIndex(function(item){return item.status !== '待使用' && item.stockpilingStatus == '1'}) == -1?false:true) || selectionList.length === 0"
                      @click="stockpiling()">堆存
           </el-button>
         </template>

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

@@ -95,9 +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?true:false)"
-                     @click="stockpiling()">堆存
+          <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>
         </template>
       </avue-crud>

+ 1 - 1
src/views/boxManagement/stockpilingManage/detailsPage.vue

@@ -890,7 +890,7 @@ export default {
             })
           }else {
             if (this.title === "计算堆存费"){
-              if (Number(new Date(this.selectionList[0].leaseCommencementDate)) >= Number(new Date(this.formState.rentStartDate))) {
+              if (Number(new Date(this.selectionList[0].leaseCommencementDate)) > Number(new Date(this.formState.rentStartDate))) {
                 return this.$message.error("起始日期不能小于起租日期")
               }
               this.disabledVisible = true