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
{
......
<template>
<c-col :span="24">
<!-- ================底部--左================= -->
<c-col :span="11" style="margin-top: 10px">
<c-col :span="11" style="margin-top: 10px" v-if="model.cptp.liqtyp != 'S'">
<c-col :span="24">
<el-form-item
label="Ordering institution (52a)"
......@@ -11,7 +11,7 @@
v-model="model.cpdgrp.ori.pts.ref"
maxlength="16"
placeholder=""
:disabled=this.flag1
:disabled="this.model.cpdgrp.rec.swftyp == ''"
></c-input>
</el-form-item>
</c-col>
......@@ -27,7 +27,7 @@
@keyup.enter.native="
showGridPromptDialog('cpdgrp.ori.pts.extkey')
"
:disabled=this.flag1
:disabled="this.model.cpdgrp.rec.swftyp == ''"
></c-input>
</el-form-item>
<template slot="footer">
......@@ -80,7 +80,7 @@
v-model="model.cpdgrp.orc.pts.ref"
maxlength="16"
placeholder=""
:disabled=this.flag1
:disabled="this.model.cpdgrp.rec.swftyp == ''"
></c-input>
</el-form-item>
</c-col>
......@@ -91,7 +91,7 @@
v-model="model.cpdgrp.rec.orcact"
maxlength="35"
placeholder="汇款人账号"
:disabled=this.flag1
:disabled="this.model.cpdgrp.rec.swftyp == ''"
></c-input>
</el-form-item>
</c-col>
......@@ -105,7 +105,7 @@
@keyup.enter.native="
showGridPromptDialog('cpdgrp.orc.pts.extkey')
"
:disabled=this.flag1
:disabled="this.model.cpdgrp.rec.swftyp == ''"
>
</c-input>
</el-form-item>
......@@ -208,7 +208,7 @@
"
style="margin-top: 10px"
>
<c-col :span="24">
<c-col :span="24" v-if="this.model.cptp.liqtyp != 'C'">
<c-fullbox>
<el-form-item label="发报行" prop="cpdgrp.snd.pts.extkey">
<c-input placeholder="请输入发报行" disabled v-model="model.cpdgrp.snd.pts.extkey"
......@@ -238,12 +238,59 @@
</c-fullbox>
</c-col>
<c-col :span="24">
<c-col :span="24" v-if="this.model.cptp.liqtyp != 'C'">
<el-form-item label="" prop="cpdgrp.snd.pts.nam">
<c-input placeholder="" disabled v-model="model.cpdgrp.snd.pts.nam"></c-input>
</el-form-item>
</c-col>
<!--清算模式(代理行模式)报文类型Mt103-->
<c-col :span="24" v-if="this.model.cptp.liqtyp == 'C'">
<c-col :span="24">
<el-form-item label="清算代理行">
<c-select
v-model="model.cptp.cleage"
style="width: 70%"
placeholder="请选择清算代理行"
@change="commonExecuteRule('cptp.cleage')"
>
<el-option
v-for="item in cleageOptions"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="光大开户行">
<c-select
v-model="model.cptp.evebch"
style="width: 70%"
placeholder="请选择光大开户行"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="清算代理行账号">
<c-input
v-model="model.cptp.coract"
maxlength="32"
style="width: 90%"
placeholder="请输入清算代理行账号"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="指令代码" prop="cpdgrp.rec.f23e">
<c-input
......@@ -410,7 +457,7 @@
"
style="margin-top: 10px"
>
<c-col :span="24">
<c-col :span="24" v-if="this.model.cptp.liqtyp != 'C'">
<c-fullbox>
<el-form-item label="发报行" prop="cpdgrp.snd.pts.extkey">
<c-input placeholder="请输入发报行" disabled v-model="model.cpdgrp.snd.pts.extkey" @keyup.enter.native="showGridPromptDialog('cpdgrp.snd.pts.extkey')"></c-input>
......@@ -437,7 +484,7 @@
</c-fullbox>
</c-col>
<c-col :span="24">
<c-col :span="24" v-if="this.model.cptp.liqtyp != 'C'">
<el-form-item label="" prop="cpdgrp.snd.pts.adrblk">
<c-input
type="textarea"
......@@ -446,10 +493,56 @@
show-word-limit
placeholder="请输入Address Block"
v-model="model.cpdgrp.snd.pts.adrblk"
disabled
></c-input>
</el-form-item>
</c-col>
<!--清算模式(代理行模式)报文类型Mt202-->
<c-col :span="24" v-if="this.model.cptp.liqtyp == 'C'">
<c-col :span="24">
<el-form-item label="清算代理行">
<c-select
v-model="model.cptp.cleage"
style="width: 70%"
placeholder="请选择清算代理行"
@change="commonExecuteRule('cptp.cleage')"
>
<el-option
v-for="item in cleageOptions"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24" >
<el-form-item label="光大开户分行">
<c-select
v-model="model.cptp.evebch"
style="width: 100%"
placeholder="请选择光大开户分行"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="清算代理行账号">
<c-input
v-model="model.cptp.coract"
maxlength="32"
style="width: 90%"
placeholder="请输入清算代理行账号"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="收款人" prop="cpdgrp.pye.pts.extkey">
<c-input
......@@ -563,6 +656,7 @@
show-word-limit
placeholder="请输入Address Block"
v-model="model.cpdgrp.snd.pts.adrblk"
disabled
></c-input>
</el-form-item>
</c-col>
......@@ -646,7 +740,7 @@
</c-col>
</c-col>
<!-- ====================清算模式-人行支付系统===================== -->
<!-- ====================清算模式-人行支付系统(停用)===================== -->
<!-- <c-col
:span="24"
v-if="model.cptp.liqtyp === 'B'"
......@@ -894,14 +988,14 @@
</c-col>
</c-col> -->
<!-- ====================清算模式-CIPS系统===================== -->
<!-- <c-col
<!-- ====================清算模式-CIPS系统(启用)===================== -->
<c-col
:span="24"
v-if="model.cptp.liqtyp === 'S'"
style="margin-top: 10px"
> -->
>
<!-- =========左========== -->
<!-- <c-col :span="11">
<c-col :span="11">
<c-col :span="24">
<el-form-item label="付款人名称">
<c-input
......@@ -993,10 +1087,10 @@
></c-input>
</el-form-item>
</c-col>
</c-col> -->
</c-col>
<!-- =========右========== -->
<!-- <c-col :span="11" :offset="1">
<c-col :span="11" :offset="1">
<c-col :span="4" :offset="18">
<c-checkbox v-model="model.cptp.flg">电汇凭证</c-checkbox>
</c-col>
......@@ -1007,7 +1101,8 @@
v-model="model.cptp.reconebch"
maxlength="35"
style="width: 80%"
placeholder="请输入收款直参行号"
placeholder="请输入6位的款直参行号"
@keyup.enter.native="showGridPromptDialog('cptp.reconebch')"
></c-input>
</el-form-item>
</c-col>
......@@ -1030,12 +1125,11 @@
v-model="model.cptp.bustyp"
style="width: 60%"
placeholder="请选择业务种类"
disabled
>
<el-option
v-for="item in codes.bustyp"
v-for="item in this.bustyp"
:key="item.value"
:label="item.label"
:label="item.label + '_' + item.value"
:value="item.value"
>
</el-option>
......@@ -1101,9 +1195,9 @@
</el-form-item>
</c-col>
</c-col>
</c-col> -->
</c-col>
<!-- ======================清算模式-Other================ -->
<!-- ======================清算模式-Other(其他模式中复用了)================ -->
<!-- <c-col
:span="24"
v-if="model.cptp.liqtyp === 'O'"
......@@ -1171,7 +1265,7 @@
style="width: 90%"
maxlength="16"
placeholder=""
:disabled=this.flag1
:disabled="this.model.cpdgrp.rec.swftyp == ''"
></c-input>
</el-form-item>
</c-col>
......@@ -1183,7 +1277,7 @@
style="width: 90%"
maxlength="35"
placeholder=""
:disabled=this.flag1
:disabled="this.model.cpdgrp.rec.swftyp == ''"
></c-input>
</el-form-item>
</c-col>
......@@ -1343,230 +1437,233 @@
</c-col>
</c-col> -->
<!-- ====================清算模式-代理行模式=================== -->
<!-- <c-col
<!-- ====================清算模式-代理行模式(停用)=================== -->
<!--
<c-col
:span="24"
v-if="model.cptp.liqtyp === 'C'"
style="margin-top: 10px"
> -->
>
-->
<!-- ==============左============== -->
<!-- <c-col :span="24">
<el-form-item
label="Ordering institution (52a)"
prop="cpdgrp.ori.pts.ref"
>
<c-input
v-model="model.cpdgrp.ori.pts.ref"
style="width: 90%"
maxlength="16"
placeholder=""
></c-input>
</el-form-item>
</c-col>
<!-- <c-col :span="12">
<c-col :span="24">
<el-form-item
label="Ordering institution (52a)"
prop="cpdgrp.ori.pts.ref"
>
<c-input
v-model="model.cpdgrp.ori.pts.ref"
style="width: 90%"
maxlength="16"
placeholder=""
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="17">
<c-col :span="24">
<c-col :span="17">
<el-form-item label="">
<c-input placeholder=""></c-input>
</el-form-item>
</c-col>
<c-col :span="7">
<el-form-item label="" label-width="15px">
<c-button
size="small"
type="primary"
@click="onCptpGetInfpta"
icon="el-icon-search"
>
</c-button>
<c-button
size="small"
type="primary"
@click="onSndpDet"
>
详情
</c-button>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="">
<c-input placeholder=""></c-input>
<c-input
type="textarea"
:rows="4"
maxlength="140"
v-model="model.cpdgrp.ori.pts.adrblk"
show-word-limit
placeholder="请输入Address Block"
></c-input>
</el-form-item>
</c-col>
<c-col :span="7">
<el-form-item label="" label-width="15px">
<c-button
size="small"
type="primary"
@click="onCptpGetInfpta"
icon="el-icon-search"
>
</c-button>
<c-button
size="small"
type="primary"
@click="onSndpDet"
>
详情
</c-button>
<c-col :span="24">
<el-form-item label="汇款人" prop="cpdgrp.orc.pts.ref">
<c-input
v-model="model.cpdgrp.orc.pts.ref"
style="width: 90%"
maxlength="16"
placeholder=""
:disabled="this.model.cpdgrp.rec.swftyp == ''"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="18">
<el-form-item label="">
<c-input
type="textarea"
:rows="4"
maxlength="140"
v-model="model.cpdgrp.ori.pts.adrblk"
show-word-limit
placeholder="请输入Address Block"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账号" prop="cpdgrp.rec.orcact">
<c-input
v-model="model.cpdgrp.rec.orcact"
style="width: 90%"
maxlength="35"
placeholder=""
:disabled="this.model.cpdgrp.rec.swftyp == ''"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="17">
<el-form-item label="">
<c-input placeholder=""></c-input>
</el-form-item>
</c-col>
<c-col :span="7">
<el-form-item label="" label-width="15px">
<c-button
size="small"
type="primary"
@click="onCptpGetInfpta"
icon="el-icon-search"
>
</c-button>
<c-button
size="small"
type="primary"
@click="onSndpDet"
disabled
>
详情
</c-button>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="">
<c-input
type="textarea"
:rows="4"
maxlength="140"
v-model="model.cpdgrp.orc.pts.adrblk"
show-word-limit
placeholder="请输入Address Block"
></c-input>
</el-form-item>
</c-col>
</c-col> -->
<!-- ==============右============== -->
<!-- <c-col :span="11" :offset="1">
<c-col :span="24">
<el-form-item label="汇款人" prop="cpdgrp.orc.pts.ref">
<c-input
v-model="model.cpdgrp.orc.pts.ref"
style="width: 90%"
maxlength="16"
placeholder=""
:disabled=this.flag1
></c-input>
</el-form-item>
<el-form-item label="清算代理行">
<c-select
v-model="model.cptp.cleage"
style="width: 70%"
placeholder="请选择清算代理行"
>
<el-option
v-for="item in cleageOptions"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账号" prop="cpdgrp.rec.orcact">
<c-input
v-model="model.cpdgrp.rec.orcact"
style="width: 90%"
maxlength="35"
placeholder=""
:disabled=this.flag1
></c-input>
</el-form-item>
<el-form-item label="光大开户行">
<c-select
v-model="model.cptp.evebch"
style="width: 70%"
placeholder="请选择光大开户行"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="17">
<el-form-item label="">
<c-input placeholder=""></c-input>
</el-form-item>
</c-col>
<c-col :span="7">
<el-form-item label="" label-width="15px">
<c-button
size="small"
type="primary"
@click="onCptpGetInfpta"
icon="el-icon-search"
>
</c-button>
<c-button
size="small"
type="primary"
@click="onSndpDet"
disabled
>
详情
</c-button>
</el-form-item>
</c-col>
<el-form-item label="清算代理行账号">
<c-input
v-model="model.cptp.coract"
maxlength="32"
style="width: 90%"
placeholder="请输入清算代理行账号"
readonly
></c-input>
</el-form-item>
</c-col>
<c-col :span="18">
<el-form-item label="">
<c-input
type="textarea"
:rows="4"
maxlength="140"
v-model="model.cpdgrp.orc.pts.adrblk"
show-word-limit
placeholder="请输入Address Block"
></c-input>
<c-col :span="24">
<el-form-item label="指令代码" prop="cpdgrp.rec.f23e">
<c-input
v-model="model.cpdgrp.rec.f23e"
style="width: 90%"
maxlength="35"
placeholder="请输入指令代码"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="14">
<el-form-item label="原始金额" prop="cpdgrp.rec.curf33b">
<c-select
v-model="model.cpdgrp.rec.curf33b"
style="width: 100%"
placeholder=""
>
<el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="10">
<el-form-item label="" label-width="15px" prop="cpdgrp.rec.amtf33b">
<c-input
v-model="model.cpdgrp.rec.amtf33b"
placeholder="请输入原始金额"
></c-input>
</el-form-item>
</c-col>
</c-col>
</c-col> -->
<!-- ==============右============== -->
<!-- <c-col :span="12" >
<c-col :span="24">
<el-form-item label="清算代理行">
<c-select
v-model="model.cptp.cleage"
style="width: 70%"
placeholder="请选择清算代理行"
>
<el-option
v-for="item in cleageOptions"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="光大开户行">
<c-select
v-model="model.cptp.evebch"
style="width: 70%"
placeholder="请选择光大开户行"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="清算代理行账号">
<c-input
v-model="model.cptp.coract"
maxlength="32"
style="width: 90%"
placeholder="请输入清算代理行账号"
readonly
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="指令代码" prop="cpdgrp.rec.f23e">
<c-input
v-model="model.cpdgrp.rec.f23e"
style="width: 90%"
maxlength="35"
placeholder="请输入指令代码"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="14">
<el-form-item label="原始金额" prop="cpdgrp.rec.curf33b">
<c-select
v-model="model.cpdgrp.rec.curf33b"
style="width: 100%"
placeholder=""
>
<el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="10">
<el-form-item label="" label-width="15px" prop="cpdgrp.rec.amtf33b">
<c-input
v-model="model.cpdgrp.rec.amtf33b"
placeholder="请输入原始金额"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="14">
<el-form-item label="发报行扣费金额" prop="cpdgrp.rec.cur71f">
<c-select v-model="model.cpdgrp.rec.cur71f" placeholder="">
<el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="10">
<el-form-item label="" label-width="15px" prop="cpdgrp.rec.amt71f">
<c-input
v-model="model.cpdgrp.rec.amt71f"
placeholder="请输入发报行扣费金额"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="14">
<el-form-item label="发报行扣费金额" prop="cpdgrp.rec.cur71f">
<c-select v-model="model.cpdgrp.rec.cur71f" placeholder="">
<el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="10">
<el-form-item label="" label-width="15px" prop="cpdgrp.rec.amt71f">
<c-input
v-model="model.cpdgrp.rec.amt71f"
placeholder="请输入发报行扣费金额"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="银行操作码" prop="cpdgrp.rec.f23b">
......@@ -1631,7 +1728,7 @@
</c-col>
</c-col>
<c-col :span="18">
<c-col :span="24">
<el-form-item label="">
<c-input
type="textarea"
......@@ -1643,8 +1740,9 @@
></c-input>
</el-form-item>
</c-col>
</c-col> -->
</c-col>
</c-col>
-->
<!-- <c-col><div style="height: 100px"></div></c-col>
<c-col :span="12">
......@@ -1932,16 +2030,7 @@
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="光大开户分行">
<c-select
v-model="model.cptp.evebch"
style="width: 100%"
placeholder="请选择光大开户分行"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="Address Block">
......@@ -2410,14 +2499,36 @@
<script>
import commonProcess from "~/mixin/commonProcess";
import Utils from "~/utils";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
cleageOptions:[
{ label: 'BKCHHKHHXXX', value: 'BKCHHKHHXXX' },
{ label: 'CCBQHKAXXXX', value: 'CCBQHKAXXXX' },
{ label: 'EVERHKHHXXX', value: 'EVERHKHHXXX' },
{ label: 'KWHKHKHHXXX', value: 'KWHKHKHHXXX' },
{ label: 'NYCBHKHHXXX', value: 'NYCBHKHHXXX' },
{ label: 'WUBAHKHHXXX', value: 'WUBAHKHHXXX' },
],
infptaVisible: false,
flag1:true,
bustyp:[
{ label: 'GODX', value: '货期贸易' },
{ label: 'STRX', value: '服务贸易' },
{ label: 'CTFX', value: '资本项下' },
{ label: 'FTFX', value: '金融机构头寸调拨' },
{ label: 'BDES', value: '债卷还本利息' },
{ label: 'BPRR', value: '债卷还本金' },
{ label: 'BINP', value: '债卷利息' },
{ label: 'BISF', value: '债卷发行手续费' },
{ label: 'BCAF', value: '债卷兑付手续费' },
{ label: 'CBCF', value: '附息式债卷兑付手续费' },
{ label: 'OTFX', value: '其他' },
],
};
},
watch:{
......@@ -2429,16 +2540,42 @@ export default {
console.log(this.model.cptp.fwtgyh)
}
},
"model.cpdgrp.rec.swftyp":{
immediate:true,
handler(val ,oldVal){
if(this.model.cpdgrp.rec.swftyp == ''){
this.flag1=true;
}else{
this.flag1=false;
}
}
}
"model.cpdgrp.rec.swftyp":function(){
console.log(this.model.cpdgrp.rec.swftyp);
if(this.model.cpdgrp.rec.swftyp == ''){
this.flag1=true;
}else{
this.flag1=false;
}
},
"model.cpdgrp.rec.swftyp":{
immediate:true,
handler(val,oldVal){
if(this.model.cpdgrp.rec.swftyp=="CIU"){
this.bustyp=[
{ label: 'GODX', value: '货期贸易' },
{ label: 'STRX', value: '服务贸易' },
{ label: 'CTFX', value: '资本项下' },
{ label: 'OTFX', value: '其他' },
]
}else if(this.model.cpdgrp.rec.swftyp=="CIV"){
this.bustyp=[
{ label: 'GODX', value: '货期贸易' },
{ label: 'STRX', value: '服务贸易' },
{ label: 'CTFX', value: '资本项下' },
{ label: 'FTFX', value: '金融机构头寸调拨' },
{ label: 'BDES', value: '债卷还本利息' },
{ label: 'BPRR', value: '债卷还本金' },
{ label: 'BINP', value: '债卷利息' },
{ label: 'BISF', value: '债卷发行手续费' },
{ label: 'BCAF', value: '债卷兑付手续费' },
{ label: 'CBCF', value: '附息式债卷兑付手续费' },
{ label: 'OTFX', value: '其他' },
]
}
}
}
},
methods: {
onSndpDet() {
......@@ -2453,7 +2590,14 @@ export default {
pyenamEvent() {
this.executeRule("pyenam").then( res => {
})
}
},
commonExecuteRule(ruleName) {
this.executeRule(ruleName).then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
}
});
},
},
};
</script>
......
......@@ -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