diff --git a/src/views/system/department/index.vue b/src/views/system/department/index.vue
index adc7f92..5a834a1 100644
--- a/src/views/system/department/index.vue
+++ b/src/views/system/department/index.vue
@@ -13,282 +13,150 @@
/>
-->
-
+
-
+
-
+
-
+
- 搜索
- 重置
+ 搜索
+ 重置
- 新增
+ 新增
- 修改
+ 修改
- 删除
+ 删除
- 导入
+ 导入
- 导出
+ 导出
-
+
-
+
-
-
-
+
+
+
{{
- scope.row.departmentType == "ADMINISTRATION_LOGISTICS"
- ? "行政后勤类"
- : ""
- }}
+ scope.row.departmentType == "ADMINISTRATION_LOGISTICS"
+ ? "行政后勤类"
+ : ""
+ }}
{{
- scope.row.departmentType == "MEDICAL_ASSISTANCE"
- ? "医疗辅助类"
- : ""
- }}
+ scope.row.departmentType == "MEDICAL_ASSISTANCE"
+ ? "医疗辅助类"
+ : ""
+ }}
{{
- scope.row.departmentType == "MEDICAL_TECHNOLOGY"
- ? "医疗技术类"
- : ""
- }}
+ scope.row.departmentType == "MEDICAL_TECHNOLOGY"
+ ? "医疗技术类"
+ : ""
+ }}
{{
- scope.row.departmentType == "CLINICAL_SERVICES"
- ? "临床服务类"
- : ""
- }}
+ scope.row.departmentType == "CLINICAL_SERVICES"
+ ? "临床服务类"
+ : ""
+ }}
-
- {{
- scope.row.provideServiceCategory == "OUTPATIENT_SERVICE"
- ? "门诊"
- : ""
- }}
+
+ {{
+ scope.row.provideServiceCategory == "OUTPATIENT_SERVICE"
+ ? "门诊"
+ : ""
+ }}
{{
- scope.row.provideServiceCategory == "EMERGENCY_TREATMENT"
- ? "急诊"
- : ""
- }}
+ scope.row.provideServiceCategory == "EMERGENCY_TREATMENT"
+ ? "急诊"
+ : ""
+ }}
{{
- scope.row.provideServiceCategory == "BE_HOSPITALIZED"
- ? "住院"
- : ""
- }}
+ scope.row.provideServiceCategory == "BE_HOSPITALIZED"
+ ? "住院"
+ : ""
+ }}
{{ scope.row.provideServiceCategory == "WARD" ? "病区" : "" }}
{{
- scope.row.provideServiceCategory == "MEDICAL_TECHNOLOGY"
- ? "医技"
- : ""
- }}
+ scope.row.provideServiceCategory == "MEDICAL_TECHNOLOGY"
+ ? "医技"
+ : ""
+ }}
{{ scope.row.provideServiceCategory == "DRUG" ? "药剂" : "" }}
{{ scope.row.provideServiceCategory == "FINANCE" ? "财务" : "" }}
{{
- scope.row.provideServiceCategory == "ADMINISTRATION"
- ? "行政"
- : ""
- }}
+ scope.row.provideServiceCategory == "ADMINISTRATION"
+ ? "行政"
+ : ""
+ }}
{{ scope.row.provideServiceCategory == "PHARMACY" ? "药房" : "" }}
{{
- scope.row.provideServiceCategory == "DRUG_STORAGE" ? "药库" : ""
- }}
+ scope.row.provideServiceCategory == "DRUG_STORAGE" ? "药库" : ""
+ }}
{{
- scope.row.provideServiceCategory == "PUBLIC_HEALTH"
- ? "公卫"
- : ""
- }}
-
+ scope.row.provideServiceCategory == "PUBLIC_HEALTH"
+ ? "公卫"
+ : ""
+ }}
+
-
-
+
+
- 修改
- 删除
+ 修改
+ 删除
-
+
-
-
+
+
将文件拖到此处,或
@@ -296,13 +164,8 @@
仅允许导入xls、xlsx格式文件。
- 下载模板
+ 下载模板
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
-
+
+
-
+
-
+
-
+
-
+
-
+
@@ -775,17 +522,14 @@ export default {
},
methods: {
optionsubdivision(e) {
- console.log(e);
// this.form.subdivisionCategoryId = this.optionsubdivisionCategory.find(
// (e) => e.id == this.form.subdivisionCategoryId
// ).subdivisionCategoryName;
-// console.log(this.form.subdivisionCategoryName)
-
+ // console.log(this.form.subdivisionCategoryName)
},
// 上级科室
changeparentDepartment(e) {
this.form.parentDepartmentId = e;
- console.log(e);
},
/** 查询标准科室对照信息列表 */
infocompare() {
@@ -805,7 +549,6 @@ export default {
// 上级科室
getinfo() {
getDepartmentList().then((res) => {
- console.log(res, "666");
this.optionsparentDepartment = res.data;
});
},
@@ -832,20 +575,28 @@ export default {
},
// 所属机构
change(e) {
- console.log(e, "78");
+ console.log(this.form.hospitalAgencyIdtwo)
if (e) {
this.form.hospitalAgencyId = e[e.length - 1];
if (this.form.hospitalAgencyId) {
const arr = this.$refs["cascader"].getCheckedNodes()[0].pathLabels;
- // console.log(arr, "5555555");
this.form.hospitalAgencyName = arr.slice(-1).join(",");
- // console.log(this.form.agencyName);
+ this.gethaveinfo(e[e.length - 1])
+ this.form.parentDepartmentId = ''
+ this.form.parentDepartmentName = ''
} else {
+ this.form.parentDepartmentId = ''
this.form.hospitalAgencyName = "";
}
+ } else {
+ this.getinfo();
}
},
-
+ gethaveinfo(id) {
+ getDepartmentList({ hospitalAgencyId: id }).then((res) => {
+ this.optionsparentDepartment = res.data;
+ });
+ },
// changeagencyCategoryId(e) {
// this.form.parentDepartmentId = e[e.length - 1];
// },
@@ -880,7 +631,6 @@ export default {
`科室下载模板.xlsx`
);
},
-
// 提交上传文件
submitFileForm() {
this.$refs.upload.submit();
@@ -892,8 +642,8 @@ export default {
this.$refs.upload.clearFiles();
this.$alert(
"" +
- response.msg +
- "
",
+ response.msg +
+ "",
"导入结果",
{ dangerouslyUseHTMLString: true }
);
@@ -903,7 +653,6 @@ export default {
handleFileUploadProgress(event, file, fileList) {
this.upload.isUploading = true;
},
-
// 筛选节点
filterNode(value, data) {
if (!value) return true;
@@ -935,6 +684,7 @@ export default {
id: null,
parentDepartmentId: null,
hospitalAgencyId: null,
+ hospitalAgencyIdtwo: null,
hospitalAgencyName: null,
departmentName: null,
departmentCode: null,
@@ -981,6 +731,7 @@ export default {
this.reset();
this.open = true;
this.title = "添加科室信息";
+ this.getinfo()
},
/** 修改按钮操作 */
handleUpdate(row) {
@@ -988,8 +739,10 @@ export default {
const id = row.id || this.ids;
getDepartment(id).then((response) => {
this.form = response.data;
+ this.form.hospitalAgencyIdtwo = this.form.hospitalAgencyId
this.form.parentDepartmentName = response.data.parentDepartmentName;
this.open = true;
+ this.gethaveinfo(this.form.hospitalAgencyId)
this.title = "修改科室信息";
});
},
@@ -997,10 +750,10 @@ export default {
submitForm() {
let reg = new RegExp("-", "g");
if (this.form.establishDate && this.form.revokeDate && new Date(this.form.establishDate.replace(reg, "/")) >
- new Date(this.form.revokeDate.replace(reg, "/"))) {
- this.$message.error("撤销日期要大于成立日期");
- }
- else {
+ new Date(this.form.revokeDate.replace(reg, "/"))) {
+ this.$message.error("撤销日期要大于成立日期");
+ }
+ else {
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.id != null) {
@@ -1032,7 +785,7 @@ export default {
this.getList();
this.$modal.msgSuccess("删除成功");
})
- .catch(() => {});
+ .catch(() => { });
},
/** 导出按钮操作 */
handleExport() {
@@ -1051,6 +804,7 @@ export default {
.el-cascader .el-input input::-webkit-input-placeholder {
color: black;
}
+
.nameinformation {
border-left: 3px solid #4d9de7;
width: 200px;
@@ -1060,6 +814,7 @@ export default {
// margin-top: 8px;
color: black;
}
+
.content {
margin: 22px;
}