[update] 修改bug80037
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
<standard-selection v-else-if="item.fieldShowType === FieldType.STANDARD_MORE.value"
|
||||
:placeholder="specialPlaceholder[item.dbFieldName] || $t('pleaseSelectStandard')"
|
||||
:source="getFlag(item.dbFieldName)"
|
||||
:disabledSourceSearch="true"
|
||||
:disabledSourceSearch="!selectStandardCanUpdateTypeField.includes(item.dbFieldName)"
|
||||
:disabled="disabled || disabledFieldList.includes(item.dbFieldName)"
|
||||
:exclude-standard-numbers="excludeStandardFields.includes(item.dbFieldName) ? excludeStandardNumbers : null"
|
||||
v-model="formInline[item.dbFieldName]" />
|
||||
@@ -284,6 +284,14 @@ export default {
|
||||
default: () => {
|
||||
return {}
|
||||
}
|
||||
},
|
||||
// 选择标准组件可以修改来源的字段(暂时只有企标的引用标准用到)
|
||||
selectStandardCanUpdateTypeField: {
|
||||
type: Array,
|
||||
required: false,
|
||||
default: () => {
|
||||
return []
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
|
||||
@@ -12,10 +12,12 @@
|
||||
>
|
||||
<div class="custom-drawer-style-scroll">
|
||||
<a-spin :spinning="confirmLoading" style="width: 100%;height:100%">
|
||||
<!-- 引用标准可以选国标和外标 -->
|
||||
<add-form ref="addForm"
|
||||
:flag="StandardSource.ENTERPRISE.value"
|
||||
:defaultValue="{year_number: new Date().getFullYear() + '', try_flag: '0'}"
|
||||
:disabledFieldList="['standard_number', 'replaced_by_standard_number', 'referenced_standard']"
|
||||
:selectStandardCanUpdateTypeField="['reference_standard']"
|
||||
:hiddenFieldList="hiddenFieldList"
|
||||
:get-form-func="getFormFunc"
|
||||
:get-document-info-func="getDocumentInfoFunc"
|
||||
|
||||
@@ -280,7 +280,6 @@
|
||||
<a-form-model-item class="item-model" prop="referenceStandard">
|
||||
<standard-selection :source="StandardSource.ENTERPRISE.value"
|
||||
:disabled="disabled"
|
||||
:disabledSourceSearch="true"
|
||||
:exclude-standard-numbers="formInline.standardNumber"
|
||||
type="radio"
|
||||
v-model="formInline.referenceStandard" />
|
||||
|
||||
Reference in New Issue
Block a user