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
54f6ce72
Commit
54f6ce72
authored
Oct 21, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了报告编制
parent
8ca5aab0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
66 deletions
+45
-66
OriginalRecordView.vue
pages/soil-report-manage/report-make/OriginalRecordView.vue
+2
-2
SampleByMakeModal.vue
pages/soil-report-manage/report-make/SampleByMakeModal.vue
+7
-5
ReportMakeByEntrust.vue
...il-report-manage/report-make/tabs/ReportMakeByEntrust.vue
+1
-6
ReportMakeBySample.vue
...oil-report-manage/report-make/tabs/ReportMakeBySample.vue
+35
-53
No files found.
pages/soil-report-manage/report-make/OriginalRecordView.vue
View file @
54f6ce72
...
...
@@ -84,7 +84,7 @@ export default {
currentComponent
:
''
,
getPage
:
{},
showModal
:
false
,
btn
:
[{
type
:
'primary'
,
id
:
'
ZBC
'
,
name
:
'生成报告'
}],
btn
:
[{
type
:
'primary'
,
id
:
''
,
name
:
'生成报告'
}],
selectIds
:
[],
iconMsg
:
[
{
...
...
@@ -233,7 +233,7 @@ export default {
if
(
this
.
selectIds
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选择一条数据'
)
}
else
{
this
.
$refs
.
templateModal
.
_open
(
this
.
selectIds
)
console
.
log
(
this
.
selectIds
)
}
},
// 设置填写人乙
...
...
pages/soil-report-manage/report-make/SampleByMakeModal.vue
View file @
54f6ce72
...
...
@@ -31,6 +31,7 @@ export default {
modalTitle
:
''
,
activeName
:
''
,
contractId
:
''
,
entrustId
:
''
,
type
:
''
,
personal
:
''
}
...
...
@@ -41,13 +42,13 @@ export default {
}
},
methods
:
{
_open
(
contractId
,
title
,
type
,
personal
)
{
_open
(
entrustId
)
{
this
.
modalTitle
=
'管理样品和报告'
this
.
showModal
=
true
this
.
activeName
=
'sample'
this
.
contractId
=
contrac
tId
this
.
type
=
type
this
.
personal
=
personal
this
.
entrustId
=
entrus
tId
this
.
$refs
.
sampleTabs
.
_open
(
this
.
entrustId
)
console
.
log
(
this
.
entrustId
)
// 先初始化样品台账的数据
// this.$nextTick(() =>
// this.$refs.sampleTabs._getPage(
...
...
@@ -89,7 +90,8 @@ export default {
this
.
$refs
.
reportTabs
.
_open
(
this
.
contractId
,
this
.
personal
)
},
_sample
()
{
this
.
$refs
.
sampleTabs
.
_open
(
this
.
contractId
,
this
.
type
,
this
.
personal
)
console
.
log
(
this
.
entrustId
)
this
.
$refs
.
sampleTabs
.
_open
(
this
.
entrustId
)
},
_changeTabs
(
tab
,
event
)
{
switch
(
tab
.
name
)
{
...
...
pages/soil-report-manage/report-make/tabs/ReportMakeByEntrust.vue
View file @
54f6ce72
...
...
@@ -212,12 +212,7 @@ export default {
this
.
$nextTick
(
function
()
{
switch
(
res
)
{
case
'管理样品和报告'
:
this
.
$refs
.
sampleByMakeModal
.
_open
(
data
.
id
,
data
.
cname
+
'【'
+
data
.
code
+
'】'
,
data
.
type
,
this
.
personal
)
this
.
$refs
.
sampleByMakeModal
.
_open
(
data
.
id
)
break
case
'查看原始记录'
:
this
.
$refs
.
originalRecordView
.
_open
(
data
.
id
)
...
...
pages/soil-report-manage/report-make/tabs/ReportMakeBySample.vue
View file @
54f6ce72
...
...
@@ -28,7 +28,7 @@
<!-- 表格 -->
<Col
span=
"24"
>
<PTVXETable
ref=
"pageTable"
:tableHeight=
"tableHeight"
@
on-result-change=
"_tableResultChange"
:getPage=
"getPage"
:rows=
"100"
select-data
is-report
>
:getPage=
"getPage"
:rows=
"100"
select-data
>
<vxe-table-column
:field=
"item.key"
:title=
"item.title"
...
...
@@ -38,10 +38,6 @@
:key=
"item.key"
sortable
>
<template
slot-scope=
"scope"
>
<div
v-if=
"item.display"
>
{{
scope
.
row
[
item
.
key
]?
scope
.
row
[
item
.
key
].
display
:
''
}}
</div>
<div
v-else-if=
"item.key==='reportDueDate'"
:style=
"
{color:$reportDueDateColor(scope.row.reportDueDate)}">
{{
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>
<div
v-else-if=
"item.judge"
>
{{
Number
(
scope
.
row
[
item
.
key
])
===
1
?
'是'
:
'否'
}}
...
...
@@ -73,14 +69,17 @@
</Row>
</div>
</div>
<SoilSampleItemManage
ref=
"sampleItemManage"
@
on-result-change=
"_page"
></SoilSampleItemManage>
</div>
</template>
<
script
>
import
{
soilEntrust
}
from
'../../../../api'
import
SoilSampleItemManage
from
'../../../meter-entrust/SoilSampleItemManage'
/**
* 按委托编制----管理样品
*/
export
default
{
components
:
{},
components
:
{
SoilSampleItemManage
},
data
()
{
return
{
currentComponent
:
''
,
...
...
@@ -120,34 +119,17 @@ export default {
getPage
:
{},
detectionDate
:
''
,
pageColumns
:
[
{
title
:
'样品编号'
,
key
:
'num'
,
width
:
180
,
fixed
:
'left'
},
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
160
},
{
title
:
'报告已生成'
,
key
:
'reported'
,
width
:
120
,
reported
:
true
},
{
title
:
'是否合格'
,
key
:
'isEligible'
,
width
:
120
},
{
title
:
'状态'
,
key
:
'progress'
,
width
:
100
},
{
title
:
'信息维护状态'
,
key
:
'infoMaintain'
,
width
:
130
},
{
title
:
'应出报告日期'
,
key
:
'reportDueDate'
,
width
:
120
,
date
:
true
},
{
title
:
'是否判定'
,
key
:
'judge'
,
width
:
100
,
judge
:
true
},
{
title
:
'报告类别'
,
key
:
'reportClass'
,
width
:
120
},
{
title
:
'所需资质'
,
key
:
'aptitudeType'
,
width
:
120
},
{
title
:
'大类'
,
key
:
'firstClass'
,
width
:
130
},
{
title
:
'细类'
,
key
:
'detectType'
,
width
:
200
},
{
title
:
'任务来源'
,
key
:
'taskSource'
,
width
:
150
},
{
title
:
'已推国抽'
,
key
:
'dataPushed'
,
width
:
150
,
judge
:
true
},
{
title
:
'抽样单状态'
,
key
:
'samplingStatus'
,
width
:
120
,
display
:
true
},
{
title
:
'报告语言'
,
key
:
'reportType'
,
width
:
100
},
{
title
:
'报告要求'
,
key
:
'reportRequire'
,
width
:
150
},
{
title
:
'是否带照片'
,
key
:
'havePhoto'
,
width
:
120
,
judge
:
true
},
{
title
:
'备注'
,
key
:
'remark'
}
{
title
:
'试样编号'
,
key
:
'sampleCode'
,
width
:
160
,
fixed
:
'left'
},
{
title
:
'试样深度'
,
key
:
'sampleDepth'
,
width
:
160
},
{
title
:
'土质描述'
,
key
:
'sampleDescribe'
,
width
:
160
},
{
title
:
'样品包装类型'
,
key
:
'samplePack'
,
width
:
160
},
{
title
:
'现场编号'
,
key
:
'siteNo'
,
width
:
130
},
{
title
:
'试验项目'
,
key
:
'experimentNames'
,
width
:
330
}
],
selectIds
:
[],
selectData
:
[],
formObj
:
{
entrustId
:
''
,
contractId
:
''
,
num
:
''
,
name
:
''
,
...
...
@@ -163,26 +145,12 @@ export default {
dateList
:
[],
type
:
''
,
iconMsg
:
[
{
type
:
'cloud'
,
id
:
''
,
name
:
'样品附件'
,
disabled
:
true
},
{
type
:
'compose'
,
id
:
''
,
name
:
'编辑'
},
// food-report-make-sample-edit
{
type
:
'ios-
upload
'
,
type
:
'ios-
beaker
'
,
id
:
''
,
name
:
'上传'
,
componentName
:
'UploadReport'
name
:
'管理检测项目'
},
{
type
:
'document-text'
,
id
:
''
,
name
:
'项目台账'
,
componentName
:
'FoodItemEditModal'
},
{
type
:
'ios-clock'
,
id
:
''
,
name
:
'操作记录'
,
componentName
:
'FoodSampleRecord'
}
{
type
:
'md-trash'
,
id
:
''
,
name
:
'删除'
}
],
iconMsg1
:
[
{
...
...
@@ -279,6 +247,9 @@ export default {
this
.
currentComponent
=
componentName
this
.
$nextTick
(
function
()
{
switch
(
res
)
{
case
'管理检测项目'
:
this
.
_itemManage
(
data
.
id
)
break
case
'上传'
:
this
.
currentId
=
data
.
id
this
.
$refs
.
refModal
.
_open
(
data
.
id
)
...
...
@@ -299,6 +270,10 @@ export default {
}
})
},
_itemManage
(
data
)
{
// 管理检测项目
this
.
$refs
.
sampleItemManage
.
_open
(
data
)
},
_upload
(
id
)
{
// 上传文件
this
.
$refs
.
refModal
.
_open
(
id
,
'sampleId'
)
...
...
@@ -357,14 +332,21 @@ export default {
break
}
},
_open
(
contractId
,
type
,
personal
)
{
_open
(
entrustId
)
{
// 初始化数据
this
.
_resetData
(
contractId
,
type
,
personal
)
// this._page()
// this._resetData(contractId, type, personal)
this
.
formObj
.
entrustId
=
entrustId
this
.
_page
()
},
_page
()
{
const
data
=
this
.
$serializeFormSearch
(
this
.
formObj
)
this
.
$refs
.
pageTable
.
_page
(
''
,
this
.
postUrl
,
data
)
_page
:
async
function
()
{
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
const
result
=
await
soilEntrust
.
samplePage
(
this
.
$serializeForm
(
this
.
formObj
)
)
if
(
result
)
{
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
getPage
=
result
}
},
_formSearch
()
{
this
.
$refs
.
pageTable
.
_pageChange
(
1
)
...
...
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