退料导出
This commit is contained in:
parent
abf201eb56
commit
5739eaed29
|
|
@ -125,6 +125,14 @@
|
|||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery">查询</el-button>
|
||||
<el-button icon="el-icon-refresh" @click="handleReset">重置</el-button>
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
|
|
@ -235,6 +243,7 @@ import {getDeviceType} from "@/api/ma/device";
|
|||
import Treeselect from '@riophae/vue-treeselect'
|
||||
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||
import StraightforwardBills from '@/views/materialsStation/straight/straightTransferReview/components/StraightforwardBills.vue'
|
||||
import {formatTime} from "@/utils/bonus";
|
||||
|
||||
export default {
|
||||
name: 'TotalReturnRecord',
|
||||
|
|
@ -286,7 +295,7 @@ export default {
|
|||
{ label: '规格型号', prop: 'modelCode' },
|
||||
{ label: '计量单位', prop: 'unitNames' },
|
||||
{ label: '预退数量', prop: 'backNum' },
|
||||
{ label: '出库数量', prop: 'backNum' },
|
||||
{ label: '退料数量', prop: 'backNum' },
|
||||
{ label: '备注', prop: 'remark' }
|
||||
],
|
||||
dialogList: [],
|
||||
|
|
@ -453,15 +462,22 @@ export default {
|
|||
},
|
||||
// 导出数据
|
||||
handleExport() {
|
||||
// 提示
|
||||
this.$message({
|
||||
type: 'warning',
|
||||
message: '导出功能开发中,敬请期待!'
|
||||
})
|
||||
// // 提示
|
||||
// this.$message({
|
||||
// type: 'warning',
|
||||
// message: '导出功能开发中,敬请期待!'
|
||||
// })
|
||||
try {
|
||||
let fileName = `数据_${new Date().getTime()}.xLsx`
|
||||
let fileName = `材料站点退料记录_${formatTime(new Date())}.xlsx`
|
||||
let url = ''
|
||||
const params = { ...this.queryParams }
|
||||
this.download(
|
||||
'material/material_back_apply_info/exportBackInfoExcl',
|
||||
{
|
||||
...params,
|
||||
},
|
||||
fileName
|
||||
)
|
||||
console.log('🚀 ~ 导出 ~ params:', params)
|
||||
// this.derive(url, params, fileName)
|
||||
// this.download(url, params, fileName)
|
||||
|
|
|
|||
Loading…
Reference in New Issue