更新
This commit is contained in:
parent
6cd48f58e0
commit
cf8d1c500c
@ -4,16 +4,20 @@
|
||||
<template #title>
|
||||
提示
|
||||
</template>
|
||||
<a-form :model="form" :rules="rules" ref="modalFormRef" size="medium" label-align="left" auto-label-width>
|
||||
<a-form-item field="cancel_remarks" label="理由" >
|
||||
<a-form :model="form" :rules="rules" ref="modalFormRef" size="medium" label-align="right" auto-label-width>
|
||||
<a-form-item field="cancel_remarks" label="理由:" >
|
||||
<a-textarea v-model.trim="form.cancel_remarks" allow-clear placeholder="请输入取消订单理由"></a-textarea>
|
||||
</a-form-item>
|
||||
<a-form-item field="refund_amount" label="退款金额(元)" >
|
||||
<a-form-item field="refund_amount" label="退款金额(元):" >
|
||||
<a-input-number v-model="form.refund_amount" placeholder="请输入退款金额" size="large" class="input-demo" :min="0" :max="payment_amount_total"/>
|
||||
</a-form-item>
|
||||
<a-form-item field="" label="" v-if="type=='service'">
|
||||
温馨提示:退款金额不可大于实际付款金额,请谨慎填写;\n
|
||||
退款理由请认真填写,会显示给患者(本单实付金额金额:{{payment_amount_total}}元)。
|
||||
<a-form-item field="" label="温馨提示:" v-if="type=='service'">
|
||||
温馨提示:退款金额不可大于实际付款金额,请谨慎填写;<br>
|
||||
退款理由请认真填写,会显示给患者(本单实付金额:{{payment_amount_total}}元)。
|
||||
</a-form-item>
|
||||
<a-form-item field="" label="注:" v-if="type=='service'">
|
||||
当前订单已超过3个月,无法在线上进行自动退款,请线下联系患者进行退款。沟通后,也要填写退款金额和理由。<br>
|
||||
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
<template #footer>
|
||||
@ -41,6 +45,7 @@ const props = defineProps({
|
||||
type: String,
|
||||
default:'',
|
||||
},
|
||||
|
||||
id:{
|
||||
type: String,
|
||||
default:'',
|
||||
|
||||
@ -68,7 +68,7 @@
|
||||
<a-col :span="12">
|
||||
<a-form-item field="coupon_type" label="发放类型:">
|
||||
<a-select
|
||||
:disabled="modalForm.coupon_id?true:false"
|
||||
:disabled="modalForm.coupon_id ? true: false"
|
||||
placeholder="请选择发放类型"
|
||||
v-model="modalForm.coupon_type"
|
||||
@change="changeType"
|
||||
@ -107,8 +107,8 @@
|
||||
<a-col :span="12">
|
||||
<a-form-item field="valid_type" label="有效类型:">
|
||||
<a-select
|
||||
:disabled="modalForm.coupon_id?true:false"
|
||||
placeholder="请选择发放类型"
|
||||
:disabled="modalForm.coupon_id ? true: false"
|
||||
placeholder="请选择有效类型"
|
||||
v-model="modalForm.valid_type"
|
||||
@change="changeValidType"
|
||||
>
|
||||
@ -223,8 +223,10 @@
|
||||
<a-row :gutter="24" v-if="showValidDay">
|
||||
<a-col a-col :span="24">
|
||||
<a-form-item
|
||||
:disabled="modalForm.coupon_id?true:false"
|
||||
field="valid_days"
|
||||
label="领取之日起有效天数:"
|
||||
:validate-trigger="['blur']"
|
||||
:rules="[{ required: true, message: '请输入领取之日起有效天数' }]"
|
||||
>
|
||||
<a-input-number
|
||||
@ -368,8 +370,8 @@
|
||||
:style="{ width: '320px' }"
|
||||
>
|
||||
<a-select
|
||||
placeholder="请选择发放类型"
|
||||
:disabled="modalForm.coupon_id"
|
||||
placeholder="请选择状态"
|
||||
:disabled="modalForm.coupon_id?true:false"
|
||||
v-model="modalForm.coupon_status"
|
||||
>
|
||||
<!-- 1:正常 2:强制失效 3:结束 4:删除-->
|
||||
@ -448,7 +450,7 @@
|
||||
<a-button
|
||||
type="primary"
|
||||
v-has="'admin:sysCouponList:edit'"
|
||||
status="danger"
|
||||
|
||||
:disabled="modalForm.coupon_status == 2"
|
||||
@click="handleUpdateCoupon"
|
||||
>修改</a-button
|
||||
@ -585,22 +587,28 @@ const handleGetProduct = async (name = '', id = '') => {
|
||||
}
|
||||
loading.value = false;
|
||||
};
|
||||
const changeType = (val) => {
|
||||
const changeType = (val,flag=true) => {
|
||||
showManjian.value = false;
|
||||
emits('changeValue','with_amount');
|
||||
showMinNumber.value = false;
|
||||
emits('changeValue','min_usable_number');
|
||||
if(flag){
|
||||
emits('changeValue','with_amount');
|
||||
emits('changeValue','min_usable_number');
|
||||
}
|
||||
|
||||
if (val == 2) {
|
||||
showManjian.value = true;
|
||||
} else if (val == 3) {
|
||||
showMinNumber.value = true;
|
||||
}
|
||||
};
|
||||
const changeValidType = (val) => {
|
||||
const changeValidType = (val,flag=true) => {
|
||||
showTimeRange.value = false;
|
||||
clearDate();
|
||||
|
||||
showValidDay.value = false;
|
||||
emits('changeValue','valid_days');
|
||||
if(flag){
|
||||
clearDate();
|
||||
emits('changeValue','valid_days');
|
||||
}
|
||||
if (val == 1) {
|
||||
showTimeRange.value = true;
|
||||
if (modalForm.value.valid_start_time) {
|
||||
@ -613,15 +621,21 @@ const changeValidType = (val) => {
|
||||
showValidDay.value = true;
|
||||
}
|
||||
};
|
||||
const changeScope = (val) => {
|
||||
const changeScope = (val,flag=true) => {
|
||||
showConnectType.value = false;
|
||||
emits('changeValue','inquiry_type');
|
||||
|
||||
showProduct.value = false;
|
||||
emits('changeValue','product_id');
|
||||
|
||||
showManjian.value = false;
|
||||
emits('changeValue','with_amount');
|
||||
|
||||
showMinNumber.value = false;
|
||||
emits('changeValue','min_usable_number');
|
||||
|
||||
if(flag){
|
||||
emits('changeValue','inquiry_type');
|
||||
emits('changeValue','product_id');
|
||||
emits('changeValue','with_amount');
|
||||
emits('changeValue','min_usable_number');
|
||||
}
|
||||
if (val == 1) {
|
||||
modalForm.coupon_type == 2 && (showManjian.value = true);
|
||||
modalForm.coupon_type == 3 && (showMinNumber.value = true);
|
||||
@ -632,9 +646,12 @@ const changeScope = (val) => {
|
||||
handleGetProduct('', modalForm.value.product_id);
|
||||
}
|
||||
};
|
||||
const changeObject = (val) => {
|
||||
const changeObject = (val,flag=true) => {
|
||||
showDistributionDay.value = false;
|
||||
emits('changeValue','distribution_with_day');
|
||||
if(flag){
|
||||
emits('changeValue','distribution_with_day');
|
||||
}
|
||||
|
||||
if (val == 4) {
|
||||
showDistributionDay.value = true;
|
||||
}
|
||||
@ -645,10 +662,10 @@ watch(
|
||||
() => {
|
||||
//console.log(props.modalForm);
|
||||
if (props.modalForm.coupon_id) {
|
||||
changeType(props.modalForm.coupon_type);
|
||||
changeScope(props.modalForm.application_scope);
|
||||
changeObject(props.modalForm.distribution_object);
|
||||
changeValidType(props.modalForm.valid_type);
|
||||
changeType(props.modalForm.coupon_type,false);
|
||||
changeScope(props.modalForm.application_scope,false);
|
||||
changeObject(props.modalForm.distribution_object,false);
|
||||
changeValidType(props.modalForm.valid_type,false);
|
||||
if (props.modalForm.valid_start_time && props.modalForm.valid_end_time) {
|
||||
defaultValue.value = [
|
||||
props.modalForm.valid_start_time,
|
||||
|
||||
@ -291,7 +291,7 @@ const isVisible=ref(false);
|
||||
const { code, data, message } = await getCouponDetail(record.coupon_id);
|
||||
|
||||
if (code == 200) {
|
||||
Object.assign(modalForm, data);
|
||||
Object.assign(modalForm,data);
|
||||
family_data.value=data.patient_family;
|
||||
}
|
||||
};
|
||||
|
||||
@ -434,7 +434,8 @@
|
||||
<a-form-item field="escrow_trade_no" label="退款状态:">
|
||||
<span>{{
|
||||
formatRefundStatus(
|
||||
modalForm.order_service_package_refund.inquiry_refund_status
|
||||
modalForm.order_service_package_refund.refund_status
|
||||
|
||||
)
|
||||
}}</span>
|
||||
</a-form-item>
|
||||
@ -479,14 +480,21 @@
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24" v-if="rightDetail.order_service_package_detail">
|
||||
<a-row :gutter="24" v-if="(modalForm.order_service_status==3 || modalForm.order_service_status==4 || modalForm.order_service_status==5 )">
|
||||
<a-col :span="24">
|
||||
<a-form-item field="license_cert" label="问诊服务剩余次数:">
|
||||
<a-form-item field="license_cert" label="当月时间:">
|
||||
{{rightDetail.current_month_start_date}}-{{rightDetail.current_month_finish_date}}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24" v-if="rightDetail.order_service_package_detail && (modalForm.order_service_status==3 || modalForm.order_service_status==4 || modalForm.order_service_status==5 )">
|
||||
<a-col :span="24">
|
||||
<a-form-item field="license_cert" label="问诊服务当月剩余:">
|
||||
{{rightDetail.order_service_package_detail.service_count==0?'不限':rightDetail.remaining_inquiry_count}}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24" v-if="rightDetail.order_service_package_detail">
|
||||
<a-row :gutter="24" v-if="rightDetail.order_service_package_detail && (modalForm.order_service_status==3 || modalForm.order_service_status==4 || modalForm.order_service_status==5 )">
|
||||
<a-col :span="24">
|
||||
<a-form-item field="license_cert" label="药品剩余数量:">
|
||||
{{rightDetail.order_service_package_detail.remaining_quantity}}
|
||||
@ -785,6 +793,7 @@
|
||||
:api="cancleType=='inquiry'?cancelInquiry:cancelService"
|
||||
:title="'确定取消此订单吗?'"
|
||||
:dealType="'order_inquiry_id'"
|
||||
:type="cancleType=='inquiry'?'':'service'"
|
||||
:id="cur_inruiry_id"
|
||||
@closeChange="handelCloseChange"
|
||||
></confirmModal>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user