优惠券
This commit is contained in:
parent
cf8d1c500c
commit
d1615f86fe
@ -3,7 +3,7 @@
|
||||
<a-modal
|
||||
v-model:visible="modalVisible"
|
||||
fullscreen
|
||||
:title="modalForm.coupon_id ? '编辑优惠卷' : '创建优惠卷'"
|
||||
:title="modalForm.coupon_id ? '编辑优惠劵' : '创建优惠劵'"
|
||||
title-align="start"
|
||||
:auto-label-width="true"
|
||||
:footer="false"
|
||||
@ -11,7 +11,7 @@
|
||||
>
|
||||
<div class="titlebox">
|
||||
<div class="bar"></div>
|
||||
<div class="name">优惠卷信息</div>
|
||||
<div class="name">优惠劵信息</div>
|
||||
</div>
|
||||
<a-form
|
||||
:model="modalForm"
|
||||
@ -21,9 +21,9 @@
|
||||
>
|
||||
<a-row :gutter="24" style="margin-top: 35px">
|
||||
<a-col :span="12">
|
||||
<a-form-item field="coupon_name" label="优惠卷名称:">
|
||||
<a-form-item field="coupon_name" label="优惠劵名称:">
|
||||
<a-input
|
||||
placeholder="请输入优惠卷名称"
|
||||
placeholder="请输入优惠劵名称"
|
||||
v-model="modalForm.coupon_name"
|
||||
></a-input>
|
||||
</a-form-item>
|
||||
@ -187,11 +187,11 @@
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col a-col :span="24">
|
||||
<a-form-item field="coupon_price" label="优惠卷金额:">
|
||||
<a-form-item field="coupon_price" label="优惠劵金额:">
|
||||
<a-input-number
|
||||
v-model="modalForm.coupon_price"
|
||||
:style="{ width: '320px' }"
|
||||
placeholder="请输入优惠卷金额"
|
||||
placeholder="请输入优惠劵金额"
|
||||
class="input-demo"
|
||||
:min="1"
|
||||
/>
|
||||
@ -396,10 +396,10 @@
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col a-col :span="12">
|
||||
<a-form-item field="coupon_desc" label="优惠卷描述:">
|
||||
<a-form-item field="coupon_desc" label="优惠劵描述:">
|
||||
<a-textarea
|
||||
v-model="modalForm.coupon_desc"
|
||||
placeholder="请输入优惠卷描述"
|
||||
placeholder="请输入优惠劵描述"
|
||||
allow-clear
|
||||
:style="{ minHeight: '100px' }"
|
||||
/>
|
||||
@ -889,14 +889,14 @@ const handleUpdateCoupon = async () => {
|
||||
});
|
||||
};
|
||||
const rules = {
|
||||
coupon_name: [{ required: true, message: '请输入优惠卷名称' }],
|
||||
coupon_name: [{ required: true, message: '请输入优惠劵名称' }],
|
||||
coupon_client: [{ required: true, message: '请选择使用平台' }],
|
||||
application_scope: [{ required: true, message: '请选择使用范围' }],
|
||||
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: '请输入优惠卷金额' }]
|
||||
coupon_price:[{ required: true, message: '请输入优惠劵金额' }]
|
||||
};
|
||||
defineExpose({
|
||||
changeStatus,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<a-modal v-model:visible="giveVisible" :modal-style="{width:'420px'}" body-class="okmodal" @ok="handleConfirm"
|
||||
@cancel="handleClose" >
|
||||
<template #title>
|
||||
发放优惠卷
|
||||
发放优惠劵
|
||||
</template>
|
||||
<a-form :model="modalForm" :rules="rules" ref="modalFormRef" size="medium" label-align="left" auto-label-width>
|
||||
<a-form-item field="type" label="发放类型" >
|
||||
@ -33,7 +33,7 @@
|
||||
<a-form-item field="single_quantity" label="个人可发放数量" >
|
||||
<a-input-number v-model="modalForm.single_quantity" placeholder="请输入个人可发放数量" size="large" :min="0" />
|
||||
</a-form-item>
|
||||
<a-form-item field="is_follow_rules" label="是否遵循优惠卷发放对象规则" >
|
||||
<a-form-item field="is_follow_rules" label="是否遵循优惠劵发放对象规则" >
|
||||
<a-switch v-model="modalForm.is_follow_rules" :checked-value="1" :unchecked-value="0"/>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
|
||||
@ -46,7 +46,7 @@
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-item field="coupon_amount_total" label="优惠卷:">
|
||||
<a-form-item field="coupon_amount_total" label="优惠劵:">
|
||||
<span v-if="modalForm.coupon_amount_total>0">{{modalForm.coupon_amount_total}}元</span>
|
||||
<span v-else>无</span>
|
||||
</a-form-item>
|
||||
|
||||
@ -57,7 +57,7 @@
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12" >
|
||||
<a-form-item field="amount_total" label="优惠卷:">
|
||||
<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>
|
||||
|
||||
@ -2,11 +2,11 @@
|
||||
<div class="app-container">
|
||||
<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-form-item field="coupon_name" label="优惠劵名称">
|
||||
<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" />
|
||||
<a-form-item field="coupon_desc" label="优惠劵描述">
|
||||
<a-input :style="{ width: '182px' }" v-model="queryForm.coupon_desc" placeholder="请输入优惠劵描述" @press-enter="handleQuery" />
|
||||
</a-form-item>
|
||||
<a-form-item field="coupon_status" label="启用状态">
|
||||
<a-select v-model="queryForm.coupon_status" placeholder="请选择启用状态" :style="{ width: '182px' }">
|
||||
@ -71,7 +71,7 @@
|
||||
<!-- action -->
|
||||
<div class="action">
|
||||
<a-space>
|
||||
<a-button v-has="'admin:sysCouponList:add'" type="primary" @click="showAdd"><icon-plus /> 创建优惠卷 </a-button>
|
||||
<a-button v-has="'admin:sysCouponList:add'" type="primary" @click="showAdd"><icon-plus /> 创建优惠劵 </a-button>
|
||||
<!-- <a-button v-has="'admin:sysPatientList:selectExport'" type="primary" @click="handlExport(2)"><icon-export /> 选择数据导出 </a-button>
|
||||
<a-button v-has="'admin:sysPatientList:searchExport'" type="primary" @click="handlExport(1)"><icon-export /> 当前搜索全部导出</a-button>
|
||||
<a-button v-has="'admin:sysPatientList:allExport'" type="primary" @click="handlExport(3)"><icon-export /> 全部导出</a-button> -->
|
||||
@ -116,7 +116,7 @@
|
||||
</a-space>
|
||||
<a-space>
|
||||
<a-button v-has="'admin:sysCouponList:give'" type="text"
|
||||
@click="handleGive(record)"><icon-pushpin />发放优惠卷</a-button>
|
||||
@click="handleGive(record)"><icon-pushpin />发放优惠劵</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
</a-table>
|
||||
@ -214,7 +214,7 @@ const isVisible=ref(false);
|
||||
dataIndex: 'code',
|
||||
slotName:'code'
|
||||
},{
|
||||
title: '优惠卷名称',
|
||||
title: '优惠劵名称',
|
||||
dataIndex: 'coupon_name',
|
||||
},{
|
||||
title: '适用平台',
|
||||
@ -247,7 +247,7 @@ const isVisible=ref(false);
|
||||
dataIndex:'coupon_used_count'
|
||||
},
|
||||
{
|
||||
title: '优惠卷金额',
|
||||
title: '优惠劵金额',
|
||||
dataIndex:'coupon_price',
|
||||
slotName:'coupon_price'
|
||||
},
|
||||
|
||||
@ -5,8 +5,8 @@
|
||||
<a-form-item field="user_name" label="用户名称">
|
||||
<a-input :style="{ width: '182px' }" v-model="queryForm.user_name" placeholder="请输入用户名称" @press-enter="handleQuery" />
|
||||
</a-form-item>
|
||||
<a-form-item field="coupon_name" label="优惠卷名称">
|
||||
<a-input :style="{ width: '182px' }" v-model="queryForm.coupon_name" placeholder="请输入优惠卷名称" @press-enter="handleQuery" />
|
||||
<a-form-item field="coupon_name" label="优惠劵名称">
|
||||
<a-input :style="{ width: '182px' }" v-model="queryForm.coupon_name" placeholder="请输入优惠劵名称" @press-enter="handleQuery" />
|
||||
</a-form-item>
|
||||
<a-form-item field="user_coupon_status" label="使用状态">
|
||||
<a-select v-model="queryForm.user_coupon_status" placeholder="使用状态" :style="{ width: '182px' }">
|
||||
@ -108,13 +108,13 @@
|
||||
width:180
|
||||
},
|
||||
{
|
||||
title: '优惠卷名称',
|
||||
title: '优惠劵名称',
|
||||
dataIndex: 'coupon',
|
||||
slotName:'coupon',
|
||||
width:200
|
||||
},
|
||||
{
|
||||
title: '优惠卷状态',
|
||||
title: '优惠劵状态',
|
||||
dataIndex: 'user_coupon_status',
|
||||
slotName:'user_coupon_status',
|
||||
width:100
|
||||
|
||||
@ -372,7 +372,7 @@
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12" >
|
||||
<a-form-item field="amount_total" label="优惠卷:">
|
||||
<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>
|
||||
|
||||
@ -193,8 +193,8 @@
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-item field="coupon_amount_total" label="优惠卷:">
|
||||
<span v-if="modalForm.order_inquiry_coupon">{{modalForm.order_inquiry_coupon.coupon_name}}({{modalForm.order_inquiry_coupon.coupon_use_price}}元)</span>
|
||||
<a-form-item field="coupon_amount_total" label="优惠劵:">
|
||||
<span v-if="modalForm.order_inquiry_coupon">{{modalForm.order_inquiry_coupon.coupon_use_price?'-'+modalForm.order_inquiry_coupon.coupon_use_price:0}}元</span>
|
||||
<span v-else>无</span>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
@ -328,7 +328,7 @@
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-item field="coupon_amount_total" label="优惠卷:">
|
||||
<a-form-item field="coupon_amount_total" label="优惠劵:">
|
||||
<span v-if="modalForm.order_inquiry_coupon"
|
||||
>{{ modalForm.order_inquiry_coupon.coupon_name }}({{
|
||||
modalForm.order_inquiry_coupon.coupon_use_price
|
||||
@ -570,7 +570,7 @@
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="24">
|
||||
<a-form-item field="license_cert" label="优惠卷:"> </a-form-item>
|
||||
<a-form-item field="license_cert" label="优惠劵:"> </a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
@ -850,7 +850,7 @@
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-item field="coupon_amount_total" label="优惠卷:">
|
||||
<a-form-item field="coupon_amount_total" label="优惠劵:">
|
||||
<span v-if="modalInquiryForm.order_inquiry_coupon">{{modalInquiryForm.order_inquiry_coupon.coupon_name}}({{modalForm.order_inquiry_coupon.coupon_use_price}}元)</span>
|
||||
<span v-else>无</span>
|
||||
</a-form-item>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user