Преглед на файлове

调整依斯倍项目预估工时

Lijy преди 1 година
родител
ревизия
1555d611dd
променени са 1 файла, в които са добавени 11 реда и са изтрити 2 реда
  1. 11 2
      fhKeeper/formulahousekeeper/timesheet/src/views/project/projectInside.vue

+ 11 - 2
fhKeeper/formulahousekeeper/timesheet/src/views/project/projectInside.vue

@@ -1152,7 +1152,8 @@
                 </el-table-column>
                 </el-table-column>
                 <el-table-column prop="manDay" width="200" label="预估工时" >
                 <el-table-column prop="manDay" width="200" label="预估工时" >
                     <template slot-scope="scope">
                     <template slot-scope="scope">
-                        <el-input v-model="scope.row.manDay" type="number"  :placeholder="$t('peaseenterthe')" maxlength="10" :max="99999" style="width:120px;"></el-input>&nbsp;人天&nbsp;<i v-if="user.companyId=3092"  @click="changeBudget(scope.row)"  class="el-icon-circle-plus-outline"></i>
+                        <el-input v-model="scope.row.manDay" type="number" :placeholder="$t('peaseenterthe')" maxlength="10" :max="99999" style="width:120px;" :disabled="scope.row.disabled"></el-input>&nbsp;人天&nbsp;
+                        <i v-if="user.companyId=3092 && scope.row.disabled"  @click="changeBudget(scope.row)"  class="el-icon-circle-plus-outline"></i>
                     </template>
                     </template>
                 </el-table-column>
                 </el-table-column>
             </el-table>
             </el-table>
@@ -3361,8 +3362,16 @@
                 this.http.post('/task-group/list',{projectId: this.curProjectId},
                 this.http.post('/task-group/list',{projectId: this.curProjectId},
                 res => {
                 res => {
                     if (res.code == "ok") {
                     if (res.code == "ok") {
+                        const { companyId } = this.user
                         this.allGroupData = res.data;
                         this.allGroupData = res.data;
-                        this.groupList = res.data;
+                        // 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,'grouplist');
                         console.log(this.groupList,'grouplist');
                         if (this.groupList.length > 0) {
                         if (this.groupList.length > 0) {
                             this.defaultGroupId = this.groupList[0].id;
                             this.defaultGroupId = this.groupList[0].id;