|
@@ -26,10 +26,16 @@
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button :size="size" @click="handleImport">批量导入</el-button>
|
|
|
- </el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button :size="size" @click="handleBatchSubmit">批量提交</el-button>
|
|
|
+
|
|
|
+ <el-button-group >
|
|
|
+ <el-button :size="size" @click="handleImport">批量导入</el-button>
|
|
|
+ <el-button
|
|
|
+ :size="size"
|
|
|
+ @click="handleDownload"
|
|
|
+ v-hasPermi="['system:apply:export']"
|
|
|
+ >批量导出</el-button>
|
|
|
+ <el-button :size="size" @click="handleBatchSubmit">批量提交</el-button>
|
|
|
+ </el-button-group>
|
|
|
</el-col>
|
|
|
<!-- 导入弹窗 -->
|
|
|
<el-dialog
|
|
@@ -143,10 +149,10 @@
|
|
|
name: 'requisition',
|
|
|
dicts:[...initDicts([...SearchColumns,...TableColumns])],
|
|
|
components: {
|
|
|
- addReq,
|
|
|
- ElSuperTable: () => import("@/components/super-table/index.vue"),
|
|
|
- ElSuperSearch: () => import("@/components/super-search/index.vue"),
|
|
|
- },
|
|
|
+ addReq,
|
|
|
+ ElSuperTable: () => import("@/components/super-table/index.vue"),
|
|
|
+ ElSuperSearch: () => import("@/components/super-search/index.vue"),
|
|
|
+},
|
|
|
data() {
|
|
|
const params = this.$init.params(SearchColumns);
|
|
|
return {
|
|
@@ -301,6 +307,13 @@
|
|
|
handleImport() {
|
|
|
this.importData.show = true
|
|
|
},
|
|
|
+ // 导出
|
|
|
+ handleDownload(){
|
|
|
+ let params = {
|
|
|
+ ...this.params
|
|
|
+ };
|
|
|
+ this.download('/system/apply/material/export', {...params}, `物料申请单${new Date().getTime()}.xlsx`);
|
|
|
+ },
|
|
|
// 删除文件
|
|
|
handleFileRemove(file, fileList) {
|
|
|
console.log('删除文件', file, 'file', fileList, 'fileList');
|