diff --git a/src/api/accounting/voucher.js b/src/api/accounting/voucher.js index b125f82a..8dee026f 100644 --- a/src/api/accounting/voucher.js +++ b/src/api/accounting/voucher.js @@ -18,6 +18,15 @@ export function updateVoucher(data) { }) } +// 归档会计凭证 +export function updateVoucherRecord(data) { + return request({ + url: '/accounting/voucher/updateRecord', + method: 'put', + data: data + }) +} + // 删除会计凭证 export function deleteVoucher(id) { return request({ 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/api/ea/electronicAttachment/electronicAttachment.js b/src/api/ea/electronicAttachment/electronicAttachment.js new file mode 100644 index 00000000..34189bf7 --- /dev/null +++ b/src/api/ea/electronicAttachment/electronicAttachment.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建电子档案附件 +export function createElectronicAttachment(data) { + return request({ + url: '/ea/electronic-attachment/create', + method: 'post', + data: data + }) +} + +// 更新电子档案附件 +export function updateElectronicAttachment(data) { + return request({ + url: '/ea/electronic-attachment/update', + method: 'put', + data: data + }) +} + +// 删除电子档案附件 +export function deleteElectronicAttachment(id) { + return request({ + url: '/ea/electronic-attachment/delete?id=' + id, + method: 'delete' + }) +} + +// 获得电子档案附件 +export function getElectronicAttachment(id) { + return request({ + url: '/ea/electronic-attachment/get?id=' + id, + method: 'get' + }) +} + +// 获得电子档案附件分页 +export function getElectronicAttachmentPage(query) { + return request({ + url: '/ea/electronic-attachment/page', + method: 'get', + params: query + }) +} + +// 导出电子档案附件 Excel +export function exportElectronicAttachmentExcel(query) { + return request({ + url: '/ea/electronic-attachment/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/components/UploadBankSlip/index.vue b/src/components/UploadBankSlip/index.vue new file mode 100644 index 00000000..f11ab463 --- /dev/null +++ b/src/components/UploadBankSlip/index.vue @@ -0,0 +1,229 @@ + + + + + diff --git a/src/components/UploadInvoice/index.vue b/src/components/UploadInvoice/index.vue index 3d48e152..eea67420 100644 --- a/src/components/UploadInvoice/index.vue +++ b/src/components/UploadInvoice/index.vue @@ -164,12 +164,17 @@ export default { let FormDatas = new FormData(); FormDatas.append("multipartFile", file.raw); this.$modal.loading("正在上传,请稍候..."); - uploadInvoiceApi(FormDatas).then((res) => { - this.invoiceForm = res.data; - this.fileList.push({ name: file.name, url: res.data.fileUrl }); //成功过后手动将文件添加到展示列表里 - this.$emit("onConfirm", this.fileList); - this.$modal.closeLoading(); - }); + uploadInvoiceApi(FormDatas) + .then((res) => { + this.invoiceForm = res.data; + this.fileList.push({ name: file.name, url: res.data.fileUrl }); //成功过后手动将文件添加到展示列表里 + this.$emit("onConfirm", this.fileList); + this.$modal.closeLoading(); + }) + .catch(() => { + this.fileList = []; + this.$modal.closeLoading(); + }); }, closeImgViewer() { this.dialogVisible = false; diff --git a/src/utils/dict.js b/src/utils/dict.js index 5294adea..359e4ec1 100644 --- a/src/utils/dict.js +++ b/src/utils/dict.js @@ -145,6 +145,15 @@ export const DICT_TYPE = { ACCOUNTING_VOUCHER_TYPE: 'accounting_voucher_type', //银行回单认款状态 BANK_CONFIRM_STATUS: 'bank_confirm_status', + //业务类型 + BUSINESS_TYPE: 'business_type', + //合同完整性 + CHERKS: 'cherks', + //客诉类型 + COMPLAINT_TYPE: 'complaint_type', + // 会计凭证完整性 + ACCOUNTING_FILE_STATUS: 'accounting_file_status', + } diff --git a/src/views/accounting/bankSlip/index.vue b/src/views/accounting/bankSlip/index.vue index 3e9abf81..a74c62e4 100644 --- a/src/views/accounting/bankSlip/index.vue +++ b/src/views/accounting/bankSlip/index.vue @@ -284,7 +284,7 @@ width="1000px" append-to-body > -
将文件拖到此处,或点击上传
-
- + --> + + + + + + + 银行回单信息 @@ -341,6 +345,14 @@ + + + + + @@ -612,7 +624,7 @@ import { listUser } from "@/api/system/user"; export default { name: "BankSlip", - components: {}, + components: { UploadBankSlip: () => import("@/components/UploadBankSlip") }, data() { return { // 遮罩层 @@ -701,6 +713,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 +850,7 @@ export default { this.reset(); this.open = true; this.title = "添加银行回单"; + this.fileList = []; }, // 上传成功的函数 handleSuccess(res) { diff --git a/src/views/accounting/flow/index.vue b/src/views/accounting/flow/index.vue index b3902ed0..329c657a 100644 --- a/src/views/accounting/flow/index.vue +++ b/src/views/accounting/flow/index.vue @@ -169,6 +169,14 @@ style="margin-top: 20px" > + + + + + + + diff --git a/src/views/accounting/voucher/index.vue b/src/views/accounting/voucher/index.vue index da840549..25ea1c61 100644 --- a/src/views/accounting/voucher/index.vue +++ b/src/views/accounting/voucher/index.vue @@ -97,7 +97,7 @@ diff --git a/src/views/archives/prefile/index.vue b/src/views/archives/prefile/index.vue new file mode 100644 index 00000000..48062341 --- /dev/null +++ b/src/views/archives/prefile/index.vue @@ -0,0 +1,1185 @@ + + + + + diff --git a/src/views/archives/record/index.vue b/src/views/archives/record/index.vue index fc724ad6..a120b2a1 100644 --- a/src/views/archives/record/index.vue +++ b/src/views/archives/record/index.vue @@ -56,7 +56,7 @@ - + 导出 - - 归档 - - - - - - - - + - - @@ -366,15 +334,7 @@ --> - - - + { - this.getList(); - this.$modal.msgSuccess("归档成功"); - }) - .catch(() => {}); - }, /** 删除按钮操作 */ handleDelete(row) { const id = row.id; diff --git a/src/views/ea/electronicAttachment/index.vue b/src/views/ea/electronicAttachment/index.vue new file mode 100644 index 00000000..3f2a6477 --- /dev/null +++ b/src/views/ea/electronicAttachment/index.vue @@ -0,0 +1,423 @@ + + + diff --git a/src/views/ea/electronicConsultation/index.vue b/src/views/ea/electronicConsultation/index.vue index 5a000135..934771e8 100644 --- a/src/views/ea/electronicConsultation/index.vue +++ b/src/views/ea/electronicConsultation/index.vue @@ -2,72 +2,105 @@
- + - - - - - - - - - - + + + + + + + + + + + - + - + - + - + - + - - - - + + + + + - + + + + - + + + - + + + - + - - - - - - - - - + + + + + + + + + + - + @@ -80,129 +113,242 @@ 新增 + v-hasPermi="['ea:electronic-consultation:create']">新增 + - 导出 + 导出 + - - - + + + - - - - - - - - + + + + + + + + + + - - + + - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 请选择字典生成 - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +