|
@@ -80,36 +80,22 @@
|
|
highlight-current-row
|
|
highlight-current-row
|
|
:edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true, icon: '-'}"
|
|
:edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true, icon: '-'}"
|
|
>
|
|
>
|
|
- <vxe-table-column field="projectName" align="center" title="项目名称" :edit-render="{}" show-overflow="title">
|
|
|
|
- <template v-slot:edit="scope">
|
|
|
|
- <el-input :disabled="true" placeholder="请填写项目名称" :readonly="true" v-model="scope.row.projectName"/>
|
|
|
|
- </template>
|
|
|
|
- </vxe-table-column>
|
|
|
|
- <vxe-table-column field="no" align="center" title="报告号" :edit-render="{}">
|
|
|
|
- <template v-slot:edit="scope">
|
|
|
|
- <el-input :disabled="true" :readonly="true" placeholder="请填写报告号" v-model="scope.row.no"/>
|
|
|
|
- </template>
|
|
|
|
- </vxe-table-column>
|
|
|
|
- <vxe-table-column field="projectLeader" align="center" title="项目负责人" :edit-render="{}">
|
|
|
|
- <template v-slot:edit="scope">
|
|
|
|
- <el-input :disabled="true" placeholder="请填写项目负责人" v-model="scope.row.projectLeader"/>
|
|
|
|
- </template>
|
|
|
|
- </vxe-table-column>
|
|
|
|
- <vxe-table-column field="officeName" align="center" title="部门" :edit-render="{}">
|
|
|
|
- <template v-slot:edit="scope">
|
|
|
|
- <el-input :disabled="true" placeholder="请填写部门" v-model="scope.row.officeName"/>
|
|
|
|
- </template>
|
|
|
|
- </vxe-table-column>
|
|
|
|
- <vxe-table-column field="process" align="center" title="当前项目进度" :edit-render="{}">
|
|
|
|
- <template v-slot:edit="scope">
|
|
|
|
- <el-input :disabled="true" placeholder="请填写项目负责人" v-model="scope.row.process"/>
|
|
|
|
- </template>
|
|
|
|
- </vxe-table-column>
|
|
|
|
- <vxe-table-column field="processTime" align="center" title="进度完成时间" :edit-render="{}">
|
|
|
|
- <template v-slot:edit="scope">
|
|
|
|
- <el-input :disabled="true" placeholder="请填写创建时间" v-model="scope.row.processTime"/>
|
|
|
|
|
|
+
|
|
|
|
+ <vxe-column type="seq" align="center" width="60" title="序号"></vxe-column>
|
|
|
|
+ <vxe-column min-width="230" align="center" title="项目名称" field="projectName" >
|
|
|
|
+ <template #default="scope">
|
|
|
|
+ <el-link type="primary" :underline="false" v-if="hasPermission('jy_project:info:view')" @click="viewProject(scope.row)">{{scope.row.projectName}}</el-link>
|
|
|
|
+ <el-link type="primary" :underline="false" v-else-if="hasPermission('jy_project:info:view')" @click="viewProject(scope.row)">{{scope.row.projectName}}</el-link>
|
|
|
|
+ <projectName v-else>{{scope.row.name}}</projectName>
|
|
</template>
|
|
</template>
|
|
- </vxe-table-column>
|
|
|
|
|
|
+ </vxe-column>
|
|
|
|
+ <vxe-column min-width="160" align="center" title="报告号" field="no" show-overflow="title"></vxe-column>
|
|
|
|
+ <vxe-column min-width="160" align="center" title="项目负责人" field="projectLeader" show-overflow="title"></vxe-column>
|
|
|
|
+ <vxe-column min-width="160" align="center" title="部门" field="officeName" show-overflow="title"></vxe-column>
|
|
|
|
+ <vxe-column min-width="160" align="center" title="当前项目进度" field="process" show-overflow="title"></vxe-column>
|
|
|
|
+ <vxe-column min-width="160" align="center" title="进度完成时间" field="processTime" show-overflow="title"></vxe-column>
|
|
|
|
+
|
|
|
|
+
|
|
</vxe-table>
|
|
</vxe-table>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -118,9 +104,10 @@
|
|
<template #footer>
|
|
<template #footer>
|
|
<span class="dialog-footer">
|
|
<span class="dialog-footer">
|
|
<el-button @click="close()" icon="el-icon-circle-close">关闭</el-button>
|
|
<el-button @click="close()" icon="el-icon-circle-close">关闭</el-button>
|
|
- <el-button type="primary" @click="doSubmit()" icon="el-icon-circle-check" v-noMoreClick>确定</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="doSubmit()" v-if="method !== 'view'" icon="el-icon-circle-check" v-noMoreClick>确定</el-button>
|
|
</span>
|
|
</span>
|
|
</template>
|
|
</template>
|
|
|
|
+ <ProjectDia ref="projectDia" @refreshDataList="refreshList"></ProjectDia>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -130,6 +117,7 @@
|
|
import MonthlyService from '@/api/jy/MonthlyService'
|
|
import MonthlyService from '@/api/jy/MonthlyService'
|
|
import { ElDatePicker } from 'element-plus';
|
|
import { ElDatePicker } from 'element-plus';
|
|
import UpLoadComponent from '@/views/common/UpLoadComponent'
|
|
import UpLoadComponent from '@/views/common/UpLoadComponent'
|
|
|
|
+ import ProjectDia from '@/views/jy/project/ProjectDia'
|
|
export default {
|
|
export default {
|
|
props: {
|
|
props: {
|
|
businessId: {
|
|
businessId: {
|
|
@@ -179,6 +167,7 @@
|
|
components: {
|
|
components: {
|
|
ElDatePicker,
|
|
ElDatePicker,
|
|
UpLoadComponent,
|
|
UpLoadComponent,
|
|
|
|
+ ProjectDia,
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
bus: {
|
|
bus: {
|
|
@@ -219,6 +208,14 @@
|
|
init(method, id) {
|
|
init(method, id) {
|
|
this.method = method
|
|
this.method = method
|
|
console.log('method',this.method)
|
|
console.log('method',this.method)
|
|
|
|
+
|
|
|
|
+ if (method === 'add') {
|
|
|
|
+ this.title = `新建月报`
|
|
|
|
+ } else if (method === 'edit') {
|
|
|
|
+ this.title = '新建月报'
|
|
|
|
+ } else if (method === 'view') {
|
|
|
|
+ this.title = '查看月报详情'
|
|
|
|
+ }
|
|
this.inputForm={
|
|
this.inputForm={
|
|
id: '',
|
|
id: '',
|
|
createName:this.$store.state.user.name,
|
|
createName:this.$store.state.user.name,
|
|
@@ -324,6 +321,10 @@
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ viewProject (row) {
|
|
|
|
+ console.log("项目行信息:", row)
|
|
|
|
+ this.$refs.projectDia.init('view', row.projectId,row.auditId1, row.auditId2, row.auditId3,row.sealId,row.outInstanceId,row.reportsSubmitId,row.archiveId,row.eiaId)
|
|
|
|
+ },
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|