diff --git a/src/api/system/nurseItem.js b/src/api/system/nurseItem.js index 384f02e..49ad1da 100644 --- a/src/api/system/nurseItem.js +++ b/src/api/system/nurseItem.js @@ -59,4 +59,12 @@ export function delNurseItem(id) { url: '/system/stationItem/' + id, method: 'delete' }) -} \ No newline at end of file +} +// 删除图片 +export function updatePicture(data) { + return request({ + url: '/system/patientArchives/updatePicture', + method: 'post', + data: data + }) +} diff --git a/src/views/system/OperateGoodsInfo/index.vue b/src/views/system/OperateGoodsInfo/index.vue index 81399f1..1a90f4c 100644 --- a/src/views/system/OperateGoodsInfo/index.vue +++ b/src/views/system/OperateGoodsInfo/index.vue @@ -513,7 +513,7 @@ :total="nursetotal" :page.sync="nurseStationqueryParams.pageNum" :limit.sync="nurseStationqueryParams.pageSize" - @pagination="handleQuery2" + @pagination="getList2" /> diff --git a/src/views/system/person/index.vue b/src/views/system/person/index.vue index 091c381..e64b794 100644 --- a/src/views/system/person/index.vue +++ b/src/views/system/person/index.vue @@ -254,8 +254,8 @@ @@ -418,7 +418,7 @@ label-width="120" > @@ -481,9 +481,9 @@ @@ -496,7 +496,7 @@ > @@ -518,7 +518,7 @@ label-width="120" > @@ -574,9 +574,9 @@ @@ -669,7 +669,7 @@ :total="departtotal" :page.sync="queryParams3.pageNum" :limit.sync="queryParams3.pageSize" - @pagination="handleQuery3" + @pagination="getList3" /> @@ -764,7 +764,7 @@ :total="departtotal" :page.sync="queryParams3.pageNum" :limit.sync="queryParams3.pageSize" - @pagination="handleQuery3" + @pagination="getList3" /> @@ -1076,12 +1076,19 @@ export default { pageNum: 1, pageSize: 10, }, + StationqueryParams:{ + pageNum: 1, + pageSize: 10, + }, // 表单参数 form: {}, index: "", // 表单校验 rules: { + nurseStationId: [ + { required: true, message: "请选择所属护理站", trigger: "blur" }, + ], departmentName: [ { required: true, message: "所属科室不能为空", trigger: "blur" }, ], @@ -1112,7 +1119,7 @@ export default { trigger: "blur", }, ], - departmentName: [ + departmentCode: [ { required: true, message: "所属科室不能为空", trigger: "blur" }, ], nurseStationId: [ @@ -1142,13 +1149,12 @@ export default { }, created() { this.getList(); - // this.getList2(); - // this.nurselist(); this.info(); }, methods: { // // 新增所属科室按钮 departclick(item, index) { + this.getList3(); console.log(item); this.departid = item.departmentCode; this.innerVisible2 = true; @@ -1156,17 +1162,19 @@ export default { }, // // 修改所属科室按钮 departclick2() { - StationDepartmentList(this.queryParams3).then((res) => { - this.StationDepartmentLists = res.rows; - this.departtotal = res.total; - this.loading = false; - }); + this.getList3(); + // StationDepartmentList(this.queryParams3).then((res) => { + // this.StationDepartmentLists = res.rows; + // this.departtotal = res.total; + // this.loading = false; + // }); this.departid2 = this.form.departmentCode; this.innerVisiblexg2 = true; // this.index = index; }, // 新增护理站按钮 clickinnerVisible(item, index) { + this.getList2(); this.stationid = item.nurseStationId; this.innerVisible = true; this.index = index; @@ -1257,13 +1265,16 @@ export default { }); }, getList2() { - // 护理站名称 this.loading = true; - getListByUser(this.nurseStationqueryParams).then((res) => { + getListByUser(this.StationqueryParams).then((res) => { this.nursetotal = res.total; this.nurseStationlist = res.rows; + this.loading = false; }); - StationDepartmentList(this.queryParams3).then((res) => { + }, + getList3(){ + this.loading = true; + StationDepartmentList(this.queryParams3).then((res) => { this.StationDepartmentLists = res.rows; this.departtotal = res.total; this.loading = false; @@ -1321,8 +1332,7 @@ export default { }, handleQuery3() { this.queryParams3.pageNum = 1; - this.getList2() - // this.getList(); + this.getList3() }, handleQuery() { this.queryParams.pageNum = 1; diff --git a/src/views/system/stationItem/index.vue b/src/views/system/stationItem/index.vue index 30b8e68..89ee433 100644 --- a/src/views/system/stationItem/index.vue +++ b/src/views/system/stationItem/index.vue @@ -291,22 +291,6 @@ maxlength="50" /> - - - + " + - response.msg + - "", + response.msg + + "", "导入结果", { dangerouslyUseHTMLString: true } ); @@ -1018,7 +1008,15 @@ export default { }, // 取消按钮 cancel() { - // this.$refs["form"].clearValidate(); + console.log(this.form.nurseStationItem); + var obj = { pictureUrlList: [] }; + if (this.img1 != this.form.nurseStationItem.itemPictureUrl) { + obj.pictureUrlList.push(this.form.nurseStationItem.itemPictureUrl); + } + updatePicture(obj).then((res) => { + console.log(res); + }); + this.open = false; this.reset(); }, @@ -1203,7 +1201,7 @@ export default { this.getList(); this.$modal.msgSuccess("删除成功"); }) - .catch(() => {}); + .catch(() => { }); }, /** 导入按钮操作 */ handleExport() {