Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
上
上药订单生命周期升级
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
sph
上药订单生命周期升级
Commits
22ba1b64
Commit
22ba1b64
authored
Mar 22, 2021
by
xiejb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.jiucaiyun.cn/sph/SH_OrderLifeCycleU
parents
34e5223f
e91b02e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
23 deletions
+74
-23
src/views/myOrder/myOrderList.vue
src/views/myOrder/myOrderList.vue
+1
-1
src/views/myOrder/orderListItem.vue
src/views/myOrder/orderListItem.vue
+73
-22
No files found.
src/views/myOrder/myOrderList.vue
View file @
22ba1b64
...
@@ -241,7 +241,7 @@ export default {
...
@@ -241,7 +241,7 @@ export default {
// height: 250PX;
// height: 250PX;
background-color
:
white
;
background-color
:
white
;
margin-bottom
:
10
PX
;
margin-bottom
:
10
PX
;
border-radius
:
10
PX
;
border-radius
:
6
PX
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#333333
;
color
:
#333333
;
padding
:
0
PX
10
PX
10
PX
10
PX
;
padding
:
0
PX
10
PX
10
PX
10
PX
;
...
...
src/views/myOrder/orderListItem.vue
View file @
22ba1b64
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
id=
"orderListItem"
>
<div
id=
"orderListItem"
>
<div
class=
"itemInfo"
>
<div
class=
"itemInfo"
>
<div
class=
"orderNum"
>
<div
class=
"orderNum"
>
<van-image
fit=
"contain"
width=
"
50"
height=
"55
"
:src=
"sphImage"
/>
<van-image
fit=
"contain"
width=
"
28"
height=
"28
"
:src=
"sphImage"
/>
<div
class=
"num"
>
<div
class=
"num"
>
<div
class=
"numBer"
>
订单号:
{{
item
.
orderNo
}}
</div>
<div
class=
"numBer"
>
订单号:
{{
item
.
orderNo
}}
</div>
<!--
<van-button
color=
"#D9001B"
class=
"numBtn"
round
plain
size=
"mini"
type=
"info"
>
退
</van-button>
-->
<!--
<van-button
color=
"#D9001B"
class=
"numBtn"
round
plain
size=
"mini"
type=
"info"
>
退
</van-button>
-->
...
@@ -11,20 +11,24 @@
...
@@ -11,20 +11,24 @@
</div>
</div>
<!--
<div
class=
"dian"
></div>
-->
<!--
<div
class=
"dian"
></div>
-->
<!--
<div
class=
"numType"
><span>
{{
item
.
orderStatus
}}
</span></div>
-->
<!--
<div
class=
"numType"
><span>
{{
item
.
orderStatus
}}
</span></div>
-->
<div
class=
"numType"
>
<div
class=
"numType"
style=
"margin-top: -5px;"
>
<van-button
style=
"opacity: 1;"
disabled
:color=
"orderTypeColor(item)"
plain
size=
"mini"
type=
"info"
>
{{
item
.
orderStatus
}}
</van-button>
<van-button
style=
"opacity: 1;
height:16px;
"
disabled
:color=
"orderTypeColor(item)"
plain
size=
"mini"
type=
"info"
>
{{
item
.
orderStatus
}}
</van-button>
</div>
</div>
</div>
</div>
<div
class=
"divider"
></div>
<div
class=
"lineStyle"
>
<span
class=
"pointOutL"
></span>
<div
class=
"divider"
></div>
<span
class=
"pointOutR"
></span>
</div>
<div
class=
"orderInfo"
>
<div
class=
"orderInfo"
>
<div
class=
"company"
@
click=
"btnAction('details')"
>
<div
class=
"company"
@
click=
"btnAction('details')"
>
<span
style=
"width: 75%"
>
{{
item
.
supplierName
}}
</span>
<span
style=
"width: 75%"
>
{{
item
.
supplierName
}}
</span>
<span
style=
"width: 25%;
margin-right: 5PX;text-align: right;
"
>
共
{{
item
.
orderTotalQty
}}
</span>
<span
style=
"width: 25%;
"
class=
"totalNum
"
>
共
{{
item
.
orderTotalQty
}}
</span>
<van-icon
style=
"margin: auto 0;"
color=
"#
1989fa
"
name=
"arrow"
/>
<van-icon
style=
"margin: auto 0;"
color=
"#
999999
"
name=
"arrow"
/>
</div>
</div>
<div
class=
"info"
@
click=
"btnAction('details')"
>
<div
class=
"info"
@
click=
"btnAction('details')"
>
<div
class=
"headImage"
>
<div
class=
"headImage"
>
<van-image
width=
"
55"
height=
"55
"
:src=
"orderImage"
/>
<van-image
width=
"
48"
height=
"48
"
:src=
"orderImage"
/>
</div>
</div>
<div
class=
"details"
>
<div
class=
"details"
>
<div
class=
"titleInfo"
>
<div
class=
"titleInfo"
>
...
@@ -32,17 +36,17 @@
...
@@ -32,17 +36,17 @@
{{
titleInitial
(
item
.
goodsInfos
[
0
])
}}
{{
titleInitial
(
item
.
goodsInfos
[
0
])
}}
</div>
</div>
<div
class=
"priceInfo"
>
<div
class=
"priceInfo"
>
<div
class=
"price"
>
¥
<span
style=
"color:red;"
>
{{
item
.
goodsInfos
[
0
].
taxPrice
}}
</span></div>
<div
class=
"price"
>
¥
<span>
{{
item
.
goodsInfos
[
0
].
taxPrice
}}
</span></div>
<div
class=
"numBer"
>
X
{{
item
.
goodsInfos
[
0
].
orderQty
}}
</div>
<div
class=
"numBer"
>
x
{{
item
.
goodsInfos
[
0
].
orderQty
}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"orderTime"
@
click=
"btnAction('details')"
>
<div
class=
"orderTime"
@
click=
"btnAction('details')"
>
<van-icon
size=
"
20
"
style=
"margin: auto 0; width: 7%;"
name=
"clock-o"
/>
<van-icon
size=
"
15
"
style=
"margin: auto 0; width: 7%;"
name=
"clock-o"
/>
<span
style=
"width: 50%;
"
>
{{
item
.
orderDate
}}
</span>
<span
class=
"timeShow
"
>
{{
item
.
orderDate
}}
</span>
<div
class=
"price"
>
总计
:¥
<span
style=
"color:red;"
>
{{
item
.
orderTotalAmount
}}
</span></div>
<div
class=
"price"
>
总计
:¥
<span
>
{{
moneyFormat
(
item
.
orderTotalAmount
)
}}
</span></div>
</div>
</div>
<van-divider
:style=
"
{ color: '#999999', borderColor: '#999999', margin: '10PX 0 10PX 0'}"/
>
<!--
<van-divider
:style=
"
{ color: '#999999', borderColor: '#999999', margin: '10PX 0 10PX 0'}"/>--
>
<!--
<div
class=
"btnInfo"
style=
"text-align: right;"
>
<!--
<div
class=
"btnInfo"
style=
"text-align: right;"
>
<van-button
v-if=
"item.isInvoice === 'TRUE'"
@
click=
"btnAction('invoice')"
style=
"border-radius: 5PX;height: 25PX; line-height: 25PX"
plain
size=
"small"
type=
"info"
>
查看发票
</van-button>
<van-button
v-if=
"item.isInvoice === 'TRUE'"
@
click=
"btnAction('invoice')"
style=
"border-radius: 5PX;height: 25PX; line-height: 25PX"
plain
size=
"small"
type=
"info"
>
查看发票
</van-button>
<van-button
v-if=
"item.isDelivered === 'TRUE'"
@
click=
"btnAction('logistics')"
style=
"border-radius: 5PX;height: 25PX; line-height: 25PX"
plain
size=
"small"
type=
"info"
>
查看物流
</van-button>
<van-button
v-if=
"item.isDelivered === 'TRUE'"
@
click=
"btnAction('logistics')"
style=
"border-radius: 5PX;height: 25PX; line-height: 25PX"
plain
size=
"small"
type=
"info"
>
查看物流
</van-button>
...
@@ -54,6 +58,7 @@
...
@@ -54,6 +58,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
AmountNumFormat
}
from
'
@/utils/common
'
export
default
{
export
default
{
name
:
'
OrderListItem
'
,
name
:
'
OrderListItem
'
,
components
:
{
components
:
{
...
@@ -93,6 +98,9 @@ export default {
...
@@ -93,6 +98,9 @@ export default {
let
titleStr
=
'
【
'
+
model
.
goodsCode
+
'
】
'
+
model
.
goodsName
+
'
/
'
+
model
.
goodsSpec
+
'
/
'
+
model
.
manufacturer
let
titleStr
=
'
【
'
+
model
.
goodsCode
+
'
】
'
+
model
.
goodsName
+
'
/
'
+
model
.
goodsSpec
+
'
/
'
+
model
.
manufacturer
return
titleStr
return
titleStr
},
},
moneyFormat
(
num
)
{
return
AmountNumFormat
(
num
)
},
// 根据订单类型返回颜色
// 根据订单类型返回颜色
orderTypeColor
(
model
)
{
orderTypeColor
(
model
)
{
if
(
model
.
orderStatusCode
===
'
100
'
)
{
if
(
model
.
orderStatusCode
===
'
100
'
)
{
...
@@ -123,17 +131,41 @@ export default {
...
@@ -123,17 +131,41 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
#orderListItem
{
#orderListItem
{
.itemInfo
{
.itemInfo
{
.divider
{
.lineStyle
{
width
:
100%
;
display
:
flex
;
height
:
1
PX
;
align-items
:
center
;
background
:
linear-gradient
(
to
right
,
#ccc
0%
,
#ccc
50%
,
transparent
50%
);
margin
:
0
-14px
;
background-size
:
10
PX
1
PX
;
.divider
{
background-repeat
:
repeat-x
;
flex
:
1
;
display
:
inline-block
;
height
:
2
PX
;
margin
:
0
4px
;
background
:
linear-gradient
(
to
right
,
#ccc
0%
,
#ccc
50%
,
transparent
50%
);
background-size
:
10
PX
2
PX
;
background-repeat
:
repeat-x
;
}
.pointOutL
{
display
:inline-block
;
background-color
:
#f5f5f5
;
border-bottom-right-radius
:
12px
;
border-top-right-radius
:
12px
;
width
:
12px
;
height
:
12px
}
.pointOutR
{
display
:inline-block
;
background-color
:
#f5f5f5
;
border-bottom-left-radius
:
12px
;
border-top-left-radius
:
12px
;
width
:
12px
;
height
:
12px
}
}
}
.orderNum
{
.orderNum
{
display
:
flex
;
display
:
flex
;
line-height
:
50
PX
;
//
line-height: 50PX;
height
:
50
PX
;
height
:
50
PX
;
align-items
:
center
;
// margin: 0PX 10PX;
// margin: 0PX 10PX;
.num
{
.num
{
width
:
77%
;
width
:
77%
;
...
@@ -141,6 +173,7 @@ export default {
...
@@ -141,6 +173,7 @@ export default {
}
}
.numBer
{
.numBer
{
height
:
16
PX
;
height
:
16
PX
;
font-size
:
13px
;
// line-height: 15PX;
// line-height: 15PX;
}
}
.numBtn
{
.numBtn
{
...
@@ -171,10 +204,18 @@ export default {
...
@@ -171,10 +204,18 @@ export default {
width
:
100%
;
width
:
100%
;
display
:
flex
;
display
:
flex
;
font-weight
:
600
;
font-weight
:
600
;
.totalNum
{
margin-right
:
5
PX
;
text-align
:
right
;
font-weight
:normal
;
font-size
:
12
PX
;
}
}
}
.info
{
.info
{
height
:
65
PX
;
height
:
65
PX
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
.headImage
{
.headImage
{
// width: 55PX;
// width: 55PX;
padding-right
:
10
PX
;
padding-right
:
10
PX
;
...
@@ -199,6 +240,7 @@ export default {
...
@@ -199,6 +240,7 @@ export default {
.numBer
{
.numBer
{
width
:
50%
;
width
:
50%
;
text-align
:
right
;
text-align
:
right
;
font-size
:
12px
;
}
}
}
}
}
}
...
@@ -206,11 +248,20 @@ export default {
...
@@ -206,11 +248,20 @@ export default {
}
}
.orderTime
{
.orderTime
{
display
:
flex
;
display
:
flex
;
i
{
color
:
$txtGray9
;
}
.timeShow
{
width
:
50%
;
font-size
:
12px
;
padding-top
:
2px
;
color
:
$txtGray9
;
}
.price
{
.price
{
width
:
40%
;
width
:
40%
;
text-align
:
right
;
text-align
:
right
;
font-weight
:
600
;
//
font-weight: 600;
font-size
:
1
5
PX
font-size
:
1
3
PX
}
}
}
}
}
}
...
...
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