This commit is contained in:
2024-04-08 15:27:29 +08:00
parent 9b7298b72b
commit 20292f1df8
3 changed files with 51 additions and 3 deletions

View File

@ -43,7 +43,12 @@
<el-form :model="signPackage" :rules="rules" ref="signPackage" label-width="100px" class="demo-ruleForm"
:inline="true" style="padding-left:40px">
<el-form-item label="健康管理师" prop="healthManageId">
<el-input v-model="signPackage.healthManageId"></el-input>
<el-select v-model="signPackage.healthManageId" filterable placeholder="请选择健康管理师"
style="width:300px" clearable>
<el-option v-for="item in attendingPhysicianlist" :key="item.userId" :label="item.nickName"
:value="item.userId">
</el-option>
</el-select>
</el-form-item>
</el-form>
<el-descriptions title="服务包信息" style="padding:20px 30px 10px" class="descriptions">
@ -144,6 +149,7 @@ import {
import { getAge } from "@/utils/age";
import { obtainendtime } from "@/utils/obtainendtime";
import { getToken } from '@/utils/auth'
import { usergetList } from "@/api/unitconfig/patientConfiguration";
import specialDiseaseRoute from '../components/specialDiseaseRoute'
export default {
dicts: ['hardware_type'],
@ -157,6 +163,8 @@ export default {
serviceCycle: undefined,
serviceStartTime: undefined,
serviceEndTime: '',
healthManageId: "",
packagePaymentStatus: '',
},
pickerOptions: {
disabledDate: (time) => {
@ -202,12 +210,23 @@ export default {
},
url: process.env.VUE_APP_BASE_API + '/manage/file/uploadFile'
},
attendingPhysicianlist: [],
};
},
created() {
this.info();
this.usergetListinfo();
},
methods: {
//
usergetListinfo() {
usergetList({
agencyId: this.$route.query.hospitalAgencyId,
postName: 'DOCTOR'
}).then(res => {
this.attendingPhysicianlist = res.data
})
},
onroute(item) {
this.signPackage.routeId = item.routeId
this.signPackage.routeName = item.routeName
@ -264,6 +283,9 @@ export default {
})
},
uploadsave() {
if (this.signPackage.healthManageId) {
this.signPackage.healthManageName = this.attendingPhysicianlist.find(e => e.userId == this.signPackage.healthManageId).nickName
}
this.form.signPackage = this.signPackage
addsign(this.form).then(res => {
this.$confirm('签约成功, 是否返回上一页?', '提示', {

View File

@ -31,7 +31,12 @@
<el-form :model="signPackage" :rules="rules" ref="signPackage" label-width="100px" class="demo-ruleForm"
:inline="true" style="padding-left:40px">
<el-form-item label="健康管理师" prop="healthManageId">
<el-input v-model="signPackage.healthManageId"></el-input>
<el-select v-model="signPackage.healthManageId" filterable placeholder="请选择健康管理师"
style="width:300px" clearable>
<el-option v-for="item in attendingPhysicianlist" :key="item.userId" :label="item.nickName"
:value="item.userId">
</el-option>
</el-select>
</el-form-item>
</el-form>
<el-descriptions title="服务包信息" style="padding:20px 30px 10px" class="descriptions">
@ -133,7 +138,7 @@ import {
import { getToken } from '@/utils/auth'
import { obtainendtime } from "@/utils/obtainendtime";
import specialDiseaseRoute from '../components/specialDiseaseRoute'
// import { usergetList } from "@/api/unitconfig/patientConfiguration";
import { usergetList } from "@/api/unitconfig/patientConfiguration";
export default {
components: { specialDiseaseRoute },
dicts: ['hardware_type'],
@ -142,6 +147,11 @@ export default {
return {
signPackage: {
packageName: undefined,
packagePrice: undefined,
serviceCycle: undefined,
serviceStartTime: undefined,
serviceEndTime: '',
healthManageId: "",
packagePaymentStatus: '',
},
form: {
@ -184,6 +194,7 @@ export default {
url: process.env.VUE_APP_BASE_API + '/manage/file/uploadFile'
},
packagelist: [],
attendingPhysicianlist: [],
};
},
created() {
@ -192,8 +203,18 @@ export default {
servicepackageinfo({ departmentId: this.$route.query.departmentId }).then(res => {
this.packagelist = res.data
})
this.usergetListinfo();
},
methods: {
//
usergetListinfo() {
usergetList({
agencyId: this.$route.query.hospitalAgencyId,
postName: 'DOCTOR'
}).then(res => {
this.attendingPhysicianlist = res.data
})
},
ontemplate(item) {
this.signPackage.routeId = item.routeId
this.signPackage.routeName = item.routeName
@ -223,6 +244,9 @@ export default {
if (this.signPackage.servicePackageId) {
this.signPackage.packageName = this.packagelist.find(e => e.id == this.signPackage.servicePackageId).packageName
}
if (this.signPackage.healthManageId) {
this.signPackage.healthManageName = this.attendingPhysicianlist.find(e => e.userId == this.signPackage.healthManageId).nickName
}
this.form.signPackage = this.signPackage
addsign(this.form).then(res => {
this.$confirm('签约成功, 是否返回上一页?', '提示', {

View File

@ -567,6 +567,8 @@ export default {
this.$router.replace({
path: "/patient/continueSigning",
query: {
hospitalAgencyId: row.hospitalAgencyId,
hospitalAgencyName: row.hospitalAgencyName,
patientSignRecordId: row.id,
},
});