From e6ebb63fb2f1177a5e202a825f7c4afa28df986d Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Wed, 19 Nov 2025 11:37:04 +0800 Subject: [PATCH] v2.0 优化 开票无法上传的bug --- src/components/fee/uploadInvoicePhoto.vue | 28 ++++++++-------------------- src/views/fee/invoiceApplyList.vue | 26 ++++++++++++++++++++++---- src/views/user/login/Login.vue | 4 ++-- 3 files changed, 32 insertions(+), 26 deletions(-) diff --git a/src/components/fee/uploadInvoicePhoto.vue b/src/components/fee/uploadInvoicePhoto.vue index 3bf6fae..56d6352 100644 --- a/src/components/fee/uploadInvoicePhoto.vue +++ b/src/components/fee/uploadInvoicePhoto.vue @@ -1,30 +1,16 @@  @@ -56,7 +42,9 @@ export default { invoiceCode: '', photos: [] } - this.$refs.uploadImage.clearImages() + if (this.$refs.uploadImage) { + this.$refs.uploadImage.clearImages() + } this.visible = true }, closeDialog() { @@ -74,7 +62,7 @@ export default { this.$message.warning(this.$t('uploadInvoicePhoto.photoRequired')) return } - + try { const params = { ...this.form, diff --git a/src/views/fee/invoiceApplyList.vue b/src/views/fee/invoiceApplyList.vue index f66a7b9..11a0fec 100644 --- a/src/views/fee/invoiceApplyList.vue +++ b/src/views/fee/invoiceApplyList.vue @@ -248,10 +248,28 @@ export default { _openDeleteInvoiceApplyModel(row) { this.$refs.deleteDialog.open(row) }, - hasPlugin(pluginName) { - // 实际项目中需要根据业务逻辑实现 - console.log(pluginName) - return true + hasPlugin(pluginType) { + const sysInfoStr = window.localStorage.getItem('java110SystemInfo') + if (!sysInfoStr) { + return false + } + let sysInfo + try { + sysInfo = JSON.parse(sysInfoStr) + } catch (error) { + return false + } + if (!sysInfo || !Object.prototype.hasOwnProperty.call(sysInfo, 'plugins')) { + return false + } + const plugins = sysInfo.plugins + let hasPlugin = false + plugins.forEach(p => { + if (pluginType === p.pluginType) { + hasPlugin = true + } + }) + return hasPlugin } } } diff --git a/src/views/user/login/Login.vue b/src/views/user/login/Login.vue index 981d0ae..22a9671 100644 --- a/src/views/user/login/Login.vue +++ b/src/views/user/login/Login.vue @@ -44,8 +44,8 @@ export default { logo: '', companyName:'', loginForm: { - username: 'wuxw', - passwd: 'admin', + username: '', + passwd: '', validateCode: '' }, captchaUrl: '', -- libgit2 0.21.4