|
@@ -220,17 +220,28 @@ const fileName = val => {
|
|
|
};
|
|
|
|
|
|
function personnel(value: any) {
|
|
|
- if (value.type === "group-category") {
|
|
|
- return;
|
|
|
+ function document() {
|
|
|
+ const id = value.emrDocumentId;
|
|
|
+ const find = XEUtils.filter(root.store.store.currentDocumentData, item => {
|
|
|
+ return item.id === id;
|
|
|
+ });
|
|
|
+ if (find.length === 0) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ return <DocumentTag data={find} />;
|
|
|
}
|
|
|
- const id = value.emrDocumentId;
|
|
|
- const find = XEUtils.filter(root.store.store.currentDocumentData, item => {
|
|
|
- return item.id === id;
|
|
|
- });
|
|
|
- if (find.length === 0) {
|
|
|
+
|
|
|
+ const code = XEUtils.get(value, "emrCategoryCode", "");
|
|
|
+ if (isCourse(code) && value.type === "group-category") {
|
|
|
+ return document();
|
|
|
+ } else if (isCourse(code) && value.type === "category") {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (value.type === "group-category") {
|
|
|
return null;
|
|
|
}
|
|
|
- return <DocumentTag data={find} />;
|
|
|
+ return document();
|
|
|
}
|
|
|
</script>
|
|
|
|