File was renamed from src/views/projectPlan/planInfoCheck.vue |
| | |
| | | </el-table-column> |
| | | <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" disabled/> |
| | | <el-date-picker v-model="scope.row.startTime" type="date" placeholder="选择日期" size="small" style="width: 130px"/> |
| | | </template> |
| | | </el-table-column> |
| | | <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" disabled/> |
| | | <el-date-picker v-model="scope.row.endTime" type="date" placeholder="选择日期" size="small" style="width: 130px"/> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column :label="planRecordData.planTimeFlag === 0 ? '月度' : planRecordData.planTimeFlag === 1 ? '季度' : '年度' " width="100" align="center"> |
| | |
| | | <div style="margin-bottom: 10px; margin-top: 40px;"> |
| | | <span style="font-size: 20px; font-weight: bold;">上级批复</span> |
| | | </div> |
| | | <el-table :data="tableData" border stripe style="width: 100%; margin-bottom: 20px"> |
| | | <el-table :data="departmentApprovalData" border stripe style="width: 100%; margin-bottom: 20px"> |
| | | <el-table-column prop="index" label="序号" width="50" align="center"> |
| | | <template #default="scope"> |
| | | {{ scope.$index + 1 }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="taskName" label="事项名称" width="200" align="center" /> |
| | | <el-table-column prop="startTime" label="上级审核" width="100" align="center" /> |
| | | <el-table-column prop="startTime" label="批复内容" width="160" align="center" /> |
| | | <el-table-column prop="endTime" label="批复回复" width="160" align="center"> |
| | | <el-table-column prop="title" label="事项名称" width="200" align="center" /> |
| | | <el-table-column prop="departmentExamine" label="上级审核" width="100" align="center"> |
| | | <template #default="scope"> |
| | | <el-input type="textarea" v-model="scope.row.title" placeholder="请输入" rows="3" /> |
| | | {{ scope.row.departmentExamine === 0 ? '同意' : scope.row.departmentExamine === 1 ? '驳回' : '未审核' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="startTime" label="主管部门审核" width="100" align="center" /> |
| | | <el-table-column prop="startTime" label="批复内容" width="160" align="center" /> |
| | | <el-table-column prop="endTime" label="批复回复" width="160" align="center"> |
| | | <el-table-column prop="departmentApproval" label="批复内容" width="160" align="center" /> |
| | | <el-table-column prop="departmentApprovalReply" label="批复回复" width="160" align="center"> |
| | | <template #default="scope"> |
| | | <el-input type="textarea" v-model="scope.row.title" placeholder="请输入" rows="3" /> |
| | | <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"> |
| | | {{ scope.row.manageExamine === 0 ? '同意' : scope.row.manageExamine === 1 ? '驳回' : '未审核' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="manageApproval" label="批复内容" width="160" align="center" /> |
| | | <el-table-column prop="manageApprovalReply" label="批复回复" width="160" align="center"> |
| | | <template #default="scope"> |
| | | <el-input type="textarea" v-model="scope.row.departmentApprovalReply" placeholder="请输入" rows="3" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" label="操作" align="center"> |
| | |
| | | <div style="margin-bottom: 10px; margin-top: 40px;"> |
| | | <span style="font-size: 20px; font-weight: bold;">计划日志</span> |
| | | </div> |
| | | <el-table :data="tableData" border stripe style="width: 100%; margin-bottom: 20px"> |
| | | <el-table :data="planLogData" border stripe style="width: 100%; margin-bottom: 20px"> |
| | | <el-table-column prop="index" label="序号" width="50" align="center"> |
| | | <template #default="scope"> |
| | | {{ scope.$index + 1 }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="taskName" label="事项名称" width="200" align="center" /> |
| | | <el-table-column prop="startTime" label="上级审核" width="100" align="center" /> |
| | | <el-table-column prop="startTime" label="批复内容" width="160" align="center" /> |
| | | <el-table-column prop="endTime" label="批复回复" width="160" align="center" /> |
| | | <el-table-column prop="startTime" label="主管部门审核" width="100" align="center" /> |
| | | <el-table-column prop="startTime" label="批复内容" width="160" align="center" /> |
| | | <el-table-column prop="endTime" label="批复回复" width="160" align="center" /> |
| | | <el-table-column fixed="right" label="时间" align="center" /> |
| | | <el-table-column prop="title" label="事项名称" width="200" align="center" /> |
| | | <el-table-column prop="departmentExamine" label="上级审核" width="100" align="center" > |
| | | <template #default="scope"> |
| | | {{ scope.row.departmentExamine === 0 ? '同意' : scope.row.departmentExamine === 1 ? '驳回' : '未审核' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="departmentApproval" label="批复内容" width="160" align="center" /> |
| | | <el-table-column prop="departmentApprovalReply" label="批复回复" width="160" align="center" /> |
| | | <el-table-column prop="manageExamine" label="主管部门审核" width="100" align="center" > |
| | | <template #default="scope"> |
| | | {{ scope.row.manageExamine === 0 ? '同意' : scope.row.manageExamine === 1 ? '驳回' : '未审核' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="manageApproval" label="批复内容" width="160" align="center" /> |
| | | <el-table-column prop="manageApprovalReply" label="批复回复" width="160" align="center" /> |
| | | <el-table-column prop="gmtCreate" label="时间" align="center" /> |
| | | </el-table> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getPlanInfoData, addPlanInfo, savePlanInfo } from "@/api/projectPlan/index"; |
| | | import { getPlanInfoData, delayPlanInfo, getDepartmentApproval, getPlanLog } from "@/api/projectPlan/index"; |
| | | |
| | | export default { |
| | | name: "planInfoCheck", |
| | |
| | | // 接收传递过来的项目计划数据 |
| | | planRecordData: {}, |
| | | planInfoData: {}, |
| | | // 计划项数据 |
| | | tableData: [ |
| | | { |
| | | title: '', |
| | |
| | | endTime: '' |
| | | }, |
| | | ], |
| | | // 上级批复数据 |
| | | departmentApprovalData: [], |
| | | // 计划日志数据 |
| | | planLogData: [], |
| | | // 投资金额 |
| | | actualInvest: '', |
| | | // 新增参数 |
| | |
| | | search() { |
| | | this.getPlanInfoData(this.planRecordData.id); // 获取项目计划项 |
| | | this.getDepartmentApproval(this.planRecordData.id); // 获取上级批复 |
| | | //this.getPlanLog(); // 获取计划日志 |
| | | this.getPlanLog(this.planRecordData.id); // 获取计划日志 |
| | | }, |
| | | // 获取传递过来的项目计划详情 |
| | | getPlanRecordData() { |
| | |
| | | } |
| | | }); |
| | | }, |
| | | // 延期 |
| | | handleDelay(index) { |
| | | delayPlanInfo(this.tableData[index]).then(response => { |
| | | this.$message.success('延期成功'); |
| | | this.search() |
| | | }); |
| | | }, |
| | | // 获取上级批复 |
| | | getDepartmentApproval(projectPlanRecordId) { |
| | | getExamineRecord(projectPlanRecordId).then(response => { |
| | | console.log(response.data) |
| | | getDepartmentApproval(projectPlanRecordId).then(response => { |
| | | this.departmentApprovalData = response.data; |
| | | }); |
| | | }, |
| | | // 获取计划日志 |
| | | |
| | | getPlanLog(projectPlanRecordId) { |
| | | getPlanLog(projectPlanRecordId).then(response => { |
| | | this.planLogData = response.data; |
| | | }); |
| | | }, |
| | | // 重置当前行数据 |
| | | handleReset(index) { |
| | | this.tableData[index].title = ''; |
| | |
| | | /** 返回项目计划记录页面 */ |
| | | handlePlanRecord(planInfoData) { |
| | | this.$router.push({ |
| | | path: '/projectPlan/planRecord', |
| | | name: '/projectManage/planRecord', |
| | | query: { |
| | | data: JSON.stringify(planInfoData) |
| | | } |