Browse Source

出入库记录 导出

master
x_ying 3 years ago
parent
commit
53103cec64
  1. 11
      src/views/archivesManage/outInStorage/inStorage/index.vue
  2. 15
      src/views/archivesManage/outInStorage/outInHistory/index.vue

11
src/views/archivesManage/outInStorage/inStorage/index.vue

@ -112,7 +112,6 @@ export default {
return CRUD({
url: 'api/storage/readyInto',
// crudMethod: caseCrudMethod,
title: '档案盒',
optShow: {}
})
},
@ -133,12 +132,18 @@ export default {
child: []
}
},
created() {
this.getData()
},
methods: {
getData() {
console.log(this.crud, 'crud')
},
//
cell({ row, columnIndex }) {
if (row.storageType === 0 && columnIndex === 2) {
if (row.storageType === 0 && columnIndex === 2) { //
return 'fail-clear'
} else if (row.storageType === 1 && columnIndex === 2) {
} else if (row.storageType === 1 && columnIndex === 2) { //
return 'no-clear'
}
},

15
src/views/archivesManage/outInStorage/outInHistory/index.vue

@ -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
}
}
}

Loading…
Cancel
Save