修复购物车模块

This commit is contained in:
2024-07-30 14:48:52 +08:00
parent b0fbae6ac1
commit 7317e7ba96
3 changed files with 14 additions and 20 deletions

View File

@@ -10,8 +10,10 @@ export interface Cart {
type?: number; type?: number;
// 商品ID // 商品ID
goodsId?: string; goodsId?: string;
// 商品属性 // 唯一标识
goodsAttrUnique?: string; code?: string;
// 商品规格
spec?: string;
// 商品数量 // 商品数量
cartNum?: number; cartNum?: number;
// 0 = 未购买 1 = 已购买 // 0 = 未购买 1 = 已购买

View File

@@ -33,11 +33,11 @@
v-model:value="form.goodsId" v-model:value="form.goodsId"
/> />
</a-form-item> </a-form-item>
<a-form-item label="商品属性" name="goodsAttrUnique"> <a-form-item label="唯一标识" name="code">
<a-input <a-input
allow-clear allow-clear
placeholder="请输入商品属性" placeholder="请输入商品唯一标识"
v-model:value="form.goodsAttrUnique" v-model:value="form.code"
/> />
</a-form-item> </a-form-item>
<a-form-item label="商品数量" name="cartNum"> <a-form-item label="商品数量" name="cartNum">
@@ -151,23 +151,15 @@
id: undefined, id: undefined,
type: undefined, type: undefined,
goodsId: undefined, goodsId: undefined,
goodsAttrUnique: undefined, code: undefined,
spec: undefined,
cartNum: undefined, cartNum: undefined,
isPay: undefined, isPay: undefined,
isNew: undefined, isNew: undefined,
combinationId: undefined, combinationId: undefined,
seckillId: undefined, seckillId: undefined,
bargainId: undefined, bargainId: undefined,
userId: undefined, userId: undefined
deleted: undefined,
tenantId: undefined,
createTime: undefined,
updateTime: undefined,
cartId: undefined,
cartName: '',
status: 0,
comments: '',
sortNumber: 100
}); });
/* 更新visible */ /* 更新visible */

View File

@@ -120,9 +120,9 @@
align: 'center', align: 'center',
}, },
{ {
title: '商品属性', title: '唯一标识',
dataIndex: 'goodsAttrUnique', dataIndex: 'code',
key: 'goodsAttrUnique', key: 'code',
align: 'center', align: 'center',
}, },
{ {