[update] 法规符合性评估库
This commit is contained in:
+3
-4
@@ -205,12 +205,11 @@ import UserSelectModal from '@/components/selection/UserSelectModal'
|
|||||||
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
||||||
import { RegulatoryComplianceCheckNodes, ProcessKey, ProcessType } from '../../../enums/commonEnums'
|
import { RegulatoryComplianceCheckNodes, ProcessKey, ProcessType } from '../../../enums/commonEnums'
|
||||||
import {
|
import {
|
||||||
getDataDraft, getLookData, processAddSign, processSave,
|
getDataDraft, getLookData, processAddSign, processSave, processTransfer,
|
||||||
regulatoryComplianceCheckAgree, regulatoryComplianceCheckApproval,
|
regulatoryComplianceCheckAgree, regulatoryComplianceCheckApproval,
|
||||||
regulatoryComplianceCheckGetDataById,
|
regulatoryComplianceCheckGetDataById,
|
||||||
regulatoryComplianceCheckReject,
|
regulatoryComplianceCheckReject,
|
||||||
regulatoryComplianceCheckSubmit,
|
regulatoryComplianceCheckSubmit
|
||||||
regulatoryComplianceCheckTurnTo
|
|
||||||
} from '../../../api/workCenter'
|
} from '../../../api/workCenter'
|
||||||
import pick from 'lodash.pick'
|
import pick from 'lodash.pick'
|
||||||
import EngineerInitBaseInfo from './modules/EngineerInitBaseInfo'
|
import EngineerInitBaseInfo from './modules/EngineerInitBaseInfo'
|
||||||
@@ -612,7 +611,7 @@ export default {
|
|||||||
const param = Object.assign({}, values)
|
const param = Object.assign({}, values)
|
||||||
param.userId = userIds
|
param.userId = userIds
|
||||||
param.taskId = this.$route.query.taskId
|
param.taskId = this.$route.query.taskId
|
||||||
regulatoryComplianceCheckTurnTo(param).then(res => {
|
processTransfer(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
|
|||||||
+19
-5
@@ -20,6 +20,7 @@
|
|||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:placeholder="$t('pleaseSelect')"
|
:placeholder="$t('pleaseSelect')"
|
||||||
dict-code="evaluation_result"
|
dict-code="evaluation_result"
|
||||||
|
@change="resultChange(record)"
|
||||||
v-model="record.result">
|
v-model="record.result">
|
||||||
</j-dict-select-tag>
|
</j-dict-select-tag>
|
||||||
</template>
|
</template>
|
||||||
@@ -90,7 +91,7 @@ export default {
|
|||||||
title: this.$t('modelStatus'),
|
title: this.$t('modelStatus'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'modelState_dictText',
|
dataIndex: 'modelStatus_dictText',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{ // 评价结果
|
{ // 评价结果
|
||||||
@@ -126,7 +127,7 @@ export default {
|
|||||||
2: { // 不符合
|
2: { // 不符合
|
||||||
rules: {
|
rules: {
|
||||||
// 整改周期
|
// 整改周期
|
||||||
correctionCycle: { required: true, message: this.$t('pleaseSelect') + this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'), trigger: 'blur' },
|
correctionPeriod: { required: true, message: this.$t('pleaseSelect') + this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'), trigger: 'blur' },
|
||||||
// 整改费用
|
// 整改费用
|
||||||
correctionCost: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCost'), trigger: 'blur' },
|
correctionCost: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCost'), trigger: 'blur' },
|
||||||
// 共用后本项目所需费用
|
// 共用后本项目所需费用
|
||||||
@@ -143,7 +144,7 @@ export default {
|
|||||||
fieldShowType: 5,
|
fieldShowType: 5,
|
||||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'),
|
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'),
|
||||||
fieldMustInput: true,
|
fieldMustInput: true,
|
||||||
dbFieldName: 'correctionCycle',
|
dbFieldName: 'correctionPeriod',
|
||||||
dictCode: 'correction_period'
|
dictCode: 'correction_period'
|
||||||
},
|
},
|
||||||
{ // 整改费用
|
{ // 整改费用
|
||||||
@@ -201,7 +202,7 @@ export default {
|
|||||||
4: { // 待验证
|
4: { // 待验证
|
||||||
rules: {
|
rules: {
|
||||||
// 整改周期
|
// 整改周期
|
||||||
correctionCycle: { required: true, message: this.$t('pleaseSelect') + this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'), trigger: 'blur' },
|
correctionPeriod: { required: true, message: this.$t('pleaseSelect') + this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'), trigger: 'blur' },
|
||||||
// 整改费用
|
// 整改费用
|
||||||
correctionCost: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCost'), trigger: 'blur' },
|
correctionCost: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCost'), trigger: 'blur' },
|
||||||
// 共用后本项目所需费用
|
// 共用后本项目所需费用
|
||||||
@@ -218,7 +219,7 @@ export default {
|
|||||||
fieldShowType: 5,
|
fieldShowType: 5,
|
||||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'),
|
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'),
|
||||||
fieldMustInput: true,
|
fieldMustInput: true,
|
||||||
dbFieldName: 'correctionCycle',
|
dbFieldName: 'correctionPeriod',
|
||||||
dictCode: 'correction_period'
|
dictCode: 'correction_period'
|
||||||
},
|
},
|
||||||
{ // 整改费用
|
{ // 整改费用
|
||||||
@@ -286,6 +287,19 @@ export default {
|
|||||||
}
|
}
|
||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
|
// 评估结果改变,清空备注和佐证材料,不满足要求的现状,整改方案,整改周期,整改费用,与其他项目共用性,共用后本项目所需费用
|
||||||
|
resultChange (record) {
|
||||||
|
const index = this.dataSource.findIndex(item => item.id === record.id)
|
||||||
|
this.dataSource[index].remark = ''
|
||||||
|
this.dataSource[index].material = ''
|
||||||
|
this.dataSource[index].unsatisfiedRequire = ''
|
||||||
|
this.dataSource[index].correctionSolution = ''
|
||||||
|
this.dataSource[index].correctionPeriod = null
|
||||||
|
this.dataSource[index].correctionPeriod_dictText = ''
|
||||||
|
this.dataSource[index].correctionCost = ''
|
||||||
|
this.dataSource[index].commonality = ''
|
||||||
|
this.dataSource[index].commonalityCost = ''
|
||||||
|
},
|
||||||
handleTableChange (pagination) {
|
handleTableChange (pagination) {
|
||||||
this.ipagination = pagination
|
this.ipagination = pagination
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -418,7 +418,7 @@ export default {
|
|||||||
title: this.$t('workCenter.regulatoryComplianceCheckProcess.modelStatus'),
|
title: this.$t('workCenter.regulatoryComplianceCheckProcess.modelStatus'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'modelState_dictText',
|
dataIndex: 'modelStatus_dictText',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{ // 责任部门
|
{ // 责任部门
|
||||||
|
|||||||
+2
-2
@@ -86,7 +86,7 @@ export default {
|
|||||||
title: this.$t('modelStatus'),
|
title: this.$t('modelStatus'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'modelState_dictText',
|
dataIndex: 'modelStatus_dictText',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{ // 责任部门
|
{ // 责任部门
|
||||||
@@ -128,7 +128,7 @@ export default {
|
|||||||
title: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'),
|
title: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'correctionCycle_dictText',
|
dataIndex: 'correctionPeriod_dictText',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{ // 整改费用
|
{ // 整改费用
|
||||||
|
|||||||
+1
-1
@@ -126,7 +126,7 @@ export default {
|
|||||||
title: this.$t('workCenter.regulatoryComplianceCheckProcess.modelStatus'),
|
title: this.$t('workCenter.regulatoryComplianceCheckProcess.modelStatus'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'modelState_dictText',
|
dataIndex: 'modelStatus_dictText',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
+4
-3
@@ -166,7 +166,7 @@ export default {
|
|||||||
title: this.$t('modelStatus'),
|
title: this.$t('modelStatus'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'modelState_dictText',
|
dataIndex: 'modelStatus_dictText',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{ // 责任部门
|
{ // 责任部门
|
||||||
@@ -208,7 +208,7 @@ export default {
|
|||||||
title: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'),
|
title: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'correctionCycle_dictText',
|
dataIndex: 'correctionPeriod_dictText',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{ // 整改费用
|
{ // 整改费用
|
||||||
@@ -374,7 +374,8 @@ export default {
|
|||||||
// 编辑完成
|
// 编辑完成
|
||||||
editOk (result) {
|
editOk (result) {
|
||||||
const index = this.dataSource.findIndex(item => item.id === result.id)
|
const index = this.dataSource.findIndex(item => item.id === result.id)
|
||||||
this.dataSource[index] = Object.assign({}, this.dataSource[index], result)
|
this.dataSource[index] = Object.assign({}, result)
|
||||||
|
this.$forceUpdate()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+100
-63
@@ -9,86 +9,98 @@
|
|||||||
@ok="handleOk"
|
@ok="handleOk"
|
||||||
@cancel="handleCancel">
|
@cancel="handleCancel">
|
||||||
|
|
||||||
<a-form :form="form">
|
<a-form :form="form" :class="$i18n.locale === EN ? 'english-form' : ''">
|
||||||
<!-- 评估人 -->
|
<!-- 评估人 -->
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('workCenter.regulatoryComplianceCheckProcess.appraiser')">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('workCenter.regulatoryComplianceCheckProcess.appraiser')">
|
||||||
<user-selection :placeholder="$t('pleaseSelect') + $t('workCenter.regulatoryComplianceCheckProcess.appraiser')"
|
<user-selection :placeholder="$t('pleaseSelect') + $t('workCenter.regulatoryComplianceCheckProcess.appraiser')"
|
||||||
type="radio"
|
type="radio"
|
||||||
:name-str="model.appraiser_dictText"
|
:name-str="model.assessor_dictText"
|
||||||
filed-name="appraiser"
|
filed-name="assessor"
|
||||||
@nameChange="handleNameChange"
|
@nameChange="handleNameChange"
|
||||||
@listChange="handleUserChange"
|
@listChange="handleUserChange"
|
||||||
v-decorator="['appraiser', validatorRules.appraiser]" />
|
v-decorator="['assessor', validatorRules.assessor]" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<!-- 评估结果 -->
|
<!-- 评估结果 -->
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('workCenter.regulatoryComplianceCheckProcess.evaluationResult')">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('workCenter.regulatoryComplianceCheckProcess.evaluationResult')">
|
||||||
<j-dict-select-tag :placeholder="$t('pleaseSelect') + $t('workCenter.regulatoryComplianceCheckProcess.evaluationResult')"
|
<j-dict-select-tag ref="resultRef"
|
||||||
|
:placeholder="$t('pleaseSelect') + $t('workCenter.regulatoryComplianceCheckProcess.evaluationResult')"
|
||||||
dict-code="evaluation_result"
|
dict-code="evaluation_result"
|
||||||
|
@change="resultChange"
|
||||||
v-decorator="['result', validatorRules.result]" />
|
v-decorator="['result', validatorRules.result]" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<!-- 不满足要求的现状 -->
|
<!-- 不符合和待验证 -->
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('workCenter.regulatoryComplianceCheckProcess.theStatusNotMeetRequirements')">
|
<template v-if="[EvaluationResult.INCONFORMITY.value, EvaluationResult.TO_BE_VERIFIED.value].includes(model.result)">
|
||||||
<a-textarea :placeholder="$t('pleaseEnter') + $t('workCenter.regulatoryComplianceCheckProcess.theStatusNotMeetRequirements')"
|
<!-- 整改周期 -->
|
||||||
:maxLength="500"
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle')">
|
||||||
:autoSize="{minRows: 4, maxRows: 6}"
|
<j-dict-select-tag :placeholder="$t('pleaseSelect') + $t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle')"
|
||||||
v-decorator="['unsatisfiedRequire', validatorRules.unsatisfiedRequire]" />
|
dict-code="correction_period"
|
||||||
</a-form-item>
|
v-decorator="['correctionPeriod', validatorRules.correctionPeriod]" />
|
||||||
<!-- 整改方案 -->
|
</a-form-item>
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('workCenter.regulatoryComplianceCheckProcess.rectificationPlan')">
|
<!-- 整改费用 -->
|
||||||
<a-textarea :placeholder="$t('pleaseEnter') + $t('workCenter.regulatoryComplianceCheckProcess.rectificationPlan')"
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('workCenter.regulatoryComplianceCheckProcess.rectificationCost')">
|
||||||
:maxLength="500"
|
<a-input :placeholder="$t('pleaseEnter') + $t('workCenter.regulatoryComplianceCheckProcess.rectificationCost')"
|
||||||
:autoSize="{minRows: 4, maxRows: 6}"
|
:maxLength="50"
|
||||||
v-decorator="['correctionSolution', validatorRules.correctionSolution]" />
|
v-decorator="['correctionCost', validatorRules.correctionCost]" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<!-- 整改周期 -->
|
<!-- 共用后本项目所需费用 -->
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle')">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('workCenter.regulatoryComplianceCheckProcess.costOfThisItemAfterSharing')">
|
||||||
<a-input :placeholder="$t('pleaseEnter') + $t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle')"
|
<a-input :placeholder="$t('pleaseEnter') + $t('workCenter.regulatoryComplianceCheckProcess.costOfThisItemAfterSharing')"
|
||||||
:maxLength="50"
|
:maxLength="50"
|
||||||
v-decorator="['correctionCycle', validatorRules.correctionCycle]" />
|
v-decorator="['commonalityCost', validatorRules.commonalityCost]" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<!-- 整改费用 -->
|
<!-- 不满足要求的现状 -->
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('workCenter.regulatoryComplianceCheckProcess.rectificationCost')">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('workCenter.regulatoryComplianceCheckProcess.theStatusNotMeetRequirements')">
|
||||||
<a-input :placeholder="$t('pleaseEnter') + $t('workCenter.regulatoryComplianceCheckProcess.rectificationCost')"
|
<a-textarea :placeholder="$t('pleaseEnter') + $t('workCenter.regulatoryComplianceCheckProcess.theStatusNotMeetRequirements')"
|
||||||
:maxLength="50"
|
:maxLength="500"
|
||||||
v-decorator="['correctionCost', validatorRules.correctionCost]" />
|
:autoSize="{minRows: 4, maxRows: 6}"
|
||||||
</a-form-item>
|
v-decorator="['unsatisfiedRequire', validatorRules.unsatisfiedRequire]" />
|
||||||
<!-- 与其他项目共用性 -->
|
</a-form-item>
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('workCenter.regulatoryComplianceCheckProcess.sharedWithOtherProjects')">
|
<!-- 整改方案 -->
|
||||||
<a-textarea :placeholder="$t('pleaseEnter') + $t('workCenter.regulatoryComplianceCheckProcess.sharedWithOtherProjects')"
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('workCenter.regulatoryComplianceCheckProcess.rectificationPlan')">
|
||||||
:maxLength="500"
|
<a-textarea :placeholder="$t('pleaseEnter') + $t('workCenter.regulatoryComplianceCheckProcess.rectificationPlan')"
|
||||||
:autoSize="{minRows: 4, maxRows: 6}"
|
:maxLength="500"
|
||||||
v-decorator="['commonality', validatorRules.commonality]" />
|
:autoSize="{minRows: 4, maxRows: 6}"
|
||||||
</a-form-item>
|
v-decorator="['correctionSolution', validatorRules.correctionSolution]" />
|
||||||
<!-- 共用后本项目所需费用 -->
|
</a-form-item>
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('workCenter.regulatoryComplianceCheckProcess.costOfThisItemAfterSharing')">
|
<!-- 与其他项目共用性 -->
|
||||||
<a-input :placeholder="$t('pleaseEnter') + $t('workCenter.regulatoryComplianceCheckProcess.costOfThisItemAfterSharing')"
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('workCenter.regulatoryComplianceCheckProcess.sharedWithOtherProjects')">
|
||||||
:maxLength="50"
|
<a-textarea :placeholder="$t('pleaseEnter') + $t('workCenter.regulatoryComplianceCheckProcess.sharedWithOtherProjects')"
|
||||||
v-decorator="['commonalityCost', validatorRules.commonalityCost]" />
|
:maxLength="500"
|
||||||
</a-form-item>
|
:autoSize="{minRows: 4, maxRows: 6}"
|
||||||
<!-- 备注 -->
|
v-decorator="['commonality', validatorRules.commonality]" />
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('remarks')">
|
</a-form-item>
|
||||||
<a-textarea :placeholder="$t('pleaseEnter') + $t('remarks')"
|
</template>
|
||||||
:maxLength="500"
|
<!-- 符合和不涉及 -->
|
||||||
:autoSize="{minRows: 4, maxRows: 6}"
|
<template v-else-if="[EvaluationResult.CONFORM_TO.value, EvaluationResult.NOT_INVOLVE.value].includes(model.result)">
|
||||||
v-decorator="['remark', validatorRules.remark]" />
|
<!-- 备注 -->
|
||||||
</a-form-item>
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('remarks')">
|
||||||
<!-- 佐证材料 -->
|
<a-textarea :placeholder="$t('pleaseEnter') + $t('remarks')"
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('supportingMaterial')">
|
:maxLength="500"
|
||||||
<j-upload return-id
|
:autoSize="{minRows: 4, maxRows: 6}"
|
||||||
v-decorator="['material', validatorRules.material]" />
|
v-decorator="['remark', validatorRules.remark]" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
<!-- 佐证材料 -->
|
||||||
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('supportingMaterial')">
|
||||||
|
<j-upload return-id
|
||||||
|
v-decorator="['material', validatorRules.material]" />
|
||||||
|
</a-form-item>
|
||||||
|
</template>
|
||||||
</a-form>
|
</a-form>
|
||||||
|
|
||||||
</j-modal>
|
</j-modal>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import UserSelection from '../../../../components/selection/UserSelection'
|
import UserSelection from '@/components/selection/UserSelection'
|
||||||
|
import { EvaluationResult } from '@/enums/commonEnums'
|
||||||
|
import pick from 'lodash.pick'
|
||||||
export default {
|
export default {
|
||||||
name: 'MainFinderCollectEditModal',
|
name: 'MainFinderCollectEditModal',
|
||||||
components: { UserSelection },
|
components: { UserSelection },
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
EN: 'en-us',
|
||||||
|
EvaluationResult,
|
||||||
title: this.$t('edit'),
|
title: this.$t('edit'),
|
||||||
width: 800,
|
width: 800,
|
||||||
visible: false,
|
visible: false,
|
||||||
@@ -97,15 +109,15 @@ export default {
|
|||||||
model: {},
|
model: {},
|
||||||
labelCol: {
|
labelCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
sm: { span: 4 }
|
sm: { span: 6 }
|
||||||
},
|
},
|
||||||
wrapperCol: {
|
wrapperCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
sm: { span: 20 }
|
sm: { span: 18 }
|
||||||
},
|
},
|
||||||
validatorRules: {
|
validatorRules: {
|
||||||
// 评估人
|
// 评估人
|
||||||
appraiser: {
|
assessor: {
|
||||||
rules: [{ required: true, message: this.$t('pleaseSelect') + this.$t('workCenter.regulatoryComplianceCheckProcess.appraiser') }],
|
rules: [{ required: true, message: this.$t('pleaseSelect') + this.$t('workCenter.regulatoryComplianceCheckProcess.appraiser') }],
|
||||||
validateTrigger: 'change'
|
validateTrigger: 'change'
|
||||||
},
|
},
|
||||||
@@ -125,7 +137,7 @@ export default {
|
|||||||
validateTrigger: 'blur'
|
validateTrigger: 'blur'
|
||||||
},
|
},
|
||||||
// 整改周期
|
// 整改周期
|
||||||
correctionCycle: {
|
correctionPeriod: {
|
||||||
rules: [{ required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle') }],
|
rules: [{ required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle') }],
|
||||||
validateTrigger: 'blur'
|
validateTrigger: 'blur'
|
||||||
},
|
},
|
||||||
@@ -156,6 +168,23 @@ export default {
|
|||||||
this.form.setFieldsValue(this.model)
|
this.form.setFieldsValue(this.model)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 评价结果改变
|
||||||
|
resultChange (value) {
|
||||||
|
this.model.result = value
|
||||||
|
this.model.result_dictText = this.$refs.resultRef.dictOptions.find(item => item.value === value).text
|
||||||
|
// 清空备注和佐证材料,不满足要求的现状,整改方案,整改周期,整改费用,与其他项目共用性,共用后本项目所需费用
|
||||||
|
this.model.remark = ''
|
||||||
|
this.model.material = ''
|
||||||
|
this.model.unsatisfiedRequire = ''
|
||||||
|
this.model.correctionSolution = ''
|
||||||
|
this.model.correctionPeriod = undefined
|
||||||
|
this.model.correctionPeriod_dictText = ''
|
||||||
|
this.model.correctionCost = ''
|
||||||
|
this.model.commonality = ''
|
||||||
|
this.model.commonalityCost = ''
|
||||||
|
this.form.setFieldsValue(pick(this.model, 'remark', 'material', 'unsatisfiedRequire', 'correctionSolution', 'correctionPeriod',
|
||||||
|
'correctionCost', 'commonality', 'commonalityCost'))
|
||||||
|
},
|
||||||
// 选择评估人变化,更新责任部门为评估人的部门
|
// 选择评估人变化,更新责任部门为评估人的部门
|
||||||
handleUserChange (list) {
|
handleUserChange (list) {
|
||||||
const data = list[0] || {}
|
const data = list[0] || {}
|
||||||
@@ -189,6 +218,14 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped lang="less">
|
||||||
|
.english-form {
|
||||||
|
/deep/ .ant-form-item-label {
|
||||||
|
max-width: 200px;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
padding-right: 3px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
+46
-8
@@ -18,6 +18,7 @@
|
|||||||
:placeholder="$t('pleaseSelect') + this.$t('workCenter.regulatoryComplianceCheckProcess.checkWhetherTheTaskIsDelivered')"
|
:placeholder="$t('pleaseSelect') + this.$t('workCenter.regulatoryComplianceCheckProcess.checkWhetherTheTaskIsDelivered')"
|
||||||
dict-code="yn"
|
dict-code="yn"
|
||||||
v-model="formInline.distributeFlag"
|
v-model="formInline.distributeFlag"
|
||||||
|
:disabled="formInline.lockDistributeFlag"
|
||||||
@change="distributeFlagChange">
|
@change="distributeFlagChange">
|
||||||
</j-dict-select-tag>
|
</j-dict-select-tag>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
@@ -84,6 +85,7 @@
|
|||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:placeholder="$t('pleaseSelect')"
|
:placeholder="$t('pleaseSelect')"
|
||||||
dict-code="evaluation_result"
|
dict-code="evaluation_result"
|
||||||
|
@change="resultChange(record)"
|
||||||
v-model="record.result">
|
v-model="record.result">
|
||||||
</j-dict-select-tag>
|
</j-dict-select-tag>
|
||||||
</template>
|
</template>
|
||||||
@@ -288,7 +290,7 @@ export default {
|
|||||||
title: this.$t('modelStatus'),
|
title: this.$t('modelStatus'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'modelState_dictText',
|
dataIndex: 'modelStatus_dictText',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{ // 设计工程师
|
{ // 设计工程师
|
||||||
@@ -342,7 +344,7 @@ export default {
|
|||||||
title: this.$t('modelStatus'),
|
title: this.$t('modelStatus'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'modelState_dictText',
|
dataIndex: 'modelStatus_dictText',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{ // 评价结果
|
{ // 评价结果
|
||||||
@@ -378,7 +380,7 @@ export default {
|
|||||||
2: { // 不符合
|
2: { // 不符合
|
||||||
rules: {
|
rules: {
|
||||||
// 整改周期
|
// 整改周期
|
||||||
correctionCycle: { required: true, message: this.$t('pleaseSelect') + this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'), trigger: 'blur' },
|
correctionPeriod: { required: true, message: this.$t('pleaseSelect') + this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'), trigger: 'blur' },
|
||||||
// 整改费用
|
// 整改费用
|
||||||
correctionCost: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCost'), trigger: 'blur' },
|
correctionCost: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCost'), trigger: 'blur' },
|
||||||
// 共用后本项目所需费用
|
// 共用后本项目所需费用
|
||||||
@@ -395,7 +397,7 @@ export default {
|
|||||||
fieldShowType: 5,
|
fieldShowType: 5,
|
||||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'),
|
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'),
|
||||||
fieldMustInput: true,
|
fieldMustInput: true,
|
||||||
dbFieldName: 'correctionCycle',
|
dbFieldName: 'correctionPeriod',
|
||||||
dictCode: 'correction_period'
|
dictCode: 'correction_period'
|
||||||
},
|
},
|
||||||
{ // 整改费用
|
{ // 整改费用
|
||||||
@@ -453,7 +455,7 @@ export default {
|
|||||||
4: { // 待验证
|
4: { // 待验证
|
||||||
rules: {
|
rules: {
|
||||||
// 整改周期
|
// 整改周期
|
||||||
correctionCycle: { required: true, message: this.$t('pleaseSelect') + this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'), trigger: 'blur' },
|
correctionPeriod: { required: true, message: this.$t('pleaseSelect') + this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'), trigger: 'blur' },
|
||||||
// 整改费用
|
// 整改费用
|
||||||
correctionCost: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCost'), trigger: 'blur' },
|
correctionCost: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCost'), trigger: 'blur' },
|
||||||
// 共用后本项目所需费用
|
// 共用后本项目所需费用
|
||||||
@@ -470,7 +472,7 @@ export default {
|
|||||||
fieldShowType: 5,
|
fieldShowType: 5,
|
||||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'),
|
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'),
|
||||||
fieldMustInput: true,
|
fieldMustInput: true,
|
||||||
dbFieldName: 'correctionCycle',
|
dbFieldName: 'correctionPeriod',
|
||||||
dictCode: 'correction_period'
|
dictCode: 'correction_period'
|
||||||
},
|
},
|
||||||
{ // 整改费用
|
{ // 整改费用
|
||||||
@@ -586,9 +588,32 @@ export default {
|
|||||||
// 排查任务是否下发改变
|
// 排查任务是否下发改变
|
||||||
distributeFlagChange (value) {
|
distributeFlagChange (value) {
|
||||||
if (value === YesOrNoEnum.YES.value) {
|
if (value === YesOrNoEnum.YES.value) {
|
||||||
this.dataSource = JSON.parse(JSON.stringify(this.dataSourceCopy))
|
// 把数据中的备注和佐证材料,不满足要求的现状,整改方案,整改周期,整改费用,与其他项目共用性,共用后本项目所需费用清空
|
||||||
|
const arr = this.dataSourceCopy.map(item => {
|
||||||
|
return {
|
||||||
|
...item,
|
||||||
|
remark: '',
|
||||||
|
material: '',
|
||||||
|
unsatisfiedRequire: '',
|
||||||
|
correctionSolution: '',
|
||||||
|
correctionPeriod: undefined,
|
||||||
|
correctionPeriod_dictText: '',
|
||||||
|
correctionCost: '',
|
||||||
|
commonality: '',
|
||||||
|
commonalityCost: ''
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.dataSource = JSON.parse(JSON.stringify(arr))
|
||||||
} else {
|
} else {
|
||||||
this.dataSourceEvaluate = JSON.parse(JSON.stringify(this.dataSourceCopy))
|
// 把数据中的设计工程师清空
|
||||||
|
const arr = this.dataSourceCopy.map(item => {
|
||||||
|
return {
|
||||||
|
...item,
|
||||||
|
designEngineer: '',
|
||||||
|
designEngineer_dictText: ''
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.dataSourceEvaluate = JSON.parse(JSON.stringify(arr))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 表格选中
|
// 表格选中
|
||||||
@@ -626,6 +651,19 @@ export default {
|
|||||||
const dataIndex = this.dataSource.findIndex(item => item.id === fieldName)
|
const dataIndex = this.dataSource.findIndex(item => item.id === fieldName)
|
||||||
this.dataSource[dataIndex].designEngineer_dictText = value
|
this.dataSource[dataIndex].designEngineer_dictText = value
|
||||||
},
|
},
|
||||||
|
// 评估结果改变,清空备注和佐证材料,不满足要求的现状,整改方案,整改周期,整改费用,与其他项目共用性,共用后本项目所需费用
|
||||||
|
resultChange (record) {
|
||||||
|
const index = this.dataSourceEvaluate.findIndex(item => item.id === record.id)
|
||||||
|
this.dataSourceEvaluate[index].remark = ''
|
||||||
|
this.dataSourceEvaluate[index].material = ''
|
||||||
|
this.dataSourceEvaluate[index].unsatisfiedRequire = ''
|
||||||
|
this.dataSourceEvaluate[index].correctionSolution = ''
|
||||||
|
this.dataSourceEvaluate[index].correctionPeriod = null
|
||||||
|
this.dataSourceEvaluate[index].correctionPeriod_dictText = ''
|
||||||
|
this.dataSourceEvaluate[index].correctionCost = ''
|
||||||
|
this.dataSourceEvaluate[index].commonality = ''
|
||||||
|
this.dataSourceEvaluate[index].commonalityCost = ''
|
||||||
|
},
|
||||||
// 导入
|
// 导入
|
||||||
handleImportExcel (info) {
|
handleImportExcel (info) {
|
||||||
// 限制导入大于500MB
|
// 限制导入大于500MB
|
||||||
|
|||||||
+2
-2
@@ -101,7 +101,7 @@ export default {
|
|||||||
title: this.$t('modelStatus'),
|
title: this.$t('modelStatus'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'modelState_dictText',
|
dataIndex: 'modelStatus_dictText',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{ // 责任部门
|
{ // 责任部门
|
||||||
@@ -143,7 +143,7 @@ export default {
|
|||||||
title: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'),
|
title: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'correctionCycle_dictText',
|
dataIndex: 'correctionPeriod_dictText',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{ // 整改费用
|
{ // 整改费用
|
||||||
|
|||||||
+1
-1
@@ -105,7 +105,7 @@ export default {
|
|||||||
title: this.$t('modelStatus'),
|
title: this.$t('modelStatus'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'modelState_dictText',
|
dataIndex: 'modelStatus_dictText',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{ // 设计工程师
|
{ // 设计工程师
|
||||||
|
|||||||
Reference in New Issue
Block a user