update 标准法规入库/变更流程、法规采购流程
This commit is contained in:
+21
-10
@@ -174,7 +174,7 @@
|
||||
v-model="formInline[item.dbFieldName]" :rows="4" />
|
||||
<!-- 6, 标准多选 -->
|
||||
<standard-selection v-else-if="item.fieldShowType === FieldType.STANDARD_MORE.value"
|
||||
:source="formInline.source"
|
||||
:source="getStandardSource(item)"
|
||||
:disabledSourceSearch="true"
|
||||
:disabled="disabled || disabledFieldList.includes(item.dbFieldName)"
|
||||
:exclude-standard-numbers="excludeStandardFields.includes(item.dbFieldName) ? excludeStandardNumbers : null"
|
||||
@@ -464,13 +464,21 @@ export default {
|
||||
},
|
||||
created () {
|
||||
if (this.$route.query.processInstanceId || this.$route.query.draftId) {
|
||||
this.currentNode = this.$route.query.nodeId || FGEntryChangeProcessNode.initiate.value
|
||||
this.initProcessData()
|
||||
} else {
|
||||
this.currentNode = FGEntryChangeProcessNode.initiate.value
|
||||
this.btnList = FGEntryChangeProcessNode.initiate.btn
|
||||
// 默认选中国内
|
||||
this.initDomesticStandardForm()
|
||||
}
|
||||
// 获取按钮清单
|
||||
const btnList = FGEntryChangeProcessNode.propertyOfValue('btn', this.currentNode)
|
||||
if (btnList && btnList.length > 0) {
|
||||
this.btnList = btnList
|
||||
} else {
|
||||
this.btnList = FGEntryChangeProcessNode.approve.btn
|
||||
}
|
||||
this.disabled = FGEntryChangeProcessNode.propertyOfValue('disabled', this.currentNode) || false
|
||||
// 获取人员信息
|
||||
this.getPersonInfoStructure(ProcessKey.FB_ENTRY_CHANGE.value, () => {
|
||||
this.initPersonInfoData(this.currentNode === FGEntryChangeProcessNode.initiate.value)
|
||||
@@ -528,14 +536,6 @@ export default {
|
||||
this.formInline[field.dbFieldName] = this.formInline[field.dbFieldName] || null
|
||||
})
|
||||
})
|
||||
// 获取按钮清单
|
||||
const btnList = FGEntryChangeProcessNode.propertyOfValue('btn', this.$route.query.nodeId)
|
||||
if (btnList && btnList.length > 0) {
|
||||
this.btnList = btnList
|
||||
} else {
|
||||
this.btnList = FGEntryChangeProcessNode.approve.btn
|
||||
}
|
||||
this.disabled = FGEntryChangeProcessNode.propertyOfValue('disabled', this.$route.query.nodeId) || false
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
this.loading = false
|
||||
@@ -1063,6 +1063,17 @@ export default {
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 处理关联海外标准的特殊逻辑
|
||||
* @param item
|
||||
* @returns {*|string}
|
||||
*/
|
||||
getStandardSource (item) {
|
||||
if (item.dbFieldName === 'associated_foreign_standards') {
|
||||
return StandardSource.OVERSEAS.value
|
||||
}
|
||||
return this.formInline.source
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user