| | |
| | | getInventoryPage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then((res) => { |
| | | if (res.data.code == 200) { |
| | | this.data = res.data.data.records |
| | | //单位处理 |
| | | this.data.forEach((e)=>{ |
| | | e.saleNum = e.saleNum + " 公斤" |
| | | }) |
| | | this.page.total = res.data.data.total |
| | | this.loading = false |
| | | } |
| | |
| | | getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then((res) => { |
| | | if (res.data.code == 200) { |
| | | this.data = res.data.data.records |
| | | //单位处理 |
| | | this.data.forEach((e)=>{ |
| | | e.saleNum = e.saleNum + " 公斤" |
| | | e.processNum = e.processNum + " 公斤" |
| | | }) |
| | | this.page.total = res.data.data.total |
| | | this.loading = false |
| | | } |
| | |
| | | getPage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then((res) => { |
| | | if (res.data.code == 200) { |
| | | this.data = res.data.data.records |
| | | //单位处理 |
| | | this.data.forEach((e)=>{ |
| | | e.saleNum = e.saleNum + " 公斤" |
| | | }) |
| | | this.page.total = res.data.data.total |
| | | this.loading = false |
| | | } |
| | |
| | | this.loading = true |
| | | getPage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then((res) => { |
| | | if (res.data.code == 200) { |
| | | console.log(res) |
| | | this.data = res.data.data.records |
| | | //单位处理 |
| | | this.data.forEach((e)=>{ |
| | | e.saleNum = e.saleNum + " 公斤" |
| | | e.salePrice = e.salePrice + " 元/公斤" |
| | | }) |
| | | this.page.total = res.data.data.total |
| | | this.loading = false |
| | | } |