Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
2024-05-07 11:12:50 +08:00
commit bf84ff3273
16 changed files with 109 additions and 62 deletions

View File

@ -5,7 +5,7 @@ VUE_APP_TITLE = 新医路院后患者管理平台
ENV = 'development' ENV = 'development'
# 新医路院后患者管理平台/开发环境 # 新医路院后患者管理平台/开发环境
VUE_APP_BASE_API = 'http://8.131.93.145:54011' VUE_APP_BASE_API = 'http://192.168.16.48:8080'
# 路由懒加载 # 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true

View File

@ -470,7 +470,7 @@ export default {
this.getAgencyListinfo('CAMPUS', id, type) this.getAgencyListinfo('CAMPUS', id, type)
// let query = { // let query = {
// nodeType: 'DEPARTMENT', // nodeType: 'DEPARTMENT',
// agencyId: id, // hospitalAgencyId: id,
// } // }
// getDepartmentList(query).then(res => { // getDepartmentList(query).then(res => {
if (type) { if (type) {

View File

@ -190,7 +190,7 @@ export default {
// //
usergetListinfo() { usergetListinfo() {
usergetList({ usergetList({
agencyId: this.queryParams.hospitalAgencyId, hospitalAgencyId: this.queryParams.hospitalAgencyId,
postName: 'DOCTOR' postName: 'DOCTOR'
}).then(res => { }).then(res => {
this.attendingPhysicianlist = res.data this.attendingPhysicianlist = res.data
@ -312,7 +312,7 @@ export default {
this.getAgencyListinfo('CAMPUS', id) this.getAgencyListinfo('CAMPUS', id)
// let query = { // let query = {
// nodeType: 'DEPARTMENT', // nodeType: 'DEPARTMENT',
// agencyId: id, // hospitalAgencyId: id,
// } // }
// getDepartmentList(query).then(res => { // getDepartmentList(query).then(res => {
// this.departmentlist = res.data // this.departmentlist = res.data

View File

@ -223,7 +223,7 @@ export default {
// //
usergetListinfo() { usergetListinfo() {
usergetList({ usergetList({
agencyId: this.queryParams.hospitalAgencyId, hospitalAgencyId: this.queryParams.hospitalAgencyId,
postName: 'DOCTOR' postName: 'DOCTOR'
}).then(res => { }).then(res => {
this.attendingPhysicianlist = res.data this.attendingPhysicianlist = res.data
@ -345,7 +345,7 @@ export default {
this.getAgencyListinfo('CAMPUS', id) this.getAgencyListinfo('CAMPUS', id)
// let query = { // let query = {
// nodeType: 'DEPARTMENT', // nodeType: 'DEPARTMENT',
// agencyId: id, // hospitalAgencyId: id,
// } // }
// getDepartmentList(query).then(res => { // getDepartmentList(query).then(res => {
// this.departmentlist = res.data // this.departmentlist = res.data

View File

@ -713,7 +713,7 @@ export default {
// //
usergetListinfo(id, type) { usergetListinfo(id, type) {
usergetList({ usergetList({
agencyId: id, hospitalAgencyId: id,
postName: 'DOCTOR' postName: 'DOCTOR'
}).then(res => { }).then(res => {
if (type) { if (type) {
@ -785,7 +785,7 @@ export default {
this.getAgencyListinfo('CAMPUS', id, type) this.getAgencyListinfo('CAMPUS', id, type)
// let query = { // let query = {
// nodeType: 'DEPARTMENT', // nodeType: 'DEPARTMENT',
// agencyId: id, // hospitalAgencyId: id,
// } // }
// getDepartmentList(query).then(res => { // getDepartmentList(query).then(res => {
if (type) { if (type) {

View File

@ -1090,7 +1090,7 @@ export default {
this.form.diseaseTypeId = ''; this.form.diseaseTypeId = '';
let query = { let query = {
nodeType: 'DEPARTMENT', nodeType: 'DEPARTMENT',
agencyId: e, hospitalAgencyId: e,
} }
getDepartmentList(query).then(res => { getDepartmentList(query).then(res => {
this.Departmentdata = res.data this.Departmentdata = res.data

View File

@ -8,10 +8,10 @@
v-show="showSearch" v-show="showSearch"
label-width="100px" label-width="100px"
> >
<el-form-item label="服务方式名称" prop="serviceWayName"> <el-form-item label="服务内容" prop="serviceContent">
<el-input <el-input
v-model="queryParams.serviceWayName" v-model="queryParams.serviceContent"
placeholder="请输入服务方式名称" placeholder="请输入服务内容"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />

View File

@ -600,7 +600,7 @@ export default {
this.getAgencyListinfo('CAMPUS', id) this.getAgencyListinfo('CAMPUS', id)
// let query = { // let query = {
// nodeType: 'DEPARTMENT', // nodeType: 'DEPARTMENT',
// agencyId: id, // hospitalAgencyId: id,
// } // }
// getDepartmentList(query).then(res => { // getDepartmentList(query).then(res => {
this.queryParams.departmentId = null this.queryParams.departmentId = null

View File

@ -805,7 +805,7 @@ export default {
this.getAgencyListinfo('CAMPUS', id, type) this.getAgencyListinfo('CAMPUS', id, type)
// let query = { // let query = {
// nodeType: 'DEPARTMENT', // nodeType: 'DEPARTMENT',
// agencyId: id, // hospitalAgencyId: id,
// } // }
// getDepartmentList(query).then(res => { // getDepartmentList(query).then(res => {
if (type) { if (type) {
@ -893,7 +893,7 @@ export default {
// //
usergetListinfo(id, type) { usergetListinfo(id, type) {
usergetList({ usergetList({
agencyId: id, hospitalAgencyId: id,
postName: 'DOCTOR' postName: 'DOCTOR'
}).then(res => { }).then(res => {
if (type) { if (type) {

View File

@ -638,7 +638,7 @@ export default {
// //
usergetListinfotwo(id) { usergetListinfotwo(id) {
usergetList({ usergetList({
agencyId: id, hospitalAgencyId: id,
postName: 'DOCTOR' postName: 'DOCTOR'
}).then(res => { }).then(res => {
this.addsignattendingPhysicianlist = res.data this.addsignattendingPhysicianlist = res.data
@ -873,7 +873,7 @@ export default {
// //
usergetListinfo(id, type) { usergetListinfo(id, type) {
usergetList({ usergetList({
agencyId: id, hospitalAgencyId: id,
postName: 'DOCTOR' postName: 'DOCTOR'
}).then(res => { }).then(res => {
if (type) { if (type) {
@ -945,7 +945,7 @@ export default {
this.getAgencyListinfo('CAMPUS', id, type) this.getAgencyListinfo('CAMPUS', id, type)
// let query = { // let query = {
// nodeType: 'DEPARTMENT', // nodeType: 'DEPARTMENT',
// agencyId: id, // hospitalAgencyId: id,
// } // }
// getDepartmentList(query).then(res => { // getDepartmentList(query).then(res => {
if (type) { if (type) {

View File

@ -374,8 +374,9 @@
placeholder="请输入机构简称" placeholder="请输入机构简称"
/> />
</el-form-item> </el-form-item>
<el-form-item label="机构代码" prop="agencyCode"> <el-form-item label="机构代码" prop="agencyCode" v-if="disabled">
<el-input <el-input
:disabled="disabled"
maxlength="20" maxlength="20"
v-model="form.agencyCode" v-model="form.agencyCode"
style="width: 205px" style="width: 205px"
@ -581,6 +582,7 @@ export default {
name: "Agency", name: "Agency",
data() { data() {
return { return {
disabled: true,
arealist: [], arealist: [],
citylist: [], citylist: [],
arealists: [], arealists: [],
@ -1101,11 +1103,13 @@ export default {
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.open = true; this.open = true;
this.disabled = false;
this.title = "添加机构信息"; this.title = "添加机构信息";
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
this.disabled = true;
console.log(this.id); console.log(this.id);
if (this.id == "") { if (this.id == "") {

View File

@ -134,7 +134,13 @@
</template> </template>
</el-table-column> --> </el-table-column> -->
<el-table-column label="类别排序" align="center" prop="categorySort" /> <el-table-column label="类别排序" align="center" prop="categorySort" />
<el-table-column label="类别概述" align="center" prop="categoryRemark" />
<el-table-column
label="类别概述"
align="center"
prop="categoryRemark"
show-overflow-tooltip
/>
<el-table-column <el-table-column
label="操作" label="操作"
align="center" align="center"
@ -199,9 +205,10 @@
placeholder="请输入类别名称" placeholder="请输入类别名称"
/> />
</el-form-item> </el-form-item>
<el-form-item label="类别编码" prop="categoryCode"> <el-form-item label="类别编码" prop="categoryCode" v-if="disabled">
<el-input <el-input
maxlength="50" maxlength="50"
:disabled="disabled"
onKeyUp="value=value.replace(/[\W]/g,'')" onKeyUp="value=value.replace(/[\W]/g,'')"
v-model="form.categoryCode" v-model="form.categoryCode"
style="width: 250px" style="width: 250px"
@ -264,7 +271,7 @@ export default {
data() { data() {
return { return {
treeOptions: [], treeOptions: [],
disabled: true,
// //
loading: true, loading: true,
isResouceShow: 1, isResouceShow: 1,
@ -390,12 +397,14 @@ export default {
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.disabled = false;
this.open = true; this.open = true;
this.title = "添加机构类别"; this.title = "添加机构类别";
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
this.disabled = true;
const id = row.id || this.ids; const id = row.id || this.ids;
getAgencyCategory(id).then((response) => { getAgencyCategory(id).then((response) => {
this.form = response.data; this.form = response.data;

View File

@ -138,7 +138,7 @@
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<!-- <el-table-column label="主键id" align="center" prop="id" /> --> <!-- <el-table-column label="主键id" align="center" prop="id" /> -->
<!-- <el-table-column label="上级科室id" align="center" prop="parentDepartmentId" /> <!-- <el-table-column label="上级科室id" align="center" prop="parentDepartmentId" />
<el-table-column label="所属机构id" align="center" prop="agencyId" /> --> <el-table-column label="所属机构id" align="center" prop="hospitalAgencyId" /> -->
<!-- <el-table-column label="所属机构名称" align="center" prop="agencyName" /> --> <!-- <el-table-column label="所属机构名称" align="center" prop="agencyName" /> -->
<el-table-column <el-table-column
label="科室名称" label="科室名称"
@ -330,8 +330,8 @@
placeholder="请输入上级科室id" placeholder="请输入上级科室id"
/> />
</el-form-item> </el-form-item>
<el-form-item label="所属机构id" prop="agencyId"> <el-form-item label="所属机构id" prop="hospitalAgencyId">
<el-input v-model="form.agencyId" placeholder="请输入所属机构id" /> <el-input v-model="form.hospitalAgencyId" placeholder="请输入所属机构id" />
</el-form-item> </el-form-item>
<el-form-item label="所属机构名称" prop="agencyName"> <el-form-item label="所属机构名称" prop="agencyName">
<el-input <el-input
@ -408,17 +408,17 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="所属机构" prop="agencyName"> <el-form-item label="所属机构" prop="hospitalAgencyName">
<el-cascader <el-cascader
clearable clearable
:props="{ checkStrictly: true }" :props="{ checkStrictly: true }"
:options="treeOptions" :options="treeOptions"
@change="change($event)" @change="change($event)"
style="width: 205px; color: black" style="width: 205px; color: black"
v-model="form.agencyId" v-model="form.hospitalAgencyId"
:show-all-levels="false" :show-all-levels="false"
:placeholder=" :placeholder="
form.agencyName ? form.agencyName : '请选择所属机构' form.hospitalAgencyName ? form.hospitalAgencyName : '请选择所属机构'
" "
ref="cascader" ref="cascader"
:key="isResouceShow" :key="isResouceShow"
@ -682,8 +682,8 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
parentDepartmentId: null, parentDepartmentId: null,
agencyId: null, hospitalAgencyId: null,
agencyName: null, hospitalAgencyName: null,
departmentName: null, departmentName: null,
departmentCode: null, departmentCode: null,
departmentType: null, departmentType: null,
@ -724,7 +724,7 @@ export default {
id: "", id: "",
// //
rules: { rules: {
agencyName: [ hospitalAgencyName: [
{ required: true, message: "所属机构不能为空", trigger: "blur" }, { required: true, message: "所属机构不能为空", trigger: "blur" },
], ],
departmentName: [ departmentName: [
@ -834,14 +834,14 @@ export default {
change(e) { change(e) {
console.log(e, "78"); console.log(e, "78");
if (e) { if (e) {
this.form.agencyId = e[e.length - 1]; this.form.hospitalAgencyId = e[e.length - 1];
if (this.form.agencyId) { if (this.form.hospitalAgencyId) {
const arr = this.$refs["cascader"].getCheckedNodes()[0].pathLabels; const arr = this.$refs["cascader"].getCheckedNodes()[0].pathLabels;
// console.log(arr, "5555555"); // console.log(arr, "5555555");
this.form.agencyName = arr.slice(-1).join(","); this.form.hospitalAgencyName = arr.slice(-1).join(",");
// console.log(this.form.agencyName); // console.log(this.form.agencyName);
} else { } else {
this.form.agencyName = ""; this.form.hospitalAgencyName = "";
} }
} }
}, },
@ -912,7 +912,7 @@ export default {
// //
handleNodeClick(data) { handleNodeClick(data) {
console.log(data, "5"); console.log(data, "5");
this.queryParams.agencyId = data.id; this.queryParams.hospitalAgencyId = data.id;
this.getList(); this.getList();
}, },
/** 查询科室信息列表 */ /** 查询科室信息列表 */
@ -934,8 +934,8 @@ export default {
this.form = { this.form = {
id: null, id: null,
parentDepartmentId: null, parentDepartmentId: null,
agencyId: null, hospitalAgencyId: null,
agencyName: null, hospitalAgencyName: null,
departmentName: null, departmentName: null,
departmentCode: null, departmentCode: null,
departmentType: null, departmentType: null,

View File

@ -313,7 +313,7 @@ export default {
// //
usergetListinfo() { usergetListinfo() {
usergetList({ usergetList({
agencyId: this.queryParams.hospitalAgencyId, hospitalAgencyId: this.queryParams.hospitalAgencyId,
postName: 'DOCTOR' postName: 'DOCTOR'
}).then(res => { }).then(res => {
this.attendingPhysicianlist = res.data this.attendingPhysicianlist = res.data

View File

@ -372,7 +372,32 @@
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-form-item label="岗位名称" prop="postName">
<el-select
v-model="form.postName"
placeholder="请选择岗位名称"
style="width: 205px"
clearable
>
<el-option
v-for="item in nodeTypeoptions"
:key="item.dictValue"
:label="item.dictLabel"
:value="item.dictValue"
>
</el-option>
</el-select>
<!-- <el-select v-model="form.postName" placeholder="请选择岗位名称">
<el-option
v-for="dict in dict.nodeTypeoptions"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select> -->
</el-form-item>
</el-col>
<!-- <el-col :span="12"> <!-- <el-col :span="12">
<el-form-item label="归属部门" prop="deptId"> <el-form-item label="归属部门" prop="deptId">
<treeselect <treeselect
@ -481,7 +506,6 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
@ -875,6 +899,7 @@ import { getToken } from "@/utils/auth";
import { treeselect } from "@/api/system/dept"; import { treeselect } from "@/api/system/dept";
import Treeselect from "@riophae/vue-treeselect"; import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css"; import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import { getAgencytype } from "@/api/system/agency";
export default { export default {
name: "User", name: "User",
@ -976,7 +1001,7 @@ export default {
}, },
formlist: { formlist: {
userId: "", userId: "",
agencyId: "", hospitalAgencyId: "",
userName: "", userName: "",
}, },
formlistdep: { formlistdep: {
@ -991,7 +1016,7 @@ export default {
}, },
formlists: { formlists: {
userId: "", userId: "",
agencyId: "", hospitalAgencyId: "",
userName: "", userName: "",
}, },
// //
@ -1052,6 +1077,7 @@ export default {
], ],
}, },
// abc:{} // abc:{}
nodeTypeoptions: [],
}; };
}, },
watch: { watch: {
@ -1062,12 +1088,19 @@ export default {
}, },
created() { created() {
this.getList(); this.getList();
this.infopostname();
this.getTreeselect(); this.getTreeselect();
this.getConfigKey("sys.user.initPassword").then((response) => { this.getConfigKey("sys.user.initPassword").then((response) => {
this.initPassword = response.msg; this.initPassword = response.msg;
}); });
}, },
methods: { methods: {
infopostname() {
var dictType = "post_name";
getAgencytype(dictType).then((res) => {
this.nodeTypeoptions = res.data;
});
},
// // // //
handleSelectionChangendep(selection) { handleSelectionChangendep(selection) {
if (selection.length > 1) { if (selection.length > 1) {
@ -1109,7 +1142,7 @@ export default {
}); });
this.nowSelectData = selection; this.nowSelectData = selection;
if (selection.length > 0) { if (selection.length > 0) {
this.formlist.agencyId = selection[0].agencyId; this.formlist.hospitalAgencyId = selection[0].hospitalAgencyId;
} }
}, },
@ -1255,6 +1288,7 @@ export default {
userCardNo: undefined, userCardNo: undefined,
userBirthDate: undefined, userBirthDate: undefined,
sex: undefined, sex: undefined,
postName: undefined,
status: "0", status: "0",
remark: undefined, remark: undefined,
postIds: [], postIds: [],

View File

@ -227,7 +227,7 @@ export default {
// //
usergetListinfo() { usergetListinfo() {
usergetList({ usergetList({
agencyId: this.$route.query.hospitalAgencyId, hospitalAgencyId: this.$route.query.hospitalAgencyId,
postName: 'DOCTOR' postName: 'DOCTOR'
}).then(res => { }).then(res => {
this.attendingPhysicianlist = res.data this.attendingPhysicianlist = res.data
@ -237,7 +237,7 @@ export default {
changecampusAgency() { changecampusAgency() {
let query = { let query = {
nodeType: 'DEPARTMENT', nodeType: 'DEPARTMENT',
agencyId: this.$route.query.hospitalAgencyId, hospitalAgencyId: this.$route.query.hospitalAgencyId,
} }
getDepartmentList(query).then(res => { getDepartmentList(query).then(res => {
this.departmentlist = res.data this.departmentlist = res.data