| | |
| | | return this |
| | | }, |
| | | getfeedBackStatusList() { |
| | | this.$HTTP.get("/api/blade-cps/global_wcs/wcs-achievements").then(res=> { |
| | | this.$HTTP.get("/api/smis/global_wcs/wcs-achievements").then(res=> { |
| | | if(res.code == 200) { |
| | | res.data.forEach(item=> { |
| | | if(item.type == "4") { |
| | |
| | | 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); |
| | |
| | | //表单注入数据 |
| | | setData(lastLevelId){ |
| | | this.getfeedBackStatusList(); //获取状态list |
| | | this.$HTTP.get(`/api/blade-cps/workstation-wcs-feedback/latest?workstationId=${lastLevelId}`).then(res=> { |
| | | this.$HTTP.get(`/api/mdc/workstation-wcs-feedback/latest?workstationId=${lastLevelId}`).then(res=> { |
| | | if(res.code == 200) { |
| | | console.log(res.data); |
| | | if(res.data == null) { |
| | | this.isShow = false; |
| | | }else { |