| | |
| | | }) |
| | | }, |
| | | geteditStock(val) { |
| | | console.log(val); |
| | | this.currentdetail = val |
| | | this.Lockvisibledialog = true |
| | | this.fields.forEach((v) => this.addUserform.getFieldDecorator(v)) |
| | | console.log(this.fields); |
| | | this.addUserform.setFieldsValue(pick(val, this.fields)) |
| | | }, |
| | | getLockopen(val) { |
| | |
| | | console.log(values); |
| | | if (!errors) { |
| | | if (this.currentdetail != '') { |
| | | this.Lockvisibledialog = true |
| | | this.Lockvisibleloading = true |
| | | values.id = this.currentdetail.id |
| | | |
| | | // values.subscriptionTime = this.subscriptionTime |
| | |
| | | } else { |
| | | this.$message.error(res.msg) |
| | | } |
| | | this.Lockvisibledialog = false |
| | | this.Lockvisibleloading = false |
| | | }) |
| | | } else { |
| | | this.addUserDialogloading = true |
| | | this.Lockvisibleloading = true |
| | | sitevipAdd(values).then((res) => { |
| | | if (res.status == 0) { |
| | | this.Lockvisibledialog = false |
| | |
| | | } else { |
| | | this.$message.error(res.msg) |
| | | } |
| | | this.addUserDialogloading = false |
| | | this.Lockvisibleloading = false |
| | | }) |
| | | } |
| | | } |
| | |
| | | form.validateFields((errors, values) => { |
| | | if (!errors) { |
| | | values.id = this.details.id |
| | | this.keyvisibleloading = true |
| | | setupdate(values).then((res) => { |
| | | if (res.status == 0) { |
| | | this.visibledialog = false |
| | |
| | | } else { |
| | | this.$message.error(res.msg) |
| | | } |
| | | this.visibledialog = false |
| | | this.keyvisibleloading = false |
| | | }) |
| | | } |
| | | }) |