| | |
| | | }) |
| | | } |
| | | }, |
| | | showBackData(data){ |
| | | showBackData(data){ |
| | | let status ; |
| | | data.map(item => { |
| | | this.list.push(item) |
| | | }) |
| | | }) |
| | | let oldLength = this.list.length |
| | | this.list = this.list.filter((item, index, self) => |
| | | self.findIndex(i => ( |
| | | i.id === item.id // 根据id去重 |
| | | )) === index && item.isptResult === self[0].isptResult |
| | | ); |
| | | let newLength = this.list.length |
| | | |
| | | if(oldLength > newLength){ |
| | | this.showMsg("新明细被过滤,请检查状态") |
| | | |
| | | } |
| | | |
| | | }, |
| | | showMsg(msg){ |
| | | setTimeout(function() { |
| | | uni.showToast({ |
| | | icon: "none", |
| | | position: 'top', |
| | | title: msg, |
| | | duration:2000, |
| | | }) |
| | | }, 200); |
| | | |
| | | }, |
| | | scrollTo() { |
| | | const ref = this.$refs[`${this.barcode}ref`][0]; |
| | | uni.pageScrollTo({ |