Commit 1d3a8e98 by qianyuheng

xiugai

parent 387690f8
......@@ -3,7 +3,7 @@ import {withRouter,Link} from 'react-router-dom';
import {Button,Modal,Table,Icon} from 'antd';
import '../../../mock';
//const BASE_URI = "/eIBS/service/"
//export const BASE_HOST = "/psbcfront/"
export const BASE_HOST = "/psbcfront/"
//export const BASE_URI=BASE_HOST+"service/";
export const BASE_URI="/psbcfront/service/";
......
......@@ -6,9 +6,9 @@ export default fieldSet = {
glgmod_glslst:[
],
branchinr:[
ownbch:[
{type:'string',max:8,message:'长度不能超过8个字符'}, // \cpdgrp\rec\branchinr 所属机构
{ required: true, message: '必输项' },
//{ required: true, message: '必输项' },
],
cpdflg:[
{type:'string',max:8,message:'长度不能超过8个字符'}, // \cpdgrp\rec\cpdflg 汇款类型
......@@ -34,7 +34,7 @@ export default fieldSet = {
{ required: true, message: '必输项' },
],
paytyp:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \cpdgrp\rec\paytyp 汇款方式
{type:'string',max:4,message:'长度不能超过1个字符'}, // \cpdgrp\rec\paytyp 汇款方式
{ required: true, message: '必输项' },
],
pyeacc:[
......@@ -50,7 +50,7 @@ export default fieldSet = {
{ required: true, message: '必输项' },
],
valdat:[
{type:'string',max:10,message:'长度不能超过8个字符'}, // \cpdgrp\rec\valdat 起息日
// {type:'string',max:20,message:'长度不能超过8个字符'}, // \cpdgrp\rec\valdat 起息日
{ required: true, message: '必输项' },
],
bas_actiondesc:[
......@@ -61,81 +61,81 @@ export default fieldSet = {
],
bas_buscode:[
{type:'string',max:22,message:'长度不能超过22个字符'}, // \bopmod\dbagrp\bas\buscode 银行业务编号
{required:true,message:'请输入银行业务编号'}
// {required:true,message:'请输入银行业务编号'}
],
bas_custcod:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \bopmod\dbagrp\bas\custcod 组织机构
{validator(rule, value, callback, source, options) {
if(source.bas_custype=='C'&&!value){
callback('汇款人类型为对公用户时必填')
}else{
callback();
}
}}
//{validator(rule, value, callback, source, options) {
// if(source.bas_custype=='C'&&!value){
// callback('汇款人类型为对公用户时必填')
// }else{
// callback();
// }
// }}
],
bas_custnm:[
{type:'string',max:128,message:'长度不能超过128个字符'}, // \bopmod\dbagrp\bas\custnm 收款人名称
{ required: true, message: '必输项' },
// { required: true, message: '必输项' },
],
bas_custype:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \bopmod\dbagrp\bas\custype 收款人类型
],
bas_exrate:[
{type:'string',max:13,message:'长度不能超过13个字符'}, // \bopmod\dbagrp\bas\exrate 结汇汇率
{validator(rule, value, callback, source, options) {
if(source.bas_lcyamt>0&&!value){
callback('结汇汇率必填')
}else{
callback();
}
}}
//{validator(rule, value, callback, source, options) {
// if(source.bas_lcyamt>0&&!value){
// callback('结汇汇率必填')
// }else{
// callback();
// }
// }}
],
bas_fcyacc:[
{type:'string',max:32,message:'长度不能超过32个字符'}, // \bopmod\dbagrp\bas\fcyacc 外汇帐号/银行卡号
{validator(rule, value, callback, source, options) {
if(source.bas_fcyamt&&!value){
callback('有现汇金额时必填')
}else{
callback();
}
}}
// {validator(rule, value, callback, source, options) {
// if(source.bas_fcyamt&&!value){
// callback('有现汇金额时必填')
// }else{
// callback();
// }
// }}
],
bas_fcyamt:[
{type:'string',max:22,message:'长度不能超过22个字符'}, // \bopmod\dbagrp\bas\fcyamt 现汇金额
{validator(rule, value, callback, source, options) {
if(source.bas_fcyacc&&value<=0){
callback('账号不为空金额必须大于0')
}else{
callback();
}
}}
//{validator(rule, value, callback, source, options) {
// if(source.bas_fcyacc&&value<=0){
// callback('账号不为空金额必须大于0')
// }else{
// callback();
// }
// }}
],
bas_idcode:[
{type:'string',max:32,message:'长度不能超过32个字符'}, // \bopmod\dbagrp\bas\idcode 个人身份证件号码
{validator(rule, value, callback, source, options) {
if(source.bas_custype!=='C'&&!value){
callback('汇款人类型不为对公用户时必填')
}else{
callback();
}
}}
//{validator(rule, value, callback, source, options) {
// if(source.bas_custype!=='C'&&!value){
// callback('汇款人类型不为对公用户时必填')
// }else{
// callback();
// }
// }}
],
bas_inchargeamt:[
{type:'string',max:22,message:'长度不能超过22个字符'}, // \bopmod\dbagrp\bas\inchargeamt 国内银行扣费金额
{pattern:/^[1-9]\d*$/,message:'请输入大于0的整数'},
//{pattern:/^[1-9]\d*$/,message:'请输入大于0的整数'},
],
bas_inchargeccy:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \bopmod\dbagrp\bas\inchargeccy 国内银行扣费币种
],
bas_lcyacc:[
{type:'string',max:32,message:'长度不能超过32个字符'}, // \bopmod\dbagrp\bas\lcyacc 人民币帐号/银行卡号
{validator(rule, value, callback, source, options) {
if(source.bas_exrate&& source.bas_lcyamt&&!value ){
callback('结汇汇率和结汇金额不为空时必填')
}else{
callback();
}
}}
// {validator(rule, value, callback, source, options) {
// if(source.bas_exrate&& source.bas_lcyamt&&!value ){
// callback('结汇汇率和结汇金额不为空时必填')
// }else{
// callback();
// }
// }}
],
bas_lcyamt:[
{type:'string',max:22,message:'长度不能超过22个字符'}, // \bopmod\dbagrp\bas\lcyamt 结汇金额
......@@ -146,28 +146,28 @@ export default fieldSet = {
],
bas_oppuser:[
{type:'string',max:128,message:'长度不能超过128个字符'}, // \bopmod\dbagrp\bas\oppuser 付款人名称
{required:true,message:'请输入收款人名称'},
{pattern:/^(JW)|(JN)/,message:'必须以JW或JN开头'}
// {required:true,message:'请输入收款人名称'},
// {pattern:/^(JW)|(JN)/,message:'必须以JW或JN开头'}
],
bas_othacc:[
{type:'string',max:32,message:'长度不能超过32个字符'}, // \bopmod\dbagrp\bas\othacc 其它帐号/银行卡号
{validator(rule, value, callback, source, options) {
if(source.bas_othamt!=0&&!value){
callback('请输入其他账号/银行卡号')
}else{
callback();
}
}}
// {validator(rule, value, callback, source, options) {
// if(source.bas_othamt!=0&&!value){
// callback('请输入其他账号/银行卡号')
// }else{
// callback();
// }
// }}
],
bas_othamt:[
{type:'string',max:22,message:'长度不能超过22个字符'}, // \bopmod\dbagrp\bas\othamt 其它金额
{validator(rule, value, callback, source, options) {
if(source.bas_othacc&&value<=0){
callback('金额必须大于0');
}else{
callback();
}
}}
// {validator(rule, value, callback, source, options) {
// if(source.bas_othacc&&value<=0){
// callback('金额必须大于0');
// }else{
// callback();
// }
// }}
],
bas_outchargeamt:[
{type:'string',max:22,message:'长度不能超过22个字符'}, // \bopmod\dbagrp\bas\outchargeamt 国外银行扣费金额
......@@ -202,15 +202,15 @@ export default fieldSet = {
],
dcl_country:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \bopmod\dbagrp\dcl\country 付款人常驻国家/地区编码
{ required: true, message: '必输项' },
//{ required: true, message: '必输项' },
],
dcl_crtuser:[
{type:'string',max:20,message:'长度不能超过20个字符'}, // \bopmod\dbagrp\dcl\crtuser 填报人
{ required: true, message: '必输项' },
// { required: true, message: '必输项' },
],
dcl_inptelc:[
{type:'string',max:20,message:'长度不能超过20个字符'}, // \bopmod\dbagrp\dcl\inptelc 填报人电话
{ required: true, message: '必输项' },
// { required: true, message: '必输项' },
],
dcl_isref:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \bopmod\dbagrp\dcl\isref 是否出口核销项下收汇
......@@ -223,52 +223,52 @@ export default fieldSet = {
],
dcl_rptdate:[
{type:'string',max:8,message:'长度不能超过8个字符'}, // \bopmod\dbagrp\dcl\rptdate 申报日期
{ required: true, message: '必输项' },
// { required: true, message: '必输项' },
],
dcl_rptno:[
{type:'string',max:22,message:'长度不能超过22个字符'}, // \bopmod\dbagrp\dcl\rptno 申报号码
],
dcl_tc1amt:[
{type:'string',max:22,message:'长度不能超过22个字符'}, // \bopmod\dbagrp\dcl\tc1amt 相应金额1
{ required: true, message: '必输项' },
// { required: true, message: '必输项' },
],
dcl_tc2amt:[
{type:'string',max:22,message:'长度不能超过22个字符'}, // \bopmod\dbagrp\dcl\tc2amt 相应金额2
{validator(rule, value, callback, source, options) {
if(source.dcl_txcode2&& !value ){
callback('有交易编码2时必填');
}else{
callback();
}
}}
// {validator(rule, value, callback, source, options) {
// if(source.dcl_txcode2&& !value ){
// callback('有交易编码2时必填');
// }else{
// callback();
// }
// }}
],
dcl_tx2rem:[
{type:'string',max:256,message:'长度不能超过256个字符'}, // \bopmod\dbagrp\dcl\tx2rem 交易附言2
{validator(rule, value, callback, source, options) {
if(source.dcl_txcode2&& !value ){
callback('有交易编码2时必填');
}else{
callback();
}
}}
// {validator(rule, value, callback, source, options) {
// if(source.dcl_txcode2&& !value ){
// callback('有交易编码2时必填');
// }else{
// callback();
// }
// }}
],
dcl_txcode:[
{type:'string',max:6,message:'长度不能超过6个字符'}, // \bopmod\dbagrp\dcl\txcode 交易编码1
{ required: true, message: '必输项' },
//{ required: true, message: '必输项' },
],
dcl_txcode2:[
{type:'string',max:6,message:'长度不能超过6个字符'}, // \bopmod\dbagrp\dcl\txcode2 交易编码2
{validator(rule, value, callback, source, options) {
if(value==source.dcl_txcode){
callback('不能与交易编码1相同');
}else{
callback();
}
}}
// {validator(rule, value, callback, source, options) {
// if(value==source.dcl_txcode){
// callback('不能与交易编码1相同');
// }else{
// callback();
// }
// }}
],
dcl_txrem:[
{type:'string',max:256,message:'长度不能超过256个字符'}, // \bopmod\dbagrp\dcl\txrem 交易附言1
{ required: true, message: '必输项' },
// { required: true, message: '必输项' },
],
baspp_cornam:[
{type:'string',max:6,message:'长度不能超过6个字符'}, // \bopmod\dbap\baspp\cornam
......@@ -320,64 +320,64 @@ export default fieldSet = {
],
bas1_buscode:[
{type:'string',max:22,message:'长度不能超过22个字符'}, // \bopmod\dbdgrp\bas\buscode 银行业务编号
{required:true,message:'请输入银行业务编号'}
// {required:true,message:'请输入银行业务编号'}
],
bas1_custcod:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \bopmod\dbdgrp\bas\custcod 组织机构
{validator(rule, value, callback, source, options) {
if(source.bas1_custype=='C'&&!value){
callback('汇款人类型为对公用户时必填')
}else{
callback();
}
}}
// {validator(rule, value, callback, source, options) {
// if(source.bas1_custype=='C'&&!value){
// callback('汇款人类型为对公用户时必填')
// }else{
// callback();
// }
// }}
],
bas1_custnm:[
{type:'string',max:128,message:'长度不能超过128个字符'}, // \bopmod\dbdgrp\bas\custnm 收款人名称
{ required: true, message: '必输项' },
// { required: true, message: '必输项' },
],
bas1_custype:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \bopmod\dbdgrp\bas\custype 收款人类型
],
bas1_exrate:[
{type:'string',max:13,message:'长度不能超过13个字符'}, // \bopmod\dbdgrp\bas\exrate 结汇汇率
{validator(rule, value, callback, source, options) {
if(source.bas1_lcyamt>0&&!value){
callback('结汇汇率必填')
}else{
callback();
}
}}
// {validator(rule, value, callback, source, options) {
// if(source.bas1_lcyamt>0&&!value){
// callback('结汇汇率必填')
// }else{
// callback();
// }
// }}
],
bas1_fcyacc:[
{type:'string',max:32,message:'长度不能超过32个字符'}, // \bopmod\dbdgrp\bas\fcyacc 外汇帐号/银行卡号
{validator(rule, value, callback, source, options) {
if(source.bas1_fcyamt&&!value){
callback('有现汇金额时必填')
}else{
callback();
}
}}
// {validator(rule, value, callback, source, options) {
// if(source.bas1_fcyamt&&!value){
// callback('有现汇金额时必填')
// }else{
// callback();
// }
// }}
],
bas1_fcyamt:[
{type:'string',max:22,message:'长度不能超过22个字符'}, // \bopmod\dbdgrp\bas\fcyamt 现汇金额
{validator(rule, value, callback, source, options) {
if(source.bas1_fcyacc&&value<=0){
callback('账号不为空金额必须大于0')
}else{
callback();
}
}}
// {validator(rule, value, callback, source, options) {
// if(source.bas1_fcyacc&&value<=0){
// callback('账号不为空金额必须大于0')
// }else{
// callback();
// }
// }}
],
bas1_idcode:[
{type:'string',max:32,message:'长度不能超过32个字符'}, // \bopmod\dbdgrp\bas\idcode 个人身份证件号码
{validator(rule, value, callback, source, options) {
if(source.bas1_custype!=='C'&&!value){
callback('汇款人类型不为对公用户时必填')
}else{
callback();
}
}}
// {validator(rule, value, callback, source, options) {
// if(source.bas1_custype!=='C'&&!value){
// callback('汇款人类型不为对公用户时必填')
// }else{
// callback();
// }
// }}
],
bas1_inchargeamt:[
{type:'string',max:22,message:'长度不能超过22个字符'}, // \bopmod\dbdgrp\bas\inchargeamt 国内银行扣费金额
......@@ -388,13 +388,13 @@ export default fieldSet = {
],
bas1_lcyacc:[
{type:'string',max:32,message:'长度不能超过32个字符'}, // \bopmod\dbdgrp\bas\lcyacc 人民币帐号/银行卡号
{validator(rule, value, callback, source, options) {
if(source.bas1_exrate&& source.bas1_lcyamt&&!value ){
callback('结汇汇率和结汇金额不为空时必填')
}else{
callback();
}
}}
// {validator(rule, value, callback, source, options) {
// if(source.bas1_exrate&& source.bas1_lcyamt&&!value ){
// callback('结汇汇率和结汇金额不为空时必填')
// }else{
// callback();
// }
// }}
],
bas1_lcyamt:[
{type:'string',max:22,message:'长度不能超过22个字符'}, // \bopmod\dbdgrp\bas\lcyamt 结汇金额
......@@ -405,17 +405,17 @@ export default fieldSet = {
],
bas1_oppuser:[
{type:'string',max:128,message:'长度不能超过128个字符'}, // \bopmod\dbdgrp\bas\oppuser 付款人名称
{ required: true, message: '必输项' },
// { required: true, message: '必输项' },
],
bas1_othacc:[
{type:'string',max:32,message:'长度不能超过32个字符'}, // \bopmod\dbdgrp\bas\othacc 其它帐号/银行卡号
{validator(rule, value, callback, source, options) {
if(source.bas1_othamt&&!value){
callback('请输入其他账号/银行卡号')
}else{
callback();
}
}}
// {validator(rule, value, callback, source, options) {
// if(source.bas1_othamt&&!value){
// callback('请输入其他账号/银行卡号')
// }else{
// callback();
// }
// }}
],
bas1_othamt:[
{type:'string',max:22,message:'长度不能超过22个字符'}, // \bopmod\dbdgrp\bas\othamt 其它金额
......@@ -439,7 +439,7 @@ export default fieldSet = {
],
bas1_txccy:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \bopmod\dbdgrp\bas\txccy 收入款币种
{ required: true, message: '必输项' },
// { required: true, message: '必输项' },
],
vrf_actiondesc:[
{type:'string',max:128,message:'长度不能超过128个字符'}, // \bopmod\dbdgrp\vrf\actiondesc 修改/删除原因
......@@ -449,11 +449,11 @@ export default fieldSet = {
],
vrf_crtuser:[
{type:'string',max:20,message:'长度不能超过20个字符'}, // \bopmod\dbdgrp\vrf\crtuser 填报人
{ required: true, message: '必输项' },
// { required: true, message: '必输项' },
],
vrf_inptelc:[
{type:'string',max:20,message:'长度不能超过20个字符'}, // \bopmod\dbdgrp\vrf\inptelc 填报人电话
{ required: true, message: '必输项' },
// { required: true, message: '必输项' },
],
vrf_isref:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \bopmod\dbdgrp\vrf\isref 是否出口核销项下收汇
......@@ -469,52 +469,52 @@ export default fieldSet = {
],
vrf_rptdate:[
{type:'string',max:8,message:'长度不能超过8个字符'}, // \bopmod\dbdgrp\vrf\rptdate 申报日期
{ required: true, message: '必输项' },
// { required: true, message: '必输项' },
],
vrf_rptno:[
{type:'string',max:22,message:'长度不能超过22个字符'}, // \bopmod\dbdgrp\vrf\rptno 申报号码
],
vrf_tc1amt:[
{type:'string',max:22,message:'长度不能超过22个字符'}, // \bopmod\dbdgrp\vrf\tc1amt 相应金额1
{ required: true, message: '必输项' },
// { required: true, message: '必输项' },
],
vrf_tc2amt:[
{type:'string',max:22,message:'长度不能超过22个字符'}, // \bopmod\dbdgrp\vrf\tc2amt 相应金额2
{validator(rule, value, callback, source, options) {
if(source.vrf_txcode2&& !value ){
callback('有交易编码2时必填');
}else{
callback();
}
}}
// {validator(rule, value, callback, source, options) {
// if(source.vrf_txcode2&& !value ){
// callback('有交易编码2时必填');
// }else{
// callback();
// }
// }}
],
vrf_tx2rem:[
{type:'string',max:256,message:'长度不能超过256个字符'}, // \bopmod\dbdgrp\vrf\tx2rem 交易附言2
{validator(rule, value, callback, source, options) {
if(source.vrf_txcode2&& !value ){
callback('有交易编码2时必填');
}else{
callback();
}
}}
//{validator(rule, value, callback, source, options) {
// if(source.vrf_txcode2&& !value ){
// callback('有交易编码2时必填');
// }else{
// callback();
// }
// }}
],
vrf_txcode:[
{type:'string',max:6,message:'长度不能超过6个字符'}, // \bopmod\dbdgrp\vrf\txcode 交易编码1
{ required: true, message: '必输项' },
// { required: true, message: '必输项' },
],
vrf_txcode2:[
{type:'string',max:6,message:'长度不能超过6个字符'}, // \bopmod\dbdgrp\vrf\txcode2 交易编码2
{validator(rule, value, callback, source, options) {
if(value==source.vrf_txcode){
callback('不能与交易编码1相同');
}else{
callback();
}
}}
//{validator(rule, value, callback, source, options) {
// if(value==source.vrf_txcode){
// callback('不能与交易编码1相同');
// }else{
// callback();
// }
// }}
],
vrf_txrem:[
{type:'string',max:256,message:'长度不能超过256个字符'}, // \bopmod\dbdgrp\vrf\txrem 交易附言1
{ required: true, message: '必输项' },
// { required: true, message: '必输项' },
],
baspp1_cornam:[
{type:'string',max:6,message:'长度不能超过6个字符'}, // \bopmod\dbdp\baspp\cornam
......@@ -548,7 +548,7 @@ export default fieldSet = {
],
pts_adrblk:[
{type:'string',max:143,message:'长度不能超过140个字符'}, // \cpdgrp\orc\pts\adrblk SWIFT地址
{ required: true, message: '必输项' },
// { required: true, message: '必输项' },
],
pts_adrcn:[
{type:'string',max:60,message:'长度不能超过60个字符'}, // \cpdgrp\orc\pts\adrcn 中文地址
......@@ -568,7 +568,7 @@ export default fieldSet = {
],
pts1_adrblk:[
{type:'string',max:143,message:'长度不能超过140个字符'}, // \cpdgrp\ori\pts\adrblk SWIFT地址
{ required: true, message: '必输项' },
// { required: true, message: '必输项' },
],
pts1_adrcn:[
{type:'string',max:60,message:'长度不能超过60个字符'}, // \cpdgrp\ori\pts\adrcn 中文地址
......@@ -585,7 +585,7 @@ export default fieldSet = {
],
pts2_adrblk:[
{type:'string',max:143,message:'长度不能超过140个字符'}, // \cpdgrp\pyb\pts\adrblk SWIFT地址
{ required: true, message: '必输项' },
// { required: true, message: '必输项' },
],
pts2_adrcn:[
{type:'string',max:60,message:'长度不能超过60个字符'}, // \cpdgrp\pyb\pts\adrcn 中文地址
......@@ -602,7 +602,7 @@ export default fieldSet = {
],
pts3_adrblk:[
{type:'string',max:143,message:'长度不能超过140个字符'}, // \cpdgrp\pye\pts\adrblk SWIFT地址
{ required: true, message: '必输项' },
// { required: true, message: '必输项' },
],
pts3_adrcn:[
{type:'string',max:60,message:'长度不能超过60个字符'}, // \cpdgrp\pye\pts\adrcn 中文地址
......
......@@ -6,7 +6,7 @@ import {modelWrapper} from '@/components/RunTime'
class Cptadv {
@observable
branchinr="" // \cpdgrp\rec\branchinr 所属机构
ownbch="" // \cpdgrp\rec\ownbch 所属机构
@observable
cpdflg="" // \cpdgrp\rec\cpdflg 汇款类型
......
import React, { Component, Fragment } from 'react'
import {
Page, Validator, Notification, FormItem, Table,
Page, Validator, Notification, FormItem,BottomBtn, Table,
InputItem, Input, Bind, SelectItem, Button, Label, DatePickerItem, Section, ConfirmButton, Steps
} from '@/components/Common-Library'
import { Row, Col, Spin } from 'antd'
//import { ButtonModal,PtyPicker, ModalTest } from '@/components/Business-Library'
import Api from '@/service/api'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable } from 'mobx'
import { PtyPicker, ModalTest } from '@/components/Business-Library'
import { Row, Col, Popconfirm, Modal ,Spin,Divider} from 'antd';
import { PtyPicker } from '@/components/Business-Library'
import { Link, withRouter } from 'react-router-dom'
import Ptspta from '@/views/Public/Ptspta'
const CodeTable = CodeTableFactory.getInstance()
import Ptspta1 from '@/views/Public/Ptspta1'
import Business from '@/views/Public/Business'
const { Pre, Next, StepWrapper } = Steps
const CodeTable = CodeTableFactory.getInstance()
const confirm = Modal.confirm
@withRouter
@inject('UserContext')
@inject('i18n')
......@@ -29,8 +32,16 @@ export default class CptadvBasicScreen extends Page {
this.bind = Bind.bind(this)
}
onTabFocus(){
console.log('#我被选中#')
}
onTabBlur(){
//this.goNext();
console.log('#我已离开#')
}
// 获取业务编号 按钮事件
onGetref = async () => {
async onGetref() {
const rtnmsg = await Api.post(this.props.extra.inifrm + '/getref', { data: this.model })
if (rtnmsg.retcod == SUCCESS) {
// Notification.success({ message: '数据提交成功!' })
......@@ -42,60 +53,18 @@ export default class CptadvBasicScreen extends Page {
//余下逻辑处理
}
// 退出按钮
/*//退出按钮
onRtn = async () => {
// this.formBlur = true //已触发表单提交处理
this.props.history.push("/home");
this.com.wrappedInstance.wrappedInstance.onRtn();
}
// 暂存
// 暂存按钮
onPed = async () => {
// 暂存之前的检测几个必输项
// \cpdgrp\rec\ownref 业务编号
if (this.model.ownref == "") {
return false
}
// \cpdgrp\cbs\max\cur Currency 收款币种金额
if (this.model.max_cur == "") {
return false
}
// \cpdgrp\cbs\max\amt Balance 收款币种金额
if (this.model.max_amt == "" || this.model.max_amt == "0") {
return false
}
this.formBlur = true //已触发表单提交处理
Validator.validate(this.model, this.model.descriptor, async (errors, values) => {
if (errors)
return
const rtnmsg = await Api.post(this.props.extra.inifrm + '/ped', { data: this.model })
if (rtnmsg.retcod == SUCCESS) {
//Notification.success({ message: '数据提交成功!' })
this.props.history.push("/home");
return true;
}
else {
Notification.error({ message: '服务端请求失败!' })
}
//余下逻辑处理
})
this.com.wrappedInstance.wrappedInstance.onPed();
}
// 校验 按钮
onChk = () => {
this.formBlur = true //已触发表单提交处理
Validator.validate(this.model, this.model.descriptor, async (errors, values) => {
if (errors)
return false;
const rtnmsg = await Api.post(this.props.extra.inifrm + '/chk', { data: this.model })
if (rtnmsg.retcod == SUCCESS) {
// Notification.success({ message: '数据提交成功!' })
return true;
}
else {
Notification.error({ message: '服务端请求失败!' })
}
//余下逻辑处理
})
this.formBlur=true
this.com.wrappedInstance.wrappedInstance.onChk();
}
async onRecal() {
......@@ -109,123 +78,71 @@ export default class CptadvBasicScreen extends Page {
Notification.error({ message: '服务端请求失败!' })
}
//余下逻辑处理
}
}*/
onSwftyp = () => {
this.formBlur = true //已触发表单提交处理
Validator.validate(this.model, this.model.descriptor, async (errors, values) => {
if (errors)
return
const rtnmsg = await Api.post(this.props.extra.inifrm + '/swftyp', { data: this.model })
if (rtnmsg.retcod == SUCCESS) {
Notification.success({ message: '数据提交成功!' })
//清算路径
onLiqtyp = () => {
const liqtyp1 = [
{ label: '01-SWIFT支付', value: 'SWT' },
{ label: '02-境内外币支付', value: 'FMT' },
{ label: '03-行内划转', value: 'ZZT' },
]
const liqtyp2 = [
{ label: '03-行内划转', value: 'ZZT' },
{ label: '04-跨境人民币支付', value: 'CIP' },
{ label: '05-人民币大额支付', value: 'CMT' },
]
const cur = this.model.max_cur
return (<SelectItem InputProps={{
...this.bind("liqtyp"), disabled: !cur,
onChange: val => {
this.model.liqtyp = val
this.model.swftyp = ""
}
}}
code={!cur ? CodeTable.liqtyp : cur == 'CNY' ? liqtyp2 : liqtyp1}
/>)
}
else {
Notification.error({ message: '服务端请求失败!' })
}
//余下逻辑处理
})
}
goNext = () => {
this.formBlur = true //已触发表单提交处理
this.onRecal()
Validator.validate(this.model, this.model.descriptor, (errors, values) => {
if (!errors) {
this.props.steps.go(1)
return
}
for (let item of errors) {
if (this.bindSet.has(item.field))
return;
}
this.props.steps.go(1)
})
}
// componentWillUnmount() {
// this.model.closeValidate()//关闭校验
// }
//按钮事件
onSel01 = () => {
this.formBlur = true //已触发表单提交处理
Validator.validate(this.model, this.model.descriptor, async (errors, values) => {
if (errors)
return
const rtnmsg = await Api.post(this.props.extra.inifrm + '/sel', { data: this.model })
if (rtnmsg.retcod == SUCCESS) {
Notification.success({ message: '数据提交成功!' })
}
else {
Notification.error({ message: '服务端请求失败!' })
}
//余下逻辑处理
})
}
onSel02 = () => {
this.formBlur = true //已触发表单提交处理
Validator.validate(this.model, this.model.descriptor, async (errors, values) => {
if (errors)
return
const rtnmsg = await Api.post(this.props.extra.inifrm + '/sel0', { data: this.model })
if (rtnmsg.retcod == SUCCESS) {
Notification.success({ message: '数据提交成功!' })
}
else {
Notification.error({ message: '服务端请求失败!' })
}
//余下逻辑处理
})
}
onSel03 = () => {
this.formBlur = true //已触发表单提交处理
Validator.validate(this.model, this.model.descriptor, async (errors, values) => {
if (errors)
return
const rtnmsg = await Api.post(this.props.extra.inifrm + '/sel1', { data: this.model })
if (rtnmsg.retcod == SUCCESS) {
Notification.success({ message: '数据提交成功!' })
}
else {
Notification.error({ message: '服务端请求失败!' })
}
//余下逻辑处理
})
//报文类型
onSwftyp = () => {
const swfcod = {
SWT: [
{ label: 'MT103', value: '103' },
{ label: 'MT103+MT202', value: '103202' },
],
FMT: [
{ label: 'FMT100', value: 'F00' },
{ label: 'FMT101', value: 'F01' },
],
CIP: [
{ label: 'CIPS001', value: 'C00' },
{ label: 'CIPS101', value: 'C01' },
],
CMT: [
{ label: 'CMT100', value: 'CM0' },
],
}
swfcod.ZZT = swfcod.SWT
const liqtyp = this.model.liqtyp
return (
<SelectItem InputProps={{ ...this.bind("swftyp"), disabled: (!liqtyp || liqtyp == 'ZZT') }} code={swfcod[liqtyp]} />
//<SelectItem InputProps={{...this.bind("swftyp"),disabled: ( !liqtyp||liqtyp=='ZZT')}} code={swfcod[liqtyp]} />
)
}
onSel04 = () => {
this.formBlur = true //已触发表单提交处理
Validator.validate(this.model, this.model.descriptor, async (errors, values) => {
if (errors)
return
const rtnmsg = await Api.post(this.props.extra.inifrm + '/sel2', { data: this.model })
if (rtnmsg.retcod == SUCCESS) {
Notification.success({ message: '数据提交成功!' })
}
else {
Notification.error({ message: '服务端请求失败!' })
}
//余下逻辑处理
})
}
//交易内实现
renderPage() {
const bind = this.bind
const { i18n } = this.props
const { bchlevelLst } = this.props.extra
if (this.props.flag == true) {
return <Spin style={{ width: "100%", justifyContent: "center" }} spinning={this.props.flag} />
}
return (
<div style={{ position: 'relative' }}>
<Business wrappedComponentRef={ref => (this.com = ref)} page={this} extra={this.props.extra} model={this.model} />
{/*第一行*/}
<Row>
......@@ -241,7 +158,7 @@ export default class CptadvBasicScreen extends Page {
</Col>
<Col span={4} offset={1}>
{/* 业务编号 查询按钮 */}
<Button type="primary" onClick={this.onGetref}>
<Button type="primary" onClick={() => this.onGetref()}>
<Label i18nId="CPTP_BT000091" />
</Button>
</Col>
......@@ -255,7 +172,7 @@ export default class CptadvBasicScreen extends Page {
</Col>
<Col span={14}>
{/* // \cpdgrp\rec\branchinr 所属机构 业务归属机构 选择输入框 动态码表?? */}
<SelectItem InputProps={bind("branchinr")} code={this.props.extra.bchlevelLst} />
<SelectItem InputProps={bind("ownbch")} code={bchlevelLst} />
</Col>
</Row>
</Col>
......@@ -288,56 +205,65 @@ export default class CptadvBasicScreen extends Page {
</Row>
</Col>
</Row>
{/*第三行*/}
<Row >
<Row>
<Col span={12}>
<Row className='row'>
<Col span={5} offset={2}>
{/* 汇款类型 label框 */}
<Label i18nId={"CPTP_LT000061"} />
{/* 收款币种金额 label框 */}
<Label i18nId={"CPTP_LT000062"} />
</Col>
<Col span={14}>
{/* // \cpdgrp\rec\cpdflg 汇款类型 汇款类型 选择输入框 */}
<SelectItem InputProps={bind("cpdflg")} code={CodeTable.custyp} />
<Col span={5}>
<SelectItem InputProps={{
...bind("max_cur"), onChange: val => {
this.model.max_cur = val
this.model.liqtyp = ""
this.model.swftyp = ""
}
}}
code={CodeTable.curtxt} />
</Col>
<Col span={8} offset={1}>
<InputItem InputProps={{...bind("max_amt"),type:"amount",cur:this.model.max_cur}} />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className='row'>
<Col span={5} offset={2}>
{/* 解付方式 label框 */}
<Label i18nId={"CPTP_LT000064"} />
{/* 起息日 label框 */}
<Label i18nId={"CPTP_LT000063"} />
</Col>
<Col span={14}>
{/* // \cpdgrp\rec\diptyp 解付方式 解付方式 选择输入框 */}
<SelectItem InputProps={bind("diptyp")} code={CodeTable.diptyp} />
{/* // \cpdgrp\rec\valdat 起息日 起息日 选择输入框 */}
<DatePickerItem InputProps={bind("valdat")} />
</Col>
</Row>
</Col>
</Row>
{/*第四行*/}
{/*第三行*/}
<Row >
<Col span={12}>
<Row className='row'>
<Col span={5} offset={2}>
{/* 报文类型 label框 */}
<Label i18nId={"CPTP_LT000066"} />
{/* 汇款类型 label框 */}
<Label i18nId={"CPTP_LT000061"} />
</Col>
<Col span={14}>
{/* // \cpdgrp\rec\swftyp 报文类型 报文类型 选择输入框 */}
<SelectItem InputProps={bind("swftyp")} code={CodeTable.swftyp} />
{/* // \cpdgrp\rec\cpdflg 汇款类型 汇款类型 选择输入框 */}
<SelectItem InputProps={bind("cpdflg")} code={CodeTable.custyp} />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className='row'>
<Col span={5} offset={2}>
{/* 汇款人性质 label框 */}
<Label i18nId={"CPTP_LT000087"} />
{/* 解付方式 label框 */}
<Label i18nId={"CPTP_LT000064"} />
</Col>
<Col span={14}>
{/* // \bopmod\dbagrp\bas\custype 收款人类型 汇款人性质 选择输入框 */}
<SelectItem InputProps={bind("custyp")} code={CodeTable.ptytyp} desp="汇款人性质" path="/cpdgrp/rec/custyp" />
{/* // \cpdgrp\rec\diptyp 解付方式 解付方式 选择输入框 */}
<SelectItem InputProps={bind("diptyp")} code={CodeTable.diptyp} />
</Col>
</Row>
</Col>
......@@ -347,69 +273,72 @@ export default class CptadvBasicScreen extends Page {
<Col span={12}>
<Row className='row'>
<Col span={5} offset={2}>
{/* 收款人国别 label框 */}
<Label i18nId={"CPTP_LT000088"} />
{/* 清算路径 label框 */}
<Label i18nId={"CPTP_LT000065"} />
</Col>
<Col span={14}>
{/* // \cpdgrp\rec\stacty 交易对手国别 收款人国别 选择输入框 */}
<SelectItem InputProps={bind("stacty")} code={this.props.extra.stactyLst} />
{/* // \cpdgrp\rec\liqtyp 清算路径 清算路径 选择输入框
<SelectItem InputProps={bind("liqtyp")} code={CodeTable.liqtyp} />*/}
{this.onLiqtyp()}
</Col>
</Row>
</Col>
<Col span={12}>
<Row className='row'>
<Col span={5} offset={2}>
{/* 清算路径 label框 */}
<Label i18nId={"CPTP_LT000065"} />
{/* 报文类型 label框 */}
<Label i18nId={"CPTP_LT000066"} />
</Col>
<Col span={14}>
{/* // \cpdgrp\rec\liqtyp 清算路径 清算路径 选择输入框 */}
<SelectItem InputProps={bind("liqtyp")} code={CodeTable.liqtyp} />
{/* // \cpdgrp\rec\swftyp 报文类型 报文类型 选择输入框
<SelectItem InputProps={bind("swftyp")} code={CodeTable.swftyp} />*/}
{this.onSwftyp()}
</Col>
</Row>
</Col>
</Row>
{/* 第六行 */}
<Row>
{/*第四行*/}
<Row >
<Col span={12}>
<Row className='row'>
<Col span={5} offset={2}>
{/* 收款币种金额 label框 */}
<Label i18nId={"CPTP_LT000062"} />
</Col>
<Col span={5}>
{/* // \cpdgrp\cbs\max\cur Currency 收款币种金额 币种类型 选择输入框 */}
<SelectItem InputProps={bind("max_cur")} code={CodeTable.curtxt} />
{/* 收款人国别 label框 */}
<Label i18nId={"CPTP_LT000088"} />
</Col>
<Col span={8} offset={1}>
{/* // \cpdgrp\cbs\max\amt Balance 收款币种金额 币种数量 输入框 */}
<InputItem InputProps={bind("max_amt")} />
<Col span={14}>
{/* // \cpdgrp\rec\stacty 交易对手国别 收款人国别 选择输入框 */}
<SelectItem InputProps={bind("stacty")} code={this.props.extra.stactyLst} />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className='row'>
<Col span={5} offset={2}>
{/* 起息日 label框 */}
<Label i18nId={"CPTP_LT000063"} />
{/* 汇款人性质 label框 */}
<Label i18nId={"CPTP_LT000087"} />
</Col>
<Col span={14}>
{/* // \cpdgrp\rec\valdat 起息日 起息日 选择输入框 */}
<DatePickerItem InputProps={bind("valdat")} />
{/* // \bopmod\dbagrp\bas\custype 收款人类型 汇款人性质 选择输入框 */}
<SelectItem InputProps={bind("custyp")} code={CodeTable.ptytyp} desp="汇款人性质" path="/cpdgrp/rec/custyp" />
</Col>
</Row>
</Col>
</Row>
{/*第七行*/}
{/* 四个查询 用public中的组件 */}
<Row>
<Col span={12}>
<Ptspta model={this.model} argArr={{ desc: "收款人", prefix: 'pts', url: 'cptadv/pyep_ptysel', flg: 'C', datakey: '\\cptp\\pyep\\ptslst' }} formBlur={this.formBlur}/>
{/*this.loadPtspta({desc:"收款人",prefix:'pts5',url:'cptopn/pyep_ptysel',flg:'C',datakey:'\\setmod\\msgmod\\pyep\\ptslst'})*/}
</Col>
<Col span={12}>
<Ptspta model={this.model} argArr={{ desc: "汇款人", prefix: 'pts', url: 'cptadv/orcp_ptysel', flg: 'C', datakey: '\\cptp\\orcp\\ptslst' }} formBlur={this.formBlur}/>
<Ptspta model={this.model} argArr={{ desc: "汇款人", prefix: 'pts1', url: 'cptadv/orcp_ptysel', flg: 'C', datakey: '\\cptp\\orcp\\ptslst' }} formBlur={this.formBlur}/>
</Col>
</Row>
......@@ -472,10 +401,10 @@ export default class CptadvBasicScreen extends Page {
<Row>
<Col span={12}>
<Ptspta model={this.model} argArr={{ desc: "我行账户行", prefix: 'pts', url: 'cptadv/pybp_ptysel', flg: 'B', datakey: '\\cptp\\pybp\\ptslst' }} formBlur={this.formBlur}/>
<Ptspta model={this.model} argArr={{ desc: "我行账户行", prefix: 'pts2', url: 'cptadv/pybp_ptysel', flg: 'B', datakey: '\\cptp\\pybp\\ptslst' }} formBlur={this.formBlur}/>
</Col>
<Col span={12}>
<Ptspta model={this.model} argArr={{ desc: "汇款人账户行", prefix: 'pts', url: 'cptadv/orip_ptysel', flg: 'B', datakey: '\\cptp\\orip\\ptslst' }} formBlur={this.formBlur}/>
<Ptspta model={this.model} argArr={{ desc: "汇款人账户行", prefix: 'pts3', url: 'cptadv/orip_ptysel', flg: 'B', datakey: '\\cptp\\orip\\ptslst' }} formBlur={this.formBlur}/>
</Col>
</Row>
{/*第九行*
......@@ -505,11 +434,10 @@ export default class CptadvBasicScreen extends Page {
datakey: '\\cptp\\pybp\\ptslst'
}} />
</Row>
*/}
<Row type="flex" justify="center">
<Col>
<div className='button2'>
{/* 退出按钮 */}
<div type="primary" className='button2'>
<ConfirmButton
onOK={this.onRtn}
title=""
......@@ -518,8 +446,7 @@ export default class CptadvBasicScreen extends Page {
<Label i18nId="MTABUT_BT000464" />
</ConfirmButton>
</div>
<div className='button2'>
{/* 暂存按钮 */}
<div type="primary" className='button2'>
<ConfirmButton
onOK={this.onPed}
title=""
......@@ -529,13 +456,14 @@ export default class CptadvBasicScreen extends Page {
</ConfirmButton>
</div>
<div className='button2'>
{/* 检核按钮 */}
<Button type="primary" onClick={this.onChk}>
<Label i18nId="MTABUT_BT000180" />
</Button>
</div>
</Col>
</Row>
</Row>*/}
{/* */} <BottomBtn _this={this} />
</div >
)
}
......
......@@ -42,7 +42,7 @@ export default class CptadvScreen extends Page {
let sptinr = '';
let rtnmsg = [];
if (this.props.location.query) {
sptinr = this.props.location.query.inr
sptinr = this.props.location.query.sptinr
this.extra.sptinr = sptinr
rtnmsg = await Api.post(this.extra.inifrm + '/init', { params: { sptinr } })
} else {
......@@ -50,7 +50,7 @@ export default class CptadvScreen extends Page {
}
if (rtnmsg.retcod == SUCCESS) {
Object.assign(this.model, rtnmsg.data)
this.extra.bchlevelLst = rtnmsg.codetable.branchinr;
this.extra.bchlevelLst = rtnmsg.codetable.ownbch;
this.extra.stactyLst = rtnmsg.codetable.stacty;
this.extra.bopmod_szflg = rtnmsg.codetable.bopmod_szflg;
this.setState({ flag: false })
......
import React, { Component, Fragment } from 'react'
import {
Page, Validator, Notification, FormItem,
Page, Validator, Notification, FormItem,BottomBtn,
InputItem, Input, Bind, SelectItem, Button, Label, DatePickerItem, Section, ConfirmButton, Steps
} from '@/components/Common-Library'
import Api from '@/service/api'
......@@ -14,11 +14,9 @@ import { Link, withRouter } from 'react-router-dom'
import Ptspta from '@/views/Public/Ptspta'
import Ptspta1 from '@/views/Public/Ptspta1'
import Business from '@/views/Public/Business'
const { Pre, Next, StepWrapper } = Steps
const CodeTable = CodeTableFactory.getInstance()
const confirm = Modal.confirm
@withRouter
@inject('UserContext')
@inject('i18n')
......@@ -53,7 +51,7 @@ export default class CptopnBasicScreen extends Page {
}
//余下逻辑处理
}
// 退出按钮
/*退出按钮
onRtn = async () => {
this.com.wrappedInstance.wrappedInstance.onRtn();
}
......@@ -66,6 +64,47 @@ export default class CptopnBasicScreen extends Page {
this.formBlur=true
this.com.wrappedInstance.wrappedInstance.onChk();
}
async onRecal() {
this.formBlur = true //已触发表单提交处理
const rtnmsg = await Api.post(this.props.extra.inifrm + '/setmod_ast', { data: this.model })
if (rtnmsg.retcod == SUCCESS) {
this.model.fegmod_feslst = rtnmsg.data.fegmod_feslst;
this.model.glgmod_glslst = rtnmsg.data.glgmod_glslst;
}
else {
Notification.error({ message: '服务端请求失败!' })
}
//余下逻辑处理
}
async onRecal1() {
this.formBlur = true //已触发表单提交处理
const rtnmsg = await Api.post(this.props.extra.inifrm + '/setmod_recal', { data: this.model })
if (rtnmsg.retcod == SUCCESS) {
this.model.fegmod_feslst = rtnmsg.data.fegmod_feslst;
this.model.glgmod_glslst = rtnmsg.data.glgmod_glslst;
}
else {
Notification.error({ message: '服务端请求失败!' })
}
//余下逻辑处理
}
goNext = () => {
this.formBlur = true //已触发表单提交处理
Validator.validate(this.model, this.model.descriptor, (errors, values) => {
if (!errors) {
this.props.steps.go(1)
this.onRecal()
return
}
for (let item of errors) {
if (this.bindSet.has(item.field))
return;
}
this.props.steps.go(1)
})
}
*/
//清算路径
onLiqtyp = () => {
......@@ -91,31 +130,6 @@ export default class CptopnBasicScreen extends Page {
/>)
}
async onRecal() {
this.formBlur = true //已触发表单提交处理
const rtnmsg = await Api.post(this.props.extra.inifrm + '/setmod_ast', { data: this.model })
if (rtnmsg.retcod == SUCCESS) {
this.model.fegmod_feslst = rtnmsg.data.fegmod_feslst;
this.model.glgmod_glslst = rtnmsg.data.glgmod_glslst;
}
else {
Notification.error({ message: '服务端请求失败!' })
}
//余下逻辑处理
}
async onRecal1() {
this.formBlur = true //已触发表单提交处理
const rtnmsg = await Api.post(this.props.extra.inifrm + '/setmod_recal', { data: this.model })
if (rtnmsg.retcod == SUCCESS) {
this.model.fegmod_feslst = rtnmsg.data.fegmod_feslst;
this.model.glgmod_glslst = rtnmsg.data.glgmod_glslst;
}
else {
Notification.error({ message: '服务端请求失败!' })
}
//余下逻辑处理
}
//报文类型
onSwftyp = () => {
const swfcod = {
......@@ -142,23 +156,6 @@ export default class CptopnBasicScreen extends Page {
//<SelectItem InputProps={{...this.bind("swftyp"),disabled: ( !liqtyp||liqtyp=='ZZT')}} code={swfcod[liqtyp]} />
)
}
goNext = () => {
this.formBlur = true //已触发表单提交处理
Validator.validate(this.model, this.model.descriptor, (errors, values) => {
if (!errors) {
this.props.steps.go(1)
this.onRecal()
return
}
for (let item of errors) {
if (this.bindSet.has(item.field))
return;
}
this.props.steps.go(1)
})
}
onCNYFMT = () => {
switch (this.model.liqtyp) {
case 'FMT':
......@@ -382,19 +379,13 @@ export default class CptopnBasicScreen extends Page {
</Row>
</Col>
</Row>
{/* 第九行 */}
{/* 第十一行 */}
{/*<Row>
{this.loadPtspta({desc:"我行账户行",prefix:'pts3',url:'cptopn/orip_ptysel',flg:'B',datakey:'\\setmod\\msgmod\\orip\\ptslst'})}
{this.loadPtspta({desc:"收款人", prefix:'pts4',url:'cptopn/pybp_ptysel',flg:'B',datakey:'\\setmod\\msgmod\\pybp\\ptslst'})}
</Row>*/}
</Row>
<Row type="flex" justify="center">
<Col>
<div className='button2'>
{/* 退出按钮 */}
<div type="primary" className='button2'>
<ConfirmButton
onOK={this.onRtn}
title=""
......@@ -403,8 +394,7 @@ export default class CptopnBasicScreen extends Page {
<Label i18nId="MTABUT_BT000464" />
</ConfirmButton>
</div>
<div className='button2'>
{/* 暂存按钮 */}
<div type="primary" className='button2'>
<ConfirmButton
onOK={this.onPed}
title=""
......@@ -414,13 +404,13 @@ export default class CptopnBasicScreen extends Page {
</ConfirmButton>
</div>
<div className='button2'>
{/* 检核按钮 */}
<Button type="primary" onClick={this.onChk}>
<Label i18nId="MTABUT_BT000180" />
</Button>
</div>
</Col>
</Row>
</Row>*/}
{/* */}<BottomBtn _this={this} />
</div >
)
}
......
......@@ -88,6 +88,24 @@ export default class PtsptaScreen extends Component {
this.model[this.props.argArr.prefix + '_adrblk'] = dataResult.join("\n");
}
}
clearTxt=()=>{
let prefix = this.props.argArr.prefix
if(this.model[prefix + '_extkey']==''){
this.model[prefix + '_namcn']=''
this.model[prefix + '_adrcn']=''
this.model[prefix + '_adrblk']=''
}
}
childEvevnt = childData => {
this.child = childData;
}
handleClick=()=>{
this.child.handleClick();
}
render() {
const bind = this.bind
const { argArr } = this.props
......@@ -104,10 +122,12 @@ export default class PtsptaScreen extends Component {
<Label value={desc} />
</Col>
<Col span={11} >
<InputItem InputProps={bind(prefix + '_extkey')} disabled={isDisabled} />
<InputItem InputProps={{...bind(prefix + '_extkey'),onAfterChange:this.clearTxt,onPressEnter:this.handleClick,formBlur:this.props.formBlur}} disabled={this.props.isDisabled} />
</Col>
<Col span={4} offset={1}>
<PtyPicker url={url} flg={flg} model={this.model} extkey={this.model[prefix + '_extkey']} dataKey={datakey} prefix={prefix} disabled={isDisabled} />
<PtyPicker url={url} flg={flg} model={this.model} extkey={this.model[prefix + '_extkey']} dataKey={datakey} prefix={prefix} disabled={this.props.isDisabled} extkey={this.model[prefix + '_extkey']} childEvevnt={this.childEvevnt} />
{/*<PtyPicker url={url} flg={flg} model={this.model} extkey={this.model[prefix + '_extkey']} dataKey={datakey} prefix={prefix} disabled={isDisabled} />*/}
</Col>
</Row>
<Row className="row">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment