Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
205fec1b
authored
Sep 10, 2025
by
Jony.L
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发票功能1.0
parent
381016e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
1 deletions
+33
-1
src/api/computility/order.js
+9
-0
src/views/console/myOrder.vue
+24
-1
No files found.
src/api/computility/order.js
View file @
205fec1b
...
@@ -9,6 +9,15 @@ export function listOrder (query) {
...
@@ -9,6 +9,15 @@ export function listOrder (query) {
})
})
}
}
export
function
appInvoiceRequest
(
data
){
return
request
({
url
:
'/trade/order/invoiceRequest'
,
method
:
'post'
,
data
:
data
})
}
// 查询订单管理-需求单管理详细
// 查询订单管理-需求单管理详细
export
function
getOrder
(
id
)
{
export
function
getOrder
(
id
)
{
return
request
({
return
request
({
...
...
src/views/console/myOrder.vue
View file @
205fec1b
...
@@ -127,6 +127,12 @@
...
@@ -127,6 +127,12 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"订单状态"
align=
"center"
prop=
"statusName"
/>
<el-table-column
label=
"订单状态"
align=
"center"
prop=
"statusName"
/>
<el-table-column
label=
"发票链接"
align=
"center"
prop=
"invoiceUrl"
/>
<el-table-column
label=
"开票状态"
align=
"center"
prop=
"invoiceStatus"
>
<
template
#
default=
"scope"
>
<!--
<dict-tag
:type=
"invoice_status"
:value=
"scope.row.invoiceStatus"
/>
-->
</
template
>
</el-table-column>
<el-table-column
label=
"下单时间"
align=
"center"
prop=
"createTime"
width=
"180"
>
<el-table-column
label=
"下单时间"
align=
"center"
prop=
"createTime"
width=
"180"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
createTime
,
'
{
y
}
-
{
m
}
-
{
d
}
{
h
}
:{
i
}
:{
s
}'
)
}}
<
/span
>
<span>
{{
parseTime
(
scope
.
row
.
createTime
,
'
{
y
}
-
{
m
}
-
{
d
}
{
h
}
:{
i
}
:{
s
}'
)
}}
<
/span
>
...
@@ -145,6 +151,13 @@
...
@@ -145,6 +151,13 @@
>
>
详情
详情
<
/el-button
>
<
/el-button
>
<
el
-
button
link
type
=
"primary"
@
click
=
"invoiceRequest(scope.row)"
>
申请开票
<
/el-button
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
/el-table
>
<
/el-table
>
...
@@ -212,11 +225,12 @@
...
@@ -212,11 +225,12 @@
import
{
import
{
listOrder
listOrder
}
from
'@/api/computility/order'
}
from
'@/api/computility/order'
import
{
appInvoiceRequest
}
from
'@/api/computility/order'
import
{
parseTime
}
from
"../../utils/ruoyi.js"
;
import
{
parseTime
}
from
"../../utils/ruoyi.js"
;
import
{
getResources
}
from
"@/api/computility/resources.js"
;
import
{
getResources
}
from
"@/api/computility/resources.js"
;
import
{
ElMessage
}
from
"element-plus"
;
const
{
proxy
}
=
getCurrentInstance
()
const
{
proxy
}
=
getCurrentInstance
()
const
orderList
=
ref
([])
const
orderList
=
ref
([])
const
open
=
ref
(
false
)
const
open
=
ref
(
false
)
const
sOpen
=
ref
(
false
)
const
sOpen
=
ref
(
false
)
...
@@ -342,6 +356,15 @@ function handleDetails(row) {
...
@@ -342,6 +356,15 @@ function handleDetails(row) {
//
}
)
//
}
)
}
}
function
invoiceRequest
(
row
)
{
appInvoiceRequest
(
row
).
then
((
response
)
=>
{
getList
();
proxy
.
$modal
.
msgSuccess
(
"已成功申请"
);
}
).
catch
((
r
)
=>
{
}
)
}
getList
()
getList
()
<
/script
>
<
/script
>
...
...
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