update:商品图片匹配

This commit is contained in:
mixtan 2025-06-27 20:17:43 +08:00
parent c641138f22
commit ebf8049e35
2 changed files with 1865 additions and 1825 deletions

View File

@ -1,125 +1,134 @@
import request from "@/utils/request"; import request from '@/utils/request'
import { stringify } from "qs"; import { stringify } from 'qs'
export async function getProductMapperList(data) { export async function getProductMapperList(data) {
data = stringify(data); data = stringify(data)
return request({ return request({
url: `/admin/shop/shop-sync-productMapper/list?${data}`, url: `/admin/shop/shop-sync-productMapper/list?${data}`,
method: "get", method: 'get',
}); })
} }
export async function getShopList() { export async function getShopList() {
return request({ return request({
url: "/admin/shop/shop-store-base/list?pageNum=1&pageSize=99999&store_type=1", url: '/admin/shop/shop-store-base/list?pageNum=1&pageSize=99999&store_type=1',
method: "get", method: 'get',
}); })
} }
export async function updateGoods(data) { 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: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
}, },
data, data,
}); })
} }
export async function deleteGoods(data) { 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: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
}, },
data, data,
}); })
} }
export async function downloadTempGoods(data) { export async function downloadTempGoods(data) {
data = stringify(data); data = stringify(data)
return request({ return request({
url: `/admin/shop/shop-sync-productMapper/template?${data}`, url: `/admin/shop/shop-sync-productMapper/template?${data}`,
method: "get", method: 'get',
}); })
} }
export async function batchCreateGoods(data) { export async function batchCreateGoods(data) {
return request({ return request({
url: "/admin/shop/shop-sync-productMapper/saveProductMappingBatch", url: '/admin/shop/shop-sync-productMapper/saveProductMappingBatch',
method: "post", method: 'post',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
}, },
data, data,
}); })
} }
export async function batchExportGoods(data) { 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: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
}, },
data, 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: "get", method: 'get',
data, data,
}); })
} }
export async function getSyncBaseMapingProducts() { export async function getSyncBaseMapingProducts() {
return request({ return request({
url: "/admin/shop/shop-sync-productMapper/getSyncBaseMapingProducts", url: '/admin/shop/shop-sync-productMapper/getSyncBaseMapingProducts',
method: "get", method: 'get',
}); })
} }
export async function HandleDownloadErrorReport(data) { export async function downloadErrorReport(data) {
data = stringify(data); data = stringify(data)
return request({ return request({
url: `/admin/shop/shop-sync-productMapper/download?${data}`, url: `/admin/shop/shop-sync-productMapper/download?${data}`,
method: "get", method: 'get',
}); })
} }
export async function syncProductMaping() { 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: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
}, },
}); })
} }
export async function importGoodsData(data) { export async function importGoodsData(data) {
return request({ return request({
url: `/admin/shop/shop-sync-productMapper/importData`, url: `/admin/shop/shop-sync-productMapper/importData`,
method: "post", method: 'post',
data, data,
}); })
}
export async function syncShopImages(data) {
data = stringify(data)
return request({
url: `/admin/shop/shop-sync-productMapper/syncShopImages?${data}`,
method: 'get',
})
} }
export default { export default {
getProductMapperList, getProductMapperList,
getShopList, getShopList,
updateGoods, updateGoods,
deleteGoods,/* */ deleteGoods /* */,
downloadTempGoods, downloadTempGoods,
batchCreateGoods, batchCreateGoods,
batchExportGoods, batchExportGoods,
getProductMapping, getProductMapping,
getSyncBaseMapingProducts, getSyncBaseMapingProducts,
HandleDownloadErrorReport, downloadErrorReport,
syncProductMaping, syncProductMaping,
importGoodsData, importGoodsData,
}; syncShopImages,
}

File diff suppressed because it is too large Load Diff