认证清单增加”认证类型“字段

This commit is contained in:
范强强
2023-04-17 15:49:22 +08:00
parent 49c6da1517
commit 84502915b6
5 changed files with 168 additions and 144 deletions
@@ -226,7 +226,7 @@
'1': '法规工程师', '1': '法规工程师',
'2': '认证工程师', '2': '认证工程师',
'4': '法规工程师/认证工程师', '4': '法规工程师/认证工程师',
'11': '领导角色', '11': 'R&H Manager',
'12': '系统管理员', '12': '系统管理员',
'13': 'Viewer', '13': 'Viewer',
'14': '品牌管理员', '14': '品牌管理员',
@@ -161,66 +161,20 @@
<div class="title-text"> <div class="title-text">
<span class="Required">*</span> <span class="Required">*</span>
<span class="title-text-text" <span class="title-text-text"
:title="$t('typeOfDeliverables')">{{$t('typeOfDeliverables')}}</span> :title="$t('certificationType')">{{$t('certificationType')}}</span>
</div> </div>
<a-form-model-item class="itemModel" <a-form-model-item class="itemModel-multi"
style="display: inline-block" :prop="'dataList.'+index+'.attestationType'"
:prop="'dataList.'+index+'.deliverableType'" :rules="[{ required: true, message: $t('certificationType') + $t('cannotEmpty'), trigger: 'change'},]"
:rules="[{ required: true, message: $t('typeOfDeliverables') + $t('cannotEmpty'), trigger: 'change'},]"
> >
<!-- <j-multi-select-tag class="box-input" v-model="item.attestationType"
:maxTagCount="1" :placeholder="$t('PleaseSelect')+$t('certificationType')"
tree-checkable--> :type="'select'"
<a-tree-select :triggerChange="false"
tree-node-filter-prop="title" :dictCode="'ren4_zheng4_qing1_dan1_-_ren4_zheng4_lei4_xing2'"/>
v-model="item.deliverableType"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
class="box-input"
style="width: 100%"
:tree-data="DeliverableTreeList"
:placeholder="$t('PleaseSelect')+$t('typeOfDeliverables')"
/>
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
<!-- <a-col :span="12">-->
<!-- <div class="box-title-text">-->
<!-- <div class="title-text">-->
<!-- <span class="Required">*</span>-->
<!-- <span class="title-text-text"-->
<!-- :title="$t('certificationType')">{{$t('certificationType')}}</span>-->
<!-- </div>-->
<!-- <a-form-model-item class="itemModel-multi"-->
<!-- :prop="'dataList.'+index+'.attestationType'"-->
<!-- :rules="[{ required: true, message: $t('certificationType') + $t('cannotEmpty'), trigger: 'change'},]"-->
<!-- >-->
<!-- <j-multi-select-tag class="box-input" v-model="item.attestationType"-->
<!-- :placeholder="$t('PleaseSelect')+$t('certificationType')"-->
<!-- :type="'select'"-->
<!-- :triggerChange="false" :dictCode="'ren4_zheng4_qing1_dan1_-_ren4_zheng4_lei4_xing2'"/>-->
<!-- </a-form-model-item>-->
<!-- </div>-->
<!-- </a-col>-->
<a-col :span="12">
<div class="box-title-text">
<div class="title-text">
<span class="title-text-text"
:title="$t('deliverableTemplate')">{{$t('deliverableTemplate')}}</span>
</div>
<a-form-model-item class="itemModel" prop="deliverableTemplate">
<a-button type="primary" class="button-text"
@click="clickButtonToUpload('deliverableTemplate',index,true)">
{{ (item.deliverableTemplate === 'null' || item.deliverableTemplate === ''
||
item.deliverableTemplate == null) ? $t('clickUpload') : $t('viewUploadedFiles')
}}
</a-button>
</a-form-model-item>
</div>
</a-col>
</a-row>
<a-row :gutter="24">
<a-col :span="12"> <a-col :span="12">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
@@ -249,7 +203,55 @@
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
</a-row>
<a-row :gutter="24">
<a-col :span="12">
<div class="box-title-text">
<div class="title-text">
<span class="Required">*</span>
<span class="title-text-text"
:title="$t('typeOfDeliverables')">{{$t('typeOfDeliverables')}}</span>
</div>
<a-form-model-item class="itemModel"
style="display: inline-block"
:prop="'dataList.'+index+'.deliverableType'"
:rules="[{ required: true, message: $t('typeOfDeliverables') + $t('cannotEmpty'), trigger: 'change'},]"
>
<!--
:maxTagCount="1"
tree-checkable-->
<a-tree-select
tree-node-filter-prop="title"
v-model="item.deliverableType"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
class="box-input"
style="width: 100%"
:tree-data="DeliverableTreeList"
:placeholder="$t('PleaseSelect')+$t('typeOfDeliverables')"
/>
</a-form-model-item>
</div>
</a-col>
<a-col :span="12">
<div class="box-title-text">
<div class="title-text">
<span class="title-text-text"
:title="$t('deliverableTemplate')">{{$t('deliverableTemplate')}}</span>
</div>
<a-form-model-item class="itemModel" prop="deliverableTemplate">
<a-button type="primary" class="button-text"
@click="clickButtonToUpload('deliverableTemplate',index,true)">
{{ (item.deliverableTemplate === 'null' || item.deliverableTemplate === ''
||
item.deliverableTemplate == null) ? $t('clickUpload') : $t('viewUploadedFiles')
}}
</a-button>
</a-form-model-item>
</div>
</a-col>
</a-row>
<a-row :gutter="24">
<a-col :span="12"> <a-col :span="12">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
@@ -374,67 +376,26 @@
</a-col> </a-col>
</a-row> </a-row>
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :span="12"> <a-col :span="12">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
<span class="Required">*</span> <span class="Required">*</span>
<span class="title-text-text" :title="$t('typeOfDeliverables')">{{$t('typeOfDeliverables')}}</span>
</div>
<a-form-model-item class="itemModel"
style="display: inline-block"
:prop="'deliverableType'"
>
<a-tree-select
tree-node-filter-prop="title"
v-model="formInline.deliverableType"
:maxTagCount="1"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
class="box-input"
style="width: 100%"
:tree-data="DeliverableTreeList"
:placeholder="$t('PleaseSelect')+$t('typeOfDeliverables')"
/>
</a-form-model-item>
</div>
</a-col>
<!-- <a-col :span="12">-->
<!-- <div class="box-title-text">-->
<!-- <div class="title-text">-->
<!-- <span class="Required">*</span>-->
<!-- <span class="title-text-text"-->
<!-- :title="$t('certificationType')">{{$t('certificationType')}}</span>-->
<!-- </div>-->
<!-- <a-form-model-item class="itemModel-multi"-->
<!-- :prop="'dataList.'+index+'.attestationType'"-->
<!-- :rules="[{ required: true, message: $t('certificationType') + $t('cannotEmpty'), trigger: 'change'},]"-->
<!-- >-->
<!-- <j-multi-select-tag class="box-input" v-model="item.attestationType"-->
<!-- :placeholder="$t('PleaseSelect')+$t('certificationType')"-->
<!-- :type="'select'"-->
<!-- :triggerChange="false" :dictCode="'ren4_zheng4_qing1_dan1_-_ren4_zheng4_lei4_xing2'"/>-->
<!-- </a-form-model-item>-->
<!-- </div>-->
<!-- </a-col>-->
<a-col :span="12">
<div class="box-title-text">
<div class="title-text">
<span class="title-text-text" <span class="title-text-text"
:title="$t('deliverableTemplate')">{{$t('deliverableTemplate')}}</span> :title="$t('certificationType')">{{$t('certificationType')}}</span>
</div> </div>
<a-form-model-item class="itemModel" prop="deliverableTemplate"> <a-form-model-item class="itemModel-multi"
<a-button type="primary" class="button-text" :prop="'attestationType'"
@click="clickButtonToUpload('deliverableTemplate')"> :rules="[{ required: true, message: $t('certificationType') + $t('cannotEmpty'), trigger: 'change'},]"
{{ (formInline.deliverableTemplate === 'null' || formInline.deliverableTemplate === '' >
|| <j-multi-select-tag class="box-input" v-model="formInline.attestationType"
formInline.deliverableTemplate == null) ? $t('clickUpload') : $t('viewUploadedFiles') :placeholder="$t('PleaseSelect')+$t('certificationType')"
}} :type="'select'"
</a-button> :triggerChange="false"
:dictCode="'ren4_zheng4_qing1_dan1_-_ren4_zheng4_lei4_xing2'"/>
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
</a-row>
<a-row :gutter="24">
<a-col :span="12"> <a-col :span="12">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
@@ -464,25 +425,46 @@
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
</a-row>
<a-row :gutter="24">
<a-col :span="12"> <a-col :span="12">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
<span class="Required" v-if="formInline.deliverableType != '1635545748968783874'">*</span> <span class="Required">*</span>
<span class="title-text-text" :title="$t('closingDate')">{{$t('closingDate')}}</span> <span class="title-text-text" :title="$t('typeOfDeliverables')">{{$t('typeOfDeliverables')}}</span>
</div> </div>
<a-form-model-item class="itemModel" <a-form-model-item class="itemModel"
:prop="formInline.deliverableType == '1635545748968783874'?'':'endTime'" style="display: inline-block"
:rules="[{ required: formInline.deliverableType == '1635545748968783874'?false:true, :prop="'deliverableType'"
message: $t('closingDate') + $t('cannotEmpty'), trigger: 'change'}]"
> >
<a-date-picker class="box-input" <a-tree-select
:placeholder="$t('PleaseSelect')+$t('closingDate')" tree-node-filter-prop="title"
@change="dateChange({db_field_name:'endTime'})" v-model="formInline.deliverableType"
format="YYYY-MM-DD" :maxTagCount="1"
:disabledDate="disabledDate" :getPopupContainer="triggerNode=> triggerNode.parentNode"
:getCalendarContainer="(trigger) => trigger.parentNode" class="box-input"
v-model="formInline.endTime" style="width: 100%"
style="width: 100%"/> :tree-data="DeliverableTreeList"
:placeholder="$t('PleaseSelect')+$t('typeOfDeliverables')"
/>
</a-form-model-item>
</div>
</a-col>
<a-col :span="12">
<div class="box-title-text">
<div class="title-text">
<span class="title-text-text"
:title="$t('deliverableTemplate')">{{$t('deliverableTemplate')}}</span>
</div>
<a-form-model-item class="itemModel" prop="deliverableTemplate">
<a-button type="primary" class="button-text"
@click="clickButtonToUpload('deliverableTemplate')">
{{ (formInline.deliverableTemplate === 'null' || formInline.deliverableTemplate === ''
||
formInline.deliverableTemplate == null) ? $t('clickUpload') : $t('viewUploadedFiles')
}}
</a-button>
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
@@ -511,6 +493,28 @@
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
<a-col :span="12">
<div class="box-title-text">
<div class="title-text">
<span class="Required" v-if="formInline.deliverableType != '1635545748968783874'">*</span>
<span class="title-text-text" :title="$t('closingDate')">{{$t('closingDate')}}</span>
</div>
<a-form-model-item class="itemModel"
:prop="formInline.deliverableType == '1635545748968783874'?'':'endTime'"
:rules="[{ required: formInline.deliverableType == '1635545748968783874'?false:true,
message: $t('closingDate') + $t('cannotEmpty'), trigger: 'change'}]"
>
<a-date-picker class="box-input"
:placeholder="$t('PleaseSelect')+$t('closingDate')"
@change="dateChange({db_field_name:'endTime'})"
format="YYYY-MM-DD"
:disabledDate="disabledDate"
:getCalendarContainer="(trigger) => trigger.parentNode"
v-model="formInline.endTime"
style="width: 100%"/>
</a-form-model-item>
</div>
</a-col>
</a-row> </a-row>
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :span="12" v-if="formInline.inventoryVerifyEndTime"> <a-col :span="12" v-if="formInline.inventoryVerifyEndTime">
@@ -691,6 +691,13 @@
width: 180, width: 180,
ellipsis: true ellipsis: true
}, },
{
title: this.$t('certificationType'),
align: 'left',
dataIndex: 'attestationTypeName',
width: 180,
ellipsis: true
},
{ {
title: this.$t('engineeringInterfacePerson'), title: this.$t('engineeringInterfacePerson'),
align: 'left', align: 'left',
@@ -136,9 +136,16 @@
<a-icon type="export" :rotate="-90"/> <a-icon type="export" :rotate="-90"/>
{{ $t('modifyOperator') }} {{ $t('modifyOperator') }}
</div> </div>
<!-- 复制-->
<div @click="copyClick" v-if="this.roleSwitchingCode == '1'"
class="operator-text">
<a-icon type="copy"/>
{{ $t('copy') }}
</div>
<!-- 列表设置--> <!-- 列表设置-->
<a-popconfirm :visible="customizevisible" overlayClassName="popconfirmmize" <a-popconfirm :visible="customizevisible" overlayClassName="popconfirmmize"
placement="bottomRight" v-if="this.roleSwitchingCode == '0' || this.roleSwitchingCode == '1'"> placement="bottomRight"
v-if="this.roleSwitchingCode == '0' || this.roleSwitchingCode == '1' || this.roleSwitchingCode == '13'">
<template slot="title" id="popconfirmmize"> <template slot="title" id="popconfirmmize">
<div style="max-height:360px;overflow:scroll;overflow-x: auto;"> <div style="max-height:360px;overflow:scroll;overflow-x: auto;">
<a-checkbox <a-checkbox
@@ -301,24 +308,24 @@
<!-- @click="viewClick(record)">--> <!-- @click="viewClick(record)">-->
<!-- {{ $t('view') }}--> <!-- {{ $t('view') }}-->
<!-- </a>--> <!-- </a>-->
<a class="text-operation" <!-- <a class="text-operation"-->
v-if="( <!-- v-if="(-->
record.verifyFlowStatus == 'List to be released' || <!-- record.verifyFlowStatus == 'List to be released' ||-->
record.verifyFlowStatus == 'Regulatory engineer returns' || <!-- record.verifyFlowStatus == 'Regulatory engineer returns' ||-->
record.verifyFlowStatus == 'Compliance' || <!-- record.verifyFlowStatus == 'Compliance' ||-->
record.verifyFlowStatus == 'Non-Compliance' || <!-- record.verifyFlowStatus == 'Non-Compliance' ||-->
record.verifyFlowStatus == 'To be tracked' || <!-- record.verifyFlowStatus == 'To be tracked' ||-->
record.verifyFlowStatus == 'NA') <!-- record.verifyFlowStatus == 'NA')-->
&& (record.designFlowStatus == 'List to be released' || <!-- && (record.designFlowStatus == 'List to be released' ||-->
record.designFlowStatus == 'Regulatory engineer returns' || <!-- record.designFlowStatus == 'Regulatory engineer returns' ||-->
record.designFlowStatus == 'Compliance' || <!-- record.designFlowStatus == 'Compliance' ||-->
record.designFlowStatus == 'Non-Compliance' || <!-- record.designFlowStatus == 'Non-Compliance' ||-->
record.designFlowStatus == 'To be tracked' || <!-- record.designFlowStatus == 'To be tracked' ||-->
record.designFlowStatus == 'NA') <!-- record.designFlowStatus == 'NA')-->
&& roleSwitchingCode == 0" <!-- && roleSwitchingCode == 0"-->
@click="deleteLib(record)"> <!-- @click="deleteLib(record)">-->
{{ $t('deleteLib') }} <!-- {{ $t('deleteLib') }}-->
</a> <!-- </a>-->
<a class="text-operation" <a class="text-operation"
@click="resultReportedClick(record)"> @click="resultReportedClick(record)">
{{ $t('resultReported') }} {{ $t('resultReported') }}
@@ -2389,7 +2396,7 @@
title: this.$t('operation'), title: this.$t('operation'),
align: 'left', align: 'left',
fixed: 'right', fixed: 'right',
width: long == 'zh-cn' ? 180 : 246, width: long == 'zh-cn' ? 140 : 186,
scopedSlots: { customRender: 'operation' } scopedSlots: { customRender: 'operation' }
}) })
this.columnsAll.forEach((item) => { this.columnsAll.forEach((item) => {
@@ -30,9 +30,12 @@
class="box-input" class="box-input"
:getPopupContainer="triggerNode=> triggerNode.parentNode" :getPopupContainer="triggerNode=> triggerNode.parentNode"
allowClear allowClear
showSearch
optionFilterProp="label"
v-model="queryParam.flowType"> v-model="queryParam.flowType">
<a-select-option v-for="(item, key) in taskTypeList" <a-select-option v-for="(item, key) in taskTypeList"
:key="key" :key="key"
:label="item.name"
:value="item.value"> :value="item.value">
<span style="display: inline-block;width: 100%" :title=" item.name"> <span style="display: inline-block;width: 100%" :title=" item.name">
{{ item.name }} {{ item.name }}
@@ -44,16 +47,19 @@
<template v-if="toggleSearchStatus"> <template v-if="toggleSearchStatus">
<a-col :md="6" :sm="8"> <a-col :md="6" :sm="8">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text" :title="$t('ProcessStatus')"> <div class="title-text" :title="$t('Tasknode')">
<span>{{$t('ProcessStatus')}}</span> <span>{{$t('Tasknode')}}</span>
</div> </div>
<a-select :placeholder="$t('PleaseSelect')+$t('ProcessStatus')" <a-select :placeholder="$t('PleaseSelect')+$t('Tasknode')"
class="box-input" class="box-input"
:getPopupContainer="triggerNode=> triggerNode.parentNode" :getPopupContainer="triggerNode=> triggerNode.parentNode"
allowClear allowClear
showSearch
optionFilterProp="label"
v-model="queryParam.status"> v-model="queryParam.status">
<a-select-option v-for="(item, key) in taskStatusList" <a-select-option v-for="(item, key) in taskStatusList"
:key="key" :key="key"
:label="item.name"
:value="item.value"> :value="item.value">
<span style="display: inline-block;width: 100%" :title=" item.name"> <span style="display: inline-block;width: 100%" :title=" item.name">
{{ item.name }} {{ item.name }}