From b9413abf930ce45568740fdcdff439146c9256a9 Mon Sep 17 00:00:00 2001
From: b2894lxlx <517289602@qq.com>
Date: Wed, 30 Apr 2025 15:41:00 +0800
Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/think/thinkVip/model/index.ts | 3 +-
src/views/think/thinkField/period/index.vue | 5 +-
.../think/thinkOrder/components/refund.vue | 6 +-
src/views/think/thinkUsersVip/index.vue | 22 +-
.../thinkVip/components/thinkVipEdit.vue | 371 ++++++++++--------
5 files changed, 222 insertions(+), 185 deletions(-)
diff --git a/src/api/think/thinkVip/model/index.ts b/src/api/think/thinkVip/model/index.ts
index d58b701..c5a6dac 100644
--- a/src/api/think/thinkVip/model/index.ts
+++ b/src/api/think/thinkVip/model/index.ts
@@ -41,13 +41,14 @@ export interface ThinkVip {
prices?: string;
// 是否赠送积分:1赠送,2不赠送
isIntegral?: number;
+ mode?: number;
+ expiredTime?: string;
//
createTime?: number;
//
updateTime?: number;
// 是否有效:1是,0否
isUse?: number;
- // 是否销售:1是,0否
isSale?: number;
}
diff --git a/src/views/think/thinkField/period/index.vue b/src/views/think/thinkField/period/index.vue
index 719f929..008ef8b 100644
--- a/src/views/think/thinkField/period/index.vue
+++ b/src/views/think/thinkField/period/index.vue
@@ -56,6 +56,7 @@
v-model:visible="showEdit"
:merchant="data"
:merchantId="categoryId"
+ :sid="data.id"
:data="current"
@done="reload"
/>
@@ -180,8 +181,8 @@
},
{
title: '排序',
- dataIndex: 'sortNumber',
- key: 'sortNumber',
+ dataIndex: 'sort',
+ key: 'sort',
align: 'center'
},
{
diff --git a/src/views/think/thinkOrder/components/refund.vue b/src/views/think/thinkOrder/components/refund.vue
index 2899ea4..264f717 100644
--- a/src/views/think/thinkOrder/components/refund.vue
+++ b/src/views/think/thinkOrder/components/refund.vue
@@ -15,11 +15,11 @@
{{ data.totalPrice }}元
- {{ data.payPrice }}元
+ {{ data.price }}元
+ :max="data.price" />
@@ -63,7 +63,7 @@ const updateVisible = (value: boolean) => {
};
const save = async () => {
- if (!form.refundAmount) return message.error("请输入退款金额");
+ if (!form.refundAmount && props.data.price > 0) return message.error("请输入退款金额");
loading.value = true;
await addThinkOrderRefundLog(form);
loading.value = false;
diff --git a/src/views/think/thinkUsersVip/index.vue b/src/views/think/thinkUsersVip/index.vue
index 322d6b0..20b90ff 100644
--- a/src/views/think/thinkUsersVip/index.vue
+++ b/src/views/think/thinkUsersVip/index.vue
@@ -44,14 +44,9 @@
+
+
-
- 解绑
-
-
| null>(null);
@@ -391,6 +387,18 @@ const query = () => {
loading.value = true;
};
+const changeBindCard = (row: ThinkUsers, id: number) => {
+ updateThinkUsersVip({
+ id,
+ uid: row.id,
+ username: row.truename ?? row.username,
+ phone: row.phone
+ }).then(() => {
+ message.success("操作成功");
+ reload();
+ });
+};
+
/* 自定义行属性 */
const customRow = (record: ThinkUsersVip) => {
return {
diff --git a/src/views/think/thinkVip/components/thinkVipEdit.vue b/src/views/think/thinkVip/components/thinkVipEdit.vue
index 5232af3..494385f 100644
--- a/src/views/think/thinkVip/components/thinkVipEdit.vue
+++ b/src/views/think/thinkVip/components/thinkVipEdit.vue
@@ -53,6 +53,12 @@
不赠送
+
+
+ 按下单时间计算
+ 按固定时间
+
+
@@ -98,26 +104,32 @@
v-model:value="form.eachMoney"
/>
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
是
- 否
+ 否
+
+
+
+
+ 是
+ 否
@@ -145,165 +163,174 @@