| | |
| | | this.pagerOptions.currPage = 1 |
| | | this.searchTaskMap = |
| | | query.productId?.length > 0 ? [{ productId: this.queryProductId, title: query.productName }] : [] |
| | | console.log(this.searchTaskMap) |
| | | } |
| | | this.getData() |
| | | }, |
| | |
| | | pageSize: this.pagerOptions.pageSize |
| | | }).then((res) => { |
| | | if (res.code === 200) { |
| | | console.log(res) |
| | | const list = res.data.map((item) => { |
| | | let orderNum = 0 |
| | | if (parseFloat(item.minInventory) - parseFloat(item.prediction) > 0) { |
| | |
| | | }, |
| | | // 新增 |
| | | addProductClick() { |
| | | console.log(this.addTitle) |
| | | this.isSel() |
| | | if (this.isNoProduct && this.addTitle === "新建") { |
| | | this.$refs.tablelistRef.getProductList() |
| | |
| | | this.tableData.map((item, index) => { |
| | | if (index === rowIndex) { |
| | | item.isEdit = false |
| | | item.editable = false |
| | | item.editable = true |
| | | item.isOrder = true |
| | | } else { |
| | | item.isEdit = true |