diff --git a/src/views/accounting/invoices/index.vue b/src/views/accounting/invoices/index.vue index 7794d759..0c3a69b3 100644 --- a/src/views/accounting/invoices/index.vue +++ b/src/views/accounting/invoices/index.vue @@ -688,7 +688,7 @@ - + - - - - + + + + @@ -762,10 +773,14 @@ import { import { getVoucherPage } from "@/api/accounting/voucher"; import { listData } from "@/api/system/dict/data"; import { getAccessToken } from "@/utils/auth"; +import VoucherSelect from "@/components/VoucherSelect/single.vue"; export default { name: "Invoices", - components: { UploadInvoice: () => import("@/components/UploadInvoice") }, + components: { + UploadInvoice: () => import("@/components/UploadInvoice"), + VoucherSelect, + }, data() { return { // 遮罩层 @@ -875,8 +890,6 @@ export default { inputPassword: [ { required: true, message: "密码不能为空", trigger: "blur" }, ], - }, - rules1: { voucherId: [{ required: true, message: "请选择凭证", trigger: "blur" }], }, // 用户导入参数 @@ -1211,8 +1224,9 @@ export default { }, //关联凭证 handleGLPZ() { - this.open2 = true; this.form.voucherId = null; + this.open2 = true; + console.log(this.form); }, submitForm2() { this.$refs["form"].validate((valid) => { @@ -1304,6 +1318,15 @@ export default { .catch(() => {}); }); }, + handleSelectVoucher() { + this.$refs.VoucherSelect.showFlag = true; + }, + onVoucherSelected(obj) { + console.log(obj); + if (obj != undefined && obj != null) { + this.form.voucherId = obj.id; + } + }, }, };