This commit is contained in:
闫晓茹 2023-04-28 14:56:09 +08:00
parent 9ba32ef0f8
commit 297c4ee1fa
27 changed files with 143 additions and 38 deletions

View File

@ -414,9 +414,11 @@ export default {
if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => {});
}
if (response.code == 200) {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
}
});
} else {
this.form.goodDetailsLists.forEach(e => {
@ -424,10 +426,12 @@ export default {
})
// this.nurseStationId=this.form.nurseStationId
addGoodsInfo(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功");
this.StationName = "请选择所属护理站";
this.open = false;
this.getList();
}
});
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -429,9 +429,11 @@ export default {
}
this.imgsurl = { pictureUrlList: [] };
++this.isResouceShow;
if (response.code == 200) {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
}
});
} else {
this.form.goodDetailsLists.forEach((e) => {
@ -439,10 +441,12 @@ export default {
});
addGoodsInfo(this.form).then((response) => {
++this.isResouceShow;
if (response.code == 200) {
this.$modal.msgSuccess("新增成功");
// this.StationName = "请选择所属护理站";
this.open = false;
this.getList();
}
});
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -58,22 +58,22 @@ export default {
value: "NOT_CHECK",
}],
sexs: [{
label: "男",
value: "MALE",
},
{
label: "女",
value: "FEMALE",
},
label: "男",
value: "MALE",
},
{
label: "女",
value: "FEMALE",
},
],
nursePersonTypes: [{
label: "护士",
value: "NURSE",
},
{
label: "护理师",
value: "NURSE_TEACHER",
},
label: "护士",
value: "NURSE",
},
{
label: "护理师",
value: "NURSE_TEACHER",
},
],
innerVisible: false,
innerVisible2: false,
@ -202,7 +202,7 @@ export default {
validator: checkMobile2,
message: "",
trigger: "blur",
}, ],
},],
address: [
{ required: true, message: "居住地址不能为空", trigger: "blur" },
],
@ -238,7 +238,7 @@ export default {
this.form.nurseStationPersonCertificateList.push(obj);
}
},
imgUrl(imgUrl) {},
imgUrl(imgUrl) { },
//接收图片所属的item
imgclassifyItem(item) {
let items = JSON.parse(item);
@ -509,17 +509,21 @@ export default {
}
if (this.form.id != null) {
updatePerson(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
if (response.code == 200) {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
}
});
} else {
addPerson(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
this.nurseStationName = "请选择所属护理站";
this.departmentName = "请选择所属科室";
if (response.code == 200) {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
this.nurseStationName = "请选择所属护理站";
this.departmentName = "请选择所属科室";
}
});
}
}
@ -550,14 +554,14 @@ export default {
const ids = row.id || this.ids;
this.$modal
.confirm("是否确认删除护理站人员信息的数据项?")
.then(function() {
.then(function () {
return delPerson(ids);
})
.then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
})
.catch(() => {});
.catch(() => { });
},
/** 导入按钮操作 */
handleImport() {
@ -599,8 +603,8 @@ export default {
handleExport() {
this.download(
"system/person/export", {
...this.queryParams,
},
...this.queryParams,
},
`person_${new Date().getTime()}.xlsx`
);
},

View File

@ -984,15 +984,19 @@ export default {
if (this.form.id != null) {
updatePoser(this.form).then((response) => {
var obj = { pictureUrlList: [] };
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
if (response.code == 200) {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
}
});
} else {
addPoser(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
if (response.code == 200) {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
}
});
}
}

View File

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

View File

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

View File

@ -328,7 +328,7 @@ export default {
form: {},
defaultProps: {
children: "children",
label: "label"
name: "name"
},
//
rules: {
@ -567,16 +567,20 @@ export default {
if (this.form.roleId != undefined) {
this.form.menuIds = this.getMenuAllCheckedKeys();
updateRole(this.form).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
}
});
} else {
this.form.menuIds = this.getMenuAllCheckedKeys();
addRole(this.form).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
}
});
}
}
@ -611,4 +615,4 @@ export default {
}
}
};
</script>
</script>

View File

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

View File

@ -500,6 +500,7 @@ export default {
if (valid) {
if (this.form.id != null) {
updateStationClassify(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功");
if (this.form.classifyPictureUrl != this.classifyPictureUrl) {
var obj = { pictureUrlList: [] };
@ -508,14 +509,16 @@ export default {
}
this.editopen = false;
this.getList();
}
});
} else {
addStationClassify(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
}
});
}
}

View File

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

View File

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

View File

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

View File

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

View File

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