Commit 5bc0fce1 by zhujiazhan

Brtset、Cptopn交易BUG修改

parent c8aba79c
......@@ -139,7 +139,7 @@ export default {
],
"cpdgrp.snd.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"cpdgrp.snd.dbfadrblkcn":[
......
......@@ -109,7 +109,7 @@
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="远期单据到期日" prop="matp.matinf">
<el-form-item label="远期单据到期日" prop="brdgrp.rec.matdat">
<c-date-picker type="date" v-model="model.brdgrp.rec.matdat" style="width:100%" placeholder="请选择到单日期" disabled></c-date-picker>
</el-form-item>
</c-col>
......@@ -183,7 +183,7 @@
</c-col>
<c-col :span="11">
<el-form-item label="" prop="aamset.utlamt" label-width="5px">
<c-input v-model="model.aamset.utlamt" placeholder="请输入单据金额"></c-input>
<c-input v-model="model.aamset.utlamt" placeholder="请输入单据金额" disabled></c-input>
</el-form-item>
</c-col>
</c-col>
......@@ -197,14 +197,20 @@
</c-col>
<c-col :span="11">
<el-form-item label="" prop="aamset.utlamt2" label-width="5px">
<c-input v-model="model.aamset.utlamt2" placeholder=""></c-input>
<c-input v-model="model.aamset.utlamt2" placeholder="" disabled></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="跨境人民币清算模式" prop="trnmod.cmtflg">
<c-select v-model="model.trnmod.cmtflg" style="width:100%" placeholder="请选择跨境人民币清算模式" :code="codes.cmtflg">
<c-select
v-model="model.trnmod.cmtflg"
style="width:100%"
placeholder="请选择跨境人民币清算模式"
:code="this.cmtflg"
@change="commonExecuteRule('trnmod.cmtflg')"
>
</c-select>
</el-form-item>
</c-col>
......@@ -216,7 +222,7 @@
</c-col>
<c-col :span="24">
<el-form-item label="报文类型" prop="trnmod.swftyp" v-show="model.trnmod.cmtflg=='P'?true:false">
<c-select v-model="model.trnmod.swftyp" style="width:100%" placeholder="请选择报文类型" :code="codes.swftyp">
<c-select v-model="model.trnmod.swftyp" style="width:100%" placeholder="请选择报文类型" :code="codes.swftyp1" disabled>
</c-select>
</el-form-item>
</c-col>
......@@ -377,7 +383,12 @@
<c-col :span="24">
<el-form-item label="External Key of Address" prop="brdgrp.prb.pts.extkey">
<c-fullbox>
<c-input v-model="model.brdgrp.prb.pts.extkey" maxlength="16" placeholder="请输入External Key of Address"></c-input>
<c-input
v-model="model.brdgrp.prb.pts.extkey"
maxlength="16"
placeholder="请输入External Key of Address"
@keyup.enter.native="showGridPromptDialog('brdgrp.prb.pts.extkey')"
></c-input>
<template slot="footer">
<c-button
style="margin:0 10px 0 10px;padding: 0 12px;"
......@@ -426,6 +437,11 @@ export default {
mixins: [commonProcess],
data(){
return {
cmtflg:[
{ label: "代理行模式", value: "C" },
{ label: "Other", value: "O" },
{ label: "CIPS系统", value: "P" },
],
table1:[],
columns:[
"1 1 \"Type\" 40",
......@@ -437,12 +453,31 @@ export default {
]
}
},
methods:{...Event},
methods:{...Event,
commonExecuteRule(ruleName) {
this.executeRule(ruleName).then((res) => {
if ((res.respCode == SUCCESS)) {
}
});
},
},
created:function(){
},
watch: {
declareParams() {},
declareParams() {},
"model.trnmod.cmtflg":{
immediate:true,
handler(val ,oldVal){
if(this.model.trnmod.cmtflg=='P'){
this.model.trnmod.swftyp='CIV';
}else{
this.model.trnmod.swftyp='';
}
}
},
},
}
</script>
......
......@@ -36,7 +36,7 @@
</el-tab-pane>
<!--PD000027 -->
<!-- <el-tab-pane label="同业代付" name="dftcrep" >
<!-- <el-tab-pane label="同业代付" name="dftcrep" v-if="this.model.dftcre.dfflag==''">
<m-dftcrep :model="model" :codes="codes" />
</el-tab-pane> -->
......@@ -106,6 +106,10 @@
</el-tab-pane>-->
</c-tabs>
</el-form>
<c-grid-ety-prompt-dialog ref="etyDialog" :promptData="promptData" v-on:select-ety="selectEty"></c-grid-ety-prompt-dialog>
</div>
</template>
<script>
......@@ -184,14 +188,7 @@ export default {
}
},
watch:{
'model.dftcre.dfflag': function(){
var val = this.model.dftcre.dfflag;
if(val == ""){
document.getElementById("tab-dftcrep").style.display = 'none';
}else{
document.getElementById("tab-dftcrep").style.display = '';
}
}
},
created:async function(){
console.log("进入brtset交易");
......@@ -200,9 +197,6 @@ export default {
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
document.getElementById("tab-dftcrep").style.display = 'none';
}
else
{
......
......@@ -229,6 +229,23 @@
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="货物类型">
<c-select
v-model="model.cpdgrp.rec.stagod"
style="width: 100%"
placeholder="请选择货物类型"
>
<el-option
v-for="item in codes.godcod"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<!-- ===================中部--右==================== -->
......@@ -330,14 +347,12 @@
style="width: 100%"
placeholder=""
v-model="model.cpdgrp.rec.swftyp"
:disabled="
model.cpdgrp.cbs.nom1.amt === '0.000'
"
:disabled=this.flag2
@change="swftypChange"
>
<!-- :disabled="model.cptp.liqtyp != 'C' && model.cptp.liqtyp != 'S' && model.cptp.liqtyp != ''" -->
<el-option
v-for="item in codes.swftypOpnp"
v-for="item in this.swftypOpnp"
:label="item.label"
:value="item.value"
:key="item.value"
......@@ -381,7 +396,7 @@
</c-fullbox>
</c-col>
<!-- <c-col :span="24">
<c-col :span="24">
<c-col :span="14">
<el-form-item
label="清算模式"
......@@ -394,13 +409,9 @@
:disabled="
model.cpdgrp.cbs.nom1.amt === '0.000'
"
:code=this.liqtypOptions
@change="swftypChange"
>
<el-option
v-for="item in liqtypOptions"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
<el-form-item
......@@ -408,24 +419,9 @@
v-if="!(model.cpdgrp.cbs.nom1.cur === 'CNY')"
></el-form-item>
</c-col>
</c-col> -->
<c-col :span="24">
<el-form-item label="货物类型">
<c-select
v-model="model.cpdgrp.rec.stagod"
style="width: 100%"
placeholder="请选择货物类型"
>
<el-option
v-for="item in codes.godcod"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
</c-col>
......@@ -464,12 +460,18 @@ export default {
{ value: "3", label: "其他" },
],
liqtypOptions: [
{ value: "B", label: "人行支付系统" },
{ value: "C", label: "代理行模式" },
{ value: "O", label: "Other" },
{ value: "S", label: "CIPS系统" },
],
swftypOpnp: [
{ label: 'MT103', value: '103' },
{ label: 'Mt202 COV', value: '202' },
{ label: 'MT202', value: '200' },
{ label: 'Other', value: 'OTH' },
],
flag1:true,
flag2:true,
};
},
methods: {
......@@ -497,6 +499,78 @@ export default {
}
}
},
"model.cptp.liqtyp":{
immediate:true,
handler(val ,oldVal){
//清除数据
if(this.model.cptp.liqtyp != 'C'){
//清除liqtyp = C时填写的数据
this.model.cptp.cleage="";
this.model.cptp.evebch="";
this.model.cptp.coract="";
}else if(this.model.cptp.liqtyp != 'O'){
this.model.cpdgrp.blk.contag70="";
}else if(this.model.cptp.liqtyp != 'S'){
this.model.cptp.orcnam="";
this.model.cptp.orcadr="";
this.model.cptp.pyenam="";
this.model.cptp.pyeadr="";
this.model.cptp.reconebch="";
this.model.cptp.reconebchnam="";
this.model.cptp.cptp.bustyp="";
this.model.cptp.commetr="";
}
if(this.model.cptp.liqtyp == 'C'){
this.model.cpdgrp.rec.swftyp="103";
this.swftypOpnp=[
{ label: 'MT103', value: '103' },
{ label: 'MT202', value: '200' },
]
this.flag2 = false;
}else if(this.model.cptp.liqtyp == 'O'){
//同步切换报文类型的值
this.model.cpdgrp.rec.swftyp= "OTH";
this.flag2 = true;
}else if(this.model.cptp.liqtyp == 'S'){
this.flag2 = false;
//同步切换报文类型的值
this.model.cpdgrp.rec.swftyp= "CIU";
this.swftypOpnp=[
{ label: "cips111", value: "CIU" },
{ label: "cips112", value: "CIV" },
]
}else{
//当为空时,恢复下拉选的选项
this.swftypOpnp=[
{ label: 'MT103', value: '103' },
{ label: 'Mt202 COV', value: '202' },
{ label: 'MT202', value: '200' },
{ label: 'Other', value: 'OTH' },
]
}
}
},
"model.cpdgrp.cbs.nom1.amt":{
immediate:true,
handler(val ,oldVal){
if(this.model.cpdgrp.cbs.nom1.amt !== '0.000' && this.model.cpdgrp.cbs.nom1.cur !='CNY'){
this.flag2 = false;
}else{
this.flag2 = true;
}
}
},
"model.cpdgrp.cbs.nom1.cur":{
immediate:true,
handler(val ,oldVal){
if(this.model.cpdgrp.cbs.nom1.amt !== '0.000' && this.model.cpdgrp.cbs.nom1.cur !='CNY'){
this.flag2 = false;
}else{
this.flag2 = true;
}
}
}
},
created: function () {},
computed: {
......
......@@ -163,6 +163,7 @@
<c-input
maxlength="16"
placeholder=""
disabled
></c-input>
</el-form-item>
</c-col>
......@@ -172,12 +173,14 @@
label="Intermediary Institut.(Tag 54a)"
style="width: 100%"
label-width="35%"
>
<c-fullbox>
<c-input
maxlength="16"
placeholder="请输入Reference"
disabled
v-model="model.cpdgrp.orc.pts.extkey"
@keyup.enter.native="showGridPromptDialog('cpdgrp.orc.pts.extkey')"
></c-input>
<template slot="footer">
<c-button
......@@ -211,6 +214,7 @@
type="textarea"
:rows="3"
maxlength="140"
v-model="model.cpdgrp.orc.pts.adrblk"
show-word-limit
placeholder="请输入Address Block"
disabled
......@@ -236,6 +240,7 @@
label="Account with Institution/Account(Tag 54a)"
style="width: 100%"
label-width="35%"
>
<c-fullbox>
<c-input
......@@ -244,7 +249,7 @@
v-model="setgll.setgrp.awi.pts.extkey"
@change="setgllChange"
@keyup.enter.native="
showGridPromptDialog('cpdgrp.pye.pts.extkey')
showGridPromptDialog('setgll.setgrp.awi.pts.extkey')
"
></c-input>
<template slot="footer">
......@@ -259,8 +264,7 @@
font-family: '宋体';
font-weight: bold;
"
>i</span
>
>i</span>
</c-button>
<c-button
style="margin: 0 0"
......@@ -297,9 +301,7 @@
></c-input>
</c-col>
<c-col :span="5" style="text-align: right">
<c-checkbox v-model="model.cpdgrp.rec.tsnflg"
>Use Opt.F</c-checkbox
>
<c-checkbox v-model="model.cpdgrp.rec.tsnflg">Use Opt.F</c-checkbox>
</c-col>
</el-form-item>
</c-col>
......@@ -418,6 +420,8 @@ export default {
setgrp:{
awi:{
pts:{
extkey: '',
adrblk: '',
}
}
}
......
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