更新
This commit is contained in:
parent
d48fc200b5
commit
f13aacd58f
3
components.d.ts
vendored
3
components.d.ts
vendored
@ -17,14 +17,11 @@ declare module '@vue/runtime-core' {
|
||||
AddVisitConfigModal: typeof import('./src/components/addVisitConfigModal.vue')['default']
|
||||
ChatRecord: typeof import('./src/components/chatRecord.vue')['default']
|
||||
ConfirmModal: typeof import('./src/components/confirmModal.vue')['default']
|
||||
copy: typeof import('./src/components/medinceDetailModal copy.vue')['default']
|
||||
CouponDetail: typeof import('./src/components/couponDetail.vue')['default']
|
||||
DeleteModal: typeof import('./src/components/DeleteModal.vue')['default']
|
||||
DoctorModal: typeof import('./src/components/doctorModal.vue')['default']
|
||||
ElButton: typeof import('element-plus/es')['ElButton']
|
||||
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
|
||||
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
|
||||
ElTree: typeof import('element-plus/es')['ElTree']
|
||||
FamilyModal: typeof import('./src/components/familyModal.vue')['default']
|
||||
GiveCouponModal: typeof import('./src/components/giveCouponModal.vue')['default']
|
||||
HospitalDetailModal: typeof import('./src/components/hospitalDetailModal.vue')['default']
|
||||
|
||||
@ -73,7 +73,7 @@
|
||||
<a-col :span="12">
|
||||
<a-form-item field="package_id" label="健康包:">
|
||||
<a-select v-model="modalForm.package_id" placeholder="请选择健康包" allow-search
|
||||
:loading="loading" @search="healthConfig" :disabled="id?true:false" >
|
||||
:loading="loading" @search="healthConfig" :disabled="id?true:false" @change="changePackage">
|
||||
<a-option v-for="item in packageList" :key="item.package_id" :value="item.package_id" :label="item.package_id">
|
||||
{{ item.package_id }}
|
||||
</a-option>
|
||||
@ -85,7 +85,7 @@
|
||||
<a-col :span="12">
|
||||
<a-form-item field="doctor_id" label="选择医生:">
|
||||
<a-select v-model="modalForm.doctor_id" placeholder="请选择医生" allow-search
|
||||
:loading="loading" @search="handleGetDoctor" @change="changeDoctor" :disabled="id?true:false">
|
||||
:loading="loading" @search="handleGetDoctor" @change="changeDoctor" :disabled="(id || !packagePrice)?true:false" @click="isSelectPackage">
|
||||
<a-option v-for="item in doctorList" :key="item.doctor_id" :value="item.doctor_id" :label="item.user_name">
|
||||
{{ item.user_name }}
|
||||
</a-option>
|
||||
@ -105,7 +105,7 @@
|
||||
class="input-demo"
|
||||
:step="1" :precision="0"
|
||||
:min="0"
|
||||
/><span class="tips" v-if="!id && modalForm.doctor_id"> 提示:<span>问诊金额{{tuwenPrice}}元,</span><span v-if="modalForm.service_price">健康包金额{{modalForm.service_price}}元</span></span>
|
||||
/><span class="tips" v-if="!id && modalForm.doctor_id"> 提示:<span v-if="tuwenPrice">问诊金额{{tuwenPrice*6*.5}}元,</span><span v-if="packagePrice">健康包金额{{packagePrice}}元</span></span>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
@ -180,6 +180,15 @@ const handleGetDoctor=async(name='',id='')=>{
|
||||
}
|
||||
loading.value=false;
|
||||
};
|
||||
const packagePrice=ref(null);
|
||||
const changePackage=(val)=>{
|
||||
packageList.value.forEach(item=>{
|
||||
if(item.package_id==val){
|
||||
packagePrice.value=item.discount_product_total_amount;
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
const healthConfig=async()=>{
|
||||
const {code,data}=await getHealthConfigAddList({
|
||||
limit:100
|
||||
@ -190,6 +199,8 @@ const healthConfig=async()=>{
|
||||
}
|
||||
const reset=()=>{
|
||||
product_data.value=[];
|
||||
packagePrice.value=null;
|
||||
tuwenPrice.value='';
|
||||
};
|
||||
|
||||
let multi_point_status=null;
|
||||
@ -204,7 +215,7 @@ const configDetail=async()=>{
|
||||
if(code==200){
|
||||
if(data.inquiry_price){
|
||||
tuwenPrice.value=data.inquiry_price;
|
||||
emits('setPrice',data.inquiry_price*0.6*5)
|
||||
emits('setPrice',data.inquiry_price*0.6*5+packagePrice.value)
|
||||
}else{
|
||||
proxy.$message.warning('该医生需要开启图文问诊,才能开通此服务');
|
||||
}
|
||||
@ -216,6 +227,11 @@ const configDetail=async()=>{
|
||||
}
|
||||
const changeDoctor=(val)=>{
|
||||
configDetail();
|
||||
}
|
||||
const isSelectPackage=()=>{
|
||||
if(packagePrice.value==null && !id.value){
|
||||
proxy.$message.warning('请先选择健康包');
|
||||
}
|
||||
}
|
||||
const {modalVisible,id,modalForm}=toRefs(props);
|
||||
const emits = defineEmits(['healthVisibleChange','freshList']);
|
||||
|
||||
@ -33,6 +33,7 @@ const props = defineProps({
|
||||
},
|
||||
});
|
||||
const {menuList} = storeToRefs(permissionStore);
|
||||
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
|
||||
|
||||
@ -80,6 +80,7 @@ router.beforeEach(async(to, from, next) => {
|
||||
if (store.token && permissionStore.addRouters.length==0) {
|
||||
await permissionStore.getButtonRole();
|
||||
const menuResult = await permissionStore.getMenuRole();
|
||||
console.log( permissionStore.addRouters)
|
||||
permissionStore.addRouters.forEach((route) => {
|
||||
router.addRoute('/', route);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user