diff --git a/src/api/common/index.js b/src/api/common/index.js
index ba7f73d6..ab2d1be3 100644
--- a/src/api/common/index.js
+++ b/src/api/common/index.js
@@ -18,11 +18,20 @@ export function uploadFileApi(data) {
})
}
-// 文件上传
+// 发票上传
export function uploadInvoiceApi(data) {
return request({
url: '/accounting/invoices/identify',
method: 'post',
data: data
})
+}
+
+// 银行回单上传
+export function uploadBankSlipApi(data) {
+ return request({
+ url: '/archives/bank-slip/bankReceipt/identify',
+ method: 'post',
+ data: data
+ })
}
\ No newline at end of file
diff --git a/src/components/UploadBankSlip/index.vue b/src/components/UploadBankSlip/index.vue
new file mode 100644
index 00000000..daf2bd80
--- /dev/null
+++ b/src/components/UploadBankSlip/index.vue
@@ -0,0 +1,218 @@
+
+
+
+
+
+
+
+
+
+
{{ pdfName }}
+
+
+
+
+
{{ ofdName }}
+
+
+
+
+
+
+
+
+
+
+
支持.jpeg, .jpg, .png格式上传
+
+ 银行回单识别
+
+
+
+
+
+
+
+
+
diff --git a/src/views/accounting/bankSlip/index.vue b/src/views/accounting/bankSlip/index.vue
index 3e9abf81..8e0b02ae 100644
--- a/src/views/accounting/bankSlip/index.vue
+++ b/src/views/accounting/bankSlip/index.vue
@@ -284,7 +284,7 @@
width="1000px"
append-to-body
>
-
将文件拖到此处,或点击上传
-
-
+ -->
+
+
+
+
+
+
+ 银行回单信息
@@ -612,7 +616,7 @@ import { listUser } from "@/api/system/user";
export default {
name: "BankSlip",
- components: {},
+ components: { UploadBankSlip: () => import("@/components/UploadBankSlip") },
data() {
return {
// 遮罩层
@@ -701,6 +705,22 @@ export default {
this.getUserList();
},
methods: {
+ // 上传文件事件
+ handleImg(list) {
+ this.fileList = list;
+ this.reset();
+ },
+ handleScan(form) {
+ console.log(form);
+ this.form = form;
+ this.form.adverseCompany = form.adverseCompany.slice(9, -2);
+ this.form.bank = form.bank.slice(9, -2);
+ this.form.digest = form.digest.slice(9, -2);
+ this.form.myCompany = form.myCompany.slice(9, -2);
+ this.form.purpose = form.purpose.slice(9, -2);
+ this.form.receiptNum = form.receiptNum.slice(9, -2);
+ this.form.serialNum = form.serialNum.slice(9, -2);
+ },
/** 查询列表 */
getList() {
this.loading = true;
@@ -822,6 +842,7 @@ export default {
this.reset();
this.open = true;
this.title = "添加银行回单";
+ this.fileList = [];
},
// 上传成功的函数
handleSuccess(res) {