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

@ -189,7 +189,7 @@
:prop="`informationCategoryList.${index}.informationCategoryName`" :prop="`informationCategoryList.${index}.informationCategoryName`"
> >
<el-input <el-input
maxlength="100" maxlength="100"
style="width: 200px" style="width: 200px"
v-model="item.informationCategoryName" v-model="item.informationCategoryName"
placeholder="请输入资讯分类名称" placeholder="请输入资讯分类名称"
@ -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) => {
this.$modal.msgSuccess("修改成功"); if (response.code == 200) {
this.open = false; this.$modal.msgSuccess("修改成功");
this.getList(); this.open = false;
this.getList();
}
}); });
} else { } else {
addInformationCategory(this.form).then((response) => { addInformationCategory(this.form).then((response) => {
this.$modal.msgSuccess("新增成功"); if (response.code == 200) {
this.addopen = false; this.$modal.msgSuccess("新增成功");
this.getList(); this.addopen = false;
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

@ -51,22 +51,22 @@ export default {
nursetotal: 0, nursetotal: 0,
nurseStationId: null, nurseStationId: null,
goods: [{ goods: [{
value: "BUSINESS", value: "BUSINESS",
label: "买卖", label: "买卖",
}, },
{ {
value: "LEASE", value: "LEASE",
label: "租赁", label: "租赁",
}, },
], ],
options: [{ options: [{
value: 0, value: 0,
label: "否", label: "否",
}, },
{ {
value: 1, value: 1,
label: "是", label: "是",
}, },
], ],
goodDetailsLists: [], goodDetailsLists: [],
idd: 9999999, idd: 9999999,
@ -218,7 +218,7 @@ export default {
obj.pictureUrlList.push(this.form.goodsPictureUrl); obj.pictureUrlList.push(this.form.goodsPictureUrl);
} }
if (obj.pictureUrlList.length > 0) { if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => {}); updatePicture(obj).then((res) => { });
} }
this.open = false; this.open = false;
this.reset(); this.reset();
@ -230,8 +230,8 @@ export default {
goodsPrice: "", goodsPrice: "",
goodsStock: "", goodsStock: "",
sort: "", sort: "",
}, ], },],
}, ]; },];
}, },
//护理站页面选择护理站 //护理站页面选择护理站
nurseclick(item) { nurseclick(item) {
@ -294,7 +294,7 @@ export default {
goodsStock: "", goodsStock: "",
sort: "", sort: "",
idd: 9999999, idd: 9999999,
}, ]; },];
this.resetForm("form"); this.resetForm("form");
}, },
/** 搜索按钮操作 */ /** 搜索按钮操作 */
@ -330,7 +330,7 @@ export default {
goodsStock: "", goodsStock: "",
sort: "", sort: "",
idd: 9999999, idd: 9999999,
}, ]; },];
this.open = true; this.open = true;
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
@ -362,18 +362,22 @@ export default {
obj.pictureUrlList.push(this.imgone); obj.pictureUrlList.push(this.imgone);
} }
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();
}
}); });
} }
} }
@ -382,28 +386,28 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
this.$confirm("是否确认删除订单信息的数据项?", "提示", { this.$confirm("是否确认删除订单信息的数据项?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
var obj = { pictureUrlList: [] }; var obj = { pictureUrlList: [] };
obj.pictureUrlList.push(row.goodsPictureUrl); obj.pictureUrlList.push(row.goodsPictureUrl);
updatePicture(obj).then((res) => {}); updatePicture(obj).then((res) => { });
delGoodsInfo(row.goodsInfoId).then((res) => { delGoodsInfo(row.goodsInfoId).then((res) => {
this.$message.success("删除成功"); this.$message.success("删除成功");
this.getList(); this.getList();
}); });
}) })
.catch(() => {}); .catch(() => { });
}, },
imgUrl(imgUrl) { imgUrl(imgUrl) {
this.form.goodsPictureUrl = imgUrl; this.form.goodsPictureUrl = imgUrl;
}, },
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

@ -382,11 +382,11 @@
}, },
]" ]"
> >
<el-input <el-input
v-model="scope.row.jumpLink" v-model="scope.row.jumpLink"
placeholder="请输入跳转链接" placeholder="请输入跳转链接"
style="widt h:250px" style="widt h:250px"
></el-input> ></el-input>
</el-form-item> </el-form-item>
</template> </template>
</el-table-column> </el-table-column>
@ -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.$modal.msgSuccess("修改成功");
// this.form.posterPictureUrlLists.forEach((e) => { this.open = false;
// obj.pictureUrlList.push(e.posterPictureUrl); this.getList();
// }); }
// }
// updatePicture({pictureUrlList:this.deletNewImgs}).then((res) => {
// this.open = false;
// });
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
}); });
} else { } else {
addPoser(this.form).then((response) => { addPoser(this.form).then((response) => {
this.$modal.msgSuccess("新增成功"); if (response.code == 200) {
this.open = false; this.$modal.msgSuccess("新增成功");
this.getList(); this.open = false;
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) => {});
} }
this.$modal.msgSuccess("修改成功"); if (response.code == 200) {
this.open = false; this.$modal.msgSuccess("修改成功");
this.getList(); this.open = false;
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) => {
this.$modal.msgSuccess("修改成功"); if (response.code == 200) {
this.open = false; this.$modal.msgSuccess("修改成功");
this.getList(); this.open = false;
this.getList();
}
}); });
} else { } else {
addTrainingCategory(this.form).then((response) => { addTrainingCategory(this.form).then((response) => {
this.$modal.msgSuccess("新增成功"); if (response.code == 200) {
this.open = false; this.$modal.msgSuccess("新增成功");
this.getList(); this.open = false;
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) => {});
} }
this.$modal.msgSuccess("修改成功"); if (response.code == 200) {
this.open = false; this.$modal.msgSuccess("修改成功");
this.getList(); this.open = false;
this.getList();
}
}); });
} else { } else {
addTrainingItem(this.form).then((response) => { addTrainingItem(this.form).then((response) => {
this.$modal.msgSuccess("新增成功"); if (response.code == 200) {
this.open = false; this.$modal.msgSuccess("新增成功");
this.getList(); this.open = false;
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) => {
this.$modal.msgSuccess("修改成功"); if (response.code == 200) {
this.open = false; this.$modal.msgSuccess("修改成功");
this.getList(); this.open = false;
this.getList();
}
}); });
} else { } else {
addTrainingOrder(this.form).then((response) => { addTrainingOrder(this.form).then((response) => {
this.$modal.msgSuccess("新增成功"); if (response.code == 200) {
this.open = false; this.$modal.msgSuccess("新增成功");
this.getList(); this.open = false;
this.getList();
}
}); });
} }
} }