update 企标稽查所有流程调整
This commit is contained in:
+28
-35
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="table-operator" v-if="['1'].includes(currentNode)">
|
||||
<div class="table-operator" v-if="isInitiate">
|
||||
<!-- 新增 -->
|
||||
<a-button icon="plus" type="primary" @click="handleAdd" v-has="'enterpriseStandard:add'">{{ $t('newlyAdded') }}</a-button>
|
||||
</div>
|
||||
@@ -11,8 +11,7 @@
|
||||
:dataSource="dataSource"
|
||||
:can-drag="true"
|
||||
rowKey="id"
|
||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||
:pagination="ipagination"
|
||||
:pagination="false"
|
||||
:scroll="{x: '100%'}"
|
||||
@change="tableOnChange">
|
||||
|
||||
@@ -28,7 +27,7 @@
|
||||
|
||||
<!-- 稽查联络人 -->
|
||||
<template v-slot:inspectionContactPerson="{text, record}">
|
||||
<div class="table-form" v-if="currentNode === '1'">
|
||||
<div class="table-form" v-if="isInitiate">
|
||||
<a-select v-model="record.inspectionContactPerson" style="width: 100%" allowClear
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.incExtensionRequest.inspectionContactPerson')">
|
||||
<a-select-option v-for="item in userList" :key="item.id" :value="item.id">{{ item.realname + '(' + item.username + ')' }}</a-select-option>
|
||||
@@ -64,6 +63,7 @@ import { getUserList } from '@api/api'
|
||||
import ExtensionRequestTableModal
|
||||
from '@views/workCenter/inspectionExtensionRequestProcess/modules/ExtensionRequestTableModal'
|
||||
import RequestExtensionModal from '@views/workCenter/inspectionExtensionRequestProcess/modules/RequestExtensionModal'
|
||||
import { InspectionExtensionRequestProcess } from '@/enums/commonEnums'
|
||||
export default {
|
||||
name: 'ExtensionRequestTable',
|
||||
components: { RequestExtensionModal, ExtensionRequestTableModal, JTable },
|
||||
@@ -82,34 +82,7 @@ export default {
|
||||
},
|
||||
model: {},
|
||||
userList: [],
|
||||
dataSource: [
|
||||
{
|
||||
id: 1,
|
||||
inspectionBasisStandardName: '123',
|
||||
inspectionBasisStandardNumber: '123',
|
||||
detailFlag: true,
|
||||
departOpinion: '123',
|
||||
mainDutyStandardizationGroup: '1699358097292472322'
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
inspectionBasisStandardName: 'qaaa',
|
||||
inspectionBasisStandardNumber: '12asdasdas3',
|
||||
detailFlag: true,
|
||||
departOpinion: '123',
|
||||
opinion: [],
|
||||
mainDutyStandardizationGroup: '1699358097292472322'
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
inspectionBasisStandardName: '123',
|
||||
inspectionBasisStandardNumber: '123',
|
||||
detailFlag: true,
|
||||
departOpinion: '123',
|
||||
userId: 'e9ca23d68d884d4ebb19d07889727dae'
|
||||
// mainDutyStandardizationGroup: '1699358097292472322'
|
||||
}
|
||||
],
|
||||
dataSource: [],
|
||||
allColumns: [
|
||||
{
|
||||
title: this.$t('serialNumber'),
|
||||
@@ -179,7 +152,9 @@ export default {
|
||||
},
|
||||
{ // 稽查联络人
|
||||
title: this.$t('workCenter.incExtensionRequest.inspectionContactPerson'),
|
||||
showCodeList: ['1'],
|
||||
showCodeList: [
|
||||
InspectionExtensionRequestProcess.initiate.value
|
||||
],
|
||||
align: 'center',
|
||||
width: 200,
|
||||
dataIndex: 'inspectionContactPerson',
|
||||
@@ -189,7 +164,9 @@ export default {
|
||||
// 操作
|
||||
fixed: 'right',
|
||||
title: this.$t('operation'),
|
||||
showCodeList: ['1'],
|
||||
showCodeList: [
|
||||
InspectionExtensionRequestProcess.initiate.value
|
||||
],
|
||||
// dataIndex: 'action',
|
||||
align: 'center',
|
||||
width: 180,
|
||||
@@ -199,6 +176,22 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
// 是否第一个节点
|
||||
isInitiate () {
|
||||
return this.currentNode === InspectionExtensionRequestProcess.initiate.value
|
||||
},
|
||||
// 是否第二个节点
|
||||
isDirectorLeaderApproval () {
|
||||
return this.currentNode === InspectionExtensionRequestProcess.directorLeaderApproval.value
|
||||
},
|
||||
// 是否第三个节点
|
||||
isContactEvaluation () {
|
||||
return this.currentNode === InspectionExtensionRequestProcess.contactEvaluation.value
|
||||
},
|
||||
// 是否第四个节点
|
||||
isDirectorSuperiorLeaderApproval () {
|
||||
return this.currentNode === InspectionExtensionRequestProcess.directorSuperiorLeaderApproval.value
|
||||
},
|
||||
// 按节点进行过滤
|
||||
columns () {
|
||||
return this.allColumns.filter(item => {
|
||||
@@ -212,7 +205,7 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
if (this.currentNode === '1') {
|
||||
if (this.isInitiate) {
|
||||
this.getUserList()
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user