fix: 修复搜索供应商列表结果为空时产品列表不为空的bug, 修复产品列表翻页后搜索供应商时产品列表页码未重置的bug, 修复供应商列表/产品列表/采购订单/质检单/退货单翻页后再搜索页码未重置的bug
| | |
| | | }) |
| | | }, |
| | | // 搜索 |
| | | searchClick(val, content) { |
| | | console.log(val, content) |
| | | this.search = content |
| | | this.getData() |
| | | }, |
| | | resetClick() { |
| | | this.search = "" |
| | | this.getData() |
| | | }, |
| | | onFilterSearch(searchText){ |
| | | this.search = searchText ?? '' |
| | | this.pagerOptions.currPage = 1 |
| | | this.getData() |
| | | }, |
| | | // 新建 |
| | |
| | | }, |
| | | onFilterSearch(searchText){ |
| | | this.search = searchText ?? '' |
| | | this.pagerOptions.currPage = 1 |
| | | this.getData() |
| | | }, |
| | | |
| | |
| | | }, |
| | | onFilterSearch(searchText){ |
| | | this.search = searchText ?? '' |
| | | this.pagerOptions.currPage = 1 |
| | | this.getData() |
| | | }, |
| | | |
| | |
| | | this.$nextTick(() => { |
| | | this.$refs.tableSupplier.$refs.table.setCurrentRow(this.tableList.tableInfomation[0]) |
| | | }) |
| | | this.getProductList() |
| | | |
| | | // 重新获取供应商列表后应该重置产品列表页码 |
| | | this.productPagerOptions.currPage = 1; |
| | | // 如果供应商列表为空,则可提供产品列表也应为空 |
| | | if (list.length){ |
| | | this.getProductList() |
| | | }else { |
| | | this.productTableList.tableInfomation=[] |
| | | this.productPagerOptions.currPage = 1; |
| | | this.productPagerOptions.totalCount = 0 |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | |
| | | // 搜索供应商 |
| | | onFilterSearch(searchText){ |
| | | this.searchSupplierName = searchText ??'' |
| | | this.pagerOptions.currPage = 1 |
| | | this.getSupplierList() |
| | | }, |
| | | // 搜索产品 |
| | | onProductFilterSearch(searchText){ |
| | | this.productPagerOptions.currPage = 1 |
| | | this.getProductList('name', searchText) |
| | | }, |
| | | // 新建供应商 |