| | |
| | | "url": "https://gitee.com/y_project/RuoYi-Vue.git" |
| | | }, |
| | | "dependencies": { |
| | | "@antv/g6": "^4.8.21", |
| | | "@antv/g6": "^4.8.24", |
| | | "@riophae/vue-treeselect": "0.4.0", |
| | | "axios": "0.28.1", |
| | | "bpmn-js": "^11.1.0", |
| | |
| | | yearInvestAmount: '', |
| | | competentDepartmentList: [], |
| | | managementCentralizationList: [], |
| | | remark: '' |
| | | }, |
| | | subclass: '', |
| | | largeCategory: '', |
| | |
| | | <template v-if="item.slotName === 'planStartTime'"> |
| | | {{ scope.row.planStartTime ? scope.row.planStartTime.split('-')[0] + '年' : '' }} |
| | | </template> |
| | | <!-- usedStatus插槽 --> |
| | | <template v-if="item.slotName === 'usedStatus'"> |
| | | <dict-tag :options="dict.type.sys_used_status" :value="scope.row.usedStatus"/> |
| | | </template> |
| | | </template> |
| | | <!-- 默认显示 --> |
| | | <span v-else>{{ scope.row[item.id] }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column v-if="this.$route.query.projectCategory==6" label="审核备注" width="140" align="center" prop="remark"/> |
| | | <!-- 操作列 --> |
| | | <el-table-column label="操作" width="140" align="center"> |
| | | <template slot-scope="scope"> |
| | |
| | | </el-button> |
| | | <el-button |
| | | v-if="isReserve" |
| | | v-hasRole="['user']" |
| | | size="medium" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | |
| | | export default { |
| | | dicts: ['sys_administrative_divisions', 'sys_investment_type', 'sys_project_phases', |
| | | 'sys_funding_type', 'sys_association_status', 'sys_project_status', 'sys_project_code', |
| | | 'sys_project_tags', 'sys_key_categories', 'sys_project_type'], |
| | | 'sys_project_tags', 'sys_key_categories', 'sys_project_type','sys_used_status'], |
| | | name: "ProjectInfo", |
| | | components: { |
| | | FileDialog |
| | |
| | | created() { |
| | | this.queryParams.importanceType = this.$route.query.importanceType; |
| | | const projectCategory = this.$route.query.projectCategory; |
| | | if (!projectCategory || projectCategory === '1') { |
| | | if (!projectCategory || projectCategory === '1' || projectCategory === '6') { |
| | | this.isReserve = true; |
| | | } |
| | | if (projectCategory) { |
| | |
| | | }, |
| | | handleDetail(row) { |
| | | this.removeStore(); |
| | | this.$router.push({path: '/projectEngineering/project/ProjectDetails', query: {projectId: row.id,disabled: 'true' }}); |
| | | const audit = this.$route.query.projectCategory==='6'? 1:0 |
| | | this.$router.push({path: '/projectEngineering/project/ProjectDetails', query: {projectId: row.id,disabled: 'true',audit: audit }}); |
| | | }, |
| | | // 新增页面 |
| | | add() { |
| | |
| | | {id: 'planStartTime', label: '项目年份', slotName: 'planStartTime', visible: true}, |
| | | {id: 'projectStatus', label: '项目状态', slotName: 'projectStatus', visible: true}, |
| | | {id: 'investType', label: '投资类别', slotName: 'investType', visible: true}, |
| | | {id: 'usedStatus', label: '使用状态', slotName: 'usedStatus', visible: true}, |
| | | {id: 'content', label: '建设内容', visible: false}, |
| | | {id: 'fundType', label: '资金类型', visible: false}, |
| | | {id: 'projectContactPerson', label: '项目联系人', visible: false}, |
| | |
| | | <template> |
| | | <div> |
| | | <el-card class="card-container"> |
| | | <div class="flex-container mb-4"> |
| | | <el-tabs v-model="currentTab" @tab-click="handleClick" v-show="isShow"> |
| | |
| | | :isShow="isShow" |
| | | class="full-width custom-height" |
| | | /> |
| | | <div v-hasRole="['auditor']" v-if="audit" class="button-container"> |
| | | <el-button |
| | | class="save-button" |
| | | type="primary" |
| | | @click="saveProject(2)" |
| | | >通过</el-button> |
| | | <el-button |
| | | class="save-button" |
| | | type="danger" |
| | | @click="showDialog" |
| | | >驳回</el-button> |
| | | </div> |
| | | <div v-if="!disabled" class="button-container"> |
| | | <el-button |
| | | v-if="componentName.name == 'BasicInfo'" |
| | | class="save-button" |
| | | type="primary" |
| | | @click="saveProject(0)" |
| | |
| | | <!-- <el-button v-else class="cancel-button" @click="cancel">取消</el-button> --> |
| | | </div> |
| | | </el-card> |
| | | <el-dialog :visible.sync="remarkShow" width="1000px" title="驳回信息" append-to-body> |
| | | <el-form ref="form" label-width="80px"> |
| | | <el-form-item label="驳回原因"> |
| | | <el-input type="textarea" v-model="remark"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="cancelAuditing">取 消</el-button> |
| | | <el-button type="primary" @click="submitAuditing">确 定</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | isShow: false, |
| | | currentTab: "项目管理基础信息", |
| | | disabled: false, |
| | | remarkShow: false, |
| | | audit: false, |
| | | remark: '', |
| | | projectForm: {}, |
| | | componentName: BasicInfo, |
| | | projectId: null, |
| | |
| | | }; |
| | | }, |
| | | methods: { |
| | | showDialog(){ |
| | | this.remark = null; |
| | | this.remarkShow = true; |
| | | }, |
| | | cancelAuditing(){ |
| | | this.remark = null; |
| | | this.remarkShow = false; |
| | | }, |
| | | submitAuditing(){ |
| | | this.projectForm.projectInfoForm.remark = this.remark |
| | | this.saveProject(3) |
| | | this.remark = null |
| | | this.remarkShow = false; |
| | | }, |
| | | updateIsShow(newValue) { |
| | | this.isShow = newValue; |
| | | }, |
| | |
| | | changeTable(index) { |
| | | this.componentName = this.TABS_DATA[index].componentName; |
| | | this.currentTab = this.TABS_DATA[index].value; |
| | | |
| | | }, |
| | | submit(usedStatus) { |
| | | this.$refs.childRef.submit(usedStatus); |
| | |
| | | saveProject(num) { |
| | | this.projectForm.projectInfoForm.usedStatus = num; |
| | | editProject(this.projectForm).then((res) => { |
| | | this.$message.success("保存成功"); |
| | | this.$message.success("操作成功"); |
| | | }) |
| | | this.$router.push('/projectEngineering/project/projectLibrary') |
| | | } |
| | |
| | | if (this.$route.query.disabled) { |
| | | this.disabled = true; |
| | | } |
| | | this.audit = this.$route.query.audit == 1; |
| | | }, |
| | | }; |
| | | </script> |