周宾
2025-12-12 a53da4c0f570f2d26ed09f4f477c6beae188845b
src/views/inventoryManagement/dispatchLog/index.vue
@@ -23,6 +23,13 @@
                     clearable
                     @change="handleQuery"
                  />
                  <span class="search_title ml10">产品大类:</span>
                  <el-input
                     v-model="searchForm.productCategory"
                     style="width: 240px"
                     placeholder="请输入"
                     clearable
                  />
                  <el-button type="primary" @click="handleQuery" style="margin-left: 10px">搜索</el-button>
               </div>
               <div>
@@ -91,6 +98,13 @@
                     clearable
                     @change="handleQuery"
                  />
                  <span class="search_title ml10">产品大类:</span>
                  <el-input
                     v-model="searchForm.productCategory"
                     style="width: 240px"
                     placeholder="请输入"
                     clearable
                  />
                  <el-button type="primary" @click="handleQuery" style="margin-left: 10px">搜索</el-button>
               </div>
               <div>
@@ -158,6 +172,13 @@
                     format="YYYY-MM-DD"
                     clearable
                     @change="handleQuery"
                  />
                  <span class="search_title ml10">产品大类:</span>
                  <el-input
                     v-model="searchForm.productCategory"
                     style="width: 240px"
                     placeholder="请输入"
                     clearable
                  />
                  <el-button type="primary" @click="handleQuery" style="margin-left: 10px">搜索</el-button>
               </div>
@@ -358,6 +379,7 @@
   searchForm: {
      supplierName: "",
      customerName: "",
       productCategory:'',
      timeStr: getCurrentDate(),
   },
   form: {
@@ -403,6 +425,7 @@
      params.supplierName = searchForm.value.supplierName
      params.timeStr = searchForm.value.timeStr
   }
    params.productCategory = searchForm.value.productCategory
   
   // 根据不同的 tab 类型调用不同的接口
   const apiCall = activeTab.value === 'production' 
@@ -431,6 +454,7 @@
   searchForm.value.customerName = ''
   searchForm.value.timeStr = ''
   selectedRows.value = []
     searchForm.value.productCategory = ''
   getList()
};