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

This commit is contained in:
赵霄
2023-11-28 13:49:27 +08:00
parent bbcd8486c2
commit 288f9a6ef8
2 changed files with 35 additions and 18 deletions
@@ -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
}
}
}
@@ -252,7 +252,7 @@ export default {
},
created () {
if (this.$route.query.processInstanceId || this.$route.query.draftId) {
this.currentNode = this.$route.query.nodeId
this.currentNode = this.$route.query.nodeId || ProcurementProcessNodes.initiate.value
this.initProcessInfo()
} else {
this.currentNode = ProcurementProcessNodes.initiate.value
@@ -277,11 +277,17 @@ export default {
this.$message.warning(this.$t('selectARecord'))
return
}
const data = JSON.parse(JSON.stringify(this.dataSource))
this.dataSource = data.map((tt, index) => {
return this.selectedRowKeys.includes(index) ? null : tt
}).filter(tt => !!tt)
this.selectedRowKeys = []
this.$confirm({
title: this.$t('confirmBatchDeletion'),
content: this.$t('deleteAData'),
onOk: () => {
const data = JSON.parse(JSON.stringify(this.dataSource))
this.dataSource = data.map((tt, index) => {
return this.selectedRowKeys.includes(index) ? null : tt
}).filter(tt => !!tt)
this.selectedRowKeys = []
}
})
},
handleEdit (record, index) {
this.$refs.modalForm.edit(record, index)
@@ -290,7 +296,7 @@ export default {
this.$confirm({
title: this.$t('confirmDeletion'),
content: this.$t('areYouSure'),
ok: () => {
onOk: () => {
this.dataSource.splice(index, 1)
}
})
@@ -539,7 +545,7 @@ export default {
// 销毁这个提示
modalLoading.destroy()
})
},
}
}
}
</script>