Browse Source

组织架构,项目

master
mch 2 years ago
parent
commit
3806032c13
  1. 7
      src/views/Home.vue
  2. 67
      src/views/fee-settings/Item.vue
  3. 53
      src/views/fee-settings/SysParmType.vue
  4. 51
      src/views/user-list/OrganizationUnits.vue

7
src/views/Home.vue

@ -16,7 +16,6 @@
>退出登录</el-dropdown-item
>
<el-dropdown-item>修改密码</el-dropdown-item>
<el-dropdown-item>螺蛳粉</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
@ -160,13 +159,13 @@
<el-menu-item index="reference-range"
><i class="el-icon-menu"></i>参考范围</el-menu-item
>
<el-menu-item index="sex-hormone-reference-range"
<el-menu-item index="sex-hormone-reference-range"
><i class="el-icon-menu"></i>性激素参考范围</el-menu-item
>
<el-menu-item index="diagnosis"
><i class="el-icon-menu"></i>诊断</el-menu-item
>
<el-menu-item index="diagnosis-template"
<el-menu-item index="diagnosis-template"
><i class="el-icon-menu"></i>诊断模板</el-menu-item
>
<el-menu-item index="item-result-template"
@ -181,7 +180,7 @@
<el-menu-item index="medical-package"
><i class="el-icon-menu"></i>套餐</el-menu-item
>
<el-menu-item index="sys-parm-type"
<el-menu-item index="sys-parm-type"
><i class="el-icon-menu"></i>系统参数类别</el-menu-item
>
</el-submenu>

67
src/views/fee-settings/Item.vue

