| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column :label="planInfoData.planTimeFlag === 0 ? '月度' : planInfoData.planTimeFlag === 1 ? '季度' : '年度' " align="center"> |
| | | {{ planInfoData.planTime }}{{ planInfoData.planTimeFlag === 0 ? '月度' : planInfoData.planTimeFlag === 1 ? '季度' : '年度' }} |
| | | </el-table-column> |
| | | <el-table-column prop="planStatus" label="状态" width="100" align="center"> |
| | | <template #default="scope"> |
| | | <span>{{ planInfoData.planTime }}{{ planInfoData.planTimeFlag === 0 ? '月度' : planInfoData.planTimeFlag === 1 ? '季度' : '年度' }}</span> |
| | | {{ scope.row.planStatus === 1 ? '已驳回' : scope.row.planStatus === 2 ? '已通过' : '未审核' }} |
| | | </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> |
| | | <!-- 状态为未审核 --> |
| | | <div v-if="scope.row.planStatus === 0"></div> |
| | | <!-- 状态为已驳回 --> |
| | | <div v-if="scope.row.planStatus === 1"> |
| | | <el-button size="small" @click="handleResubmit(scope.row)">重新上报</el-button> |
| | | <el-button size="small" type="danger" @click="handleReset(scope.$index)">重置</el-button> |
| | | </div> |
| | | <!-- 状态为已通过 --> |
| | | <div v-if="scope.row.planStatus === 2"> |
| | | <el-button size="small" @click="handleDelay(scope.$index)">延期</el-button> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | </div> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="title" label="事项名称" width="200" align="center" /> |
| | | <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 #default="scope"> |
| | | <div v-if="projectInfoData.managerFlag"> |
| | | <el-select |
| | | v-model="scope.row.departmentExamine" |
| | | :disabled="scope.row.planStatus === 2 || scope.row.planStatus === 1" |
| | | placeholder="请选择" |
| | | size="small" |
| | | clearable> |
| | | <el-option label="同意" :value="0"></el-option> |
| | | <el-option label="驳回" :value="1"></el-option> |
| | | </el-select> |
| | | </div> |
| | | <div v-if="!projectInfoData.managerFlag"> |
| | | {{ scope.row.departmentExamine === 0 ? '同意' : scope.row.departmentExamine === 1 ? '驳回' : '未审核' }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <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" /> |
| | | <el-input |
| | | type="textarea" |
| | | v-model="scope.row.departmentApproval" |
| | | :readonly="scope.row.planStatus === 2 || scope.row.planStatus === 1" |
| | | placeholder="请输入" |
| | | rows="3" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="departmentApprovalReply" label="批复回复" width="160" align="center"> |
| | | <template #default="scope" v-if="!projectInfoData.managerFlag"> |
| | | <el-input type="textarea" v-model="scope.row.departmentApprovalReply" placeholder="请输入" rows="3" /> |
| | | <el-input |
| | | type="textarea" |
| | | v-model="scope.row.departmentApprovalReply" |
| | | :readonly="scope.row.planStatus === 0" |
| | | placeholder="请输入" |
| | | rows="3" /> |
| | | </template> |
| | | </el-table-column> |
| | | <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 #default="scope"> |
| | | <div v-if="!projectInfoData.managerFlag"> |
| | | {{ scope.row.manageExamine === 0 ? '同意' : scope.row.manageExamine === 1 ? '驳回' : '未审核' }} |
| | | </div> |
| | | <div v-if="projectInfoData.managerFlag"> |
| | | <el-select |
| | | v-model="scope.row.manageExamine" |
| | | :disabled="scope.row.planStatus === 2 || scope.row.planStatus === 1" |
| | | placeholder="请选择" |
| | | size="small" |
| | | clearable> |
| | | <el-option label="同意" :value="0"></el-option> |
| | | <el-option label="驳回" :value="1"></el-option> |
| | | </el-select> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <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" /> |
| | | <el-input |
| | | type="textarea" |
| | | v-model="scope.row.manageApproval" |
| | | :readonly="scope.row.planStatus === 2 || scope.row.planStatus === 1" |
| | | placeholder="请输入" |
| | | rows="3" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="manageApprovalReply" label="批复回复" width="160" align="center"> |
| | | <template #default="scope" v-if="!projectInfoData.managerFlag"> |
| | | <el-input type="textarea" v-model="scope.row.manageApprovalReply" placeholder="请输入" rows="3" /> |
| | | <el-input |
| | | type="textarea" |
| | | v-model="scope.row.manageApprovalReply" |
| | | :readonly="scope.row.planStatus === 0" |
| | | placeholder="请输入" |
| | | rows="3" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="planStatus" label="状态" width="200" align="center" > |
| | | <template #default="scope"> |
| | | {{ scope.row.planStatus === 1 ? '已驳回' : scope.row.planStatus === 2 ? '已通过' : '未审核' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" label="操作" align="center" width="200"> |
| | | <template #default="scope"> |
| | | <el-button v-show="!projectInfoData.managerFlag" size="small" @click="handleReply(scope.$index)">回复</el-button> |
| | | <el-button v-show="!projectInfoData.managerFlag" size="small" type="danger" @click="handleReset(scope.$index)">重置</el-button> |
| | | <el-button v-show="projectInfoData.managerFlag" size="small" @click="handleSave(scope.$index)">保存</el-button> |
| | | <div v-if="!projectInfoData.managerFlag"> |
| | | <el-button |
| | | size="small" |
| | | @click="handleReply(scope.$index)" |
| | | :disabled="scope.row.planStatus === 0">回复</el-button> |
| | | <el-button |
| | | size="small" |
| | | type="danger" |
| | | @click="handleReset(scope.$index)" |
| | | :disabled="scope.row.planStatus === 0">重置</el-button> |
| | | </div> |
| | | <div v-if="projectInfoData.managerFlag"> |
| | | <el-button |
| | | size="small" |
| | | @click="handleExamine(scope.$index)" |
| | | v-if="scope.row.planStatus === 0">审核</el-button> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getPlanInfoData, delayPlanInfo, getDepartmentApproval, getPlanLog, replyExamine, saveExamine } from "@/api/projectPlan/index"; |
| | | import { getPlanInfoData, delayPlanInfo, getDepartmentApproval, getPlanLog, replyExamine, saveExamine, resubmitPlanInfo } from "@/api/projectPlan/index"; |
| | | |
| | | export default { |
| | | name: "planInfoCheck", |
| | |
| | | } |
| | | }); |
| | | }, |
| | | // 用户重新上报计划项 |
| | | handleResubmit(data) { |
| | | resubmitPlanInfo(data).then(response => { |
| | | this.$message.success('重新上报成功'); |
| | | this.search() |
| | | }); |
| | | }, |
| | | // 延期 |
| | | handleDelay(index) { |
| | | delayPlanInfo(this.tableData[index]).then(response => { |
| | |
| | | }); |
| | | }, |
| | | // 保存审批 |
| | | handleSave(index) { |
| | | handleExamine(index) { |
| | | saveExamine(this.departmentApprovalData[index]).then(response => { |
| | | this.$message.success('保存成功'); |
| | | this.$message.success('审批成功'); |
| | | this.search() |
| | | }); |
| | | }, |
| | | // 获取计划日志 |