Browse Source

fix:首页通知搜索

zh 2 years ago
parent
commit
53c593bed9
1 changed files with 7 additions and 6 deletions
  1. 7 6
      src/views/dashboard.vue

+ 7 - 6
src/views/dashboard.vue

@@ -233,7 +233,7 @@
                         "
                         >重置</el-button
                       >
-                      <el-button type="primary" @click="getListInvoiceOrder">查询</el-button>
+                      <el-button type="primary" @click="getArrivalNotice">查询</el-button>
                     </div>
                   </el-form-item>
                 </el-col>
@@ -636,17 +636,18 @@ export default {
     },
     // 获取物流列表
     async getListInvoiceOrder(data) {
+    
+      const res = await getListInvoiceOrder(data)
+      this.invoiceOrderList = res.data.records
+      this.listTotal = res.data.total
+    },
+    async getArrivalNotice(data) {
       data = {
         ...data,
         pageSize: this.pageSize,
         pageNum: this.currentPage,
         specification: this.specification
       }
-      const res = await getListInvoiceOrder(data)
-      this.invoiceOrderList = res.data.records
-      this.listTotal = res.data.total
-    },
-    async getArrivalNotice(data) {
       const res = await getArrivalNotice(data)
       this.arrivalNoticeList = res.data.records
       this.listTotal = res.data.total