ZaiZai před 1 rokem
rodič
revize
c1682f5160
1 změnil soubory, kde provedl 7 přidání a 7 odebrání
  1. 7 7
      src/views/project/modules/project-list.vue

+ 7 - 7
src/views/project/modules/project-list.vue

@@ -188,14 +188,14 @@
                                     <el-table-column prop="workProgress" label="工作计划进展情况" align="center">
                                         <template #default="{ row }">
                                             <hc-body>
-                                                <hc-table-input v-model="row.workProgress" type="textarea" resize="none" :disabled="yearData.list[yearIndex].isCanFill === 1 ? false : true" />
+                                                <hc-table-input v-model="row.workProgress" type="textarea" resize="none" :disabled="(yearData.list[yearIndex].isCanFill === 1 ? false : true) || !row.workPlan" />
                                             </hc-body>
                                         </template>
                                     </el-table-column>
                                     <el-table-column prop="workProgressAll" label="累计进展情况" align="center">
                                         <template #default="{ row }">
                                             <hc-body>
-                                                <hc-table-input v-model="row.workProgressAll" type="textarea" resize="none" :disabled="yearData.list[yearIndex].isCanFill === 1 ? false : true" />
+                                                <hc-table-input v-model="row.workProgressAll" type="textarea" resize="none" :disabled="(yearData.list[yearIndex].isCanFill === 1 ? false : true) || !row.workPlan" />
                                             </hc-body>
                                         </template>
                                     </el-table-column>
@@ -203,7 +203,7 @@
                                         <template #default="{ row, $index }">
                                             <hc-body>
                                                 <!-- <hc-table-input v-model="row.planRatio" :disabled="yearData.list[yearIndex].isCanFill === 1 ? false : true" /> -->
-                                                <el-input v-model="row.planRatio" :disabled="yearData.list[yearIndex].isCanFill === 1 ? false : true" :formatter="formatInput" @change="changePlanRatio($enent, row, $index)" />
+                                                <el-input v-model="row.planRatio" :disabled="(yearData.list[yearIndex].isCanFill === 1 ? false : true) || !row.workPlan" :formatter="formatInput" @change="changePlanRatio($enent, row, $index)" />
                                             </hc-body>
                                         </template>
                                     </el-table-column>
@@ -212,21 +212,21 @@
                                     <tr>
                                         <hc-info-table-td is-title width="30px" center>存在问题</hc-info-table-td>
                                         <hc-info-table-td center>
-                                            <el-input v-model="yearData.list[yearIndex].questionable" type="textarea" resize="none" />
+                                            <el-input v-model="yearData.list[yearIndex].questionable" type="textarea" resize="none" :disabled="yearData.list[yearIndex].isCanFill === 1 ? false : true" />
                                         </hc-info-table-td>
                                         <hc-info-table-td is-title width="30px" center>工作建议</hc-info-table-td>
                                         <hc-info-table-td center>
-                                            <el-input v-model=" yearData.list[yearIndex].workAdvise" type="textarea" resize="none" />
+                                            <el-input v-model=" yearData.list[yearIndex].workAdvise" type="textarea" resize="none" :disabled="yearData.list[yearIndex].isCanFill === 1 ? false : true" />
                                         </hc-info-table-td>
                                     </tr>
                                     <tr>
                                         <hc-info-table-td is-title width="30px" center>填报单位</hc-info-table-td>
                                         <hc-info-table-td center>
-                                            <el-input v-model="yearData.list[yearIndex].writeUnit " />
+                                            <el-input v-model="yearData.list[yearIndex].writeUnit " :disabled="yearData.list[yearIndex].isCanFill === 1 ? false : true" />
                                         </hc-info-table-td>
                                         <hc-info-table-td is-title width="30px" center>联系人</hc-info-table-td>
                                         <hc-info-table-td center>
-                                            <el-input v-model="yearData.list[yearIndex].linkman" />
+                                            <el-input v-model="yearData.list[yearIndex].linkman" :disabled="yearData.list[yearIndex].isCanFill === 1 ? false : true" />
                                         </hc-info-table-td>
                                     </tr>
                                 </hc-info-table>