Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-equity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1b0e07c5
authored
Jul 13, 2021
by
liwk
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
696948de
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
6 deletions
src/api/api.js
src/utils/util.js
src/views/tao/order/detail/index.vue
src/api/api.js
View file @
1b0e07c
...
@@ -12,7 +12,10 @@ export const orderApi = {
...
@@ -12,7 +12,10 @@ export const orderApi = {
getHwAccount
(
data
=
{})
{
getHwAccount
(
data
=
{})
{
return
request
(
data
,
'dj.api.get.equity.order.hw.account.balance.get'
)
return
request
(
data
,
'dj.api.get.equity.order.hw.account.balance.get'
)
},
},
/**获取订单详情 */
getOrderDetail
(
data
=
{})
{
return
request
(
data
,
'dj.api.get.equity.order.detail.get'
)
},
}
}
// export const orderApi = {
// export const orderApi = {
// /**获取财务管理列表*/
// /**获取财务管理列表*/
...
...
src/utils/util.js
View file @
1b0e07c
...
@@ -23,3 +23,24 @@ Date.prototype.format = function(fmt) {
...
@@ -23,3 +23,24 @@ Date.prototype.format = function(fmt) {
}
}
return
fmt
return
fmt
}
}
const
getParams
=
(
str
=
window
.
location
.
href
)
=>
{
let
params
=
str
.
split
(
'?'
)
if
(
params
.
length
<
2
)
return
{}
let
param
=
params
[
1
].
split
(
'&'
)
let
obj
=
{}
for
(
let
i
=
0
;
i
<
param
.
length
;
i
++
)
{
let
paramsA
=
param
[
i
].
split
(
'='
)
let
key
=
paramsA
[
0
]
let
value
=
paramsA
[
1
]
obj
[
key
]
=
value
}
return
obj
}
import
Vue
from
'vue'
const
utils
=
{
getParams
,
}
Object
.
keys
(
utils
).
map
(
key
=>
{
Vue
.
prototype
[
key
]
=
utils
[
key
]
})
\ No newline at end of file
\ No newline at end of file
src/views/tao/order/detail/index.vue
View file @
1b0e07c
...
@@ -57,6 +57,7 @@
...
@@ -57,6 +57,7 @@
</template>
</template>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
import
{
orderApi
}
from
'@api/api'
export
default
{
export
default
{
name
:
''
,
name
:
''
,
data
()
{
data
()
{
...
@@ -98,17 +99,13 @@ export default {
...
@@ -98,17 +99,13 @@ export default {
btn
:
true
btn
:
true
},
},
{
{
title
:
'
渠道
门店'
,
title
:
'门店'
,
list
:
[
list
:
[
{
{
label
:
'关联门店'
,
label
:
'关联门店'
,
key
:
''
key
:
''
},
},
{
{
label
:
'所属渠道'
,
key
:
''
},
{
label
:
'门店地址'
,
label
:
'门店地址'
,
key
:
''
key
:
''
},
},
...
@@ -162,8 +159,15 @@ export default {
...
@@ -162,8 +159,15 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
getDetail
()
},
},
methods
:
{
methods
:
{
getDetail
()
{
orderApi
.
getOrderDetail
(
this
.
getParams
()).
then
(({
code
,
data
})
=>
{
console
.
log
(
data
)
})
}
}
}
}
}
</
script
>
</
script
>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment