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
c4f0b97d
Commit
c4f0b97d
authored
Mar 04, 2021
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加了检测样品查询导出功能
parent
a8536127
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
6 deletions
+41
-6
AddressManageHis.vue
...mple-manage/storehouse-sample-manage/AddressManageHis.vue
+41
-6
No files found.
pages/soil-alone-sample-manage/storehouse-sample-manage/AddressManageHis.vue
View file @
c4f0b97d
...
...
@@ -38,8 +38,8 @@
</Col>
<!--表格 -->
<Col
span=
"24"
>
<PTVXETable
ref=
"pageTable"
:tableHeight=
"tableHeight
"
@
on-result-change=
"_tableResultChange"
:getPage=
"getPage"
>
<PTVXETable
id=
"sampleTable"
ref=
"pageTable
"
:tableHeight=
"tableHeight"
@
on-result-change=
"_tableResultChange"
:getPage=
"getPage"
select-data
>
<vxe-table-column
:field=
"item.key"
:title=
"item.title"
...
...
@@ -107,7 +107,13 @@ export default {
entrustCode
:
undefined
,
sampleCode
:
undefined
},
btn
:
[],
btn
:
[
{
type
:
'success'
,
id
:
''
,
name
:
'导出'
}
],
// 表格
pageColumns
:
[
{
title
:
'委托商'
,
key
:
'client'
,
width
:
170
},
...
...
@@ -119,7 +125,7 @@ export default {
{
title
:
'项目名称'
,
key
:
'projectName'
},
{
title
:
'库房号'
,
key
:
'warehouse'
},
{
title
:
'架位号'
,
key
:
'receiveLocation'
},
{
title
:
'进度'
,
key
:
'progress'
}
{
title
:
'进度'
,
key
:
'progress'
,
status
:
true
}
],
// 操作
iconMsg
:
[
...
...
@@ -144,7 +150,8 @@ export default {
searchOpen
:
false
,
getPage
:
{},
// 选中的内容
selectIds
:
[]
selectIds
:
[],
selectData
:
[]
}
},
computed
:
{
...
...
@@ -182,7 +189,7 @@ export default {
})
break
case
'导出'
:
//
this._export()
this
.
_export
()
break
// 收起搜索
case
'search'
:
...
...
@@ -190,6 +197,27 @@ export default {
break
}
},
_export
()
{
let
result
=
[]
if
(
this
.
selectData
.
length
===
0
)
{
this
.
$Message
.
warning
(
'至少选择一条数据'
)
}
else
{
// 只导出选中的数据
result
=
this
.
selectData
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
'确定导出这'
+
result
.
length
+
' 条数据?'
,
onOk
:
()
=>
{
this
.
$exportExcelNew
(
'sampleTable'
,
'样品信息'
,
this
.
pageColumns
,
result
)
}
})
}
},
_outstock
()
{
if
(
this
.
selectIds
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选择一条数据'
)
...
...
@@ -353,6 +381,13 @@ export default {
case
'selectIds'
:
this
.
selectIds
=
data
break
case
'selectData'
:
this
.
selectData
=
data
this
.
selectIds
=
[]
for
(
let
i
=
0
;
i
<
this
.
selectData
.
length
;
i
++
)
{
this
.
selectIds
.
push
(
this
.
selectData
[
i
].
id
)
}
break
case
'iconClick'
:
this
.
_iconClick
(
data
.
name
,
data
.
rowData
,
data
.
componentName
)
break
...
...
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