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
1ac67907
Commit
1ac67907
authored
Oct 26, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了试样管理
parent
c7fe3931
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
151 additions
and
215 deletions
+151
-215
SampleBackupsManage.vue
...-sample-manage/backups-manage/tab/SampleBackupsManage.vue
+11
-11
SampleDisposeManage.vue
...-sample-manage/sample-dispose/tab/SampleDisposeManage.vue
+29
-65
SampleDisposeQuery.vue
...l-sample-manage/sample-dispose/tab/SampleDisposeQuery.vue
+30
-66
SampleSurplusManage.vue
...-sample-manage/surplus-manage/tab/SampleSurplusManage.vue
+29
-52
SampleSurplusQuery.vue
...l-sample-manage/surplus-manage/tab/SampleSurplusQuery.vue
+52
-21
No files found.
pages/soil-sample-manage/backups-manage/tab/SampleBackupsManage.vue
View file @
1ac67907
...
...
@@ -37,7 +37,7 @@
:min-width=
"item.width?item.width:200"
:fixed=
"item.fixed?item.fixed:undefined"
sortable
>
<template
slot-scope=
"scope"
>
<span
v-if=
"item.date"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
</span>
<span
v-if=
"item.date"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd
HH:MM:ss
'
):
''
}}
</span>
<span
v-else-if=
"item.status"
>
{{
scope
.
row
[
item
.
key
].
display
}}
</span>
<div
v-else-if=
"item.key==='quantity'"
@
click
.
stop=
"_handleIndex(scope)"
>
<div
v-if=
"editIndex!==scope.rowIndex"
>
...
...
@@ -153,19 +153,19 @@ export default {
],
pageColumns
:
[
{
title
:
'委托商'
,
key
:
'client'
,
width
:
180
},
{
title
:
'委托编号'
,
key
:
'entrustCode'
,
width
:
180
},
{
title
:
'试样编号'
,
key
:
'sampleCode'
,
width
:
180
},
{
title
:
'状态'
,
key
:
'status'
,
width
:
160
,
status
:
true
},
{
title
:
'试样深度'
,
key
:
'sampleDepth'
,
width
:
180
},
{
title
:
'样品包装类型'
,
key
:
'samplePack'
,
width
:
180
},
{
title
:
'现场编号'
,
key
:
'siteNo'
,
width
:
180
},
{
title
:
'委托编号'
,
key
:
'entrustCode'
,
width
:
100
},
{
title
:
'试样编号'
,
key
:
'sampleCode'
,
width
:
100
},
{
title
:
'状态'
,
key
:
'status'
,
width
:
100
,
status
:
true
},
{
title
:
'试样深度'
,
key
:
'sampleDepth'
,
width
:
100
},
{
title
:
'样品包装类型'
,
key
:
'samplePack'
,
width
:
120
},
{
title
:
'现场编号'
,
key
:
'siteNo'
,
width
:
100
},
{
title
:
'钻孔位置'
,
key
:
'boreholeLocation'
,
width
:
110
},
{
title
:
'钻孔名称'
,
key
:
'boreholeName'
,
width
:
160
},
{
title
:
'水深(米)'
,
key
:
'waterDepth'
,
width
:
100
},
{
title
:
'存储条件'
,
key
:
'conditions'
,
width
:
180
},
{
title
:
'备样位置'
,
key
:
'backupLocation'
,
width
:
180
},
{
title
:
'备样数量'
,
key
:
'quantity'
,
width
:
180
},
{
title
:
'备样人'
,
key
:
'backupUser'
,
width
:
140
},
{
title
:
'钻孔位置'
,
key
:
'boreholeLocation'
,
width
:
110
},
{
title
:
'钻孔名称'
,
key
:
'boreholeName'
,
width
:
160
},
{
title
:
'水深(米)'
,
key
:
'waterDepth'
,
width
:
160
}
{
title
:
'备样人'
,
key
:
'backupUser'
,
width
:
140
}
// { title: '备份开始日期', key: 'startTime', width: 170 },
// { title: '备份结束日期', key: 'endTime', width: 170 }
/* {title: '处置方式', key: 'handleMethod', width: 120,}, */
...
...
pages/soil-sample-manage/sample-dispose/tab/SampleDisposeManage.vue
View file @
1ac67907
...
...
@@ -27,81 +27,47 @@
<!--样品数量-->
<!-- 表格 -->
<Col
span=
"24"
>
<PTVXETable
id=
"samplePreManage"
ref=
"pageTable"
:tableHeight=
"tableHeight"
:getPage=
"getPage"
@
on-result-change=
"_tableResultChange"
select-data
>
<PTVXETableHeight
ref=
"pageTable"
:table-height=
"tableHeight"
:loading=
"true"
:get-page=
"getPage"
@
on-result-change=
"_tableResultChange"
>
<vxe-table-column
v-for=
"item in pageColumns"
:key=
"item.key"
:field=
"item.key"
:title=
"item.title"
:width=
"item.width"
:min-width=
"200"
:fixed=
"item.fixed?item.fixed:undefined"
sortable
>
:min-width=
"item.width?item.width:200"
:fixed=
"item.fixed?item.fixed:undefined"
sortable
>
<template
slot-scope=
"scope"
>
<div
v-if=
"item.key==='status'"
>
{{
scope
.
row
[
item
.
key
]
===
undefined
?
''
:
scope
.
row
[
item
.
key
].
display
}}
<span
v-if=
"item.date"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
</span>
<span
v-else-if=
"item.status"
>
{{
scope
.
row
[
item
.
key
].
display
}}
</span>
<div
v-else-if=
"item.key==='quantity'"
@
click
.
stop=
"_handleIndex(scope)"
>
<div
v-if=
"editIndex!==scope.rowIndex"
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
<a
v-else-if=
"item.key==='code'"
@
click
.
stop=
"_detailModal(scope.row)"
>
{{
scope
.
row
[
item
.
key
]
}}
</a>
<a
v-else-if=
"item.key==='sampleSn'"
@
click
.
stop=
"_sampleDetailModal(scope.row)"
>
{{
scope
.
row
[
item
.
key
]
}}
</a>
<div
v-else-if=
"item.key==='backupPlace'"
@
click
.
stop=
"_handleIndex(scope)"
>
<div
v-if=
"editIndex!==scope.rowIndex"
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
<div
v-else
>
<AutoCompletes
:value=
"scope.row.backupPlace"
:downData=
"locList"
@
on-result-change=
"_locChange"
name=
"backupPlace"
placeholder=
"请输入或选择存储位置"
focus
show-key=
"backupPlace"
></AutoCompletes>
<el-input
v-model=
"scope.row.quantity"
clearable
></el-input>
</div>
</div>
<div
v-else-if=
"item.key==='
storageCondition
'"
@
click
.
stop=
"_handleIndex(scope)"
>
<div
v-else-if=
"item.key==='
conditions
'"
@
click
.
stop=
"_handleIndex(scope)"
>
<div
v-if=
"editIndex!==scope.rowIndex"
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
<div
v-else
>
<el-select
v-model=
"scope.row.
storageCondition
"
clearable
style=
"width:100%"
size=
"small"
>
<el-select
v-model=
"scope.row.
conditionList
"
clearable
style=
"width:100%"
size=
"small"
>
<el-option
v-for=
"item in conditionList"
:value=
"item.name"
:key=
"item.name"
>
{{
item
.
name
}}
</el-option>
</el-select>
</div>
</div>
<div
v-else-if=
"item.key==='
handleQuantity
'"
@
click
.
stop=
"_handleIndex(scope)"
>
<div
v-else-if=
"item.key==='
backupLocation
'"
@
click
.
stop=
"_handleIndex(scope)"
>
<div
v-if=
"editIndex!==scope.rowIndex"
>
{{
scope
.
row
[
item
.
key
]
}}{{
scope
.
row
[
'sampleUnit'
]
&&
scope
.
row
[
'handleQuantity'
]?
scope
.
row
[
'sampleUnit'
]:
''
}}
{{
scope
.
row
[
item
.
key
]
}}
</div>
<div
v-else
>
<Row>
<Col
span=
"18"
>
<el-input
v-model=
"scope.row.handleQuantity"
placeholder=
"处理数量"
clearable
size=
"small"
/>
</Col>
<Col
span=
"6"
>
<div
style=
"line-height: 32px"
>
{{
scope
.
row
[
'sampleUnit'
]?
scope
.
row
[
'sampleUnit'
]:
''
}}
</div>
</Col>
</Row>
<el-input
v-model=
"scope.row.backupLocation"
clearable
></el-input>
</div>
</div>
<div
v-else-if=
"item.date"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
</div>
<div
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
</
template
>
</vxe-table-column>
<
template
slot=
"col"
>
<vxe-table-column
:width=
"80"
title=
"操作"
align=
"center"
fixed=
"right"
>
<template
slot-scope=
"scope"
>
<VXEIconList
:msg=
"editIndex===scope.rowIndex?iconMsgSave:iconMsg"
@
on-result-change=
"_iconClick"
:rowData=
"scope.row"
:rowIndex=
"scope.rowIndex"
></VXEIconList>
<span
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</span>
</
template
>
</vxe-table-column>
</template>
</PTVXETable>
</PTVXETableHeight>
</Col>
</Row>
</div>
...
...
@@ -110,14 +76,12 @@
</div>
</template>
<
script
>
import
AutoCompletes
from
'../../../../components/base/AutoCompletes'
import
Reason
from
'../../../../components/base/Reason'
// eslint-disable-next-line no-unused-vars
import
http
from
'../../../../api/http'
import
{
soilSample
}
from
'../../../../api'
export
default
{
components
:
{
AutoCompletes
,
Reason
},
data
()
{
...
...
@@ -170,19 +134,19 @@ export default {
iconMsgSave
:
[{
type
:
'ios-checkmark'
,
id
:
''
,
name
:
'保存'
}],
pageColumns
:
[
{
title
:
'委托商'
,
key
:
'client'
,
width
:
180
},
{
title
:
'委托编号'
,
key
:
'entrustCode'
,
width
:
180
},
{
title
:
'试样编号'
,
key
:
'sampleCode'
,
width
:
180
},
{
title
:
'试样深度'
,
key
:
'sampleDepth'
,
width
:
180
},
{
title
:
'样品包装类型'
,
key
:
'samplePack'
,
width
:
180
},
{
title
:
'现场编号'
,
key
:
'siteNo'
,
width
:
180
},
{
title
:
'委托编号'
,
key
:
'entrustCode'
,
width
:
100
},
{
title
:
'试样编号'
,
key
:
'sampleCode'
,
width
:
100
},
{
title
:
'状态'
,
key
:
'status'
,
width
:
100
,
status
:
true
},
{
title
:
'试样深度'
,
key
:
'sampleDepth'
,
width
:
100
},
{
title
:
'样品包装类型'
,
key
:
'samplePack'
,
width
:
120
},
{
title
:
'现场编号'
,
key
:
'siteNo'
,
width
:
100
},
{
title
:
'钻孔位置'
,
key
:
'boreholeLocation'
,
width
:
110
},
{
title
:
'钻孔名称'
,
key
:
'boreholeName'
,
width
:
160
},
{
title
:
'水深(米)'
,
key
:
'waterDepth'
,
width
:
100
},
{
title
:
'存储条件'
,
key
:
'conditions'
,
width
:
180
},
{
title
:
'备样位置'
,
key
:
'backupLocation'
,
width
:
180
},
{
title
:
'备样数量'
,
key
:
'quantity'
,
width
:
180
},
{
title
:
'备样人'
,
key
:
'backupUser'
,
width
:
140
},
{
title
:
'钻孔位置'
,
key
:
'boreholeLocation'
,
width
:
110
},
{
title
:
'钻孔名称'
,
key
:
'boreholeName'
,
width
:
160
},
{
title
:
'水深(米)'
,
key
:
'waterDepth'
,
width
:
160
},
{
title
:
'状态'
,
key
:
'status'
,
width
:
160
}
{
title
:
'备样人'
,
key
:
'backupUser'
,
width
:
140
}
/* {title: '处置方式', key: 'handleMethod', width: 120,}, */
],
conditionList
:
[],
...
...
@@ -217,9 +181,9 @@ export default {
computed
:
{
tableHeight
:
function
()
{
if
(
this
.
searchOpen
)
{
return
this
.
$tableHeight
(
''
,
38
5
)
return
this
.
$tableHeight
(
''
,
25
5
)
}
else
{
return
this
.
$tableHeight
(
''
,
30
0
)
return
this
.
$tableHeight
(
''
,
22
0
)
}
},
colorComputed
()
{
...
...
pages/soil-sample-manage/sample-dispose/tab/SampleDisposeQuery.vue
View file @
1ac67907
...
...
@@ -27,81 +27,47 @@
<!--样品数量-->
<!-- 表格 -->
<Col
span=
"24"
>
<PTVXETable
id=
"samplePreManage"
ref=
"pageTable"
:table-height=
"tableHeight"
:get-page=
"getPage"
select-data
@
on-result-change=
"_tableResultChange"
>
<PTVXETableHeight
ref=
"pageTable"
:table-height=
"tableHeight"
:loading=
"true"
:get-page=
"getPage"
@
on-result-change=
"_tableResultChange"
>
<vxe-table-column
v-for=
"item in pageColumns"
:key=
"item.key"
:field=
"item.key"
:title=
"item.title"
:width=
"item.width"
:min-width=
"200"
:fixed=
"item.fixed?item.fixed:undefined"
sortable
>
:min-width=
"item.width?item.width:200"
:fixed=
"item.fixed?item.fixed:undefined"
sortable
>
<template
slot-scope=
"scope"
>
<div
v-if=
"item.key==='status'"
>
{{
scope
.
row
[
item
.
key
]
===
undefined
?
''
:
scope
.
row
[
item
.
key
].
display
}}
<span
v-if=
"item.date"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
</span>
<span
v-else-if=
"item.status"
>
{{
scope
.
row
[
item
.
key
].
display
}}
</span>
<div
v-else-if=
"item.key==='quantity'"
@
click
.
stop=
"_handleIndex(scope)"
>
<div
v-if=
"editIndex!==scope.rowIndex"
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
<a
v-else-if=
"item.key==='code'"
@
click
.
stop=
"_detailModal(scope.row)"
>
{{
scope
.
row
[
item
.
key
]
}}
</a>
<a
v-else-if=
"item.key==='sampleSn'"
@
click
.
stop=
"_sampleDetailModal(scope.row)"
>
{{
scope
.
row
[
item
.
key
]
}}
</a>
<div
v-else-if=
"item.key==='backupPlace'"
@
click
.
stop=
"_handleIndex(scope)"
>
<div
v-if=
"editIndex!==scope.rowIndex"
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
<div
v-else
>
<AutoCompletes
:value=
"scope.row.backupPlace"
:down-data=
"locList"
name=
"backupPlace"
placeholder=
"请输入或选择存储位置"
focus
show-key=
"backupPlace"
@
on-result-change=
"_locChange"
></AutoCompletes>
<el-input
v-model=
"scope.row.quantity"
clearable
></el-input>
</div>
</div>
<div
v-else-if=
"item.key==='
storageCondition
'"
@
click
.
stop=
"_handleIndex(scope)"
>
<div
v-else-if=
"item.key==='
conditions
'"
@
click
.
stop=
"_handleIndex(scope)"
>
<div
v-if=
"editIndex!==scope.rowIndex"
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
<div
v-else
>
<el-select
v-model=
"scope.row.
storageCondition
"
clearable
style=
"width:100%"
size=
"small"
>
<el-option
v-for=
"item in conditionList"
:
key=
"item.name"
:value
=
"item.name"
>
{{
item
.
name
}}
<el-select
v-model=
"scope.row.
conditionList
"
clearable
style=
"width:100%"
size=
"small"
>
<el-option
v-for=
"item in conditionList"
:
value=
"item.name"
:key
=
"item.name"
>
{{
item
.
name
}}
</el-option>
</el-select>
</div>
</div>
<div
v-else-if=
"item.key==='
handleQuantity
'"
@
click
.
stop=
"_handleIndex(scope)"
>
<div
v-else-if=
"item.key==='
backupLocation
'"
@
click
.
stop=
"_handleIndex(scope)"
>
<div
v-if=
"editIndex!==scope.rowIndex"
>
{{
scope
.
row
[
item
.
key
]
}}{{
scope
.
row
[
'sampleUnit'
]
&&
scope
.
row
[
'handleQuantity'
]?
scope
.
row
[
'sampleUnit'
]:
''
}}
{{
scope
.
row
[
item
.
key
]
}}
</div>
<div
v-else
>
<Row>
<Col
span=
"18"
>
<el-input
v-model=
"scope.row.handleQuantity"
placeholder=
"处理数量"
clearable
size=
"small"
/>
</Col>
<Col
span=
"6"
>
<div
style=
"line-height: 32px"
>
{{
scope
.
row
[
'sampleUnit'
]?
scope
.
row
[
'sampleUnit'
]:
''
}}
</div>
</Col>
</Row>
<el-input
v-model=
"scope.row.backupLocation"
clearable
></el-input>
</div>
</div>
<div
v-else-if=
"item.date"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
</div>
<div
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
</
template
>
</vxe-table-column>
<
template
slot=
"col"
>
<vxe-table-column
:width=
"80"
title=
"操作"
align=
"center"
fixed=
"right"
>
<template
slot-scope=
"scope"
>
<VXEIconList
:msg=
"editIndex===scope.rowIndex?iconMsgSave:iconMsg"
:row-data=
"scope.row"
:row-index=
"scope.rowIndex"
@
on-result-change=
"_iconClick"
></VXEIconList>
<span
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</span>
</
template
>
</vxe-table-column>
</template>
</PTVXETable>
</PTVXETableHeight>
</Col>
</Row>
</div>
...
...
@@ -110,14 +76,12 @@
</div>
</template>
<
script
>
import
AutoCompletes
from
'../../../../components/base/AutoCompletes'
import
Reason
from
'../../../../components/base/Reason'
// eslint-disable-next-line no-unused-vars
import
http
from
'../../../../api/http'
import
{
soilSample
}
from
'../../../../api'
export
default
{
components
:
{
AutoCompletes
,
Reason
},
data
()
{
...
...
@@ -170,19 +134,19 @@ export default {
iconMsgSave
:
[{
type
:
'ios-checkmark'
,
id
:
''
,
name
:
'保存'
}],
pageColumns
:
[
{
title
:
'委托商'
,
key
:
'client'
,
width
:
180
},
{
title
:
'委托编号'
,
key
:
'entrustCode'
,
width
:
180
},
{
title
:
'试样编号'
,
key
:
'sampleCode'
,
width
:
180
},
{
title
:
'试样深度'
,
key
:
'sampleDepth'
,
width
:
180
},
{
title
:
'样品包装类型'
,
key
:
'samplePack'
,
width
:
180
},
{
title
:
'现场编号'
,
key
:
'siteNo'
,
width
:
180
},
{
title
:
'委托编号'
,
key
:
'entrustCode'
,
width
:
100
},
{
title
:
'试样编号'
,
key
:
'sampleCode'
,
width
:
100
},
{
title
:
'状态'
,
key
:
'status'
,
width
:
100
,
status
:
true
},
{
title
:
'试样深度'
,
key
:
'sampleDepth'
,
width
:
100
},
{
title
:
'样品包装类型'
,
key
:
'samplePack'
,
width
:
120
},
{
title
:
'现场编号'
,
key
:
'siteNo'
,
width
:
100
},
{
title
:
'钻孔位置'
,
key
:
'boreholeLocation'
,
width
:
110
},
{
title
:
'钻孔名称'
,
key
:
'boreholeName'
,
width
:
160
},
{
title
:
'水深(米)'
,
key
:
'waterDepth'
,
width
:
100
},
{
title
:
'存储条件'
,
key
:
'conditions'
,
width
:
180
},
{
title
:
'备样位置'
,
key
:
'backupLocation'
,
width
:
180
},
{
title
:
'备样数量'
,
key
:
'quantity'
,
width
:
180
},
{
title
:
'备样人'
,
key
:
'backupUser'
,
width
:
140
},
{
title
:
'钻孔位置'
,
key
:
'boreholeLocation'
,
width
:
110
},
{
title
:
'钻孔名称'
,
key
:
'boreholeName'
,
width
:
160
},
{
title
:
'水深(米)'
,
key
:
'waterDepth'
,
width
:
160
},
{
title
:
'状态'
,
key
:
'status'
,
width
:
160
}
{
title
:
'备样人'
,
key
:
'backupUser'
,
width
:
140
}
/* {title: '处置方式', key: 'handleMethod', width: 120,}, */
],
conditionList
:
[],
...
...
@@ -217,9 +181,9 @@ export default {
computed
:
{
tableHeight
:
function
()
{
if
(
this
.
searchOpen
)
{
return
this
.
$tableHeight
(
''
,
38
5
)
return
this
.
$tableHeight
(
''
,
25
5
)
}
else
{
return
this
.
$tableHeight
(
''
,
30
0
)
return
this
.
$tableHeight
(
''
,
22
0
)
}
},
colorComputed
()
{
...
...
pages/soil-sample-manage/surplus-manage/tab/SampleSurplusManage.vue
View file @
1ac67907
...
...
@@ -27,81 +27,57 @@
<!--样品数量-->
<!-- 表格 -->
<Col
span=
"24"
>
<PTVXETable
id=
"samplePreManage"
ref=
"pageTable"
:tableHeight=
"tableHeight"
:getPage=
"getPage"
@
on-result-change=
"_tableResultChange"
select-data
>
<PTVXETableHeight
ref=
"pageTable"
:table-height=
"tableHeight"
:loading=
"true"
:get-page=
"getPage"
@
on-result-change=
"_tableResultChange"
>
<vxe-table-column
v-for=
"item in pageColumns"
:key=
"item.key"
:field=
"item.key"
:title=
"item.title"
:width=
"item.width"
:min-width=
"200"
:fixed=
"item.fixed?item.fixed:undefined"
sortable
>
:min-width=
"item.width?item.width:200"
:fixed=
"item.fixed?item.fixed:undefined"
sortable
>
<template
slot-scope=
"scope"
>
<div
v-if=
"item.key==='status'"
>
{{
scope
.
row
[
item
.
key
]
===
undefined
?
''
:
scope
.
row
[
item
.
key
].
display
}}
<span
v-if=
"item.date"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
</span>
<span
v-else-if=
"item.status"
>
{{
scope
.
row
[
item
.
key
].
display
}}
</span>
<div
v-else-if=
"item.key==='quantity'"
@
click
.
stop=
"_handleIndex(scope)"
>
<div
v-if=
"editIndex!==scope.rowIndex"
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
<a
v-else-if=
"item.key==='code'"
@
click
.
stop=
"_detailModal(scope.row)"
>
{{
scope
.
row
[
item
.
key
]
}}
</a>
<a
v-else-if=
"item.key==='sampleSn'"
@
click
.
stop=
"_sampleDetailModal(scope.row)"
>
{{
scope
.
row
[
item
.
key
]
}}
</a>
<div
v-else-if=
"item.key==='backupPlace'"
@
click
.
stop=
"_handleIndex(scope)"
>
<div
v-if=
"editIndex!==scope.rowIndex"
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
<div
v-else
>
<AutoCompletes
:value=
"scope.row.backupPlace"
:downData=
"locList"
@
on-result-change=
"_locChange"
name=
"backupPlace"
placeholder=
"请输入或选择存储位置"
focus
show-key=
"backupPlace"
></AutoCompletes>
<el-input
v-model=
"scope.row.quantity"
clearable
></el-input>
</div>
</div>
<div
v-else-if=
"item.key==='
storageCondition
'"
@
click
.
stop=
"_handleIndex(scope)"
>
<div
v-else-if=
"item.key==='
conditions
'"
@
click
.
stop=
"_handleIndex(scope)"
>
<div
v-if=
"editIndex!==scope.rowIndex"
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
<div
v-else
>
<el-select
v-model=
"scope.row.
storageCondition
"
clearable
style=
"width:100%"
size=
"small"
>
<el-select
v-model=
"scope.row.
conditionList
"
clearable
style=
"width:100%"
size=
"small"
>
<el-option
v-for=
"item in conditionList"
:value=
"item.name"
:key=
"item.name"
>
{{
item
.
name
}}
</el-option>
</el-select>
</div>
</div>
<div
v-else-if=
"item.key==='
handleQuantity
'"
@
click
.
stop=
"_handleIndex(scope)"
>
<div
v-else-if=
"item.key==='
backupLocation
'"
@
click
.
stop=
"_handleIndex(scope)"
>
<div
v-if=
"editIndex!==scope.rowIndex"
>
{{
scope
.
row
[
item
.
key
]
}}{{
scope
.
row
[
'sampleUnit'
]
&&
scope
.
row
[
'handleQuantity'
]?
scope
.
row
[
'sampleUnit'
]:
''
}}
{{
scope
.
row
[
item
.
key
]
}}
</div>
<div
v-else
>
<Row>
<Col
span=
"18"
>
<el-input
v-model=
"scope.row.handleQuantity"
placeholder=
"处理数量"
clearable
size=
"small"
/>
</Col>
<Col
span=
"6"
>
<div
style=
"line-height: 32px"
>
{{
scope
.
row
[
'sampleUnit'
]?
scope
.
row
[
'sampleUnit'
]:
''
}}
</div>
</Col>
</Row>
<el-input
v-model=
"scope.row.backupLocation"
clearable
></el-input>
</div>
</div>
<div
v-else-if=
"item.date"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
</div>
<div
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
<span
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</span>
</
template
>
</vxe-table-column>
<
template
slot=
"col"
>
<vxe-table-column
slot=
"col"
:width=
"80"
title=
"操作"
align=
"center"
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
<VXEIconList
:msg=
"editIndex===scope.rowIndex?iconMsgSave:iconMsg"
@
on-result-change=
"_iconClick"
:rowData=
"scope.row"
:rowIndex=
"scope.rowIndex"
></VXEIconList>
<VXEIconList
:msg=
"editIndex===scope.rowIndex?iconMsgSave:iconMsg"
@
on-result-change=
"_iconClick"
:rowData=
"scope.row"
:rowIndex=
"scope.rowIndex"
></VXEIconList>
</
template
>
</vxe-table-column>
</template>
</PTVXETable>
</PTVXETableHeight>
</Col>
</Row>
</div>
...
...
@@ -112,14 +88,12 @@
</template>
<
script
>
import
SampleParpareApply
from
'../SurplusParpareApply'
import
AutoCompletes
from
'../../../../components/base/AutoCompletes'
// eslint-disable-next-line no-unused-vars
import
http
from
'../../../../api/http'
import
{
soilSample
}
from
'../../../../api'
import
Operation
from
'../../../../components/operation/Operation'
export
default
{
components
:
{
AutoCompletes
,
SampleParpareApply
,
Operation
},
...
...
@@ -174,11 +148,14 @@ export default {
],
iconMsgSave
:
[{
type
:
'ios-checkmark'
,
id
:
''
,
name
:
'保存'
}],
pageColumns
:
[
{
title
:
'试样编号'
,
key
:
'sampleCode'
},
{
title
:
'状态'
,
key
:
'status'
},
{
title
:
'包装类型'
,
key
:
'samplePack'
},
{
title
:
'制备数量'
,
key
:
'quantity'
},
{
title
:
'单位'
,
key
:
'unit'
}
{
title
:
'试样编号'
,
key
:
'sampleCode'
,
width
:
150
},
{
title
:
'状态'
,
key
:
'status'
,
status
:
true
,
width
:
100
},
{
title
:
'包装类型'
,
key
:
'samplePack'
,
width
:
100
},
{
title
:
'保存容器'
,
key
:
'keepContainer'
,
width
:
100
},
{
title
:
'制备数量'
,
key
:
'quantity'
,
width
:
100
},
{
title
:
'单位'
,
key
:
'unit'
,
width
:
70
},
{
title
:
'制备人'
,
key
:
'preparer'
,
width
:
130
},
{
title
:
'制备时间'
,
key
:
'prepareDate'
,
date
:
true
,
width
:
130
}
// { title: '备注', key: 'remark', width: 130 }
/* {title: '处置方式', key: 'handleMethod', width: 120,}, */
],
...
...
@@ -214,9 +191,9 @@ export default {
computed
:
{
tableHeight
:
function
()
{
if
(
this
.
searchOpen
)
{
return
this
.
$tableHeight
(
''
,
38
5
)
return
this
.
$tableHeight
(
''
,
25
5
)
}
else
{
return
this
.
$tableHeight
(
''
,
30
0
)
return
this
.
$tableHeight
(
''
,
22
0
)
}
},
colorComputed
()
{
...
...
pages/soil-sample-manage/surplus-manage/tab/SampleSurplusQuery.vue
View file @
1ac67907
...
...
@@ -22,29 +22,57 @@
</Col>
<!-- 表格 -->
<Col
span=
"24"
>
<PTVXETable
id=
"perSampleQuery"
ref=
"pageTabl
e"
:tableHeight=
"tableHeight"
:icon-msg=
"iconMsg"
@
on-result-change=
"_tableResultChange"
:getPage=
"getPage"
select-data
>
<PTVXETable
Height
ref=
"pageTable"
:table-height=
"tableHeight"
:loading=
"tru
e"
:get-page=
"getPage"
@
on-result-change=
"_tableResultChange"
>
<vxe-table-column
v-for=
"item in pageColumns"
:key=
"item.key"
:field=
"item.key"
:title=
"item.title"
:min-width=
"item.width?item.width:200"
:fixed=
"item.fixed?item.fixed:undefined"
v-for=
"item in pageColumns"
:key=
"item.key"
sortable
>
:fixed=
"item.fixed?item.fixed:undefined"
sortable
>
<template
slot-scope=
"scope"
>
<div
v-if=
"item.date"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
</div>
<a
v-else-if=
"item.key==='sampleSn'"
@
click
.
stop=
"_sampleDetailModal(scope.row)"
>
{{
scope
.
row
[
item
.
key
]
}}
</a>
<div
v-else-if=
"item.key==='status'"
>
{{
scope
.
row
[
item
.
key
]
===
undefined
?
''
:
scope
.
row
[
item
.
key
].
display
}}
<span
v-if=
"item.date"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
</span>
<span
v-else-if=
"item.status"
>
{{
scope
.
row
[
item
.
key
].
display
}}
</span>
<div
v-else-if=
"item.key==='quantity'"
@
click
.
stop=
"_handleIndex(scope)"
>
<div
v-if=
"editIndex!==scope.rowIndex"
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
<div
v-else
>
<el-input
v-model=
"scope.row.quantity"
clearable
></el-input>
</div>
</div>
<div
v-else-if=
"item.key==='conditions'"
@
click
.
stop=
"_handleIndex(scope)"
>
<div
v-if=
"editIndex!==scope.rowIndex"
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
<div
v-else
>
<el-select
v-model=
"scope.row.conditionList"
clearable
style=
"width:100%"
size=
"small"
>
<el-option
v-for=
"item in conditionList"
:value=
"item.name"
:key=
"item.name"
>
{{
item
.
name
}}
</el-option>
</el-select>
</div>
</div>
<div
v-else-if=
"item.key==='progress'"
>
{{
scope
.
row
[
item
.
key
]
===
undefined
?
''
:
scope
.
row
[
item
.
key
].
display
}}
<div
v-else-if=
"item.key==='backupLocation'"
@
click
.
stop=
"_handleIndex(scope)"
>
<div
v-if=
"editIndex!==scope.rowIndex"
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
<div
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
<div
v-else
>
<el-input
v-model=
"scope.row.backupLocation"
clearable
></el-input>
</div>
</div>
<span
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</span>
</
template
>
</vxe-table-column>
<vxe-table-column
slot=
"col"
:width=
"80"
title=
"操作"
align=
"center"
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
<VXEIconList
:msg=
"editIndex===scope.rowIndex?iconMsgSave:iconMsg"
@
on-result-change=
"_iconClick"
:rowData=
"scope.row"
:rowIndex=
"scope.rowIndex"
></VXEIconList>
</
template
>
</vxe-table-column>
</PTVXETable>
</PTVXETable
Height
>
</Col>
</Row>
</div>
...
...
@@ -82,11 +110,14 @@ export default {
}
],
pageColumns
:
[
{
title
:
'试样编号'
,
key
:
'sampleCode'
},
{
title
:
'状态'
,
key
:
'status'
},
{
title
:
'包装类型'
,
key
:
'samplePack'
},
{
title
:
'制备数量'
,
key
:
'quantity'
},
{
title
:
'单位'
,
key
:
'unit'
}
{
title
:
'试样编号'
,
key
:
'sampleCode'
,
width
:
150
},
{
title
:
'状态'
,
key
:
'status'
,
status
:
true
,
width
:
100
},
{
title
:
'包装类型'
,
key
:
'samplePack'
,
width
:
100
},
{
title
:
'保存容器'
,
key
:
'keepContainer'
,
width
:
100
},
{
title
:
'制备数量'
,
key
:
'quantity'
,
width
:
100
},
{
title
:
'单位'
,
key
:
'unit'
,
width
:
70
},
{
title
:
'制备人'
,
key
:
'preparer'
,
width
:
130
},
{
title
:
'制备时间'
,
key
:
'prepareDate'
,
date
:
true
,
width
:
130
}
],
searchOpen
:
false
,
getPage
:
{},
...
...
@@ -98,9 +129,9 @@ export default {
computed
:
{
tableHeight
:
function
()
{
if
(
this
.
searchOpen
)
{
return
this
.
$tableHeight
(
'
tabSearchTwo'
)
return
this
.
$tableHeight
(
'
'
,
255
)
}
else
{
return
this
.
$tableHeight
(
'
tabNoSearch'
)
return
this
.
$tableHeight
(
'
'
,
220
)
}
}
},
...
...
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