Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
sso-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 cbef8533
authored
Sep 11, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
90c38841
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
45 deletions
src/api/modules/equityApi.js
src/views/foodOrder/index.vue
src/api/modules/equityApi.js
View file @
cbef853
...
@@ -121,7 +121,8 @@ const exportHWOrderList = params => {
...
@@ -121,7 +121,8 @@ const exportHWOrderList = params => {
params
.
method
=
`scrm.api.equity.hw.order.export`
params
.
method
=
`scrm.api.equity.hw.order.export`
return
http
({
return
http
({
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
,
returnAll
:
true
})
})
}
}
...
...
src/views/foodOrder/index.vue
View file @
cbef853
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
</div>
</div>
</div>
</div>
<div
class=
"detail-wrap"
>
<div
class=
"detail-wrap"
>
<span
class=
"title"
>
用户
信息
</span>
<span
class=
"title"
>
餐厅
信息
</span>
<div>
<div>
<div
class=
"info"
v-for=
"(item, index) in shopInfoList"
:key=
"index"
>
<div
class=
"info"
v-for=
"(item, index) in shopInfoList"
:key=
"index"
>
<label
class=
"label"
for=
""
>
{{item.label}}:
</label>
<label
class=
"label"
for=
""
>
{{item.label}}:
</label>
...
@@ -100,41 +100,6 @@
...
@@ -100,41 +100,6 @@
</div>
</div>
</template>
</template>
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
function
getExplorer
()
{
var
ua
=
navigator
.
userAgent
.
toLocaleLowerCase
()
var
browserType
=
null
if
(
ua
.
match
(
/msie/
)
!=
null
||
ua
.
match
(
/trident/
)
!=
null
)
{
browserType
=
'IE'
}
else
if
(
ua
.
match
(
/firefox/
)
!=
null
)
{
browserType
=
'火狐'
}
else
if
(
ua
.
match
(
/ubrowser/
)
!=
null
)
{
browserType
=
'UC'
}
else
if
(
ua
.
match
(
/opera/
)
!=
null
)
{
browserType
=
'欧朋'
}
else
if
(
ua
.
match
(
/bidubrowser/
)
!=
null
)
{
browserType
=
'百度'
}
else
if
(
ua
.
match
(
/metasr/
)
!=
null
)
{
browserType
=
'搜狗'
}
else
if
(
ua
.
match
(
/tencenttraveler/
)
!=
null
||
ua
.
match
(
/qqbrowse/
)
!=
null
)
{
browserType
=
'QQ'
}
else
if
(
ua
.
match
(
/maxthon/
)
!=
null
)
{
browserType
=
'遨游'
}
else
{
browserType
=
'谷歌'
}
return
browserType
}
function
exportFn
(
url
)
{
let
browserType
=
getExplorer
()
if
(
browserType
==
'QQ'
)
{
window
.
open
(
url
)
return
}
let
iframe
=
document
.
createElement
(
'iframe'
)
iframe
.
style
.
display
=
'none'
iframe
.
src
=
url
document
.
body
.
appendChild
(
iframe
)
}
const
userInfoList
=
[
const
userInfoList
=
[
{
{
...
@@ -183,7 +148,6 @@ const shopInfoList = [
...
@@ -183,7 +148,6 @@ const shopInfoList = [
}
}
]
]
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
// import { searchMixin } from '@/mixins'
export
default
{
export
default
{
name
:
''
,
name
:
''
,
// mixins: [searchMixin],
// mixins: [searchMixin],
...
@@ -196,8 +160,6 @@ export default {
...
@@ -196,8 +160,6 @@ export default {
userInfoList
,
userInfoList
,
orderInfoList
,
orderInfoList
,
shopInfoList
,
shopInfoList
,
getExplorer
,
exportFn
,
url
:
url
,
url
:
url
,
size
:
'small'
,
size
:
'small'
,
dialogVisible
:
false
,
dialogVisible
:
false
,
...
@@ -326,10 +288,11 @@ export default {
...
@@ -326,10 +288,11 @@ export default {
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
let
allPrice
=
row
.
productInfo
?.
reduce
((
prev
,
cur
)
=>
{
let
allPrice
=
row
.
productInfo
?.
reduce
((
prev
,
cur
)
=>
{
let
price
=
cur
.
price
?
+
cur
.
price
:
0
let
price
=
cur
.
price
?
+
cur
.
price
:
0
let
curPrice
=
prev
+
Number
((
price
*
cur
.
amount
).
toFixed
(
2
))
let
curPrice
=
Number
((
prev
+
Number
((
price
*
cur
.
amount
).
toFixed
(
2
))
).
toFixed
(
2
))
return
prev
+
curPrice
return
curPrice
},
0
)
||
0
},
0
)
||
0
row
.
allPrice
=
allPrice
row
.
allPrice
=
allPrice
row
.
orderTime
=
this
.
dateFormat
(
row
.
orderTime
,
'YYYY-MM-DD HH:mm:ss'
)
this
.
curDetailInfo
=
row
||
{}
this
.
curDetailInfo
=
row
||
{}
},
},
handleClose
(){
handleClose
(){
...
@@ -355,7 +318,9 @@ export default {
...
@@ -355,7 +318,9 @@ export default {
})
})
}
}
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
setTimeout
(()
=>
{
this
.
getActiveDay
()
this
.
getActiveDay
()
},
500
)
})
})
},
},
getActiveDay
(){
getActiveDay
(){
...
@@ -366,8 +331,8 @@ export default {
...
@@ -366,8 +331,8 @@ export default {
let
nowTime
=
new
Date
().
getTime
()
let
nowTime
=
new
Date
().
getTime
()
let
oldTime
=
new
Date
(
res
.
updateTime
).
getTime
()
let
oldTime
=
new
Date
(
res
.
updateTime
).
getTime
()
let
subtime
=
(
nowTime
-
oldTime
)
/
1000
;
let
subtime
=
(
nowTime
-
oldTime
)
/
1000
;
let
days
=
Math
.
floor
(
subtime
/
86400
)
;
let
days
=
Math
.
floor
(
subtime
/
86400
)
this
.
residueDay
=
res
.
limitedDay
-
days
this
.
residueDay
=
res
.
limitedDay
-
(
days
<
0
?
0
:
days
)
}
}
})
})
},
},
...
@@ -405,7 +370,18 @@ export default {
...
@@ -405,7 +370,18 @@ export default {
handleExport
()
{
handleExport
()
{
var
params
=
this
.
formatParams
()
var
params
=
this
.
formatParams
()
this
.
$apis
.
equityApi
.
exportHWOrderList
(
params
).
then
(
res
=>
{
this
.
$apis
.
equityApi
.
exportHWOrderList
(
params
).
then
(
res
=>
{
this
.
exportFn
(
res
.
data
)
if
(
res
?.
data
){
let
tempaa
=
this
.
getExplorer
()
console
.
log
(
tempaa
,
res
.
data
)
if
(
tempaa
==
'QQ'
)
{
window
.
open
(
res
.
data
)
}
else
{
let
iframe
=
document
.
createElement
(
'iframe'
)
iframe
.
style
.
display
=
'none'
iframe
.
src
=
res
.
data
document
.
body
.
appendChild
(
iframe
)
}
}
})
})
},
},
syncDataFn
(){
syncDataFn
(){
...
@@ -456,6 +432,7 @@ export default {
...
@@ -456,6 +432,7 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.active-wrap
{
.active-wrap
{
box-sizing
:
border-box
;
background-color
:
#fff
;
background-color
:
#fff
;
width
:
100%
;
width
:
100%
;
height
:
52px
;
height
:
52px
;
...
...
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