护理站人员 所属护理站
This commit is contained in:
parent
b2e4d13834
commit
b391b29d3e
@ -254,8 +254,8 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="所属科室"
|
label="所属科室"
|
||||||
label-width="120px"
|
label-width="120px"
|
||||||
:rules="rules.nurseStationPersonList.departmentCode"
|
:rules="rules.nurseStationPersonList.departmentName"
|
||||||
:prop="`nurseStationPersonList.${index}.departmentCode`"
|
:prop="`nurseStationPersonList.${index}.departmentName`"
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
type=""
|
type=""
|
||||||
@ -642,7 +642,7 @@
|
|||||||
></el-button>
|
></el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
property="nurseStationName"
|
property="nurseStationName"
|
||||||
label="护理站名称"
|
label="护理站名称"
|
||||||
align="center"
|
align="center"
|
||||||
@ -741,6 +741,12 @@
|
|||||||
></el-button>
|
></el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
property="nurseStationName"
|
||||||
|
label="护理站名称"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
property="departmentCode"
|
property="departmentCode"
|
||||||
label="科室编码"
|
label="科室编码"
|
||||||
@ -1120,7 +1126,7 @@ export default {
|
|||||||
trigger: "blur",
|
trigger: "blur",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
departmentCode: [
|
departmentName: [
|
||||||
{ required: true, message: "所属科室不能为空", trigger: "blur" },
|
{ required: true, message: "所属科室不能为空", trigger: "blur" },
|
||||||
],
|
],
|
||||||
nurseStationId: [
|
nurseStationId: [
|
||||||
@ -1155,34 +1161,38 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
// // 新增所属科室按钮
|
// // 新增所属科室按钮
|
||||||
departclick(item, index) {
|
departclick(item, index) {
|
||||||
this.form.nurseStationId
|
if (this.form.nurseStationId != null) {
|
||||||
if(this.form.nurseStationId == null){
|
this.getList3();
|
||||||
this.innerVisible2 = false;
|
console.log(item);
|
||||||
this.$message.error('请先选择所属护理站');
|
this.departid = item.departmentCode;
|
||||||
|
this.innerVisible2 = true;
|
||||||
}else{
|
this.index = index;
|
||||||
|
|
||||||
this.getList3();
|
} else {
|
||||||
console.log(item);
|
// this.innerVisible2 = false;
|
||||||
this.departid = item.departmentCode;
|
this.$message.error('请先选择所属护理站');
|
||||||
this.innerVisible2 = true;
|
|
||||||
this.index = index;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
// // 修改所属科室按钮
|
// // 修改所属科室按钮
|
||||||
departclick2() {
|
departclick2() {
|
||||||
this.getList3();
|
console.log(this.form.nurseStationId)
|
||||||
this.departid2 = this.form.departmentCode;
|
if (this.form.nurseStationId != null) {
|
||||||
this.innerVisiblexg2 = true;
|
this.getList3();
|
||||||
// this.index = index;
|
this.departid2 = this.form.departmentCode;
|
||||||
|
this.innerVisiblexg2 = true;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
// this.innerVisible2 = false;
|
||||||
|
this.$message.error('请先选择所属护理站');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
//修改护理站按钮
|
//修改护理站按钮
|
||||||
departclickxg() {
|
departclickxg() {
|
||||||
this.info();
|
this.info();
|
||||||
this.stationid2 = this.form.nurseStationId;
|
this.stationid2 = this.form.nurseStationId;
|
||||||
this.innerVisiblexg = true;
|
this.innerVisiblexg = true;
|
||||||
this.index = index;
|
// this.index = index;
|
||||||
},
|
},
|
||||||
// 新增护理站按钮
|
// 新增护理站按钮
|
||||||
clickinnerVisible(item, index) {
|
clickinnerVisible(item, index) {
|
||||||
@ -1197,6 +1207,7 @@ export default {
|
|||||||
this.nurseStationName = row.nurseStationName;
|
this.nurseStationName = row.nurseStationName;
|
||||||
this.stationid2 = row.id;
|
this.stationid2 = row.id;
|
||||||
this.form.nurseStationId = row.id;
|
this.form.nurseStationId = row.id;
|
||||||
|
this.queryParams3.nurseStationId = row.id;
|
||||||
this.innerVisiblexg = false;
|
this.innerVisiblexg = false;
|
||||||
this.form.nursename = row.nurseStationName;
|
this.form.nursename = row.nurseStationName;
|
||||||
},
|
},
|
||||||
@ -1207,6 +1218,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
adddisease() {
|
adddisease() {
|
||||||
|
this.form.nurseStationId = null
|
||||||
var obj = {
|
var obj = {
|
||||||
nursePersonCode: "",
|
nursePersonCode: "",
|
||||||
nursePersonCode: "",
|
nursePersonCode: "",
|
||||||
@ -1218,7 +1230,7 @@ export default {
|
|||||||
nurseStationId: "",
|
nurseStationId: "",
|
||||||
departmentName: "请选择所属科室",
|
departmentName: "请选择所属科室",
|
||||||
// departname: "",
|
// departname: "",
|
||||||
nurseStationName: "请选择护理站名称",
|
nurseStationName: "请选择所属护理站",
|
||||||
};
|
};
|
||||||
if (this.form.nurseStationPersonList.length == 5) {
|
if (this.form.nurseStationPersonList.length == 5) {
|
||||||
this.$message.error("最多只能5条");
|
this.$message.error("最多只能5条");
|
||||||
@ -1232,6 +1244,7 @@ export default {
|
|||||||
this.nursename = row.nurseStationName;
|
this.nursename = row.nurseStationName;
|
||||||
this.stationid = row.id;
|
this.stationid = row.id;
|
||||||
this.form.nurseStationId = row.id;
|
this.form.nurseStationId = row.id;
|
||||||
|
this.queryParams3.nurseStationId = row.id;
|
||||||
console.log(this.form.nurseStationId);
|
console.log(this.form.nurseStationId);
|
||||||
console.log(this.form);
|
console.log(this.form);
|
||||||
this.innerVisible = false;
|
this.innerVisible = false;
|
||||||
@ -1291,6 +1304,7 @@ export default {
|
|||||||
this.departtotal = res.total;
|
this.departtotal = res.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
cancel() {
|
cancel() {
|
||||||
@ -1365,7 +1379,7 @@ export default {
|
|||||||
departcancel() {
|
departcancel() {
|
||||||
this.innerVisible2 = false;
|
this.innerVisible2 = false;
|
||||||
this.innerVisiblexg2 = false;
|
this.innerVisiblexg2 = false;
|
||||||
this.resetQuery3();
|
// this.resetQuery3();
|
||||||
},
|
},
|
||||||
resetQuery2() {
|
resetQuery2() {
|
||||||
this.resetForm("queryForm");
|
this.resetForm("queryForm");
|
||||||
@ -1384,15 +1398,10 @@ export default {
|
|||||||
this.handleQuery4();
|
this.handleQuery4();
|
||||||
},
|
},
|
||||||
resetQuery3() {
|
resetQuery3() {
|
||||||
this.queryParams3 = {
|
this.queryParams3.pageNum = 1;
|
||||||
pageNum: 1,
|
this.queryParams3.pageSize = 10;
|
||||||
pageSize: 10,
|
this.queryParams3.departmentName = null;
|
||||||
nurseStationName: null,
|
this.queryParams3.departmentCode = null;
|
||||||
id: null,
|
|
||||||
departmentCode: null,
|
|
||||||
departmentName: null,
|
|
||||||
nurseStationId: null,
|
|
||||||
};
|
|
||||||
this.handleQuery3();
|
this.handleQuery3();
|
||||||
},
|
},
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
@ -1429,6 +1438,7 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
|
this.queryParams3.nurseStationId=null
|
||||||
this.reset();
|
this.reset();
|
||||||
this.open2 = true;
|
this.open2 = true;
|
||||||
this.title = "添加护理站人员信息";
|
this.title = "添加护理站人员信息";
|
||||||
@ -1443,6 +1453,7 @@ export default {
|
|||||||
this.departmentName = response.data.departmentName;
|
this.departmentName = response.data.departmentName;
|
||||||
this.nurseStationName = response.data.nurseStationName;
|
this.nurseStationName = response.data.nurseStationName;
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
|
this.queryParams3.nurseStationId=response.data.nurseStationId
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "修改护理站人员信息";
|
this.title = "修改护理站人员信息";
|
||||||
if (this.departmentName == null && this.departmentName == undefined) {
|
if (this.departmentName == null && this.departmentName == undefined) {
|
||||||
@ -1487,7 +1498,7 @@ export default {
|
|||||||
this.getList();
|
this.getList();
|
||||||
this.$modal.msgSuccess("删除成功");
|
this.$modal.msgSuccess("删除成功");
|
||||||
})
|
})
|
||||||
.catch(() => {});
|
.catch(() => { });
|
||||||
},
|
},
|
||||||
/** 导入按钮操作 */
|
/** 导入按钮操作 */
|
||||||
handleImport() {
|
handleImport() {
|
||||||
@ -1515,8 +1526,8 @@ export default {
|
|||||||
this.$refs.upload.clearFiles();
|
this.$refs.upload.clearFiles();
|
||||||
this.$alert(
|
this.$alert(
|
||||||
"<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" +
|
"<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" +
|
||||||
response.msg +
|
response.msg +
|
||||||
"</div>",
|
"</div>",
|
||||||
"导入结果",
|
"导入结果",
|
||||||
{ dangerouslyUseHTMLString: true }
|
{ dangerouslyUseHTMLString: true }
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user