优化
This commit is contained in:
@@ -92,11 +92,21 @@
|
||||
>
|
||||
立库出库
|
||||
</el-button>
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
type="primary"
|
||||
icon="el-icon-position"
|
||||
size="mini"
|
||||
@click="downdtl()"
|
||||
>
|
||||
导出excel
|
||||
</el-button>
|
||||
</crudOperation>
|
||||
<!--表格渲染-->
|
||||
<el-table ref="table" :max-height="590" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column show-overflow-tooltip prop="pallet_code" label="托盘" width="120px">
|
||||
<el-table-column prop="pallet_code" label="托盘" width="120px">
|
||||
<template slot-scope="scope">
|
||||
<el-link type="warning" @click="queryDtl(scope.row)">{{ scope.row.pallet_code }}</el-link>
|
||||
</template>
|
||||
@@ -125,6 +135,8 @@ import udOperation from '@crud/UD.operation'
|
||||
import pagination from '@crud/Pagination'
|
||||
import DateRangePicker from '@/components/DateRangePicker'
|
||||
import QueryDtlDialog from '@/views/wms/lk/libraryquery/QueryDtlDialog'
|
||||
import { download } from '@/api/data'
|
||||
import { downloadFile } from '@/utils'
|
||||
|
||||
const defaultForm = { agvaddr: null }
|
||||
export default {
|
||||
@@ -181,6 +193,15 @@ export default {
|
||||
this.crud.toQuery()
|
||||
})
|
||||
},
|
||||
downdtl() {
|
||||
crud.downloadLoading = true
|
||||
download('/api/libraryquery/download', this.crud.query).then(result => {
|
||||
downloadFile(result, '立库库存', 'xlsx')
|
||||
crud.downloadLoading = false
|
||||
}).catch(() => {
|
||||
crud.downloadLoading = false
|
||||
})
|
||||
},
|
||||
queryDtl(row) {
|
||||
this.openParam = row
|
||||
this.queryDtlShow = true
|
||||
|
||||
Reference in New Issue
Block a user