Lijy 1 år sedan
förälder
incheckning
488538c45b
1 ändrade filer med 25 tillägg och 15 borttagningar
  1. 25 15
      fhKeeper/formulahousekeeper/timesheet/src/views/project/projectInside.vue

+ 25 - 15
fhKeeper/formulahousekeeper/timesheet/src/views/project/projectInside.vue

@@ -3298,23 +3298,33 @@
             },
             setManDayData() {
                 this.http.post('/task-group/saveManDay',{data:JSON.stringify(this.groupList)},
-                        res => {
-                            if (res.code == "ok") {
-                                this.modGroupManDayDialog = false;
-                                this.groupList = res.data;
-                            } else {
-                                this.$message({
-                                message: res.msg,
-                                type: "error"
-                                });
-                            }
-                        },
-                        error => {
-                            this.$message({
-                                message: error,
-                                type: "error"
+                res => {
+                    if (res.code == "ok") {
+                        this.modGroupManDayDialog = false;
+                        const { companyId } = JSON.parse(sessionStorage.getItem("user"))
+                        console.log(companyId)
+                        if(companyId == '3092') {
+                            res.data.forEach(item => {
+                                item.disabled = Boolean(item.manDay);
                             });
+                            this.groupList = res.data;
+                        } else {
+                            this.groupList = res.data;
+                        }
+                        console.log(this.groupList, '返回的值')
+                    } else {
+                        this.$message({
+                        message: res.msg,
+                        type: "error"
                         });
+                    }
+                },
+                error => {
+                    this.$message({
+                        message: error,
+                        type: "error"
+                    });
+                });
             },
             // 重新定义了 addGroup 方法
              addGroup(formName) {