[update] 企标计划立项变更流程联调

This commit is contained in:
lideqin
2023-10-30 16:49:32 +08:00
parent 93496eef14
commit 40cdef674c
4 changed files with 59 additions and 18 deletions
+44 -11
View File
@@ -48,8 +48,8 @@
<template v-slot:approvalOpinion="{text, record}">
<a-tooltip overlay-class-name="tooltip-style">
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
<div class="table-text" :class="{'agree-color': record.approval === '1', 'reject-color': record.approval === '2'}">
{{ text || text === 0 ? text : global.emptyLine }}
<div class="table-text" :class="{'agree-color': record.commitFlag + '' === '1', 'reject-color': record.commitFlag + '' === '2'}">
{{ text || text === 0 ? record.commitFlag_dictText : global.emptyLine }}
</div>
</a-tooltip>
</template>
@@ -81,7 +81,7 @@ import { JeroListMixin } from '../mixins/JeroListMixin.js'
import JTable from './jero/JTable.vue'
import Vue from 'vue'
import { ACCESS_TOKEN } from '../store/mutation-types.js'
import { downloadFile, getFileAccessHttpUrl } from '../api/manage.js'
import { downloadFile, getFileAccessHttpUrl, getAction } from '../api/manage.js'
import { previewPdf } from '../utils/previewPdf.js'
import { Base64 } from 'js-base64'
import FlowChartModal from './FlowChartModal.vue'
@@ -101,7 +101,9 @@ export default {
type: Object,
required: false,
default: () => {
return {}
return {
list: '/workCenter/getApprovalRecordList'
}
}
},
// 是否可以催办,自己不能催自己
@@ -128,25 +130,25 @@ export default {
columns: [
// 任务节点
{
dataIndex: 'projectSource_dictText',
dataIndex: 'taskName',
title: this.$t('workCenter.processDetail.taskNode'),
width: 150
},
// 任务受理人
{
dataIndex: 'projectName1',
dataIndex: 'taskAcceptor',
title: this.$t('workCenter.processDetail.taskHandler'),
width: 120
},
// 创建时间
{
dataIndex: 'workNumber',
dataIndex: 'createTime',
title: this.$t('createTime'),
width: 150
},
// 完成时间
{
dataIndex: 'nameWorkNo1',
dataIndex: 'endTime',
title: this.$t('workCenter.processDetail.completionTime'),
width: 150
},
@@ -158,21 +160,21 @@ export default {
},
// 审批意见
{
dataIndex: 'approval_dictText',
dataIndex: 'commitFlag',
title: this.$t('workCenter.processDetail.approvalOpinion'),
width: 100,
scopedSlots: { customRender: 'approvalOpinion' }
},
// 意见内容
{
dataIndex: 'projectName',
dataIndex: 'commitText',
title: this.$t('workCenter.processDetail.opinionContent'),
width: 120,
scopedSlots: { customRender: 'projectName' }
},
// 附件
{
dataIndex: 'file',
dataIndex: 'commitFile',
title: this.$t('businessSupport.questionAnswer.attach'),
width: 160,
scopedSlots: { customRender: 'file' }
@@ -189,6 +191,37 @@ export default {
}
},
methods: {
loadData (arg) {
if (!this.url.list) {
this.$message.warning('请设置url.list属性!')
return
}
// 加载数据 若传入参数1则加载第一页的内容
if (arg === 1) {
this.ipagination.current = 1
}
const params = this.getQueryParams()// 查询条件
if (this.$route.query.processInstanceId) {
params.processInstanceId = this.$route.query.processInstanceId
}
this.loading = true
getAction(this.url.list, params).then((res) => {
if (res.success) {
// update-begin---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
this.dataSource = res.result.records || res.result
if (res.result.total) {
this.ipagination.total = res.result.total
} else {
this.ipagination.total = 0
}
// update-end---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.loading = false
})
},
handleUrge () {
},
/**