From 7b07067b7a09d62c35e47a809638e6e70af953fe Mon Sep 17 00:00:00 2001
From: MO <448233645@qq.com>
Date: Tue, 10 Oct 2023 09:51:03 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E8=AE=A1=E9=99=84=E4=BB=B6=E4=B8=8A?=
=?UTF-8?q?=E4=BC=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/accounting/attachment/index.vue | 123 ++++++++++++++--------
src/views/accounting/flow/index.vue | 2 +-
src/views/accounting/voucher/index.vue | 13 +++
3 files changed, 96 insertions(+), 42 deletions(-)
diff --git a/src/views/accounting/attachment/index.vue b/src/views/accounting/attachment/index.vue
index 7500fd81..7f73bccc 100644
--- a/src/views/accounting/attachment/index.vue
+++ b/src/views/accounting/attachment/index.vue
@@ -7,7 +7,7 @@
size="small"
:inline="true"
v-show="showSearch"
- label-width="98px"
+ label-width="148px"
>
-
-
-
-
-
-
搜索 -->
-
+
@@ -99,9 +83,9 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ 将文件拖到此处,或点击上传
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{
+ this.kjpzOptions = res.data.list || [];
+ });
+ },
/**
* 文件预览
* @param fileUrl
@@ -318,6 +351,7 @@ export default {
/** 新增按钮操作 */
handleAdd() {
this.reset();
+ this.fileList = [];
this.open = true;
this.title = "添加会计附件";
},
@@ -331,6 +365,13 @@ export default {
this.title = "修改会计附件";
});
},
+ // 上传成功的函数
+ handleSuccess(res) {
+ console.log(res);
+ this.form.fileUrl = res.data.url;
+ this.form.fileName = res.data.name;
+ this.form.fileSize = res.data.size;
+ },
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate((valid) => {
diff --git a/src/views/accounting/flow/index.vue b/src/views/accounting/flow/index.vue
index 60372c58..12381f61 100644
--- a/src/views/accounting/flow/index.vue
+++ b/src/views/accounting/flow/index.vue
@@ -323,7 +323,7 @@ export default {
rules: {},
fileList: [], // 文件列表
uploadUrl:
- process.env.VUE_APP_BASE_API + "/admin-api//archives/flow/upload", // 上传地址地址
+ process.env.VUE_APP_BASE_API + "/admin-api/archives/flow/upload", // 上传地址地址
headers: {
Authorization: "Bearer " + getAccessToken(),
"tenant-id": getTenantId(),
diff --git a/src/views/accounting/voucher/index.vue b/src/views/accounting/voucher/index.vue
index d609004a..e3ec5eb8 100644
--- a/src/views/accounting/voucher/index.vue
+++ b/src/views/accounting/voucher/index.vue
@@ -429,6 +429,7 @@ import { listData } from "@/api/system/dict/data";
import { getAttachmentPage } from "@/api/accounting/attachment";
import { getFlowPage } from "@/api/accounting/flow";
import { getInvoicesPage } from "@/api/accounting/invoices";
+import { getBankSlipPage } from "@/api/accounting/bankSlip";
import { getAccessToken, getTenantId } from "@/utils/auth";
export default {
@@ -607,6 +608,17 @@ export default {
});
});
},
+ /** 查询银行回单 */
+ getYHHD(val) {
+ // 执行查询
+ getBankSlipPage({ voucherId: val }).then((response) => {
+ if (response.data.total == 0) {
+ this.showNul4 = true;
+ } else {
+ this.showNul4 = false;
+ }
+ });
+ },
handleClickOfd() {},
handleSuccess3() {},
//获取字典数据
@@ -741,6 +753,7 @@ export default {
this.getFJ(row.voucherNum);
this.getSPLC(row.id);
this.getDZFP(row.id);
+ this.getYHHD(row.id);
},
handleClick(tab) {},
/** 提交按钮 */