[update] 修改bug86564
This commit is contained in:
+64
-57
@@ -2,78 +2,80 @@
|
|||||||
<j-modal
|
<j-modal
|
||||||
:title="title"
|
:title="title"
|
||||||
:maskClosable="true"
|
:maskClosable="true"
|
||||||
:width="1200"
|
:width="800"
|
||||||
:closable="true"
|
:closable="true"
|
||||||
switchFullscreen
|
switchFullscreen
|
||||||
:footer="false"
|
:footer="false"
|
||||||
@cancel="handleCancel"
|
@cancel="handleCancel"
|
||||||
:visible="visible">
|
:visible="visible">
|
||||||
|
|
||||||
<div class="table-page-search-wrapper">
|
<a-spin :spinning="confirmLoading">
|
||||||
<a-row :gutter="24">
|
<a-form :form="form">
|
||||||
<!-- 不满足要求的现状 -->
|
<!-- 不满足要求的现状 -->
|
||||||
<a-col :sm="5" :offset="1">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.theStatusNotMeetRequirements')">
|
||||||
<label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.theStatusNotMeetRequirements') }}</label>
|
<a-input :max-length="50"
|
||||||
</a-col>
|
disabled
|
||||||
<a-col :sm="16">
|
:placeholder="$t('pleaseEnter')+$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.theStatusNotMeetRequirements')"
|
||||||
<div>{{ model.unsatisfiedRequire }}</div>
|
v-decorator.trim="[ 'unsatisfiedRequire']"/>
|
||||||
</a-col>
|
</a-form-item>
|
||||||
</a-row>
|
<!-- 整改方案 -->
|
||||||
<a-row :gutter="24">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationPlan')">
|
||||||
<!-- 整改方案 -->
|
<a-input :max-length="50"
|
||||||
<a-col :sm="5" :offset="1">
|
disabled
|
||||||
<label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationPlan') }}</label>
|
:placeholder="$t('pleaseEnter')+$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationPlan')"
|
||||||
</a-col>
|
v-decorator.trim="[ 'correctionSolution']"/>
|
||||||
<a-col :sm="16">
|
</a-form-item>
|
||||||
<div>{{ model.correctionSolution }}</div>
|
<!-- 整改周期 -->
|
||||||
</a-col>
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationCycle')">
|
||||||
</a-row>
|
<j-dict-select-tag disabled
|
||||||
<a-row :gutter="24">
|
dict-code="correction_period"
|
||||||
<!-- 整改周期 -->
|
:placeholder="$t('pleaseSelect')+$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationCycle')"
|
||||||
<a-col :sm="5" :offset="1">
|
v-decorator.trim="[ 'correctionPeriod']"/>
|
||||||
<label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationCycle') }}</label>
|
</a-form-item>
|
||||||
</a-col>
|
<!-- 整改费用 -->
|
||||||
<a-col :sm="16">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationCost')">
|
||||||
<div>{{ model.correctionPeriod_dictText }}</div>
|
<a-input :max-length="50"
|
||||||
</a-col>
|
disabled
|
||||||
</a-row>
|
:placeholder="$t('pleaseEnter')+$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationCost')"
|
||||||
<a-row :gutter="24">
|
v-decorator.trim="[ 'correctionCost']"/>
|
||||||
<!-- 整改费用 -->
|
</a-form-item>
|
||||||
<a-col :sm="5" :offset="1">
|
<!-- 与其他项目共用性 -->
|
||||||
<label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationCost') }}</label>
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.sharedWithOtherProjects')">
|
||||||
</a-col>
|
<a-input :max-length="50"
|
||||||
<a-col :sm="16">
|
disabled
|
||||||
<div>{{ model.correctionCost }}</div>
|
:placeholder="$t('pleaseEnter')+$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.sharedWithOtherProjects')"
|
||||||
</a-col>
|
v-decorator.trim="[ 'commonality']"/>
|
||||||
</a-row>
|
</a-form-item>
|
||||||
<a-row :gutter="24">
|
<!-- 共用后本项目所需费用 -->
|
||||||
<!-- 与其他项目共用性 -->
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.costOfThisItemAfterSharing')">
|
||||||
<a-col :sm="5" :offset="1">
|
<a-input :max-length="50"
|
||||||
<label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.sharedWithOtherProjects') }}</label>
|
disabled
|
||||||
</a-col>
|
:placeholder="$t('pleaseEnter')+$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.costOfThisItemAfterSharing')"
|
||||||
<a-col :sm="16">
|
v-decorator.trim="[ 'commonalityCost']"/>
|
||||||
<div>{{ model.commonality }}</div>
|
</a-form-item>
|
||||||
</a-col>
|
</a-form>
|
||||||
</a-row>
|
</a-spin>
|
||||||
<a-row :gutter="24">
|
|
||||||
<!-- 共用后本项目所需费用 -->
|
|
||||||
<a-col :sm="5" :offset="1">
|
|
||||||
<label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.costOfThisItemAfterSharing') }}</label>
|
|
||||||
</a-col>
|
|
||||||
<a-col :sm="16">
|
|
||||||
<div>{{ model.commonalityCost }}</div>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</j-modal>
|
</j-modal>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import pick from 'lodash.pick'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'NonmatchItemLookModal',
|
name: 'NonmatchItemLookModal',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
confirmLoading: false,
|
||||||
|
labelCol: {
|
||||||
|
xs: { span: 24 },
|
||||||
|
sm: { span: 6 }
|
||||||
|
},
|
||||||
|
wrapperCol: {
|
||||||
|
xs: { span: 24 },
|
||||||
|
sm: { span: 16 }
|
||||||
|
},
|
||||||
|
form: this.$form.createForm(this),
|
||||||
title: this.$t('view'),
|
title: this.$t('view'),
|
||||||
visible: false,
|
visible: false,
|
||||||
model: {}
|
model: {}
|
||||||
@@ -82,7 +84,12 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
open (record) {
|
open (record) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
|
this.form.resetFields()
|
||||||
this.model = Object.assign({}, record)
|
this.model = Object.assign({}, record)
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.form.setFieldsValue(pick(this.model, 'unsatisfiedRequire', 'correctionSolution', 'correctionPeriod',
|
||||||
|
'correctionCost', 'commonality', 'commonalityCost'))
|
||||||
|
})
|
||||||
},
|
},
|
||||||
handleCancel () {
|
handleCancel () {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
|
|||||||
Reference in New Issue
Block a user