| | |
| | | <button :class="['tab-button', current === 0 ? 'active' : '']" |
| | | @click="onClickItem({currentIndex: 0})">未提交({{uncheckedCount}})</button> |
| | | <button :class="['tab-button', current === 1 ? 'active' : '']" |
| | | @click="onClickItem({currentIndex: 1})">已提交({{checkedCount}})</button> |
| | | @click="onClickItem({currentIndex: 1})">已提交{{checkedCount > 0 ? '(' + checkedCount + ')' : ''}}</button> |
| | | </view> |
| | | </view> |
| | | |
| | |
| | | tipShow: false, // 是否显示顶部提示框 |
| | | searchValue: '', |
| | | uncheckedCount: 0, |
| | | checkedCount: '已完成', |
| | | checkedCount: 0, |
| | | optionsIndex: 0, |
| | | options: ['物料编号', '物料名称', '检验单号'], |
| | | lineIndex: 0, |
| | |
| | | this.data = [...this.data, ...res.data.tbBillList]; |
| | | } |
| | | } |
| | | this.totalCount = res.totalCount; |
| | | this.totalCount = res.data.totalCount; |
| | | this.totalPage = Math.ceil(this.totalCount / this.limit); |
| | | |
| | | this.noData = this.pageIndex >= this.totalPage; |
| | |
| | | |
| | | // 更新计数 - 参考SJ的实现方式 |
| | | if (this.current === 1) { |
| | | this.checkedCount = '已完成(' + this.totalCount + ')'; |
| | | this.checkedCount = this.totalCount; |
| | | } else { |
| | | this.uncheckedCount = this.totalCount; |
| | | } |
| | |
| | | // }, |
| | | { |
| | | name: '本地调试', |
| | | url: 'http://localhost:5184/api' |
| | | url: 'http://localhost:10054/api' |
| | | }, |
| | | { |
| | | name: '正式地址', |