1
lzhe
2024-11-01 e5cdf3af17609b49138cec3e8fb200752365f651
src/views/mdc/add-station-status.vue
@@ -108,7 +108,7 @@
            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") {
@@ -126,14 +126,14 @@
            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);
@@ -142,7 +142,7 @@
                              })
                           }).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);
@@ -162,9 +162,8 @@
         //表单注入数据
         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 {