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
d6edace4
Commit
d6edace4
authored
Nov 09, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了导出制备记录
parent
3b6d05d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
6 deletions
+37
-6
SoilSampleManage.vue
pages/soil-sample-manage/SoilSampleManage.vue
+14
-6
SamplePreparation.vue
...il-sample-manage/sample-preparation/SamplePreparation.vue
+23
-0
No files found.
pages/soil-sample-manage/SoilSampleManage.vue
View file @
d6edace4
...
@@ -28,14 +28,20 @@
...
@@ -28,14 +28,20 @@
<!-- 表格 -->
<!-- 表格 -->
<Col
span=
"24"
>
<Col
span=
"24"
>
<PTVXETableHeight
ref=
"pageTable"
:table-height=
"tableHeight"
:form-id=
"formId"
:loading=
"true"
<PTVXETableHeight
ref=
"pageTable"
:table-height=
"tableHeight"
:form-id=
"formId"
:loading=
"true"
:get-page=
"getPage"
:icon-msg=
"iconMsg"
@
on-result-change=
"_tableResultChange"
select-data
>
:get-page=
"getPage"
:icon-msg=
"iconMsg"
@
on-result-change=
"_tableResultChange"
is-edit
select-data
>
<vxe-table-column
<vxe-table-column
v-for=
"item in pageColumns"
v-for=
"item in pageColumns"
:key=
"item.key"
:key=
"item.key"
:field=
"item.key"
:field=
"item.key"
:title=
"item.title"
:title=
"item.title"
:width=
"item.width?item.width:200"
:width=
"item.width?item.width:200"
:fixed=
"item.fixed?item.fixed:undefined"
sortable
>
:fixed=
"item.fixed?item.fixed:undefined"
:edit-render=
"item.editCell?
{autofocus: 'input'}:null" sortable>
<template
v-slot:edit=
"scope"
>
<div
v-if=
"item.key==='describeDetail'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.describeDetail"
@
change=
"_inputChange(scope.row)"
></el-input>
</div>
</
template
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"item.detail"
>
<div
v-if=
"item.detail"
>
<a
@
click
.
stop=
"_detailModal(scope.row)"
>
{{
scope
.
row
[
item
.
key
]
}}
</a>
<a
@
click
.
stop=
"_detailModal(scope.row)"
>
{{
scope
.
row
[
item
.
key
]
}}
</a>
...
@@ -46,9 +52,6 @@
...
@@ -46,9 +52,6 @@
<div
v-else-if=
"item.date"
>
<div
v-else-if=
"item.date"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
</div>
</div>
<div
v-else-if=
"item.key==='describeDetail'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.describeDetail"
@
change=
"_inputChange(scope.row)"
></el-input>
</div>
<div
v-else
>
<div
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
{{
scope
.
row
[
item
.
key
]
}}
</div>
</div>
...
@@ -125,7 +128,12 @@ export default {
...
@@ -125,7 +128,12 @@ export default {
{
title
:
'现场编号'
,
key
:
'siteNo'
,
width
:
100
},
{
title
:
'现场编号'
,
key
:
'siteNo'
,
width
:
100
},
{
title
:
'试验项目'
,
key
:
'experimentNames'
,
width
:
100
},
{
title
:
'试验项目'
,
key
:
'experimentNames'
,
width
:
100
},
{
title
:
'土质描述'
,
key
:
'sampleDescribe'
,
width
:
160
},
{
title
:
'土质描述'
,
key
:
'sampleDescribe'
,
width
:
160
},
{
title
:
'土质描述详情'
,
key
:
'describeDetail'
,
width
:
160
},
{
title
:
'土质描述详情'
,
key
:
'describeDetail'
,
width
:
200
,
editCell
:
true
},
{
title
:
'样品包装类型'
,
key
:
'samplePack'
,
width
:
120
}
{
title
:
'样品包装类型'
,
key
:
'samplePack'
,
width
:
120
}
],
],
sampleId
:
''
,
sampleId
:
''
,
...
...
pages/soil-sample-manage/sample-preparation/SamplePreparation.vue
View file @
d6edace4
...
@@ -58,6 +58,7 @@ import { soilEntrust } from '../../../api'
...
@@ -58,6 +58,7 @@ import { soilEntrust } from '../../../api'
import
http
from
'../../../api/http'
import
http
from
'../../../api/http'
import
Operation
from
'../../../components/operation/Operation'
import
Operation
from
'../../../components/operation/Operation'
import
SoilSampleManage
from
'../SoilSampleManage'
import
SoilSampleManage
from
'../SoilSampleManage'
import
global
from
'../../../api/config'
import
SamplePreparationEdit
from
'./SamplePreparationEdit'
import
SamplePreparationEdit
from
'./SamplePreparationEdit'
import
SoilSampleItemManageEdit
from
'./SoilSampleItemManageEdit'
import
SoilSampleItemManageEdit
from
'./SoilSampleItemManageEdit'
export
default
{
export
default
{
...
@@ -109,6 +110,11 @@ export default {
...
@@ -109,6 +110,11 @@ export default {
id
:
''
,
id
:
''
,
name
:
'试验项目列表'
name
:
'试验项目列表'
},
},
{
type
:
'ios-download'
,
id
:
''
,
name
:
'导出开土制备记录'
},
// {
// {
// type: 'ios-beaker',
// type: 'ios-beaker',
// id: '',
// id: '',
...
@@ -197,6 +203,9 @@ export default {
...
@@ -197,6 +203,9 @@ export default {
case
'试验项目列表'
:
case
'试验项目列表'
:
this
.
_itemManage
(
data
.
id
)
this
.
_itemManage
(
data
.
id
)
break
break
case
'导出开土制备记录'
:
this
.
_exportPrepare
(
data
.
id
)
break
case
'试样列表'
:
case
'试样列表'
:
this
.
_sampleManage
(
data
.
id
)
this
.
_sampleManage
(
data
.
id
)
break
break
...
@@ -224,6 +233,20 @@ export default {
...
@@ -224,6 +233,20 @@ export default {
this
.
_page
()
this
.
_page
()
}
}
},
},
_exportPrepare
(
id
)
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
'确定导出这条记录'
,
onOk
:
()
=>
{
window
.
open
(
global
.
baseURL
+
'/soil/v1/entrust/export_soil_prepare_record?ids='
+
id
,
'_blank'
)
}
})
},
_sampleManage
(
data
)
{
_sampleManage
(
data
)
{
// 管理样品
// 管理样品
this
.
currentComponent
=
'SoilSampleManage'
this
.
currentComponent
=
'SoilSampleManage'
...
...
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