update 标准法规入库/变更流程
This commit is contained in:
@@ -93,10 +93,10 @@
|
|||||||
<span class="required">*</span>
|
<span class="required">*</span>
|
||||||
<span class="title-text-text" :title="$t('log.operationType')">{{ $t('log.operationType') }}</span>
|
<span class="title-text-text" :title="$t('log.operationType')">{{ $t('log.operationType') }}</span>
|
||||||
</div>
|
</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"
|
<j-dict-select-tag class="box-input"
|
||||||
v-model="formInline.operationType"
|
v-model="formInline.operateType"
|
||||||
:disabled="disabled || disabledFieldList.includes('operationType')"
|
:disabled="disabled || disabledFieldList.includes('operateType')"
|
||||||
:placeholder="$t('pleaseSelect')+$t('log.operationType')"
|
:placeholder="$t('pleaseSelect')+$t('log.operationType')"
|
||||||
:type="'select'"
|
:type="'select'"
|
||||||
:triggerChange="false"
|
:triggerChange="false"
|
||||||
@@ -118,7 +118,7 @@
|
|||||||
:prop="item.dbFieldName"
|
:prop="item.dbFieldName"
|
||||||
v-if="item.dbFieldName === 'standard_number_temp'">
|
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"
|
:source="formInline.source"
|
||||||
:disabledSourceSearch="true"
|
:disabledSourceSearch="true"
|
||||||
:disabled="disabled || disabledFieldList.includes(item.dbFieldName)"
|
:disabled="disabled || disabledFieldList.includes(item.dbFieldName)"
|
||||||
@@ -436,7 +436,7 @@ export default {
|
|||||||
// 不可编辑的字段
|
// 不可编辑的字段
|
||||||
disabledFieldList () {
|
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']
|
return ['standard_name', 'replaced_by_standard_number', 'referenced_standard', 'standard_class', 'year_number']
|
||||||
}
|
}
|
||||||
@@ -444,7 +444,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 不能包含当前标准的字段
|
// 不能包含当前标准的字段
|
||||||
excludeStandardFields () {
|
excludeStandardFields () {
|
||||||
if (this.formInline.operationType === OperationType.CHANGE.value) {
|
if (this.formInline.operateType === OperationType.CHANGE.value) {
|
||||||
return ['substitute_standard_number', 'reference_standard']
|
return ['substitute_standard_number', 'reference_standard']
|
||||||
}
|
}
|
||||||
return []
|
return []
|
||||||
@@ -695,7 +695,7 @@ export default {
|
|||||||
this.formInline = {
|
this.formInline = {
|
||||||
source: this.formInline.source
|
source: this.formInline.source
|
||||||
}
|
}
|
||||||
this.formInline.operationType = value
|
this.formInline.operateType = value
|
||||||
},
|
},
|
||||||
switchChange (value) {
|
switchChange (value) {
|
||||||
this.switchValue = value
|
this.switchValue = value
|
||||||
@@ -889,7 +889,7 @@ export default {
|
|||||||
* @param list
|
* @param list
|
||||||
*/
|
*/
|
||||||
handleStandardChange (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
|
const standardId = list[0].id
|
||||||
switch (this.formInline.source) {
|
switch (this.formInline.source) {
|
||||||
case StandardSource.DOMESTIC.value:
|
case StandardSource.DOMESTIC.value:
|
||||||
|
|||||||
Reference in New Issue
Block a user