|
|
@ -1,7 +1,8 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div class="head-container"> |
|
|
|
<crudOperation /> |
|
|
|
<!-- <crudOperation /> --> |
|
|
|
<el-button v-permission="permission.download" :loading="crud.downloadLoading" size="mini" icon="el-icon-download" @click="handleExport">导出</el-button> |
|
|
|
<el-select v-model="storageType" class="filter-item" style="width: 100px; height: 30px;margin:0 0 0 10px" @change="crud.toQuery"> |
|
|
|
<el-option v-for="item in storageTypeOptions" :key="item.value" :label="item.label" :value="item.value" /> |
|
|
|
</el-select> |
|
|
@ -68,11 +69,13 @@ |
|
|
|
import rrOperation from '@crud/RR.operation' |
|
|
|
import CRUD, { presenter, crud } from '@crud/crud' |
|
|
|
import pagination from '@crud/Pagination' |
|
|
|
import crudOperation from '@crud/CRUD.operation' |
|
|
|
// import crudOperation from '@crud/CRUD.operation' |
|
|
|
import { exportFile } from '@/utils/index' |
|
|
|
|
|
|
|
// exportFile内容 |
|
|
|
export default { |
|
|
|
name: 'OutInHistory', |
|
|
|
components: { rrOperation, pagination, crudOperation }, |
|
|
|
components: { rrOperation, pagination }, |
|
|
|
mixins: [presenter(), crud()], |
|
|
|
cruds() { |
|
|
|
return CRUD({ |
|
|
@ -148,6 +151,12 @@ export default { |
|
|
|
} else if (row.storageType === 3 && columnIndex === 2) { // 待出 |
|
|
|
return 'other-clear' |
|
|
|
} |
|
|
|
}, |
|
|
|
// 导出 |
|
|
|
handleExport() { |
|
|
|
this.crud.downloadLoading = true |
|
|
|
exportFile(this.baseApi + '/api/storage/exportStorageLogList') |
|
|
|
this.crud.downloadLoading = false |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|