【bug】打包会员 单位地址等信息没有提交

This commit is contained in:
fengachen
2022-07-08 16:20:12 +08:00
parent abd5087c07
commit 8c3d568e56
@@ -164,7 +164,7 @@
<a-col :span="1"></a-col>
</a-row>
<!-- 打包会员显示 -->
<div v-if="paymentMethodFlag">
<template v-if="paymentMethodFlag">
<a-row>
<a-col :span="12">
<a-form-item label="缴费日期" :labelCol="labelCol" :wrapperCol="wrapperCol">
@@ -239,7 +239,7 @@
<a-input
:disabled="checkFlag||detailFlag"
@change="event => event.target.value = event.target.value.trim()"
v-decorator="['invoiceAddress',{ rules: validatorRules.invoiceAddress.rules, validateTrigger: 'blur', initialValue:invoiceInfoObj.invoiceAddress}]"
v-decorator="['invoiceAddress',{ rules: validatorRules.invoiceAddress.rules, validateTrigger: 'blur'}]"
placeholder="请输入单位地址"
:maxLength="50"></a-input>
</a-form-item>
@@ -248,7 +248,7 @@
<a-form-item label="电话号码" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input
:disabled="checkFlag||detailFlag"
v-decorator="['invoicePhone',{ rules: validatorRules.invoicePhone.rules, initialValue: invoiceInfoObj.invoicePhone,validateTrigger: 'blur'}]"
v-decorator="['invoicePhone',{ rules: validatorRules.invoicePhone.rules,validateTrigger: 'blur'}]"
:trigger-change="true"
@change="(e) => {e.target.value = e.target.value.replace(/[^0-9|-]/g,'')}"
placeholder="请输入电话号码"
@@ -262,7 +262,7 @@
<a-input
:disabled="checkFlag||detailFlag"
@change="event => event.target.value = event.target.value.trim()"
v-decorator="['depositBank',{ rules: validatorRules.depositBank.rules, validateTrigger: 'blur',initialValue:invoiceInfoObj.depositBank}]"
v-decorator="['depositBank',{ rules: validatorRules.depositBank.rules, validateTrigger: 'blur',}]"
placeholder="请输入开户银行"
:maxLength="50"></a-input>
</a-form-item>
@@ -272,7 +272,7 @@
<a-input
:disabled="checkFlag||detailFlag"
@change="(e) => {e.target.value = e.target.value.trim()}"
v-decorator="['bankAccount',{ rules: validatorRules.bankAccount.rules, validateTrigger: 'blur',initialValue:invoiceInfoObj.bankAccount}]"
v-decorator="['bankAccount',{ rules: validatorRules.bankAccount.rules, validateTrigger: 'blur',}]"
placeholder="请输入银行账户"
:maxLength="50"></a-input>
</a-form-item>
@@ -292,7 +292,7 @@
<span style="color: #bfbfbf">一个缴费单可在多个缴费处上传</span>
</a-col>
</a-row>
</div>
</template>
<!-- 电汇显示-->
<div v-if="!paymentMethodFlag">
<a-row v-show="!addFlag">
@@ -1274,6 +1274,8 @@ export default {
this.paymentType = this.model.paymentType
this.paymentTime = this.model.paymentTime
this.paymentRecord = this.model.paymentRecord
}else {
this.paymentMethodFlag = false
}
// 缴费单号
// this.billNumber = this.model.billNumber
@@ -1309,7 +1311,6 @@ export default {
this.submitFlag = false
},
handleOk() {
console.log(1111)
const that = this
// 触发表单验证
that.form.validateFields({ force: true }, (err, values) => {
@@ -1705,7 +1706,6 @@ export default {
console.log(paymentAmount, type)
this.form.resetFields(['paymentAmount', 'paymentTime'])
this.form.setFieldsValue({ 'paymentAmount': paymentAmount, 'paymentTime': type })
console.log('44444', this.addFlag, !this.paymentMethodFlag)
// 打包不验证金额
if (!this.paymentMethodFlag) {
if (type === undefined) {
@@ -1757,12 +1757,14 @@ export default {
},
/* 缴费方式*/
changePaymentMethod(value) {
// 'paymentType'-缴费类型 paymentAmount-缴费金额,paymentTime-缴费时长 'invoiceRequirements'-发票
this.form.resetFields(['billNumber', 'paymentType', 'paymentAmount', 'paymentTime', 'submissionTime', 'paymentRecord'])
this.changgeType(this.paymentTime)
if ((+value) === 2) {
this.paymentMethodFlag = true
this.form.resetFields()
} else {
this.paymentMethodFlag = false
}