Преглед изворни кода

fix:验收单分页查询bug修改

zhangxiaojun пре 3 месеци
родитељ
комит
805b72c9f4
1 измењених фајлова са 16 додато и 2 уклоњено
  1. 16 2
      src/views/acceptanceManagement/index.vue

+ 16 - 2
src/views/acceptanceManagement/index.vue

@@ -11,7 +11,7 @@
             <div class="right">
               <template v-if="activeName === 'all'">
                 <div>
-                  <el-input v-model="search.searchNumber" style="width: 250px" placeholder="请输入业务编号" clearable />
+                  <el-input v-model="search.searchNumber" style="width: 250px" placeholder="请输入业务编号/验收单编号" clearable />
                 </div>
                 <div>
                   <el-select
@@ -33,7 +33,7 @@
                   <el-input v-model="search.fastSearch" style="width: 300px" placeholder="请输入项目名称/主企业名称/核心企业名称" clearable></el-input>
                 </div>
                 <div class="leftBtn">
-                  <el-button type="primary" @click="fetchData">查询</el-button>
+                  <el-button type="primary" @click="searchData">查询</el-button>
                 </div>
               </template>
             </div>
@@ -122,6 +122,20 @@ export default {
         })
       }
     },
+    searchData() {
+      this.loading = true
+      const params = {
+        page: 1,
+        rows: this.size,
+        simpleClassName: 'AcceptanceSheet',
+        ...this.search
+      }
+      acceptanceAllList(params).then(({ rows, records }) => {
+        this.loading = false
+        this.tableData = rows
+        this.total = records
+      })
+    },
     handleTabClick(tab) {
       this.activeName = tab.name
       if (this.activeName === 'pending') {