| | |
| | | amount: 0, |
| | | operationId: 0, |
| | | minInventory: 0, |
| | | maxInventory: 0, |
| | | orderNumber: 0, |
| | | maxInventory: 1, |
| | | orderNumber: 1, |
| | | unit: "", |
| | | reorderId: 0, |
| | | searchTaskMap: [], |
| | |
| | | pageSize: 15, |
| | | page: 1 |
| | | }) |
| | | } else { |
| | | }else if(this.$route.params.locationId){ |
| | | this.searchTaskMap=[] |
| | | this.getData({ |
| | | id: this.$route.params.locationId, |
| | | jointName:this.$route.params.locationName, |
| | | // type:"", |
| | | pageSize: 15, |
| | | page: 1 |
| | | }) |
| | | }else { |
| | | this.getData() |
| | | } |
| | | this.setTable() |
| | |
| | | }, |
| | | // 操作输入 |
| | | inputContent(val, prop, row) { |
| | | console.log(val, prop, row) |
| | | console.log(row) |
| | | if (prop === "minInventory") { |
| | | this.minInventory = val |
| | | if (parseFloat(this.minInventory) - parseFloat(this.prediction) > 0) { |
| | |
| | | this.showDiscard = false |
| | | let requestUrl = this.currentRowId === 0 ? addReorderRule : updateReorderRule |
| | | let params = this.saveParams() |
| | | requestUrl(params) |
| | | if(params.productId===0){ |
| | | this.$message.warning("请填写产品信息!") |
| | | }else{ |
| | | requestUrl(params) |
| | | .then((res) => { |
| | | console.log(res) |
| | | if (res.code === 200) { |
| | |
| | | console.log(err) |
| | | this.getData() |
| | | }) |
| | | } |
| | | // } |
| | | } |
| | | }, |