From 82722f61d20851c1320203632853d0f84dbc2c9e Mon Sep 17 00:00:00 2001 From: mixtan <424491071@qq.com> Date: Thu, 26 Jun 2025 17:15:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E5=95=86=E5=93=81=E6=98=A0=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/goodsTool.js | 16 +- src/views/product/goodsTool/index.vue | 2019 ++++++++++++++++++++++--- 2 files changed, 1781 insertions(+), 254 deletions(-) diff --git a/src/api/goodsTool.js b/src/api/goodsTool.js index f75309a..820bd68 100644 --- a/src/api/goodsTool.js +++ b/src/api/goodsTool.js @@ -20,6 +20,9 @@ export async function updateGoods(data) { return request({ url: "/admin/shop/shop-sync-productMapper/udpateProductMapping", method: "put", + headers: { + 'Content-Type': 'application/json', + }, data, }); } @@ -28,6 +31,9 @@ export async function deleteGoods(data) { return request({ url: "/admin/shop/shop-sync-productMapper/delProductMapping", method: "delete", + headers: { + 'Content-Type': 'application/json', + }, data, }); } @@ -55,6 +61,9 @@ export async function batchExportGoods(data) { return request({ url: "/admin/shop/shop-sync-productMapper/exportSelected", method: "post", + headers: { + 'Content-Type': 'application/json', + }, data, }); } @@ -62,7 +71,7 @@ export async function batchExportGoods(data) { export async function getProductMapping(data) { return request({ url: "/admin/shop/shop-sync-productMapper/getProductMapping", - method: "post", + method: "get", data, }); } @@ -86,6 +95,9 @@ export async function syncProductMaping() { return request({ url: `/admin/shop/shop-sync-productMapper/syncProductMaping`, method: "put", + headers: { + 'Content-Type': 'application/json', + }, }); } @@ -101,7 +113,7 @@ export default { getProductMapperList, getShopList, updateGoods, - deleteGoods, + deleteGoods,/* */ downloadTempGoods, batchCreateGoods, batchExportGoods, diff --git a/src/views/product/goodsTool/index.vue b/src/views/product/goodsTool/index.vue index 34aac0d..2f626a4 100644 --- a/src/views/product/goodsTool/index.vue +++ b/src/views/product/goodsTool/index.vue @@ -19,10 +19,11 @@ :key="item.store_id" :label="item.store_name" :value="item.store_id" - > + > + - + 搜索 @@ -39,20 +40,15 @@ 导出数据 - - 导入数据 + + 导入数据 同步数据
@@ -96,33 +92,29 @@ type="primary" plain @click="editGoods(scope.row)" + >编辑配置 - 编辑配置 - 删除配置 - 删除配置 - 下载模板 - 下载模板 - 店铺商品映射 - 店铺商品映射 - @@ -149,248 +141,1771 @@