This commit is contained in:
parent
ee012f54b5
commit
514d7f226d
|
|
@ -68,6 +68,7 @@
|
||||||
</vue-easy-print>
|
</vue-easy-print>
|
||||||
<div>
|
<div>
|
||||||
<el-button type="primary" @click="print">打印</el-button>
|
<el-button type="primary" @click="print">打印</el-button>
|
||||||
|
<el-button @click="handleExport">导出</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
|
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
|
||||||
|
|
@ -169,6 +170,20 @@ export default {
|
||||||
},
|
},
|
||||||
remarksPrint() {
|
remarksPrint() {
|
||||||
this.$refs.remarksPrintRef.print();
|
this.$refs.remarksPrintRef.print();
|
||||||
|
},
|
||||||
|
handleExport() {
|
||||||
|
const params = {
|
||||||
|
id: this.rowObj.id,
|
||||||
|
agreementId: this.rowObj.agreementId,
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let fileName = `退料单_${new Date().getTime()}.xLsx`
|
||||||
|
let url = 'material/backApply/exportMaterialReturnList'
|
||||||
|
console.log('🚀 ~ 导出 ~ params:', params)
|
||||||
|
this.download(url, params, fileName)
|
||||||
|
} catch (error) {
|
||||||
|
console.log('导出数据失败', error)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// submit() {
|
// submit() {
|
||||||
|
|
|
||||||
|
|
@ -9,13 +9,14 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="bullshit">
|
<div class="bullshit">
|
||||||
<div class="bullshit__oops">
|
<div class="bullshit__oops">
|
||||||
404错误!
|
<!-- 404错误! -->
|
||||||
|
暂无权限访问
|
||||||
</div>
|
</div>
|
||||||
<div class="bullshit__headline">
|
<div class="bullshit__headline">
|
||||||
{{ message }}
|
<!-- {{ message }} -->
|
||||||
</div>
|
</div>
|
||||||
<div class="bullshit__info">
|
<div class="bullshit__info">
|
||||||
对不起,您正在寻找的页面不存在。尝试检查URL的错误,然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。
|
<!-- 对不起,您正在寻找的页面不存在。尝试检查URL的错误,然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。 -->
|
||||||
</div>
|
</div>
|
||||||
<router-link to="/" class="bullshit__return-home">
|
<router-link to="/" class="bullshit__return-home">
|
||||||
返回首页
|
返回首页
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue