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
f6af2692
Commit
f6af2692
authored
Dec 30, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了报告编制生成报告
parent
adb411c8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
9 deletions
+18
-9
ItemReportView.vue
pages/soil-report-manage/report-make/ItemReportView.vue
+4
-1
AddressManage.vue
pages/soil-sample-manage/keep-address/AddressManage.vue
+8
-4
ItemLeftList.vue
pages/soil-test-manage/test-input/item-tabs/ItemLeftList.vue
+6
-4
No files found.
pages/soil-report-manage/report-make/ItemReportView.vue
View file @
f6af2692
...
@@ -170,6 +170,7 @@ export default {
...
@@ -170,6 +170,7 @@ export default {
this
.
$refs
.
createModal
.
_open
()
this
.
$refs
.
createModal
.
_open
()
},
},
_certificateSelectExcelBack
(
data
)
{
_certificateSelectExcelBack
(
data
)
{
this
.
$refs
.
pageTable
.
_showLoading
()
if
(
data
)
{
if
(
data
)
{
console
.
log
(
this
.
selectIds
)
console
.
log
(
this
.
selectIds
)
console
.
log
(
data
)
console
.
log
(
data
)
...
@@ -179,7 +180,6 @@ export default {
...
@@ -179,7 +180,6 @@ export default {
}
}
},
},
_makeCodeExcel
:
async
function
(
data
)
{
_makeCodeExcel
:
async
function
(
data
)
{
this
.
$refs
.
pageTable
.
_hideLoading
()
const
result
=
await
soilSample
.
generateReport
({
const
result
=
await
soilSample
.
generateReport
({
entrustId
:
this
.
formObj
.
entrustId
,
entrustId
:
this
.
formObj
.
entrustId
,
expReportIds
:
this
.
selectIds
,
expReportIds
:
this
.
selectIds
,
...
@@ -192,8 +192,11 @@ export default {
...
@@ -192,8 +192,11 @@ export default {
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
$refs
.
pageTable
.
_hideLoading
()
return
false
return
false
}
else
{
}
else
{
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
_viewReport
(
result
)
this
.
_viewReport
(
result
)
}
}
}
else
{
this
.
$refs
.
pageTable
.
_hideLoading
()
}
}
},
},
_viewReport
(
data
)
{
_viewReport
(
data
)
{
...
...
pages/soil-sample-manage/keep-address/AddressManage.vue
View file @
f6af2692
...
@@ -50,9 +50,8 @@
...
@@ -50,9 +50,8 @@
<div
v-else-if=
"item.key==='type'"
>
<div
v-else-if=
"item.key==='type'"
>
{{
scope
.
row
[
item
.
key
]
===
0
?
'国家标准'
:
scope
.
row
[
item
.
key
]
===
1
?
'地方标准'
:
scope
.
row
[
item
.
key
]
===
2
?
'行业标准'
:
scope
.
row
[
item
.
key
]
===
3
?
'企业标准'
:
''
}}
{{
scope
.
row
[
item
.
key
]
===
0
?
'国家标准'
:
scope
.
row
[
item
.
key
]
===
1
?
'地方标准'
:
scope
.
row
[
item
.
key
]
===
2
?
'行业标准'
:
scope
.
row
[
item
.
key
]
===
3
?
'企业标准'
:
''
}}
</div>
</div>
<div
v-else-if=
"item.key==='keepLimitTime'"
:class=
"[ scope.row.keepReminder ===1 ? 'redColor' : '' ]"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
</div>
<div
v-else-if=
"item.date"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
<div
v-else-if=
"item.date"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
</div>
</div>
<div
v-else-if=
"item.key==='fileUrl'"
>
<div
v-else-if=
"item.key==='fileUrl'"
>
<span
v-if=
"scope.row['fileUrl']"
class=
"green-color"
>
是
</span>
<span
v-if=
"scope.row['fileUrl']"
class=
"green-color"
>
是
</span>
<span
v-else
class=
"red-color"
>
否
</span>
<span
v-else
class=
"red-color"
>
否
</span>
...
@@ -121,7 +120,7 @@ export default {
...
@@ -121,7 +120,7 @@ export default {
{
title
:
'现场编号'
,
key
:
'siteNo'
,
width
:
100
},
{
title
:
'现场编号'
,
key
:
'siteNo'
,
width
:
100
},
{
title
:
'接收人'
,
key
:
'receiver'
,
width
:
120
},
{
title
:
'接收人'
,
key
:
'receiver'
,
width
:
120
},
{
title
:
'接收时间'
,
key
:
'receiveTime'
,
width
:
140
,
date
:
true
},
{
title
:
'接收时间'
,
key
:
'receiveTime'
,
width
:
140
,
date
:
true
},
{
title
:
'留存有效期'
,
key
:
'keepLimitTime'
,
width
:
140
,
date
:
true
},
{
title
:
'留存有效期'
,
key
:
'keepLimitTime'
,
width
:
140
},
{
title
:
'收样存储位置'
,
key
:
'receiveLocation'
,
width
:
140
},
{
title
:
'收样存储位置'
,
key
:
'receiveLocation'
,
width
:
140
},
{
title
:
'土质描述'
,
key
:
'sampleDescribe'
,
width
:
185
},
{
title
:
'土质描述'
,
key
:
'sampleDescribe'
,
width
:
185
},
{
title
:
'样品包装类型'
,
key
:
'samplePack'
,
width
:
120
}
{
title
:
'样品包装类型'
,
key
:
'samplePack'
,
width
:
120
}
...
@@ -398,3 +397,8 @@ export default {
...
@@ -398,3 +397,8 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
scoped
>
.redColor
{
color
:
red
;
}
</
style
>
pages/soil-test-manage/test-input/item-tabs/ItemLeftList.vue
View file @
f6af2692
...
@@ -6,21 +6,21 @@
...
@@ -6,21 +6,21 @@
<Form
id=
"task-assign-item-left"
:label-width=
"70"
inline
onsubmit=
"return false"
>
<Form
id=
"task-assign-item-left"
:label-width=
"70"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
></label>
<label
class=
"label-sign"
></label>
<Form-item
class=
"search-item"
label=
"检测项目:"
>
<Form-item
class=
"search-item"
label=
"检测项目:"
>
<Input
v-model=
"formObj.name"
placeholder=
"请输入检测项目"
clearable
@
on-enter=
"_formSearch"
></Input>
<Input
v-model=
"formObj.name"
@
on-enter=
"_formSearch"
placeholder=
"请输入检测项目"
clearable
></Input>
</Form-item>
</Form-item>
<Form-item
class=
"search-btn"
>
<Form-item
class=
"search-btn"
>
<Button
type=
"primary"
@
click=
"_formSearch
"
>
搜索
</Button>
<Button
@
click=
"_formSearch"
type=
"primary
"
>
搜索
</Button>
</Form-item>
</Form-item>
</Form>
</Form>
</Col>
</Col>
<Col
span=
"24"
>
<Col
span=
"24"
>
<btn-list
class=
"contHide"
style=
"margin-bottom: 6px;"
@
on-result-change=
"_btnClick
"
></btn-list>
<btn-list
@
on-result-change=
"_btnClick"
class=
"contHide"
style=
"margin-bottom: 6px;
"
></btn-list>
</Col>
</Col>
<!-- 表格 -->
<!-- 表格 -->
<Col
span=
"24"
>
<Col
span=
"24"
>
<PTVXETable
ref=
"pageTable"
:is-radio=
"true"
:page-columns=
"pageColumns"
:table-name=
"tableName"
<PTVXETable
ref=
"pageTable"
:is-radio=
"true"
:page-columns=
"pageColumns"
:table-name=
"tableName"
:table-height=
"tableHeight"
:table-height=
"tableHeight"
:get-page=
"getPage"
:icon-msg=
"iconMsg"
:hide-checkbox=
"true"
select-data
@
on-result-change=
"_tableResultChange"
>
:get-page=
"getPage"
:icon-msg=
"iconMsg"
:hide-checkbox=
"true"
@
on-result-change=
"_tableResultChange"
select-data
>
<vxe-table-column
<vxe-table-column
v-for=
"item in userColumns.length > 0 ?userColumns:pageColumns"
v-for=
"item in userColumns.length > 0 ?userColumns:pageColumns"
:key=
"item.key"
:key=
"item.key"
...
@@ -209,6 +209,8 @@ export default {
...
@@ -209,6 +209,8 @@ export default {
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
_viewReport
(
result
)
this
.
_viewReport
(
result
)
}
}
}
else
{
this
.
$refs
.
pageTable
.
_hideLoading
()
}
}
},
},
_viewReport
(
data
)
{
_viewReport
(
data
)
{
...
...
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