From c28837eb2e4ba233e40d57de162f89997a35aa99 Mon Sep 17 00:00:00 2001 From: cxr <2059387846@qq.com> Date: Mon, 1 Apr 2024 17:56:40 +0800 Subject: [PATCH] =?UTF-8?q?feat(cxr):=20=E6=96=B0=E5=A2=9E=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F=E7=8E=B0=E8=B4=A7=E6=9C=8D=E5=8A=A1=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=EF=BC=88=E5=8C=BA=E5=9F=9F=E7=AE=A1=E7=90=86?= =?UTF-8?q?/=E4=BE=9B=E8=B4=A7=E5=95=86=E4=BF=A1=E6=81=AF=E7=AE=A1?= =?UTF-8?q?=E7=90=86=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/regionalSpotManage/index.ts | 119 ++ src/api/supplierInfoManage/index.ts | 272 ++++ src/main.ts | 8 +- .../routes/modules/regionalSpotManage.ts | 29 + .../routes/modules/supplierInfoManage.ts | 29 + src/views/super/regionalSpotManage/index.vue | 460 +++++++ ...1\346\201\257\347\256\241\347\220\206.vue" | 1201 +++++++++++++++++ 7 files changed, 2115 insertions(+), 3 deletions(-) create mode 100644 src/api/regionalSpotManage/index.ts create mode 100644 src/api/supplierInfoManage/index.ts create mode 100644 src/router/routes/modules/regionalSpotManage.ts create mode 100644 src/router/routes/modules/supplierInfoManage.ts create mode 100644 src/views/super/regionalSpotManage/index.vue create mode 100644 "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" diff --git a/src/api/regionalSpotManage/index.ts b/src/api/regionalSpotManage/index.ts new file mode 100644 index 0000000..65ac181 --- /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 0000000..46a77c4 --- /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 21b912b..3d893fd 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 0000000..051d6e3 --- /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 0000000..a64b43d --- /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 0000000..351b777 --- /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 0000000..120903c --- /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 @@ + + + + + -- 2.24.1