发放类型

This commit is contained in:
zoujiandong 2024-06-13 13:58:11 +08:00
parent 4d1d67d4b6
commit 31e1147913
4 changed files with 24 additions and 6 deletions

View File

@ -31,6 +31,7 @@
<a-col :span="12">
<a-form-item field="coupon_client" label="使用平台:">
<a-select
disabled
placeholder="请选择使用平台"
v-model="modalForm.coupon_client"
>
@ -43,6 +44,7 @@
<a-col :span="12">
<a-form-item field="application_scope" label="使用范围:">
<a-select
disabled
@change="changeScope"
placeholder="请选择使用范围"
v-model="modalForm.application_scope"
@ -66,6 +68,7 @@
<a-col :span="12">
<a-form-item field="coupon_type" label="发放类型:">
<a-select
disabled
placeholder="请选择发放类型"
v-model="modalForm.coupon_type"
@change="changeType"
@ -104,6 +107,7 @@
<a-col :span="12">
<a-form-item field="valid_type" label="有效类型:">
<a-select
disabled
placeholder="请选择发放类型"
v-model="modalForm.valid_type"
@change="changeValidType"
@ -857,6 +861,8 @@ const rules = {
coupon_type: [{ required: true, message: '请选择发放类型' }],
distribution_object: [{ required: true, message: '请选择发放对象' }],
valid_type: [{ required: true, message: '请选择有效类型' }],
coupon_count:[{ required: true, message: '请输入发放数量' }],
coupon_price:[{ required: true, message: '请输入优惠卷金额' }]
};
defineExpose({
changeStatus,

View File

@ -55,6 +55,18 @@
</a-form-item>
</a-col>
</a-row>
<a-row :gutter="24">
<a-col :span="12" >
<a-form-item field="amount_total" label="优惠卷:">
<span>{{modalForm.order_product_coupon?modalForm.order_product_coupon.coupon_use_price:0}}</span>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item field="logistics_fee" label="优惠金额:">
<span>{{ modalForm.discount_amount>0?'-'+modalForm.discount_amount:0 }}</span>
</a-form-item>
</a-col>
</a-row>
<a-row :gutter="24">
<a-col :span="12">
<a-form-item field="payment_amount_total" label="实付金额:">

View File

@ -53,8 +53,8 @@ export const formatDoctorTitle=(val)=>{
}
}
export const formatServiceCancelReason=(val)=>{
//1医生未接受服务 2:主动取消 4:客服取消 5:支付超时
let data={1:'医生未接受服务', 2:'主动取消',4:'客服取消',5:'支付超时'}
//1医生未接受服务 2:主动取消 3"支付超时" 4:客服取消 5:支付超时
let data={1:'医生未接受服务', 2:'主动取消',3:"支付超时",4:'客服取消',5:'支付超时'}
if(val){
return data[val]
}else{

View File

@ -3,7 +3,7 @@
<a-form :model="queryForm" ref="queryFormRef" layout="inline">
<a-form-item field="coupon_name" label="优惠卷名称">
<a-input :style="{ width: '182px' }" v-model="queryForm.coupon_name" placeholder="请输入患者名字" @press-enter="handleQuery" />
<a-input :style="{ width: '182px' }" v-model="queryForm.coupon_name" placeholder="请输入优惠卷名称" @press-enter="handleQuery" />
</a-form-item>
<a-form-item field="coupon_desc" label="优惠卷描述">
<a-input :style="{ width: '182px' }" v-model="queryForm.coupon_desc" placeholder="请输入优惠卷描述" @press-enter="handleQuery" />
@ -14,7 +14,7 @@
<a-option :value="1">正常</a-option>
<a-option :value="2">强制失效</a-option>
<a-option :value="3">结束</a-option>
<a-option :value="3">删除</a-option>
<a-option :value="4">删除</a-option>
</a-select>
</a-form-item>
<a-form-item field="distribution_object" label="发放对象">
@ -41,8 +41,8 @@
</a-select>
</a-form-item>
<a-form-item field="application_scope" label="关联问诊类型">
<a-select v-model="queryForm.application_scope" placeholder="请选择适用范围" :style="{ width: '182px' }">
<a-form-item field="inquiry_type" label="关联问诊类型">
<a-select v-model="queryForm.inquiry_type" placeholder="请选择关联问诊类型" :style="{ width: '182px' }">
<!--1:'专家问诊', 2:'快速问诊', 3:'公益问诊', 4:'问诊购药',5:'糖组检测'-->
<a-option value="1">专家问诊</a-option>
<a-option value="2">快速问诊</a-option>