Compare commits

..

No commits in common. "a04db00c4f42a11f776db238665a1f142f1d562c" and "6339fa6d27bf359ad33af55d93357fdbf4c2e6dd" have entirely different histories.

2 changed files with 1845 additions and 1885 deletions

View File

@ -1,134 +1,125 @@
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 downloadErrorReport(data) { export async function HandleDownloadErrorReport(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,
downloadErrorReport, HandleDownloadErrorReport,
syncProductMaping, syncProductMaping,
importGoodsData, importGoodsData,
syncShopImages, };
}

File diff suppressed because it is too large Load Diff