瀏覽代碼

修改bug

chenrui 2 年之前
父節點
當前提交
364bd75cd1
共有 1 個文件被更改,包括 12 次插入8 次删除
  1. 12 8
      src/views/inventoryManagement/inventoryChecking/selfDisk.vue

+ 12 - 8
src/views/inventoryManagement/inventoryChecking/selfDisk.vue

@@ -28,9 +28,6 @@
         <!-- 筛选条件 -->
         <div class="table-page-search-wrapper">
           <a-row>
-            <a-col :md="2" :sm="24" style="text-align: left;">
-              <a-button size="small" type="primary" class="button-info" @click.stop="handleBatchAdd('batch')" id="chainTransferOutEdit-del-all-btn">批量添加</a-button>
-            </a-col>
             <a-col :md="20" :sm="24">
               <a-form layout="inline" @keyup.enter.native="searchForm">
                 <a-row :gutter="15">
@@ -49,11 +46,6 @@
                       <ProductBrand id="inventoryCheckSelfDiskList-productBrand" sysFlag="" v-model="queryParam.brandSn"></ProductBrand>
                     </a-form-item>
                   </a-col>
-                  <a-col :md="2" :sm="8">
-                    <a-form-item label="">
-                      <a-checkbox @change="onlySeeStock">只查看有库存</a-checkbox>
-                    </a-form-item>
-                  </a-col>
                   <template v-if="advanced">
                     <a-col :md="6" :sm="24">
                       <a-form-item label="产品分类">
@@ -67,6 +59,11 @@
                         </a-select>
                       </a-form-item>
                     </a-col>
+                    <a-col :md="6" :sm="24">
+                      <a-form-item label="">
+                        <a-checkbox @change="onlySeeStock" :checked="showChecked">只查看有库存</a-checkbox>
+                      </a-form-item>
+                    </a-col>
                   </template>
                   <a-col :md="4" :sm="16" style="margin-bottom: 10px;">
                     <a-button type="primary" @click="searchForm" :disabled="disabled" id="inventoryCheckSelfDiskList-refresh">查询</a-button>
@@ -80,6 +77,9 @@
               </a-form>
             </a-col>
             <a-col :md="2" :sm="24" style="text-align: right;">
+              <a-button size="small" type="primary" class="button-info" @click.stop="handleBatchAdd('batch')" id="chainTransferOutEdit-del-all-btn">批量添加</a-button>
+            </a-col>
+            <a-col :md="1" :sm="12" style="text-align: right;">
               <a-button
                 size="small"
                 type="primary"
@@ -88,6 +88,7 @@
                 @click.stop="handleBatchAdd('all')"
                 id="chainTransferOutEdit-del-all-btn">全部添加</a-button>
             </a-col>
+
           </a-row>
         </div>
         <!-- 列表 -->
@@ -263,6 +264,7 @@ export default {
       },
       basicInfoData: null, // 基础信息
       productTotal: null,
+      showChecked: false,
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {
         this.disabled = true
@@ -371,6 +373,7 @@ export default {
       this.queryParam.productTypeSn3 = undefined
       this.productType = []
       this.$refs.table.refresh(true)
+      this.showChecked = false
     },
     //  添加
     handleAdd (row) {
@@ -584,6 +587,7 @@ export default {
     },
     // 只查看有库存
     onlySeeStock (e) {
+      this.showChecked = e.target.checked
       this.queryParam.existStockFlag = e.target.checked ? 1 : null
     }
   },