From 2b9a8d66715ee79e79a6aed289b2cdcc2f174597 Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Mon, 17 Jun 2024 11:58:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/addHealthConfigModal.vue | 18 ++++++++---------- src/components/medinceOrderModal.vue | 2 +- src/views/inquiry/healthconfig/index.vue | 1 + 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/components/addHealthConfigModal.vue b/src/components/addHealthConfigModal.vue index 5d3005d..0d70ed7 100644 --- a/src/components/addHealthConfigModal.vue +++ b/src/components/addHealthConfigModal.vue @@ -38,7 +38,7 @@ :step="1" :precision="0" :min="0" /> - + @@ -80,7 +80,6 @@ - @@ -96,7 +95,7 @@ - + + />  提示:问诊金额{{tuwenPrice}}元,健康包金额{{modalForm.service_price}}元 @@ -194,7 +193,7 @@ const reset=()=>{ }; let multi_point_status=null; -let tuwenPrice=''; +const tuwenPrice=ref(''); const configDetail=async()=>{ const {code,data}=await getInquiryconfigDetail({ inquiry_config_id:'', @@ -204,7 +203,7 @@ const configDetail=async()=>{ }); if(code==200){ if(data.inquiry_price){ - tuwenPrice=data.inquiry_price; + tuwenPrice.value=data.inquiry_price; emits('setPrice',data.inquiry_price*0.6*5) }else{ proxy.$message.warning('该医生需要开启图文问诊,才能开通此服务'); @@ -223,12 +222,10 @@ const changeDoctor=(val)=>{ watch(()=>props.id,(newVal,oldValval)=>{ if(props.id){ title.value='修改健康包配置'; - }else{ healthConfig(); title.value='添加健康包配置'; handleGetDoctor(); - } },{immediate:true}) watch(()=>props.modalForm,(newVal,oldValval)=>{ @@ -255,7 +252,7 @@ const changeDoctor=(val)=>{ const handleSubmit=()=>{ proxy.$refs.modalFormRefConfig.validate(async (valid) => { let data=null; - if(tuwenPrice ===''){ + if(tuwenPrice.value ===''){ proxy.$message.warning('该医生需要开启图文问诊,才能开通此服务'); return false; } @@ -300,7 +297,8 @@ const changeDoctor=(val)=>{ }; defineExpose({ - reset + reset, + changeDoctor });