| | |
| | | } |
| | | }, |
| | | created() { |
| | | if (this.$route.params.productId) { |
| | | this.getData({ |
| | | productId: this.$route.params.productId, |
| | | pageSize: 15, |
| | | page: 1 |
| | | }) |
| | | } else { |
| | | this.getData() |
| | | } |
| | | this.setTable() |
| | | this.searchTaskMap = [{ id: "0", type: this.type, title: "重新订购" }] |
| | | this.getData() |
| | | this.getLocationList() |
| | | }, |
| | | methods: { |
| | |
| | | type: this.type, |
| | | keyWord: data?.jointName, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | pageSize: this.pagerOptions.pageSize, |
| | | productId: data?.productId |
| | | }).then((res) => { |
| | | if (res.code === 200) { |
| | | console.log(res) |
| | |
| | | }, |
| | | // 新增 |
| | | addProductClick() { |
| | | console.log(this.addTitle) |
| | | console.log(this.addTitle, "qqqqqqqqqqqq") |
| | | this.isSel() |
| | | if (this.isNoProduct && this.addTitle === "新建") { |
| | | this.$refs.tablelistRef.getProductList() |
| | |
| | | editable: false, |
| | | isOrder: true |
| | | }) |
| | | this.tableList.tableData = this.tableData |
| | | this.locationId = 0 |
| | | this.productId = 0 |
| | | } else { |
| | |
| | | }, |
| | | // 选中产品方法 |
| | | selProductClick(item) { |
| | | this.productId = item.value |
| | | this.productId = item.productId |
| | | this.unit = item.unit |
| | | this.amount = item.amount |
| | | this.prediction = item.prediction |
| | | }, |
| | | // 选中路线方法 |
| | | selRouteClick(item, prop) { |
| | |
| | | }, |
| | | ...res.data |
| | | ] |
| | | console.log(res, "res666") |
| | | }) |
| | | }, |
| | | // 删除type |