更新
This commit is contained in:
parent
1863bdde50
commit
2b9a8d6671
@ -80,7 +80,6 @@
|
|||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-row :gutter="24" >
|
<a-row :gutter="24" >
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
@ -96,7 +95,7 @@
|
|||||||
|
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-row :gutter="24" >
|
<a-row :gutter="24" >
|
||||||
<a-col :span="12">
|
<a-col :span="13">
|
||||||
<a-form-item field="service_price" label="服务价格(元):">
|
<a-form-item field="service_price" label="服务价格(元):">
|
||||||
<a-input-number
|
<a-input-number
|
||||||
disabled
|
disabled
|
||||||
@ -106,7 +105,7 @@
|
|||||||
class="input-demo"
|
class="input-demo"
|
||||||
:step="1" :precision="0"
|
:step="1" :precision="0"
|
||||||
:min="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-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
@ -194,7 +193,7 @@ const reset=()=>{
|
|||||||
};
|
};
|
||||||
|
|
||||||
let multi_point_status=null;
|
let multi_point_status=null;
|
||||||
let tuwenPrice='';
|
const tuwenPrice=ref('');
|
||||||
const configDetail=async()=>{
|
const configDetail=async()=>{
|
||||||
const {code,data}=await getInquiryconfigDetail({
|
const {code,data}=await getInquiryconfigDetail({
|
||||||
inquiry_config_id:'',
|
inquiry_config_id:'',
|
||||||
@ -204,7 +203,7 @@ const configDetail=async()=>{
|
|||||||
});
|
});
|
||||||
if(code==200){
|
if(code==200){
|
||||||
if(data.inquiry_price){
|
if(data.inquiry_price){
|
||||||
tuwenPrice=data.inquiry_price;
|
tuwenPrice.value=data.inquiry_price;
|
||||||
emits('setPrice',data.inquiry_price*0.6*5)
|
emits('setPrice',data.inquiry_price*0.6*5)
|
||||||
}else{
|
}else{
|
||||||
proxy.$message.warning('该医生需要开启图文问诊,才能开通此服务');
|
proxy.$message.warning('该医生需要开启图文问诊,才能开通此服务');
|
||||||
@ -223,12 +222,10 @@ const changeDoctor=(val)=>{
|
|||||||
watch(()=>props.id,(newVal,oldValval)=>{
|
watch(()=>props.id,(newVal,oldValval)=>{
|
||||||
if(props.id){
|
if(props.id){
|
||||||
title.value='修改健康包配置';
|
title.value='修改健康包配置';
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
healthConfig();
|
healthConfig();
|
||||||
title.value='添加健康包配置';
|
title.value='添加健康包配置';
|
||||||
handleGetDoctor();
|
handleGetDoctor();
|
||||||
|
|
||||||
}
|
}
|
||||||
},{immediate:true})
|
},{immediate:true})
|
||||||
watch(()=>props.modalForm,(newVal,oldValval)=>{
|
watch(()=>props.modalForm,(newVal,oldValval)=>{
|
||||||
@ -255,7 +252,7 @@ const changeDoctor=(val)=>{
|
|||||||
const handleSubmit=()=>{
|
const handleSubmit=()=>{
|
||||||
proxy.$refs.modalFormRefConfig.validate(async (valid) => {
|
proxy.$refs.modalFormRefConfig.validate(async (valid) => {
|
||||||
let data=null;
|
let data=null;
|
||||||
if(tuwenPrice ===''){
|
if(tuwenPrice.value ===''){
|
||||||
proxy.$message.warning('该医生需要开启图文问诊,才能开通此服务');
|
proxy.$message.warning('该医生需要开启图文问诊,才能开通此服务');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -300,7 +297,8 @@ const changeDoctor=(val)=>{
|
|||||||
};
|
};
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
reset
|
reset,
|
||||||
|
changeDoctor
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
@ -519,7 +519,7 @@
|
|||||||
:api="cancelProduct"
|
:api="cancelProduct"
|
||||||
:dealType="'order_inquiry_id'"
|
:dealType="'order_inquiry_id'"
|
||||||
:payment_amount_total="modalForm.payment_amount_total
|
:payment_amount_total="modalForm.payment_amount_total
|
||||||
" :type="'service'"
|
" :type="'medince'"
|
||||||
:id="cur_product_id"
|
:id="cur_product_id"
|
||||||
@closeChange="closeChange"
|
@closeChange="closeChange"
|
||||||
></confirmModal>
|
></confirmModal>
|
||||||
|
|||||||
@ -197,6 +197,7 @@
|
|||||||
if(data.doctor_inquiry_config){
|
if(data.doctor_inquiry_config){
|
||||||
modalForm.is_enable=data.doctor_inquiry_config.is_enable
|
modalForm.is_enable=data.doctor_inquiry_config.is_enable
|
||||||
}
|
}
|
||||||
|
addChild.value.changeDoctor();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user