diff --git a/src/views/accounting/attachment/index.vue b/src/views/accounting/attachment/index.vue index 60c82c64..f293ab56 100644 --- a/src/views/accounting/attachment/index.vue +++ b/src/views/accounting/attachment/index.vue @@ -253,7 +253,6 @@ export default { title: "", // 是否显示弹出层 open: false, - fileList: [], // 查询参数 queryParams: { pageNo: 1, @@ -408,6 +407,7 @@ export default { }, //凭证选择 handleSelectVoucher(val) { + this.$refs.VoucherSelect.showFlag = true; this.form.voucherId = val.id; this.form.voucherNum = val.voucherNum; }, @@ -466,13 +466,11 @@ export default { }) .catch(() => {}); }, - handleSelectVoucher() { - this.$refs.VoucherSelect.showFlag = true; - }, onVoucherSelected(obj) { console.log(obj); if (obj != undefined && obj != null) { this.form.voucherNum = obj.voucherNum; + this.form.voucherId = obj.id; } }, },