From e1c8a1105eb052f65323c2599e3321979b4b6d86 Mon Sep 17 00:00:00 2001
From: zoujiandong <10130823232@qq.com>
Date: Tue, 4 Jun 2024 15:44:14 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/coupon/list.js | 2 +-
src/components/confirmModal.vue | 17 +-
src/components/couponDetail.vue | 368 +++++++++++++++++--------
src/components/medinceOrderModal.vue | 10 +-
src/views/order/service-list/index.vue | 6 +-
5 files changed, 280 insertions(+), 123 deletions(-)
diff --git a/src/api/coupon/list.js b/src/api/coupon/list.js
index 3494119..58fa9c7 100644
--- a/src/api/coupon/list.js
+++ b/src/api/coupon/list.js
@@ -14,7 +14,7 @@ export function getCouponDetail(id){
}
export function addCoupon(data){//系统-新增系统优惠卷
return request({
- url:'/admin/coupon/system/'+id,
+ url:'/admin/coupon/system/',
method: 'post',
data
})
diff --git a/src/components/confirmModal.vue b/src/components/confirmModal.vue
index 310c728..977a341 100644
--- a/src/components/confirmModal.vue
+++ b/src/components/confirmModal.vue
@@ -9,7 +9,11 @@
-
+
+
+
+ 温馨提示:退款金额不可大于实际付款金额,请谨慎填写;\n
+ 退款理由请认真填写,会显示给患者(本单实付金额金额:{{payment_amount_total}}元)。
@@ -33,6 +37,10 @@ const props = defineProps({
type: Boolean,
default: false,
},
+ type:{
+ type: String,
+ default:'',
+ },
id:{
type: String,
default:'',
@@ -53,7 +61,7 @@ const props = defineProps({
},
});
const emits = defineEmits(['closeChange']);
-const {okVisible,title,id,api,payment_amount_total} = toRefs(props);
+const {okVisible,title,id,api,payment_amount_total,type} = toRefs(props);
// Akiraka 20230210 关闭弹窗
const handleClose = () => {
@@ -61,7 +69,10 @@ const handleClose = () => {
// alert(flag)
}
watch(()=>props.payment_amount_total,(newVal,oldVal)=>{
- form.refund_amount=Number(newVal);
+ if(!props.type){
+ form.refund_amount=Number(newVal);
+ }
+ //
},{immediate:true})
// Akiraka 20230210 删除数据校验
const rules = reactive({
diff --git a/src/components/couponDetail.vue b/src/components/couponDetail.vue
index 2ca6829..d178b03 100644
--- a/src/components/couponDetail.vue
+++ b/src/components/couponDetail.vue
@@ -38,7 +38,7 @@
@@ -75,16 +75,25 @@
-
-
+
+
+
+ 全部用户
+ 新注册用户
+ 会员
+ 近期消费
+ 近期购药
+ 存量用户
+ 健康包服务用户
+
@@ -101,60 +110,182 @@
-
+
-
-
-
+
+
+
+ 专家问诊
+ 快速问诊
+ 公益问诊
+ 问诊购药
+ 糖组检测
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -166,75 +297,33 @@
-
+
{
- isVisible = true;
- modalForm.coupon_id='';
- }
- "
+ @click="handleAddCoupon"
>添加
-
-
+
+
{
- okVisible = true;
- modalForm.coupon_id='';
- }
- "
- >保存修改
-
- {
- doctorVisible = false;
- doctor_id = '';
- }
- "
- >
-
- {
- patientVisible = false;
- }
- "
- >