Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-back-soil
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
wangweidong
patzn-cloud-web-back-soil
Commits
44addc53
Commit
44addc53
authored
Jun 28, 2020
by
wangweidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整体优化
parent
3b5ba641
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
+11
-10
meter-sample.js
api/meter/meter-sample.js
+6
-0
MeterCertificatePrint.vue
pages/meter-certificate/print/MeterCertificatePrint.vue
+5
-10
MeterCertificatePrintHis.vue
pages/meter-certificate/print/MeterCertificatePrintHis.vue
+0
-0
No files found.
api/meter/meter-sample.js
View file @
44addc53
...
...
@@ -69,6 +69,10 @@ export default {
http
.
post
(
'meter/v1/sample/page_certificate_check'
,
data
).
then
(
res
=>
res
),
pageCertificateIssue
:
data
=>
http
.
post
(
'meter/v1/sample/page_certificate_issue'
,
data
).
then
(
res
=>
res
),
pageCertificatePrint
:
data
=>
http
.
post
(
'meter/v1/sample/page_certificate_print'
,
data
).
then
(
res
=>
res
),
pageCertificateEnd
:
data
=>
http
.
post
(
'meter/v1/sample/page_certificate_end'
,
data
).
then
(
res
=>
res
),
getById
:
data
=>
http
.
get
(
'meter/v1/sample/'
+
data
).
then
(
res
=>
res
),
reportPreview
:
data
=>
http
...
...
@@ -108,6 +112,8 @@ export default {
http
.
post
(
'meter/v1/sample/submit_report_to_end?ids='
+
data
)
.
then
(
res
=>
res
),
endReport
:
data
=>
http
.
post
(
'meter/v1/sample/end_report?ids='
+
data
).
then
(
res
=>
res
),
submitFlow
:
data
=>
https
.
post
(
'meter/v1/sample/sample_flow'
,
JSON
.
stringify
(
data
))
...
...
pages/meter-certificate/print/MeterCertificatePrint.vue
View file @
44addc53
...
...
@@ -76,11 +76,6 @@ export default {
type
:
'success'
,
id
:
''
,
name
:
'提交'
},
{
type
:
'error'
,
id
:
''
,
name
:
'退回'
}
],
iconMsg
:
[
...
...
@@ -163,16 +158,16 @@ export default {
}
else
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
'确定
要把这 '
+
ids
.
length
+
' 条记录批准通过
吗?'
,
content
:
'确定
提交
吗?'
,
onOk
:
()
=>
{
this
.
_submit
Issue
(
ids
)
this
.
_submit
End
(
ids
)
}
})
}
},
_submit
Issue
:
async
function
(
data
)
{
const
result
=
await
meterSample
.
submitReportToEnd
(
data
)
_submit
End
:
async
function
(
data
)
{
const
result
=
await
meterSample
.
endReport
(
data
)
if
(
result
)
{
this
.
$Message
.
success
(
'提交成功!'
)
await
this
.
_page
()
...
...
@@ -249,7 +244,7 @@ export default {
},
_page
:
async
function
()
{
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
const
result
=
await
meterSample
.
pageCertificate
Issue
(
this
.
formObj
)
const
result
=
await
meterSample
.
pageCertificate
Print
(
this
.
formObj
)
if
(
result
)
{
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
getPage
=
result
...
...
pages/meter-certificate/print/MeterCertificatePrintHis.vue
View file @
44addc53
This diff is collapsed.
Click to expand it.
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