|
@@ -6,24 +6,12 @@
|
|
|
<template #search>
|
|
|
<div class="hc-program-project-form-radio-group">
|
|
|
<el-radio-group v-model="radioType" size="large">
|
|
|
- <el-radio-button label="1">
|
|
|
- 市场部
|
|
|
- </el-radio-button>
|
|
|
- <el-radio-button label="2">
|
|
|
- 研发部
|
|
|
- </el-radio-button>
|
|
|
- <el-radio-button label="3">
|
|
|
- 实施部
|
|
|
- </el-radio-button>
|
|
|
- <el-radio-button label="4">
|
|
|
- 维护部
|
|
|
- </el-radio-button>
|
|
|
- <el-radio-button label="5">
|
|
|
- 管理支出
|
|
|
- </el-radio-button>
|
|
|
- <el-radio-button label="6">
|
|
|
- 外包劳务
|
|
|
- </el-radio-button>
|
|
|
+ <el-radio-button label="1">市场部</el-radio-button>
|
|
|
+ <el-radio-button label="2">研发部</el-radio-button>
|
|
|
+ <el-radio-button label="3">实施部</el-radio-button>
|
|
|
+ <el-radio-button label="4">维护部</el-radio-button>
|
|
|
+ <el-radio-button label="5">管理支出</el-radio-button>
|
|
|
+ <el-radio-button label="6">外包劳务</el-radio-button>
|
|
|
</el-radio-group>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -248,18 +236,15 @@
|
|
|
</template>
|
|
|
|
|
|
<template #action="{ row }">
|
|
|
- <!--el-button v-if="row.isEdit" size="small" type="success" @click="updateMainPlanClick(row)">
|
|
|
+ <!-- el-button v-if="row.isEdit" size="small" type="success" @click="updateMainPlanClick(row)">
|
|
|
保存
|
|
|
- </el-button-->
|
|
|
- <!--el-button v-else size="small" type="primary" :disabled="row?.isShowEdit === 0 || row.parentId !== 0" @click="row.isEdit = true">
|
|
|
+ </el-button -->
|
|
|
+ <!-- el-button v-else size="small" type="primary" :disabled="row?.isShowEdit === 0 || row.parentId !== 0" @click="row.isEdit = true">
|
|
|
编辑
|
|
|
- </el-button-->
|
|
|
- <el-button size="small" type="warning" :disabled="row.parentId !== 0" @click="relatedModalShow(row)">
|
|
|
- 关联回款
|
|
|
- </el-button>
|
|
|
- <el-button size="small" type="danger" :disabled="row?.isShowChildren == 0 || row.parentId !== 0" @click="subplanModalShow(row)">
|
|
|
- 分解子计划
|
|
|
- </el-button>
|
|
|
+ </el-button -->
|
|
|
+ <el-button size="small" type="warning" :disabled="row.parentId !== 0" @click="relatedModalShow(row)">关联回款</el-button>
|
|
|
+ <!-- :disabled="row?.isShowChildren == 0 || row.parentId !== 0" -->
|
|
|
+ <el-button size="small" type="danger" @click="subplanModalShow(row)">分解子计划</el-button>
|
|
|
</template>
|
|
|
</HcTable>
|
|
|
<template #action>
|
|
@@ -267,25 +252,21 @@
|
|
|
<HcIcon name="arrow-go-back" />
|
|
|
<span>返回</span>
|
|
|
</el-button>
|
|
|
- <!--el-button size="large" type="primary" hc-btn :loading="saveLoaing" @click="saveClick">
|
|
|
+ <!-- el-button size="large" type="primary" hc-btn :loading="saveLoaing" @click="saveClick">
|
|
|
<HcIcon name="check-double" />
|
|
|
<span>提交保存</span>
|
|
|
- </el-button-->
|
|
|
+ </el-button -->
|
|
|
</template>
|
|
|
|
|
|
<!-- 分解子计划 -->
|
|
|
<HcDialog
|
|
|
- bg-color="#ffffff" is-to-body is-table is-row-footer
|
|
|
- title="分解子计划" widths="80%"
|
|
|
- save-text="保存"
|
|
|
- :show="subplanModal"
|
|
|
- @close="subplanCloseClick"
|
|
|
- @save="updateChildPlanClick"
|
|
|
+ v-model="subplanModal" is-table is-row-footer title="分解子计划" widths="80%"
|
|
|
+ save-text="保存" @close="subplanCloseClick" @save="updateChildPlanClick"
|
|
|
>
|
|
|
<template #extra>
|
|
|
<el-button size="small" type="primary" @click="addplan">
|
|
|
<HcIcon name="add" />
|
|
|
- 新增
|
|
|
+ <span>新增</span>
|
|
|
</el-button>
|
|
|
</template>
|
|
|
<HcTable :is-index="false" :column="tableSubplanColumn" :datas="tableSubplanData">
|
|
@@ -312,28 +293,24 @@
|
|
|
<template #action="{ row, index }">
|
|
|
<el-button size="small" type="danger" :disabled="row?.isShowDelete === 0" @click="delSubplan(row, index)">
|
|
|
<HcIcon name="delete-bin" />
|
|
|
- 删除
|
|
|
+ <span>删除</span>
|
|
|
</el-button>
|
|
|
</template>
|
|
|
</HcTable>
|
|
|
<template #footer>
|
|
|
<el-button type="primary" size="large" :loading="updateChildPlanLoading" @click="updateChildPlanClick">
|
|
|
<HcIcon name="save" />
|
|
|
- 保存
|
|
|
+ <span>保存</span>
|
|
|
</el-button>
|
|
|
</template>
|
|
|
</HcDialog>
|
|
|
|
|
|
<!-- 关联回款里程碑 -->
|
|
|
- <HcDialog bg-color="#ffffff" is-to-body is-table :footer="false" :show="relatedModal" title="关联回款里程碑" widths="70%" @close="relatedCloseClick">
|
|
|
+ <HcDialog v-model="relatedModal" is-table :footer="false" title="关联回款里程碑" widths="70%" @close="relatedCloseClick">
|
|
|
<HcTable :column="tableRelatedColumn" :datas="tableRelatedData">
|
|
|
<template #action="{ row }">
|
|
|
- <el-button v-if="row.isRelation == 1" size="small" type="success" @click="relation(row, 0)">
|
|
|
- 取消关联
|
|
|
- </el-button>
|
|
|
- <el-button v-else size="small" type="primary" @click="relation(row, 1)">
|
|
|
- 关联
|
|
|
- </el-button>
|
|
|
+ <el-button v-if="row.isRelation == 1" size="small" type="success" @click="relation(row, 0)">取消关联</el-button>
|
|
|
+ <el-button v-else size="small" type="primary" @click="relation(row, 1)">关联</el-button>
|
|
|
</template>
|
|
|
</HcTable>
|
|
|
</HcDialog>
|
|
@@ -488,7 +465,7 @@ const tableColumn = [
|
|
|
{ key: 'budgetCountMoney', name: '总预算金额', width: '160', align: 'center' },
|
|
|
{ key: 'budgetRemark', name: '测算备注', width: '160', align: 'center' },
|
|
|
{ key: 'returnedValue', name: '关联回款里程碑', minWidth: '200', isTooltip: true },
|
|
|
- { key: 'action', name: '操作', width: '200', align: 'center', fixed: 'right' },
|
|
|
+ { key: 'action', name: '操作', width: '220', align: 'center', fixed: 'right' },
|
|
|
]
|
|
|
const tableData = ref([])
|
|
|
const tableLoading = ref(false)
|