提交 3d43a333 authored 作者: 钟是志's avatar 钟是志

农行卡号文字 改成银行卡号

上级 84596736
...@@ -22,12 +22,12 @@ const GJLZJXJApply = WrappedComponent => class extends Component { ...@@ -22,12 +22,12 @@ const GJLZJXJApply = WrappedComponent => class extends Component {
this.instanceComponent.handleButtonSet = () => { this.instanceComponent.handleButtonSet = () => {
let that = this.instanceComponent; let that = this.instanceComponent;
const { addFields, workId, tableInfo } = that.state; const { addFields, workId, tableInfo } = that.state;
const bankNumIndex = getIndex(addFields, '工商银行卡号'); const bankNumIndex = getIndex(addFields, '银行卡号');
const defaultValues = getDefaultValues(addFields, tableInfo); const defaultValues = getDefaultValues(addFields, tableInfo);
const beforeSubmit = (data, ModalFormComponent) => { const beforeSubmit = (data, ModalFormComponent) => {
const bankKey = addFields[bankNumIndex].key; const bankKey = addFields[bankNumIndex].key;
if(data[bankKey] && data[bankKey].replace(/\s/g,"").length !== 19){ if(data[bankKey] && data[bankKey].replace(/\s/g,"").length !== 19){
message.warning('请输入正确的19位工商银行卡卡号'); message.warning('请输入正确的19位银行卡卡号');
return false; return false;
} }
return data; return data;
......
...@@ -22,12 +22,12 @@ const KNXSRDApply = WrappedComponent => class extends Component { ...@@ -22,12 +22,12 @@ const KNXSRDApply = WrappedComponent => class extends Component {
this.instanceComponent.handleButtonSet = () => { this.instanceComponent.handleButtonSet = () => {
let that = this.instanceComponent; let that = this.instanceComponent;
const { addFields, workId, tableInfo } = that.state; const { addFields, workId, tableInfo } = that.state;
const bankNumIndex = getIndex(addFields, '工商银行卡号'); const bankNumIndex = getIndex(addFields, '银行卡号');
const defaultValues = getDefaultValues(addFields, tableInfo); const defaultValues = getDefaultValues(addFields, tableInfo);
const beforeSubmit = (data, ModalFormComponent) => { const beforeSubmit = (data, ModalFormComponent) => {
const bankKey = addFields[bankNumIndex].key; const bankKey = addFields[bankNumIndex].key;
if(data[bankKey] && data[bankKey].replace(/\s/g,"").length !== 19){ if(data[bankKey] && data[bankKey].replace(/\s/g,"").length !== 19){
message.warning('请输入正确的19位工商银行卡卡号'); message.warning('请输入正确的19位银行卡卡号');
return false; return false;
} }
return data; return data;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论