Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
ops_2024_vue
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
ops_2024_vue
Commits
c28837eb
Commit
c28837eb
authored
Apr 01, 2024
by
cxr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(cxr): 新增区域现货服务功能模块(区域管理/供货商信息管理)
parent
2c4f22ab
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
914 additions
and
3 deletions
+914
-3
src/api/regionalSpotManage/index.ts
src/api/regionalSpotManage/index.ts
+119
-0
src/api/supplierInfoManage/index.ts
src/api/supplierInfoManage/index.ts
+272
-0
src/main.ts
src/main.ts
+5
-3
src/router/routes/modules/regionalSpotManage.ts
src/router/routes/modules/regionalSpotManage.ts
+29
-0
src/router/routes/modules/supplierInfoManage.ts
src/router/routes/modules/supplierInfoManage.ts
+29
-0
src/views/super/regionalSpotManage/index.vue
src/views/super/regionalSpotManage/index.vue
+460
-0
src/views/super/supplierInfoManage/供货商信息管理.vue
src/views/super/supplierInfoManage/供货商信息管理.vue
+0
-0
No files found.
src/api/regionalSpotManage/index.ts
0 → 100644
View file @
c28837eb
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
,
},
);
}
src/api/supplierInfoManage/index.ts
0 → 100644
View file @
c28837eb
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
,
},
);
}
src/main.ts
View file @
c28837eb
...
...
@@ -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
'
);
}
...
...
src/router/routes/modules/regionalSpotManage.ts
0 → 100644
View file @
c28837eb
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
;
src/router/routes/modules/supplierInfoManage.ts
0 → 100644
View file @
c28837eb
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
;
src/views/super/regionalSpotManage/index.vue
0 → 100644
View file @
c28837eb
This diff is collapsed.
Click to expand it.
src/views/super/supplierInfoManage/供货商信息管理.vue
0 → 100644
View file @
c28837eb
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment