update 项目合规评估流程\征求意见流程
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
basicInformation: '基础信息',
|
basicInformation: '基础信息',
|
||||||
personalInformation: '人员信息',
|
personalInformation: '人员信息',
|
||||||
|
checkTableRequired: '请检查表格必填项是否已填写',
|
||||||
// 新建流程页
|
// 新建流程页
|
||||||
newProcess: {
|
newProcess: {
|
||||||
externalStandardsManagementProcess: '外部标准管理流程',
|
externalStandardsManagementProcess: '外部标准管理流程',
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ module.exports = {
|
|||||||
basicInformation: '基础信息',
|
basicInformation: '基础信息',
|
||||||
personalInformation: '人员信息',
|
personalInformation: '人员信息',
|
||||||
dispatchInformation: '业务分派信息',
|
dispatchInformation: '业务分派信息',
|
||||||
|
checkTableRequired: '请检查表格必填项是否已填写',
|
||||||
// 新建流程页
|
// 新建流程页
|
||||||
newProcess: {
|
newProcess: {
|
||||||
externalStandardsManagementProcess: '外部标准管理流程',
|
externalStandardsManagementProcess: '外部标准管理流程',
|
||||||
|
|||||||
+52
-12
@@ -193,7 +193,8 @@
|
|||||||
</j-table>
|
</j-table>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="showExpandTable">
|
<div v-if="showExpandTable">
|
||||||
<j-expand-table :columns="columns"
|
<j-expand-table ref="expandTable"
|
||||||
|
:columns="columns"
|
||||||
:data-source="dataSource"
|
:data-source="dataSource"
|
||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
:all-disabled="expandTableDisabled"
|
:all-disabled="expandTableDisabled"
|
||||||
@@ -321,7 +322,7 @@ import PersonnelInfo from '../../../components/PersonnelInfo'
|
|||||||
import InternalDetailPage from '../../../components/InternalDetailPage'
|
import InternalDetailPage from '../../../components/InternalDetailPage'
|
||||||
import ProcessDetailList from '../../../components/ProcessDetailList'
|
import ProcessDetailList from '../../../components/ProcessDetailList'
|
||||||
import { WorkCenterMixin } from '../../../mixins/WorkCenterMixin'
|
import { WorkCenterMixin } from '../../../mixins/WorkCenterMixin'
|
||||||
import { ProcessKey, ProjectComplianceEvaluationProcessNode, StandardSource } from '../../../enums/commonEnums'
|
import { EvaluationResultType, ProcessKey, ProjectComplianceEvaluationProcessNode, StandardSource } from '../../../enums/commonEnums'
|
||||||
import JTable from '../../../components/jero/JTable'
|
import JTable from '../../../components/jero/JTable'
|
||||||
import ProjectTable from './components/ProjectTable'
|
import ProjectTable from './components/ProjectTable'
|
||||||
import UserSelection from '../../../components/selection/UserSelection'
|
import UserSelection from '../../../components/selection/UserSelection'
|
||||||
@@ -508,10 +509,16 @@ export default {
|
|||||||
// 不符合
|
// 不符合
|
||||||
'2': {
|
'2': {
|
||||||
rules: {
|
rules: {
|
||||||
// 依据描述
|
// 不符合项
|
||||||
description: {
|
nonConformance: {
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t('pleaseEnter') + this.$t('projectLibrary.specialProjectLibrary.basisDescription'),
|
message: this.$t('pleaseEnter') + this.$t('projectLibrary.vehicleItemLibrary.nonConformanceTerm'),
|
||||||
|
trigger: 'blur'
|
||||||
|
},
|
||||||
|
// 应对措施
|
||||||
|
countermeasures: {
|
||||||
|
required: true,
|
||||||
|
message: this.$t('pleaseEnter') + this.$t('projectLibrary.vehicleItemLibrary.solutions'),
|
||||||
trigger: 'blur'
|
trigger: 'blur'
|
||||||
},
|
},
|
||||||
// 预计整改完成日期
|
// 预计整改完成日期
|
||||||
@@ -524,8 +531,13 @@ export default {
|
|||||||
formArr: [
|
formArr: [
|
||||||
{
|
{
|
||||||
fieldShowType: 1,
|
fieldShowType: 1,
|
||||||
dbFieldTxt: this.$t('projectLibrary.specialProjectLibrary.basisDescription'),
|
dbFieldTxt: this.$t('projectLibrary.vehicleItemLibrary.nonConformanceTerm'),
|
||||||
dbFieldName: 'description'
|
dbFieldName: 'nonConformance'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
fieldShowType: 1,
|
||||||
|
dbFieldTxt: this.$t('projectLibrary.vehicleItemLibrary.solutions'),
|
||||||
|
dbFieldName: 'countermeasures'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldShowType: 3,
|
fieldShowType: 3,
|
||||||
@@ -537,10 +549,16 @@ export default {
|
|||||||
// 待验证
|
// 待验证
|
||||||
'3': {
|
'3': {
|
||||||
rules: {
|
rules: {
|
||||||
// 依据描述
|
// 风险点
|
||||||
description: {
|
riskPoints: {
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t('pleaseEnter') + this.$t('projectLibrary.specialProjectLibrary.basisDescription'),
|
message: this.$t('pleaseEnter') + this.$t('projectLibrary.vehicleItemLibrary.riskPoint'),
|
||||||
|
trigger: 'blur'
|
||||||
|
},
|
||||||
|
// 验证方案
|
||||||
|
validateSolution: {
|
||||||
|
required: true,
|
||||||
|
message: this.$t('pleaseEnter') + this.$t('projectLibrary.vehicleItemLibrary.verificationScheme'),
|
||||||
trigger: 'blur'
|
trigger: 'blur'
|
||||||
},
|
},
|
||||||
// 预计整改完成日期
|
// 预计整改完成日期
|
||||||
@@ -553,8 +571,13 @@ export default {
|
|||||||
formArr: [
|
formArr: [
|
||||||
{
|
{
|
||||||
fieldShowType: 1,
|
fieldShowType: 1,
|
||||||
dbFieldTxt: this.$t('projectLibrary.specialProjectLibrary.basisDescription'),
|
dbFieldTxt: this.$t('projectLibrary.vehicleItemLibrary.riskPoint'),
|
||||||
dbFieldName: 'description'
|
dbFieldName: 'riskPoints'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
fieldShowType: 1,
|
||||||
|
dbFieldTxt: this.$t('projectLibrary.vehicleItemLibrary.verificationScheme'),
|
||||||
|
dbFieldName: 'validateSolution'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldShowType: 3,
|
fieldShowType: 3,
|
||||||
@@ -1104,6 +1127,18 @@ export default {
|
|||||||
*/
|
*/
|
||||||
handleEvaluationFeedBackChange (value, record, index) {
|
handleEvaluationFeedBackChange (value, record, index) {
|
||||||
record.evaluationFeedback = value
|
record.evaluationFeedback = value
|
||||||
|
// 处理变化之后清空之前的数据
|
||||||
|
const extraFormKeys = Object.keys(this.extraForm)
|
||||||
|
let deleteField = []
|
||||||
|
for (const key of extraFormKeys) {
|
||||||
|
if (key !== value) {
|
||||||
|
const fields = this.extraForm[key].formArr.map(tt => tt.dbFieldName)
|
||||||
|
deleteField = [...deleteField, ...fields]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (const fieldName of deleteField) {
|
||||||
|
delete record[fieldName]
|
||||||
|
}
|
||||||
this.$set(this.dataSource, index, record)
|
this.$set(this.dataSource, index, record)
|
||||||
},
|
},
|
||||||
dealFormData () {
|
dealFormData () {
|
||||||
@@ -1130,6 +1165,11 @@ export default {
|
|||||||
processProjectAssess, processProjectAssessLinkList, processProjectAssessTermList
|
processProjectAssess, processProjectAssessLinkList, processProjectAssessTermList
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
// 设计工程师评估节点,expand-table校验
|
||||||
|
if ((this.currentNode === ProjectComplianceEvaluationProcessNode.designEngineerEvaluation.value || this.currentNode === ProjectComplianceEvaluationProcessNode.moduleOwnerModification.value) && !this.$refs.expandTable.submit()) {
|
||||||
|
this.$message.warning(this.$t('workCenter.checkTableRequired'))
|
||||||
|
flag = false
|
||||||
|
}
|
||||||
const data = JSON.parse(JSON.stringify(this.dataSource))
|
const data = JSON.parse(JSON.stringify(this.dataSource))
|
||||||
formData.businessInfoDTO = {
|
formData.businessInfoDTO = {
|
||||||
processProjectAssessTermList: data
|
processProjectAssessTermList: data
|
||||||
|
|||||||
@@ -226,7 +226,7 @@
|
|||||||
class="opinion-select"
|
class="opinion-select"
|
||||||
dict-code="consultation_opinion"
|
dict-code="consultation_opinion"
|
||||||
:placeholder="$t('pleaseSelect') + $t('workCenter.esInspectionPlan.opinion')"
|
:placeholder="$t('pleaseSelect') + $t('workCenter.esInspectionPlan.opinion')"
|
||||||
@change="value => {handleOpinionChange(value, index)}" />
|
@change="value => {handleOpinionChange(value, index, record)}" />
|
||||||
</template>
|
</template>
|
||||||
</j-expand-table>
|
</j-expand-table>
|
||||||
</template>
|
</template>
|
||||||
@@ -1191,9 +1191,23 @@ export default {
|
|||||||
* 修改意见
|
* 修改意见
|
||||||
* @param value
|
* @param value
|
||||||
* @param index
|
* @param index
|
||||||
|
* @param record
|
||||||
*/
|
*/
|
||||||
handleOpinionChange (value, index) {
|
handleOpinionChange (value, index, record) {
|
||||||
this.$set(this.dataSource[index], 'isAdopt', value)
|
record.isAdopt = value
|
||||||
|
// 处理变化之后清空之前的数据
|
||||||
|
const extraFormKeys = Object.keys(this.extraForm)
|
||||||
|
let deleteField = []
|
||||||
|
for (const key of extraFormKeys) {
|
||||||
|
if (key !== value) {
|
||||||
|
const fields = this.extraForm[key].formArr.map(tt => tt.dbFieldName)
|
||||||
|
deleteField = [...deleteField, ...fields]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (const fieldName of deleteField) {
|
||||||
|
delete record[fieldName]
|
||||||
|
}
|
||||||
|
this.$set(this.dataSource, index, record)
|
||||||
},
|
},
|
||||||
showContent (text) {
|
showContent (text) {
|
||||||
this.$refs.textContentModal.open(text)
|
this.$refs.textContentModal.open(text)
|
||||||
|
|||||||
Reference in New Issue
Block a user