对接Pre-Homo流程

This commit is contained in:
范强强
2023-06-13 15:00:06 +08:00
parent 5a0440fbdc
commit c67cca9d78
4 changed files with 105 additions and 38 deletions
+15 -17
View File
@@ -3,25 +3,23 @@
<div class="fixed">
<div class="header-search">
<van-icon @click="iconClick" class="icon" name="arrow-left"/>
<!-- <van-dropdown-menu v-if="activeTab == 'documentLibrary'">-->
<!-- <van-dropdown-item @change="selectModelChange" v-model="selectModel" :options="option"/>-->
<!-- </van-dropdown-menu>-->
<!-- <van-search v-model="value"-->
<!-- class="search-text"-->
<!-- v-if="activeTab == 'documentLibrary'"-->
<!-- show-action-->
<!-- left-icon="none"-->
<!-- @search="onSearch"-->
<!-- @clear="onClear"-->
<!-- @cancel="onClear"-->
<!-- :action-text="$t('reset')"-->
<!-- :placeholder="$t('phoneSearch')"/>-->
<!-- <van-dropdown-menu v-if="activeTab == 'documentLibrary'">-->
<!-- <van-dropdown-item @change="selectModelChange" v-model="selectModel" :options="option"/>-->
<!-- </van-dropdown-menu>-->
<!-- <van-search v-model="value"-->
<!-- class="search-text"-->
<!-- v-if="activeTab == 'documentLibrary'"-->
<!-- show-action-->
<!-- left-icon="none"-->
<!-- @search="onSearch"-->
<!-- @clear="onClear"-->
<!-- @cancel="onClear"-->
<!-- :action-text="$t('reset')"-->
<!-- :placeholder="$t('phoneSearch')"/>-->
<van-search v-model="value"
show-action
@search="onSearch"
@clear="onClear"
@cancel="onClear"
:action-text="$t('reset')"
:placeholder="$t('phoneSearch')"/>
</div>
<div class="content">
@@ -36,8 +34,8 @@
<div class="content-box">
<div class="search-top">
{{$t('searchScope')}}
<!-- <span v-if="activeTab == 'documentLibrary' && searchValue">-->
<!-- {{selectModelName}}:</span>-->
<!-- <span v-if="activeTab == 'documentLibrary' && searchValue">-->
<!-- {{selectModelName}}:</span>-->
<span>{{searchValue}}</span>
</div>
+7 -7
View File
@@ -8,9 +8,9 @@
</div>
<div class="content-box">
<div class="regulatory" v-if="activeTab == 'regulatoryCertification'">
<div class="content-box-text">
{{$t('regulatoryCertificationProcessData')}}
</div>
<!-- <div class="content-box-text">-->
<!-- {{$t('regulatoryCertificationProcessData')}}-->
<!-- </div>-->
<div class="regulatory-box">
<div class="content-box-data" @click="regulationListIssuanceClick">
<div class="content-box-data-text">
@@ -64,9 +64,9 @@
</div>
<div class="parameter" v-else-if="activeTab == 'parametercollection'">
<div class="content-box-text">
{{$t('authenticationParameterCollectionData')}}
</div>
<!-- <div class="content-box-text">-->
<!-- {{$t('authenticationParameterCollectionData')}}-->
<!-- </div>-->
<van-list
v-model="loading"
:finished="finished"
@@ -97,7 +97,7 @@
<div class="parame-box-top">
<span class="parame-box-top-text-left"
:class="{'parame-box-top-text-left-one':language == 'en-us'? true : false}">
{{$t('phoneVersionNumber')}}
{{$t('Version')}}
</span>
<span class="parame-box-top-text-right"
:class="{'parame-box-top-text-right-one':language == 'en-us'? true : false}">
+82 -13
View File
@@ -153,11 +153,26 @@
<van-form class="formClass">
<van-field name="checkboxGroup" class="textarea" :label="$t('ProcessType')">
<template #input>
<van-checkbox-group v-model="form.flowType">
<van-checkbox name="2" shape="square">{{$t('designComplianceProcess')}}</van-checkbox>
<van-checkbox name="4" shape="square">{{$t('validationComplianceProcess')}}</van-checkbox>
<van-checkbox name="21" shape="square">{{$t('preHomoFlow')}}</van-checkbox>
</van-checkbox-group>
<div class="checkboxGroup">
<div class="checkboxGroup-text"
:class="{'checkboxGroup-text-color':checkboxGroupColor('2')}"
@click="processClick('2')">
{{$t('designComplianceProcess')}}
</div>
<div class="checkboxGroup-text"
:class="{'checkboxGroup-text-color':checkboxGroupColor('4')}"
@click="processClick('4')">
{{$t('validationComplianceProcess')}}
</div>
<div class="checkboxGroup-text"
:class="{'checkboxGroup-text-color':checkboxGroupColor('21')}"
@click="processClick('21')">
{{$t('preHomoFlow')}}
</div>
<!-- <van-checkbox name="2" shape="square">{{$t('designComplianceProcess')}}</van-checkbox>-->
<!-- <van-checkbox name="4" shape="square">{{$t('validationComplianceProcess')}}</van-checkbox>-->
<!-- <van-checkbox name="21" shape="square">{{$t('preHomoFlow')}}</van-checkbox>-->
</div>
</template>
</van-field>
<van-field
@@ -476,15 +491,25 @@
query: query
})
} else if (row.flowType == '21') {
this.$router.push({
path: '/phoneHandlingPage',
query: {
projectLibraryId: row.projectLibraryId,
taskDefinitionKey: row.taskDefinitionKey,
isDisplay: isTrue,
projectName:row.projectName
if (row.taskDefinitionKey == 'Task Review' ||
row.taskDefinitionKey == 'Task handling' ||
row.taskDefinitionKey == 'Task responsibility confirmation') {
this.$router.push({
path: '/phoneHandlingPage',
query: {
projectLibraryId: row.projectLibraryId,
taskDefinitionKey: row.taskDefinitionKey,
isDisplay: isTrue,
projectName: row.projectName
}
})
} else {
if (isTrue) {
Toast(this.$t('pleaseViewOnPc'))
} else {
Toast(this.$t('pleaseProcessThePC'))
}
})
}
} else {
if (isTrue) {
Toast(this.$t('pleaseViewOnPc'))
@@ -604,6 +629,34 @@
this.sentProcessList = []
}
})
},
processClick(type) {
if (this.form.flowType && this.form.flowType.length > 0) {
let isTrue = false
for (let i = 0; i < this.form.flowType.length; i++) {
if (this.form.flowType[i] == type) {
isTrue = true
this.form.flowType.splice(i, 1)
i--
}
}
if (!isTrue) {
this.form.flowType.push(type)
}
} else {
this.form.flowType.push(type)
}
this.form = { ...this.form }
},
checkboxGroupColor(type) {
if (this.form.flowType && this.form.flowType.length > 0) {
for (let i = 0; i < this.form.flowType.length; i++) {
if (this.form.flowType[i] == type) {
return true
}
}
}
return false
}
}
}
@@ -972,4 +1025,20 @@
::v-deep .cutoffTimeClass .van-dropdown-menu__bar {
box-shadow: none;
}
.checkboxGroup {
width: 100%;
}
.checkboxGroup-text {
padding: 0.2rem 0.32rem;
background: #F7F7F8;
border-radius: 0.16rem;
margin-bottom: 0.16rem;
}
.checkboxGroup-text-color {
background: #00B3BE;
color: #fff;
}
</style>
@@ -117,7 +117,7 @@
width: 170
},
{
title: this.$t('relatedVersion'),
title: this.$t('Version'),
align: 'left',
dataIndex: 'version',
ellipsis: true,