chenrui 2 rokov pred
rodič
commit
b9f8251a80

+ 10 - 1
src/views/allocationManagement/warehouseAllocation/edit.vue

@@ -149,7 +149,14 @@
               <a-col :span="6">
                 <div style="margin-top: 4px;text-align: right;">
                   <!-- <a-button size="small" style="margin-left: 8px" id="chainTransferOutEdit-import-btn">导入明细</a-button> -->
-                  <a-button size="small" type="danger" style="margin-left: 8px" @click.stop="handleDel('', 'all')" id="warehouseAllocationEdit-del-all-btn">清空列表</a-button>
+                  <a-button
+                    size="small"
+                    type="danger"
+                    style="margin-left: 8px"
+                    @click.stop="handleDel('', 'all')"
+                    ghost
+                    :disabled="chooseLoadDataSource.length==0"
+                    id="warehouseAllocationEdit-del-all-btn">清空列表</a-button>
                 </div>
               </a-col>
             </a-row>
@@ -251,6 +258,7 @@ export default {
       productType: [],
       warehousePutLocData: [], //  调入仓位  下拉数据
       warehouseOutLocData: [], //  调出仓位  下拉数据
+      chooseLoadDataSource: [],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {
         this.disabled = true
@@ -282,6 +290,7 @@ export default {
             data.list[i].allocationCost = data.list[i].totalAllocationCost / data.list[i].allocationQty
           }
           this.chooseDisabled = false
+          this.chooseLoadDataSource = data.list
           return data
         })
       },

+ 2 - 0
src/views/bulkManagement/bulkWarehousingOrder/edit.vue

@@ -198,6 +198,8 @@
                       <a-button
                         type="primary"
                         ghost
+                        :disabled="chooseLoadDataSource.length==0"
+                        style="margin-left: 10px"
                         @click="delBulkOrder"
                         :loading="delLoading"
                         id="bulkWarehousingOrderEdit-del-all">清空列表</a-button>

+ 2 - 1
src/views/salesManagement/salesQuery/edit.vue

@@ -114,6 +114,7 @@
                 <a-button
                   type="primary"
                   ghost
+                  :disabled="dataSource.length==0"
                   @click="delSalerOrder"
                   :loading="delLoading"
                   id="salesEdit-del-all">清空列表</a-button>
@@ -516,7 +517,7 @@ export default {
           salesDel({ id: _this.orderId }).then(res => {
             if (res.status == 200) {
               _this.$message.success(res.message)
-              _this.handleBack()
+              _this.resetSearchForm(true)
             }
             _this.spinning = false
           })