diff --git a/src/api/regionalSpotManage/index.ts b/src/api/regionalSpotManage/index.ts index 739cda4fb20739f91571c30f24f8c68324ba9d59..b651efa43cfd0cddb9dd343c1fc7e0c2ca36eeaf 100644 --- a/src/api/regionalSpotManage/index.ts +++ b/src/api/regionalSpotManage/index.ts @@ -1,7 +1,11 @@ import { tmallabHttp } from '/@/utils/http/axios'; +import { ContentTypeEnum } from '/@/enums/httpEnum'; 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', @@ -16,71 +20,95 @@ enum Api { /** * @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' }); + tmallabHttp.post( + { + url: Api.UploadOpsProduct, + data, + headers: { 'Content-Type': ContentTypeEnum.FORM_DATA }, + }, + { errorMessageMode: 'message' }, + ); /** * @description: 任务中心获取列表 */ -export const taskCenterQueryListApi = (data) => - tmallabHttp.post({ url: Api.RevokeExcelUpload, data },{ errorMessageMode: 'message' }); +export const taskCenterQueryListApi = (data) => + tmallabHttp.post({ url: Api.RevokeExcelUpload, data }, { errorMessageMode: 'message' }); /** * @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/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..5d7a79d42eaa268fb9c314c5f653d08e616eab45 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..8cef6c2d538d7049eae1cd793a5a282c39d43c01 100644 --- a/src/views/regionalSpotManage/components/list.vue +++ b/src/views/regionalSpotManage/components/list.vue @@ -1,774 +1,712 @@ - - - - - + + + + + diff --git a/src/views/regionalSpotManage/components/platformProBatch.vue b/src/views/regionalSpotManage/components/platformProBatch.vue index 951140ba2352ed9ef66970c1a26e5568a38ee3bd..65039520096ac09c4b2ad7b2feec2ede511468cb 100644 --- a/src/views/regionalSpotManage/components/platformProBatch.vue +++ b/src/views/regionalSpotManage/components/platformProBatch.vue @@ -1,275 +1,295 @@ - - - - - + + + + + diff --git a/src/views/regionalSpotManage/components/upLoadTask.vue b/src/views/regionalSpotManage/components/upLoadTask.vue index e245cb97dcab45d267fc687b22b1ff2ac027f9b8..73f9c22ca7ca0ed392ce38779193909e5dca22d9 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..1aa617293ca9587dc91b9b12c30c3e4b6d4e45a6 100644 --- a/src/views/regionalSpotManage/index.vue +++ b/src/views/regionalSpotManage/index.vue @@ -1,11 +1,37 @@ - - - - - + + + + +