This commit is contained in:
2024-07-12 09:19:38 +08:00
parent 1822c8e60f
commit 885655f47d
2 changed files with 57 additions and 47 deletions

View File

@ -301,26 +301,31 @@ export default {
this.uploadsave(); this.uploadsave();
}, },
uploadsave() { uploadsave() {
if (this.signPackage.healthManageId && this.attendingPhysicianlist?.length > 0) { this.$confirm('是否确认续约?', '提示', {
this.signPackage.healthManageName = this.attendingPhysicianlist.find(e => e.userId == this.signPackage.healthManageId)?.nickName confirmButtonText: '确定',
} cancelButtonText: '取消',
this.form.signPackage = this.signPackage }).then(() => {
this.form.route.routeId = this.signPackage.routeId if (this.signPackage.healthManageId && this.attendingPhysicianlist?.length > 0) {
this.form.route.routeName = this.signPackage.routeName this.signPackage.healthManageName = this.attendingPhysicianlist.find(e => e.userId == this.signPackage.healthManageId)?.nickName
addsign(this.form).then(res => { }
this.$confirm('续约成功, 是否返回上一页?', '提示', { this.form.signPackage = this.signPackage
confirmButtonText: '确定', this.form.route.routeId = this.signPackage.routeId
cancelButtonText: '取消', this.form.route.routeName = this.signPackage.routeName
type: 'success' addsign(this.form).then(res => {
}).then(() => { this.$confirm('续约成功, 是否返回上一页?', '提示', {
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => { confirmButtonText: '确定',
this.$router.push({ cancelButtonText: '取消',
path: "/patient/signRecord", type: 'success'
}); }).then(() => {
}) this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
}).catch(() => { this.$router.push({
this.$modal.msgSuccess("续约成功"); path: "/patient/signRecord",
}); });
})
}).catch(() => {
this.$modal.msgSuccess("续约成功");
});
})
}) })
}, },
// //

View File

@ -259,28 +259,33 @@ export default {
} }
}, },
uploadsave() { uploadsave() {
if (this.signPackage.servicePackageId && this.packagelist?.length > 0) { this.$confirm('是否确认签约?', '提示', {
this.signPackage.packageName = this.packagelist.find(e => e.id == this.signPackage.servicePackageId)?.packageName confirmButtonText: '确定',
} cancelButtonText: '取消',
if (this.form.record.healthManageId && this.attendingPhysicianlist?.length > 0) { }).then(() => {
this.form.record.healthManageName = this.attendingPhysicianlist.find(e => e.userId == this.form.record.healthManageId)?.nickName if (this.signPackage.servicePackageId && this.packagelist?.length > 0) {
} this.signPackage.packageName = this.packagelist.find(e => e.id == this.signPackage.servicePackageId)?.packageName
this.form.signPackage = this.signPackage }
this.form.route = this.route if (this.form.record.healthManageId && this.attendingPhysicianlist?.length > 0) {
addsign(this.form).then(res => { this.form.record.healthManageName = this.attendingPhysicianlist.find(e => e.userId == this.form.record.healthManageId)?.nickName
this.$confirm('签约成功, 是否返回上一页?', '提示', { }
confirmButtonText: '确定', this.form.signPackage = this.signPackage
cancelButtonText: '取消', this.form.route = this.route
type: 'success' addsign(this.form).then(res => {
}).then(() => { this.$confirm('签约成功, 是否返回上一页?', '提示', {
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => { confirmButtonText: '确定',
this.$router.push({ cancelButtonText: '取消',
path: "/patient/signRecord", type: 'success'
}); }).then(() => {
}) this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
}).catch(() => { this.$router.push({
this.$modal.msgSuccess("签约成功"); path: "/patient/signRecord",
}); });
})
}).catch(() => {
this.$modal.msgSuccess("签约成功");
});
})
}) })
}, },
// //
@ -340,11 +345,11 @@ export default {
.header { .header {
background-color: #fff; background-color: #fff;
width: 98%; width: 98%;
margin: 0 auto; margin: 0 auto;
border-radius: 8px; border-radius: 8px;
height: calc(100% - 5px); height: calc(100% - 5px);
overflow: auto; overflow: auto;
} }
.btns { .btns {