Pārlūkot izejas kodu

部门计划预算

duy 2 gadi atpakaļ
vecāks
revīzija
584567de07
1 mainītis faili ar 10 papildinājumiem un 10 dzēšanām
  1. 10 10
      src/views/program/project/form.vue

+ 10 - 10
src/views/program/project/form.vue

@@ -235,11 +235,11 @@
                 <span v-else>{{row.budgetRemark}}</span>
             </template>
             
-            <template #action="{row,index}">
+            <template #action="{row,index}" >
                 <el-button size="small" type="success" v-if="row.isEdit" @click="updateMainPlanClick(row)">保存</el-button>
-                <el-button size="small" type="primary" v-else @click="row.isEdit = true" :disabled="row?.isShowEdit===0">编辑</el-button>
-                <el-button size="small" type="warning" @click="relatedModalShow(row)">关联回款</el-button>
-                <el-button size="small" type="danger" @click="subplanModalShow(row)" :disabled="row?.isShowChildren==0">分解子计划</el-button>
+                <el-button size="small" type="primary" v-else @click="row.isEdit = true" :disabled="row?.isShowEdit===0||row.parentId!==0">编辑</el-button>
+                <el-button size="small" type="warning" @click="relatedModalShow(row)" :disabled="row.parentId!==0">关联回款</el-button>
+                <el-button size="small" type="danger" @click="subplanModalShow(row)" :disabled="row?.isShowChildren==0||row.parentId!==0">分解子计划</el-button>
             </template>
         </HcTable>
         <template #action>
@@ -267,25 +267,25 @@
         </template>
             <HcTable :isIndex="false" :column="tableSubplanColumn" :datas="tableSubplanData">
                 <template #planTaskType="{row,index}">
-                    <el-select v-model="row.planTaskType"  clearable @change="changePlanTaskType">
+                    <el-select v-model="row.planTaskType"  clearable @change="changePlanTaskType" :disabled="row?.isShowDelete===0">
                         <el-option v-for="item in taskTypeList" :label="item.dictName" :value="item.id"/>
                     </el-select>
                 </template>
                 <template #planTaskDesc="{row,index}">
-                    <el-input v-model="row.planTaskDesc" clearable/>
+                    <el-input v-model="row.planTaskDesc" clearable :disabled="row?.isShowDelete===0"/>
                 </template>
                 <template #planTarget="{row,index}">
-                    <el-input v-model="row.planTarget"  clearable/>
+                    <el-input v-model="row.planTarget"  clearable :disabled="row?.isShowDelete===0"/>
                 </template>
                 <template #key7="{row,index}">
-                    <HcDatePicker :dates="[row.planStartTime,row.planEndTime]" @change="subbetweenTimeUpdate($event,row)"   clearable/>
+                    <HcDatePicker :dates="[row.planStartTime,row.planEndTime]" @change="subbetweenTimeUpdate($event,row)"   clearable :disabled="row?.isShowDelete===0"/>
               
                 </template>
                 <template #planDays="{row,index}" >
-                    <el-input v-model="row.planDays" disabled  clearable/>
+                    <el-input v-model="row.planDays" disabled  clearable :disabled="row?.isShowDelete===0"/>
                 </template>
                 <template #key9="{row,index}">
-                    <el-input v-model="row.key9" clearable/>
+                    <el-input v-model="row.key9" clearable :disabled="row?.isShowDelete===0"/>
                 </template>
                 <template #action="{row,index}">
                 <el-button size="small" type="primary" @click="delSubplan(row,index)" :disabled="row?.isShowDelete===0">删除</el-button>