|
@@ -238,8 +238,18 @@
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <h3>工程资料</h3>
|
|
|
|
|
|
+
|
|
|
|
+ <h3 class="gdzl">工程资料</h3>
|
|
|
|
+ <el-button
|
|
|
|
+ class="batchDownload"
|
|
|
|
+ type="primary"
|
|
|
|
+ size="small"
|
|
|
|
+ @click="batchDownloadFn"
|
|
|
|
+ >批量下载</el-button
|
|
|
|
+ >
|
|
|
|
+
|
|
<el-divider></el-divider>
|
|
<el-divider></el-divider>
|
|
|
|
+
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
<div class="mymain-container">
|
|
<div class="mymain-container">
|
|
<div class="table">
|
|
<div class="table">
|
|
@@ -465,11 +475,13 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import { downloadFiles } from "@/utils/util";
|
|
import IMAGEUPLOAD from "@/components/Common/image-upload.vue";
|
|
import IMAGEUPLOAD from "@/components/Common/image-upload.vue";
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
import {
|
|
import {
|
|
getDepositManageDetail,
|
|
getDepositManageDetail,
|
|
getDepositManageExamine,
|
|
getDepositManageExamine,
|
|
|
|
+ getDepositManageDownZip,
|
|
} from "@/api/engin_deposit/refund_list";
|
|
} from "@/api/engin_deposit/refund_list";
|
|
export default {
|
|
export default {
|
|
props: {
|
|
props: {
|
|
@@ -484,6 +496,7 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ imageURL: this.$imageUrl,
|
|
title: "审批",
|
|
title: "审批",
|
|
imageURL: this.$imageUrl,
|
|
imageURL: this.$imageUrl,
|
|
listLoading: false, // 列表加载loading
|
|
listLoading: false, // 列表加载loading
|
|
@@ -501,9 +514,20 @@ export default {
|
|
this.getData({ id: this.detailId });
|
|
this.getData({ id: this.detailId });
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ //批量下载
|
|
|
|
+ async batchDownloadFn() {
|
|
|
|
+ // let res = await getDepositManageDownZip({ parentId: this.detailId });
|
|
|
|
+ // console.log(res, 888999);
|
|
|
|
+ // // window.open(this.imageURL + "/deposit-manage/downZip");
|
|
|
|
+ // // console.log(res, 9999);
|
|
|
|
+ // if (res.data) {
|
|
|
|
+ // window.open(this.imageURL + res.data);
|
|
|
|
+ // }
|
|
|
|
+ downloadFiles("/deposit-manage/downZip", { parentId: this.detailId });
|
|
|
|
+ },
|
|
//下载
|
|
//下载
|
|
downLoadFn(v) {
|
|
downLoadFn(v) {
|
|
- // window.open(this.imageURL + v + "?attname=新文件名.xlsx");
|
|
|
|
|
|
+ window.open(this.imageURL + v);
|
|
// const url = this.imageURL + v;
|
|
// const url = this.imageURL + v;
|
|
// const link = document.createElement("a");
|
|
// const link = document.createElement("a");
|
|
// link.style.display = "none";
|
|
// link.style.display = "none";
|
|
@@ -588,6 +612,13 @@ export default {
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
|
+.batchDownload {
|
|
|
|
+ float: right;
|
|
|
|
+ margin-top: 9px;
|
|
|
|
+}
|
|
|
|
+.gdzl {
|
|
|
|
+ display: inline-block;
|
|
|
|
+}
|
|
.dateStyle {
|
|
.dateStyle {
|
|
width: 100%;
|
|
width: 100%;
|
|
}
|
|
}
|