Commit 1d3a8e98 by qianyuheng

xiugai

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