update 标准法规入库/变更流程、法规采购流程
This commit is contained in:
+21
-10
@@ -174,7 +174,7 @@
|
|||||||
v-model="formInline[item.dbFieldName]" :rows="4" />
|
v-model="formInline[item.dbFieldName]" :rows="4" />
|
||||||
<!-- 6, 标准多选 -->
|
<!-- 6, 标准多选 -->
|
||||||
<standard-selection v-else-if="item.fieldShowType === FieldType.STANDARD_MORE.value"
|
<standard-selection v-else-if="item.fieldShowType === FieldType.STANDARD_MORE.value"
|
||||||
:source="formInline.source"
|
:source="getStandardSource(item)"
|
||||||
:disabledSourceSearch="true"
|
:disabledSourceSearch="true"
|
||||||
:disabled="disabled || disabledFieldList.includes(item.dbFieldName)"
|
:disabled="disabled || disabledFieldList.includes(item.dbFieldName)"
|
||||||
:exclude-standard-numbers="excludeStandardFields.includes(item.dbFieldName) ? excludeStandardNumbers : null"
|
:exclude-standard-numbers="excludeStandardFields.includes(item.dbFieldName) ? excludeStandardNumbers : null"
|
||||||
@@ -464,13 +464,21 @@ export default {
|
|||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
if (this.$route.query.processInstanceId || this.$route.query.draftId) {
|
if (this.$route.query.processInstanceId || this.$route.query.draftId) {
|
||||||
|
this.currentNode = this.$route.query.nodeId || FGEntryChangeProcessNode.initiate.value
|
||||||
this.initProcessData()
|
this.initProcessData()
|
||||||
} else {
|
} else {
|
||||||
this.currentNode = FGEntryChangeProcessNode.initiate.value
|
this.currentNode = FGEntryChangeProcessNode.initiate.value
|
||||||
this.btnList = FGEntryChangeProcessNode.initiate.btn
|
|
||||||
// 默认选中国内
|
// 默认选中国内
|
||||||
this.initDomesticStandardForm()
|
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.getPersonInfoStructure(ProcessKey.FB_ENTRY_CHANGE.value, () => {
|
||||||
this.initPersonInfoData(this.currentNode === FGEntryChangeProcessNode.initiate.value)
|
this.initPersonInfoData(this.currentNode === FGEntryChangeProcessNode.initiate.value)
|
||||||
@@ -528,14 +536,6 @@ export default {
|
|||||||
this.formInline[field.dbFieldName] = this.formInline[field.dbFieldName] || null
|
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 {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
@@ -1063,6 +1063,17 @@ export default {
|
|||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.loading = false
|
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 () {
|
created () {
|
||||||
if (this.$route.query.processInstanceId || this.$route.query.draftId) {
|
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()
|
this.initProcessInfo()
|
||||||
} else {
|
} else {
|
||||||
this.currentNode = ProcurementProcessNodes.initiate.value
|
this.currentNode = ProcurementProcessNodes.initiate.value
|
||||||
@@ -277,11 +277,17 @@ export default {
|
|||||||
this.$message.warning(this.$t('selectARecord'))
|
this.$message.warning(this.$t('selectARecord'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const data = JSON.parse(JSON.stringify(this.dataSource))
|
this.$confirm({
|
||||||
this.dataSource = data.map((tt, index) => {
|
title: this.$t('confirmBatchDeletion'),
|
||||||
return this.selectedRowKeys.includes(index) ? null : tt
|
content: this.$t('deleteAData'),
|
||||||
}).filter(tt => !!tt)
|
onOk: () => {
|
||||||
this.selectedRowKeys = []
|
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) {
|
handleEdit (record, index) {
|
||||||
this.$refs.modalForm.edit(record, index)
|
this.$refs.modalForm.edit(record, index)
|
||||||
@@ -290,7 +296,7 @@ export default {
|
|||||||
this.$confirm({
|
this.$confirm({
|
||||||
title: this.$t('confirmDeletion'),
|
title: this.$t('confirmDeletion'),
|
||||||
content: this.$t('areYouSure'),
|
content: this.$t('areYouSure'),
|
||||||
ok: () => {
|
onOk: () => {
|
||||||
this.dataSource.splice(index, 1)
|
this.dataSource.splice(index, 1)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -539,7 +545,7 @@ export default {
|
|||||||
// 销毁这个提示
|
// 销毁这个提示
|
||||||
modalLoading.destroy()
|
modalLoading.destroy()
|
||||||
})
|
})
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user