diff --git a/src/api/goodsTool.js b/src/api/goodsTool.js index 360ed5a..188d622 100644 --- a/src/api/goodsTool.js +++ b/src/api/goodsTool.js @@ -45,6 +45,28 @@ export async function downloadTempGoods() { responseType: 'blob', }) } +//商品导入 下载三个模板 +export async function downloadBrandTemplate() { + return request({ + url: '/admin/shop/shop-sync-import/brandTemplate', + method: 'get', + responseType: 'blob', + }) +} +export async function downloadCategoryTemplate() { + return request({ + url: '/admin/shop/shop-sync-import/categoryTemplate', + method: 'get', + responseType: 'blob', + }) +} +export async function downloadGoodsTemplate() { + return request({ + url: '/admin/shop/shop-sync-import/shopTemplate', + method: 'get', + responseType: 'blob', + }) +} export async function exportUncheckShopData(storeId) { return request({ url: '/admin/shop/shop-sync-productMapper/exportUncheckShopData', @@ -128,6 +150,37 @@ export async function importGoodsData(data) { data, }) } +//商品导入的三个导入 +export async function categoryImportData(data) { + return request({ + url: '/admin/shop/shop-sync-import/categoryImportData', + method: 'post', + headers: { + 'Content-Type': 'multipart/form-data', + }, + data, + }) +} +export async function brandImportData(data) { + return request({ + url: '/admin/shop/shop-sync-import/brandImportData', + method: 'post', + headers: { + 'Content-Type': 'multipart/form-data', + }, + data, + }) +} +export async function shopImportData(data) { + return request({ + url: '/admin/shop/shop-sync-import/shopImportData', + method: 'post', + headers: { + 'Content-Type': 'multipart/form-data', + }, + data, + }) +} export async function syncShopImages(data) { data = stringify(data) @@ -169,5 +222,11 @@ export default { importGoodsData, syncShopImages, getImgList, - saveBatchBarcode + saveBatchBarcode, + downloadBrandTemplate, + downloadCategoryTemplate, + downloadGoodsTemplate, + categoryImportData, + brandImportData, + shopImportData } diff --git a/src/views/product/goodsImport/importBrand.vue b/src/views/product/goodsImport/importBrand.vue new file mode 100644 index 0000000..6a9726b --- /dev/null +++ b/src/views/product/goodsImport/importBrand.vue @@ -0,0 +1,199 @@ + + + + + \ No newline at end of file diff --git a/src/views/product/goodsImport/importCategory.vue b/src/views/product/goodsImport/importCategory.vue new file mode 100644 index 0000000..58e0d98 --- /dev/null +++ b/src/views/product/goodsImport/importCategory.vue @@ -0,0 +1,201 @@ + + + + + \ No newline at end of file diff --git a/src/views/product/goodsImport/importGoods.vue b/src/views/product/goodsImport/importGoods.vue new file mode 100644 index 0000000..73751d8 --- /dev/null +++ b/src/views/product/goodsImport/importGoods.vue @@ -0,0 +1,201 @@ + + + + + \ No newline at end of file diff --git a/src/views/product/goodsImport/index.vue b/src/views/product/goodsImport/index.vue new file mode 100644 index 0000000..cd9a730 --- /dev/null +++ b/src/views/product/goodsImport/index.vue @@ -0,0 +1,115 @@ + + + + +