Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigwood
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
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
罗超
bigwood
Commits
6ac98e09
Commit
6ac98e09
authored
Apr 07, 2023
by
罗超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/bigwood
parents
de057a4c
00d78323
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
80 additions
and
3 deletions
+80
-3
travel.ts
src/api/travel.ts
+4
-0
OrderPayList.vue
src/pages/travel/OrderPayList.vue
+73
-0
menus.ts
src/utils/menus.ts
+3
-3
No files found.
src/api/travel.ts
View file @
6ac98e09
...
...
@@ -11,6 +11,10 @@ class travelService {
static
async
newOrder
(
params
:
any
):
Promise
<
HttpResponse
>
{
return
request
(
'sellorder_post_SetTravelTeamOrderForB2B'
,
params
)
}
// 获取包机结算列表
static
async
payList
(
params
:
any
):
Promise
<
HttpResponse
>
{
return
request
(
'sellorder_post_GetTravelTeamOrderList'
,
params
)
}
}
export
default
travelService
src/pages/travel/OrderPayList.vue
0 → 100644
View file @
6ac98e09
<
style
>
</
style
>
<
template
>
<div>
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
inject
,
provide
,
reactive
,
toRefs
,
defineComponent
,
onMounted
}
from
'vue'
;
import
travelService
from
"../../api/travel"
;
import
{
ApiResult
}
from
"../../@types/enumHelper"
;
import
message
from
"../../utils/message"
;
import
{
useRoute
}
from
'vue-router'
export
default
defineComponent
({
setup
(
props
)
{
const
{
query
,
params
}
=
useRoute
()
const
data
=
reactive
({
info
:
{},
copyId
:
0
,
showAddOrder
:
false
,
OrderID
:
""
,
showOrderdDetail
:
false
,
orders
:
[]
as
Array
<
any
>
,
pages
:
{
pageIndex
:
1
,
pageSize
:
10
,
pageCount
:
0
,
},
loadingCel
:
false
,
loading
:
false
,
});
const
methods
=
{
initOrders
()
{
data
.
loading
=
true
;
let
param
=
{
TCID
:
''
}
travelService
.
payList
(
param
)
.
then
((
r
)
=>
{
data
.
loading
=
false
;
if
(
r
.
data
.
resultCode
==
ApiResult
.
SUCCESS
)
{
// r.data.data.pageData.forEach((x: any) => {
// x.typeInfo = data.status.find(y => y.StatusId == x.OrderStatus) ?? data.status[1]
// x.SendType = data.sends.find(y => y.Id == x.MailingState) ?? data.sends[0]
// x.Money = 0
// let Money = 0
// x.DetailList.forEach((y:any)=>{
// Money+=y.Money
// })
// x.Money= Number(Money+x.MailingMoney)
// })
data
.
orders
=
r
.
data
.
data
.
pageData
;
data
.
pages
.
pageCount
=
r
.
data
.
data
.
pageCount
;
}
else
{
message
.
errorMsg
(
r
.
data
.
message
);
}
})
.
catch
((
e
)
=>
{
message
.
errorMsg
(
e
.
message
);
data
.
loading
=
false
;
});
},
}
return
{
...
toRefs
(
data
),
...
methods
,
};
}
})
</
script
>
\ No newline at end of file
src/utils/menus.ts
View file @
6ac98e09
...
...
@@ -140,15 +140,15 @@ const useMenus = {
menus
.
push
({
name
:
t
(
'menu.travel.first'
),
url
:
''
,
id
:
1
0
,
id
:
2
0
,
parentId
:
0
,
icon
:
'Shopping/Money.svg'
,
childs
:
[
{
name
:
t
(
'menu.travel.second'
),
url
:
'/travel/order'
,
id
:
1
1
,
parentId
:
1
0
,
id
:
2
1
,
parentId
:
2
0
,
},
// {
// name: t('menu.travel.three'),
...
...
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