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
bdbf0b77
Commit
bdbf0b77
authored
Mar 05, 2021
by
wangweidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
土工试验Lims
parent
d3b1624e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
26 deletions
+43
-26
soil-test.js
api/soil/soil-test.js
+2
-1
ItemReportView.vue
pages/soil-report-manage/report-make/ItemReportView.vue
+41
-15
ReportMakeIndex.vue
pages/soil-report-manage/report-make/ReportMakeIndex.vue
+0
-9
ReportMakeByEntrust.vue
...eport-manage/sample-report-manage/ReportMakeByEntrust.vue
+0
-1
No files found.
api/soil/soil-test.js
View file @
bdbf0b77
...
@@ -217,7 +217,8 @@ export default {
...
@@ -217,7 +217,8 @@ export default {
http
http
.
post
(
'soil/v1/experiment/senior_test_report?id='
+
data
)
.
post
(
'soil/v1/experiment/senior_test_report?id='
+
data
)
.
then
(
res
=>
res
),
.
then
(
res
=>
res
),
orderExpReport
:
data
=>
http
.
put
(
'soil/v1/exp_report/'
+
data
.
id
,
data
).
then
(
res
=>
res
),
pageExperimentReport
:
data
=>
pageExperimentReport
:
data
=>
http
.
post
(
'soil/v1/exp_report/page'
,
data
).
then
(
res
=>
res
),
http
.
post
(
'soil/v1/exp_report/page'
,
data
).
then
(
res
=>
res
),
deleteReport
:
data
=>
deleteReport
:
data
=>
...
...
pages/soil-report-manage/report-make/ItemReportView.vue
View file @
bdbf0b77
...
@@ -7,36 +7,44 @@
...
@@ -7,36 +7,44 @@
<Row>
<Row>
<!--查询-->
<!--查询-->
<Col
span=
"24"
>
<Col
span=
"24"
>
<Form
:label-width=
"80"
v-show=
"searchOpen
"
inline
onsubmit=
"return false"
>
<Form
v-show=
"searchOpen"
:label-width=
"80
"
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.expName"
@
on-enter=
"_formSearch"
placeholder=
"请输入项目名称"
clearable
></Input>
<Input
v-model=
"formObj.expName"
placeholder=
"请输入项目名称"
clearable
@
on-enter=
"_formSearch"
></Input>
</Form-item>
</Form-item>
<Form-item
class=
"search-btn"
>
<Form-item
class=
"search-btn"
>
<Button
@
click=
"_formSearch"
type=
"primary
"
>
搜索
</Button>
<Button
type=
"primary"
@
click=
"_formSearch
"
>
搜索
</Button>
</Form-item>
</Form-item>
</Form>
</Form>
</Col>
</Col>
<!--操作-->
<!--操作-->
<Col
span=
"24"
>
<Col
span=
"24"
>
<btn-list
:open=
"searchOpen"
:msg=
"btn"
:show
SearchBtn=
"true"
@
on-result-change=
"_btnClick
"
<btn-list
:open=
"searchOpen"
:msg=
"btn"
:show
-search-btn=
"true"
class=
"contHide
"
class=
"contHide
"
></btn-list>
@
on-result-change=
"_btnClick
"
></btn-list>
</Col>
</Col>
<!-- 表格 -->
<!-- 表格 -->
<Col
span=
"24"
>
<Col
span=
"24"
>
<PTVXETable
ref=
"pageTable"
:table
H
eight=
"tableHeight"
<PTVXETable
ref=
"pageTable"
:table
-h
eight=
"tableHeight"
@
on-result-change=
"_tableResultChange"
:icon-msg=
"iconMsg"
:getPage=
"getPa
ge"
>
:icon-msg=
"iconMsg"
:get-page=
"getPage"
@
on-result-change=
"_tableResultChan
ge"
>
<vxe-table-column
<vxe-table-column
v-for=
"item in pageColumns"
:key=
"item.key"
:field=
"item.key"
:field=
"item.key"
:title=
"item.title"
:title=
"item.title"
:min-width=
"item.width?item.width:200"
:min-width=
"item.width?item.width:200"
:fixed=
"item.fixed?item.fixed:undefined"
:fixed=
"item.fixed?item.fixed:undefined"
sortable
>
v-for=
"item in pageColumns"
:key=
"item.key"
sortable
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<div
v-if=
"item.dateTime"
>
<div
v-if=
"item.dateTime"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd HH:MM'
):
''
}}
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd HH:MM'
):
''
}}
</div>
</div>
<div
v-else-if=
"item.version"
>
<el-input
v-model=
"scope.row.version"
placeholder=
"请输入检测结果"
size=
"medium"
@
blur=
"_handleVersionEdit(scope.row.id,scope.row.version)"
/>
</div>
<div
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
<div
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
</
template
>
</
template
>
</vxe-table-column>
</vxe-table-column>
...
@@ -99,11 +107,12 @@ export default {
...
@@ -99,11 +107,12 @@ export default {
{
type
:
'md-trash'
,
id
:
''
,
name
:
'删除'
}
{
type
:
'md-trash'
,
id
:
''
,
name
:
'删除'
}
],
],
pageColumns
:
[
pageColumns
:
[
{
title
:
'项目名称'
,
key
:
'expName'
},
{
title
:
'项目名称'
,
key
:
'expName'
,
width
:
100
},
{
title
:
'试验科室'
,
key
:
'groupName'
},
{
title
:
'试验科室'
,
key
:
'groupName'
,
width
:
100
},
{
title
:
'备注'
,
key
:
'remark'
},
{
title
:
'报告顺序'
,
key
:
'version'
,
width
:
100
,
version
:
true
},
{
title
:
'创建人'
,
key
:
'uname'
},
{
title
:
'备注'
,
key
:
'remark'
,
width
:
100
},
{
title
:
'创建时间'
,
key
:
'ctime'
,
dateTime
:
true
}
{
title
:
'创建人'
,
key
:
'uname'
,
width
:
100
},
{
title
:
'创建时间'
,
key
:
'ctime'
,
dateTime
:
true
,
width
:
100
}
],
],
formObj
:
{
formObj
:
{
entrustId
:
''
,
entrustId
:
''
,
...
@@ -144,6 +153,23 @@ export default {
...
@@ -144,6 +153,23 @@ export default {
}
}
})
})
},
},
// 单个填写检测值
_handleVersionEdit
:
async
function
(
id
,
version
)
{
if
(
version
!==
''
&&
undefined
!==
version
)
{
const
data
=
{}
data
.
id
=
id
data
.
version
=
version
const
result
=
await
soilTest
.
orderExpReport
(
data
)
if
(
result
)
{
this
.
$Message
.
success
(
'保存成功'
)
await
this
.
_page
()
}
else
{
this
.
$Message
.
error
(
'保存失败'
)
}
}
},
_reportMake
(
data
)
{
_reportMake
(
data
)
{
if
(
this
.
selectIds
.
length
===
0
)
{
if
(
this
.
selectIds
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选择一条数据'
)
this
.
$Message
.
warning
(
'请至少选择一条数据'
)
...
...
pages/soil-report-manage/report-make/ReportMakeIndex.vue
View file @
bdbf0b77
...
@@ -2,20 +2,11 @@
...
@@ -2,20 +2,11 @@
<div>
<div>
<div
class=
"layout-content-padding"
>
<div
class=
"layout-content-padding"
>
<div
class=
"layout-content-main"
>
<div
class=
"layout-content-main"
>
<!--
<el-tabs
v-model=
"activeName"
@
tab-click=
"_changeTabs"
>
-->
<!--
<el-tab-pane
label=
"按委托编制"
name=
"check"
>
-->
<!--
<ReportMakeByEntrust
ref=
"checkTabs"
></ReportMakeByEntrust>
-->
<!--
</el-tab-pane>
-->
<!--
<el-tab-pane
label=
"历史报告"
name=
"checkHis"
>
-->
<!--
<ReportMakeHis
ref=
"checkHisTabs"
></ReportMakeHis>
-->
<!--
</el-tab-pane>
-->
<!--
</el-tabs>
-->
<el-tabs
v-model=
"activeName"
@
tab-click=
"_changeTabs"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"_changeTabs"
>
<el-tab-pane
label=
"报告编制"
name=
"check"
></el-tab-pane>
<el-tab-pane
label=
"报告编制"
name=
"check"
></el-tab-pane>
<el-tab-pane
label=
"历史任务"
name=
"checkHis"
></el-tab-pane>
<el-tab-pane
label=
"历史任务"
name=
"checkHis"
></el-tab-pane>
</el-tabs>
</el-tabs>
<keep-alive>
<keep-alive>
<!-- eslint-disable-next-line vue/require-component-is -->
<component
ref=
"refModal"
:is=
"currentComponent"
></component>
<component
ref=
"refModal"
:is=
"currentComponent"
></component>
</keep-alive>
</keep-alive>
</div>
</div>
...
...
pages/soil-report-manage/report-manage/sample-report-manage/ReportMakeByEntrust.vue
View file @
bdbf0b77
...
@@ -104,7 +104,6 @@ export default {
...
@@ -104,7 +104,6 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
typeList
:
[{
name
:
'企业'
,
value
:
0
},
{
name
:
'政府'
,
value
:
1
}],
currentComponent
:
''
,
currentComponent
:
''
,
getPage
:
{},
getPage
:
{},
formObj
:
{},
formObj
:
{},
...
...
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