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
8afb34bd
Commit
8afb34bd
authored
Mar 19, 2021
by
琉璃丶c
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
b4e2f94b
5e778932
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
250 additions
and
51 deletions
+250
-51
src/components/SearchInSupplier.vue
src/components/SearchInSupplier.vue
+9
-7
src/views/myOrder/clearance/HighSearch.vue
src/views/myOrder/clearance/HighSearch.vue
+4
-4
src/views/myOrder/detail/goodsInfo.vue
src/views/myOrder/detail/goodsInfo.vue
+95
-36
src/views/myOrder/detail/goodsInfoListItem.vue
src/views/myOrder/detail/goodsInfoListItem.vue
+136
-0
src/views/myOrder/detail/orderDetail.vue
src/views/myOrder/detail/orderDetail.vue
+5
-3
src/views/myOrder/index.vue
src/views/myOrder/index.vue
+1
-1
No files found.
src/components/SearchInSupplier.vue
View file @
8afb34bd
...
@@ -176,13 +176,15 @@ export default {
...
@@ -176,13 +176,15 @@ export default {
getPostData
()
{
getPostData
()
{
let
_this
=
this
let
_this
=
this
let
data
=
{
let
data
=
{
'
dbSource
'
:
this
.
linkInfo
.
sysDbSource
,
// 'dbSource':this.linkInfo.sysDbSource,
'
pageNum
'
:
_this
.
currentPage
,
'
dbSource
'
:
'
erp_test_shaphar
'
,
'
pageSize
'
:
_this
.
pageSize
,
'
pageNum
'
:
_this
.
currentPage
,
'
erpUserId
'
:
this
.
linkInfo
.
sysUserId
,
'
pageSize
'
:
_this
.
pageSize
,
'
invOwner
'
:
this
.
linkInfo
.
sysOrgId
,
// 'erpUserId':this.linkInfo.sysUserId,
'
goodsId
'
:
_this
.
chinfo
.
goodsId
,
'
erpUserId
'
:
'
23528
'
,
'
supply
'
:
_this
.
keywords
'
invOwner
'
:
'
200
'
,
'
goodsId
'
:
_this
.
chinfo
.
goodsId
,
'
supply
'
:
_this
.
keywords
}
}
getCgSupplyList
(
data
).
then
(
rt
=>
{
getCgSupplyList
(
data
).
then
(
rt
=>
{
...
...
src/views/myOrder/clearance/HighSearch.vue
View file @
8afb34bd
...
@@ -95,12 +95,12 @@
...
@@ -95,12 +95,12 @@
@
cancleclick=
"showPost"
@
cancleclick=
"showPost"
@
confirmclick=
"postConfirm"
@
confirmclick=
"postConfirm"
></search-in-consignor>
></search-in-consignor>
<
cg-
search-goods
<search-goods
v-model=
"moreSearchDialog.goodsShow"
v-model=
"moreSearchDialog.goodsShow"
:customer=
"!moreSearchInfo.goods ? {}:moreSearchInfo.goods"
:customer=
"!moreSearchInfo.goods ? {}:moreSearchInfo.goods"
@
cancleclick=
"showPost"
@
cancleclick=
"showPost"
@
confirmclick=
"postConfirm"
@
confirmclick=
"postConfirm"
></
cg-
search-goods>
></search-goods>
<search-in-client
<search-in-client
v-model=
"moreSearchDialog.clientShow"
v-model=
"moreSearchDialog.clientShow"
:customer=
"!moreSearchInfo.client ? {}:moreSearchInfo.client"
:customer=
"!moreSearchInfo.client ? {}:moreSearchInfo.client"
...
@@ -119,7 +119,7 @@ import SearchInSupplier from "@/components/SearchInSupplier";
...
@@ -119,7 +119,7 @@ import SearchInSupplier from "@/components/SearchInSupplier";
// 货主
// 货主
import
SearchInConsignor
from
"
@/components/SearchInConsignor
"
;
import
SearchInConsignor
from
"
@/components/SearchInConsignor
"
;
// 商品
// 商品
import
CgSearchGoods
from
"
@/components/Cg
SearchGoods
"
;
import
SearchGoods
from
"
@/components/
SearchGoods
"
;
// 客户
// 客户
import
SearchInClient
from
"
@/components/SearchInClient
"
import
SearchInClient
from
"
@/components/SearchInClient
"
export
default
{
export
default
{
...
@@ -127,7 +127,7 @@ export default {
...
@@ -127,7 +127,7 @@ export default {
components
:
{
components
:
{
TimeChoose
,
TimeChoose
,
SearchInSupplier
,
SearchInSupplier
,
Cg
SearchGoods
,
SearchGoods
,
SearchInConsignor
,
SearchInConsignor
,
SearchInClient
SearchInClient
},
},
...
...
src/views/myOrder/detail/goodsInfo.vue
View file @
8afb34bd
<
template
>
<
template
>
<div
class=
"goods-info"
>
<div
class=
"goods-info"
>
<div
class=
"order-sum"
>
<div
class=
"sum-number"
>
全部商品
</div>
</div>
<div
class=
"goods-info-details"
>
<div
class=
"goods-info-details"
>
<van-pull-refresh
v-model=
"refreshing"
@
refresh=
"onRefresh"
>
<
!--
<
van-pull-refresh
v-model=
"refreshing"
@
refresh=
"onRefresh"
>
<van-list
<van-list
v-model=
"loading"
v-model=
"loading"
:finished=
"finished"
:finished=
"finished"
finished-text=
"没有更多了"
finished-text=
"没有更多了"
@
load=
"onLoad"
@
load=
"onLoad"
>
>
-->
<goods-info-detail
<div
class=
"list"
v-for=
"(item, index) in detailData.goodsInfos"
:key=
"index"
>
v-for=
"(item, index) in goodsInfos"
<!--
<goods-info-detail
:item=
"item"
></goods-info-detail>
-->
<goods-info-list-item
:item=
"item"
></goods-info-list-item>
</div>
<!--
<goods-info-detail
v-for=
"(item, index) in detailData.goodsInfos"
:key=
"index"
:key=
"index"
:title=
"item"
:title=
"item"
></goods-info-detail>
></goods-info-detail>
-->
</van-list>
<
!--
<
/van-list>
</van-pull-refresh>
</van-pull-refresh>
-->
</div>
</div>
<div
class=
"goods-sum"
>
<div
class=
"goods-sum"
>
<div
class=
"sum-number-detail"
>
共
1
个商品
</div>
<div
class=
"sum-number-detail"
>
共
{{
detailData
.
goodsInfos
.
length
}}
个商品
</div>
<div
class=
"sum-amount"
>
金额总计
:
</div>
<div
class=
"sum-amount"
>
金额总计
:
<span
style=
"font-size: 16PX;"
>
¥
{{
orderTotalAmount
}}
</span>
</div>
<div
class=
"sum-account"
><span>
¥
</span>
18,500.00
</div>
</div>
</div>
<
goods-high-search
v-model=
"showHighSearch"
/
>
<
!--
<goods-high-search
v-model=
"showHighSearch"
/>
--
>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
AmountNumFormat
}
from
'
@/utils/common
'
import
goodsInfoDetail
from
"
../components/goodsInfoDetail
"
import
goodsInfoDetail
from
"
../components/goodsInfoDetail
"
import
goodsInfoListItem
from
"
./goodsInfoListItem
"
import
GoodsHighSearch
from
"
../components/goodsHighSearch
"
import
GoodsHighSearch
from
"
../components/goodsHighSearch
"
import
{
getMyOrderList
}
from
'
@/api/myOrder
'
export
default
{
export
default
{
name
:
"
goodsInfo
"
,
name
:
"
goodsInfo
"
,
components
:
{
components
:
{
GoodsHighSearch
,
GoodsHighSearch
,
goodsInfoDetail
,
goodsInfoDetail
,
goodsInfoListItem
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -51,8 +55,23 @@ export default {
...
@@ -51,8 +55,23 @@ export default {
inDelivery
:
require
(
"
@/assets/img/u546.svg
"
),
inDelivery
:
require
(
"
@/assets/img/u546.svg
"
),
copy
:
require
(
"
@/assets/img/u533.svg
"
),
copy
:
require
(
"
@/assets/img/u533.svg
"
),
},
},
orderItem
:
this
.
$route
.
query
,
detailData
:
{
goodsInfos
:
[],
orderTotalAmount
:
'
0
'
}
};
};
},
},
computed
:
{
// 总价格
orderTotalAmount
()
{
if
(
this
.
detailData
.
orderTotalAmount
)
{
return
AmountNumFormat
(
this
.
detailData
.
orderTotalAmount
)
}
else
{
return
'
0.00
'
}
}
},
mounted
()
{
mounted
()
{
// 设置标题栏关闭返回按钮
// 设置标题栏关闭返回按钮
this
.
$store
.
commit
(
"
setNavBar
"
,
{
this
.
$store
.
commit
(
"
setNavBar
"
,
{
...
@@ -65,6 +84,7 @@ export default {
...
@@ -65,6 +84,7 @@ export default {
rightClick
:
this
.
onShowSearch
,
rightClick
:
this
.
onShowSearch
,
});
});
window
.
addEventListener
(
"
popstate
"
,
this
.
onBrowserBack
,
false
);
window
.
addEventListener
(
"
popstate
"
,
this
.
onBrowserBack
,
false
);
this
.
getOrderDetail
()
},
},
destroyed
()
{
destroyed
()
{
// 当页面销毁必须要移除这个事件,vue不刷新页面,不移除会重复执行这个事件
// 当页面销毁必须要移除这个事件,vue不刷新页面,不移除会重复执行这个事件
...
@@ -107,7 +127,50 @@ export default {
...
@@ -107,7 +127,50 @@ export default {
this
.
loading
=
false
;
this
.
loading
=
false
;
this
.
onLoad
();
this
.
onLoad
();
},
},
},
/* 获取订单详情 */
getOrderDetail
()
{
let
params
=
{
'
businessType
'
:
''
,
'
clientID
'
:
[],
'
endDate
'
:
''
,
'
goodsCode
'
:
''
,
'
goodsDesc
'
:
''
,
'
goodsId
'
:
''
,
'
goodsName
'
:
''
,
'
goodsSpec
'
:
''
,
'
isDelivered
'
:
''
,
'
isInvoice
'
:
''
,
'
isWeb
'
:
''
,
'
manufacturer
'
:
''
,
'
mdmClientCode
'
:
''
,
'
order
'
:
''
,
'
orderId
'
:
this
.
orderItem
.
orderId
,
// 19977352;19965720
'
orderNo
'
:
''
,
// 225202103170165
'
orderStatusCode
'
:
''
,
'
orderType
'
:
this
.
orderItem
.
orderType
,
'
pageNum
'
:
1
,
'
pageSize
'
:
20
,
'
shippingAdress
'
:
''
,
'
sort
'
:
''
,
'
sourceDb
'
:
this
.
orderItem
.
sourceDb
,
'
sourceOrderNo
'
:
''
,
'
sourceSystem
'
:
''
,
'
startDate
'
:
''
,
'
supplierId
'
:
[]
}
getMyOrderList
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
200
&&
res
.
data
&&
res
.
data
.
code
===
'
00000
'
&&
res
.
data
.
entity
&&
res
.
data
.
entity
.
orderList
&&
res
.
data
.
entity
.
orderList
.
length
>
0
)
{
this
.
detailData
=
res
.
data
.
entity
.
orderList
[
0
]
console
.
log
(
this
.
detailData
)
}
else
{
console
.
log
(
'
订单详情
'
,
'
请求失败
'
)
}
}).
catch
(
err
=>
{
console
.
log
(
'
订单详情
'
,
err
)
})
}
}
};
};
</
script
>
</
script
>
...
@@ -125,21 +188,19 @@ export default {
...
@@ -125,21 +188,19 @@ export default {
.sum-number-detail
{
.sum-number-detail
{
padding-left
:
10px
;
padding-left
:
10px
;
}
}
}
}
.goods-info-details
{
.goods-info-details
{
background-color
:
white
;
// background-color: white;
width
:
92%
;
width
:
100%
;
// height: calc(100vh - 96px);
height
:
calc
(
100vh
-
96px
);
height
:
120px
;
// height: 120px;
margin
:
0
auto
;
border-radius
:
5px
;
overflow
:
scroll
;
overflow
:
scroll
;
padding-left
:
10px
;
padding
:
10
PX
;
.list
{
border-radius
:
5px
;
margin-bottom
:
10
PX
;
}
}
}
}
}
.goods-sum
{
.goods-sum
{
...
@@ -154,17 +215,15 @@ export default {
...
@@ -154,17 +215,15 @@ export default {
color
:
white
;
color
:
white
;
display
:
flex
;
display
:
flex
;
line-height
:
48px
;
line-height
:
48px
;
padding-left
:
10px
;
padding
:
0px
10px
;
.sum-number-detail
{
font-size
:
15
PX
;
margin-right
:
180px
;
.sum-number-detail
{
width
:
50%
;
text-align
:
left
;
}
}
.sum-amount
{
.sum-amount
{
// margin-left: 100px;
width
:
50%
;
margin-right
:
5px
;
text-align
:
right
;
span
{
font-size
:
12px
;
}
}
}
}
}
</
style
>
</
style
>
src/views/myOrder/detail/goodsInfoListItem.vue
0 → 100644
View file @
8afb34bd
<
template
>
<div
id=
"goodsInfoListItem"
>
<div
class=
"itemInfo"
>
<div
class=
"headImage"
>
<van-image
fit=
"contain"
width=
"50"
height=
"55"
:src=
"orderImage"
/>
</div>
<div
class=
"info"
>
<div
class=
"infoDesc"
>
{{
item
.
goodsDesc
}}
</div>
<div
class=
"numBer"
>
<div
class=
"unitPrice"
>
¥
{{
item
.
taxPrice
}}
</div>
<div
class=
"packageNum"
>
包装数量:
{{
item
.
packageNum
}}
</div>
</div>
<van-divider
:style=
"
{ color: '#999999', borderColor: '#999999', margin: '0'}"/>
<div
class=
"goodsInfo"
>
<div
class=
"orderNum"
>
订单数量:
{{
item
.
orderQty
}}
</div>
<div
class=
"deliveryNum"
>
配送数量:
{{
item
.
sendQty
}}
</div>
</div>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'
GoodsInfoListItem
'
,
components
:
{
},
data
()
{
return
{
sphImage
:
require
(
'
@/assets/img/u48.png
'
),
orderImage
:
require
(
'
@/assets/img/order.png
'
)
}
},
props
:
{
item
:
{
type
:
Object
,
default
:
()
=>
{
return
{
}
}
}
},
computed
:
{
linkInfo
()
{
return
this
.
$store
.
state
.
linkInfo
},
routKey
()
{
return
this
.
$route
.
path
},
searchTime
()
{
let
time
=
this
.
time
.
start
+
'
/
'
+
this
.
time
.
end
return
time
}
},
mounted
()
{
// this.onLoad()
},
methods
:
{
// 根据订单类型返回颜色
orderTypeColor
(
model
)
{
if
(
model
.
orderStatusCode
===
'
100
'
)
{
// 待发货
return
'
#06BF06
'
}
else
if
(
model
.
orderStatusCode
===
'
220
'
)
{
// 待收货
return
'
#FFC861
'
}
else
if
(
model
.
orderStatusCode
===
'
400
'
)
{
// 已签收
return
'
#929292
'
}
else
if
(
model
.
orderStatusCode
===
'
110
'
)
{
// 已取消
return
'
#C17300
'
}
},
onRefresh
()
{
},
// 查看发票 查看物流 清货单
btnAction
(
type
)
{
this
.
item
.
actionType
=
type
this
.
$emit
(
'
orderItemAction
'
,
this
.
item
)
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
#goodsInfoListItem
{
background-color
:
white
;
border-radius
:
10
PX
;
font-size
:
14
PX
;
color
:
#999999
;
padding
:
10
PX
;
.itemInfo
{
display
:
flex
;
.headImage
{
width
:
20%
;
}
.info
{
width
:
80%
;
.infoDesc
{
color
:
#333333
;
}
.numBer
{
display
:
flex
;
height
:
40
PX
;
line-height
:
40
PX
;
.unitPrice
{
text-align
:
left
;
width
:
50%
;
color
:
#333333
;
font-weight
:
600
;
font-size
:
15
PX
;
}
.packageNum
{
text-align
:
right
;
width
:
50%
;
}
}
.goodsInfo
{
display
:
flex
;
height
:
40
PX
;
line-height
:
40
PX
;
.orderNum
{
text-align
:
left
;
width
:
50%
;
}
.deliveryNum
{
text-align
:
right
;
width
:
50%
;
}
}
}
}
}
</
style
>
src/views/myOrder/detail/orderDetail.vue
View file @
8afb34bd
...
@@ -180,18 +180,20 @@ export default {
...
@@ -180,18 +180,20 @@ export default {
openGoodsList
()
{
openGoodsList
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'
goodsInfo
'
,
path
:
'
goodsInfo
'
,
query
:
this
.
$store
.
state
.
linkInfo
query
:
this
.
detailData
})
})
},
},
/* 打开发票列表页面 */
/* 打开发票列表页面 */
openOrderInvoice
()
{
openOrderInvoice
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'
orderInvoice
'
,
path
:
'
orderInvoice
'
,
query
:
this
.
$store
.
state
.
linkInfo
query
:
this
.
detailData
})
})
},
},
/* 打开单个发票页面 */
/* 打开单个发票页面 */
openInvoice
(
item
)
{
openInvoice
(
model
)
{
let
item
=
this
.
detailData
item
.
invoiceNo
=
model
.
invoiceNo
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'
orderInvoiecDetail
'
,
path
:
'
orderInvoiecDetail
'
,
query
:
item
query
:
item
...
...
src/views/myOrder/index.vue
View file @
8afb34bd
...
@@ -148,7 +148,7 @@ export default {
...
@@ -148,7 +148,7 @@ export default {
gotoOrderClearance
(
model
)
{
gotoOrderClearance
(
model
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'
/clearance
'
,
path
:
'
/clearance
'
,
query
:
model
query
:
Object
.
assign
(
this
.
$store
.
state
.
linkInfo
,
model
)
})
})
},
},
onBrowserBack
()
{
onBrowserBack
()
{
...
...
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