This commit is contained in:
闫晓茹 2023-04-28 14:43:37 +08:00
parent c028f5bf13
commit d13f1b0e49
35 changed files with 209 additions and 82 deletions

View File

@ -507,19 +507,21 @@ export default {
submitForm() { submitForm() {
this.$refs["form"].validate((valid) => { this.$refs["form"].validate((valid) => {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateInformationCategory(this.form).then((response) => { updateInformationCategory(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addInformationCategory(this.form).then((response) => { addInformationCategory(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.addopen = false; this.addopen = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -187,6 +187,7 @@ export default {
whetherShelf: 1, whetherShelf: 1,
}; };
} }
console.log(obj)
editGoodsWhetherShelf(obj).then((res) => { editGoodsWhetherShelf(obj).then((res) => {
if (obj.whetherShelf == 0) { if (obj.whetherShelf == 0) {
this.$modal.msgSuccess("已修改上架状态为未上架"); this.$modal.msgSuccess("已修改上架状态为未上架");
@ -453,10 +454,12 @@ export default {
if (obj.pictureUrlList.length > 0) { if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => {}); updatePicture(obj).then((res) => {});
} }
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
++this.isResouceShow ++this.isResouceShow
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
this.form.goodDetailsLists.forEach(e => { this.form.goodDetailsLists.forEach(e => {
@ -464,11 +467,13 @@ export default {
}) })
// this.nurseStationId=this.form.nurseStationId // this.nurseStationId=this.form.nurseStationId
addGoodsInfo(this.form).then((response) => { addGoodsInfo(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.StationName = "请选择所属护理站"; this.StationName = "请选择所属护理站";
++this.isResouceShow ++this.isResouceShow
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -283,15 +283,19 @@ export default {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateStationDepartment(this.form).then((response) => { updateStationDepartment(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addStationDepartment(this.form).then((response) => { addStationDepartment(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.addopen = false; this.addopen = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -337,15 +337,19 @@ export default {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateAppFileInfo(this.form).then(response => { updateAppFileInfo(this.form).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addAppFileInfo(this.form).then(response => { addAppFileInfo(this.form).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -564,17 +564,21 @@ export default {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateArea(this.form).then((response) => { updateArea(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addArea(this.form).then((response) => { addArea(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.queryParams.parentCode = this.form.parentCode; this.queryParams.parentCode = this.form.parentCode;
this.queryParams.areaLevel = null; this.queryParams.areaLevel = null;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -596,15 +596,19 @@ export default {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateCertificate(this.form).then((response) => { updateCertificate(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addCertificate(this.form).then((response) => { addCertificate(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -481,6 +481,7 @@ export default {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateInfo(this.form).then(response => { updateInfo(this.form).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
if (this.form.classifyPictureUrl != this.imgone) { if (this.form.classifyPictureUrl != this.imgone) {
var obj = { pictureUrlList: [] }; var obj = { pictureUrlList: [] };
@ -489,13 +490,16 @@ export default {
} }
this.editopen = false; this.editopen = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addInfo(this.form).then(response => { addInfo(this.form).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -938,18 +938,22 @@ export default {
if (this.form.id != null) { if (this.form.id != null) {
updateCommunityInfo(this.form).then((response) => { updateCommunityInfo(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open2 = false; this.open2 = false;
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addCommunityInfo(this.form).then((response) => { addCommunityInfo(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.open2 = false; this.open2 = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -302,15 +302,19 @@ export default {
if (valid) { if (valid) {
if (this.form.configId != undefined) { if (this.form.configId != undefined) {
updateConfig(this.form).then(response => { updateConfig(this.form).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addConfig(this.form).then(response => { addConfig(this.form).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -593,15 +593,19 @@ export default {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateCoupon(this.form).then((response) => { updateCoupon(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addCoupon(this.form).then((response) => { addCoupon(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -308,15 +308,19 @@ export default {
if (valid) { if (valid) {
if (this.form.deptId != undefined) { if (this.form.deptId != undefined) {
updateDept(this.form).then(response => { updateDept(this.form).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addDept(this.form).then(response => { addDept(this.form).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -419,15 +419,19 @@ export default {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateDiseaseInfo(this.form).then((response) => { updateDiseaseInfo(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addDiseaseInfo(this.form).then((response) => { addDiseaseInfo(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open2 = false; this.open2 = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -566,19 +566,23 @@ export default {
if (obj.pictureUrlList.length > 0) { if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => {}); updatePicture(obj).then((res) => {});
} }
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
++this.isResouceShow; ++this.isResouceShow;
this.open = false; this.open = false;
this.getList(); this.getList();
this.info(); this.info();
}
}); });
} else { } else {
addGoodsCategory(this.form).then((response) => { addGoodsCategory(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
++this.isResouceShow; ++this.isResouceShow;
this.open = false; this.open = false;
this.getList(); this.getList();
this.info(); this.info();
}
}); });
} }
} }

View File

@ -364,16 +364,20 @@ export default {
if (obj.pictureUrlList.length > 0) { if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => { }); updatePicture(obj).then((res) => { });
} }
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
// this.nurseStationId=this.form.nurseStationId // this.nurseStationId=this.form.nurseStationId
addGoodsInfo(this.form).then((response) => { addGoodsInfo(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }
@ -403,7 +407,7 @@ export default {
attributePitureUrl(imgUrl) { }, attributePitureUrl(imgUrl) { },
attributePitureitem(item) { attributePitureitem(item) {
let items = JSON.parse(item); let items = JSON.parse(item);
if (items.idd && !items.id) { if (items.idd && !items.attributeDetailsId) {
this.goodDetailsLists.forEach((e) => { this.goodDetailsLists.forEach((e) => {
if (e.idd == items.idd) { if (e.idd == items.idd) {
e.attributePitureUrl = items.attributePitureUrl; e.attributePitureUrl = items.attributePitureUrl;

View File

@ -388,15 +388,19 @@ export default {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateGoodsOrder(this.form).then((response) => { updateGoodsOrder(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addGoodsOrder(this.form).then((response) => { addGoodsOrder(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -701,16 +701,19 @@ export default {
obj.pictureUrlList.push(this.imgone); obj.pictureUrlList.push(this.imgone);
updatePicture(obj).then(res => {}); updatePicture(obj).then(res => {});
} }
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.editopen = false; this.editopen = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addGroupQrCodeInfo(this.form).then(response => { addGroupQrCodeInfo(this.form).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -353,15 +353,19 @@ export default {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateHospital(this.form).then(response => { updateHospital(this.form).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addHospital(this.form).then(response => { addHospital(this.form).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -799,15 +799,19 @@ export default {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateHospitalDepartment(this.form).then((response) => { updateHospitalDepartment(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addHospitalDepartment(this.form).then((response) => { addHospitalDepartment(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.addopen = false; this.addopen = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -969,15 +969,19 @@ export default {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateHospitalPerson(this.form).then(response => { updateHospitalPerson(this.form).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.addopen = false; this.addopen = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addHospitalPerson(this.form).then(response => { addHospitalPerson(this.form).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.addopen = false; this.addopen = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -753,6 +753,7 @@ export default {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateInformationInfo(this.form).then((response) => { updateInformationInfo(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
var obj = { pictureUrlList: [] }; var obj = { pictureUrlList: [] };
if (this.imgone != this.form.leadThumbnailUrl) { if (this.imgone != this.form.leadThumbnailUrl) {
@ -764,13 +765,16 @@ export default {
this.imgsurl = { pictureUrlList: [] }; this.imgsurl = { pictureUrlList: [] };
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
this.form.informationSort = parseInt(this.form.informationSort); this.form.informationSort = parseInt(this.form.informationSort);
addInformationInfo(this.form).then((response) => { addInformationInfo(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -425,15 +425,19 @@ export default {
if (valid) { if (valid) {
if (this.form.menuId != undefined) { if (this.form.menuId != undefined) {
updateMenu(this.form).then(response => { updateMenu(this.form).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addMenu(this.form).then(response => { addMenu(this.form).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -283,15 +283,19 @@ export default {
if (valid) { if (valid) {
if (this.form.noticeId != undefined) { if (this.form.noticeId != undefined) {
updateNotice(this.form).then(response => { updateNotice(this.form).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addNotice(this.form).then(response => { addNotice(this.form).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -366,15 +366,19 @@ export default {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateNurseType(this.form).then((response) => { updateNurseType(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addNurseType(this.form).then((response) => { addNurseType(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open2 = false; this.open2 = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -858,15 +858,19 @@ export default {
// this.form.areaCode = Number(item.areaCode); // this.form.areaCode = Number(item.areaCode);
if (this.form.id != null) { if (this.form.id != null) {
updatePatientArchives(this.form).then((response) => { updatePatientArchives(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addPatientArchives(this.form).then((response) => { addPatientArchives(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -516,17 +516,21 @@ export default {
} }
if (this.form.id != null) { if (this.form.id != null) {
updatePerson(this.form).then((response) => { updatePerson(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addPerson(this.form).then((response) => { addPerson(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
this.nurseStationName = "请选择所属护理站"; this.nurseStationName = "请选择所属护理站";
this.departmentName = "请选择所属科室"; this.departmentName = "请选择所属科室";
}
}); });
} }
} }

View File

@ -1073,24 +1073,19 @@ export default {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updatePoser(this.form).then((response) => { updatePoser(this.form).then((response) => {
// var obj = { pictureUrlList: [] }; if (response.code == 200) {
// if (this.form.posterPictureUrlLists) {
// this.form.posterPictureUrlLists.forEach((e) => {
// obj.pictureUrlList.push(e.posterPictureUrl);
// });
// }
// updatePicture({pictureUrlList:this.deletNewImgs}).then((res) => {
// this.open = false;
// });
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addPoser(this.form).then((response) => { addPoser(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -468,15 +468,19 @@ export default {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateRevenue(this.form).then(response => { updateRevenue(this.form).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addRevenue(this.form).then(response => { addRevenue(this.form).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -570,15 +570,19 @@ export default {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateSettings(this.form).then((response) => { updateSettings(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addSettings(this.form).then((response) => { addSettings(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -490,13 +490,15 @@ export default {
if (obj.pictureUrlList.length > 0) { if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => {}); updatePicture(obj).then((res) => {});
} }
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addStation(this.form).then((response) => { addStation(this.form).then((response) => {
if (response.code) { if (response.code==200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();

View File

@ -495,6 +495,7 @@ export default {
if (this.form.id != null) { if (this.form.id != null) {
updateStationClassify(this.form).then((response) => { updateStationClassify(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
if (this.form.classifyPictureUrl != this.imgone) { if (this.form.classifyPictureUrl != this.imgone) {
var obj = { pictureUrlList: [] }; var obj = { pictureUrlList: [] };
@ -503,6 +504,7 @@ export default {
} }
this.editopen = false; this.editopen = false;
this.getList(); this.getList();
}
}); });
} else { } else {
// if(this.form.nurseClassifyInfoList[0].classifySort){ // if(this.form.nurseClassifyInfoList[0].classifySort){
@ -510,9 +512,11 @@ export default {
// } // }
addStationClassify(this.form).then((response) => { addStationClassify(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -369,19 +369,23 @@ export default {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateStationConsumable(this.form).then((response) => { updateStationConsumable(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.xgopen = false; this.xgopen = false;
this.getList(); this.getList();
}
}); });
} else { } else {
this.form.nurseStationConsumables.forEach((e) => { this.form.nurseStationConsumables.forEach((e) => {
e.consumablePrice = Number(e.consumablePrice); e.consumablePrice = Number(e.consumablePrice);
}); });
addStationConsumable(this.form).then((response) => { addStationConsumable(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.nurseStationName = "请选择所属护理站"; this.nurseStationName = "请选择所属护理站";
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -621,19 +621,23 @@ export default {
e.price = Number(e.price) e.price = Number(e.price)
}) })
updateNurseItem(this.form).then((response) => { updateNurseItem(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
this.form.nurseStationItemPrices.forEach(e => { this.form.nurseStationItemPrices.forEach(e => {
e.price = Number(e.price) e.price = Number(e.price)
}) })
addNurseItem(this.form).then((response) => { addNurseItem(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.$forceUpdate(); this.$forceUpdate();
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -394,15 +394,19 @@ export default {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateTrainingCategory(this.form).then((response) => { updateTrainingCategory(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addTrainingCategory(this.form).then((response) => { addTrainingCategory(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -1440,15 +1440,19 @@ export default {
if (obj.pictureUrlList.length > 0) { if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => {}); updatePicture(obj).then((res) => {});
} }
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addTrainingItem(this.form).then((response) => { addTrainingItem(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }

View File

@ -856,15 +856,19 @@ export default {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateTrainingOrder(this.form).then((response) => { updateTrainingOrder(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} else { } else {
addTrainingOrder(this.form).then((response) => { addTrainingOrder(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}
}); });
} }
} }