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
bdca55ac
Commit
bdca55ac
authored
Mar 17, 2021
by
xiejb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单发票列表和订单发票详情页面对接接口
parent
431e3d6f
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
183 additions
and
55 deletions
+183
-55
src/api/myInvoice.js
src/api/myInvoice.js
+2
-2
src/api/myOrder.js
src/api/myOrder.js
+10
-1
src/views/myInvoice/myInvoiceList.vue
src/views/myInvoice/myInvoiceList.vue
+33
-9
src/views/myOrder/index.vue
src/views/myOrder/index.vue
+1
-2
src/views/myOrder/orderInvoice/index.vue
src/views/myOrder/orderInvoice/index.vue
+5
-3
src/views/myOrder/orderInvoice/invoiecDetail/orderInvoiecDetailList.vue
...der/orderInvoice/invoiecDetail/orderInvoiecDetailList.vue
+14
-5
src/views/myOrder/orderInvoice/invoiecDetail/orderInvoiecHead.vue
...s/myOrder/orderInvoice/invoiecDetail/orderInvoiecHead.vue
+18
-7
src/views/myOrder/orderInvoice/invoiecDetail/orderInvoiecListItem.vue
...Order/orderInvoice/invoiecDetail/orderInvoiecListItem.vue
+9
-9
src/views/myOrder/orderInvoice/orderInvoiceList.vue
src/views/myOrder/orderInvoice/orderInvoiceList.vue
+33
-11
src/views/myOrder/orderInvoice/orderInvoiecDetail.vue
src/views/myOrder/orderInvoice/orderInvoiecDetail.vue
+55
-3
src/views/myOrder/orderInvoice/orderInvoiecListItem.vue
src/views/myOrder/orderInvoice/orderInvoiecListItem.vue
+3
-3
No files found.
src/api/myInvoice.js
View file @
bdca55ac
import
{
fetch
}
from
'
@/utils
'
import
{
fetch
}
from
'
@/utils
'
// 获取
商品
列表
// 获取
发票
列表
export
function
getMyInvoiceList
(
params
)
{
export
function
getMyInvoiceList
(
params
)
{
return
fetch
({
return
fetch
({
url
:
'
/
product/queryGoods_PS
'
,
url
:
'
/
OrderLife/Invoice
'
,
method
:
'
post
'
,
method
:
'
post
'
,
data
:
params
,
data
:
params
,
loading
:
true
loading
:
true
...
...
src/api/myOrder.js
View file @
bdca55ac
import
{
fetch
}
from
'
@/utils
'
import
{
fetch
}
from
'
@/utils
'
// 获取
商品
列表
// 获取
订单
列表
export
function
getMyOrderList
(
params
)
{
export
function
getMyOrderList
(
params
)
{
return
fetch
({
return
fetch
({
url
:
'
/OrderLife/queryOrder
'
,
url
:
'
/OrderLife/queryOrder
'
,
...
@@ -8,3 +8,12 @@ export function getMyOrderList(params) {
...
@@ -8,3 +8,12 @@ export function getMyOrderList(params) {
loading
:
true
loading
:
true
})
})
}
}
// 获取订单发票列表
export
function
getOrderInvoiceList
(
params
)
{
return
fetch
({
url
:
'
/OrderLife/Invoice
'
,
method
:
'
post
'
,
data
:
params
,
loading
:
true
})
}
src/views/myInvoice/myInvoiceList.vue
View file @
bdca55ac
...
@@ -75,23 +75,47 @@ export default {
...
@@ -75,23 +75,47 @@ export default {
getPostData
()
{
getPostData
()
{
let
_this
=
this
let
_this
=
this
let
data
=
{
let
data
=
{
'
dbName
'
:
'
erp_test_shaphar-上药控股有限公司-204-23528
'
,
// 'erp_ogg_shaphar',
'
clientID
'
:
[
'
start
'
:
_this
.
currentPage
,
'
3168
'
'
length
'
:
_this
.
pageSize
,
],
'
goods
'
:
''
'
endDate
'
:
'
2021-03-15
'
,
'
goodsCode
'
:
''
,
'
goodsDesc
'
:
''
,
'
goodsId
'
:
''
,
'
goodsName
'
:
''
,
'
goodsSpec
'
:
''
,
'
invoiceCode
'
:
''
,
'
invoiceDate
'
:
''
,
'
invoiceFullNo
'
:
''
,
'
invoiceNo
'
:
''
,
'
isTwoTicket
'
:
''
,
'
manufacturer
'
:
''
,
'
mdmClientCode
'
:
''
,
'
mdmGoodsCode
'
:
''
,
'
order
'
:
''
,
'
orderId
'
:
''
,
'
orderNo
'
:
''
,
'
pageNum
'
:
this
.
currentPage
,
'
pageSize
'
:
this
.
pageSize
,
'
sort
'
:
''
,
'
sourceDb
'
:
'
SHYY
'
,
'
startDate
'
:
'
2021-03-08
'
,
'
supplierId
'
:
[
'
305
'
,
'
879
'
,
'
301
'
]
}
}
getMyInvoiceList
(
data
).
then
(
rt
=>
{
getMyInvoiceList
(
data
).
then
(
rt
=>
{
if
(
rt
.
code
===
1
||
rt
.
code
===
'
1
'
)
{
if
(
rt
.
data
.
code
===
'
00000
'
)
{
if
(
_this
.
isRefreshing
)
{
if
(
_this
.
isRefreshing
)
{
_this
.
invoiceList
=
rt
.
data
_this
.
invoiceList
=
rt
.
data
.
entity
.
invoiceList
}
else
if
(
rt
.
data
||
rt
.
data
.
length
>
0
)
{
}
else
if
(
rt
.
data
.
entity
.
invoiceList
||
rt
.
data
.
entity
.
invoiceList
.
length
>
0
)
{
_this
.
invoiceList
=
_this
.
invoiceList
.
concat
(
rt
.
data
)
_this
.
invoiceList
=
_this
.
invoiceList
.
concat
(
rt
.
data
.
entity
.
invoiceList
)
}
}
// 重置刷新提示
// 重置刷新提示
_this
.
isRefreshing
=
false
_this
.
isRefreshing
=
false
// 重置加载更多提示
// 重置加载更多提示
_this
.
isLoading
=
false
_this
.
isLoading
=
false
if
(
rt
.
data
.
length
<
10
)
{
if
(
rt
.
data
.
entity
.
invoiceList
.
length
<
10
)
{
_this
.
finished
=
true
_this
.
finished
=
true
}
else
{
}
else
{
// 加载成功后下一页自增1
// 加载成功后下一页自增1
...
...
src/views/myOrder/index.vue
View file @
bdca55ac
...
@@ -141,7 +141,7 @@ export default {
...
@@ -141,7 +141,7 @@ export default {
// console.log(window.location.href.split('?')[1])
// console.log(window.location.href.split('?')[1])
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'
/orderInvoice
'
,
path
:
'
/orderInvoice
'
,
query
:
this
.
$store
.
state
.
linkInfo
query
:
model
})
})
},
},
// 查看 清货单
// 查看 清货单
...
@@ -176,7 +176,6 @@ export default {
...
@@ -176,7 +176,6 @@ export default {
// this.$refs.all[0].httpAction(this.moreSearchInfo)
// this.$refs.all[0].httpAction(this.moreSearchInfo)
})
})
this
.
moreSearchInfo
=
JSON
.
parse
(
JSON
.
stringify
(
data
))
this
.
moreSearchInfo
=
JSON
.
parse
(
JSON
.
stringify
(
data
))
console
.
log
(
data
)
console
.
log
(
this
.
moreSearchInfo
)
console
.
log
(
this
.
moreSearchInfo
)
this
.
$EventBus
.
$emit
(
'
myOrderMoreSearch
'
,
this
.
moreSearchInfo
)
this
.
$EventBus
.
$emit
(
'
myOrderMoreSearch
'
,
this
.
moreSearchInfo
)
},
},
...
...
src/views/myOrder/orderInvoice/index.vue
View file @
bdca55ac
...
@@ -67,10 +67,12 @@ export default {
...
@@ -67,10 +67,12 @@ export default {
methods
:
{
methods
:
{
// 跳转发票详情
// 跳转发票详情
gotoDetail
(
model
)
{
gotoDetail
(
model
)
{
// console.log()
let
item
=
this
.
$route
.
query
item
.
invoiceNo
=
model
.
invoiceNo
console
.
log
()
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'
/orderInvoiecDetail
'
,
path
:
'
/orderInvoiecDetail
'
,
query
:
this
.
$store
.
state
.
linkInfo
query
:
item
});
});
},
},
onBrowserBack
()
{
onBrowserBack
()
{
...
...
src/views/myOrder/orderInvoice/invoiecDetail/orderInvoiecDetailList.vue
View file @
bdca55ac
<
template
>
<
template
>
<div
id=
"orderInvoiecDetailList"
>
<div
id=
"orderInvoiecDetailList"
>
<div
class=
"content"
>
<div
class=
"content"
>
<van-pull-refresh
class=
"list"
ref=
"supplierList"
v-model=
"isRefreshing"
@
refresh=
"onRefresh"
>
<
!--
<
van-pull-refresh
class=
"list"
ref=
"supplierList"
v-model=
"isRefreshing"
@
refresh=
"onRefresh"
>
<van-list
<van-list
v-model=
"isLoading"
v-model=
"isLoading"
:finished=
"finished"
:finished=
"finished"
finished-text=
"没有更多了"
finished-text=
"没有更多了"
:error.sync=
"error"
:error.sync=
"error"
error-text=
"请求失败,点击重新加载"
error-text=
"请求失败,点击重新加载"
@
load=
"onLoad"
>
@
load=
"onLoad"
>
-->
<div
class=
"invoiceItem"
@
click=
"gotoDetail(item)"
<div
class=
"invoiceItem"
@
click=
"gotoDetail(item)"
v-for=
"(item, index) in invoice
List
"
v-for=
"(item, index) in invoice
Item.goodsInfos
"
:key=
"index"
>
:key=
"index"
>
<order-invoiec-list-item
:item=
"item"
/>
<order-invoiec-list-item
:item=
"item"
/>
</div>
</div>
</van-list>
<
!--
<
/van-list>
</van-pull-refresh>
</van-pull-refresh>
-->
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -43,6 +43,15 @@ export default {
...
@@ -43,6 +43,15 @@ export default {
sphImage
:
require
(
'
@/assets/img/u48.png
'
),
sphImage
:
require
(
'
@/assets/img/u48.png
'
),
}
}
},
},
props
:
{
invoiceItem
:
{
type
:
Object
,
default
:
()
=>
{
return
{
}
}
}
},
computed
:
{
computed
:
{
linkInfo
()
{
linkInfo
()
{
return
this
.
$store
.
state
.
linkInfo
return
this
.
$store
.
state
.
linkInfo
...
...
src/views/myOrder/orderInvoice/invoiecDetail/orderInvoiecHead.vue
View file @
bdca55ac
...
@@ -2,24 +2,24 @@
...
@@ -2,24 +2,24 @@
<div
id=
"invoiecHead"
>
<div
id=
"invoiecHead"
>
<div
class=
"content"
>
<div
class=
"content"
>
<div
class=
"taxIncluded"
>
<div
class=
"taxIncluded"
>
<div
class=
"taxAmount"
>
¥
377,898.00
</div>
<div
class=
"taxAmount"
>
¥
{{
invoiceItem
.
totalTaxAmount
}}
</div>
<div
class=
"taxAmountSub"
>
含税金额
</div>
<div
class=
"taxAmountSub"
>
含税金额
</div>
</div>
</div>
<div
class=
"noTaxInfo"
>
<div
class=
"noTaxInfo"
>
<div
class=
"noTax"
>
<div
class=
"noTax"
>
<div
class=
"noTaxAmount"
>
¥
377,000.00
</div>
<div
class=
"noTaxAmount"
>
¥
{{
invoiceItem
.
totalTaxFreeAmount
}}
</div>
<div
class=
"noTaxAmountSub"
>
无税金额
</div>
<div
class=
"noTaxAmountSub"
>
无税金额
</div>
</div>
</div>
<div
class=
"taxNumber"
>
<div
class=
"taxNumber"
>
<div
class=
"tax"
>
¥
377,000.00
</div>
<div
class=
"tax"
>
¥
{{
invoiceItem
.
totalTaxFee
}}
</div>
<div
class=
"taxSub"
>
无税金
额
</div>
<div
class=
"taxSub"
>
税
额
</div>
</div>
</div>
</div>
</div>
<van-divider
:style=
"
{ color: '#FFFFFF', borderColor: '#FFFFFF', margin: '10PX 0 10PX 0'}"/>
<van-divider
:style=
"
{ color: '#FFFFFF', borderColor: '#FFFFFF', margin: '10PX 0 10PX 0'}"/>
<div
class=
"invoiecInfo"
>
<div
class=
"invoiecInfo"
>
<div
class=
"cellInfo"
>
<div
class=
"cellInfo"
>
<div
class=
"title"
>
发票号:
</div>
<div
class=
"title"
>
发票号:
</div>
<div
class=
"info"
>
837418787438178
</div>
<div
class=
"info"
>
{{
invoiceItem
.
invoiceNo
}}
</div>
</div>
</div>
<!--
<div
class=
"cellInfo"
>
<!--
<div
class=
"cellInfo"
>
<div
class=
"title"
>
发票代码:
</div>
<div
class=
"title"
>
发票代码:
</div>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
</div>
-->
</div>
-->
<div
class=
"cellInfo"
>
<div
class=
"cellInfo"
>
<div
class=
"title"
>
发票日期:
</div>
<div
class=
"title"
>
发票日期:
</div>
<div
class=
"info"
>
2020-11-13 09:00
</div>
<div
class=
"info"
>
{{
invoiceItem
.
invoiceDate
}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -39,6 +39,7 @@ import {getFormateDate} from '@/utils/common'
...
@@ -39,6 +39,7 @@ import {getFormateDate} from '@/utils/common'
export
default
{
export
default
{
name
:
'
InvoiecHead
'
,
name
:
'
InvoiecHead
'
,
components
:
{
components
:
{
orderInvoiecItem
:
{}
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -59,6 +60,15 @@ export default {
...
@@ -59,6 +60,15 @@ export default {
invoiceList
:
[]
invoiceList
:
[]
}
}
},
},
props
:
{
invoiceItem
:
{
type
:
Object
,
default
:
()
=>
{
return
{
}
}
}
},
computed
:
{
computed
:
{
linkInfo
()
{
linkInfo
()
{
return
this
.
$store
.
state
.
linkInfo
return
this
.
$store
.
state
.
linkInfo
...
@@ -72,6 +82,7 @@ export default {
...
@@ -72,6 +82,7 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
orderInvoiecItem
=
this
.
$route
.
query
},
},
methods
:
{
methods
:
{
onBrowserBack
()
{
onBrowserBack
()
{
...
...
src/views/myOrder/orderInvoice/invoiecDetail/orderInvoiecListItem.vue
View file @
bdca55ac
...
@@ -3,45 +3,45 @@
...
@@ -3,45 +3,45 @@
<div
class=
"itemInfo"
>
<div
class=
"itemInfo"
>
<div
class=
"orderNum"
>
<div
class=
"orderNum"
>
<van-image
fit=
"contain"
width=
"45"
height=
"50"
:src=
"sphImage"
/>
<van-image
fit=
"contain"
width=
"45"
height=
"50"
:src=
"sphImage"
/>
<div
class=
"num"
>
订单号:
34678649876
</div>
<div
class=
"num"
>
订单号:
{{
item
.
orderNo
}}
</div>
<van-button
style=
"margin: auto;width: 50PX"
class=
"numBtn"
round
plain
size=
"mini"
type=
"info"
>
复制
</van-button>
<van-button
style=
"margin: auto;width: 50PX"
class=
"numBtn"
round
plain
size=
"mini"
type=
"info"
>
复制
</van-button>
</div>
</div>
<div
class=
"divider"
></div>
<div
class=
"divider"
></div>
<div
class=
"invoiecInfo"
>
<div
class=
"invoiecInfo"
>
<div
class=
"name"
>
[
132521] 阿西匹林/0.25g*200s/浙江恒瑞制药有限公司
</div>
<div
class=
"name"
>
[
{{
item
.
goodsId
}}
]
{{
item
.
goodsName
}}
/
{{
item
.
goodsSpec
}}
/
{{
item
.
manufacturer
}}
</div>
<div
class=
"cellInfo"
>
<div
class=
"cellInfo"
>
<div
class=
"batch"
>
开票数量:
4809
</div>
<div
class=
"batch"
>
开票数量:
{{
item
.
invoiceQty
}}
</div>
<!--
<div
class=
"numBer"
>
开票数量:480
</div>
-->
<!--
<div
class=
"numBer"
>
开票数量:480
</div>
-->
</div>
</div>
<van-divider
:style=
"
{ color: '#999999', borderColor: '#999999', margin: '5PX 0 5PX 0'}"/>
<van-divider
:style=
"
{ color: '#999999', borderColor: '#999999', margin: '5PX 0 5PX 0'}"/>
<div
class=
"cellInfo"
>
<div
class=
"cellInfo"
>
<div
class=
"leftInfo"
>
<div
class=
"leftInfo"
>
<div
class=
"title"
>
无税单价:
</div>
<div
class=
"title"
>
无税单价:
</div>
<div
class=
"value"
>
7.52
</div>
<div
class=
"value"
>
{{
item
.
taxFreePrice
}}
</div>
</div>
</div>
<div
class=
"rightInfo"
>
<div
class=
"rightInfo"
>
<div
class=
"title"
>
单品无税金额:
</div>
<div
class=
"title"
>
单品无税金额:
</div>
<div
class=
"value"
>
3616.00
</div>
<div
class=
"value"
>
{{
item
.
taxFreeAmount
}}
</div>
</div>
</div>
</div>
</div>
<div
class=
"cellInfo"
>
<div
class=
"cellInfo"
>
<div
class=
"leftInfo"
>
<div
class=
"leftInfo"
>
<div
class=
"title"
>
含税单价:
</div>
<div
class=
"title"
>
含税单价:
</div>
<div
class=
"value"
>
7.52
</div>
<div
class=
"value"
>
{{
item
.
taxPrice
}}
</div>
</div>
</div>
<div
class=
"rightInfo"
>
<div
class=
"rightInfo"
>
<div
class=
"title"
>
单品含税金额:
</div>
<div
class=
"title"
>
单品含税金额:
</div>
<div
class=
"value"
>
3616.00
</div>
<div
class=
"value"
>
{{
item
.
taxAmount
}}
</div>
</div>
</div>
</div>
</div>
<div
class=
"cellInfo"
>
<div
class=
"cellInfo"
>
<div
class=
"leftInfo"
>
<div
class=
"leftInfo"
>
<div
class=
"title"
>
税率:
</div>
<div
class=
"title"
>
税率:
</div>
<div
class=
"value"
>
7.52
</div>
<div
class=
"value"
>
{{
item
.
taxRate
}}
</div>
</div>
</div>
<div
class=
"rightInfo"
>
<div
class=
"rightInfo"
>
<div
class=
"title"
>
税额:
</div>
<div
class=
"title"
>
税额:
</div>
<div
class=
"value"
>
3616.00
</div>
<div
class=
"value"
>
{{
item
.
taxFee
}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
src/views/myOrder/orderInvoice/orderInvoiceList.vue
View file @
bdca55ac
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<
script
>
<
script
>
// 引入接口
// 引入接口
import
{
get
MyInvoiceList
}
from
'
@/api/myInvoice
'
import
{
get
OrderInvoiceList
}
from
'
@/api/myOrder
'
import
orderInvoiecListItem
from
'
./orderInvoiecListItem.vue
'
import
orderInvoiecListItem
from
'
./orderInvoiecListItem.vue
'
export
default
{
export
default
{
name
:
'
OrderInvoiceList
'
,
name
:
'
OrderInvoiceList
'
,
...
@@ -75,23 +75,45 @@ export default {
...
@@ -75,23 +75,45 @@ export default {
getPostData
()
{
getPostData
()
{
let
_this
=
this
let
_this
=
this
let
data
=
{
let
data
=
{
'
dbName
'
:
'
erp_test_shaphar-上药控股有限公司-204-23528
'
,
// 'erp_ogg_shaphar',
'
clientID
'
:
[
'
start
'
:
_this
.
currentPage
,
],
'
length
'
:
_this
.
pageSize
,
'
endDate
'
:
''
,
'
goods
'
:
''
'
goodsCode
'
:
''
,
'
goodsDesc
'
:
''
,
'
goodsId
'
:
''
,
'
goodsName
'
:
''
,
'
goodsSpec
'
:
''
,
'
invoiceCode
'
:
''
,
'
invoiceDate
'
:
''
,
'
invoiceFullNo
'
:
''
,
'
invoiceNo
'
:
''
,
'
isTwoTicket
'
:
''
,
'
manufacturer
'
:
''
,
'
mdmClientCode
'
:
''
,
'
mdmGoodsCode
'
:
''
,
'
order
'
:
''
,
'
orderId
'
:
''
,
'
orderNo
'
:
this
.
$route
.
query
.
orderNo
,
'
pageNum
'
:
this
.
currentPage
,
'
pageSize
'
:
this
.
pageSize
,
'
sort
'
:
''
,
'
sourceDb
'
:
this
.
$route
.
query
.
sourceDb
,
'
startDate
'
:
''
,
'
supplierId
'
:
[
]
}
}
get
My
InvoiceList
(
data
).
then
(
rt
=>
{
get
Order
InvoiceList
(
data
).
then
(
rt
=>
{
if
(
rt
.
code
===
1
||
rt
.
code
===
'
1
'
)
{
if
(
rt
.
data
.
code
===
'
00000
'
)
{
if
(
_this
.
isRefreshing
)
{
if
(
_this
.
isRefreshing
)
{
_this
.
invoiceList
=
rt
.
data
_this
.
invoiceList
=
rt
.
data
.
entity
.
invoiceList
}
else
if
(
rt
.
data
||
rt
.
data
.
length
>
0
)
{
}
else
if
(
rt
.
data
.
entity
.
invoiceList
||
rt
.
data
.
entity
.
invoiceList
.
length
>
0
)
{
_this
.
invoiceList
=
_this
.
invoiceList
.
concat
(
rt
.
data
)
_this
.
invoiceList
=
_this
.
invoiceList
.
concat
(
rt
.
data
.
entity
.
invoiceList
)
}
}
// 重置刷新提示
// 重置刷新提示
_this
.
isRefreshing
=
false
_this
.
isRefreshing
=
false
// 重置加载更多提示
// 重置加载更多提示
_this
.
isLoading
=
false
_this
.
isLoading
=
false
if
(
rt
.
data
.
length
<
10
)
{
if
(
rt
.
data
.
entity
.
invoiceList
.
length
<
10
)
{
_this
.
finished
=
true
_this
.
finished
=
true
}
else
{
}
else
{
// 加载成功后下一页自增1
// 加载成功后下一页自增1
...
...
src/views/myOrder/orderInvoice/orderInvoiecDetail.vue
View file @
bdca55ac
<
template
>
<
template
>
<div
id=
"orderInvoiecDetail"
>
<div
id=
"orderInvoiecDetail"
>
<div
class=
"content"
>
<div
class=
"content"
>
<order-invoiec-head/>
<order-invoiec-head
:invoiceItem=
"invoiceItem"
/>
</div>
</div>
<div
class=
"list"
>
<div
class=
"list"
>
<order-invoiec-detail-list/>
<order-invoiec-detail-list
:invoiceItem=
"invoiceItem"
/>
</div>
</div>
<!--
<high-search
v-model=
"moreSearchShow"
@
onsearch=
"moreSearchConfirm"
@
onclean=
"moreSearchClean"
/>
-->
<!--
<high-search
v-model=
"moreSearchShow"
@
onsearch=
"moreSearchConfirm"
@
onclean=
"moreSearchClean"
/>
-->
</div>
</div>
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
<
script
>
<
script
>
import
{
getFormateDate
}
from
'
@/utils/common
'
import
{
getFormateDate
}
from
'
@/utils/common
'
import
{
getOrderInvoiceList
}
from
'
@/api/myOrder
'
import
orderInvoiecHead
from
'
./invoiecDetail/orderInvoiecHead.vue
'
import
orderInvoiecHead
from
'
./invoiecDetail/orderInvoiecHead.vue
'
import
orderInvoiecDetailList
from
'
./invoiecDetail/orderInvoiecDetailList.vue
'
import
orderInvoiecDetailList
from
'
./invoiecDetail/orderInvoiecDetailList.vue
'
export
default
{
export
default
{
...
@@ -24,6 +25,8 @@ export default {
...
@@ -24,6 +25,8 @@ export default {
return
{
return
{
tabsTitle
:
[],
tabsTitle
:
[],
moreSearchShow
:
false
,
moreSearchShow
:
false
,
currentPage
:
1
,
pageSize
:
10
,
activeTab
:
'
home
'
,
activeTab
:
'
home
'
,
moreSearchInfo
:
{
moreSearchInfo
:
{
//接收搜索更多回传的数据
//接收搜索更多回传的数据
...
@@ -36,7 +39,7 @@ export default {
...
@@ -36,7 +39,7 @@ export default {
end
:
getFormateDate
(
new
Date
(),
"
yyyy-MM-dd
"
),
end
:
getFormateDate
(
new
Date
(),
"
yyyy-MM-dd
"
),
},
},
},
},
invoice
List
:
[]
invoice
Item
:
{}
}
}
},
},
computed
:
{
computed
:
{
...
@@ -64,6 +67,7 @@ export default {
...
@@ -64,6 +67,7 @@ export default {
})
})
// 给window添加一个popstate事件,拦截返回键,执行this.onBrowserBack事件,addEventListener需要指向一个方法
// 给window添加一个popstate事件,拦截返回键,执行this.onBrowserBack事件,addEventListener需要指向一个方法
window
.
addEventListener
(
'
popstate
'
,
this
.
onBrowserBack
,
false
)
window
.
addEventListener
(
'
popstate
'
,
this
.
onBrowserBack
,
false
)
this
.
getPostData
()
},
},
destroyed
()
{
destroyed
()
{
// 当页面销毁必须要移除这个事件,vue不刷新页面,不移除会重复执行这个事件
// 当页面销毁必须要移除这个事件,vue不刷新页面,不移除会重复执行这个事件
...
@@ -93,6 +97,54 @@ export default {
...
@@ -93,6 +97,54 @@ export default {
closeAppPage
()
{
closeAppPage
()
{
console
.
log
(
'
关闭页面
'
)
console
.
log
(
'
关闭页面
'
)
bridge
.
closeWindow_c
()
bridge
.
closeWindow_c
()
},
getPostData
()
{
let
_this
=
this
let
data
=
{
'
clientID
'
:
[
],
'
endDate
'
:
''
,
'
goodsCode
'
:
''
,
'
goodsDesc
'
:
''
,
'
goodsId
'
:
''
,
'
goodsName
'
:
''
,
'
goodsSpec
'
:
''
,
'
invoiceCode
'
:
''
,
'
invoiceDate
'
:
''
,
'
invoiceFullNo
'
:
''
,
'
invoiceNo
'
:
this
.
$route
.
query
.
invoiceNo
,
'
isTwoTicket
'
:
''
,
'
manufacturer
'
:
''
,
'
mdmClientCode
'
:
''
,
'
mdmGoodsCode
'
:
''
,
'
order
'
:
''
,
'
orderId
'
:
''
,
'
orderNo
'
:
this
.
$route
.
query
.
orderNo
,
'
pageNum
'
:
this
.
currentPage
,
'
pageSize
'
:
this
.
pageSize
,
'
sort
'
:
''
,
'
sourceDb
'
:
this
.
$route
.
query
.
sourceDb
,
'
startDate
'
:
''
,
'
supplierId
'
:
[
]
}
getOrderInvoiceList
(
data
).
then
(
rt
=>
{
if
(
rt
.
data
.
code
===
'
00000
'
)
{
if
(
rt
.
data
.
entity
&&
rt
.
data
.
entity
.
invoiceList
.
length
>
0
)
{
_this
.
invoiceItem
=
rt
.
data
.
entity
.
invoiceList
[
0
]
}
}
else
{
_this
.
$toast
(
rt
.
message
)
}
// 加载状态结束
_this
.
isLoading
=
false
}).
catch
(
e
=>
{
this
.
$toast
(
'
获取信息失败!
'
)
_this
.
isRefreshing
=
false
_this
.
isLoading
=
false
_this
.
error
=
true
_this
.
finished
=
true
})
}
}
}
}
}
}
...
...
src/views/myOrder/orderInvoice/orderInvoiecListItem.vue
View file @
bdca55ac
...
@@ -3,15 +3,15 @@
...
@@ -3,15 +3,15 @@
<div
class=
"invoiecrInfo"
>
<div
class=
"invoiecrInfo"
>
<div
class=
"cellInfo"
>
<div
class=
"cellInfo"
>
<div
class=
"title"
>
发票号:
</div>
<div
class=
"title"
>
发票号:
</div>
<div
class=
"info"
>
XS837418787438178
</div>
<div
class=
"info"
>
{{
item
.
invoiceNo
}}
</div>
</div>
</div>
<div
class=
"cellInfo"
>
<div
class=
"cellInfo"
>
<div
class=
"title"
>
发票日期:
</div>
<div
class=
"title"
>
发票日期:
</div>
<div
class=
"info"
>
2021-03-08
</div>
<div
class=
"info"
>
{{
item
.
invoiceDate
}}
</div>
</div>
</div>
<div
class=
"cellInfo"
>
<div
class=
"cellInfo"
>
<div
class=
"title"
>
发票金额:
</div>
<div
class=
"title"
>
发票金额:
</div>
<div
class=
"info"
style=
"font-weight: 600;font-size: 16PX;"
>
¥
<span
class=
"price"
>
377,899.00
</span></div>
<div
class=
"info"
style=
"font-weight: 600;font-size: 16PX;"
>
¥
<span
class=
"price"
>
{{
item
.
totalTaxAmount
}}
</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
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