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
4a3cb708
Commit
4a3cb708
authored
Jan 11, 2021
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了报告审核
parent
9a415c72
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
132 additions
and
4 deletions
+132
-4
soil-statistics.js
api/soil/soil-statistics.js
+4
-0
soil-test.js
api/soil/soil-test.js
+2
-0
SampleByMakeModal.vue
pages/soil-report-manage/report-audit/SampleByMakeModal.vue
+115
-0
SummaryInfo.vue
pages/soil-report-manage/report-audit/SummaryInfo.vue
+0
-0
reportAudit.vue
pages/soil-report-manage/report-audit/tabs/reportAudit.vue
+10
-2
SummaryInfo.vue
pages/soil-report-manage/report-make/tabs/SummaryInfo.vue
+1
-2
No files found.
api/soil/soil-statistics.js
View file @
4a3cb708
...
...
@@ -93,5 +93,9 @@ export default {
summaryReportSubmit
:
data
=>
http
.
post
(
'soil/v1/report/summary_report_submit?ids='
+
data
)
.
then
(
res
=>
res
),
summaryReportCheckSubmit
:
data
=>
http
.
post
(
'soil/v1/report/summary_report_check_submit?ids='
+
data
)
.
then
(
res
=>
res
)
}
api/soil/soil-test.js
View file @
4a3cb708
...
...
@@ -197,6 +197,8 @@ export default {
deleteReport
:
data
=>
http
.
delete
(
'soil/v1/exp_report/?ids='
+
data
).
then
(
res
=>
res
),
reportPage
:
data
=>
http
.
post
(
'soil/v1/report/page'
,
data
).
then
(
res
=>
res
),
pageSummaryCheck
:
data
=>
http
.
post
(
'soil/v1/report/page_summary_check'
,
data
).
then
(
res
=>
res
),
dataGds
:
data
=>
http
.
get
(
'soil/v1/data_gds/'
+
data
).
then
(
res
=>
res
),
gdsGetMainInfo
:
data
=>
http
...
...
pages/soil-report-manage/report-audit/SampleByMakeModal.vue
0 → 100644
View file @
4a3cb708
<
template
>
<div>
<!--内容-->
<Modal
v-model=
"showModal"
:width=
"100"
class=
"modal-footer-none modal-top-0"
>
<p
slot=
"header"
>
{{
modalTitle
}}
</p>
<div>
<el-tabs
v-model=
"activeName"
@
tab-click=
"_changeTabs"
>
<el-tab-pane
label=
"汇总报告台账"
name=
"summary"
>
<SummaryInfo
ref=
"summaryTabs"
></SummaryInfo>
</el-tab-pane>
</el-tabs>
</div>
</Modal>
</div>
</
template
>
<
script
>
import
SummaryInfo
from
'./SummaryInfo'
export
default
{
components
:
{
SummaryInfo
},
data
()
{
return
{
showModal
:
false
,
modalTitle
:
''
,
activeName
:
''
,
contractId
:
''
,
entrustId
:
''
,
type
:
''
,
personal
:
''
}
},
computed
:
{
tableHeight
:
function
()
{
return
document
.
documentElement
.
clientHeight
-
135
}
},
methods
:
{
_open
(
entrustId
)
{
this
.
modalTitle
=
'查看汇总报告'
this
.
showModal
=
true
this
.
activeName
=
'summary'
this
.
entrustId
=
entrustId
this
.
$refs
.
summaryTabs
.
_open
(
this
.
entrustId
)
console
.
log
(
this
.
entrustId
)
// 先初始化样品台账的数据
// this.$nextTick(() =>
// this.$refs.sampleTabs._getPage(
// this.contractId,
// this.type,
// this.personal
// )
// )
// this._sampleData(contractId)
},
// 判断待编样品是否为0
_sampleData
(
contractId
)
{
const
data
=
{
contractId
:
contractId
,
onlyReportMake
:
1
,
reported
:
0
,
page
:
1
,
rows
:
50
,
personal
:
this
.
personal
}
this
.
$store
.
dispatch
(
'FoodSample/pageSampleReportMake'
,
data
).
then
(()
=>
{
const
records
=
this
.
$store
.
state
.
FoodSample
.
page
.
records
if
(
records
.
length
===
0
)
{
this
.
activeName
=
'report'
this
.
$nextTick
(()
=>
this
.
_report
())
}
else
{
this
.
activeName
=
'sample'
this
.
$nextTick
(()
=>
this
.
$refs
.
sampleTabs
.
_getPage
(
this
.
contractId
,
this
.
type
,
this
.
personal
)
)
}
})
},
_report
()
{
this
.
$refs
.
reportTabs
.
_open
(
this
.
entrustId
)
},
_sample
()
{
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'
:
this
.
_sample
()
break
case
'report'
:
this
.
_report
()
break
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-audit/SummaryInfo.vue
0 → 100644
View file @
4a3cb708
This diff is collapsed.
Click to expand it.
pages/soil-report-manage/report-audit/tabs/reportAudit.vue
View file @
4a3cb708
...
...
@@ -65,6 +65,7 @@
<FileManage
ref=
"FileManage"
@
on-result-change=
"_fileResult"
/>
<Reason
ref=
"reasonModal"
@
on-result-change=
"_reasonResult"
/>
<OperationModal
ref=
"operationModal"
/>
<SampleByMakeModal
ref=
"summaryModal"
></SampleByMakeModal>
</div>
</template>
...
...
@@ -74,9 +75,10 @@ import { soilSample, soilStatistics } from '../../../../api'
import
global
from
'../../../../api/config'
import
Reason
from
'../../../../components/base/Reason'
import
OperationModal
from
'../../../../components/operation/Operation'
import
SampleByMakeModal
from
'../SampleByMakeModal'
export
default
{
name
:
'PreparationManage'
,
components
:
{
Reason
,
OperationModal
},
components
:
{
Reason
,
OperationModal
,
SampleByMakeModal
},
data
()
{
return
{
name
:
''
,
...
...
@@ -110,6 +112,7 @@ export default {
selectData
:
[],
iconMsg
:
[
{
id
:
''
,
type
:
'md-image'
,
name
:
'预览报告'
},
{
id
:
''
,
type
:
'ios-book'
,
name
:
'查看汇总报告'
},
{
id
:
''
,
type
:
'ios-cloud'
,
name
:
'附件'
},
{
id
:
''
,
type
:
'ios-clock'
,
name
:
'操作日志'
}
]
...
...
@@ -271,6 +274,9 @@ export default {
case
'预览报告'
:
this
.
_viewReport
(
data
)
break
case
'查看汇总报告'
:
this
.
_viewSummary
(
data
)
break
case
'操作日志'
:
this
.
_record
(
data
.
id
)
break
...
...
@@ -282,7 +288,9 @@ export default {
_viewReport
(
data
)
{
this
.
_getObjectKey
(
data
)
},
_viewSummary
(
data
)
{
this
.
$refs
.
summaryModal
.
_open
(
data
.
id
)
},
_getObjectKey
:
async
function
(
data
)
{
const
result
=
await
soilSample
.
getReport
(
data
.
id
)
if
(
result
)
{
...
...
pages/soil-report-manage/report-make/tabs/SummaryInfo.vue
View file @
4a3cb708
...
...
@@ -63,7 +63,6 @@
</div>
</template>
<
script
>
import
global
from
'../../../../api/config'
import
http
from
'../../../../api/http'
import
{
soilReport
,
soilStatistics
,
soilTest
}
from
'../../../../api'
import
Global
from
'../../../../api/config'
...
...
@@ -352,7 +351,7 @@ export default {
flag
:
0
}
http
.
open
(
g
lobal
.
baseURL
+
G
lobal
.
baseURL
+
'/food/v1/sample_report/download_batch_by_sampleIds'
,
obj
,
'_blank'
...
...
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