Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
youjj
cloud-platform-ui
Commits
d3e38c6b
Commit
d3e38c6b
authored
Aug 26, 2020
by
rencs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8.26 公司门店
parent
118657d2
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1388 additions
and
0 deletions
+1388
-0
company.js
src/api/company.js
+90
-0
trouSys.js
src/api/trouSys.js
+214
-0
index.js
src/router/index.js
+18
-0
companyManage.vue
src/views/company/companyManage.vue
+376
-0
storeManage.vue
src/views/company/storeManage.vue
+690
-0
No files found.
src/api/company.js
0 → 100644
View file @
d3e38c6b
import
fetch
from
"utils/fetch"
;
// 入驻申请列表
// export function settlement_list(query) {
// return fetch({
// url: 'vehicle/company/apply/selectList',
// method: 'get',
// params: query
// });
// }
// // 设为已读
// export function set_to_read(query) {
// return fetch({
// url: 'vehicle/company/apply/upd',
// method: 'post',
// data: query
// });
// }
export
function
company_list
(
query
)
{
return
fetch
({
url
:
"vehicle/company/info/selectList"
,
method
:
"get"
,
params
:
query
,
});
}
export
function
store_list
(
query
)
{
return
fetch
({
url
:
"vehicle/admin/branchCompany/search"
,
method
:
"get"
,
params
:
query
,
});
}
//所有公司列表
export
function
company_all_list
()
{
return
fetch
({
url
:
"vehicle/company/info/alls"
,
method
:
"get"
,
});
}
// 添加公司
export
function
add_company
(
query
)
{
return
fetch
({
url
:
'vehicle/company/info/save'
,
method
:
'post'
,
data
:
query
});
}
// 删除公司
export
function
del_company
(
query
)
{
return
fetch
({
url
:
'vehicle/company/info/del'
,
method
:
'post'
,
data
:
query
});
}
//编辑公司
export
function
upd_company
(
query
)
{
return
fetch
({
url
:
'vehicle/company/info/upd'
,
method
:
'post'
,
data
:
query
});
}
//门店
// 删除门店
export
function
del_store
(
query
)
{
return
fetch
({
url
:
'vehicle/admin/branchCompany/del?id='
+
query
.
id
,
method
:
'delete'
,
});
}
//添加门店
export
function
add_store
(
query
)
{
return
fetch
({
url
:
'vehicle/admin/branchCompany'
,
method
:
'post'
,
data
:
query
});
}
src/api/trouSys.js
0 → 100644
View file @
d3e38c6b
// eslint-disable-next-line linebreak-style
import
fetch
from
'utils/fetch'
import
store
from
'../store'
;
import
rsCode
from
'../utils/rsCode'
;
//旅游标签
export
function
getAllTourTag
(
query
)
{
return
fetch
({
url
:
'/api/tour/admin/tourTag/tags'
,
method
:
'get'
,
params
:
query
});
}
//列表
export
function
travelPage
(
query
)
{
return
fetch
({
url
:
'/api/tour/good/admin/goodList'
,
method
:
'post'
,
data
:
query
});
}
export
function
goodsEdit
(
query
)
{
return
fetch
({
url
:
'/api/tour/good/admin/goodEdit'
,
method
:
'post'
,
data
:
query
});
}
export
function
getOneGoodsById
(
query
)
{
return
fetch
({
url
:
'/api/tour/good/admin/goodOne'
,
method
:
'get'
,
params
:
query
});
}
export
function
getTourTagList
(
query
)
{
return
fetch
({
url
:
'/api/tour/admin/tourTag/pages'
,
method
:
'get'
,
params
:
query
});
}
export
function
getAll
()
{
return
fetch
({
url
:
'/vehicle/branchCompany'
,
method
:
'get'
})
}
export
function
goodDel
(
id
)
{
return
fetch
({
url
:
'/api/tour/good/admin/goodDel/'
+
id
,
method
:
'get'
});
}
/**
* 上架、下架
* */
export
function
upStatusChange
(
query
)
{
return
fetch
({
url
:
'/api/tour/good/admin/upStatus'
,
method
:
'get'
,
params
:
query
});
}
/**
* 获取省份列表
*/
export
function
getSonRegionByType
(
query
)
{
return
fetch
({
url
:
'/api/universal/sysRegion/getSonRegionByType/1'
,
method
:
'get'
,
params
:
query
});
}
/**
* 获取市区份列表
*/
export
function
getSons
(
query
)
{
return
fetch
({
url
:
'/api/universal/sysRegion/sons/'
+
query
,
method
:
'get'
,
// params: query
});
}
/**
* 获取所有公司信息
* @returns {null|*}
*/
export
function
getAllCompany
(
resolve
)
{
getAll
().
then
(
response
=>
{
let
companyList
=
response
.
data
;
if
(
!
companyList
||
companyList
.
length
===
0
)
{
return
null
;
}
let
codeAndBranchCompany
=
{};
for
(
let
index
in
companyList
)
{
codeAndBranchCompany
[
companyList
[
index
].
id
]
=
companyList
[
index
];
}
resolve
(
codeAndBranchCompany
);
});
}
export
function
getSonRegionByCodes
(
code
)
{
let
actualCode
=
code
;
if
(
!
actualCode
)
{
actualCode
=
rsCode
.
REGION_CODE_CHAINA
;
}
let
sonRegions
=
store
.
getters
.
sonRegions
(
actualCode
);
if
(
!
sonRegions
)
{
let
datas
=
loadSonsFromServer
(
actualCode
);
store
.
dispatch
(
"cacheSonRegions"
,
{
code
:
actualCode
,
sons
:
datas
});
sonRegions
=
datas
;
}
// 创建axios实例
return
sonRegions
;
}
export
function
getRegionByCodes
(
codes
)
{
if
(
!
codes
)
{
console
.
error
(
'empty region codes'
);
return
null
;
}
let
regions
=
[];
let
hasLoaded
=
true
;
for
(
let
index
in
codes
)
{
let
region
=
store
.
getters
.
region
(
codes
[
index
]);
if
(
!
region
)
{
hasLoaded
=
false
;
break
;
}
regions
=
[...
regions
,
region
];
}
if
(
!
hasLoaded
)
{
let
datas
=
loadFromServer
(
codes
);
for
(
let
index
=
datas
.
length
-
1
;
index
>=
0
;
index
--
)
{
regions
=
[
datas
[
index
],
...
regions
];
}
store
.
dispatch
(
"cacheRegion"
,
regions
);
}
return
regions
;
}
export
function
tourTagUpdate
(
query
)
{
return
fetch
({
url
:
'/api/tour/admin/tourTag/update'
,
method
:
'put'
,
data
:
query
});
}
export
function
tourTagAdd
(
query
)
{
return
fetch
({
url
:
'/api/tour/admin/tourTag/save'
,
method
:
'post'
,
data
:
query
});
}
export
function
tourTagHot
(
query
)
{
return
fetch
({
url
:
'/api/tour/admin/tourTag/update/hot'
,
method
:
'put'
,
params
:
query
});
}
/**
*删除旅游标签
*/
export
function
deleteTourTag
(
id
)
{
return
fetch
({
url
:
'/api/tour/admin/tourTag/'
+
id
,
method
:
'delete'
});
}
/**
* 判断标签是否已存在
* @param id
*/
export
function
existTourTag
(
query
)
{
return
fetch
({
url
:
'/api/tour/admin/tourTag/exist'
,
method
:
'get'
,
params
:
query
});
}
//规格
export
function
specification
(
tourId
)
{
return
fetch
({
url
:
'/api/tour/good/spe/'
+
tourId
,
method
:
'get'
});
}
src/router/index.js
View file @
d3e38c6b
...
@@ -640,6 +640,24 @@ export const asyncRouterMap = [{
...
@@ -640,6 +640,24 @@ export const asyncRouterMap = [{
authority
:
'activityList'
authority
:
'activityList'
}]
}]
},
},
{
path
:
'/company'
,
component
:
Layout
,
name
:
'公司/门店'
,
icon
:
'setting'
,
authority
:
'company'
,
children
:
[{
path
:
'companyManage'
,
component
:
_import
(
'company/companyManage'
),
name
:
'公司管理'
,
authority
:
'companyManage'
},
{
path
:
'storeManage'
,
component
:
_import
(
'company/storeManage'
),
name
:
'门店管理'
,
authority
:
'storeManage'
}]
},
{
{
path
:
'/casual'
,
path
:
'/casual'
,
component
:
Layout
,
component
:
Layout
,
...
...
src/views/company/companyManage.vue
0 → 100644
View file @
d3e38c6b
This diff is collapsed.
Click to expand it.
src/views/company/storeManage.vue
0 → 100644
View file @
d3e38c6b
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