diff --git a/src/views/standardsAssociation/PaymentInfo/modules/PaymentInfoModal.vue b/src/views/standardsAssociation/PaymentInfo/modules/PaymentInfoModal.vue index 2591667..9f1a867 100644 --- a/src/views/standardsAssociation/PaymentInfo/modules/PaymentInfoModal.vue +++ b/src/views/standardsAssociation/PaymentInfo/modules/PaymentInfoModal.vue @@ -99,7 +99,7 @@ - + @@ -168,6 +168,81 @@ +
@@ -451,6 +526,67 @@
+ + + + + @@ -584,6 +720,18 @@ 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: [ @@ -656,10 +804,12 @@ export default { url: { add: '/paymentInfo/add', edit: '/paymentInfo/edit', - check: '/paymentInfo/check' + check: '/paymentInfo/check', + combinationUrl: '/paymentInfo/addCombination' // 组合缴费 }, // 缴费时长 5年vip会员 为true 1年普通会员为 false typeFlag: false, + certificateType: undefined, // 证书类型 // 缴费表头 payColumns: [ { @@ -856,13 +1006,35 @@ export default { // 提交 submitFlag: false, // 最新的缴费通知单信息 - newestNoticeInfo: {} + newestNoticeInfo: {}, + allAmount: 0 // 缴费总金额 } }, 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 @@ -949,8 +1121,10 @@ export default { if(!this.model.id){ // 判断是否是 副理事单位 this.$nextTick( () => { - this.form.setFieldsValue({paymentAmount:commonMemberCost(this.memberType)}) + this.form.setFieldsValue({paymentAmount:commonMemberCost(this.memberType),'memberPaymentAmount': commonMemberCost(this.memberType)}) }) + // 计算缴费总金额 + this.calculateAllAmount() } this.model.memberId = this.memberId @@ -982,6 +1156,7 @@ export default { close() { this.$emit('close') this.visible = false + this.certificateType = undefined this.addFlag = false this.typeFlag = false this.checkFlag = false @@ -1004,6 +1179,7 @@ export default { this.isCash = '' this.submitFlag = false this.initVal = 1 + this.confirmLoading = false }, handleOk() { @@ -1178,19 +1354,20 @@ export default { switch (Number(value)) { // 1年 case 1: this.typeFlag = false - form.setFieldsValue({ 'paymentType': 0, 'paymentAmount': commonMemberCost(this.memberType) }) + form.setFieldsValue({ 'paymentType': 0, 'paymentAmount': commonMemberCost(this.memberType),'memberPaymentAmount': commonMemberCost(this.memberType) }) break // 5年 case 2: this.typeFlag = true - form.setFieldsValue({ 'paymentType': 1, 'paymentAmount': vipMemberCost(this.memberType) }) + form.setFieldsValue({ 'paymentType': 1, 'paymentAmount': vipMemberCost(this.memberType),'memberPaymentAmount': vipMemberCost(this.memberType) }) break // 升级专用 case 3: this.typeFlag = true - form.setFieldsValue({ 'paymentAmount': upgradeVip(this.memberType) }) + form.setFieldsValue({ 'paymentAmount': upgradeVip(this.memberType),'memberPaymentAmount': upgradeVip(this.memberType) }) break } + this.calculateAllAmount() }, /* 审核选择*/ @@ -1344,6 +1521,13 @@ export default { font-size: 14px; } +.apply-code-notice { + color: #f5222d; + position: absolute; + bottom: 4px; + left: 25% +} + .remark { //margin-left: -100px; } diff --git a/src/views/user/register/Register.vue b/src/views/user/register/Register.vue index bee41ad..49cc25c 100644 --- a/src/views/user/register/Register.vue +++ b/src/views/user/register/Register.vue @@ -9,7 +9,7 @@
- 注册 + 中汽标协会员注册
@@ -562,6 +562,7 @@ export default { background: #fff; height: 60px; text-align: center !important; + letter-spacing: 2px; margin-top: 30px; } }