Commit c28837eb authored by cxr's avatar cxr

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

parent 2c4f22ab
import { tmallabHttp } from '/@/utils/http/axios';
import { ErrorMessageMode } from '/#/axios';
enum Api {
dictRegionList = '/system/dictRegion/getList',
addScArea = '/system/scArea/add',
addScAreaPlatform = '/system/scAreaPlatform/add',
getScAreaList = '/system/scArea/getList',
removeScAreaPlatform = '/system/scAreaPlatform/remove',
getPlatList = '/system/scAreaPlatform/getPlatList',
getPlatListAll = '/system/plat/list',
}
/**
* @description: 区域字典-获取省市
*/
export function dictRegionListApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>(
{
url: Api.dictRegionList,
data,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 添加区域
*/
export function addScAreaApi(
data: any,
mode: ErrorMessageMode = 'message',
) {
return tmallabHttp.post<any>(
{
url: Api.addScArea,
data,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 管理客户平台-提交
*/
export function addScAreaPlatformApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>(
{
url: Api.addScAreaPlatform,
data
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 区域管理-列表获取
*/
export function getScAreaListApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>(
{
url: Api.getScAreaList,
data,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 管理客户平台-删除平台
*/
export function removeScAreaPlatformApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>(
{
url: Api.removeScAreaPlatform,
data
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 管理客户平台-获取平台列表
*/
export function getPlatListApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>(
{
url: Api.getPlatList,
data
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 管理客户平台-获取所有平台列表
*/
export function getPlatListAllApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>(
{
url: Api.getPlatListAll,
data
},
{
errorMessageMode: mode,
},
);
}
import { tmallabHttp } from '/@/utils/http/axios';
import { ErrorMessageMode } from '/#/axios';
enum Api {
listContract = '/system/vipContract/listContract',
list = '/system/plat/list',
createAccount = '/system/plat/createAccount',
batchClosePlats = '/system/supplier/batchClosePlats',
stopPlatAccount = '/system/supplier/stopPlatAccount',
batchOpenPlats = '/system/supplier/batchOpenPlats',
getGhsBondedPlatform = '/system/supplier/getGhsBondedPlatform',
listInfoAdmin = '/system/supplier/listInfoAdmin',
listContactInfo = '/system/supplier/listContactInfo',
listBingState = '/system/supplier/listBingState',
updateGhsInfoByGhsCode = '/system/supplier/updateGhsInfoByGhsCode',
updatePwd = '/system/supplier/updatePwd',
updateExPlatform = '/system/supplier/updateExPlatform',
listLogAccountManagement = '/system/supplier/listLogAccountManagement',
updateLimitNum = '/system/supplier/updateLimitNum',
getLimitLog = '/system/supplier/getLimitLog',
operateisSc = '/system/supplier/operateisSc',
}
/**
* @description:
*/
export function listContractApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>(
{
url: Api.listContract,
data,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description:
*/
export function listApi(
data: any,
mode: ErrorMessageMode = 'message',
) {
return tmallabHttp.post<any>(
{
url: Api.list,
data,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description:
*/
export function createAccountApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>(
{
url: Api.createAccount,
data
},
{
errorMessageMode: mode,
},
);
}
/**
* @description:
*/
export function batchClosePlatsApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>(
{
url: Api.batchClosePlats,
data,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description:
*/
export function stopPlatAccountApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>(
{
url: Api.stopPlatAccount,
data
},
{
errorMessageMode: mode,
},
);
}
/**
* @description:
*/
export function batchOpenPlatsApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>(
{
url: Api.batchOpenPlats,
data
},
{
errorMessageMode: mode,
},
);
}
/**
* @description:
*/
export function getGhsBondedPlatformApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>(
{
url: Api.getGhsBondedPlatform,
data
},
{
errorMessageMode: mode,
},
);
}
/**
* @description:
*/
export function listInfoAdminApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>(
{
url: Api.listInfoAdmin,
data
},
{
errorMessageMode: mode,
},
);
}
/**
* @description:
*/
export function listContactInfoApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>(
{
url: Api.listContactInfo,
data
},
{
errorMessageMode: mode,
},
);
}
/**
* @description:
*/
export function listBingStateApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>(
{
url: Api.listBingState,
data
},
{
errorMessageMode: mode,
},
);
}
/**
* @description:
*/
export function updateGhsInfoByGhsCodeApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>(
{
url: Api.updateGhsInfoByGhsCode,
data
},
{
errorMessageMode: mode,
},
);
}
/**
* @description:
*/
export function updatePwdApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>(
{
url: Api.updatePwd,
data
},
{
errorMessageMode: mode,
},
);
}
/**
* @description:
*/
export function updateExPlatformApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>(
{
url: Api.updateExPlatform,
data
},
{
errorMessageMode: mode,
},
);
}
/**
* @description:
*/
export function listLogAccountManagementApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>(
{
url: Api.listLogAccountManagement,
data
},
{
errorMessageMode: mode,
},
);
}
/**
* @description:
*/
export function updateLimitNumApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>(
{
url: Api.updateLimitNum,
data
},
{
errorMessageMode: mode,
},
);
}
/**
* @description:
*/
export function getLimitLogApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>(
{
url: Api.getLimitLog,
data
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 开通区域现货
*/
export function operateisScApi(data: any, mode: ErrorMessageMode = 'message') {
return tmallabHttp.post<any>(
{
url: Api.operateisSc,
data
},
{
errorMessageMode: mode,
},
);
}
...@@ -15,9 +15,9 @@ import { setupGlobDirectives } from '/@/directives'; ...@@ -15,9 +15,9 @@ import { setupGlobDirectives } from '/@/directives';
import { setupI18n } from '/@/locales/setupI18n'; import { setupI18n } from '/@/locales/setupI18n';
import { registerGlobComp } from '/@/components/registerGlobComp'; import { registerGlobComp } from '/@/components/registerGlobComp';
if (import.meta.env.DEV) { //全局组件注册
import('ant-design-vue/dist/antd.less'); import Antd from 'ant-design-vue';
} import 'ant-design-vue/dist/antd.less';
async function bootstrap() { async function bootstrap() {
const app = createApp(App); const app = createApp(App);
...@@ -37,6 +37,8 @@ async function bootstrap() { ...@@ -37,6 +37,8 @@ async function bootstrap() {
setupErrorHandle(app); setupErrorHandle(app);
app.use(Antd);
app.mount('#app'); app.mount('#app');
} }
......
import type { AppRouteModule } from '/@/router/types';
import { LAYOUT } from '/@/router/constant';
const complaints: AppRouteModule = {
path: '/RegionalSpotManage',
name: 'RegionalSpotManage',
component: LAYOUT,
redirect: '/RegionalSpotManage/index',
meta: {
hideChildrenInMenu: true,
orderNo: 200,
icon: 'ion:grid-outline',
title: '区域管理',
roles: ['super']
},
children: [
{
path: 'index',
name: '区域管理',
component: () => import('/@/views/super/regionalSpotManage/index.vue'),
meta: {
title: '区域管理',
},
}
],
};
export default complaints;
import type { AppRouteModule } from '/@/router/types';
import { LAYOUT } from '/@/router/constant';
const complaints: AppRouteModule = {
path: '/supplierInfoManage',
name: 'supplierInfoManage',
component: LAYOUT,
redirect: '/supplierInfoManage/index',
meta: {
hideChildrenInMenu: true,
orderNo: 200,
icon: 'ion:grid-outline',
title: '供货商信息管理',
roles: ['super']
},
children: [
{
path: 'index',
name: '供货商信息管理',
component: () => import('/@/views/super/supplierInfoManage/供货商信息管理.vue'),
meta: {
title: '供货商信息管理',
},
}
],
};
export default complaints;
This diff is collapsed.
This diff is collapsed.
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