+
+
- 检查结果:
-
- 横排
- 纵排
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
检查结果:
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
-
+
-
-
-
-
-
- 清除
-
-
- 默认结果
-
- 确定
-
+
+ 清除
+
+
+ 默认结果
+
+
确定
@@ -142,76 +68,32 @@
import moment from "moment";
import { mapState } from "vuex";
import { getapi, postapi, putapi, deletapi } from "@/api/api";
-import {
- hadoopGet,
- hadoopPost,
- hadoopPut,
- hadoopDel,
-} from "../../api/hadoopApi";
-import {
- arrayReduce,
- arrayExistObj,
- deepCopy,
- reMadeOrgTree,
-} from "../../utlis/proFunc";
-import {
- getTreePids,
- getTreeAllChildIdsById,
- madeTree,
-} from "../../utlis/tree";
+
export default {
components: {},
props: ["refParams", "refFuncOther"],
data() {
return {
- filterText: "",
description: [], // 描述
conclusion: [], // 结论
descriptionChoosedPre: [], // 前次选中
descriptionChoosed: [], // 所有选中的描述的集合,切换部位时可用于描述初始化选择
conclusionChoosed: [], // 选中的结论
conclusionAll: [], // 所有选中的描述,对应的结论
- result: "", // 检查结果
- summary: "", // 小结
- pacsTemplateTree: [], //类别 + 模板树
- treeprops: {
- label: "displayName", // label/displayName
- value: "id",
- id: "id",
- children: "children",
- }, //树形组件的数据结构
- tabChoosed: "0",
- tabPosition: "top", // 多个明细检查排列方式
+ bigTexts:[] // 大文本词条
};
},
//
computed: {
...mapState(["window", "dialogWin", "doctorCheck"]),
-
- mainHeight() {
- return this.window.pageHeight - 118;
- },
-
- tableHeight() {
- return this.mainHeight - 120 - 80 - 80;
- },
-
- decLineCount() {
- return this.refParams.from == "dcm" ? 14 : 16;
- },
-
- conLineCount() {
- return this.refParams.from == "dcm" ? 7 : 8;
- },
},
//创建组件后
- created() {},
+ created() { },
//挂载组件完成
mounted() {
//获取体检单位列表树信息
-
this.init();
},
@@ -219,14 +101,14 @@ export default {
// 初始化数据
init() {
this.description = [];
- this.result = this.refParams.result || "";
- this.summary = this.refParams.summary || "";
- this.tabChoosed = this.refParams.index + "";
- this.tabPosition =
- this.doctorCheck.checkItemList.length > 5 ? "left" : "top";
- console.log("init");
- this.getPacsTemplateTree();
+ postapi('/api/app/BigtextResultTemplate/GetBigtextResultTemplateWithDetail',)
+ .then(res => {
+ if(res.code > -1){
+ this.bigTexts = res.data
+ }
+ })
+
},
// 显示tab标签名称,过长处理
@@ -260,15 +142,7 @@ export default {
});
},
- //树过滤
- filterNode(value, data) {
- //console.log(value,data)
- if (!value) return true;
- return (
- data["displayName"].indexOf(value) > -1 ||
- data["simpleCode"].indexOf(value.toUpperCase()) > -1
- );
- },
+
// 选择true或取消false 描述
chooseDescription(opraType) {
@@ -335,47 +209,12 @@ export default {
this.summary = summary;
// 没有结论时(取描述)
- if(!this.summary){
- if(this.doctorCheck.checkItemList.length > 0) this.summary = this.doctorCheck.checkItemList[0].result;
+ if (!this.summary) {
+ if (this.doctorCheck.checkItemList.length > 0) this.summary = this.doctorCheck.checkItemList[0].result;
}
},
- //获取pacs结果模板
- getPacsTemplateTree() {
- let resultType = [],
- resultTemplate = [],
- treeData = [];
- postapi("/api/app/BigtextResultType/GetList", {
- itemTypeId: this.refParams.row.itemTypeId,
- })
- .then((res) => {
- if (res.code > -1) {
- resultType = res.data;
- resultType.forEach((e) => {
- e.disabled = true;
- });
- return postapi("/api/app/BigtextResultTemplate/GetList", {});
- }
- })
- .then((res) => {
- if (res && res.code > -1) {
- res.data.forEach((e) => {
- resultTemplate.push(
- Object.assign({}, e, { parentId: e.bigtextResultTypeId })
- );
- });
- treeData = resultType.concat(resultTemplate);
- // console.log('treeData',treeData,resultType,)
- this.pacsTemplateTree = madeTree(
- treeData,
- "children",
- "parentId",
- "id",
- null
- );
- }
- });
- },
+
btnTest() {
console.log("this.descriptionChoosed", this.descriptionChoosed);
@@ -419,19 +258,10 @@ export default {
},
},
- watch: {
- filterText(newVal, oldVal) {
- if (newVal != oldVal) this.$refs["ref_tree"].filter(newVal);
- },
-
+ watch: {
"refParams.refresh"(newVal, oldVal) {
if (newVal && newVal != oldVal) this.init();
- },
-
- // 检查明细改变
- tabChoosed(newVal, oldVal) {
- if (newVal && newVal != oldVal) this.conclusion = [];
- },
+ }
},
};
@@ -442,7 +272,7 @@ export default {
@import "../../assets/css/global.css";
@import "../../assets/css/global_tree.css";
-:deep .el-tree-node > .el-tree-node__children {
+:deep .el-tree-node>.el-tree-node__children {
overflow: visible;
}
diff --git a/src/components/doctorCheck/PacsTemplateBak.vue b/src/components/doctorCheck/PacsTemplateBak.vue
new file mode 100644
index 0000000..72fe1ba
--- /dev/null
+++ b/src/components/doctorCheck/PacsTemplateBak.vue
@@ -0,0 +1,448 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ node.label }}
+
+
+
+
+
+
+
+
+
+
+ 检查结果:
+
+ 横排
+ 纵排
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 清除
+
+
+ 默认结果
+
+ 确定
+
+
+
+
+
+
+