Browse Source

pacs

master
pengjun 1 year ago
parent
commit
006665fd4b
  1. 4
      public/sysConfig.json
  2. 9
      src/store/index.js
  3. 11
      src/views/common-settings/BigtextResultTypeEdit.vue
  4. 335
      src/views/fee-settings/BigtextResultTemplateEdit.vue
  5. 120
      src/views/fee-settings/ResultSetting.vue

4
public/sysConfig.json

@ -1,6 +1,6 @@
{
"apiurl": "http://192.168.2.67:9529",
"apiurl": "http://140.143.162.39:9529",
"softName": "神豚体检管理系统",
"pacsApi":"http://192.168.2.74:9529",
"pacsApi":"http://140.143.162.39:9529",
"dcmViewers":"http://192.168.2.74:5081"
}

9
src/store/index.js

@ -432,6 +432,7 @@ export default new Vuex.Store({
third_medical_center: { S: 0, M: 0 }, //
third_medical_center_booking_date: { S: 0, M: 0 }, //
bigtext_result_type: { S: 0, M: 0 }, //
bigtext_result_template: { S: 0, M: 0 },
},
//表当前数据(单条记录 S--single)
@ -473,7 +474,8 @@ export default new Vuex.Store({
common_table_type: { id: '' }, // 公共表
third_medical_center: { id: '' }, // 公共表
third_medical_center_booking_date: { id: '' }, // 公共表
bigtext_result_type:{ id: '' }
bigtext_result_type: { id: '' },
bigtext_result_template: { id: '' }
},
//表当前数据(多条记录 M--more)
tableM: {
@ -547,8 +549,9 @@ export default new Vuex.Store({
CommonTableTypeEdit: false, //公共表类别
CommonTableEdit: false, //公共表
PacsTemplate: false, // pacs结果模版
ThirdMedicalCenterEdit:false,
BigtextResultTypeEdit:false
ThirdMedicalCenterEdit: false,
BigtextResultTypeEdit: false,
BigtextResultTemplateEdit: false,
}
},

11
src/views/common-settings/BigtextResultTypeEdit.vue

@ -11,7 +11,7 @@
children: 'treeChildren',
label: 'displayName',
value: 'bigtextResultTypeId',
}" clearable size="small"></el-cascader>
}" disabled size="small"></el-cascader>
</el-form-item>
</el-col>
</el-row>
@ -177,6 +177,14 @@ export default {
dispEdit() {
//
postapi('/api/app/BigtextResultType/GetByCodeAll').then(res => {
if (res.code > -1) {
this.treeData = res.data
tcdate(this.treeData)
}
})
if (this.$refs.ruleForm !== undefined) {
this.$refs.ruleForm.resetFields();
}
@ -202,6 +210,7 @@ export default {
postapi('/api/app/BigtextResultType/Create', this.form).then(res => {
if (res.code > -1) {
this.refFunOther(res.data)
this.dataTransOpts.tableS.bigtext_result_type.id = res.data.id
this.dialogWin.BigtextResultTypeEdit = false
}
})

335
src/views/fee-settings/BigtextResultTemplateEdit.vue

@ -0,0 +1,335 @@
<template>
<div style="padding: 10px 0;">
<div>
<el-form :model="form" :rules="rules" ref="ruleForm" label-width="70px">
<el-row>
<el-col :span="24">
<el-form-item label="模板编号" prop="">
<el-input v-model="form.id" :disabled="true" size="small"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="词条类别" prop="bigtextResultTypeId">
<el-cascader v-model="form.bigtextResultTypeId" :options="bigtextResultTypeId" popper-class="example"
ref="bigtextResultTypeIds" @change="ischangsItemTypeId" :props="{
value: 'bigtextResultTypeId',
label: 'displayName',
children: 'treeChildren',
checkStrictly: true,
expandTrigger: 'hover',
}" size="small">
</el-cascader>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="模板名称" prop="displayName">
<el-input v-model="form.displayName" ref="refinput" size="small"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-divider></el-divider>
<el-row>
<el-col :span="5">
<el-form-item label="创建者">
<el-input v-model="form.creatorName" disabled size="small"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item label="创建时间" style="margin-left: -5%">
<el-input :value="form.creationTime | dateFormat" disabled style="width: 90%" size="small"></el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="修改者" style="margin-left: -25%">
<el-input v-model="form.creatorName" disabled size="small"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item label="修改时间" style="margin-left: -5%">
<el-input :value="form.lastModificationTime | dateFormat" disabled style="width: 90%"
size="small"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<div style="display: flex;justify-content: space-between;padding: 10px 0;">
<div></div>
<div>
<el-button @click="btnCancel" class="difference"> </el-button>
<el-button type="primary" @click="btnSubmit" class="commonbutton"> </el-button>
</div>
</div>
</div>
</template>
<script>
import { mapState } from "vuex";
import Sortable from "sortablejs";
import { getapi, postapi, deletapi } from "@/api/api";
import { examinationgender, instrumentlist } from "@/request/systemapi";
import { deepCopy, objCopy, dddw, tcdate } from "../../utlis/proFunc";
export default {
props: ["refParams", "refFunOther"],
data() {
return {
form: {
id: "",
displayName: "",
bigtextResultTypeId: "",
},
bigtextResultTypeId: [], //
rules: {
displayName: [
{ required: true, message: "请输入名称", trigger: "blur" },
],
bigtextResultTypeId: [
{ required: true, message: "请选择词条类别", trigger: "blur" },
]
}, //
};
},
created() {
},
mounted() {
// this.getBigtextResultType();
this.dispEdit()
},
updated() {
// this.$nextTick(() => {
// this.$refs.table.doLayout();
// });
},
computed: {
...mapState(["window", "dict", "dialogWin", "dataTransOpts"]),
},
methods: {
dddw,
//
getBigtextResultType() {
postapi('/api/app/BigtextResultType/GetByCodeAll').then((res) => {
if (res.code != -1) {
this.bigtextResultTypeId = res.data;
tcdate(this.bigtextResultTypeId)
}
});
},
ischangsItemTypeId(v) {
if (v) {
this.form.bigtextResultTypeId = v[v.length - 1]
} else {
this.form.bigtextResultTypeId = null
}
},
formFocus() {
this.$nextTick(() => {
this.$refs.refinput.focus();
});
},
//
dispEdit() {
//
this.getBigtextResultType()
console.log('this.refParams', this.refParams)
if (this.$refs.ruleForm !== undefined) {
this.$refs.ruleForm.resetFields();
}
if (this.refParams.id) {
objCopy(this.refParams, this.form)
postapi('/api/app/BigtextResultType/Get', { bigtextResultTemplateId: this.refParams.id }).then((res) => {
if (res.code > -1) {
objCopy(res.data, this.form);
this.formFocus()
}
})
} else {
objCopy(this.refParams, this.form)
this.formFocus()
}
},
btnCancel() {
this.dialogWin.BigtextResultTemplateEdit = false;
// this.$refs.bigtextResultTypeIds.toggleDropDownVisible();
},
//
btnSubmit() {
this.$refs.ruleForm.validate((v) => {
if (v) {
let obj = Object.assign({}, this.form, { bigtextResultTemplateId: this.form.id })
if (!this.form.id) {
postapi('/api/app/BigtextResultTemplate/Create', obj).then(res => {
if (res.code > -1) {
this.refFunOther(res.data)
this.dataTransOpts.tableS.bigtext_result_template.id = res.data.id
this.dialogWin.BigtextResultTemplateEdit = false;
}
})
} else {
postapi('/api/app/BigtextResultTemplate/Update', obj).then(res => {
if (res.code > -1) {
this.refFunOther(obj)
this.dialogWin.BigtextResultTemplateEdit = false;
}
})
}
}
});
},
},
//
watch: {
//
"dataTransOpts.refresh.bigtext_result_template.S": {
// immediate:true,
handler(newVal, oldVal) {
console.log(`watch dataTransOpts.refresh.bigtext_result_template.S newVal: ${newVal}, oldVal: ${oldVal}`);
if (newVal != oldVal) this.dispEdit()
}
},
},
};
</script>
<style scoped>
@import "../../assets/css/global_button.css";
@import "../../assets/css/global_dialog.css";
@import "../../assets/css/global_table.css";
@import "../../assets/css/global_form.css";
@import "../../assets/css/global_input.css";
@import "../../assets/css/global.css";
.mainleftbox {
flex: 1;
}
.Selectbutton {
margin: 0 20px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.mainbox {
display: flex;
justify-content: center;
margin-top: 5px;
}
.box {
display: flex;
flex-direction: column;
}
/* form表单每一项的下边距 */
:deep .el-form-item {
margin-bottom: 14px;
}
/* 去掉input textarea的手动扩张样式 */
:deep(.el-textarea__inner) {
resize: none;
}
/* el-dialog的头部样式 */
:deep .el-dialog__header {
padding: 11px 20px 11px;
}
/* el-dialog的主体样式 */
:deep .el-dialog__body {
padding: 0px 20px 0px;
}
/* el-divider样式 */
:deep .el-divider--horizontal {
margin: 0px 0 12px;
}
/* el-dialog的底部样式 */
:deep .el-dialog__footer {
padding: 0px 20px 14px;
}
/* 默认结果后面下拉框样式 */
:deep .downText .el-input--suffix .el-input__inner {
width: 0;
height: 100%;
padding: 0 19px;
}
/* 默认结果后面下拉框图标样式 */
:deep .downText .el-input--suffix .el-input__suffix {
right: 12px;
}
/* 默认结果后面下拉框 */
:deep .downText {
display: flex !important;
}
/* 诊断函数后面按钮样式 */
:deep .el-input-group__append {
padding: 0 11px;
}
/* 默认结果整体样式 */
.my-el-form-item :deep .el-form-item__content {
line-height: 0 !important;
}
.my-el-form-item :deep .el-input__icon {
line-height: 0 !important;
}
/* 指引信息 */
.guidelines :deep .el-form-item {
margin-bottom: 0;
}
.seachinput {
width: 250px;
margin-right: 110px;
}
:deep .seachinput .el-select {
width: 100%;
}
.layeredleftright {
width: 95%;
display: flex;
flex-direction: column;
}
:deep .el-tree-node>.el-tree-node__children {
overflow: visible;
}
:deep .el-form-item {
margin-bottom: 8px;
}
</style>

120
src/views/fee-settings/ResultSetting.vue

@ -195,6 +195,12 @@
<BigtextResultTypeEdit :refParams="bigtextResultType" :refFunOther="retBigtextResultType" />
</el-dialog>
<el-dialog :title="`${dataTransOpts.tableS.bigtext_result_template.id ? '编辑' : '新增'} -- 词条模板`"
:visible.sync="dialogWin.BigtextResultTemplateEdit" width="800px" @close="close_BigtextResultTemplateEdit"
:close-on-click-modal="false">
<BigtextResultTemplateEdit :refParams="bigtextResultTemplate" :refFunOther="retBigtextResultTemplate" />
</el-dialog>
<!-- 新增或者编辑弹框 -->
<el-dialog :title="title == 1 ? '新增' : '编辑'" :visible.sync="dialogVisible" width="800px" @close="bindidclose"
:close-on-click-modal="false">
@ -334,15 +340,11 @@ import { examinationgender, instrumentlist } from "@/request/systemapi";
import { deepCopy, objCopy, dddw, tcdate, arrayExistObj } from "../../utlis/proFunc";
import { getTreeNode, getTreePids, getTreeAllChildIdsById, madeTree } from "../../utlis/tree";
import BigtextResultTypeEdit from "../../views/common-settings/BigtextResultTypeEdit.vue"
import BigtextResultTemplateEdit from "../../views/fee-settings/BigtextResultTemplateEdit.vue"
import {
getporjectlists,
groupsandlist,
combination,
} from "@/request/commonapi";
export default {
components: {
BigtextResultTypeEdit
BigtextResultTypeEdit, BigtextResultTemplateEdit
},
data() {
return {
@ -427,7 +429,8 @@ export default {
initfiletelists: [],
bigtextResultTemplateId: "",
bigtextResultType: {}
bigtextResultType: {},
bigtextResultTemplate: {}
};
},
created() {
@ -498,7 +501,7 @@ export default {
items.push({
label: '新增结果模版',
onClick: () => {
this.editPacsTemplate({ id: '', displayName: '', bigtextResultTypeId: data.bigtextResultTypeId })
this.editPacsTemplate({ id: '', displayName: '', bigtextResultTypeId: data.parentId })
}
})
items.push({
@ -565,22 +568,72 @@ export default {
// "parentId": "3f36f000-4081-46b0-92b9-9923444c2a59",
// "itemTypeId": "3a133e27-4ae2-0d0f-8de7-cdf2bdf93ce4",
// "id": "0a8c3073-fbf7-
this.dataTransOpts.tableS.bigtext_result_type.id = data.id
this.bigtextResultType = data
this.dataTransOpts.refresh.bigtext_result_type.S++
this.dialogWin.BigtextResultTypeEdit = true
},
//
delPacsType(data) {
let bigtextResultTypeId = data.id;
this.$confirm("是否删除, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
cancelButtonClass: "difference",
confirmButtonClass: "commonbutton",
})
.then(() => {
postapi('/api/app/BigtextResultType/Delete', { bigtextResultTypeId }).then((res) => {
if (res.code > -1) {
//
let lfind = -1
if (data.parentId) {
//
let pNode = getTreeNode(this.pacsTemplateTree, 'children', 'id', data.parentId)
lfind = arrayExistObj(pNode['children'], 'id', data.id)
if (lfind > -1) pNode['children'].splice(lfind, 1)
} else {
lfind = arrayExistObj(this.pacsTemplateTree, 'id', data.id)
if (lfind > -1) this.pacsTemplateTree.splice(lfind, 1)
}
}
});
})
.catch(() => {
this.$message("取消成功");
});
},
editPacsTemplate(data) {
// "displayName": "",
// "bigtextResultTypeId": "a1b264d5-c690-49dd-8ff5-93d53e61852d",
// "id": "3a241898-e
this.dataTransOpts.tableS.bigtext_result_template.id = data.id
this.bigtextResultTemplate = data
this.dataTransOpts.refresh.bigtext_result_template.S++
this.dialogWin.BigtextResultTemplateEdit = true
},
delPacsTemplate(data) {
this.$confirm("是否确认删除, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
cancelButtonClass: "difference",
confirmButtonClass: "commonbutton",
}).then(() => {
postapi('/api/app/BigtextResultTemplate/Delete', { bigtextResultTemplateId: data.id }).then((res) => {
if (res.code != -1) {
let pNode = getTreeNode(this.pacsTemplateTree, 'children', 'id', data.parentId)
let lfind = arrayExistObj(pNode['children'], 'id', data.id)
if (lfind > -1) pNode['children'].splice(lfind, 1)
}
});
});
},
@ -588,22 +641,51 @@ export default {
this.bigtextResultType = bigtextResultType
},
close_BigtextResultTypeEdit() {
let parentNode = getTreeNode(this.pacsTemplateTree, 'children', 'id', this.bigtextResultType.parentId || null)
if (parentNode) {
retBigtextResultTemplate(bigtextResultTemplate) {
this.bigtextResultTemplate = Object.assign({}, bigtextResultTemplate, { parentId: bigtextResultTemplate.bigtextResultTypeId,isTemplate:'Y' })
},
if (!parentNode['children']) parentNode['children'] = []
let lfind = arrayExistObj(parentNode['children'], 'id', this.bigtextResultType.id)
if (lfind > -1) {
parentNode['children'][lfind].displayName = this.bigtextResultType.displayName
close_BigtextResultTypeEdit() {
//
if(!this.bigtextResultType.id) return
if (this.curTreeNode.id == this.bigtextResultType.id) {
this.curTreeNode.displayName = this.bigtextResultType.displayName
} else {
//
if (this.bigtextResultType.parentId) {
if (this.bigtextResultType.parentId == this.curTreeNode.parentId) {
//
let pNode = getTreeNode(this.pacsTemplateTree, 'children', 'id', this.bigtextResultType.parentId)
if (pNode && pNode['children']) pNode['children'].push(this.bigtextResultType)
} else {
//
if (!this.curTreeNode['children']) this.curTreeNode['children'] = []
this.curTreeNode['children'].push(this.bigtextResultType)
}
} else {
parentNode['children'].push(this.bigtextResultType)
//
this.pacsTemplateTree.push(this.bigtextResultType)
}
}
},
close_BigtextResultTemplateEdit() {
//
if(!this.bigtextResultTemplate.id) return
if (this.curTreeNode.id == this.bigtextResultTemplate.id) {
this.curTreeNode.displayName = this.bigtextResultTemplate.displayName
} else {
this.pacsTemplateTree.push(this.bigtextResultType)
//
if (this.bigtextResultTemplate.parentId == this.curTreeNode.parentId) {
//
let pNode = getTreeNode(this.pacsTemplateTree, 'children', 'id', this.bigtextResultTemplate.parentId)
if (pNode && pNode['children']) pNode['children'].push(this.bigtextResultTemplate)
} else {
//
if (!this.curTreeNode['children']) this.curTreeNode['children'] = []
this.curTreeNode['children'].push(this.bigtextResultTemplate)
}
}
},
//pacs

Loading…
Cancel
Save