diff --git a/src/api/shop/cart/model/index.ts b/src/api/shop/cart/model/index.ts index 0898bfd..30f211c 100644 --- a/src/api/shop/cart/model/index.ts +++ b/src/api/shop/cart/model/index.ts @@ -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 = 已购买 diff --git a/src/views/shop/cart/components/cartEdit.vue b/src/views/shop/cart/components/cartEdit.vue index 2b7e91c..1e5b34d 100644 --- a/src/views/shop/cart/components/cartEdit.vue +++ b/src/views/shop/cart/components/cartEdit.vue @@ -33,11 +33,11 @@ v-model:value="form.goodsId" /> - + @@ -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 */ diff --git a/src/views/shop/cart/index.vue b/src/views/shop/cart/index.vue index 4923246..c27c932 100644 --- a/src/views/shop/cart/index.vue +++ b/src/views/shop/cart/index.vue @@ -120,9 +120,9 @@ align: 'center', }, { - title: '商品属性', - dataIndex: 'goodsAttrUnique', - key: 'goodsAttrUnique', + title: '唯一标识', + dataIndex: 'code', + key: 'code', align: 'center', }, {