update 标准法规入库/变更流程

This commit is contained in:
赵霄
2023-11-09 14:48:22 +08:00
parent 575a84d880
commit 4931caa58f
@@ -93,10 +93,10 @@
<span class="required">*</span>
<span class="title-text-text" :title="$t('log.operationType')">{{ $t('log.operationType') }}</span>
</div>
<a-form-model-item class="item-model" prop="operationType">
<a-form-model-item class="item-model" prop="operateType">
<j-dict-select-tag class="box-input"
v-model="formInline.operationType"
:disabled="disabled || disabledFieldList.includes('operationType')"
v-model="formInline.operateType"
:disabled="disabled || disabledFieldList.includes('operateType')"
:placeholder="$t('pleaseSelect')+$t('log.operationType')"
:type="'select'"
:triggerChange="false"
@@ -118,7 +118,7 @@
:prop="item.dbFieldName"
v-if="item.dbFieldName === 'standard_number_temp'">
<!--标准单选-->
<standard-selection v-if="formInline.operationType === OperationType.CHANGE.value"
<standard-selection v-if="formInline.operateType === OperationType.CHANGE.value"
:source="formInline.source"
:disabledSourceSearch="true"
:disabled="disabled || disabledFieldList.includes(item.dbFieldName)"
@@ -436,7 +436,7 @@ export default {
// 不可编辑的字段
disabledFieldList () {
// 标准法规变更
if (this.formInline.operationType === OperationType.CHANGE.value) {
if (this.formInline.operateType === OperationType.CHANGE.value) {
// 标准编号,被代替标准号,被引用标准号,标准类别,年代号
return ['standard_name', 'replaced_by_standard_number', 'referenced_standard', 'standard_class', 'year_number']
}
@@ -444,7 +444,7 @@ export default {
},
// 不能包含当前标准的字段
excludeStandardFields () {
if (this.formInline.operationType === OperationType.CHANGE.value) {
if (this.formInline.operateType === OperationType.CHANGE.value) {
return ['substitute_standard_number', 'reference_standard']
}
return []
@@ -695,7 +695,7 @@ export default {
this.formInline = {
source: this.formInline.source
}
this.formInline.operationType = value
this.formInline.operateType = value
},
switchChange (value) {
this.switchValue = value
@@ -889,7 +889,7 @@ export default {
* @param list
*/
handleStandardChange (list) {
if (this.formInline.operationType === OperationType.CHANGE.value && list && list.length > 0) {
if (this.formInline.operateType === OperationType.CHANGE.value && list && list.length > 0) {
const standardId = list[0].id
switch (this.formInline.source) {
case StandardSource.DOMESTIC.value: