rev:1.入库管理新增导出功能2.二期出库堆叠增加接口acs申请强制离开
This commit is contained in:
@@ -188,6 +188,16 @@
|
||||
>
|
||||
强制确认
|
||||
</el-button>
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
type="success"
|
||||
icon="el-icon-check"
|
||||
size="mini"
|
||||
@click="downdtl"
|
||||
>
|
||||
导出Excel
|
||||
</el-button>
|
||||
</crudOperation>
|
||||
<!--表格渲染-->
|
||||
<el-table
|
||||
@@ -271,6 +281,8 @@ import ViewDialog from '@/views/wms/st/inbill/ViewDialog'
|
||||
import TaskDialog from '@/views/wms/st/inbill/TaskDialog'
|
||||
import { mapGetters } from 'vuex'
|
||||
import crudUserStor from '@/views/wms/basedata/st/userStor/userStor'
|
||||
import { download } from '@/api/data'
|
||||
import { downloadFile } from '@/utils'
|
||||
|
||||
export default {
|
||||
name: 'Rawassist',
|
||||
@@ -445,6 +457,19 @@ export default {
|
||||
this.openParam = res
|
||||
this.taskShow = true
|
||||
})
|
||||
},
|
||||
downdtl() {
|
||||
if (this.crud.query.createTime !== undefined) {
|
||||
this.query.begin_time = this.crud.query.createTime[0]
|
||||
this.query.end_time = this.crud.query.createTime[1]
|
||||
}
|
||||
crud.downloadLoading = true
|
||||
download('/api/in/rawAssist/download', this.crud.query).then(result => {
|
||||
downloadFile(result, '入库单据', 'xlsx')
|
||||
crud.downloadLoading = false
|
||||
}).catch(() => {
|
||||
crud.downloadLoading = false
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user