Commit ec3a0183 authored by cxr's avatar cxr

feat(cxr): 新增区域现货服务功能模块(区域管理/供货商信息管理)

parent c28837eb
...@@ -30,10 +30,7 @@ export function dictRegionListApi(data: any, mode: ErrorMessageMode = 'message') ...@@ -30,10 +30,7 @@ export function dictRegionListApi(data: any, mode: ErrorMessageMode = 'message')
/** /**
* @description: 添加区域 * @description: 添加区域
*/ */
export function addScAreaApi( export function addScAreaApi(data: any, mode: ErrorMessageMode = 'message') {
data: any,
mode: ErrorMessageMode = 'message',
) {
return tmallabHttp.post<any>( return tmallabHttp.post<any>(
{ {
url: Api.addScArea, url: Api.addScArea,
...@@ -52,7 +49,7 @@ export function addScAreaPlatformApi(data: any, mode: ErrorMessageMode = 'messag ...@@ -52,7 +49,7 @@ export function addScAreaPlatformApi(data: any, mode: ErrorMessageMode = 'messag
return tmallabHttp.post<any>( return tmallabHttp.post<any>(
{ {
url: Api.addScAreaPlatform, url: Api.addScAreaPlatform,
data data,
}, },
{ {
errorMessageMode: mode, errorMessageMode: mode,
...@@ -82,7 +79,7 @@ export function removeScAreaPlatformApi(data: any, mode: ErrorMessageMode = 'mes ...@@ -82,7 +79,7 @@ export function removeScAreaPlatformApi(data: any, mode: ErrorMessageMode = 'mes
return tmallabHttp.post<any>( return tmallabHttp.post<any>(
{ {
url: Api.removeScAreaPlatform, url: Api.removeScAreaPlatform,
data data,
}, },
{ {
errorMessageMode: mode, errorMessageMode: mode,
...@@ -96,7 +93,7 @@ export function getPlatListApi(data: any, mode: ErrorMessageMode = 'message') { ...@@ -96,7 +93,7 @@ export function getPlatListApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>( return tmallabHttp.post<any>(
{ {
url: Api.getPlatList, url: Api.getPlatList,
data data,
}, },
{ {
errorMessageMode: mode, errorMessageMode: mode,
...@@ -110,7 +107,7 @@ export function getPlatListAllApi(data: any, mode: ErrorMessageMode = 'message') ...@@ -110,7 +107,7 @@ export function getPlatListAllApi(data: any, mode: ErrorMessageMode = 'message')
return tmallabHttp.post<any>( return tmallabHttp.post<any>(
{ {
url: Api.getPlatListAll, url: Api.getPlatListAll,
data data,
}, },
{ {
errorMessageMode: mode, errorMessageMode: mode,
......
...@@ -2,7 +2,6 @@ import { tmallabHttp } from '/@/utils/http/axios'; ...@@ -2,7 +2,6 @@ import { tmallabHttp } from '/@/utils/http/axios';
import { ErrorMessageMode } from '/#/axios'; import { ErrorMessageMode } from '/#/axios';
enum Api { enum Api {
listContract = '/system/vipContract/listContract', listContract = '/system/vipContract/listContract',
list = '/system/plat/list', list = '/system/plat/list',
createAccount = '/system/plat/createAccount', createAccount = '/system/plat/createAccount',
...@@ -22,7 +21,6 @@ enum Api { ...@@ -22,7 +21,6 @@ enum Api {
operateisSc = '/system/supplier/operateisSc', operateisSc = '/system/supplier/operateisSc',
} }
/** /**
* @description: * @description:
*/ */
...@@ -41,10 +39,7 @@ export function listContractApi(data: any, mode: ErrorMessageMode = 'message') { ...@@ -41,10 +39,7 @@ export function listContractApi(data: any, mode: ErrorMessageMode = 'message') {
/** /**
* @description: * @description:
*/ */
export function listApi( export function listApi(data: any, mode: ErrorMessageMode = 'message') {
data: any,
mode: ErrorMessageMode = 'message',
) {
return tmallabHttp.post<any>( return tmallabHttp.post<any>(
{ {
url: Api.list, url: Api.list,
...@@ -63,7 +58,7 @@ export function createAccountApi(data: any, mode: ErrorMessageMode = 'message') ...@@ -63,7 +58,7 @@ export function createAccountApi(data: any, mode: ErrorMessageMode = 'message')
return tmallabHttp.post<any>( return tmallabHttp.post<any>(
{ {
url: Api.createAccount, url: Api.createAccount,
data data,
}, },
{ {
errorMessageMode: mode, errorMessageMode: mode,
...@@ -93,7 +88,7 @@ export function stopPlatAccountApi(data: any, mode: ErrorMessageMode = 'message' ...@@ -93,7 +88,7 @@ export function stopPlatAccountApi(data: any, mode: ErrorMessageMode = 'message'
return tmallabHttp.post<any>( return tmallabHttp.post<any>(
{ {
url: Api.stopPlatAccount, url: Api.stopPlatAccount,
data data,
}, },
{ {
errorMessageMode: mode, errorMessageMode: mode,
...@@ -107,7 +102,7 @@ export function batchOpenPlatsApi(data: any, mode: ErrorMessageMode = 'message') ...@@ -107,7 +102,7 @@ export function batchOpenPlatsApi(data: any, mode: ErrorMessageMode = 'message')
return tmallabHttp.post<any>( return tmallabHttp.post<any>(
{ {
url: Api.batchOpenPlats, url: Api.batchOpenPlats,
data data,
}, },
{ {
errorMessageMode: mode, errorMessageMode: mode,
...@@ -121,7 +116,7 @@ export function getGhsBondedPlatformApi(data: any, mode: ErrorMessageMode = 'mes ...@@ -121,7 +116,7 @@ export function getGhsBondedPlatformApi(data: any, mode: ErrorMessageMode = 'mes
return tmallabHttp.post<any>( return tmallabHttp.post<any>(
{ {
url: Api.getGhsBondedPlatform, url: Api.getGhsBondedPlatform,
data data,
}, },
{ {
errorMessageMode: mode, errorMessageMode: mode,
...@@ -135,7 +130,7 @@ export function listInfoAdminApi(data: any, mode: ErrorMessageMode = 'message') ...@@ -135,7 +130,7 @@ export function listInfoAdminApi(data: any, mode: ErrorMessageMode = 'message')
return tmallabHttp.post<any>( return tmallabHttp.post<any>(
{ {
url: Api.listInfoAdmin, url: Api.listInfoAdmin,
data data,
}, },
{ {
errorMessageMode: mode, errorMessageMode: mode,
...@@ -149,7 +144,7 @@ export function listContactInfoApi(data: any, mode: ErrorMessageMode = 'message' ...@@ -149,7 +144,7 @@ export function listContactInfoApi(data: any, mode: ErrorMessageMode = 'message'
return tmallabHttp.post<any>( return tmallabHttp.post<any>(
{ {
url: Api.listContactInfo, url: Api.listContactInfo,
data data,
}, },
{ {
errorMessageMode: mode, errorMessageMode: mode,
...@@ -163,7 +158,7 @@ export function listBingStateApi(data: any, mode: ErrorMessageMode = 'message') ...@@ -163,7 +158,7 @@ export function listBingStateApi(data: any, mode: ErrorMessageMode = 'message')
return tmallabHttp.post<any>( return tmallabHttp.post<any>(
{ {
url: Api.listBingState, url: Api.listBingState,
data data,
}, },
{ {
errorMessageMode: mode, errorMessageMode: mode,
...@@ -177,7 +172,7 @@ export function updateGhsInfoByGhsCodeApi(data: any, mode: ErrorMessageMode = 'm ...@@ -177,7 +172,7 @@ export function updateGhsInfoByGhsCodeApi(data: any, mode: ErrorMessageMode = 'm
return tmallabHttp.post<any>( return tmallabHttp.post<any>(
{ {
url: Api.updateGhsInfoByGhsCode, url: Api.updateGhsInfoByGhsCode,
data data,
}, },
{ {
errorMessageMode: mode, errorMessageMode: mode,
...@@ -191,7 +186,7 @@ export function updatePwdApi(data: any, mode: ErrorMessageMode = 'message') { ...@@ -191,7 +186,7 @@ export function updatePwdApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>( return tmallabHttp.post<any>(
{ {
url: Api.updatePwd, url: Api.updatePwd,
data data,
}, },
{ {
errorMessageMode: mode, errorMessageMode: mode,
...@@ -205,7 +200,7 @@ export function updateExPlatformApi(data: any, mode: ErrorMessageMode = 'message ...@@ -205,7 +200,7 @@ export function updateExPlatformApi(data: any, mode: ErrorMessageMode = 'message
return tmallabHttp.post<any>( return tmallabHttp.post<any>(
{ {
url: Api.updateExPlatform, url: Api.updateExPlatform,
data data,
}, },
{ {
errorMessageMode: mode, errorMessageMode: mode,
...@@ -219,7 +214,7 @@ export function listLogAccountManagementApi(data: any, mode: ErrorMessageMode = ...@@ -219,7 +214,7 @@ export function listLogAccountManagementApi(data: any, mode: ErrorMessageMode =
return tmallabHttp.post<any>( return tmallabHttp.post<any>(
{ {
url: Api.listLogAccountManagement, url: Api.listLogAccountManagement,
data data,
}, },
{ {
errorMessageMode: mode, errorMessageMode: mode,
...@@ -233,7 +228,7 @@ export function updateLimitNumApi(data: any, mode: ErrorMessageMode = 'message') ...@@ -233,7 +228,7 @@ export function updateLimitNumApi(data: any, mode: ErrorMessageMode = 'message')
return tmallabHttp.post<any>( return tmallabHttp.post<any>(
{ {
url: Api.updateLimitNum, url: Api.updateLimitNum,
data data,
}, },
{ {
errorMessageMode: mode, errorMessageMode: mode,
...@@ -247,7 +242,7 @@ export function getLimitLogApi(data: any, mode: ErrorMessageMode = 'message') { ...@@ -247,7 +242,7 @@ export function getLimitLogApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>( return tmallabHttp.post<any>(
{ {
url: Api.getLimitLog, url: Api.getLimitLog,
data data,
}, },
{ {
errorMessageMode: mode, errorMessageMode: mode,
...@@ -261,12 +256,10 @@ export function operateisScApi(data: any, mode: ErrorMessageMode = 'message') { ...@@ -261,12 +256,10 @@ export function operateisScApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>( return tmallabHttp.post<any>(
{ {
url: Api.operateisSc, url: Api.operateisSc,
data data,
}, },
{ {
errorMessageMode: mode, errorMessageMode: mode,
}, },
); );
} }
...@@ -12,7 +12,7 @@ const complaints: AppRouteModule = { ...@@ -12,7 +12,7 @@ const complaints: AppRouteModule = {
orderNo: 200, orderNo: 200,
icon: 'ion:grid-outline', icon: 'ion:grid-outline',
title: '区域管理', title: '区域管理',
roles: ['super'] roles: ['super'],
}, },
children: [ children: [
{ {
...@@ -22,7 +22,7 @@ const complaints: AppRouteModule = { ...@@ -22,7 +22,7 @@ const complaints: AppRouteModule = {
meta: { meta: {
title: '区域管理', title: '区域管理',
}, },
} },
], ],
}; };
......
...@@ -12,7 +12,7 @@ const complaints: AppRouteModule = { ...@@ -12,7 +12,7 @@ const complaints: AppRouteModule = {
orderNo: 200, orderNo: 200,
icon: 'ion:grid-outline', icon: 'ion:grid-outline',
title: '供货商信息管理', title: '供货商信息管理',
roles: ['super'] roles: ['super'],
}, },
children: [ children: [
{ {
...@@ -22,7 +22,7 @@ const complaints: AppRouteModule = { ...@@ -22,7 +22,7 @@ const complaints: AppRouteModule = {
meta: { meta: {
title: '供货商信息管理', title: '供货商信息管理',
}, },
} },
], ],
}; };
......
...@@ -152,7 +152,7 @@ ...@@ -152,7 +152,7 @@
removeScAreaPlatformApi, removeScAreaPlatformApi,
addScAreaPlatformApi, addScAreaPlatformApi,
getPlatListAllApi, getPlatListAllApi,
} from '/@/api/regionalSpotManage'; } from '/@/api/super/regionalSpotManage/index';
import moment from 'moment'; import moment from 'moment';
import { message } from 'ant-design-vue'; import { message } from 'ant-design-vue';
// const router = useRouter(); // const router = useRouter();
......
...@@ -457,7 +457,7 @@ ...@@ -457,7 +457,7 @@
updateLimitNumApi, updateLimitNumApi,
getLimitLogApi, getLimitLogApi,
operateisScApi, operateisScApi,
} from '/@/api/supplierInfoManage'; } from '/@/api/super/supplierInfoManage/index';
const columns2 = [ const columns2 = [
{ title: '平台名称', dataIndex: 'platName', key: 'platName' }, { title: '平台名称', dataIndex: 'platName', key: 'platName' },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment