fix: 修复问题商品映射

This commit is contained in:
mixtan 2025-06-26 17:15:17 +08:00
parent 0323cb0962
commit 82722f61d2
2 changed files with 1781 additions and 254 deletions

View File

@ -20,6 +20,9 @@ export async function updateGoods(data) {
return request({ return request({
url: "/admin/shop/shop-sync-productMapper/udpateProductMapping", url: "/admin/shop/shop-sync-productMapper/udpateProductMapping",
method: "put", method: "put",
headers: {
'Content-Type': 'application/json',
},
data, data,
}); });
} }
@ -28,6 +31,9 @@ export async function deleteGoods(data) {
return request({ return request({
url: "/admin/shop/shop-sync-productMapper/delProductMapping", url: "/admin/shop/shop-sync-productMapper/delProductMapping",
method: "delete", method: "delete",
headers: {
'Content-Type': 'application/json',
},
data, data,
}); });
} }
@ -55,6 +61,9 @@ export async function batchExportGoods(data) {
return request({ return request({
url: "/admin/shop/shop-sync-productMapper/exportSelected", url: "/admin/shop/shop-sync-productMapper/exportSelected",
method: "post", method: "post",
headers: {
'Content-Type': 'application/json',
},
data, data,
}); });
} }
@ -62,7 +71,7 @@ export async function batchExportGoods(data) {
export async function getProductMapping(data) { export async function getProductMapping(data) {
return request({ return request({
url: "/admin/shop/shop-sync-productMapper/getProductMapping", url: "/admin/shop/shop-sync-productMapper/getProductMapping",
method: "post", method: "get",
data, data,
}); });
} }
@ -86,6 +95,9 @@ export async function syncProductMaping() {
return request({ return request({
url: `/admin/shop/shop-sync-productMapper/syncProductMaping`, url: `/admin/shop/shop-sync-productMapper/syncProductMaping`,
method: "put", method: "put",
headers: {
'Content-Type': 'application/json',
},
}); });
} }
@ -101,7 +113,7 @@ export default {
getProductMapperList, getProductMapperList,
getShopList, getShopList,
updateGoods, updateGoods,
deleteGoods, deleteGoods,/* */
downloadTempGoods, downloadTempGoods,
batchCreateGoods, batchCreateGoods,
batchExportGoods, batchExportGoods,

File diff suppressed because it is too large Load Diff