diff --git a/src/api/regionalSpotManage/index.ts b/src/api/regionalSpotManage/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..65ac181337a91f0b6e682498226a6a25e0c8da8d --- /dev/null +++ b/src/api/regionalSpotManage/index.ts @@ -0,0 +1,119 @@ +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( + { + url: Api.dictRegionList, + data, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 添加区域 + */ +export function addScAreaApi( + data: any, + mode: ErrorMessageMode = 'message', +) { + return tmallabHttp.post( + { + url: Api.addScArea, + data, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 管理客户平台-提交 + */ +export function addScAreaPlatformApi(data: any, mode: ErrorMessageMode = 'message') { + return tmallabHttp.post( + { + url: Api.addScAreaPlatform, + data + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 区域管理-列表获取 + */ +export function getScAreaListApi(data: any, mode: ErrorMessageMode = 'message') { + return tmallabHttp.post( + { + url: Api.getScAreaList, + data, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 管理客户平台-删除平台 + */ +export function removeScAreaPlatformApi(data: any, mode: ErrorMessageMode = 'message') { + return tmallabHttp.post( + { + url: Api.removeScAreaPlatform, + data + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: 管理客户平台-获取平台列表 + */ +export function getPlatListApi(data: any, mode: ErrorMessageMode = 'message') { + return tmallabHttp.post( + { + url: Api.getPlatList, + data + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: 管理客户平台-获取所有平台列表 + */ +export function getPlatListAllApi(data: any, mode: ErrorMessageMode = 'message') { + return tmallabHttp.post( + { + url: Api.getPlatListAll, + data + }, + { + errorMessageMode: mode, + }, + ); +} diff --git a/src/api/supplierInfoManage/index.ts b/src/api/supplierInfoManage/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..46a77c45aaec10067b665b1ebadc1d04f59715dc --- /dev/null +++ b/src/api/supplierInfoManage/index.ts @@ -0,0 +1,272 @@ +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( + { + url: Api.listContract, + data, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: + */ +export function listApi( + data: any, + mode: ErrorMessageMode = 'message', +) { + return tmallabHttp.post( + { + url: Api.list, + data, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: + */ +export function createAccountApi(data: any, mode: ErrorMessageMode = 'message') { + return tmallabHttp.post( + { + url: Api.createAccount, + data + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: + */ +export function batchClosePlatsApi(data: any, mode: ErrorMessageMode = 'message') { + return tmallabHttp.post( + { + url: Api.batchClosePlats, + data, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: + */ +export function stopPlatAccountApi(data: any, mode: ErrorMessageMode = 'message') { + return tmallabHttp.post( + { + url: Api.stopPlatAccount, + data + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: + */ +export function batchOpenPlatsApi(data: any, mode: ErrorMessageMode = 'message') { + return tmallabHttp.post( + { + url: Api.batchOpenPlats, + data + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: + */ +export function getGhsBondedPlatformApi(data: any, mode: ErrorMessageMode = 'message') { + return tmallabHttp.post( + { + url: Api.getGhsBondedPlatform, + data + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: + */ +export function listInfoAdminApi(data: any, mode: ErrorMessageMode = 'message') { + return tmallabHttp.post( + { + url: Api.listInfoAdmin, + data + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: + */ +export function listContactInfoApi(data: any, mode: ErrorMessageMode = 'message') { + return tmallabHttp.post( + { + url: Api.listContactInfo, + data + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: + */ +export function listBingStateApi(data: any, mode: ErrorMessageMode = 'message') { + return tmallabHttp.post( + { + url: Api.listBingState, + data + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: + */ +export function updateGhsInfoByGhsCodeApi(data: any, mode: ErrorMessageMode = 'message') { + return tmallabHttp.post( + { + url: Api.updateGhsInfoByGhsCode, + data + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: + */ +export function updatePwdApi(data: any, mode: ErrorMessageMode = 'message') { + return tmallabHttp.post( + { + url: Api.updatePwd, + data + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: + */ +export function updateExPlatformApi(data: any, mode: ErrorMessageMode = 'message') { + return tmallabHttp.post( + { + url: Api.updateExPlatform, + data + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: + */ +export function listLogAccountManagementApi(data: any, mode: ErrorMessageMode = 'message') { + return tmallabHttp.post( + { + url: Api.listLogAccountManagement, + data + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: + */ +export function updateLimitNumApi(data: any, mode: ErrorMessageMode = 'message') { + return tmallabHttp.post( + { + url: Api.updateLimitNum, + data + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: + */ +export function getLimitLogApi(data: any, mode: ErrorMessageMode = 'message') { + return tmallabHttp.post( + { + url: Api.getLimitLog, + data + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: 开通区域现货 + */ +export function operateisScApi(data: any, mode: ErrorMessageMode = 'message') { + return tmallabHttp.post( + { + url: Api.operateisSc, + data + }, + { + errorMessageMode: mode, + }, + ); +} + + diff --git a/src/main.ts b/src/main.ts index 21b912b064bea28003d9d778e8d77fa3a69ff5fc..3d893fd50562e65fe75e3f01c2d492f85bedccdd 100644 --- a/src/main.ts +++ b/src/main.ts @@ -15,9 +15,9 @@ import { setupGlobDirectives } from '/@/directives'; import { setupI18n } from '/@/locales/setupI18n'; 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() { const app = createApp(App); @@ -37,6 +37,8 @@ async function bootstrap() { setupErrorHandle(app); + app.use(Antd); + app.mount('#app'); } diff --git a/src/router/routes/modules/regionalSpotManage.ts b/src/router/routes/modules/regionalSpotManage.ts new file mode 100644 index 0000000000000000000000000000000000000000..051d6e327c235a04d04fa00c6ced4c37b6dbd3da --- /dev/null +++ b/src/router/routes/modules/regionalSpotManage.ts @@ -0,0 +1,29 @@ +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; diff --git a/src/router/routes/modules/supplierInfoManage.ts b/src/router/routes/modules/supplierInfoManage.ts new file mode 100644 index 0000000000000000000000000000000000000000..a64b43d2da8f76360c4c6f62d4d08308d010a4c4 --- /dev/null +++ b/src/router/routes/modules/supplierInfoManage.ts @@ -0,0 +1,29 @@ +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; diff --git a/src/views/super/regionalSpotManage/index.vue b/src/views/super/regionalSpotManage/index.vue new file mode 100644 index 0000000000000000000000000000000000000000..351b777d536421a6f069890d3ea1fbae17885ed4 --- /dev/null +++ b/src/views/super/regionalSpotManage/index.vue @@ -0,0 +1,460 @@ + + + + + diff --git "a/src/views/super/supplierInfoManage/\344\276\233\350\264\247\345\225\206\344\277\241\346\201\257\347\256\241\347\220\206.vue" "b/src/views/super/supplierInfoManage/\344\276\233\350\264\247\345\225\206\344\277\241\346\201\257\347\256\241\347\220\206.vue" new file mode 100644 index 0000000000000000000000000000000000000000..120903c0fa8ad7bcc0730d1e1d7e51dea3379776 --- /dev/null +++ "b/src/views/super/supplierInfoManage/\344\276\233\350\264\247\345\225\206\344\277\241\346\201\257\347\256\241\347\220\206.vue" @@ -0,0 +1,1201 @@ + + + + +