From a1bdb8bbde47a711af3e06ffb48ab9b2ccb1b90f Mon Sep 17 00:00:00 2001 From: skjia <106962133@qq.com> Date: Mon, 9 Jun 2025 13:28:41 +0800 Subject: [PATCH 1/2] jsk --- src/api/superStore/super.js | 60 ++++- src/views/superstore/super/index.vue | 326 +++++++++++++++++++++++++-- 2 files changed, 361 insertions(+), 25 deletions(-) diff --git a/src/api/superStore/super.js b/src/api/superStore/super.js index 64da50f8..61dda051 100644 --- a/src/api/superStore/super.js +++ b/src/api/superStore/super.js @@ -91,9 +91,61 @@ export function shopProductPageListApi(data) { params: data }) } - - - - +// 批量添加商品 +export function batchRemoveMaterialApi(data) { + return request({ + url: '/smart-canteen/supermarket_product/addProducts', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +// 删除商品 +export function delShopProductApi(data) { + return request({ + url: '/smart-canteen/supermarket_product/delProduct', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} + +// 商品详情 +export function getShopProductApi(data) { + return request({ + url: '/smart-canteen/supermarket_product/getInfo', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +// 商品编辑 +export function eitdShopProductApi(data) { + return request({ + url: '/smart-canteen/supermarket_product/edit', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +// 商品上线销售 +export function onlienShopProductApi(data) { + return request({ + url: '/smart-canteen/supermarket_product/onlines', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} diff --git a/src/views/superstore/super/index.vue b/src/views/superstore/super/index.vue index ceb763f7..65ce179f 100644 --- a/src/views/superstore/super/index.vue +++ b/src/views/superstore/super/index.vue @@ -378,6 +378,7 @@ :disabled="multiple" @click="handleShopBatchDel" >批量删除 + 批量线上销售 @@ -393,22 +394,22 @@ @@ -455,6 +456,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
商品
名称 + + 单位 + +
条码 + + 零售价 + +
会员价 + + 个人限购数量 + +
每日限购数量 + + 库存 + +
上架状态 + + 线上销售 + +
+
+
+ +
+
@@ -485,14 +596,14 @@ /> - 批量线上销售 + 查询 - + @@ -503,7 +614,7 @@ {{ scope.row.putawayState==1 ? '上架' : '下架' }} + @change="handlePutawayStateChanges(scope.row)"> {{ scope.row.putawayState==1 ? '上架' : '下架' }} @@ -513,7 +624,7 @@ {{ scope.row.ifOnline==2 ? '否' : '是' }} + @change="handleIfOnlineChanges(scope.row)"> {{ scope.row.ifOnline==2 ? '否' : '是' }} @@ -547,9 +658,9 @@ @@ -569,7 +680,7 @@