| | |
| | | this.$refs.dialogForm.validate(async (valid) => { |
| | | if (valid) { |
| | | this.isSaveing = true; |
| | | this.$HTTP.post("/api/blade-cps/workstation-wcs-feedback/overwrite-feedback-check",obj).then(res=> { |
| | | this.$HTTP.post("/api/mdc/workstation-wcs-feedback/overwrite-feedback-check",obj).then(res=> { |
| | | that.isSaveing = false; |
| | | if(res.code == 200) { |
| | | if(res.data) { |
| | | that.$confirm(`反馈的时间与已有反馈重叠,是否覆盖`, '', { |
| | | type: 'warning' |
| | | }).then(() => { |
| | | that.$HTTP.post("/api/blade-cps/workstation-wcs-feedback/start-feedback-by-no-immediate",obj).then(res=> { |
| | | that.$HTTP.post("/api/mdc/workstation-wcs-feedback/start-feedback-by-no-immediate",obj).then(res=> { |
| | | if(res.code == 200) { |
| | | that.$message.success("操作成功"); |
| | | that.$emit('success', this.addDictForm, this.mode); |
| | |
| | | }) |
| | | }).catch(() => {}) |
| | | }else { |
| | | that.$HTTP.post("/api/blade-cps/workstation-wcs-feedback/start-feedback-by-no-immediate",obj).then(res=> { |
| | | that.$HTTP.post("/api/mdc/workstation-wcs-feedback/start-feedback-by-no-immediate",obj).then(res=> { |
| | | if(res.code == 200) { |
| | | that.$message.success("操作成功"); |
| | | that.$emit('success', this.addDictForm, this.mode); |