From 67b4f7f4bcae83d9e4a6d9f33bfd4cd589583b76 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Tue, 11 Jul 2023 08:47:22 +0800 Subject: [PATCH] tjdj --- .../patientRegister/PatientRegisterItem.vue | 79 ++++++++++++++----- 1 file changed, 60 insertions(+), 19 deletions(-) diff --git a/src/components/patientRegister/PatientRegisterItem.vue b/src/components/patientRegister/PatientRegisterItem.vue index c0a83ae..a6a5a3a 100644 --- a/src/components/patientRegister/PatientRegisterItem.vue +++ b/src/components/patientRegister/PatientRegisterItem.vue @@ -100,8 +100,55 @@ export default { ...mapActions(['getCustomerOrgGroup','getMedicalPackageAsb', 'getPatientRegisterAbs']), //保存按钮 - onSubmit(val) { - + // [ + // { + // "registerAsbitemId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + // "input": { + // "chargePrice": 0, + // "payTypeFlag": "string", + // "isCharge": "string", + // "amount": 0, + // "groupPackageId": "3fa85f64-5717-4562-b3fc-2c963f66afa6" + // } + // } + // ] + + onSubmit() { + let body = [] + if(this.patientRegister.patientRegisterAbs.length < 1){ + alert("暂无可操作的数据") + return + } + for(let i=0;i { + console.log("onSubmit", res); + if (res.code == 1) { + //未选项目中移除,已选项中添加 + this.getPatientRegisterAbs(this.patientRegisterForm.id) + //刷新显示 未选组合项目 + this.getAsbItemByItemType() + + this.$message.success("操作成功"); + } + }) + .catch((err) => { + this.$message({type: "error",message: `操作失败,原因:${err}`}); + }); + }, //未选组合项目 勾选情况 @@ -155,7 +202,7 @@ export default { console.log(`/api/app/register-asbitem/many/${this.patientRegisterForm.customerOrgId}`,body) postapi(`/api/app/register-asbitem/many/${this.patientRegisterForm.customerOrgId}`,body) .then((res) => { - console.log("medicalPackageAsb", res); + console.log("addAbs", res); if (res.code == 1) { //未选项目中移除,已选项中添加 this.getPatientRegisterAbs(this.patientRegisterForm.id) @@ -177,6 +224,7 @@ export default { }, //删除 人员已选中的组合项目 + ///api/app/register-asbitem/many?RegisterAsbitemIds=3fa85f64-5717-4562-b3fc-2c963f66afa6 delAbs(){ let body = [] let checked = true @@ -185,33 +233,26 @@ export default { return } - for(let i = 0;i { - console.log("medicalPackageAsb", res); + console.log("delAbs", res); if (res.code == 1) { //未选项目中移除,已选项中添加 this.getPatientRegisterAbs(this.patientRegisterForm.id)