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

View File

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