| src/api/projectPlan/index.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/projectManage/plan/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/projectManage/plan/planInfo.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/projectManage/plan/planInfoCheck.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/projectManage/plan/planRecord.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/projectManage/progress/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/projectManage/progress/progressRecord.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/api/projectPlan/index.js
@@ -85,10 +85,19 @@ }) } // 回复上级批复 export function replyDepartmentApproval(data) { // 保存审批 export function saveExamine(data) { return request({ url: '/api/project-plan-examine-record/replyDepartmentApproval', url: '/api/project-plan-examine-record/saveExamine', method: 'post', data: data }) } // 回复审批 export function replyExamine(data) { return request({ url: '/api/project-plan-examine-record/replyExamine', method: 'post', data: data }) src/views/projectManage/plan/index.vue
@@ -189,12 +189,14 @@ </template> <script> import { getList, getRecord, delRecord, addRecord, updateRecord } from "@/api/projectPlan/index"; import {getList, getManagerFlag} from "@/api/projectPlan/index"; export default { name: "index", name: "Index", data() { return { // 主管标识 managerFlag: undefined, // 遮罩层 loading: true, // 选中数组 @@ -280,46 +282,6 @@ this.open = true; this.title = "添加项目计划记录"; }, /** 修改按钮操作 */ handleUpdate(row) { this.reset(); const id = row.id || this.ids getRecord(id).then(response => { this.form = response.data; this.open = true; this.title = "修改项目计划记录"; }); }, /** 提交按钮 */ submitForm() { this.$refs["form"].validate(valid => { if (valid) { if (this.form.id != null) { updateRecord(this.form).then(response => { this.$modal.msgSuccess("修改成功"); this.open = false; this.getList(); }); } else { addRecord(this.form).then(response => { this.$modal.msgSuccess("新增成功"); this.open = false; this.getList(); }); } } }); }, /** 删除按钮操作 */ handleDelete(row) { const ids = row.id || this.ids; this.$modal.confirm('是否确认删除项目计划记录编号为"' + ids + '"的数据项?').then(function() { return delRecord(ids); }).then(() => { this.getList(); this.$modal.msgSuccess("删除成功"); }).catch(() => {}); }, /** 导出按钮操作 */ handleExport() { this.download('plan/record/export', { @@ -328,12 +290,18 @@ }, /** 查看项目计划记录 */ handlePlanRecord(row) { this.$router.push({ path: '/projectManage/planRecord', query: { data: row } // 获得主管标志 getManagerFlag(row.id).then(res => { this.managerFlag = res.data; row.managerFlag = this.managerFlag; this.$router.push({ path: '/projectManage/planRecord', query: { data: row } }) }) } } }; src/views/projectManage/plan/planInfo.vue
@@ -1,8 +1,8 @@ <template> <div class="app-container"> <el-container> <el-header v-show="projectInfoData && projectInfoData.projectName" class="header-title">项目名称:{{ projectInfoData.projectName }} {{ projectInfoData.planTimeFlag === 0 ? '(月度计划)' : projectInfoData.planTimeFlag === 1 ? '(季度计划)' : '(年度计划)' }}</el-header> <h4 v-show="projectInfoData && projectInfoData.projectCode" style="text-align: center">项目代码:{{ projectInfoData.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"> @@ -30,9 +30,9 @@ <el-date-picker v-model="scope.row.endTime" type="date" placeholder="选择日期" size="small" style="width: 130px" /> </template> </el-table-column> <el-table-column :label="projectInfoData.planTimeFlag === 0 ? '月度' : projectInfoData.planTimeFlag === 1 ? '季度' : '年度' " width="100" align="center"> <el-table-column :label="planInfoData.planTimeFlag === 0 ? '月度' : planInfoData.planTimeFlag === 1 ? '季度' : '年度' " width="100" align="center"> <template #default="scope"> <span>{{ projectInfoData.planTime }}{{ projectInfoData.planTimeFlag === 0 ? '月度' : projectInfoData.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"> @@ -72,7 +72,7 @@ import { getPlanInfoData, addPlanInfo, savePlanInfo } from "@/api/projectPlan/index"; export default { name: "planInfo", name: "PlanInfo", data() { return { loading: true, src/views/projectManage/plan/planInfoCheck.vue
@@ -1,8 +1,8 @@ <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"> @@ -20,27 +20,29 @@ <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;"> @@ -68,32 +70,55 @@ </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> @@ -135,15 +160,15 @@ </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: [ @@ -171,14 +196,14 @@ 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(); }, @@ -206,14 +231,19 @@ 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 => { src/views/projectManage/plan/planRecord.vue
@@ -9,7 +9,7 @@ <el-col :span="24" class="mb-4"> <div style="margin-bottom: 10px"> <span style="font-size: 20px; font-weight: bold;">月度计划</span> <el-button type="primary" size="small" style="float: right" @click="handleAddMonthPlan">新增</el-button> <el-button type="primary" size="small" style="float: right" @click="handleAddMonthPlan" v-show="!projectInfoData.managerFlag">新增</el-button> </div> <el-table :data="monthRecords" border stripe style="width: 100%; margin-bottom: 20px"> <!-- 表头 --> @@ -26,9 +26,14 @@ <el-table-column prop="createTime" label="创建时间" align="center" /> <el-table-column fixed="right" label="操作" align="center"> <template slot-scope="scope"> <el-button type="primary" size="small" :disabled="scope.row.reportStatus === 0" @click="handlePlanInfo(scope.row)">编辑上报</el-button> <el-button type="danger" size="small" v-show="scope.row.reportStatus === 1" @click="handleDeletePlanRecord(scope.row.id)">删除</el-button> <el-button type="danger" size="small" v-show="scope.row.reportStatus === 0" @click="handleCheckPlanInfo(scope.row)">查看</el-button> <div v-show="!projectInfoData.managerFlag"> <el-button type="primary" size="small" :disabled="scope.row.reportStatus === 0" @click="handlePlanInfo(scope.row)">编辑上报</el-button> <el-button type="danger" size="small" v-show="scope.row.reportStatus === 1" @click="handleDeletePlanRecord(scope.row.id)">删除</el-button> <el-button type="danger" size="small" v-show="scope.row.reportStatus === 0" @click="handleCheckPlanInfo(scope.row)">查看</el-button> </div> <div v-show="projectInfoData.managerFlag"> <el-button type="primary" size="small" v-show="scope.row.reportStatus === 0" @click="handleCheckPlanInfo(scope.row)">查看</el-button> </div> </template> </el-table-column> </el-table> @@ -36,7 +41,7 @@ <el-col :span="24" class="mb-4" style="margin-top: 20px"> <div style="margin-bottom: 10px"> <span style="font-size: 20px; font-weight: bold;">季度计划</span> <el-button type="primary" size="small" style="float: right" @click="handleAddSeasonPlan">新增</el-button> <el-button type="primary" size="small" style="float: right" @click="handleAddSeasonPlan" v-show="!projectInfoData.managerFlag">查看</el-button> </div> <el-table :data="seasonRecords" border stripe style="width: 100%; margin-bottom: 20px"> <!-- 表头 --> @@ -53,9 +58,14 @@ <el-table-column prop="createTime" label="创建时间" align="center" /> <el-table-column fixed="right" label="操作" align="center"> <template slot-scope="scope"> <el-button type="primary" size="small" :disabled="scope.row.reportStatus === 0" @click="handlePlanInfo(scope.row)">编辑上报</el-button> <el-button type="danger" size="small" v-show="scope.row.reportStatus === 1" @click="handleDeletePlanRecord(scope.row.id)">删除</el-button> <el-button type="danger" size="small" v-show="scope.row.reportStatus === 0" @click="handleCheckPlanInfo(scope.row)">查看</el-button> <div v-show="!projectInfoData.managerFlag"> <el-button type="primary" size="small" :disabled="scope.row.reportStatus === 0" @click="handlePlanInfo(scope.row)">编辑上报</el-button> <el-button type="danger" size="small" v-show="scope.row.reportStatus === 1" @click="handleDeletePlanRecord(scope.row.id)">删除</el-button> <el-button type="danger" size="small" v-show="scope.row.reportStatus === 0" @click="handleCheckPlanInfo(scope.row)">查看</el-button> </div> <div v-show="projectInfoData.managerFlag"> <el-button type="primary" size="small" v-show="scope.row.reportStatus === 0" @click="handleCheckPlanInfo(scope.row)">查看</el-button> </div> </template> </el-table-column> </el-table> @@ -63,7 +73,7 @@ <el-col :span="24" class="mb-4" style="margin-top: 20px"> <div style="margin-bottom: 10px"> <span style="font-size: 20px; font-weight: bold;">年度计划</span> <el-button type="primary" size="small" style="float: right" @click="handleAddYearPlan">新增</el-button> <el-button type="primary" size="small" style="float: right" @click="handleAddYearPlan" v-show="!projectInfoData.managerFlag">新增</el-button> </div> <el-table :data="yearRecords" border stripe style="width: 100%; margin-bottom: 20px"> <!-- 表头 --> @@ -80,9 +90,14 @@ <el-table-column prop="createTime" label="创建时间" align="center" /> <el-table-column fixed="right" label="操作" align="center"> <template slot-scope="scope"> <el-button type="primary" size="small" :disabled="scope.row.reportStatus === 0" @click="handlePlanInfo(scope.row)">编辑上报</el-button> <el-button type="danger" size="small" v-show="scope.row.reportStatus === 1" @click="handleDeletePlanRecord(scope.row.id)">删除</el-button> <el-button type="danger" size="small" v-show="scope.row.reportStatus === 0" @click="handleCheckPlanInfo(scope.row)">查看</el-button> <div v-show="!projectInfoData.managerFlag"> <el-button type="primary" size="small" :disabled="scope.row.reportStatus === 0" @click="handlePlanInfo(scope.row)">编辑上报</el-button> <el-button type="danger" size="small" v-show="scope.row.reportStatus === 1" @click="handleDeletePlanRecord(scope.row.id)">删除</el-button> <el-button type="danger" size="small" v-show="scope.row.reportStatus === 0" @click="handleCheckPlanInfo(scope.row)">查看</el-button> </div> <div v-show="projectInfoData.managerFlag"> <el-button type="primary" size="small" v-show="scope.row.reportStatus === 0" @click="handleCheckPlanInfo(scope.row)">查看</el-button> </div> </template> </el-table-column> </el-table> @@ -98,7 +113,7 @@ import {addRecord, getPlanRecordList, deletePlanRecord} from "@/api/projectPlan/index"; export default { name: "planRecord", name: "PlanRecord", data() { return { // 接收传递过来的项目计划数据 @@ -115,12 +130,13 @@ // 页面加载 search() { this.getPlanRecordData(this.projectInfoData.id); console.log(this.projectInfoData); }, // 获取传递过来的项目计划详情 getProjectInfoData() { // 从查询参数中获取数据 this.projectInfoData = this.$route.query.data this.getPlanRecordData(this.projectInfoData.id); this.search(); }, // 获取项目计划记录数据 getPlanRecordData(id) { src/views/projectManage/progress/index.vue
@@ -192,7 +192,7 @@ import { getList, getRecord, delRecord, addRecord, updateRecord } from "@/api/projectPlan/index"; export default { name: "index", name: "Index", data() { return { // 遮罩层 src/views/projectManage/progress/progressRecord.vue
@@ -180,7 +180,7 @@ import progressRecord from "./progressRecord.vue"; export default { name: "progressRecord", name: "ProgressRecord", computed: { progressRecord() { return progressRecord