diff --git a/src/api/shop/goods.ts b/src/api/shop/goods.ts index 6e5ea7a..51724d8 100644 --- a/src/api/shop/goods.ts +++ b/src/api/shop/goods.ts @@ -48,6 +48,8 @@ export interface GoodsDTO { cellNoStr?: string; /** 总库存量(含所有仓库) */ totalStock?: number; + /** 商品使用说明 */ + usageInstruction?: string; } /** 商品请求参数 */ @@ -61,6 +63,8 @@ export interface GoodsRequest { coverImg?: string; goodsDetail: string; remark?: string; + /** 商品使用说明 */ + usageInstruction?: string; } /** 获取商品列表 */ diff --git a/src/views/shop/goods/goods-edit-modal.vue b/src/views/shop/goods/goods-edit-modal.vue index 29a1536..f7fa836 100644 --- a/src/views/shop/goods/goods-edit-modal.vue +++ b/src/views/shop/goods/goods-edit-modal.vue @@ -33,7 +33,8 @@ const formData = reactive({ autoApproval: 0, categoryId: 0, goodsDetail: "", - coverImg: "" + coverImg: "", + usageInstruction: "" }); const rules = reactive({ @@ -176,6 +177,9 @@ const handleDelete = async () => { 下架 + + +