| | |
| | | currentState: "todo", // 当前状态 |
| | | unit: "", |
| | | showButton: true, |
| | | isValidateClick: false // 验证是否显示 |
| | | isValidateClick: false, // 验证是否显示 |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | } else if (this.editCommonConfig.title === "编辑") { |
| | | this.$refs[formName].validate((valid) => { |
| | | if (valid) { |
| | | this.editConfig.infomation.productId = this.productId |
| | | this.editConfig.infomation.productName = this.productName |
| | | this.editConfig.infomation.unit = this.unit |
| | | updateScrap({ |
| | | amount: this.editConfig.infomation.amount, //数量 |
| | | baseOperationType: 1, |
| | | let params={ |
| | | amount: this.editConfig.infomation.amount, |
| | | baseOperationType: this.editConfig.infomation.baseOperationType, |
| | | fromLocationId: this.editConfig.infomation.fromLocationId, |
| | | id: this.editConfig.infomation.id, |
| | | number: this.editConfig.infomation.number, |
| | |
| | | sourceNumber: this.editConfig.infomation.sourceNumber, |
| | | status: this.editConfig.infomation.status, |
| | | toLocationId: this.editConfig.infomation.toLocationId |
| | | }).then((res) => { |
| | | } |
| | | updateScrap( |
| | | params |
| | | ).then((res) => { |
| | | console.log(res) |
| | | this.editConfig.visible = false |
| | | if (res.code === 200) { |