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
44da5294
Commit
44da5294
authored
Dec 30, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了查看样品和报告
parent
f6af2692
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
10 deletions
+23
-10
soil-report.js
api/soil/soil-report.js
+2
-1
soil-test.js
api/soil/soil-test.js
+2
-1
SampleByMakeModal.vue
pages/soil-report-manage/report-make/SampleByMakeModal.vue
+19
-8
SummaryInfo.vue
pages/soil-report-manage/report-make/tabs/SummaryInfo.vue
+0
-0
No files found.
api/soil/soil-report.js
View file @
44da5294
...
...
@@ -23,5 +23,6 @@ export default {
originalRecordGetById
:
data
=>
http
.
get
(
'soil/v1/original_record/'
+
data
).
then
(
res
=>
res
),
expReportGetById
:
data
=>
http
.
get
(
'soil/v1/exp_report/'
+
data
).
then
(
res
=>
res
)
http
.
get
(
'soil/v1/exp_report/'
+
data
).
then
(
res
=>
res
),
reportGetById
:
data
=>
http
.
get
(
'soil/v1/report/'
+
data
).
then
(
res
=>
res
)
}
api/soil/soil-test.js
View file @
44da5294
...
...
@@ -159,5 +159,6 @@ export default {
pageExperimentReport
:
data
=>
http
.
post
(
'soil/v1/exp_report/page'
,
data
).
then
(
res
=>
res
),
deleteReport
:
data
=>
http
.
delete
(
'soil/v1/exp_report/?ids='
+
data
).
then
(
res
=>
res
)
http
.
delete
(
'soil/v1/exp_report/?ids='
+
data
).
then
(
res
=>
res
),
reportPage
:
data
=>
http
.
post
(
'soil/v1/report/page'
,
data
).
then
(
res
=>
res
)
}
pages/soil-report-manage/report-make/SampleByMakeModal.vue
View file @
44da5294
...
...
@@ -6,7 +6,10 @@
<div>
<el-tabs
v-model=
"activeName"
@
tab-click=
"_changeTabs"
>
<el-tab-pane
label=
"样品台账"
name=
"sample"
>
<ReportMakeBySample
ref=
"sampleTabs"
@
on-result-change=
"_sampleTabResult"
></ReportMakeBySample>
<ReportMakeBySample
ref=
"sampleTabs"
></ReportMakeBySample>
</el-tab-pane>
<el-tab-pane
label=
"汇总报告台账"
name=
"summary"
>
<SummaryInfo
ref=
"summaryTabs"
></SummaryInfo>
</el-tab-pane>
<el-tab-pane
label=
"试验项目报告台账"
name=
"report"
>
<ReportInfoMake
ref=
"reportTabs"
></ReportInfoMake>
...
...
@@ -19,11 +22,13 @@
<
script
>
import
ReportInfoMake
from
'./tabs/ReportInfoMake'
import
ReportMakeBySample
from
'./tabs/ReportMakeBySample'
import
SummaryInfo
from
'./tabs/SummaryInfo'
export
default
{
components
:
{
ReportMakeBySample
,
ReportInfoMake
ReportInfoMake
,
SummaryInfo
},
data
()
{
return
{
...
...
@@ -93,6 +98,9 @@ export default {
console
.
log
(
this
.
entrustId
)
this
.
$refs
.
sampleTabs
.
_open
(
this
.
entrustId
)
},
_summary
()
{
this
.
$refs
.
summaryTabs
.
_open
(
this
.
entrustId
)
},
_changeTabs
(
tab
,
event
)
{
switch
(
tab
.
name
)
{
case
'sample'
:
...
...
@@ -101,14 +109,17 @@ export default {
case
'report'
:
this
.
_report
()
break
}
},
_sampleTabResult
(
msg
)
{
if
(
msg
===
'changeTab'
)
{
this
.
activeName
=
'report'
this
.
$refs
.
reportTabs
.
_open
(
this
.
contractId
,
this
.
personal
)
case
'summary'
:
this
.
_summary
()
break
}
}
// _sampleTabResult(msg) {
// if (msg === 'changeTab') {
// this.activeName = 'report'
// this.$refs.reportTabs._open(this.contractId, this.personal)
// }
// }
}
}
</
script
>
pages/soil-report-manage/report-make/tabs/SummaryInfo.vue
0 → 100644
View file @
44da5294
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