diff --git a/src/api/regionalSpotManage/index.ts b/src/api/regionalSpotManage/index.ts index 739cda4fb20739f91571c30f24f8c68324ba9d59..46bf1a81809c943141c9f6b167cc0614434da471 100644 --- a/src/api/regionalSpotManage/index.ts +++ b/src/api/regionalSpotManage/index.ts @@ -1,86 +1,114 @@ import { tmallabHttp } from '/@/utils/http/axios'; enum Api { - List = '/system/productNegotiated/getList', - BrandList = '/regionalSpotManage/commit', + GetStatus = '/system/opsProduct/IsOpsSupplier', + List = '/system/opsProduct/getList', + GroupList = '/system/opsProduct/getTypeList', + BrandList = '/system/supplierBrandQualification/getApproveList', + ProductList = '/system/productNegotiated/getProductList', GetAreaList = '/system/opsProduct/getAreaList', OpsAddProduct = '/system/opsProduct/opsAddProduct', GetGhsAreaList = '/system/opsProduct/getGhsAreaList', OpsDeleteProduct = '/system/opsProduct/opsDeleteProduct', OpsEditProduct = '/system/opsProduct/opsEditProduct', UploadOpsProduct = '/excel/excelNew/uploadOpsProduct', + QueryList = '/system/logProductManager/queryList', RevokeExcelUpload = '/system/logProductManager/revokeExcelUpload', PlatformProBatchList = '/system/logNegotiationProductOperate/getList', - PlatformProBatchGetDetail = '/system/logNegotiationProductOperate/getList', + PlatformProBatchGetDetail = '/system/logNegotiationProductOperate/getDetail', } /** * @description: 区域现货管理列表 */ -export const regionalSpotManageListApi = (data) => - tmallabHttp.post({ url: Api.List, data }, { errorMessageMode: 'message'}); +export const regionalSpotManageGetStatusApi = () => tmallabHttp.post({ url: Api.GetStatus }); + +/** + * @description: 区域现货管理列表 + */ +export const regionalSpotManageListApi = (data) => + tmallabHttp.post({ url: Api.List, data }, { errorMessageMode: 'message' }); /** * @description: 获取品牌列表 */ -export const regionalSpotManageBrandListApi = (data) => - tmallabHttp.post({ url: Api.BrandList,data }, { errorMessageMode: 'message'}); +export const regionalSpotManageBrandListApi = (data) => + tmallabHttp.post({ url: Api.BrandList, data }); + +/** + * @description: 获取分组列表 + */ +export const regionalSpotManageGroupListApi = (data) => + tmallabHttp.post({ url: Api.GroupList, data }); + +/** + * @description: 获取左边穿梭框商品列表 + */ +export const regionalSpotManageProductListApi = (data) => + tmallabHttp.post({ url: Api.ProductList, data }); /** * @description: 获取现货区域列表 */ -export const regionalSpotManageGetAreaListApi = (data) => - tmallabHttp.post({ url: Api.GetAreaList,data },{ errorMessageMode: 'message' }); +export const regionalSpotManageGetAreaListApi = (data) => + tmallabHttp.post({ url: Api.GetAreaList, data }); /** * @description: 新增商品接口 */ -export const regionalSpotManageOpsAddProductApi = (data) => - tmallabHttp.post({ url: Api.OpsAddProduct, data },{ errorMessageMode: 'message' }); +export const regionalSpotManageOpsAddProductApi = (data) => + tmallabHttp.post({ url: Api.OpsAddProduct, data }, { errorMessageMode: 'message' }); /** * @description: 获取已开通区域 */ export const regionalSpotManageGetGhsAreaListApi = (data) => - tmallabHttp.post({ url: Api.GetGhsAreaList, data },{ errorMessageMode: 'message' }); + tmallabHttp.post({ url: Api.GetGhsAreaList, data }); /** * @description: 单条/批量删除 */ -export const regionalSpotManageOpsDeleteProductApi = (data) => - tmallabHttp.post({ url: Api.OpsDeleteProduct, data },{ errorMessageMode: 'message' }); +export const regionalSpotManageOpsDeleteProductApi = (data) => + tmallabHttp.post({ url: Api.OpsDeleteProduct, data }, { errorMessageMode: 'message' }); /** * @description: 增加区域 */ -export const regionalSpotManageOpsEditProductApi = (data) => - tmallabHttp.post({ url: Api.OpsEditProduct, data },{ errorMessageMode: 'message' }); +export const regionalSpotManageOpsEditProductApi = (data) => + tmallabHttp.post({ url: Api.OpsEditProduct, data }, { errorMessageMode: 'message' }); /** * @description: 批量上传 */ -export const regionalSpotManageUploadOpsProductApi = (data) => - tmallabHttp.post({ url: Api.UploadOpsProduct, data },{ errorMessageMode: 'message' }); +export const regionalSpotManageUploadOpsProductApi = (data, file) => + tmallabHttp.uploadFile( + { + url: Api.UploadOpsProduct, + method: 'POST', + data, + baseURL: import.meta.env.VITE_GLOB_TMALLAB_URL, + }, + { file, data }, + ); /** * @description: 任务中心获取列表 */ -export const taskCenterQueryListApi = (data) => - tmallabHttp.post({ url: Api.RevokeExcelUpload, data },{ errorMessageMode: 'message' }); +export const taskCenterQueryListApi = (data) => tmallabHttp.post({ url: Api.QueryList, data }); /** * @description: 撤销 */ -export const taskCenterRevokeExcelUploadApi = (data) => - tmallabHttp.post({ url: Api.RevokeExcelUpload, data },{ errorMessageMode: 'message' }); +export const taskCenterRevokeExcelUploadApi = (data) => + tmallabHttp.post({ url: Api.RevokeExcelUpload, data }, { errorMessageMode: 'message' }); /** * @description: 任务中心获取列表--平台商品批量页签 */ export const platformProBatchGetListApi = (data) => - tmallabHttp.post({ url: Api.PlatformProBatchList, data },{ errorMessageMode: 'message' }); + tmallabHttp.post({ url: Api.PlatformProBatchList, data }, { errorMessageMode: 'message' }); /** * @description: 任务中心获取列表--平台商品批量页签--操作记录详情 */ export const platformProBatchGetDetailApi = (data) => - tmallabHttp.post({ url: Api.PlatformProBatchGetDetail, data },{ errorMessageMode: 'message' }); + tmallabHttp.post({ url: Api.PlatformProBatchGetDetail, data }, { errorMessageMode: 'message' }); diff --git a/src/design/ant/index.less b/src/design/ant/index.less index 4c55ebd049b5cd4e569ea368ef0c67a7839faa1b..c5cf209950337fc7152c9efe2efb0048246a20ef 100644 --- a/src/design/ant/index.less +++ b/src/design/ant/index.less @@ -69,5 +69,5 @@ span.anticon:not(.app-iconify) { margin-left: 24px; } .ant-modal-body { - margin-top: 20px; + padding: 20px !important; } diff --git a/src/main.ts b/src/main.ts index 8dc4338842be621ffd4c66a6499e8f01077e3d76..8fa46e6cd80f62c35729963d1331faadd01d91b3 100644 --- a/src/main.ts +++ b/src/main.ts @@ -41,7 +41,7 @@ async function bootstrap() { app.use(Antd); app.mount('#app'); - app.use(Antd) + app.use(Antd); } bootstrap(); diff --git a/src/router/routes/modules/product.ts b/src/router/routes/modules/product.ts index 16ab49272b82bbe575e85ab490a8c0f33e46f3fa..0e7993a4a64ec6e44e31c7ab8858a08611fb0107 100644 --- a/src/router/routes/modules/product.ts +++ b/src/router/routes/modules/product.ts @@ -12,6 +12,7 @@ const product: AppRouteModule = { orderNo: 500, icon: 'ion:grid-outline', title: '商品管理', + roles: ['supplier'], }, children: [ { @@ -29,7 +30,7 @@ const product: AppRouteModule = { meta: { title: '任务中心', }, - } + }, ], }; diff --git a/src/views/regionalSpotManage/components/addProduct.vue b/src/views/regionalSpotManage/components/addProduct.vue index c1224a0a07a8d35ef5c11f5107112c73e23019da..4ad67d6d7a810ccf2256df5c49d4d7cee22f61d9 100644 --- a/src/views/regionalSpotManage/components/addProduct.vue +++ b/src/views/regionalSpotManage/components/addProduct.vue @@ -1,526 +1,470 @@ - - - - - + + + + + diff --git a/src/views/regionalSpotManage/components/downLoadTask.vue b/src/views/regionalSpotManage/components/downLoadTask.vue index b5b45a56324f62460ed52577c1ece82761ec03fb..44191171aa4776a4c2a4fe1ed17fa8d4bf1e80ce 100644 --- a/src/views/regionalSpotManage/components/downLoadTask.vue +++ b/src/views/regionalSpotManage/components/downLoadTask.vue @@ -1,74 +1,72 @@ - - - - - + + + + + diff --git a/src/views/regionalSpotManage/components/list.vue b/src/views/regionalSpotManage/components/list.vue index b8ac866f4f5f3d84cee2c2b005e142307e222984..d62e17c73e5395ae6e669f59f0523f4a2452d2f5 100644 --- a/src/views/regionalSpotManage/components/list.vue +++ b/src/views/regionalSpotManage/components/list.vue @@ -1,774 +1,725 @@ - - - - - + + + + + diff --git a/src/views/regionalSpotManage/components/platformProBatch.vue b/src/views/regionalSpotManage/components/platformProBatch.vue index 951140ba2352ed9ef66970c1a26e5568a38ee3bd..af8b991a5112beb70201fbca586520e6b3632c39 100644 --- a/src/views/regionalSpotManage/components/platformProBatch.vue +++ b/src/views/regionalSpotManage/components/platformProBatch.vue @@ -1,275 +1,275 @@ - - - - - + + + + + diff --git a/src/views/regionalSpotManage/components/upLoadTask.vue b/src/views/regionalSpotManage/components/upLoadTask.vue index e245cb97dcab45d267fc687b22b1ff2ac027f9b8..4873e2380972d247d246752eb1c565e9c1951fd4 100644 --- a/src/views/regionalSpotManage/components/upLoadTask.vue +++ b/src/views/regionalSpotManage/components/upLoadTask.vue @@ -1,119 +1,119 @@ - - - - - + + + + + diff --git a/src/views/regionalSpotManage/index.vue b/src/views/regionalSpotManage/index.vue index 5f9f21bb39c361895f16d225d506289741a183e4..4691d359705bc7b6e3edd242df93f13948312319 100644 --- a/src/views/regionalSpotManage/index.vue +++ b/src/views/regionalSpotManage/index.vue @@ -1,11 +1,37 @@ - - - - - + + + + + diff --git a/types/global.d.ts b/types/global.d.ts index 4b15c0c34aeeb13d98d63e4f11d2dbf33064c32d..24cb9227755a43db9fbab8d663229d215df5ab70 100644 --- a/types/global.d.ts +++ b/types/global.d.ts @@ -56,6 +56,7 @@ declare global { interface ImportMeta { env: { VITE_GLOB_API_URL?: string; + VITE_GLOB_TMALLAB_URL?: string; }; }