Browse Source

修改bug

chenrui 2 năm trước cách đây
mục cha
commit
b132d4ac99
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      src/views/productManagement/productNotOnline/list.vue

+ 4 - 2
src/views/productManagement/productNotOnline/list.vue

@@ -63,7 +63,7 @@
       </div>
       <!-- 操作按钮 -->
       <div class="table-operator" style="text-align:right;">
-        <a-checkbox v-model="queryParam.zeroQtyFlag" id="inventoryQueryList-zeroQtyFlag" @change="handleChangeQty">仅显示有库存</a-checkbox>
+        <a-checkbox v-model="zeroQtyFlag" id="inventoryQueryList-zeroQtyFlag" @change="handleChangeQty">仅显示有库存</a-checkbox>
       </div>
       <!-- 列表 -->
       <s-table
@@ -177,7 +177,7 @@ export default {
     },
     handleChangeQty (e) {
       this.zeroQtyFlag = e.target.checked
-      this.queryParam.stockFlag = e.target.checked ? '1' : '0'
+      this.queryParam.stockFlag = e.target.checked ? '1' : undefined
       this.$refs.table.refresh(true)
     },
     //  重置
@@ -189,6 +189,8 @@ export default {
       this.queryParam.productTypeSn2 = ''
       this.queryParam.productTypeSn3 = ''
       this.queryParam.pricingState = undefined
+      this.queryParam.stockFlag = undefined
+      this.zeroQtyFlag = false
 
       this.queryParam.pricingTimeBegin = undefined
       this.queryParam.pricingTimeEnd = undefined