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
7bc8fdd2
Commit
7bc8fdd2
authored
Dec 26, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了生成报告
parent
b02f24b2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
11 deletions
+51
-11
soil-sample.js
api/soil/soil-sample.js
+11
-0
ItemReportView.vue
pages/soil-report-manage/report-make/ItemReportView.vue
+39
-10
SummarySheetTemplate.vue
...s/soil-report-manage/report-make/SummarySheetTemplate.vue
+1
-1
No files found.
api/soil/soil-sample.js
View file @
7bc8fdd2
...
@@ -208,5 +208,16 @@ export default {
...
@@ -208,5 +208,16 @@ export default {
'&entrustId='
+
'&entrustId='
+
data
.
entrustId
data
.
entrustId
)
)
.
then
(
res
=>
res
),
generateReport
:
data
=>
http
.
post
(
'soil/v1/exp_report/generate_report?entrustId='
+
data
.
entrustId
+
'&templateId='
+
data
.
templateId
+
'&expReportIds='
+
data
.
expReportIds
)
.
then
(
res
=>
res
)
.
then
(
res
=>
res
)
}
}
pages/soil-report-manage/report-make/ItemReportView.vue
View file @
7bc8fdd2
...
@@ -172,10 +172,39 @@ export default {
...
@@ -172,10 +172,39 @@ export default {
if
(
data
)
{
if
(
data
)
{
console
.
log
(
this
.
selectIds
)
console
.
log
(
this
.
selectIds
)
console
.
log
(
data
)
console
.
log
(
data
)
this
.
_makeCodeExcel
(
data
)
}
else
{
}
else
{
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
$refs
.
pageTable
.
_hideLoading
()
}
}
},
},
_makeCodeExcel
:
async
function
(
data
)
{
this
.
$refs
.
pageTable
.
_hideLoading
()
const
result
=
await
soilSample
.
generateReport
({
entrustId
:
this
.
formObj
.
entrustId
,
expReportIds
:
this
.
selectIds
,
templateId
:
data
.
id
})
if
(
result
)
{
// await this._page()
if
(
result
===
null
||
result
===
undefined
)
{
this
.
$Message
.
warning
(
'证书编制失败,请联系管理员!'
)
this
.
$refs
.
pageTable
.
_hideLoading
()
return
false
}
else
{
this
.
_viewReport
(
result
)
}
}
},
_viewReport
(
data
)
{
if
(
data
)
{
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
idType
:
10
,
id
:
data
.
id
,
isReport
:
4
})
}
},
_reportMakeOk
:
async
function
()
{
_reportMakeOk
:
async
function
()
{
const
result
=
await
soilSample
.
reportMake
({
const
result
=
await
soilSample
.
reportMake
({
entrustId
:
this
.
formObj
.
entrustId
,
entrustId
:
this
.
formObj
.
entrustId
,
...
@@ -256,16 +285,16 @@ export default {
...
@@ -256,16 +285,16 @@ export default {
this
.
_viewReport
(
result
)
this
.
_viewReport
(
result
)
}
}
},
},
_viewReport
(
data
)
{
//
_viewReport(data) {
if
(
data
)
{
//
if (data) {
this
.
$openWindowModeless
({
//
this.$openWindowModeless({
objectKey
:
data
.
objectKey
,
//
objectKey: data.objectKey,
idType
:
11
,
//
idType: 11,
id
:
data
.
id
,
//
id: data.id,
isReport
:
4
//
isReport: 4
})
//
})
}
//
}
},
//
},
// 查看原始记录
// 查看原始记录
_recordView
(
originalRecordId
)
{
_recordView
(
originalRecordId
)
{
let
recordUrl
=
''
let
recordUrl
=
''
...
...
pages/soil-report-manage/report-make/SummarySheetTemplate.vue
View file @
7bc8fdd2
...
@@ -94,7 +94,7 @@ export default {
...
@@ -94,7 +94,7 @@ export default {
},
},
_page
:
async
function
()
{
_page
:
async
function
()
{
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
const
result
=
await
soilAptitude
.
expReportTemplatePag
e
(
const
result
=
await
soilAptitude
.
pageSummaryTemplat
e
(
this
.
$serializeForm
(
this
.
formObj
)
this
.
$serializeForm
(
this
.
formObj
)
)
)
if
(
result
)
{
if
(
result
)
{
...
...
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