From c368c9b232f8770171fbdd7a13905aa2c88e6619 Mon Sep 17 00:00:00 2001 From: zws <447643445@qq.com> Date: Tue, 15 Aug 2023 13:32:21 +0800 Subject: [PATCH 01/21] fix https://gitee.com/yudaocode/yudao-ui-admin-vue3/issues/I7SZNW --- src/views/mall/promotion/combination/record/index.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/views/mall/promotion/combination/record/index.vue b/src/views/mall/promotion/combination/record/index.vue index e69de29b..9d363c2a 100644 --- a/src/views/mall/promotion/combination/record/index.vue +++ b/src/views/mall/promotion/combination/record/index.vue @@ -0,0 +1,5 @@ + + From 44be35b5ce3159b525d17ab7abbd931c114867e8 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Thu, 17 Aug 2023 10:52:40 +0800 Subject: [PATCH 02/21] =?UTF-8?q?fix:=20=E5=AE=8C=E5=96=84=E7=A0=8D?= =?UTF-8?q?=E4=BB=B7=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86=E5=AF=B9=E9=BD=90?= =?UTF-8?q?=E5=90=8E=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/promotion/bargain/bargainActivity.ts | 10 +++--- .../mall/product/spu/components/SkuList.vue | 9 ++--- .../bargain/activity/BargainActivityForm.vue | 27 +++++++++++---- .../promotion/combination/record/index.vue | 5 +++ .../mall/promotion/components/SpuSelect.vue | 33 +++++++++++++++---- 5 files changed, 62 insertions(+), 22 deletions(-) diff --git a/src/api/mall/promotion/bargain/bargainActivity.ts b/src/api/mall/promotion/bargain/bargainActivity.ts index a23477d9..9e2dfba5 100644 --- a/src/api/mall/promotion/bargain/bargainActivity.ts +++ b/src/api/mall/promotion/bargain/bargainActivity.ts @@ -7,18 +7,20 @@ export interface BargainActivityVO { startTime?: Date endTime?: Date status?: number - spuId?: number userSize?: number // 达到该人数,才能砍到低价 bargainCount?: number // 最大帮砍次数 totalLimitCount?: number // 最大购买次数 - stock?: number // 活动总库存 + spuId: number + skuId: number + bargainFirstPrice: number // 砍价起始价格,单位分 + bargainPrice: number // 砍价底价 + stock: number // 活动库存 randomMinPrice?: number // 用户每次砍价的最小金额,单位:分 randomMaxPrice?: number // 用户每次砍价的最大金额,单位:分 successCount?: number // 砍价成功数量 - products?: BargainProductVO[] } -// 砍价活动所需属性 +// 砍价活动所需属性。 选择的商品和属性的时候使用方便使用活动的通用封装 export interface BargainProductVO { spuId: number skuId: number diff --git a/src/views/mall/product/spu/components/SkuList.vue b/src/views/mall/product/spu/components/SkuList.vue index 7fbb9011..1cc70298 100644 --- a/src/views/mall/product/spu/components/SkuList.vue +++ b/src/views/mall/product/spu/components/SkuList.vue @@ -334,7 +334,7 @@ const validateSku = () => { for (const sku of formData.value!.skus!) { // 作为活动组件的校验 if (props.isActivityComponent) { - for (const rule of props.ruleConfig) { + for (const rule of props?.ruleConfig) { const arg = getValue(sku, rule.name) if (!rule.rule(arg)) { validate = false // 只要有一个不通过则直接不通过 @@ -534,9 +534,10 @@ watch( } ) const activitySkuListRef = ref>() -const clearSelection = () => { - activitySkuListRef.value.clearSelection() + +const getSkuTableRef = () => { + return activitySkuListRef.value } // 暴露出生成 sku 方法,给添加属性成功时调用 -defineExpose({ generateTableData, validateSku, clearSelection }) +defineExpose({ generateTableData, validateSku, getSkuTableRef }) diff --git a/src/views/mall/promotion/bargain/activity/BargainActivityForm.vue b/src/views/mall/promotion/bargain/activity/BargainActivityForm.vue index 5384d6a1..3bef4956 100644 --- a/src/views/mall/promotion/bargain/activity/BargainActivityForm.vue +++ b/src/views/mall/promotion/bargain/activity/BargainActivityForm.vue @@ -51,7 +51,7 @@ 取 消 - + diff --git a/src/views/mall/promotion/components/SpuSelect.vue b/src/views/mall/promotion/components/SpuSelect.vue index c62e419c..166cf5ff 100644 --- a/src/views/mall/promotion/components/SpuSelect.vue +++ b/src/views/mall/promotion/components/SpuSelect.vue @@ -127,7 +127,8 @@ defineOptions({ name: 'PromotionSpuSelect' }) const props = defineProps({ // 默认不需要(不需要的情况下只返回 spu,需要的情况下返回 选中的 spu 和 sku 列表) // 其它活动需要选择商品和商品属性导入此组件即可,需添加组件属性 :isSelectSku='true' - isSelectSku: propTypes.bool.def(false) // 是否需要选择 sku 属性 + isSelectSku: propTypes.bool.def(false), // 是否需要选择 sku 属性 + radio: propTypes.bool.def(false) // 是否单选 sku }) const message = useMessage() // 消息弹窗 @@ -146,7 +147,7 @@ const queryParams = ref({ }) // 查询参数 const propertyList = ref([]) // 商品属性列表 const spuListRef = ref>() -const skuListRef = ref() // 商品属性选择 Ref +const skuListRef = ref>() // 商品属性选择 Ref const spuData = ref() // 商品详情 const isExpand = ref(false) // 控制 SKU 列表显示 const expandRowKeys = ref() // 控制展开行需要设置 row-key 属性才能使用,该属性为展开行的 keys 数组。 @@ -155,12 +156,30 @@ const expandRowKeys = ref() // 控制展开行需要设置 row-key 属 const selectedSpuId = ref(0) // 选中的商品 spuId const selectedSkuIds = ref([]) // 选中的商品 skuIds const selectSku = (val: ProductSpuApi.Sku[]) => { + const skuTable = skuListRef.value?.getSkuTableRef() if (selectedSpuId.value === 0) { message.warning('请先选择商品再选择相应的规格!!!') - skuListRef.value.clearSelection() + skuTable?.clearSelection() return } - selectedSkuIds.value = val.map((sku) => sku.id!) + if (val.length === 0) { + selectedSkuIds.value = [] + return + } + if (props.radio) { + // 只选择一个 + selectedSkuIds.value = [val.map((sku) => sku.id!)[0]] + // 如果大于1个 + if (val.length > 1) { + // 清空选择 + skuTable?.clearSelection() + // 变更为最后一次选择的 + skuTable?.toggleRowSelection(val.pop(), true) + return + } + } else { + selectedSkuIds.value = val.map((sku) => sku.id!) + } } const selectSpu = (val: ProductSpuApi.Spu[]) => { if (val.length === 0) { @@ -176,9 +195,9 @@ const selectSpu = (val: ProductSpuApi.Spu[]) => { // 如果大于1个 if (val.length > 1) { // 清空选择 - spuListRef.value.clearSelection() + spuListRef.value?.clearSelection() // 变更为最后一次选择的 - spuListRef.value.toggleRowSelection(val.pop(), true) + spuListRef.value?.toggleRowSelection(val.pop(), true) return } expandChange(val[0], val) @@ -194,7 +213,7 @@ const expandChange = async (row: ProductSpuApi.Spu, expandedRows?: ProductSpuApi expandRowKeys.value = [selectedSpuId.value] return } - // 如果以展开 skuList 则选择此对应的 spu 不需要重新获取渲染 skuList + // 如果已展开 skuList 则选择此对应的 spu 不需要重新获取渲染 skuList if (isExpand.value && spuData.value?.id === row.id) { return } From 916e93ab2e3ba5e87bf4cd6e2c23a74ad03966b5 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Thu, 17 Aug 2023 14:56:13 +0800 Subject: [PATCH 03/21] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=8F=B3?= =?UTF-8?q?=E4=BE=A7=E4=BB=A3=E7=A0=81=E8=BF=87=E9=95=BF=E6=97=B6=E4=B8=8D?= =?UTF-8?q?=E7=BC=A9=E6=94=BE=E5=95=A5=E4=B9=9F=E5=81=9A=E4=B8=8D=E4=BA=86?= =?UTF-8?q?=E7=9A=84=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/infra/codegen/PreviewCode.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/infra/codegen/PreviewCode.vue b/src/views/infra/codegen/PreviewCode.vue index 16e63847..f95febaf 100644 --- a/src/views/infra/codegen/PreviewCode.vue +++ b/src/views/infra/codegen/PreviewCode.vue @@ -45,9 +45,9 @@ {{ t('common.copy') }} -
+
-
+ From e4592442ed4abeb115e04c3e8826c684cbbd76b2 Mon Sep 17 00:00:00 2001 From: baayso Date: Thu, 17 Aug 2023 21:35:58 +0800 Subject: [PATCH 04/21] =?UTF-8?q?fix:=201.=E4=BF=AE=E5=A4=8D=E3=80=90?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83=E3=80=91=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=9C=A8=E8=8B=B1=E8=AF=AD=E7=8E=AF=E5=A2=83=E4=B8=8B=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=90=8D=E8=BF=87=E9=95=BF=E8=A2=AB=E6=8D=A2=E8=A1=8C?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=AF=BC=E8=87=B4=E9=94=99=E4=BD=8D=EF=BC=9B?= =?UTF-8?q?2.=E4=BF=AE=E5=A4=8D=E3=80=90=E4=B8=AA=E4=BA=BA=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=E3=80=91=E9=A1=B5=E9=9D=A2=E3=80=90=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E3=80=91=E6=A0=A1=E9=AA=8C=E5=A4=B1=E6=95=88?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Profile/components/BasicInfo.vue | 8 +++++--- src/views/Profile/components/ResetPwd.vue | 15 +++++++++------ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/src/views/Profile/components/BasicInfo.vue b/src/views/Profile/components/BasicInfo.vue index 89c0cfbe..e2189b15 100644 --- a/src/views/Profile/components/BasicInfo.vue +++ b/src/views/Profile/components/BasicInfo.vue @@ -1,5 +1,5 @@ + diff --git a/src/views/mall/trade/order/index.vue b/src/views/mall/trade/order/index.vue index 1e4f6eb3..e0a5a290 100644 --- a/src/views/mall/trade/order/index.vue +++ b/src/views/mall/trade/order/index.vue @@ -1,572 +1,376 @@ - - + + + diff --git a/src/views/mall/trade/order/testData.ts b/src/views/mall/trade/order/testData.ts new file mode 100644 index 00000000..fcf3adaf --- /dev/null +++ b/src/views/mall/trade/order/testData.ts @@ -0,0 +1,167 @@ +import { OrderVO } from '@/api/mall/trade/order' + +export const testData: OrderVO = [ + { + id: 2, + no: '20230817002', + createTime: new Date('2023-08-17T11:30:00'), + type: 2, + terminal: 10, + userId: 1002, + userIp: '192.168.1.2', + userRemark: 'Urgent delivery required', + status: 20, + productCount: 2, + finishTime: null, + cancelTime: null, + cancelType: null, + remark: '', + payOrderId: 10002, + payed: false, + payTime: null, + payChannelCode: 'wx_app', + originalPrice: 80, + orderPrice: 80, + discountPrice: 0, + deliveryPrice: 5, + adjustPrice: 0, + payPrice: 85, + deliveryTemplateId: 2002, + logisticsId: null, + logisticsNo: '', + deliveryStatus: 0, + deliveryTime: null, + receiveTime: null, + receiverName: 'Jane Smith', + receiverMobile: '987-654-3210', + receiverAreaId: 4002, + receiverPostCode: 54321, + receiverDetailAddress: '456 Elm St, Apt 2C', + afterSaleStatus: 0, + refundPrice: 0, + couponId: null, + couponPrice: 0, + pointPrice: 0, + receiverAreaName: 'Townsville', + items: [ + { + id: 103, + userId: 1002, + orderId: 2, + spuId: 5003, + spuName: 'Widget C', + skuId: 6003, + picUrl: 'https://example.com/images/widget_c.jpg', + count: 1, + originalPrice: 40, + originalUnitPrice: 40, + discountPrice: 0, + payPrice: 40, + orderPartPrice: 40, + orderDividePrice: 40, + afterSaleStatus: 0, + properties: [ + { propertyId: 7001, propertyName: 'Color', valueId: 8004, valueName: 'Green' }, + { propertyId: 7002, propertyName: 'Size', valueId: 8002, valueName: 'Medium' } + ] + }, + { + id: 104, + userId: 1002, + orderId: 2, + spuId: 5004, + spuName: 'Widget D', + skuId: 6004, + picUrl: 'https://example.com/images/widget_d.jpg', + count: 1, + originalPrice: 40, + originalUnitPrice: 40, + discountPrice: 0, + payPrice: 40, + orderPartPrice: 40, + orderDividePrice: 40, + afterSaleStatus: 0, + properties: [ + { propertyId: 7003, propertyName: 'Color', valueId: 8005, valueName: 'Yellow' }, + { propertyId: 7002, propertyName: 'Size', valueId: 8002, valueName: 'Medium' } + ] + } + ], + user: { + id: 1002, + nickname: 'janesmith', + avatar: 'https://example.com/images/avatar.jpg' + } + }, + { + id: 3, + no: '20230817003', + createTime: new Date('2023-08-17T12:00:00'), + type: 1, + terminal: 10, + userId: 1003, + userIp: '192.168.1.3', + userRemark: '', + status: 10, + productCount: 1, + finishTime: new Date('2023-08-18T09:15:00'), + cancelTime: null, + cancelType: null, + remark: '', + payOrderId: 10003, + payed: true, + payTime: new Date('2023-08-17T12:30:00'), + payChannelCode: 'alipay_app', + originalPrice: 25, + orderPrice: 20, + discountPrice: 5, + deliveryPrice: 5, + adjustPrice: 0, + payPrice: 20, + deliveryTemplateId: 2001, + logisticsId: 3002, + logisticsNo: 'DEF987654', + deliveryStatus: 2, + deliveryTime: new Date('2023-08-18T10:30:00'), + receiveTime: new Date('2023-08-19T11:30:00'), + receiverName: 'Sarah Johnson', + receiverMobile: '555-123-4567', + receiverAreaId: 4003, + receiverPostCode: 67890, + receiverDetailAddress: '789 Oak Ave', + afterSaleStatus: 0, + refundPrice: 0, + couponId: 2001, + couponPrice: 5, + pointPrice: 0, + receiverAreaName: 'Villageville', + items: [ + { + id: 105, + userId: 1003, + orderId: 3, + spuId: 5005, + spuName: 'Widget E', + skuId: 6005, + picUrl: 'https://example.com/images/widget_e.jpg', + count: 1, + originalPrice: 20, + originalUnitPrice: 20, + discountPrice: 5, + payPrice: 15, + orderPartPrice: 15, + orderDividePrice: 15, + afterSaleStatus: 0, + properties: [ + { propertyId: 7001, propertyName: 'Color', valueId: 8006, valueName: 'Black' }, + { propertyId: 7002, propertyName: 'Size', valueId: 8002, valueName: 'Medium' } + ] + } + ], + user: { + id: 1003, + nickname: 'sarahjohnson', + avatar: 'https://example.com/images/avatar.jpg' + } + } +] diff --git a/src/views/mall/trade/order/tradeOrderDetail.vue b/src/views/mall/trade/order/tradeOrderDetail.vue deleted file mode 100644 index 1e61f799..00000000 --- a/src/views/mall/trade/order/tradeOrderDetail.vue +++ /dev/null @@ -1,365 +0,0 @@ - - - From 4bc3f15571d7d5d5646e510744a444964ea767b5 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 20 Aug 2023 19:06:46 +0800 Subject: [PATCH 07/21] =?UTF-8?q?code=20review=EF=BC=9A=E7=A7=AF=E5=88=86?= =?UTF-8?q?=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/dict.ts | 1 - src/views/member/point/record/index.vue | 44 +++++-------------------- 2 files changed, 8 insertions(+), 37 deletions(-) diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 6ca48716..52045c9a 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -142,7 +142,6 @@ export enum DICT_TYPE { // ========== MALL - 会员模块 ========== MEMBER_POINT_BIZ_TYPE = 'member_point_biz_type', // 积分的业务类型 - MEMBER_POINT_STATUS = 'member_point_status', // 积分的状态 // ========== MALL - 商品模块 ========== PRODUCT_UNIT = 'product_unit', // 商品单位 diff --git a/src/views/member/point/record/index.vue b/src/views/member/point/record/index.vue index f1e74bfa..20b81bd9 100644 --- a/src/views/member/point/record/index.vue +++ b/src/views/member/point/record/index.vue @@ -41,16 +41,6 @@ class="!w-240px" /> - - - - - - - - - + - + + - + + + - - - - - Date: Sun, 20 Aug 2023 19:26:50 +0800 Subject: [PATCH 08/21] =?UTF-8?q?code=20review=EF=BC=9A=E7=AD=BE=E5=88=B0?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/{ => member}/point/config/index.ts | 0 src/api/{ => member}/point/record/index.ts | 0 .../signin/config}/index.ts | 2 +- .../signin/record}/index.ts | 0 src/views/member/point/config/index.vue | 2 +- src/views/member/point/record/index.vue | 6 ++--- .../member/signin/config/SignInConfigForm.vue | 22 ++++++++++++--- src/views/member/signin/config/index.vue | 27 ++++--------------- 8 files changed, 28 insertions(+), 31 deletions(-) rename src/api/{ => member}/point/config/index.ts (100%) rename src/api/{ => member}/point/record/index.ts (100%) rename src/api/{point/signInConfig => member/signin/config}/index.ts (95%) rename src/api/{point/signInRecord => member/signin/record}/index.ts (100%) diff --git a/src/api/point/config/index.ts b/src/api/member/point/config/index.ts similarity index 100% rename from src/api/point/config/index.ts rename to src/api/member/point/config/index.ts diff --git a/src/api/point/record/index.ts b/src/api/member/point/record/index.ts similarity index 100% rename from src/api/point/record/index.ts rename to src/api/member/point/record/index.ts diff --git a/src/api/point/signInConfig/index.ts b/src/api/member/signin/config/index.ts similarity index 95% rename from src/api/point/signInConfig/index.ts rename to src/api/member/signin/config/index.ts index 246270ec..833c2e16 100644 --- a/src/api/point/signInConfig/index.ts +++ b/src/api/member/signin/config/index.ts @@ -8,7 +8,7 @@ export interface SignInConfigVO { } // 查询积分签到规则列表 -export const getSignInConfigPage = async () => { +export const getSignInConfigList = async () => { return await request.get({ url: `/member/point/sign-in-config/list` }) } diff --git a/src/api/point/signInRecord/index.ts b/src/api/member/signin/record/index.ts similarity index 100% rename from src/api/point/signInRecord/index.ts rename to src/api/member/signin/record/index.ts diff --git a/src/views/member/point/config/index.vue b/src/views/member/point/config/index.vue index 27820c24..27c52085 100644 --- a/src/views/member/point/config/index.vue +++ b/src/views/member/point/config/index.vue @@ -58,7 +58,7 @@ diff --git a/src/views/mall/trade/order/testData.ts b/src/views/mall/trade/order/testData.ts index fcf3adaf..d4c92a15 100644 --- a/src/views/mall/trade/order/testData.ts +++ b/src/views/mall/trade/order/testData.ts @@ -18,7 +18,7 @@ export const testData: OrderVO = [ remark: '', payOrderId: 10002, payed: false, - payTime: null, + payTime: new Date('2023-08-17T12:30:00'), payChannelCode: 'wx_app', originalPrice: 80, orderPrice: 80, @@ -32,26 +32,27 @@ export const testData: OrderVO = [ deliveryStatus: 0, deliveryTime: null, receiveTime: null, - receiverName: 'Jane Smith', - receiverMobile: '987-654-3210', + receiverName: '李四', + receiverMobile: '19855568989', receiverAreaId: 4002, receiverPostCode: 54321, - receiverDetailAddress: '456 Elm St, Apt 2C', + receiverDetailAddress: '翻斗花园', afterSaleStatus: 0, refundPrice: 0, couponId: null, couponPrice: 0, pointPrice: 0, - receiverAreaName: 'Townsville', + receiverAreaName: '北京市朝阳区', items: [ { id: 103, userId: 1002, orderId: 2, spuId: 5003, - spuName: 'Widget C', + spuName: '毛绒鸭子', skuId: 6003, - picUrl: 'https://example.com/images/widget_c.jpg', + picUrl: + 'http://127.0.0.1:48080/admin-api/infra/file/5/get/20220723041544165856414464011_BIG.jpg', count: 1, originalPrice: 40, originalUnitPrice: 40, @@ -61,8 +62,8 @@ export const testData: OrderVO = [ orderDividePrice: 40, afterSaleStatus: 0, properties: [ - { propertyId: 7001, propertyName: 'Color', valueId: 8004, valueName: 'Green' }, - { propertyId: 7002, propertyName: 'Size', valueId: 8002, valueName: 'Medium' } + { propertyId: 7001, propertyName: '颜色', valueId: 8004, valueName: '黄色' }, + { propertyId: 7002, propertyName: '尺寸', valueId: 8002, valueName: '小鸭子' } ] }, { @@ -70,9 +71,10 @@ export const testData: OrderVO = [ userId: 1002, orderId: 2, spuId: 5004, - spuName: 'Widget D', + spuName: '毛绒鸭子', skuId: 6004, - picUrl: 'https://example.com/images/widget_d.jpg', + picUrl: + 'http://127.0.0.1:48080/admin-api/infra/file/5/get/20220723041544165856414464011_BIG.jpg', count: 1, originalPrice: 40, originalUnitPrice: 40, @@ -82,14 +84,14 @@ export const testData: OrderVO = [ orderDividePrice: 40, afterSaleStatus: 0, properties: [ - { propertyId: 7003, propertyName: 'Color', valueId: 8005, valueName: 'Yellow' }, - { propertyId: 7002, propertyName: 'Size', valueId: 8002, valueName: 'Medium' } + { propertyId: 7001, propertyName: '颜色', valueId: 8004, valueName: '黄色' }, + { propertyId: 7002, propertyName: '尺寸', valueId: 8002, valueName: '大鸭子' } ] } ], user: { id: 1002, - nickname: 'janesmith', + nickname: '小妮子', avatar: 'https://example.com/images/avatar.jpg' } }, @@ -124,26 +126,26 @@ export const testData: OrderVO = [ deliveryStatus: 2, deliveryTime: new Date('2023-08-18T10:30:00'), receiveTime: new Date('2023-08-19T11:30:00'), - receiverName: 'Sarah Johnson', - receiverMobile: '555-123-4567', + receiverName: '张三', + receiverMobile: '13988886656', receiverAreaId: 4003, receiverPostCode: 67890, - receiverDetailAddress: '789 Oak Ave', + receiverDetailAddress: '成华大道', afterSaleStatus: 0, refundPrice: 0, couponId: 2001, couponPrice: 5, pointPrice: 0, - receiverAreaName: 'Villageville', + receiverAreaName: '四川省成都市', items: [ { id: 105, userId: 1003, orderId: 3, spuId: 5005, - spuName: 'Widget E', + spuName: '华为', skuId: 6005, - picUrl: 'https://example.com/images/widget_e.jpg', + picUrl: 'http://127.0.0.1:48080/admin-api/infra/file/5/get/sj.jpg', count: 1, originalPrice: 20, originalUnitPrice: 20, @@ -153,14 +155,14 @@ export const testData: OrderVO = [ orderDividePrice: 15, afterSaleStatus: 0, properties: [ - { propertyId: 7001, propertyName: 'Color', valueId: 8006, valueName: 'Black' }, - { propertyId: 7002, propertyName: 'Size', valueId: 8002, valueName: 'Medium' } + { propertyId: 7001, propertyName: '颜色', valueId: 8006, valueName: '紫色' }, + { propertyId: 7002, propertyName: '选配', valueId: 8002, valueName: '标配' } ] } ], user: { id: 1003, - nickname: 'sarahjohnson', + nickname: '无敌最俊朗', avatar: 'https://example.com/images/avatar.jpg' } } From 0d202a7a85782b97c03827fa26b9716ad9727d4f Mon Sep 17 00:00:00 2001 From: puhui999 Date: Tue, 22 Aug 2023 00:38:44 +0800 Subject: [PATCH 12/21] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=88=97=E8=A1=A8?= =?UTF-8?q?=EF=BC=9A=E5=88=97=E8=A1=A8=E9=87=8D=E6=9E=84=20=E2=91=A2=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=A4=87=E6=B3=A8=E8=A1=A8=E5=8D=95=E5=92=8C?= =?UTF-8?q?=E5=8F=91=E8=B4=A7=E8=A1=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mall/trade/delivery/express/index.ts | 5 + src/api/mall/trade/order/index.ts | 19 ++-- .../mall/trade/order/DeliveryOrderForm.vue | 93 +++++++++++++++++++ .../mall/trade/order/OrderRemarksForm.vue | 66 +++++++++++++ src/views/mall/trade/order/detail/index.vue | 23 ++++- src/views/mall/trade/order/index.vue | 30 +++--- 6 files changed, 209 insertions(+), 27 deletions(-) create mode 100644 src/views/mall/trade/order/DeliveryOrderForm.vue create mode 100644 src/views/mall/trade/order/OrderRemarksForm.vue diff --git a/src/api/mall/trade/delivery/express/index.ts b/src/api/mall/trade/delivery/express/index.ts index 95429a40..76ac93ec 100644 --- a/src/api/mall/trade/delivery/express/index.ts +++ b/src/api/mall/trade/delivery/express/index.ts @@ -19,6 +19,11 @@ export const getDeliveryExpress = async (id: number) => { return await request.get({ url: '/trade/delivery/express/get?id=' + id }) } +// 获得商品品牌精简信息列表 +export const getSimpleDeliveryExpressList = () => { + return request.get({ url: '/trade/delivery/express/list-all-simple' }) +} + // 新增快递公司 export const createDeliveryExpress = async (data: DeliveryExpressVO) => { return await request.post({ url: '/trade/delivery/express/create', data }) diff --git a/src/api/mall/trade/order/index.ts b/src/api/mall/trade/order/index.ts index 8acb9941..8dfbfab8 100644 --- a/src/api/mall/trade/order/index.ts +++ b/src/api/mall/trade/order/index.ts @@ -94,17 +94,18 @@ export const getOrder = async (id: number | null) => { return await request.get({ url: `/trade/order/get-detail?id=` + id }) } -// 新增交易订单 -export const createOrder = async (data: OrderVO) => { - return await request.post({ url: `/trade/order/create`, data }) +export interface DeliveryVO { + id: number // 订单编号 + logisticsId: number | null // 物流公司编号 + logisticsNo: string // 物流编号 } -// 修改交易订单 -export const updateOrder = async (data: OrderVO) => { - return await request.put({ url: `/trade/order/update`, data }) +// 订单发货 +export const delivery = async (data: DeliveryVO) => { + return await request.post({ url: `/trade/order/delivery`, data }) } -// 删除交易订单 -export const deleteOrder = async (id: number | null) => { - return await request.delete({ url: `/trade/order/delete?id=` + id }) +// 订单备注 +export const remark = async (data) => { + return await request.post({ url: `/trade/order/remark`, data }) } diff --git a/src/views/mall/trade/order/DeliveryOrderForm.vue b/src/views/mall/trade/order/DeliveryOrderForm.vue new file mode 100644 index 00000000..579a376c --- /dev/null +++ b/src/views/mall/trade/order/DeliveryOrderForm.vue @@ -0,0 +1,93 @@ + + diff --git a/src/views/mall/trade/order/OrderRemarksForm.vue b/src/views/mall/trade/order/OrderRemarksForm.vue new file mode 100644 index 00000000..fdcf72dc --- /dev/null +++ b/src/views/mall/trade/order/OrderRemarksForm.vue @@ -0,0 +1,66 @@ + + diff --git a/src/views/mall/trade/order/detail/index.vue b/src/views/mall/trade/order/detail/index.vue index c8e00f99..dc5e4bcc 100644 --- a/src/views/mall/trade/order/detail/index.vue +++ b/src/views/mall/trade/order/detail/index.vue @@ -47,9 +47,9 @@ 调整价格 - 备注 + 备注 - 发货 + 发货 修改地址 @@ -212,17 +212,20 @@ + + diff --git a/src/views/mall/trade/order/testData.ts b/src/views/mall/trade/order/testData.ts deleted file mode 100644 index d4c92a15..00000000 --- a/src/views/mall/trade/order/testData.ts +++ /dev/null @@ -1,169 +0,0 @@ -import { OrderVO } from '@/api/mall/trade/order' - -export const testData: OrderVO = [ - { - id: 2, - no: '20230817002', - createTime: new Date('2023-08-17T11:30:00'), - type: 2, - terminal: 10, - userId: 1002, - userIp: '192.168.1.2', - userRemark: 'Urgent delivery required', - status: 20, - productCount: 2, - finishTime: null, - cancelTime: null, - cancelType: null, - remark: '', - payOrderId: 10002, - payed: false, - payTime: new Date('2023-08-17T12:30:00'), - payChannelCode: 'wx_app', - originalPrice: 80, - orderPrice: 80, - discountPrice: 0, - deliveryPrice: 5, - adjustPrice: 0, - payPrice: 85, - deliveryTemplateId: 2002, - logisticsId: null, - logisticsNo: '', - deliveryStatus: 0, - deliveryTime: null, - receiveTime: null, - receiverName: '李四', - receiverMobile: '19855568989', - receiverAreaId: 4002, - receiverPostCode: 54321, - receiverDetailAddress: '翻斗花园', - afterSaleStatus: 0, - refundPrice: 0, - couponId: null, - couponPrice: 0, - pointPrice: 0, - receiverAreaName: '北京市朝阳区', - items: [ - { - id: 103, - userId: 1002, - orderId: 2, - spuId: 5003, - spuName: '毛绒鸭子', - skuId: 6003, - picUrl: - 'http://127.0.0.1:48080/admin-api/infra/file/5/get/20220723041544165856414464011_BIG.jpg', - count: 1, - originalPrice: 40, - originalUnitPrice: 40, - discountPrice: 0, - payPrice: 40, - orderPartPrice: 40, - orderDividePrice: 40, - afterSaleStatus: 0, - properties: [ - { propertyId: 7001, propertyName: '颜色', valueId: 8004, valueName: '黄色' }, - { propertyId: 7002, propertyName: '尺寸', valueId: 8002, valueName: '小鸭子' } - ] - }, - { - id: 104, - userId: 1002, - orderId: 2, - spuId: 5004, - spuName: '毛绒鸭子', - skuId: 6004, - picUrl: - 'http://127.0.0.1:48080/admin-api/infra/file/5/get/20220723041544165856414464011_BIG.jpg', - count: 1, - originalPrice: 40, - originalUnitPrice: 40, - discountPrice: 0, - payPrice: 40, - orderPartPrice: 40, - orderDividePrice: 40, - afterSaleStatus: 0, - properties: [ - { propertyId: 7001, propertyName: '颜色', valueId: 8004, valueName: '黄色' }, - { propertyId: 7002, propertyName: '尺寸', valueId: 8002, valueName: '大鸭子' } - ] - } - ], - user: { - id: 1002, - nickname: '小妮子', - avatar: 'https://example.com/images/avatar.jpg' - } - }, - { - id: 3, - no: '20230817003', - createTime: new Date('2023-08-17T12:00:00'), - type: 1, - terminal: 10, - userId: 1003, - userIp: '192.168.1.3', - userRemark: '', - status: 10, - productCount: 1, - finishTime: new Date('2023-08-18T09:15:00'), - cancelTime: null, - cancelType: null, - remark: '', - payOrderId: 10003, - payed: true, - payTime: new Date('2023-08-17T12:30:00'), - payChannelCode: 'alipay_app', - originalPrice: 25, - orderPrice: 20, - discountPrice: 5, - deliveryPrice: 5, - adjustPrice: 0, - payPrice: 20, - deliveryTemplateId: 2001, - logisticsId: 3002, - logisticsNo: 'DEF987654', - deliveryStatus: 2, - deliveryTime: new Date('2023-08-18T10:30:00'), - receiveTime: new Date('2023-08-19T11:30:00'), - receiverName: '张三', - receiverMobile: '13988886656', - receiverAreaId: 4003, - receiverPostCode: 67890, - receiverDetailAddress: '成华大道', - afterSaleStatus: 0, - refundPrice: 0, - couponId: 2001, - couponPrice: 5, - pointPrice: 0, - receiverAreaName: '四川省成都市', - items: [ - { - id: 105, - userId: 1003, - orderId: 3, - spuId: 5005, - spuName: '华为', - skuId: 6005, - picUrl: 'http://127.0.0.1:48080/admin-api/infra/file/5/get/sj.jpg', - count: 1, - originalPrice: 20, - originalUnitPrice: 20, - discountPrice: 5, - payPrice: 15, - orderPartPrice: 15, - orderDividePrice: 15, - afterSaleStatus: 0, - properties: [ - { propertyId: 7001, propertyName: '颜色', valueId: 8006, valueName: '紫色' }, - { propertyId: 7002, propertyName: '选配', valueId: 8002, valueName: '标配' } - ] - } - ], - user: { - id: 1003, - nickname: '无敌最俊朗', - avatar: 'https://example.com/images/avatar.jpg' - } - } -] From 10d9f11fbaef14685b3860ed6fa1669b36637d9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=AE=E6=A2=A6?= Date: Tue, 22 Aug 2023 16:14:25 +0800 Subject: [PATCH 14/21] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E4=BB=A5=E5=8F=8A=20=E7=AD=BE?= =?UTF-8?q?=E5=88=B0=E3=80=81=E7=A7=AF=E5=88=86=E7=AD=89=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E4=B8=8B=E7=9A=84=E5=AD=90tab=E9=A1=B5?= =?UTF-8?q?=E3=80=82=20=E5=A2=9E=E5=8A=A0=20=E7=94=A8=E6=88=B7=E3=80=81?= =?UTF-8?q?=E7=AD=BE=E5=88=B0=E3=80=81=E7=A7=AF=E5=88=86=20=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E7=9A=84VO,=E6=96=B9=E4=BE=BF=E5=9C=A8=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E4=B8=AD=E4=BD=BF=E7=94=A8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/member/point/record/index.ts | 8 + src/api/member/signin/record/index.ts | 9 + src/api/member/user/index.ts | 18 +- .../member/user/components/account-info.vue | 43 ++++ .../member/user/components/address-list.vue | 13 ++ .../member/user/components/balance-list.vue | 13 ++ .../member/user/components/card-title.vue | 36 +++ .../member/user/components/growth-list.vue | 13 ++ .../member/user/components/point-list.vue | 156 +++++++++++++ .../member/user/components/sign-list.vue | 136 +++++++++++ src/views/member/user/detail/index.vue | 217 ++++++++++++++++++ 11 files changed, 661 insertions(+), 1 deletion(-) create mode 100644 src/views/member/user/components/account-info.vue create mode 100644 src/views/member/user/components/address-list.vue create mode 100644 src/views/member/user/components/balance-list.vue create mode 100644 src/views/member/user/components/card-title.vue create mode 100644 src/views/member/user/components/growth-list.vue create mode 100644 src/views/member/user/components/point-list.vue create mode 100644 src/views/member/user/components/sign-list.vue create mode 100644 src/views/member/user/detail/index.vue diff --git a/src/api/member/point/record/index.ts b/src/api/member/point/record/index.ts index 1c60f754..869421f1 100644 --- a/src/api/member/point/record/index.ts +++ b/src/api/member/point/record/index.ts @@ -14,6 +14,14 @@ export interface RecordVO { thawingTime: Date createDate: Date } +export interface RecordQueryVO { + bizType: string | null | undefined + title: string | null | undefined + pageNo: number + pageSize: number + userId: number | null | undefined + createDate: string[] +} // 查询用户积分记录列表 export const getRecordPage = async (params) => { diff --git a/src/api/member/signin/record/index.ts b/src/api/member/signin/record/index.ts index 94df2029..509bcc8d 100644 --- a/src/api/member/signin/record/index.ts +++ b/src/api/member/signin/record/index.ts @@ -6,6 +6,15 @@ export interface SignInRecordVO { day: number point: number } +export interface SignInRecordQueryVO { + pageNo: number + pageSize: number + userId?: number + nickname: number | undefined | null + day?: number | null | undefined + point?: number | null | undefined + createTime: string[] | null | undefined +} // 查询用户签到积分列表 export const getSignInRecordPage = async (params) => { diff --git a/src/api/member/user/index.ts b/src/api/member/user/index.ts index fbeaba93..e9315370 100644 --- a/src/api/member/user/index.ts +++ b/src/api/member/user/index.ts @@ -17,7 +17,23 @@ export interface UserVO { mark: string createTime: Date } - +export interface UserBaseInfoVO { + id: number | undefined | null + mobile: string + password: string | null | undefined + status: number + registerIp: string | null | undefined + loginIp: string | null | undefined + loginDate: Date | null | undefined + nickname: string | null | undefined + avatar: string | null | undefined + name: string | null | undefined + sex: number + areaId: number | null | undefined + birthday: Date | null | undefined + mark: string | null | undefined + createTime: Date | null | undefined +} // 查询会员用户列表 export const getUserPage = async (params) => { return await request.get({ url: `/member/user/page`, params }) diff --git a/src/views/member/user/components/account-info.vue b/src/views/member/user/components/account-info.vue new file mode 100644 index 00000000..50bf8e6a --- /dev/null +++ b/src/views/member/user/components/account-info.vue @@ -0,0 +1,43 @@ + + + diff --git a/src/views/member/user/components/address-list.vue b/src/views/member/user/components/address-list.vue new file mode 100644 index 00000000..0f0ffd81 --- /dev/null +++ b/src/views/member/user/components/address-list.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/views/member/user/components/balance-list.vue b/src/views/member/user/components/balance-list.vue new file mode 100644 index 00000000..437714a0 --- /dev/null +++ b/src/views/member/user/components/balance-list.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/views/member/user/components/card-title.vue b/src/views/member/user/components/card-title.vue new file mode 100644 index 00000000..4bd3ee93 --- /dev/null +++ b/src/views/member/user/components/card-title.vue @@ -0,0 +1,36 @@ + + + + + diff --git a/src/views/member/user/components/growth-list.vue b/src/views/member/user/components/growth-list.vue new file mode 100644 index 00000000..5f356803 --- /dev/null +++ b/src/views/member/user/components/growth-list.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/views/member/user/components/point-list.vue b/src/views/member/user/components/point-list.vue new file mode 100644 index 00000000..b4f1a30c --- /dev/null +++ b/src/views/member/user/components/point-list.vue @@ -0,0 +1,156 @@ + + + diff --git a/src/views/member/user/components/sign-list.vue b/src/views/member/user/components/sign-list.vue new file mode 100644 index 00000000..ee57a951 --- /dev/null +++ b/src/views/member/user/components/sign-list.vue @@ -0,0 +1,136 @@ + + + diff --git a/src/views/member/user/detail/index.vue b/src/views/member/user/detail/index.vue new file mode 100644 index 00000000..219af98d --- /dev/null +++ b/src/views/member/user/detail/index.vue @@ -0,0 +1,217 @@ + + + + From c1a40e7c9825f8bdd2f3b6ac0eb028da16b5dbf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=AE=E6=A2=A6?= Date: Tue, 22 Aug 2023 16:28:42 +0800 Subject: [PATCH 15/21] =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=AF=A6=E6=83=85-?= =?UTF-8?q?=E7=A7=AF=E5=88=86tab=20=E5=8E=BB=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E7=BB=84=E4=BB=B6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/member/user/components/point-list.vue | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/views/member/user/components/point-list.vue b/src/views/member/user/components/point-list.vue index b4f1a30c..7a454562 100644 --- a/src/views/member/user/components/point-list.vue +++ b/src/views/member/user/components/point-list.vue @@ -94,9 +94,6 @@ @pagination="getList" /> - - - diff --git a/src/views/mall/trade/order/components/OrderAdjustPriceForm.vue b/src/views/mall/trade/order/components/OrderAdjustPriceForm.vue new file mode 100644 index 00000000..3436cb63 --- /dev/null +++ b/src/views/mall/trade/order/components/OrderAdjustPriceForm.vue @@ -0,0 +1,89 @@ + + diff --git a/src/views/mall/trade/order/detail/index.vue b/src/views/mall/trade/order/components/OrderDetailForm.vue similarity index 81% rename from src/views/mall/trade/order/detail/index.vue rename to src/views/mall/trade/order/components/OrderDetailForm.vue index c72dd166..d1a61b2d 100644 --- a/src/views/mall/trade/order/detail/index.vue +++ b/src/views/mall/trade/order/components/OrderDetailForm.vue @@ -3,10 +3,11 @@ {{ orderInfo.no }} - 物流配送 - - 物流配送 - + + + + + 秒杀活动 @@ -37,22 +38,17 @@ - - + - 调整价格 + 调整价格 备注 发货 - - 修改地址 - + + 修改地址 + + 确认收货 - @@ -62,8 +58,6 @@ - - @@ -98,8 +92,6 @@ - - @@ -114,8 +106,7 @@ - - {{ formatToFraction(orderInfo.totalPrice - orderInfo.totalPrice) }}元 + {{ formatToFraction(orderInfo.couponPrice) }}元 @@ -149,7 +140,7 @@ - + @@ -210,15 +201,19 @@ - - + + + + From bb0c1cb536494f87b61e15323826cb2bbecb2099 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 22 Aug 2023 21:59:17 +0800 Subject: [PATCH 19/21] =?UTF-8?q?code=20review=EF=BC=9A=E4=BC=9A=E5=91=98?= =?UTF-8?q?=E7=AD=89=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/member/level/index.ts | 2 +- src/api/member/signin/config/index.ts | 10 +++++----- src/api/member/signin/record/index.ts | 2 +- src/views/member/group/GroupForm.vue | 6 +++--- .../member/group/components/MemberGroupSelect.vue | 1 - src/views/member/level/LevelForm.vue | 10 +++++----- .../member/level/components/MemberLevelSelect.vue | 1 - src/views/member/level/index.vue | 2 +- src/views/member/user/index.vue | 6 ++++-- 9 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/api/member/level/index.ts b/src/api/member/level/index.ts index a284fd2d..540bfe4b 100644 --- a/src/api/member/level/index.ts +++ b/src/api/member/level/index.ts @@ -5,7 +5,7 @@ export interface LevelVO { name: string experience: number value: number - discount: number + discountPercent: number icon: string bgUrl: string status: number diff --git a/src/api/member/signin/config/index.ts b/src/api/member/signin/config/index.ts index 833c2e16..558bdc70 100644 --- a/src/api/member/signin/config/index.ts +++ b/src/api/member/signin/config/index.ts @@ -9,25 +9,25 @@ export interface SignInConfigVO { // 查询积分签到规则列表 export const getSignInConfigList = async () => { - return await request.get({ url: `/member/point/sign-in-config/list` }) + return await request.get({ url: `/member/sign-in/config/list` }) } // 查询积分签到规则详情 export const getSignInConfig = async (id: number) => { - return await request.get({ url: `/member/point/sign-in-config/get?id=` + id }) + return await request.get({ url: `/member/sign-in/config/get?id=` + id }) } // 新增积分签到规则 export const createSignInConfig = async (data: SignInConfigVO) => { - return await request.post({ url: `/member/point/sign-in-config/create`, data }) + return await request.post({ url: `/member/sign-in/config/create`, data }) } // 修改积分签到规则 export const updateSignInConfig = async (data: SignInConfigVO) => { - return await request.put({ url: `/member/point/sign-in-config/update`, data }) + return await request.put({ url: `/member/sign-in/config/update`, data }) } // 删除积分签到规则 export const deleteSignInConfig = async (id: number) => { - return await request.delete({ url: `/member/point/sign-in-config/delete?id=` + id }) + return await request.delete({ url: `/member/sign-in/config/delete?id=` + id }) } diff --git a/src/api/member/signin/record/index.ts b/src/api/member/signin/record/index.ts index 94df2029..7d137029 100644 --- a/src/api/member/signin/record/index.ts +++ b/src/api/member/signin/record/index.ts @@ -9,5 +9,5 @@ export interface SignInRecordVO { // 查询用户签到积分列表 export const getSignInRecordPage = async (params) => { - return await request.get({ url: `/member/point/sign-in-record/page`, params }) + return await request.get({ url: `/member/sign-in/record/page`, params }) } diff --git a/src/views/member/group/GroupForm.vue b/src/views/member/group/GroupForm.vue index 9788dbef..14510b0f 100644 --- a/src/views/member/group/GroupForm.vue +++ b/src/views/member/group/GroupForm.vue @@ -10,9 +10,6 @@ - - - + + + - + diff --git a/src/views/member/user/components/balance-list.vue b/src/views/member/user/components/balance-list.vue index 437714a0..3e9d1785 100644 --- a/src/views/member/user/components/balance-list.vue +++ b/src/views/member/user/components/balance-list.vue @@ -6,6 +6,7 @@ export default defineComponent({ }) + diff --git a/src/views/member/user/components/card-title.vue b/src/views/member/user/components/card-title.vue index 4bd3ee93..041c116a 100644 --- a/src/views/member/user/components/card-title.vue +++ b/src/views/member/user/components/card-title.vue @@ -1,8 +1,8 @@ + diff --git a/src/views/member/user/components/point-list.vue b/src/views/member/user/components/point-list.vue index 7a454562..2b2b98e4 100644 --- a/src/views/member/user/components/point-list.vue +++ b/src/views/member/user/components/point-list.vue @@ -100,13 +100,13 @@ import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' import { dateFormatter } from '@/utils/formatTime' import * as RecordApi from '@/api//member/point/record' -import { RecordQueryVO } from '@/api//member/point/record' defineOptions({ name: 'PointList' }) + const loading = ref(true) // 列表的加载中 const total = ref(0) // 列表的总页数 const list = ref([]) // 列表的数据 -const queryParams = reactive({ +const queryParams = reactive({ pageNo: 1, pageSize: 10, bizType: undefined, @@ -139,12 +139,15 @@ const resetQuery = () => { queryFormRef.value.resetFields() handleQuery() } + +// TODO @梦:改成 userId 哈 const { memberId } = defineProps({ memberId: { type: Number, required: true } }) + /** 初始化 **/ onMounted(() => { queryParams.userId = memberId diff --git a/src/views/member/user/components/sign-list.vue b/src/views/member/user/components/sign-list.vue index ee57a951..479e18a7 100644 --- a/src/views/member/user/components/sign-list.vue +++ b/src/views/member/user/components/sign-list.vue @@ -83,14 +83,13 @@ -