@ -386,28 +386,17 @@
<el-table-column label="结果" prop="result"></el-table-column>
<el-table-column label="项目结果">
<template slot-scope="scope">
{{scope.row.id}}
</template>
</el-table-column>
<el-table-column label="类别">
<template slot-scope="scope">
<el-select
v-model="sexname[scope.row.displayName - 1]"
placeholder="请选择"
>
<el-option
v-for="item in resultitemtype"
:key="item.id"
:label="item.displayName"
:value="item.id"
>
</el-option>
</el-select>
{{ scope.row.id }}
</template>
</el-table-column>
<el-table-column label="诊断">
<template>
</template>
</el-table-column>
</el-table>
</div>
<div style="margin-top: 5px">
<div style="margin-top: 5px; margin-left: 15px">
<el-button type="primary" @click="increase">添加1</el-button>
<div style="margin-top: 5px">
<el-button type="primary" @click="resultediting">编辑</el-button>
@ -415,11 +404,11 @@
<div style="margin-top: 5px">
<el-button type="primary" @click="delemtdelite">删除</el-button>
</div>
<div style="margin-top: 5px">
<!-- <div style="margin-top: 5px">
<el-button type="primary" @click="templatecategory"
>模板类别</el-button
>
</div>
</div> -->
<div style="margin-top: 5px">
<el-button type="primary" @click="diagnosticmatching"
>诊断匹配</el-button
@ -1225,7 +1214,7 @@ export default {
this.itemTypeId = res.data;
});
},
//
//
diagnosticsadd() {
postapi("/api/app/diagnosis", this.editdigoisceditingform).then((res) => {
this.$message.success("添加成功");
@ -1255,24 +1244,26 @@ export default {
this.diageoisaddId();
},
//
//
diagnosticmatching() {
this.diagnosdialogVisible = true;
console.log(this.diagnosdialogVisible);
postapi("/api/app/diagnosis/getlistinfilter").then((res) => {
this.diagnosticdata = res.data.items;
console.log(res);
});
// this.diagnosdialogVisible = true;
// console.log(this.diagnosdialogVisible);
// postapi("/api/app/diagnosis/getlistinfilter").then((res) => {
// this.diagnosticdata = res.data.items;
// console.log(res);
// });
this.$router.push({ path: "/diagnosis" });
},
//
resultaddition() {},
//
templatecategory() {
getapi("/api/app/item-result-template").then((res) => {
this.projectdata = res.data.items;
console.log(res);
});
this.projectdialogVisible = true;
},
// templatecategory() {
// getapi("/api/app/item-result-template").then((res) => {
// this.projectdata = res.data.items;
// console.log(res);
// });
// this.projectdialogVisible = true;
// },
//
bottoming() {
if (this.rusetform.id == undefined) {
@ -1384,7 +1375,6 @@ export default {
this.$message.warning("请选择操作的数据");
} else {
this.referencerangedialogVisible = true;
console.log("11111111");
}
},
@ -1407,6 +1397,7 @@ export default {
this.addoredit();
this.ruesttiele = 1;
this.ruesttieledialogVisible = true;
this.rusetform = {};
},
//
getmedicalconclusionlist() {
@ -1471,6 +1462,7 @@ export default {
resultlist() {
getapi("/api/app/item-result-template").then((res) => {
this.reusttableData = res.data.items;
console.log(res);
});
},
@ -1479,11 +1471,12 @@ export default {
this.$message.warning("请选择操作的数据");
} else {
this.rurestdialogVisible = true;
getapi("/api/app/item-result-template").then((res) => {
this.reusttableData = res.data.items;
console.log("2222222222222222");
console.log(res);
});
// //
////
getapi("/api/app/item-type/by-code-all").then((res) => {
this.resultitemtype = res.data;
console.log(res);

53
src/views/fee-settings/SysParmType.vue

@ -2,7 +2,29 @@
<div class="box">
<div style="width: 95%">
<el-card>
<el-table :data="tableData" style="width: 100%">
<!-- -->
<el-row>
<el-col :span="8">
<span>组织选择</span>
<el-select
v-model="organizationvalue"
placeholder="请选择"
style="margin-left: 15px"
filterable
@change="changvalue"
>
<el-option
v-for="item in organizationdata"
:key="item.id"
:label="item.displayName"
:value="item.id"
>
</el-option>
</el-select>
</el-col>
</el-row>
<!-- table列表 -->
<el-table :data="tableData" style="width: 100%; margin-top: 30px">
<el-table-column prop="displayName" label="名称" width="180">
</el-table-column>
<el-table-column prop="simpleCode" label="快捷码" width="180">
@ -17,19 +39,38 @@ import { getapi } from "@/api/api";
export default {
data() {
return {
organizationvalue: "",
organizationdata: [],
tableData: [],
};
},
created() {
this.getlist();
// this.getlist();
this.getoraniztion();
},
methods: {
getlist() {
getapi("/api/app/sys-parm-type").then((res) => {
this.tableData = res.data;
//
getoraniztion() {
getapi("/api/app/organization-units/organization-unit-by-is-peis").then(
(res) => {
this.organizationdata = res.data;
}
);
},
//
changvalue(v) {
getapi(`/api/app/sys-parm/in-sys-parm-value-name/${v}`).then(res=>{
this.tableData=res.data
console.log(res);
});
})
console.log(v);
},
// getlist() {
// getapi("/api/app/sys-parm-type").then((res) => {
// this.tableData = res.data;
// console.log(res);
// });
// },
},
};
</script>

51
src/views/user-list/OrganizationUnits.vue

@ -104,14 +104,14 @@ import {
deleteschema,
modifyedit,
} from "../../request/ruquset";
import { postapi, putapi } from "@/api/api";
import { postapi, putapi, getapi } from "@/api/api";
export default {
data() {
return {
form: {
parentId: "",
displayName: "",
isPeis: "",
isPeis: "N",
},
title: 1,
dialogVisible: false,
@ -128,6 +128,12 @@ export default {
this.getonorganization();
},
methods: {
//
closethebulletbox() {
this.dialogVisible = false;
this.form = {};
this.form.isPeis = "N";
},
//
organizationtreeaddoredit() {
if (this.title == 1) {
@ -138,6 +144,7 @@ export default {
}).then((res) => {
this.$message.success("新增成功");
this.dialogVisible = false;
this.form = {};
this.getonorganization();
});
}
@ -149,16 +156,18 @@ export default {
this.dialogVisible = false;
this.getonorganization();
});
}else if(this.title==3){
postapi("/api/app/organization-units/creatre", {
displayName: this.form.displayName,
isPeis: this.form.isPeis,
parentId:this.form.parentId
}).then((res) => {
this.$message.success("新增成功");
this.dialogVisible = false;
this.getonorganization();
});
} else if (this.title == 3) {
postapi("/api/app/organization-units/creatre", {
displayName: this.form.displayName,
isPeis: this.form.isPeis,
parentId: this.form.parentId,
}).then((res) => {
this.$message.success("新增成功");
this.dialogVisible = false;
this.form = {};
this.form.isPeis = "N";
this.getonorganization();
});
}
},
check(data) {
@ -193,9 +202,13 @@ export default {
//
append(node, data) {
this.title = 3;
this.dialogVisible = true;
this.form.parentId = data.id;
console.log(this.form.parentId);
if (this.title == 3) {
this.dialogVisible = true;
this.form.parentId = data.id;
this.form.displayName = "";
console.log(this.form.parentId);
}
// if(this.natureoptions)
// console.log(node, data);
// if (this.natureoptions.length == 0) {
@ -241,8 +254,12 @@ export default {
rena(node, data) {
this.dialogVisible = true;
this.title = 2;
this.form = data;
console.log(this.form);
getapi(`/api/app/organization-units?Id=${data.id}`).then((res) => {
this.form = res.data;
console.log(res);
});
// this.form = data;
// console.log(this.form);
// console.log(data);
// this.$prompt("", "", {
// confirmButtonText: "",

Loading…
Cancel
Save