| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-container> |
| | | <el-header v-show="planRecordData && planRecordData.projectName" class="header-title">项目名称:{{ planRecordData.projectName }} {{ planRecordData.planTimeFlag === 0 ? '(月度计划)' : planRecordData.planTimeFlag === 1 ? '(季度计划)' : '(年度计划)' }}</el-header> |
| | | <h4 v-show="planRecordData && planRecordData.projectCode" style="text-align: center">项目代码:{{ planRecordData.projectCode }}</h4> |
| | | <el-header class="header-title">项目名称:{{ planInfoData.projectName }} ({{ planInfoData.planTime}} {{ planInfoData.planTimeFlag === 0 ? '月度计划' : planInfoData.planTimeFlag === 1 ? '季度计划' : '年度计划' }})</el-header> |
| | | <h4 style="text-align: center">项目代码:{{ planInfoData.projectCode }}</h4> |
| | | <el-main> |
| | | <el-card shadow="hover"> |
| | | <el-row :gutter="20"> |
| | |
| | | <el-input type="textarea" v-model="scope.row.title" placeholder="请输入" rows="3" readonly /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="startTime" label="计划开始时间" width="160" align="center"> |
| | | <el-table-column prop="startTime" label="计划开始时间" width="160" align="center" > |
| | | <template #default="scope"> |
| | | <el-date-picker v-model="scope.row.startTime" type="date" placeholder="选择日期" size="small" style="width: 130px"/> |
| | | <el-date-picker v-model="scope.row.startTime" type="date" placeholder="选择日期" size="small" style="width: 130px" :readonly="projectInfoData.managerFlag"/> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="endTime" label="计划完成时间" width="160" align="center"> |
| | | <el-table-column prop="endTime" label="计划完成时间" width="160" align="center" > |
| | | <template #default="scope"> |
| | | <el-date-picker v-model="scope.row.endTime" type="date" placeholder="选择日期" size="small" style="width: 130px"/> |
| | | <el-date-picker v-model="scope.row.endTime" type="date" placeholder="选择日期" size="small" style="width: 130px" :readonly="projectInfoData.managerFlag" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column :label="planRecordData.planTimeFlag === 0 ? '月度' : planRecordData.planTimeFlag === 1 ? '季度' : '年度' " width="100" align="center"> |
| | | <el-table-column :label="planInfoData.planTimeFlag === 0 ? '月度' : planInfoData.planTimeFlag === 1 ? '季度' : '年度' " align="center"> |
| | | <template #default="scope"> |
| | | <span>{{ planRecordData.planTime }}{{ planRecordData.planTimeFlag === 0 ? '月度' : planRecordData.planTimeFlag === 1 ? '季度' : '年度' }}</span> |
| | | <span>{{ planInfoData.planTime }}{{ planInfoData.planTimeFlag === 0 ? '月度' : planInfoData.planTimeFlag === 1 ? '季度' : '年度' }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" label="操作" align="center"> |
| | | <template #default="scope"> |
| | | <el-button size="small" @click="handleDelay(scope.$index)">延期</el-button> |
| | | <el-button size="small" type="danger" @click="handleReset(scope.$index)">重置</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | <div v-if="!projectInfoData.managerFlag"> |
| | | <el-table-column fixed="right" label="操作" align="center"> |
| | | <template #default="scope"> |
| | | <el-button size="small" @click="handleDelay(scope.$index)">延期</el-button> |
| | | <el-button size="small" type="danger" @click="handleReset(scope.$index)">重置</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </div> |
| | | </el-table> |
| | | <div style="display: flex; align-items: center;"> |
| | | <h1 style="margin: 0;"> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="title" label="事项名称" width="200" align="center" /> |
| | | <el-table-column prop="departmentExamine" label="上级审核" width="100" align="center"> |
| | | <template #default="scope"> |
| | | <el-table-column prop="departmentExamine" label="上级审核" width="130" align="center"> |
| | | <template #default="scope" v-if="!projectInfoData.managerFlag"> |
| | | {{ scope.row.departmentExamine === 0 ? '同意' : scope.row.departmentExamine === 1 ? '驳回' : '未审核' }} |
| | | </template> |
| | | <template v-if="projectInfoData.managerFlag" #default="scope"> |
| | | <el-select v-model="scope.row.departmentExamine" placeholder="请选择" size="small" clearable> |
| | | <el-option label="同意" :value="0"></el-option> |
| | | <el-option label="驳回" :value="1"></el-option> |
| | | </el-select> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="departmentApproval" label="批复内容" width="160" align="center" /> |
| | | <el-table-column prop="departmentApproval" label="批复内容" width="160" align="center"> |
| | | <template v-if="projectInfoData.managerFlag" #default="scope"> |
| | | <el-input type="textarea" v-model="scope.row.departmentApproval" placeholder="请输入" rows="3" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="departmentApprovalReply" label="批复回复" width="160" align="center"> |
| | | <template #default="scope"> |
| | | <template #default="scope" v-if="!projectInfoData.managerFlag"> |
| | | <el-input type="textarea" v-model="scope.row.departmentApprovalReply" placeholder="请输入" rows="3" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="manageExamine" label="主管部门审核" width="100" align="center" > |
| | | <template #default="scope"> |
| | | <el-table-column prop="manageExamine" label="主管部门审核" width="130" align="center" > |
| | | <template #default="scope" v-if="!projectInfoData.managerFlag"> |
| | | {{ scope.row.manageExamine === 0 ? '同意' : scope.row.manageExamine === 1 ? '驳回' : '未审核' }} |
| | | </template> |
| | | <template v-if="projectInfoData.managerFlag" #default="scope"> |
| | | <el-select v-model="scope.row.manageExamine" placeholder="请选择" size="small" clearable> |
| | | <el-option label="同意" :value="0"></el-option> |
| | | <el-option label="驳回" :value="1"></el-option> |
| | | </el-select> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="manageApproval" label="批复内容" width="160" align="center" /> |
| | | <el-table-column prop="manageApproval" label="批复内容" width="160" align="center"> |
| | | <template v-if="projectInfoData.managerFlag" #default="scope"> |
| | | <el-input type="textarea" v-model="scope.row.manageApproval" placeholder="请输入" rows="3" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="manageApprovalReply" label="批复回复" width="160" align="center"> |
| | | <template #default="scope"> |
| | | <template #default="scope" v-if="!projectInfoData.managerFlag"> |
| | | <el-input type="textarea" v-model="scope.row.manageApprovalReply" placeholder="请输入" rows="3" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" label="操作" align="center"> |
| | | <template #default="scope"> |
| | | <template #default="scope" v-if="!projectInfoData.managerFlag"> |
| | | <el-button size="small" @click="handleReply(scope.$index)">回复</el-button> |
| | | <el-button size="small" type="danger" @click="handleReset(scope.$index)">重置</el-button> |
| | | </template> |
| | | <template v-if="projectInfoData.managerFlag" #default="scope"> |
| | | <el-button size="small" @click="handleSave(scope.$index)">保存</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getPlanInfoData, delayPlanInfo, getDepartmentApproval, getPlanLog, replyDepartmentApproval } from "@/api/projectPlan/index"; |
| | | import { getPlanInfoData, delayPlanInfo, getDepartmentApproval, getPlanLog, replyExamine, saveExamine } from "@/api/projectPlan/index"; |
| | | |
| | | export default { |
| | | name: "planInfoCheck", |
| | | name: "PlanInfoCheck", |
| | | data() { |
| | | return { |
| | | loading: true, |
| | | // 接收传递过来的项目计划数据 |
| | | planRecordData: {}, |
| | | planInfoData: {}, |
| | | projectInfoData: {}, |
| | | // 计划项数据 |
| | | tableData: [ |
| | |
| | | methods: { |
| | | // 页面加载 |
| | | search() { |
| | | this.getPlanInfoData(this.planRecordData.id); // 获取项目计划项 |
| | | this.getDepartmentApproval(this.planRecordData.id); // 获取上级批复 |
| | | this.getPlanLog(this.planRecordData.id); // 获取计划日志 |
| | | this.getPlanInfoData(this.planInfoData.id); // 获取项目计划项 |
| | | this.getDepartmentApproval(this.planInfoData.id); // 获取上级批复 |
| | | this.getPlanLog(this.planInfoData.id); // 获取计划日志 |
| | | }, |
| | | // 获取传递过来的项目计划详情 |
| | | getPlanRecordData() { |
| | | // 从查询参数中获取数据 |
| | | this.planRecordData = this.$route.query.data |
| | | this.planInfoData = this.$route.query.data |
| | | this.projectInfoData = this.$route.query.projectInfoData |
| | | this.search(); |
| | | }, |
| | |
| | | this.departmentApprovalData = response.data; |
| | | }); |
| | | }, |
| | | // 回复 |
| | | // 回复审批 |
| | | handleReply(index) { |
| | | replyDepartmentApproval(this.departmentApprovalData[index]).then(response => { |
| | | replyExamine(this.departmentApprovalData[index]).then(response => { |
| | | this.$message.success('回复成功'); |
| | | this.search() |
| | | }); |
| | | }, |
| | | |
| | | // 保存审批 |
| | | handleSave(index) { |
| | | saveExamine(this.departmentApprovalData[index]).then(response => { |
| | | this.$message.success('保存成功'); |
| | | }); |
| | | }, |
| | | // 获取计划日志 |
| | | getPlanLog(projectPlanRecordId) { |
| | | getPlanLog(projectPlanRecordId).then(response => { |