From 096a3c9d6f56e2f94b75a52692aa298ba60c5f6e Mon Sep 17 00:00:00 2001 From: dongwei <2458183101@qq.com> Date: Thu, 16 Jun 2022 13:41:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=BD=E7=A6=BB=E8=AF=81=E4=B9=A6=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CertificateManagement.vue | 234 +++-- .../VinCertificateModal.vue | 2 +- .../model/BindMemberModel.vue | 233 +++++ .../model/ChargeCertificateEditModel.vue | 895 +++++++++++++++++ .../model/ChargeCertificateModel.vue | 897 ++++++++++++++++++ .../model/CheckCertificateModel.vue | 349 +++++++ .../model/FreeCertificateEditModel.vue | 405 ++++++++ .../model/FreeCertificateModel.vue | 474 +++++++++ .../model/FreeCertificateReplaceEditModel.vue | 507 ++++++++++ .../model/RenewChargeEditModel.vue | 699 ++++++++++++++ .../model/RenewChargeModel.vue | 792 ++++++++++++++++ .../model/ReplaceMentAffirmModel.vue | 64 ++ .../model/ReplaceMentModel.vue | 442 +++++++++ 13 files changed, 5924 insertions(+), 69 deletions(-) create mode 100644 src/views/standardsAssociation/model/BindMemberModel.vue create mode 100644 src/views/standardsAssociation/model/ChargeCertificateEditModel.vue create mode 100644 src/views/standardsAssociation/model/ChargeCertificateModel.vue create mode 100644 src/views/standardsAssociation/model/CheckCertificateModel.vue create mode 100644 src/views/standardsAssociation/model/FreeCertificateEditModel.vue create mode 100644 src/views/standardsAssociation/model/FreeCertificateModel.vue create mode 100644 src/views/standardsAssociation/model/FreeCertificateReplaceEditModel.vue create mode 100644 src/views/standardsAssociation/model/RenewChargeEditModel.vue create mode 100644 src/views/standardsAssociation/model/RenewChargeModel.vue create mode 100644 src/views/standardsAssociation/model/ReplaceMentAffirmModel.vue create mode 100644 src/views/standardsAssociation/model/ReplaceMentModel.vue diff --git a/src/views/standardsAssociation/CertificateManagement.vue b/src/views/standardsAssociation/CertificateManagement.vue index 964a9d1..1cf28d4 100644 --- a/src/views/standardsAssociation/CertificateManagement.vue +++ b/src/views/standardsAssociation/CertificateManagement.vue @@ -162,6 +162,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -179,7 +216,17 @@ import JDictSelectTag from '../../components/standardsAssociation/JDictSelectTag // eslint-disable-next-line no-unused-vars import { downloadFile, getAction, getFileAccessHttpUrl } from '@/api/memberManage' import { CertificateModalityEnums, CertificateStatusEnums, ChargeTypeEnums } from '../../enums/memberEnums' - +import CheckCertificateModel from '@views/standardsAssociation/model/CheckCertificateModel' +import BindMemberModel from '@views/standardsAssociation/model/BindMemberModel' +import RenewChargeModel from '@views/standardsAssociation/model/RenewChargeModel' +import ReplaceMentModel from '@views/standardsAssociation/model/ReplaceMentModel' +import ReplaceMentAffirmModel from '@views/standardsAssociation/model/ReplaceMentAffirmModel' +import FreeCertificateModel from '@views/standardsAssociation/model/FreeCertificateModel' +import ChargeCertificateModel from '@views/standardsAssociation/model/ChargeCertificateModel' +import FreeCertificateEditModel from '@views/standardsAssociation/model/FreeCertificateEditModel' +import ChargeCertificateEditModel from '@views/standardsAssociation/model/ChargeCertificateEditModel' +import RenewChargeEditModel from '@views/standardsAssociation/model/RenewChargeEditModel' +import FreeCertificateReplaceEditModel from '@views/standardsAssociation/model/FreeCertificateReplaceEditModel' export default { name: 'CertificateManagement', mixins: [JeroListMixin, mixinDevice, RangeDateMixin, StandardListMixin], @@ -187,7 +234,18 @@ export default { JMultiSelectTag, JDate, VinCertificateModal, - JDictSelectTag + JDictSelectTag, + CheckCertificateModel, + BindMemberModel, + RenewChargeModel, + ReplaceMentModel, + ReplaceMentAffirmModel, + FreeCertificateModel, + ChargeCertificateModel, + FreeCertificateEditModel, + ChargeCertificateEditModel, + RenewChargeEditModel, + FreeCertificateReplaceEditModel }, data() { return { @@ -341,6 +399,11 @@ export default { } }, methods: { + // 显示换证确认 窗口 + handleAffirm() { + this.$refs.replaceMentAffirmModelForm.title = '提交成功' + this.$refs.replaceMentAffirmModelForm.show() + }, initDictConfig() { }, // 授权 @@ -369,19 +432,26 @@ export default { // 可申请的免费证书的个数 let freeCount getAction('/vinCertificate/vinCertificate/getFreeCount').then(res => { + console.log(res) if (res.success) { freeCount = res.result - that.$refs.modalForm.title = '新增申请' - that.$refs.modalForm.disableSubmit = false - that.$refs.modalForm.freeCount = freeCount + // that.$refs.modalForm.title = '新增申请' + // that.$refs.modalForm.disableSubmit = false + // that.$refs.modalForm.freeCount = freeCount // freeCount 为0 打开收费证书申请窗口 if (freeCount === 0) { - that.$refs.modalForm.pageType = 6 + // 弹出新增收费窗口操作 + that.$refs.addChargeModalForm.title = '新增申请' + that.$refs.addChargeModalForm.add() } else { - that.$refs.modalForm.pageType = 5 + // 弹出新增免费窗口操作 + // that.$refs.modalForm.pageType = 5 + that.$refs.addFreeModalForm.add() + that.$refs.addFreeModalForm.title = '新增申请' + that.$refs.addFreeModalForm.freeCount = freeCount } - // 弹窗口操作 - that.$refs.modalForm.add() + // // 弹窗口操作 + // that.$refs.modalForm.add() } else { that.$message.warning(res.message) } @@ -389,43 +459,55 @@ export default { }, // 查看证书 handleDetail: function(record) { - this.$refs.modalForm.title = '查看证书' - this.$refs.modalForm.disableSubmit = true - this.$refs.modalForm.pageType = 1 - this.$refs.modalForm.remainingTime = this.remainingTimeCount(record.certificateValidDate) - this.$refs.modalForm.edit(record) + this.$refs.checkModalForm.remainingTime = this.remainingTimeCount(record.certificateValidDate) + this.$refs.checkModalForm.check(record) + + // this.$refs.modalForm.title = '查看证书' + // this.$refs.modalForm.disableSubmit = true + // this.$refs.modalForm.pageType = 1 + // this.$refs.modalForm.remainingTime = this.remainingTimeCount(record.certificateValidDate) + // this.$refs.modalForm.edit(record) }, // 绑定会员 bindMember: function(record) { - this.$refs.modalForm.title = '绑定会员' - this.$refs.modalForm.disableSubmit = true - // 绑定会员时使用4号窗口 - this.$refs.modalForm.pageType = 4 // 证书id - this.$refs.modalForm.vinId = record.id - this.$refs.modalForm.edit(record) + this.$refs.bindMemberModelForm.vinId = record.id + this.$refs.bindMemberModelForm.edit(record) + + // this.$refs.modalForm.title = '绑定会员' + // this.$refs.modalForm.disableSubmit = true + // // 绑定会员时使用4号窗口 + // this.$refs.modalForm.pageType = 4 + // // 证书id + // this.$refs.modalForm.vinId = record.id + // this.$refs.modalForm.edit(record) }, // 续费 renewCharge: function(record) { // if(!(record.chargeType != 1 && record.certificateModality == 3 && record.certificateStatus == 5)){ // return; // } - this.$refs.modalForm.title = '续费' - this.$refs.modalForm.disableSubmit = true - // 换证显示 1是世界证书 - this.$refs.modalForm.isChangeCer = record.certificateType - // 证书续费时使用7号窗口 - this.$refs.modalForm.pageType = 7 - this.$refs.modalForm.edit2(record) + this.$refs.renewChargeModelForm.isChangeCer = record.certificateType + this.$refs.renewChargeModelForm.edit(record) + + // this.$refs.modalForm.title = '续费' + // this.$refs.modalForm.disableSubmit = true + // // 换证显示 1是世界证书 + // this.$refs.modalForm.isChangeCer = record.certificateType + // // 证书续费时使用7号窗口 + // this.$refs.modalForm.pageType = 7 + // this.$refs.modalForm.edit2(record) }, // 换证 replacement: function(record) { - this.$refs.modalForm.title = '换证' - this.$refs.modalForm.disableSubmit = true - // 换证的时候使用8号窗口 - this.$refs.modalForm.pageType = 8 - this.$refs.modalForm.edit3(record) + this.$refs.replaceMentModelForm.edit(record) + + // this.$refs.modalForm.title = '换证' + // this.$refs.modalForm.disableSubmit = true + // // 换证的时候使用8号窗口 + // this.$refs.modalForm.pageType = 8 + // this.$refs.modalForm.edit3(record) }, // 编辑: 包括免费证书,收费证书,续费,换证 handleEditRenew: function(record) { @@ -435,8 +517,8 @@ export default { // 证书是否免费 1-免费 2-付费 record.chargeType = Number(record.chargeType) // 分为续证驳回和 非免费证书申请驳回 chargeType 1是免费证书 2是收费证书 - this.$refs.modalForm.title = '' - this.$refs.modalForm.disableSubmit = true + // this.$refs.modalForm.title = '' + // this.$refs.modalForm.disableSubmit = true // certificateStatus --证书状态-待支付 if (record.certificateStatus === CertificateStatusEnums.toPay.index) { // 免费证书 @@ -447,55 +529,71 @@ export default { let freeCount getAction('/vinCertificate/vinCertificate/getFreeCount').then((res) => { freeCount = res.result - this.$refs.modalForm.freeCountVin = freeCount + 1 - this.$refs.modalForm.title = '新增申请' - this.$refs.modalForm.disableSubmit = false - this.$refs.modalForm.pageType = 10 - this.$refs.modalForm.edit5(record) + this.$refs.freeCertificateEditModel.freeCountVin = freeCount + 1 + this.$refs.freeCertificateEditModel.edit(record) + + // this.$refs.modalForm.freeCountVin = freeCount + 1 + // this.$refs.modalForm.title = '新增申请' + // this.$refs.modalForm.disableSubmit = false + // this.$refs.modalForm.pageType = 10 + // this.$refs.modalForm.edit5(record) }) return } else if (record.certificateModality === 1) { // 免费证书换证编辑 - this.$refs.modalForm.title = '换证' - this.$refs.modalForm.disableSubmit = true - // 换证的时候使用13号窗口 - this.$refs.modalForm.pageType = 13 - this.$refs.modalForm.edit8(record) + this.$refs.FreeCertificateReplaceEditModel.edit(record) + + // this.$refs.modalForm.title = '换证' + // this.$refs.modalForm.disableSubmit = true + // // 换证的时候使用13号窗口 + // this.$refs.modalForm.pageType = 13 + // this.$refs.modalForm.edit8(record) } } else if (record.chargeType === 2 && record.certificateModality === 4) { // 收费证书编辑 - this.$refs.modalForm.title = '新增申请' - this.$refs.modalForm.disableSubmit = false - this.$refs.modalForm.pageType = 11 - this.$refs.modalForm.edit6(record) + this.$refs.ChargeCertificateEditModel.edit(record) + + // this.$refs.modalForm.title = '新增申请' + // this.$refs.modalForm.disableSubmit = false + // this.$refs.modalForm.pageType = 11 + // this.$refs.modalForm.edit6(record) } else if (record.chargeType === 2 && record.certificateModality === 2) { // 续费编辑 - this.$refs.modalForm.title = '续费' - this.$refs.modalForm.disableSubmit = true - // 证书续费编辑时使用12号窗口 - this.$refs.modalForm.pageType = 12 - this.$refs.modalForm.edit7(record) + this.$refs.RenewChargeEditModel.edit(record) + + // this.$refs.modalForm.title = '续费' + // this.$refs.modalForm.disableSubmit = true + // // 证书续费编辑时使用12号窗口 + // this.$refs.modalForm.pageType = 12 + // this.$refs.modalForm.edit7(record) } else if (record.chargeType === 2 && record.certificateModality === 1) { - // 换证编辑 - this.$refs.modalForm.title = '换证' - this.$refs.modalForm.disableSubmit = true - // 换证的时候使用13号窗口 - this.$refs.modalForm.pageType = 13 - this.$refs.modalForm.edit8(record) + // // 换证编辑 + this.$refs.FreeCertificateReplaceEditModel.edit(record) + + // this.$refs.modalForm.title = '换证' + // this.$refs.modalForm.disableSubmit = true + // // 换证的时候使用13号窗口 + // this.$refs.modalForm.pageType = 13 + // this.$refs.modalForm.edit8(record) } } else { // 新增证书缴费编辑窗口 if (record.chargeType === 2 && record.certificateModality === 4 && record.certificateStatus === 6) { - this.$refs.modalForm.title = '新增申请' - this.$refs.modalForm.disableSubmit = false - this.$refs.modalForm.pageType = 11 - this.$refs.modalForm.edit6(record) + this.$refs.ChargeCertificateEditModel.edit(record) + + // this.$refs.modalForm.title = '新增申请' + // this.$refs.modalForm.disableSubmit = false + // this.$refs.modalForm.pageType = 11 + // this.$refs.modalForm.edit6(record) } else if (record.chargeType === 2 && record.certificateModality === 2 && record.certificateStatus === 6) { - this.$refs.modalForm.title = '续费' - this.$refs.modalForm.disableSubmit = true - // 证书续费编辑时使用12号窗口 - this.$refs.modalForm.pageType = 12 - this.$refs.modalForm.edit7(record) + // 续费编辑 + this.$refs.RenewChargeEditModel.edit(record) + + // this.$refs.modalForm.title = '续费' + // this.$refs.modalForm.disableSubmit = true + // // 证书续费编辑时使用12号窗口 + // this.$refs.modalForm.pageType = 12 + // this.$refs.modalForm.edit7(record) } } }, diff --git a/src/views/standardsAssociation/memberManagementModule/VinCertificateModal.vue b/src/views/standardsAssociation/memberManagementModule/VinCertificateModal.vue index 728daed..534aaa6 100644 --- a/src/views/standardsAssociation/memberManagementModule/VinCertificateModal.vue +++ b/src/views/standardsAssociation/memberManagementModule/VinCertificateModal.vue @@ -3423,7 +3423,7 @@ export default { // 默认选择增值税发票 let defaultInvoiceRequirements = 2 this.model = Object.assign({}, this.currentMemberInfo, {invoiceRequirements: defaultInvoiceRequirements}) - // console.log(this.model, '**********') + console.log(this.model, '**********') this.visible = true this.$nextTick(() => { this.form.setFieldsValue(pick(this.model, 'address', 'postcode', 'companyName', 'liaisonMan', 'mobile', 'invoiceRequirements')) diff --git a/src/views/standardsAssociation/model/BindMemberModel.vue b/src/views/standardsAssociation/model/BindMemberModel.vue new file mode 100644 index 0000000..d448338 --- /dev/null +++ b/src/views/standardsAssociation/model/BindMemberModel.vue @@ -0,0 +1,233 @@ + + + + + diff --git a/src/views/standardsAssociation/model/ChargeCertificateEditModel.vue b/src/views/standardsAssociation/model/ChargeCertificateEditModel.vue new file mode 100644 index 0000000..81eccb3 --- /dev/null +++ b/src/views/standardsAssociation/model/ChargeCertificateEditModel.vue @@ -0,0 +1,895 @@ + + + + + diff --git a/src/views/standardsAssociation/model/ChargeCertificateModel.vue b/src/views/standardsAssociation/model/ChargeCertificateModel.vue new file mode 100644 index 0000000..7be978e --- /dev/null +++ b/src/views/standardsAssociation/model/ChargeCertificateModel.vue @@ -0,0 +1,897 @@ + + + + + diff --git a/src/views/standardsAssociation/model/CheckCertificateModel.vue b/src/views/standardsAssociation/model/CheckCertificateModel.vue new file mode 100644 index 0000000..c9a2d5b --- /dev/null +++ b/src/views/standardsAssociation/model/CheckCertificateModel.vue @@ -0,0 +1,349 @@ + + + + \ No newline at end of file diff --git a/src/views/standardsAssociation/model/FreeCertificateEditModel.vue b/src/views/standardsAssociation/model/FreeCertificateEditModel.vue new file mode 100644 index 0000000..44995ef --- /dev/null +++ b/src/views/standardsAssociation/model/FreeCertificateEditModel.vue @@ -0,0 +1,405 @@ + + + + + + +FreeCertificateEditModel diff --git a/src/views/standardsAssociation/model/FreeCertificateModel.vue b/src/views/standardsAssociation/model/FreeCertificateModel.vue new file mode 100644 index 0000000..502d18c --- /dev/null +++ b/src/views/standardsAssociation/model/FreeCertificateModel.vue @@ -0,0 +1,474 @@ + + + + + diff --git a/src/views/standardsAssociation/model/FreeCertificateReplaceEditModel.vue b/src/views/standardsAssociation/model/FreeCertificateReplaceEditModel.vue new file mode 100644 index 0000000..2d87282 --- /dev/null +++ b/src/views/standardsAssociation/model/FreeCertificateReplaceEditModel.vue @@ -0,0 +1,507 @@ + + + + + diff --git a/src/views/standardsAssociation/model/RenewChargeEditModel.vue b/src/views/standardsAssociation/model/RenewChargeEditModel.vue new file mode 100644 index 0000000..7628e2d --- /dev/null +++ b/src/views/standardsAssociation/model/RenewChargeEditModel.vue @@ -0,0 +1,699 @@ + + + + + diff --git a/src/views/standardsAssociation/model/RenewChargeModel.vue b/src/views/standardsAssociation/model/RenewChargeModel.vue new file mode 100644 index 0000000..21f9e75 --- /dev/null +++ b/src/views/standardsAssociation/model/RenewChargeModel.vue @@ -0,0 +1,792 @@ + + + + + \ No newline at end of file diff --git a/src/views/standardsAssociation/model/ReplaceMentAffirmModel.vue b/src/views/standardsAssociation/model/ReplaceMentAffirmModel.vue new file mode 100644 index 0000000..f33f7d8 --- /dev/null +++ b/src/views/standardsAssociation/model/ReplaceMentAffirmModel.vue @@ -0,0 +1,64 @@ + + + + + diff --git a/src/views/standardsAssociation/model/ReplaceMentModel.vue b/src/views/standardsAssociation/model/ReplaceMentModel.vue new file mode 100644 index 0000000..08c79fa --- /dev/null +++ b/src/views/standardsAssociation/model/ReplaceMentModel.vue @@ -0,0 +1,442 @@ + + + + +