[update] 新法规导入流程、法规符合性排查流程、市场清单发布流程的查看
This commit is contained in:
@@ -147,6 +147,30 @@ export default {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false
|
||||
},
|
||||
// 是否可以点击节点名称跳转
|
||||
nodeNameClick: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false
|
||||
},
|
||||
// 详情页从哪里点进来的(已办,已发还是监控流程)
|
||||
detailFrom: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
nodeNameClick: {
|
||||
immediate: true,
|
||||
handler (val) {
|
||||
if (val) {
|
||||
this.columns[0].scopedSlots.customRender = 'taskNode'
|
||||
} else {
|
||||
this.columns[0].scopedSlots.customRender = 'text'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -249,6 +273,10 @@ export default {
|
||||
if (this.$route.query.source === 'monitorList' && this.$route.query.prcStatus === '3') {
|
||||
params.finishFlagSearch = '2,3,4'
|
||||
}
|
||||
// 是已办,已发还是监控流程的查审批记录
|
||||
if (this.detailFrom) {
|
||||
params.detailFrom = this.detailFrom
|
||||
}
|
||||
if (this.$route.query.processInstanceId) {
|
||||
params.processInstanceId = this.$route.query.processInstanceId
|
||||
} else {
|
||||
|
||||
@@ -140,6 +140,15 @@ export const IsReadOnlyEnums = {
|
||||
subConfigurable: { text: '字段固定,内部可配', value: 2 }
|
||||
}
|
||||
|
||||
// 流程中心-查看跳转详情需要传是已办,已发还是监控流程
|
||||
export const Process = {
|
||||
TO_DO: { text: '待办流程', value: 'todo' },
|
||||
DONE: { text: '已办流程', value: 'done' },
|
||||
SENT: { text: '已发流程', value: 'sent' },
|
||||
MONITOR: { text: '监控流程', value: 'monitor' },
|
||||
DRAFT: { text: '草稿', value: 'draft' }
|
||||
}
|
||||
|
||||
// 流程key,获取人员信息前需要获取流程定义id,传这里的名字到WorkCenterMixin的getFlowDefinition方法中
|
||||
export const ProcessKey = {
|
||||
// 新法规导入流程
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<internal-detail-page :title="pageTitle" :content-padding="0" :loading="loading">
|
||||
<!-- 标题右侧tab -->
|
||||
<template v-slot:titleRightCustom>
|
||||
<template v-slot:titleRightCustom v-if="!isLook">
|
||||
<div class="table-operator-tab">
|
||||
<a :class="(switchValue === 'base' ? 'table-operator-tab-active' : '') + ' ' + ($i18n.locale === EN ? 'switch-item-en' : 'switch-item')"
|
||||
@click="switchChange('base')">{{ $t('basicInformation') }}
|
||||
@@ -39,7 +39,7 @@
|
||||
:colon="formItemColon">
|
||||
<a-date-picker :placeholder="$t('pleaseSelect') + $t('expirationDate')"
|
||||
style="width: 100%"
|
||||
:disabled="disabled"
|
||||
:disabled="disabled || isLook"
|
||||
value-format="YYYY-MM-DD"
|
||||
v-decorator="['processDueDate']" />
|
||||
</a-form-item>
|
||||
@@ -54,7 +54,7 @@
|
||||
<a-textarea :placeholder="$t('pleaseEnter') + $t('processExplain')"
|
||||
:maxLength="500"
|
||||
:rows="4"
|
||||
:disabled="disabled"
|
||||
:disabled="disabled || isLook"
|
||||
v-decorator="['processDescription']" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
@@ -97,7 +97,7 @@
|
||||
<!-- 业务基本信息 -->
|
||||
<div class="process-part-title">{{ $t('basicServiceInformation') }}</div>
|
||||
<!-- 节点1、法规工程师发起 -->
|
||||
<base-info-form v-if="currentNode === 1" ref="baseInfoRef" :current-node="currentNode" @processNameChange="processNameChange" :countryOptions="countryOptions"></base-info-form>
|
||||
<base-info-form v-if="currentNode === 1" ref="baseInfoRef" :disabled="isLook" :current-node="currentNode" @processNameChange="processNameChange" :countryOptions="countryOptions"></base-info-form>
|
||||
<!-- 节点2、会签 -->
|
||||
<!-- 节点3、高级经理审核 -->
|
||||
<!-- 节点4、总监批准 -->
|
||||
@@ -111,11 +111,12 @@
|
||||
<a-textarea :placeholder="$t('pleaseEnter') + $t('remarks')"
|
||||
:maxLength="500"
|
||||
:rows="4"
|
||||
:disabled="isLook"
|
||||
v-decorator="['handleText', validatorRules.handleText]" />
|
||||
</a-form-item>
|
||||
<!--附件-->
|
||||
<a-form-item :labelCol="longLabelCol" :wrapperCol="longWrapperCol" :label="$t('attach')" :colon="formItemColon">
|
||||
<j-upload v-decorator="['handleFile']" return-id multiple />
|
||||
<j-upload v-decorator="['handleFile']" return-id multiple :disabled="isLook" />
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</div>
|
||||
@@ -318,7 +319,8 @@ export default {
|
||||
formInline: {},
|
||||
approvalInfoForm: this.$form.createForm(this), // 审批信息表单
|
||||
personnelInfoData: [],
|
||||
countryOptions: [] // 国家/地区下拉框
|
||||
countryOptions: [], // 国家/地区下拉框
|
||||
isLook: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<internal-detail-page :title="pageTitle" :content-padding="0" :loading="loading">
|
||||
<!-- 标题右侧tab -->
|
||||
<template v-slot:titleRightCustom>
|
||||
<template v-slot:titleRightCustom v-if="!isLook">
|
||||
<div class="table-operator-tab">
|
||||
<a :class="(switchValue === 'base' ? 'table-operator-tab-active' : '') + ' ' + ($i18n.locale === EN ? 'switch-item-en' : 'switch-item')"
|
||||
@click="switchChange('base')">{{ $t('basicInformation') }}
|
||||
@@ -64,7 +64,7 @@
|
||||
<!-- 业务基本信息 -->
|
||||
<div class="process-part-title">{{ $t('basicServiceInformation') }}</div>
|
||||
<!-- 节点1、法规工程师发起 -->
|
||||
<base-info-form v-if="currentNode === 1" ref="baseInfoRef" :current-node="currentNode" @processNameChange="processNameChange"></base-info-form>
|
||||
<base-info-form v-if="currentNode === 1" ref="baseInfoRef" :disabled="isLook" :current-node="currentNode" @processNameChange="processNameChange"></base-info-form>
|
||||
<!-- 节点2、高级经理校对 -->
|
||||
<!-- 节点3、总监审核 -->
|
||||
<!-- 节点4、公司标准法规责任领导批准 -->
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<internal-detail-page :title="pageTitle" :content-padding="0" :loading="loading">
|
||||
<process-detail-list :processKey="processKey" show-urge-button>
|
||||
<process-detail-list :processKey="processKey" show-urge-button nodeNameClick :detailFrom="$route.query.detailFrom">
|
||||
<personnel-info slot="personnelInfo" ref="personnelInfo" :data="personnelInfoData"></personnel-info>
|
||||
</process-detail-list>
|
||||
</internal-detail-page>
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
<script>
|
||||
import JTable from '@/components/jero/JTable'
|
||||
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
||||
import { ProcessType, ProcessKey } from '../../../../enums/commonEnums'
|
||||
import { ProcessType, ProcessKey, Process } from '../../../../enums/commonEnums'
|
||||
import { getAction } from '../../../../api/manage'
|
||||
|
||||
export default {
|
||||
@@ -225,7 +225,8 @@ export default {
|
||||
query: {
|
||||
processKey: processKey,
|
||||
processDefinitionId: record.processDefinitionId,
|
||||
processInstanceId: record.processInstanceId
|
||||
processInstanceId: record.processInstanceId,
|
||||
detailFrom: Process.DONE.value
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -72,6 +72,7 @@ import { JeroListMixin } from '@/mixins/JeroListMixin'
|
||||
import { compulsoryWithdrawal } from '@/api/workCenter'
|
||||
import { ProcessType, ProcessKey } from '@/enums/commonEnums'
|
||||
import { mapGetters } from 'vuex'
|
||||
import { Process } from '../../../../enums/commonEnums'
|
||||
|
||||
export default {
|
||||
name: 'MonitorList',
|
||||
@@ -207,7 +208,8 @@ export default {
|
||||
processInstanceId: record.processInstanceId,
|
||||
// 流程监控并且是已撤回,详情不查进行中的
|
||||
source: 'monitorList',
|
||||
prcStatus: record.prcStatus
|
||||
prcStatus: record.prcStatus,
|
||||
detailFrom: Process.MONITOR.value
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -85,6 +85,7 @@ import JTable from '@/components/jero/JTable'
|
||||
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
||||
import { compulsoryWithdrawal } from '@/api/workCenter'
|
||||
import { ProcessType, ProcessKey } from '@/enums/commonEnums'
|
||||
import { Process } from '../../../../enums/commonEnums'
|
||||
|
||||
export default {
|
||||
name: 'SentList',
|
||||
@@ -211,7 +212,8 @@ export default {
|
||||
query: {
|
||||
processKey: processKey,
|
||||
processDefinitionId: record.processDefinitionId,
|
||||
processInstanceId: record.processInstanceId
|
||||
processInstanceId: record.processInstanceId,
|
||||
detailFrom: Process.SENT.value
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
+12
-11
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<internal-detail-page :title="pageTitle" :content-padding="0" :loading="loading">
|
||||
<!-- 标题右侧tab -->
|
||||
<template v-slot:titleRightCustom>
|
||||
<template v-slot:titleRightCustom v-if="!isLook">
|
||||
<div class="table-operator-tab">
|
||||
<a :class="(switchValue === 'base' ? 'table-operator-tab-active' : '') + ' ' + ($i18n.locale === EN ? 'switch-item-en' : 'switch-item')"
|
||||
@click="switchChange('base')">{{ $t('basicInformation') }}
|
||||
@@ -39,7 +39,7 @@
|
||||
:colon="formItemColon">
|
||||
<a-date-picker :placeholder="$t('pleaseSelect') + $t('expirationDate')"
|
||||
style="width: 100%"
|
||||
:disabled="disabled"
|
||||
:disabled="disabled || isLook"
|
||||
value-format="YYYY-MM-DD"
|
||||
v-decorator="['processDueDate']" />
|
||||
</a-form-item>
|
||||
@@ -54,7 +54,7 @@
|
||||
<a-textarea :placeholder="$t('pleaseEnter') + $t('processExplain')"
|
||||
:maxLength="500"
|
||||
:rows="4"
|
||||
:disabled="disabled"
|
||||
:disabled="disabled || isLook"
|
||||
v-decorator="['processDescription']" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
@@ -87,21 +87,21 @@
|
||||
|
||||
<!-- 业务基本信息和业务分派信息部分 -->
|
||||
<!-- 节点1、法规工程师发起 -->
|
||||
<engineer-init-base-info v-if="currentNode === 1" ref="baseInfoRef" @processNameChange="processNameChange"></engineer-init-base-info>
|
||||
<engineer-init-base-info v-if="currentNode === 1" ref="baseInfoRef" :disabled="isLook" @processNameChange="processNameChange"></engineer-init-base-info>
|
||||
<!-- 节点2、各部门接口人分发 -->
|
||||
<interface-person-delivery-base-info v-if="currentNode === 2" ref="baseInfoRef"></interface-person-delivery-base-info>
|
||||
<interface-person-delivery-base-info v-if="currentNode === 2" ref="baseInfoRef" :disabled="isLook"></interface-person-delivery-base-info>
|
||||
<!-- 节点3、主排查人分发 -->
|
||||
<main-finder-distributes-base-info v-if="currentNode === 3" ref="baseInfoRef"></main-finder-distributes-base-info>
|
||||
<main-finder-distributes-base-info v-if="currentNode === 3" ref="baseInfoRef" :disabled="isLook"></main-finder-distributes-base-info>
|
||||
<!-- 节点4、设计工程师评估 -->
|
||||
<design-engineer-evaluation v-if="currentNode === 4" ref="baseInfoRef"></design-engineer-evaluation>
|
||||
<design-engineer-evaluation v-if="currentNode === 4" ref="baseInfoRef" :disabled="isLook"></design-engineer-evaluation>
|
||||
<!-- 节点5、主排查人单线审核 -->
|
||||
<main-finder-single-audit-base-info v-if="currentNode === 5" ref="baseInfoRef"></main-finder-single-audit-base-info>
|
||||
<main-finder-single-audit-base-info v-if="currentNode === 5" ref="baseInfoRef" :disabled="isLook"></main-finder-single-audit-base-info>
|
||||
<!-- 节点6、主排查人汇总 -->
|
||||
<main-finder-collect-base-info v-if="currentNode === 6" ref="baseInfoRef"></main-finder-collect-base-info>
|
||||
<main-finder-collect-base-info v-if="currentNode === 6" ref="baseInfoRef" :disabled="isLook"></main-finder-collect-base-info>
|
||||
<!-- 节点7、会签 -->
|
||||
<!-- 节点8、设计工程师科室经理审核 -->
|
||||
<!-- 节点9、高级经理/技术官批准 -->
|
||||
<finish-audit-base-info v-if="[7,8,9].includes(currentNode)" ref="baseInfoRef"></finish-audit-base-info>
|
||||
<finish-audit-base-info v-if="[7,8,9].includes(currentNode)" ref="baseInfoRef" :disabled="isLook"></finish-audit-base-info>
|
||||
|
||||
<!-- 流程审批信息 -->
|
||||
<div class="process-part-title">{{ $t('processApprovalInformation') }}</div>
|
||||
@@ -111,11 +111,12 @@
|
||||
<a-textarea :placeholder="$t('pleaseEnter') + $t('remarks')"
|
||||
:maxLength="500"
|
||||
:rows="4"
|
||||
:disabled="isLook"
|
||||
v-decorator="['handleText', validatorRules.handleText]" />
|
||||
</a-form-item>
|
||||
<!--附件-->
|
||||
<a-form-item :labelCol="longLabelCol" :wrapperCol="longWrapperCol" :label="$t('attach')" :colon="formItemColon">
|
||||
<j-upload v-decorator="['handleFile']" return-id multiple />
|
||||
<j-upload v-decorator="['handleFile']" return-id multiple :disabled="isLook" />
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user