From 6c60bfaa7d730496489f40e466cf40d8189c96af Mon Sep 17 00:00:00 2001 From: fengachen <373943794@qq.com> Date: Wed, 20 Jul 2022 16:23:51 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E7=BB=84=E5=90=88=E7=BC=B4=E8=B4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/router.config.js | 2 +- .../PaymentInfo/MemberInfo.vue | 55 +- .../modules/CombinationPaymentModal.vue | 1339 +++++++++++++++++ .../PaymentInfo/modules/PaymentInfoModal.vue | 234 +-- 4 files changed, 1390 insertions(+), 240 deletions(-) create mode 100644 src/views/standardsAssociation/PaymentInfo/modules/CombinationPaymentModal.vue diff --git a/src/config/router.config.js b/src/config/router.config.js index 8569359..1061392 100644 --- a/src/config/router.config.js +++ b/src/config/router.config.js @@ -241,7 +241,7 @@ export const routerData = [ children: [ { component: 'standardsAssociation/feehandle/FeeHandle', - id: 'standardsMemberInfo4-4-1', + id: 'standardsMemberInfo4-4-2', meta: { keepAlive: false, internalOrExternal: false, diff --git a/src/views/standardsAssociation/PaymentInfo/MemberInfo.vue b/src/views/standardsAssociation/PaymentInfo/MemberInfo.vue index ba70caa..99db4ee 100644 --- a/src/views/standardsAssociation/PaymentInfo/MemberInfo.vue +++ b/src/views/standardsAssociation/PaymentInfo/MemberInfo.vue @@ -13,12 +13,12 @@ - + - + @@ -35,7 +35,7 @@ 查询 - 重置 + 重置 @@ -49,12 +49,12 @@ - + 删除 批量操作 - + @@ -80,7 +80,7 @@ + diff --git a/src/views/standardsAssociation/PaymentInfo/modules/PaymentInfoModal.vue b/src/views/standardsAssociation/PaymentInfo/modules/PaymentInfoModal.vue index 65c00d0..4b933b6 100644 --- a/src/views/standardsAssociation/PaymentInfo/modules/PaymentInfoModal.vue +++ b/src/views/standardsAssociation/PaymentInfo/modules/PaymentInfoModal.vue @@ -99,7 +99,7 @@ - + @@ -168,83 +168,6 @@ - -
@@ -528,67 +451,6 @@
- - - - - @@ -651,7 +513,7 @@ import { getCheckInfo, getByMemberTime, downNewestNotice, - judgeMemberNotApprove, ajaxGetDictItems + judgeMemberNotApprove } from '@/api/standardsAssociationApi' import JUpload from '@/components/standardsAssociation/JUpload' import PreViewImgModal from './PreViewImgModal' @@ -722,18 +584,6 @@ export default { ], validateTrigger: 'blur' }, - certificatePaymentAmount: { - rules: [ - { - required: false, message: '请输入缴费金额' - }, - { - pattern: /^[1-9](\d{1,8})?(\.\d{1,2})$|^0\.([1-9](\d{0,1})|\d[1-9])$|^[1-9]\d{0,8}$|^0$/, - message: '请输入合法的金额数字,最多2位小数,8位正数' - } - ], - validateTrigger: 'blur' - }, paymentAmount: { rules: [ @@ -806,12 +656,10 @@ export default { url: { add: '/paymentInfo/add', edit: '/paymentInfo/edit', - check: '/paymentInfo/check', - combinationUrl: '/paymentInfo/addCombination' // 组合缴费 + check: '/paymentInfo/check' }, // 缴费时长 5年vip会员 为true 1年普通会员为 false typeFlag: false, - certificateType: undefined, // 证书类型 // 缴费表头 payColumns: [ { @@ -1008,35 +856,13 @@ export default { // 提交 submitFlag: false, // 最新的缴费通知单信息 - newestNoticeInfo: {}, - allAmount: 0 // 缴费总金额 + newestNoticeInfo: {} } }, created() { // this.loadMember(); }, methods: { - /** - * 计算缴费总金额 - * */ - calculateAllAmount() { - this.$nextTick(() => { - const memberAmount = this.form.getFieldValue('memberPaymentAmount') ? Number(this.form.getFieldValue('memberPaymentAmount')) : 0 - const certificateAmount = this.form.getFieldValue('certificatePaymentAmount') ? Number(this.form.getFieldValue('certificatePaymentAmount')) : 0 - const otherAmount = this.form.getFieldValue('otherPaymentAmount') ? Number(this.form.getFieldValue('otherPaymentAmount')) : 0 - this.form.validateFields(['memberPaymentAmount', 'certificatePaymentAmount', 'otherPaymentAmount'], (err) => { - if (!err) { - this.allAmount = (memberAmount + certificateAmount + otherAmount) + '' - } - }) - }) - }, - /** - * 改变证书类型 世界制造厂证书显示备案通知书 - * */ - changeCertificateType(val) { - this.certificateType = val - }, /* 添加*/ add() { this.addFlag = true @@ -1117,22 +943,16 @@ export default { // 获取会员信息 await this.loadMember() this.visible = true - // 获取会员类型 vip会员不展示 升级专用 - if(this.model.memberType === 2){ + // 获取会员 类型 1年 五年的 + // let type = this.model.paymentTime + // 新增 设置 初始缴费金额 + if(!this.model.id){ + // 判断是否是 副理事单位 this.$nextTick( () => { - ajaxGetDictItems('payment_time', null).then((res) => { - if (res.success) { - let dictOptions = res.result - let index = dictOptions.findIndex(item => item.value === '3' ) - dictOptions.splice(index,1) - this.$refs.paymentTimeJdict.setCurrentDictOptions(dictOptions) - } - }) - // console.log(this.$refs.paymentTimeJdict.getCurrentDictOptions(),'this.$refs.paymentTimeJdict.getCurrentDictOptions()' + this.form.setFieldsValue({paymentAmount:commonMemberCost(this.memberType)}) }) } - this.model.memberId = this.memberId this.startTime = this.model.effectiveDate ? this.model.effectiveDate : '' @@ -1153,15 +973,6 @@ export default { this.paymentTime = this.model.paymentTime this.paymentRecord = this.model.paymentRecord } - // 新增 设置 初始缴费金额 - if(this.addFlag){ - // 判断是否是 副理事单位 - this.$nextTick( () => { - this.form.setFieldsValue({paymentAmount:commonMemberCost(this.memberType),'memberPaymentAmount': commonMemberCost(this.memberType)}) - }) - // 计算缴费总金额 - this.calculateAllAmount() - } // 缴费单号 // this.billNumber = this.model.billNumber this.$nextTick(() => { @@ -1171,7 +982,6 @@ export default { close() { this.$emit('close') this.visible = false - this.certificateType = undefined this.addFlag = false this.typeFlag = false this.checkFlag = false @@ -1194,8 +1004,6 @@ export default { this.isCash = '' this.submitFlag = false this.initVal = 1 - this.confirmLoading = false - this.model = {} }, handleOk() { @@ -1209,7 +1017,7 @@ export default { // 提示 that.$confirm({ title: '确认提交', - content: '当前已有待审核缴费订单,为避免重复提交,请确认是否再次提交缴费订单?', + content: '是否删除选中数据?', onOk:function () { that.handleSubmit(values) }, @@ -1219,7 +1027,7 @@ export default { } }) }else { - this.handleSubmit(values) + this.handleSubmit(values) } } @@ -1232,7 +1040,7 @@ export default { let httpurl = '' let method = '' if (!this.model.id) { - httpurl += this.url.combinationUrl + httpurl += this.url.add method = 'post' } else { if (this.checkFlag) { @@ -1341,7 +1149,6 @@ export default { this.invoiceInfoObj.bankAccount = memberInfo.bankAccount this.headerName = memberInfo.invoiceInfo this.memberType = memberInfo.memberNature - this.model = Object.assign({},memberInfo) switch (memberInfo.memberNature) { case 1: this.memberNature = '副理事单位' @@ -1349,6 +1156,7 @@ export default { case 2: this.memberNature = '理事单位' break + case 3: this.memberNature = '会员单位' break @@ -1370,20 +1178,19 @@ export default { switch (Number(value)) { // 1年 case 1: this.typeFlag = false - form.setFieldsValue({ 'paymentType': 0, 'paymentAmount': commonMemberCost(this.memberType),'memberPaymentAmount': commonMemberCost(this.memberType) }) + form.setFieldsValue({ 'paymentType': 0, 'paymentAmount': commonMemberCost(this.memberType) }) break // 5年 case 2: this.typeFlag = true - form.setFieldsValue({ 'paymentType': 1, 'paymentAmount': vipMemberCost(this.memberType),'memberPaymentAmount': vipMemberCost(this.memberType) }) + form.setFieldsValue({ 'paymentType': 1, 'paymentAmount': vipMemberCost(this.memberType) }) break // 升级专用 case 3: this.typeFlag = true - form.setFieldsValue({ 'paymentAmount': upgradeVip(this.memberType),'memberPaymentAmount': upgradeVip(this.memberType) }) + form.setFieldsValue({ 'paymentAmount': upgradeVip(this.memberType) }) break } - this.calculateAllAmount() }, /* 审核选择*/ @@ -1537,13 +1344,6 @@ export default { font-size: 14px; } -.apply-code-notice { - color: #f5222d; - position: absolute; - bottom: 4px; - left: 25% -} - .remark { //margin-left: -100px; }