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
e371c714
Commit
e371c714
authored
Dec 14, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了试样检测查看原始记录
parent
2b298967
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
12 deletions
+65
-12
soil-report.js
api/soil/soil-report.js
+5
-1
OriginalRecordView.vue
pages/soil-test-manage/test-input/OriginalRecordView.vue
+27
-1
ItemRightList.vue
...s/soil-test-manage/test-input/item-tabs/ItemRightList.vue
+33
-10
No files found.
api/soil/soil-report.js
View file @
e371c714
...
@@ -14,5 +14,9 @@ export default {
...
@@ -14,5 +14,9 @@ export default {
http
.
post
(
'soil/v1/entrust/page_report_check_his'
,
data
).
then
(
res
=>
res
),
http
.
post
(
'soil/v1/entrust/page_report_check_his'
,
data
).
then
(
res
=>
res
),
// 报告签发 历史任务分页列表
// 报告签发 历史任务分页列表
pageReportIssueHis
:
data
=>
pageReportIssueHis
:
data
=>
http
.
post
(
'soil/v1/entrust/page_report_issue_his'
,
data
).
then
(
res
=>
res
)
http
.
post
(
'soil/v1/entrust/page_report_issue_his'
,
data
).
then
(
res
=>
res
),
getExcelOriginalRecord
:
data
=>
http
.
post
(
'soil/v1/original_record/get_excel_original_record?expId='
+
data
)
.
then
(
res
=>
res
)
}
}
pages/soil-test-manage/test-input/OriginalRecordView.vue
View file @
e371c714
...
@@ -152,7 +152,8 @@ export default {
...
@@ -152,7 +152,8 @@ export default {
)
)
break
break
case
'查看原始记录'
:
case
'查看原始记录'
:
this
.
_recordView
(
data
.
originalRecordId
)
this
.
_reportView
(
data
)
// this._recordView(data.originalRecordId)
break
break
case
'查看试验项目'
:
case
'查看试验项目'
:
this
.
_itemView
(
data
.
id
)
this
.
_itemView
(
data
.
id
)
...
@@ -167,6 +168,31 @@ export default {
...
@@ -167,6 +168,31 @@ export default {
_itemView
(
id
)
{
_itemView
(
id
)
{
this
.
$refs
.
itemViewModal
.
_open
(
id
)
this
.
$refs
.
itemViewModal
.
_open
(
id
)
},
},
_reportView
(
data
)
{
if
(
data
.
objectKey
)
{
this
.
_reportMakeLook
(
data
)
}
else
{
this
.
_recordView
(
data
.
originalRecordId
)
}
},
_reportMakeLook
(
data
)
{
console
.
log
(
data
)
this
.
_viewReport
(
data
)
// const result = await soilReport.getExcelOriginalRecord(data.id)
// if (result) {
// this._viewReport(result)
// }
},
_viewReport
(
data
)
{
if
(
data
)
{
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
idType
:
10
,
id
:
data
.
id
,
isReport
:
4
})
}
},
// 查看原始记录
// 查看原始记录
_recordView
(
originalRecordId
)
{
_recordView
(
originalRecordId
)
{
let
recordUrl
=
''
let
recordUrl
=
''
...
...
pages/soil-test-manage/test-input/item-tabs/ItemRightList.vue
View file @
e371c714
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
</template>
</template>
<
script
>
<
script
>
import
Global
from
'../../../../api/config'
import
Global
from
'../../../../api/config'
import
{
soilSample
,
soilTest
}
from
'../../../../api'
import
{
soil
Report
,
soil
Sample
,
soilTest
}
from
'../../../../api'
import
AssignPerson
from
'../../../../components/user-info-single/assignPerson'
import
AssignPerson
from
'../../../../components/user-info-single/assignPerson'
import
SelectOriTempRecord
from
'../SelectOriTempRecord'
import
SelectOriTempRecord
from
'../SelectOriTempRecord'
import
OriginalRecordEdit
from
'../OriginalRecordEdit'
import
OriginalRecordEdit
from
'../OriginalRecordEdit'
...
@@ -131,6 +131,7 @@ export default {
...
@@ -131,6 +131,7 @@ export default {
],
],
iconMsg
:
[
iconMsg
:
[
{
type
:
'ios-book'
,
id
:
''
,
name
:
'查看原始记录'
},
{
type
:
'ios-book'
,
id
:
''
,
name
:
'查看原始记录'
},
// { type: 'md-eye', id: '', name: '原始记录查看/编辑' },
{
type
:
'md-apps'
,
id
:
''
,
name
:
'查看指标'
},
{
type
:
'md-apps'
,
id
:
''
,
name
:
'查看指标'
},
{
type
:
'ios-bookmarks'
,
id
:
''
,
name
:
'查看采集数据'
},
{
type
:
'ios-bookmarks'
,
id
:
''
,
name
:
'查看采集数据'
},
{
type
:
'ios-browsers'
,
id
:
''
,
name
:
'查看采集文件'
},
{
type
:
'ios-browsers'
,
id
:
''
,
name
:
'查看采集文件'
},
...
@@ -185,19 +186,23 @@ export default {
...
@@ -185,19 +186,23 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
switch
(
res
)
{
switch
(
res
)
{
case
'查看原始记录'
:
case
'查看原始记录'
:
console
.
log
(
data
)
this
.
_reportView
(
data
)
if
(
data
.
recordId
)
{
// console.log(data)
this
.
$refs
.
editModal
.
_openWithType
(
// if (data.recorded === '是') {
data
.
recordId
,
// this.$refs.editModal._openWithType(
'ENVTESTMAKEEDIT'
// data.recordId,
)
// 'ENVTESTMAKEEDIT'
}
else
{
// )
this
.
$Message
.
warning
(
'未填写原始记录'
)
// } else {
}
// this.$Message.warning('未填写原始记录')
// }
break
break
case
'查看指标'
:
case
'查看指标'
:
this
.
_indexManage
(
data
)
this
.
_indexManage
(
data
)
break
break
case
'原始记录查看/编辑'
:
this
.
_reportMakeLook
(
data
)
break
case
'查看采集数据'
:
case
'查看采集数据'
:
this
.
_collectManage
(
data
)
this
.
_collectManage
(
data
)
break
break
...
@@ -210,6 +215,24 @@ export default {
...
@@ -210,6 +215,24 @@ export default {
}
}
})
})
},
},
_reportView
(
data
)
{
if
(
data
.
recorded
===
'是'
)
{
if
(
data
.
objectKey
)
{
this
.
_reportMakeLook
(
data
)
}
else
{
this
.
$refs
.
editModal
.
_openWithType
(
data
.
recordId
,
'ENVTESTMAKEEDIT'
)
}
}
else
{
this
.
$Message
.
warning
(
'未填写原始记录'
)
}
},
_reportMakeLook
:
async
function
(
data
)
{
console
.
log
(
data
)
const
result
=
await
soilReport
.
getExcelOriginalRecord
(
data
.
id
)
if
(
result
)
{
this
.
_viewReport
(
result
)
}
},
_certificateSelectExcelBack
(
data
)
{
_certificateSelectExcelBack
(
data
)
{
if
(
data
)
{
if
(
data
)
{
this
.
$refs
.
pageTable
.
_showLoading
()
this
.
$refs
.
pageTable
.
_showLoading
()
...
...
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