|
@@ -1,7 +1,7 @@
|
|
|
<script>
|
|
|
import { dicts } from "./dicts";
|
|
|
import useColumns from "./columns";
|
|
|
-import { LIST } from "@/api/business/purchase/apply";
|
|
|
+import { LIST, mbDownload } from "@/api/business/purchase/apply";
|
|
|
|
|
|
export default {
|
|
|
name: "PuchaseApply",
|
|
@@ -79,6 +79,19 @@ export default {
|
|
|
const { open } = this.$refs.SeeButton;
|
|
|
await open([prop]);
|
|
|
},
|
|
|
+ // 下载模板
|
|
|
+ downLoadMb() {
|
|
|
+ this.$modal.loading("正在下载模板,请稍后...");
|
|
|
+ mbDownload().then(res => {
|
|
|
+
|
|
|
+ }).catch(err => {
|
|
|
+ this.$modal.closeLoading();
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 导入数据
|
|
|
+ importMb() {
|
|
|
+
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
@@ -145,6 +158,10 @@ export default {
|
|
|
@success="useQuery(params, page)"
|
|
|
></subm-button>
|
|
|
</el-button-group>
|
|
|
+ <el-button-group>
|
|
|
+ <el-button size="mini" @click="downLoadMb">模 板</el-button>
|
|
|
+ <el-button size="mini" @click="importMb">导 入</el-button>
|
|
|
+ </el-button-group>
|
|
|
</el-row>
|
|
|
<el-super-table
|
|
|
v-model="tableData"
|