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
f3896a7c
Commit
f3896a7c
authored
Dec 30, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.patzn.com/wangweidong/pt-cloud-service-soil-web
into dev
parents
26d3da33
a801b521
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
151 deletions
+4
-151
ItemView.vue
pages/soil-report-manage/report-make/ItemView.vue
+0
-2
OriginalRecordView.vue
pages/soil-report-manage/report-make/OriginalRecordView.vue
+2
-149
SummaryInfo.vue
pages/soil-report-manage/report-make/tabs/SummaryInfo.vue
+2
-0
No files found.
pages/soil-report-manage/report-make/ItemView.vue
View file @
f3896a7c
...
...
@@ -142,8 +142,6 @@ export default {
pageColumns
:
[
{
title
:
'试验名称'
,
key
:
'name'
,
width
:
160
},
{
title
:
'试验项目英文简写'
,
key
:
'shortName'
,
width
:
140
},
{
title
:
'大类'
,
key
:
'mainType'
,
width
:
140
},
{
title
:
'小类'
,
key
:
'smallType'
},
{
title
:
'检测依据'
,
key
:
'testBasis'
,
width
:
180
},
{
title
:
'试验方法'
,
key
:
'testMethod'
,
width
:
180
},
{
title
:
'状态'
,
key
:
'status'
,
width
:
180
}
...
...
pages/soil-report-manage/report-make/OriginalRecordView.vue
View file @
f3896a7c
...
...
@@ -39,18 +39,6 @@
<div
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
</
template
>
</vxe-table-column>
<!-- <template slot="col">-->
<!-- <vxe-table-column-->
<!-- :width="190"-->
<!-- title="操作"-->
<!-- align="center"-->
<!-- fixed="right">-->
<!-- <template slot-scope="scope">-->
<!-- <VXEIconList :msg="(scope.row.hasInputItem===1) ? iconMsg : iconMsgDisable"-->
<!-- @on-result-change="_iconClick" :rowData="scope.row"></VXEIconList>-->
<!-- </template>-->
<!-- </vxe-table-column>-->
<!-- </template>-->
</PTVXETable>
</Col>
</Row>
...
...
@@ -81,7 +69,7 @@ export default {
currentComponent
:
''
,
getPage
:
{},
showModal
:
false
,
btn
:
[
{
type
:
'primary'
,
id
:
''
,
name
:
'生成报告'
}
],
btn
:
[],
selectIds
:
[],
iconMsg
:
[
{
...
...
@@ -99,54 +87,6 @@ export default {
id
:
''
,
name
:
'查看试验项目'
}
// {
// type: 'erlenmeyer-flask',
// id: '',
// name: '查看样品',
// componentName: 'SampleView'
// },
// {
// type: 'document-text',
// id: '',
// name: '查看检测项目',
// componentName: 'ItemView'
// },
// { type: 'cloud', id: '', name: '附件', componentName: 'FileManage' },
// { type: 'trash-a', id: '', name: '删除' },
// {
// type: 'ios-clock',
// id: '',
// name: '操作记录',
// componentName: 'ElnFormRecord'
// }
],
iconMsgDisable
:
[
{
type
:
'md-create'
,
id
:
''
,
name
:
'编辑'
,
disabled
:
true
},
{
type
:
''
,
id
:
''
,
name
:
'查看原始记录'
,
componentName
:
'OriginalItemView'
},
{
type
:
'ios-list'
,
id
:
''
,
name
:
'查看试验项目'
}
// {
// type: 'document-text',
// id: '',
// name: '查看检测项目',
// componentName: 'ItemView'
// },
// { type: 'cloud', id: '', name: '附件', componentName: 'FileManage' },
// { type: 'trash-a', id: '', name: '删除', disabled: true },
// {
// type: 'ios-clock',
// id: '',
// name: '操作记录',
// componentName: 'ElnFormRecord'
// }
],
pageColumns
:
[
{
title
:
'模板名称'
,
key
:
'title'
},
...
...
@@ -182,42 +122,17 @@ export default {
methods
:
{
_componentResult
(
data
)
{
switch
(
this
.
currentComponent
)
{
case
'EditDateModal'
:
this
.
_updateDate
(
data
)
break
default
:
this
.
_page
()
}
},
_updateDate
(
date
)
{
this
.
$store
.
dispatch
(
'PrintForm/updateTimeBatch'
,
{
ids
:
this
.
selectIds
.
join
(
','
),
fillInTime
:
date
})
.
then
(()
=>
{
if
(
this
.
$store
.
state
.
PrintForm
.
success
)
{
this
.
_page
()
this
.
$Message
.
success
(
'更新成功!'
)
}
})
},
_btnClick
(
msg
,
componentName
)
{
this
.
currentComponent
=
componentName
this
.
$nextTick
(
function
()
{
switch
(
msg
)
{
case
'纠正填写时间'
:
this
.
_editWriteTime
()
break
case
'设置填写人乙'
:
this
.
_setAnotherTester
()
break
case
'生成报告'
:
this
.
_reportMake
()
break
case
'删除'
:
this
.
_batchDelete
()
break
case
'search'
:
this
.
searchOpen
=
!
this
.
searchOpen
break
...
...
@@ -251,7 +166,7 @@ export default {
})
if
(
result
)
{
this
.
$Message
.
success
(
'报告成功生成'
)
this
.
_page
()
await
this
.
_page
()
this
.
$emit
(
'on-result-change'
)
}
this
.
$refs
.
pageTable
.
_hideLoading
()
...
...
@@ -263,21 +178,6 @@ export default {
duration
:
3000
})
},
// 设置填写人乙
_setAnotherTester
()
{
if
(
this
.
selectIds
.
length
===
0
)
{
this
.
$msgTip
(
'warning'
)
}
else
{
this
.
$refs
.
testerModal
.
_open
(
this
.
selectIds
)
}
},
_editWriteTime
()
{
if
(
this
.
selectIds
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选择一条数据'
)
}
else
{
this
.
$refs
.
refModal
.
_open
(
'填写时间'
)
}
},
_dateChange
(
data
)
{
this
.
formObj
.
fillInTimeBegin
=
data
[
0
]
this
.
formObj
.
fillInTimeEnd
=
data
[
1
]
...
...
@@ -287,15 +187,10 @@ export default {
this
.
$nextTick
(()
=>
{
switch
(
res
)
{
case
'编辑'
:
// this.$refs.recordEditModal._openWithType(
// data.originalRecordId,
// 'ENVTESTMAKEEDIT'
// )
this
.
_recordEdit
(
data
)
break
case
'查看原始记录'
:
this
.
_recordLook
(
data
)
// this._recordView(data.originalRecordId)
break
case
'查看试验项目'
:
this
.
_itemView
(
data
.
id
)
...
...
@@ -303,18 +198,6 @@ export default {
case
'查看检测项目'
:
this
.
$refs
.
refModal
.
_open
(
data
)
break
case
'查看样品'
:
this
.
$refs
.
refModal
.
_open
(
data
.
id
)
break
case
'附件'
:
this
.
$refs
.
refModal
.
_open
(
data
.
id
,
'originalId'
)
break
case
'删除'
:
this
.
_deleteByIds
([
data
.
id
])
break
case
'操作记录'
:
this
.
$refs
.
refModal
.
_open
(
data
.
id
)
break
}
})
},
...
...
@@ -338,10 +221,6 @@ export default {
_reportMakeLook
(
data
)
{
console
.
log
(
data
)
this
.
_viewReport
(
data
)
// const result = await soilReport.getExcelOriginalRecord(data.id)
// if (result) {
// this._viewReport(result)
// }
},
_viewReport
(
data
)
{
if
(
data
)
{
...
...
@@ -390,9 +269,6 @@ export default {
},
_tableResultChange
(
msg
,
data
)
{
switch
(
msg
)
{
case
'page'
:
this
.
getPage
=
this
.
$store
.
state
.
EnvItem
.
page
break
case
'selectIds'
:
this
.
selectIds
=
data
break
...
...
@@ -416,29 +292,6 @@ export default {
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
getPage
=
result
}
},
// 批量删除原始记录
_batchDelete
()
{
if
(
this
.
selectIds
.
length
>
0
)
{
const
content
=
'确定删除这'
+
this
.
selectIds
.
length
+
'条数据?'
this
.
_deleteByIds
(
this
.
selectIds
,
content
)
}
else
{
this
.
$msgTip
(
'warning'
)
}
},
_deleteByIds
(
ids
,
content
)
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
content
||
'确定删除该记录?'
,
onOk
:
()
=>
{
this
.
$store
.
dispatch
(
'EnvItem/deleteOriRecord'
,
ids
).
then
(()
=>
{
if
(
this
.
$store
.
state
.
EnvItem
.
success
)
{
this
.
_page
()
this
.
$Message
.
success
(
'删除成功!'
)
}
})
}
})
}
}
}
...
...
pages/soil-report-manage/report-make/tabs/SummaryInfo.vue
View file @
f3896a7c
...
...
@@ -79,6 +79,8 @@ export default {
getPage
:
{},
pageColumns
:
[
{
title
:
'创建人'
,
key
:
'uname'
,
width
:
180
,
fixed
:
'left'
},
{
title
:
'报告类型'
,
key
:
'reportType'
,
width
:
180
},
{
title
:
'备注'
,
key
:
'remark'
,
width
:
180
},
{
title
:
'创建时间'
,
key
:
'ctime'
,
width
:
180
,
dateTime
:
true
}
],
selectIds
:
[],
...
...
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