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
a513918f
Commit
a513918f
authored
Mar 18, 2021
by
xiejb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单列表 查询请货单接口
parent
d1a680bb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
27 deletions
+61
-27
src/api/myOrder.js
src/api/myOrder.js
+10
-2
src/views/myOrder/clearance/clearanceList.vue
src/views/myOrder/clearance/clearanceList.vue
+32
-11
src/views/myOrder/clearance/clearanceListItem.vue
src/views/myOrder/clearance/clearanceListItem.vue
+18
-13
src/views/myOrder/index.vue
src/views/myOrder/index.vue
+1
-1
No files found.
src/api/myOrder.js
View file @
a513918f
...
...
@@ -30,10 +30,18 @@ export function getOrderInvoiceList(params) {
// 获取商品详情列表
export
function
getGoodInfoList
(
params
)
{
return
fetch
({
url
:
'
OrderLife/GoodsInfo
'
,
url
:
'
/OrderLife/GoodsInfo
'
,
method
:
'
post
'
,
data
:
params
,
loading
:
true
})
}
// 获取请货单
export
function
getOrderClearanceList
(
params
)
{
return
fetch
({
url
:
'
/OrderLife/ReqOrder
'
,
method
:
'
post
'
,
data
:
params
,
loading
:
true
})
}
src/views/myOrder/clearance/clearanceList.vue
View file @
a513918f
...
...
@@ -22,7 +22,7 @@
<
script
>
// 引入接口
import
{
get
MyInvoiceList
}
from
'
@/api/myInvoice
'
import
{
get
OrderClearanceList
}
from
'
@/api/myOrder
'
import
clearanceListItem
from
'
./clearanceListItem.vue
'
export
default
{
name
:
'
ClearanceList
'
,
...
...
@@ -75,23 +75,44 @@ export default {
getPostData
()
{
let
_this
=
this
let
data
=
{
'
dbName
'
:
'
erp_test_shaphar-上药控股有限公司-204-23528
'
,
// 'erp_ogg_shaphar',
'
start
'
:
_this
.
currentPage
,
'
length
'
:
_this
.
pageSize
,
'
goods
'
:
''
'
clientID
'
:
[],
'
endDate
'
:
'
2021-03-18
'
,
'
goodsCode
'
:
''
,
'
goodsDesc
'
:
''
,
'
goodsId
'
:
''
,
'
goodsName
'
:
''
,
'
goodsSpec
'
:
''
,
'
manufacturer
'
:
''
,
'
mdmClientCode
'
:
''
,
'
order
'
:
''
,
'
orderDealStatus
'
:
''
,
'
orderId
'
:
''
,
'
orderNo
'
:
this
.
$route
.
query
.
orderNo
,
// 'orderNo': '879202103180835',
'
pageNum
'
:
_this
.
currentPage
,
'
pageSize
'
:
_this
.
pageSize
,
'
reqOrderStatus
'
:
''
,
'
shippingAdress
'
:
''
,
'
sort
'
:
''
,
'
sourceDb
'
:
this
.
$route
.
query
.
sourceDb
,
'
sourceGoodsId
'
:
''
,
'
sourceOrderNo
'
:
''
,
'
sourceSystem
'
:
''
,
'
startDate
'
:
'
2021-03-08
'
,
'
supplierId
'
:
[]
}
get
MyInvoi
ceList
(
data
).
then
(
rt
=>
{
if
(
rt
.
code
===
1
||
rt
.
code
===
'
1
'
)
{
get
OrderClearan
ceList
(
data
).
then
(
rt
=>
{
if
(
rt
.
data
.
code
===
'
00000
'
)
{
if
(
_this
.
isRefreshing
)
{
_this
.
invoiceList
=
rt
.
data
}
else
if
(
rt
.
data
||
rt
.
data
.
length
>
0
)
{
_this
.
invoiceList
=
_this
.
invoiceList
.
concat
(
rt
.
data
)
_this
.
invoiceList
=
rt
.
data
.
entity
.
reqOrderList
}
else
if
(
rt
.
data
.
entity
.
reqOrderList
||
rt
.
data
.
entity
.
reqOrderList
.
length
>
0
)
{
_this
.
invoiceList
=
_this
.
invoiceList
.
concat
(
rt
.
data
.
entity
.
reqOrderList
)
}
// 重置刷新提示
_this
.
isRefreshing
=
false
// 重置加载更多提示
_this
.
isLoading
=
false
if
(
rt
.
data
.
length
<
10
)
{
if
(
rt
.
data
.
entity
.
reqOrderList
.
length
<
10
)
{
_this
.
finished
=
true
}
else
{
// 加载成功后下一页自增1
...
...
src/views/myOrder/clearance/clearanceListItem.vue
View file @
a513918f
...
...
@@ -2,37 +2,36 @@
<div
id=
"clearanceListItem"
>
<div
class=
"clearanceInfo"
>
<div
class=
"clearanceHead"
>
<van-image
fit=
"contain"
width=
"
50"
height=
"55
"
:src=
"sphImage"
/>
<van-image
fit=
"contain"
width=
"
35"
height=
"40
"
:src=
"sphImage"
/>
<div
class=
"num"
>
<div
class=
"numBer"
>
请货单号:
34678649876
</div>
<div
class=
"numBer"
>
请货单号:
{{
item
.
sourceOrderNo
}}
</div>
</div>
<div
class=
"numType"
><van-button
class=
"numBtn"
plain
size=
"mini"
type=
"info"
>
药事所
</van-button></div>
<div
class=
"numType"
><van-button
class=
"numBtn"
plain
size=
"mini"
type=
"info"
>
{{
item
.
sourceSystem
}}
</van-button></div>
</div>
<div
class=
"divider"
></div>
<div
class=
"orderInfo"
>
<div
class=
"company"
>
<span
style=
"width: 83%"
>
药品部
</span>
<span
style=
"width: 83%"
>
{{
item
.
supplierName
}}
</span>
</div>
<div
class=
"info"
>
<div
class=
"headImage"
>
<van-image
width=
"55"
height=
"55"
src=
"https://img01.yzcdn.cn/vant/cat.jpeg"
/>
<van-image
width=
"55"
height=
"55"
:src=
"orderImage"
/>
</div>
<div
class=
"details"
>
<div
class=
"titleInfo"
>
[132521]阿西匹林/0.25g*s/上海市浦东新区金科路长泰广场负一楼
{{
item
.
goodsDesc
}}
</div>
</div>
</div>
<div
class=
"goodsNum"
>
来源商品编码:
XN19280003837282
来源商品编码:
{{
item
.
sourceGoodsId
}}
</div>
<div
class=
"quantity"
>
<div
class=
"clearanceNum"
>
请货数量:
1000
请货数量:
{{
item
.
reqQty
}}
</div>
<div
class=
"billingNum"
>
开单数量:
90
开单数量:
{{
item
.
orderQty
}}
</div>
</div>
<van-divider
:style=
"
{ color: '#999999', borderColor: '#999999', margin: '10PX 0 10PX 0'}"/>
...
...
@@ -49,6 +48,7 @@ export default {
data
()
{
return
{
sphImage
:
require
(
'
@/assets/img/u48.png
'
),
orderImage
:
require
(
'
@/assets/img/order.png
'
)
}
},
props
:
{
...
...
@@ -89,15 +89,16 @@ export default {
font-size
:
15
PX
;
.clearanceHead
{
display
:
flex
;
line-height
:
5
0
PX
;
height
:
5
0
PX
;
line-height
:
4
0
PX
;
height
:
4
0
PX
;
// margin: 0PX 10PX;
.num
{
width
:
77
%
;
width
:
90
%
;
padding-left
:
5
PX
;
}
.numBer
{
height
:
16
PX
;
font-size
:
13
PX
;
// line-height: 15PX;
}
// .numBtn{
...
...
@@ -156,10 +157,14 @@ export default {
}
}
}
.goodsNum
{
color
:
#999999
;
}
.quantity
{
display
:
flex
;
height
:
30
PX
;
line-height
:
30
PX
;
color
:
#999999
;
.clearanceNum
{
width
:
50%
;
}
...
...
src/views/myOrder/index.vue
View file @
a513918f
...
...
@@ -148,7 +148,7 @@ export default {
gotoOrderClearance
(
model
)
{
this
.
$router
.
push
({
path
:
'
/clearance
'
,
query
:
this
.
$store
.
state
.
linkInfo
query
:
model
})
},
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