修复购物车模块

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

@@ -6,12 +6,14 @@ import type { PageParam } from '@/api';
export interface Cart {
// 购物车表ID
id?: string;
// 类型 0商城 1预定
// 类型 0商城 1预定
type?: number;
// 商品ID
goodsId?: string;
// 商品属性
goodsAttrUnique?: string;
// 唯一标识
code?: string;
// 商品规格
spec?: string;
// 商品数量
cartNum?: number;
// 0 = 未购买 1 = 已购买

View File

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

View File

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