Commit 9bea3e94 by lixinyi

模板保存逻辑修改

parent 2bc8d1bb
......@@ -65,14 +65,7 @@
>
{{ node.data.name }}</span
>
<!--添加 报文模板保存功能 -->
<template-infos
:mty="mty"
:obj="templateData"
:loginUser="loginUser"
ref="templateInfos"
>
</template-infos>
<el-button
v-if="
data.array &&
......@@ -149,6 +142,14 @@
</div>
</el-dialog>
<el-backtop style="right: 18px" />
<!--添加 报文模板保存功能 -->
<template-infos
:mty="mty"
:obj="templateData"
:loginUser="loginUser"
ref="templateInfos"
>
</template-infos>
</div>
</template>
......
......@@ -70,6 +70,10 @@ export default function validator(obj) {
if (!CBPR_Party_Name_Any_BIC_FormalRule(obj.undrlyg.txInf.cxlRsnInf.orgtr,"Cancellation Reason Information/Originator/Name")){
return false;
}
if(!CBPR_Reason_Code_NARR_Additional_Information_FormalRule(obj.undrlyg.txInf.cxlRsnInf,"Cancellation Reason Information")){
return false;
}
return true;
......@@ -180,9 +184,16 @@ function CBPR_Related_BAH_Business_Service_TextualRule() {
//If related BAH is present, it should transport the element Business Service.
}
function CBPR_Reason_Code_NARR_Additional_Information_FormalRule() {
function CBPR_Reason_Code_NARR_Additional_Information_FormalRule(obj,position) {
//r11 如果 Reason code= NARR,则附加信息是必填的。
const msg = "If Reason code = Narrative, then Additional Information is mandatory.";
if(obj.rsn.cd == 'NARR'){
if(isEmpty(obj.addtlInf)){
message(position,msg);
return false;
}
}
return true;
//If Reason code = NARR, then Additional Information is mandatory.
}
......
<!doctype html><html lang=""><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="favicon.ico"/><title>ISO手工拟报</title><script defer="defer" src="js/chunk-vendors.23ee7bd5.js"></script><script defer="defer" src="js/app.feb464e9.js"></script><script defer="defer" src="js/main.59945214.js"></script><link href="css/chunk-vendors.77489a8d.css" rel="stylesheet"><link href="css/app.acd80123.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but swiftiso-editor doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
\ No newline at end of file
<!doctype html><html lang=""><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="favicon.ico"/><title>ISO手工拟报</title><script defer="defer" src="js/chunk-vendors.23ee7bd5.js"></script><script defer="defer" src="js/app.90843083.js"></script><script defer="defer" src="js/main.59945214.js"></script><link href="css/chunk-vendors.77489a8d.css" rel="stylesheet"><link href="css/app.d2831041.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but swiftiso-editor doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
\ No newline at end of file
......@@ -41,6 +41,6 @@ cstmrPmtCxlReq.undrlyg*.orgnlPmtInfAndCxl*.txInf*.orgnlReqdColltnDt=orgnlReqdCol
cstmrPmtCxlReq.undrlyg*.orgnlPmtInfAndCxl*.txInf*.orgnlInstdAmt=orgnlInstdAmt
cstmrPmtCxlReq.undrlyg*.orgnlPmtInfAndCxl*.txInf*.cxlRsnInf*.orgtr=orgtr
cstmrPmtCxlReq.undrlyg*.orgnlPmtInfAndCxl*.txInf*.cxlRsnInf*.rsn=rsn
cstmrPmtCxlReq.undrlyg*.orgnlPmtInfAndCxl*.txInf*.cxlRsnInf*.AddtlInf=AddtlInf
cstmrPmtCxlReq.undrlyg*.orgnlPmtInfAndCxl*.txInf*.cxlRsnInf*.addtlInf=addtlInf
cstmrPmtCxlReq.undrlyg*.orgnlPmtInfAndCxl*.txInf*._case=_case
cstmrPmtCxlReq.undrlyg*.orgnlPmtInfAndCxl*.txInf*.cxlId=cxlId
\ No newline at end of file
......@@ -38,7 +38,7 @@ fiToFIPmtCxlReq.undrlyg*.txInf*.orgnlIntrBkSttlmAmt=orgnlIntrBkSttlmAmt
fiToFIPmtCxlReq.undrlyg*.txInf*.orgnlIntrBkSttlmDt=orgnlIntrBkSttlmDt
fiToFIPmtCxlReq.undrlyg*.txInf*.cxlRsnInf*.orgtr=orgtr
fiToFIPmtCxlReq.undrlyg*.txInf*.cxlRsnInf*.rsn=rsn
fiToFIPmtCxlReq.undrlyg*.txInf*.cxlRsnInf*.AddtlInf=AddtlInf
fiToFIPmtCxlReq.undrlyg*.txInf*.cxlRsnInf*.addtlInf=addtlInf
fiToFIPmtCxlReq.undrlyg*.txInf*._case=_case
#fiToFIPmtCxlReq.undrlyg*.txInf*.case.id=caseId
fiToFIPmtCxlReq.undrlyg*.txInf*.cxlId=cxlId
\ No newline at end of file
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