bug 78392

This commit is contained in:
赵霄
2023-11-10 15:21:49 +08:00
parent 1f2a14e259
commit 2e0ef053c5
2 changed files with 13 additions and 1 deletions
+12 -1
View File
@@ -51,7 +51,7 @@
v-model="formInline[item.dbFieldName]" :rows="4" />
<!-- 6, 标准多选 -->
<standard-selection v-else-if="item.fieldShowType === FieldType.STANDARD_MORE.value"
:source="flag"
:source="getFlag(item.dbFieldName)"
:disabledSourceSearch="true"
:disabled="disabled || disabledFieldList.includes(item.dbFieldName)"
:exclude-standard-numbers="excludeStandardFields.includes(item.dbFieldName) ? excludeStandardNumbers : null"
@@ -266,6 +266,14 @@ export default {
type: Boolean,
required: false,
default: false
},
// 选择标准字段和选择来源的对应关系
flagByField: {
type: Object,
required: false,
default: () => {
return {}
}
}
},
mounted () {
@@ -597,6 +605,9 @@ export default {
this.rules = Object.assign({}, rules)
this.clearValidate()
}
},
getFlag (fieldName) {
return this.flagByField[fieldName] || this.flag
}
}
}
@@ -21,6 +21,7 @@
:disabled-field-list="disabledField"
:exclude-standard-fields="excludeStandardFields"
domestic-special-check
:flag-by-field="{associated_foreign_standards: StandardSource.OVERSEAS.value}"
@submitFormData="submitFormData" />
</a-spin>
</div>