更新
This commit is contained in:
parent
1863bdde50
commit
2b9a8d6671
@ -38,7 +38,7 @@
|
||||
:step="1" :precision="0"
|
||||
:min="0"
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24" >
|
||||
@ -80,7 +80,6 @@
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
</a-row>
|
||||
<a-row :gutter="24" >
|
||||
<a-col :span="12">
|
||||
@ -96,7 +95,7 @@
|
||||
|
||||
</a-row>
|
||||
<a-row :gutter="24" >
|
||||
<a-col :span="12">
|
||||
<a-col :span="13">
|
||||
<a-form-item field="service_price" label="服务价格(元):">
|
||||
<a-input-number
|
||||
disabled
|
||||
@ -106,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>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
@ -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
|
||||
});
|
||||
</script>
|
||||
<style scoped>
|
||||
|
||||
@ -519,7 +519,7 @@
|
||||
:api="cancelProduct"
|
||||
:dealType="'order_inquiry_id'"
|
||||
:payment_amount_total="modalForm.payment_amount_total
|
||||
" :type="'service'"
|
||||
" :type="'medince'"
|
||||
:id="cur_product_id"
|
||||
@closeChange="closeChange"
|
||||
></confirmModal>
|
||||
|
||||
@ -197,6 +197,7 @@
|
||||
if(data.doctor_inquiry_config){
|
||||
modalForm.is_enable=data.doctor_inquiry_config.is_enable
|
||||
}
|
||||
addChild.value.changeDoctor();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user