Commit 5bc0fce1 by zhujiazhan

Brtset、Cptopn交易BUG修改

parent c8aba79c
...@@ -139,7 +139,7 @@ export default { ...@@ -139,7 +139,7 @@ export default {
], ],
"cpdgrp.snd.pts.adrblk":[ "cpdgrp.snd.pts.adrblk":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"cpdgrp.snd.dbfadrblkcn":[ "cpdgrp.snd.dbfadrblkcn":[
......
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <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> <c-date-picker type="date" v-model="model.brdgrp.rec.matdat" style="width:100%" placeholder="请选择到单日期" disabled></c-date-picker>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -183,7 +183,7 @@ ...@@ -183,7 +183,7 @@
</c-col> </c-col>
<c-col :span="11"> <c-col :span="11">
<el-form-item label="" prop="aamset.utlamt" label-width="5px"> <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> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
...@@ -197,14 +197,20 @@ ...@@ -197,14 +197,20 @@
</c-col> </c-col>
<c-col :span="11"> <c-col :span="11">
<el-form-item label="" prop="aamset.utlamt2" label-width="5px"> <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> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="12"> <c-col :span="12">
<el-form-item label="跨境人民币清算模式" prop="trnmod.cmtflg"> <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> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -216,7 +222,7 @@ ...@@ -216,7 +222,7 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="报文类型" prop="trnmod.swftyp" v-show="model.trnmod.cmtflg=='P'?true:false"> <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> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -377,7 +383,12 @@ ...@@ -377,7 +383,12 @@
<c-col :span="24"> <c-col :span="24">
<el-form-item label="External Key of Address" prop="brdgrp.prb.pts.extkey"> <el-form-item label="External Key of Address" prop="brdgrp.prb.pts.extkey">
<c-fullbox> <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"> <template slot="footer">
<c-button <c-button
style="margin:0 10px 0 10px;padding: 0 12px;" style="margin:0 10px 0 10px;padding: 0 12px;"
...@@ -426,6 +437,11 @@ export default { ...@@ -426,6 +437,11 @@ export default {
mixins: [commonProcess], mixins: [commonProcess],
data(){ data(){
return { return {
cmtflg:[
{ label: "代理行模式", value: "C" },
{ label: "Other", value: "O" },
{ label: "CIPS系统", value: "P" },
],
table1:[], table1:[],
columns:[ columns:[
"1 1 \"Type\" 40", "1 1 \"Type\" 40",
...@@ -437,12 +453,31 @@ export default { ...@@ -437,12 +453,31 @@ export default {
] ]
} }
}, },
methods:{...Event}, methods:{...Event,
commonExecuteRule(ruleName) {
this.executeRule(ruleName).then((res) => {
if ((res.respCode == SUCCESS)) {
}
});
},
},
created:function(){ created:function(){
}, },
watch: { 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> </script>
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</el-tab-pane> </el-tab-pane>
<!--PD000027 --> <!--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" /> <m-dftcrep :model="model" :codes="codes" />
</el-tab-pane> --> </el-tab-pane> -->
...@@ -106,6 +106,10 @@ ...@@ -106,6 +106,10 @@
</el-tab-pane>--> </el-tab-pane>-->
</c-tabs> </c-tabs>
</el-form> </el-form>
<c-grid-ety-prompt-dialog ref="etyDialog" :promptData="promptData" v-on:select-ety="selectEty"></c-grid-ety-prompt-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -184,14 +188,7 @@ export default { ...@@ -184,14 +188,7 @@ export default {
} }
}, },
watch:{ 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(){ created:async function(){
console.log("进入brtset交易"); console.log("进入brtset交易");
...@@ -200,9 +197,6 @@ export default { ...@@ -200,9 +197,6 @@ export default {
{ {
this.updateModel(rtnmsg.data) this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑 //TODO 处理数据逻辑
document.getElementById("tab-dftcrep").style.display = 'none';
} }
else else
{ {
......
<template> <template>
<c-col :span="24"> <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"> <c-col :span="24">
<el-form-item <el-form-item
label="Ordering institution (52a)" label="Ordering institution (52a)"
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
v-model="model.cpdgrp.ori.pts.ref" v-model="model.cpdgrp.ori.pts.ref"
maxlength="16" maxlength="16"
placeholder="" placeholder=""
:disabled=this.flag1 :disabled="this.model.cpdgrp.rec.swftyp == ''"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
@keyup.enter.native=" @keyup.enter.native="
showGridPromptDialog('cpdgrp.ori.pts.extkey') showGridPromptDialog('cpdgrp.ori.pts.extkey')
" "
:disabled=this.flag1 :disabled="this.model.cpdgrp.rec.swftyp == ''"
></c-input> ></c-input>
</el-form-item> </el-form-item>
<template slot="footer"> <template slot="footer">
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
v-model="model.cpdgrp.orc.pts.ref" v-model="model.cpdgrp.orc.pts.ref"
maxlength="16" maxlength="16"
placeholder="" placeholder=""
:disabled=this.flag1 :disabled="this.model.cpdgrp.rec.swftyp == ''"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
v-model="model.cpdgrp.rec.orcact" v-model="model.cpdgrp.rec.orcact"
maxlength="35" maxlength="35"
placeholder="汇款人账号" placeholder="汇款人账号"
:disabled=this.flag1 :disabled="this.model.cpdgrp.rec.swftyp == ''"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
@keyup.enter.native=" @keyup.enter.native="
showGridPromptDialog('cpdgrp.orc.pts.extkey') showGridPromptDialog('cpdgrp.orc.pts.extkey')
" "
:disabled=this.flag1 :disabled="this.model.cpdgrp.rec.swftyp == ''"
> >
</c-input> </c-input>
</el-form-item> </el-form-item>
...@@ -208,7 +208,7 @@ ...@@ -208,7 +208,7 @@
" "
style="margin-top: 10px" style="margin-top: 10px"
> >
<c-col :span="24"> <c-col :span="24" v-if="this.model.cptp.liqtyp != 'C'">
<c-fullbox> <c-fullbox>
<el-form-item label="发报行" prop="cpdgrp.snd.pts.extkey"> <el-form-item label="发报行" prop="cpdgrp.snd.pts.extkey">
<c-input placeholder="请输入发报行" disabled v-model="model.cpdgrp.snd.pts.extkey" <c-input placeholder="请输入发报行" disabled v-model="model.cpdgrp.snd.pts.extkey"
...@@ -238,12 +238,59 @@ ...@@ -238,12 +238,59 @@
</c-fullbox> </c-fullbox>
</c-col> </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"> <el-form-item label="" prop="cpdgrp.snd.pts.nam">
<c-input placeholder="" disabled v-model="model.cpdgrp.snd.pts.nam"></c-input> <c-input placeholder="" disabled v-model="model.cpdgrp.snd.pts.nam"></c-input>
</el-form-item> </el-form-item>
</c-col> </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"> <c-col :span="24">
<el-form-item label="指令代码" prop="cpdgrp.rec.f23e"> <el-form-item label="指令代码" prop="cpdgrp.rec.f23e">
<c-input <c-input
...@@ -410,7 +457,7 @@ ...@@ -410,7 +457,7 @@
" "
style="margin-top: 10px" style="margin-top: 10px"
> >
<c-col :span="24"> <c-col :span="24" v-if="this.model.cptp.liqtyp != 'C'">
<c-fullbox> <c-fullbox>
<el-form-item label="发报行" prop="cpdgrp.snd.pts.extkey"> <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> <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 @@ ...@@ -437,7 +484,7 @@
</c-fullbox> </c-fullbox>
</c-col> </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"> <el-form-item label="" prop="cpdgrp.snd.pts.adrblk">
<c-input <c-input
type="textarea" type="textarea"
...@@ -446,10 +493,56 @@ ...@@ -446,10 +493,56 @@
show-word-limit show-word-limit
placeholder="请输入Address Block" placeholder="请输入Address Block"
v-model="model.cpdgrp.snd.pts.adrblk" v-model="model.cpdgrp.snd.pts.adrblk"
disabled
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </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"> <c-col :span="24">
<el-form-item label="收款人" prop="cpdgrp.pye.pts.extkey"> <el-form-item label="收款人" prop="cpdgrp.pye.pts.extkey">
<c-input <c-input
...@@ -563,6 +656,7 @@ ...@@ -563,6 +656,7 @@
show-word-limit show-word-limit
placeholder="请输入Address Block" placeholder="请输入Address Block"
v-model="model.cpdgrp.snd.pts.adrblk" v-model="model.cpdgrp.snd.pts.adrblk"
disabled
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -646,7 +740,7 @@ ...@@ -646,7 +740,7 @@
</c-col> </c-col>
</c-col> </c-col>
<!-- ====================清算模式-人行支付系统===================== --> <!-- ====================清算模式-人行支付系统(停用)===================== -->
<!-- <c-col <!-- <c-col
:span="24" :span="24"
v-if="model.cptp.liqtyp === 'B'" v-if="model.cptp.liqtyp === 'B'"
...@@ -894,14 +988,14 @@ ...@@ -894,14 +988,14 @@
</c-col> </c-col>
</c-col> --> </c-col> -->
<!-- ====================清算模式-CIPS系统===================== --> <!-- ====================清算模式-CIPS系统(启用)===================== -->
<!-- <c-col <c-col
:span="24" :span="24"
v-if="model.cptp.liqtyp === 'S'" v-if="model.cptp.liqtyp === 'S'"
style="margin-top: 10px" style="margin-top: 10px"
> --> >
<!-- =========左========== --> <!-- =========左========== -->
<!-- <c-col :span="11"> <c-col :span="11">
<c-col :span="24"> <c-col :span="24">
<el-form-item label="付款人名称"> <el-form-item label="付款人名称">
<c-input <c-input
...@@ -993,10 +1087,10 @@ ...@@ -993,10 +1087,10 @@
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </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-col :span="4" :offset="18">
<c-checkbox v-model="model.cptp.flg">电汇凭证</c-checkbox> <c-checkbox v-model="model.cptp.flg">电汇凭证</c-checkbox>
</c-col> </c-col>
...@@ -1007,7 +1101,8 @@ ...@@ -1007,7 +1101,8 @@
v-model="model.cptp.reconebch" v-model="model.cptp.reconebch"
maxlength="35" maxlength="35"
style="width: 80%" style="width: 80%"
placeholder="请输入收款直参行号" placeholder="请输入6位的款直参行号"
@keyup.enter.native="showGridPromptDialog('cptp.reconebch')"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -1030,12 +1125,11 @@ ...@@ -1030,12 +1125,11 @@
v-model="model.cptp.bustyp" v-model="model.cptp.bustyp"
style="width: 60%" style="width: 60%"
placeholder="请选择业务种类" placeholder="请选择业务种类"
disabled
> >
<el-option <el-option
v-for="item in codes.bustyp" v-for="item in this.bustyp"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label + '_' + item.value"
:value="item.value" :value="item.value"
> >
</el-option> </el-option>
...@@ -1101,9 +1195,9 @@ ...@@ -1101,9 +1195,9 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
</c-col> --> </c-col>
<!-- ======================清算模式-Other================ --> <!-- ======================清算模式-Other(其他模式中复用了)================ -->
<!-- <c-col <!-- <c-col
:span="24" :span="24"
v-if="model.cptp.liqtyp === 'O'" v-if="model.cptp.liqtyp === 'O'"
...@@ -1171,7 +1265,7 @@ ...@@ -1171,7 +1265,7 @@
style="width: 90%" style="width: 90%"
maxlength="16" maxlength="16"
placeholder="" placeholder=""
:disabled=this.flag1 :disabled="this.model.cpdgrp.rec.swftyp == ''"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -1183,7 +1277,7 @@ ...@@ -1183,7 +1277,7 @@
style="width: 90%" style="width: 90%"
maxlength="35" maxlength="35"
placeholder="" placeholder=""
:disabled=this.flag1 :disabled="this.model.cpdgrp.rec.swftyp == ''"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -1343,14 +1437,17 @@ ...@@ -1343,14 +1437,17 @@
</c-col> </c-col>
</c-col> --> </c-col> -->
<!-- ====================清算模式-代理行模式=================== --> <!-- ====================清算模式-代理行模式(停用)=================== -->
<!-- <c-col <!--
<c-col
:span="24" :span="24"
v-if="model.cptp.liqtyp === 'C'" v-if="model.cptp.liqtyp === 'C'"
style="margin-top: 10px" style="margin-top: 10px"
> --> >
-->
<!-- ==============左============== --> <!-- ==============左============== -->
<!-- <c-col :span="24"> <!-- <c-col :span="12">
<c-col :span="24">
<el-form-item <el-form-item
label="Ordering institution (52a)" label="Ordering institution (52a)"
prop="cpdgrp.ori.pts.ref" prop="cpdgrp.ori.pts.ref"
...@@ -1390,7 +1487,7 @@ ...@@ -1390,7 +1487,7 @@
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="18"> <c-col :span="24">
<el-form-item label=""> <el-form-item label="">
<c-input <c-input
type="textarea" type="textarea"
...@@ -1410,7 +1507,7 @@ ...@@ -1410,7 +1507,7 @@
style="width: 90%" style="width: 90%"
maxlength="16" maxlength="16"
placeholder="" placeholder=""
:disabled=this.flag1 :disabled="this.model.cpdgrp.rec.swftyp == ''"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -1422,7 +1519,7 @@ ...@@ -1422,7 +1519,7 @@
style="width: 90%" style="width: 90%"
maxlength="35" maxlength="35"
placeholder="" placeholder=""
:disabled=this.flag1 :disabled="this.model.cpdgrp.rec.swftyp == ''"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -1454,7 +1551,7 @@ ...@@ -1454,7 +1551,7 @@
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="18"> <c-col :span="24">
<el-form-item label=""> <el-form-item label="">
<c-input <c-input
type="textarea" type="textarea"
...@@ -1468,7 +1565,7 @@ ...@@ -1468,7 +1565,7 @@
</c-col> </c-col>
</c-col> --> </c-col> -->
<!-- ==============右============== --> <!-- ==============右============== -->
<!-- <c-col :span="12" > <!-- <c-col :span="11" :offset="1">
<c-col :span="24"> <c-col :span="24">
<el-form-item label="清算代理行"> <el-form-item label="清算代理行">
<c-select <c-select
...@@ -1631,7 +1728,7 @@ ...@@ -1631,7 +1728,7 @@
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="18"> <c-col :span="24">
<el-form-item label=""> <el-form-item label="">
<c-input <c-input
type="textarea" type="textarea"
...@@ -1643,8 +1740,9 @@ ...@@ -1643,8 +1740,9 @@
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> --> </c-col>
</c-col>
-->
<!-- <c-col><div style="height: 100px"></div></c-col> <!-- <c-col><div style="height: 100px"></div></c-col>
<c-col :span="12"> <c-col :span="12">
...@@ -1932,16 +2030,7 @@ ...@@ -1932,16 +2030,7 @@
</el-form-item> </el-form-item>
</c-col> </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"> <c-col :span="11" :offset="1">
<el-form-item label="Address Block"> <el-form-item label="Address Block">
...@@ -2410,14 +2499,36 @@ ...@@ -2410,14 +2499,36 @@
<script> <script>
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import Utils from "~/utils";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data() { data() {
return { 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, infptaVisible: false,
flag1:true, 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:{ watch:{
...@@ -2429,16 +2540,42 @@ export default { ...@@ -2429,16 +2540,42 @@ export default {
console.log(this.model.cptp.fwtgyh) console.log(this.model.cptp.fwtgyh)
} }
}, },
"model.cpdgrp.rec.swftyp":{ "model.cpdgrp.rec.swftyp":function(){
immediate:true, console.log(this.model.cpdgrp.rec.swftyp);
handler(val ,oldVal){
if(this.model.cpdgrp.rec.swftyp == ''){ if(this.model.cpdgrp.rec.swftyp == ''){
this.flag1=true; this.flag1=true;
}else{ }else{
this.flag1=false; 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: { methods: {
onSndpDet() { onSndpDet() {
...@@ -2453,7 +2590,14 @@ export default { ...@@ -2453,7 +2590,14 @@ export default {
pyenamEvent() { pyenamEvent() {
this.executeRule("pyenam").then( res => { this.executeRule("pyenam").then( res => {
}) })
},
commonExecuteRule(ruleName) {
this.executeRule(ruleName).then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
} }
});
},
}, },
}; };
</script> </script>
......
...@@ -229,6 +229,23 @@ ...@@ -229,6 +229,23 @@
</c-select> </c-select>
</el-form-item> </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>
<!-- ===================中部--右==================== --> <!-- ===================中部--右==================== -->
...@@ -330,14 +347,12 @@ ...@@ -330,14 +347,12 @@
style="width: 100%" style="width: 100%"
placeholder="" placeholder=""
v-model="model.cpdgrp.rec.swftyp" v-model="model.cpdgrp.rec.swftyp"
:disabled=" :disabled=this.flag2
model.cpdgrp.cbs.nom1.amt === '0.000'
"
@change="swftypChange" @change="swftypChange"
> >
<!-- :disabled="model.cptp.liqtyp != 'C' && model.cptp.liqtyp != 'S' && model.cptp.liqtyp != ''" --> <!-- :disabled="model.cptp.liqtyp != 'C' && model.cptp.liqtyp != 'S' && model.cptp.liqtyp != ''" -->
<el-option <el-option
v-for="item in codes.swftypOpnp" v-for="item in this.swftypOpnp"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
:key="item.value" :key="item.value"
...@@ -381,7 +396,7 @@ ...@@ -381,7 +396,7 @@
</c-fullbox> </c-fullbox>
</c-col> </c-col>
<!-- <c-col :span="24"> <c-col :span="24">
<c-col :span="14"> <c-col :span="14">
<el-form-item <el-form-item
label="清算模式" label="清算模式"
...@@ -394,13 +409,9 @@ ...@@ -394,13 +409,9 @@
:disabled=" :disabled="
model.cpdgrp.cbs.nom1.amt === '0.000' 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> </c-select>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
...@@ -408,24 +419,9 @@ ...@@ -408,24 +419,9 @@
v-if="!(model.cpdgrp.cbs.nom1.cur === 'CNY')" v-if="!(model.cpdgrp.cbs.nom1.cur === 'CNY')"
></el-form-item> ></el-form-item>
</c-col> </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> </c-col>
</c-col> </c-col>
...@@ -464,12 +460,18 @@ export default { ...@@ -464,12 +460,18 @@ export default {
{ value: "3", label: "其他" }, { value: "3", label: "其他" },
], ],
liqtypOptions: [ liqtypOptions: [
{ value: "B", label: "人行支付系统" },
{ value: "C", label: "代理行模式" }, { value: "C", label: "代理行模式" },
{ value: "O", label: "Other" }, { value: "O", label: "Other" },
{ value: "S", label: "CIPS系统" }, { value: "S", label: "CIPS系统" },
], ],
swftypOpnp: [
{ label: 'MT103', value: '103' },
{ label: 'Mt202 COV', value: '202' },
{ label: 'MT202', value: '200' },
{ label: 'Other', value: 'OTH' },
],
flag1:true, flag1:true,
flag2:true,
}; };
}, },
methods: { methods: {
...@@ -497,6 +499,78 @@ export default { ...@@ -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 () {}, created: function () {},
computed: { computed: {
......
...@@ -163,6 +163,7 @@ ...@@ -163,6 +163,7 @@
<c-input <c-input
maxlength="16" maxlength="16"
placeholder="" placeholder=""
disabled
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -172,12 +173,14 @@ ...@@ -172,12 +173,14 @@
label="Intermediary Institut.(Tag 54a)" label="Intermediary Institut.(Tag 54a)"
style="width: 100%" style="width: 100%"
label-width="35%" label-width="35%"
> >
<c-fullbox> <c-fullbox>
<c-input <c-input
maxlength="16" maxlength="16"
placeholder="请输入Reference" placeholder="请输入Reference"
disabled v-model="model.cpdgrp.orc.pts.extkey"
@keyup.enter.native="showGridPromptDialog('cpdgrp.orc.pts.extkey')"
></c-input> ></c-input>
<template slot="footer"> <template slot="footer">
<c-button <c-button
...@@ -211,6 +214,7 @@ ...@@ -211,6 +214,7 @@
type="textarea" type="textarea"
:rows="3" :rows="3"
maxlength="140" maxlength="140"
v-model="model.cpdgrp.orc.pts.adrblk"
show-word-limit show-word-limit
placeholder="请输入Address Block" placeholder="请输入Address Block"
disabled disabled
...@@ -236,6 +240,7 @@ ...@@ -236,6 +240,7 @@
label="Account with Institution/Account(Tag 54a)" label="Account with Institution/Account(Tag 54a)"
style="width: 100%" style="width: 100%"
label-width="35%" label-width="35%"
> >
<c-fullbox> <c-fullbox>
<c-input <c-input
...@@ -244,7 +249,7 @@ ...@@ -244,7 +249,7 @@
v-model="setgll.setgrp.awi.pts.extkey" v-model="setgll.setgrp.awi.pts.extkey"
@change="setgllChange" @change="setgllChange"
@keyup.enter.native=" @keyup.enter.native="
showGridPromptDialog('cpdgrp.pye.pts.extkey') showGridPromptDialog('setgll.setgrp.awi.pts.extkey')
" "
></c-input> ></c-input>
<template slot="footer"> <template slot="footer">
...@@ -259,8 +264,7 @@ ...@@ -259,8 +264,7 @@
font-family: '宋体'; font-family: '宋体';
font-weight: bold; font-weight: bold;
" "
>i</span >i</span>
>
</c-button> </c-button>
<c-button <c-button
style="margin: 0 0" style="margin: 0 0"
...@@ -297,9 +301,7 @@ ...@@ -297,9 +301,7 @@
></c-input> ></c-input>
</c-col> </c-col>
<c-col :span="5" style="text-align: right"> <c-col :span="5" style="text-align: right">
<c-checkbox v-model="model.cpdgrp.rec.tsnflg" <c-checkbox v-model="model.cpdgrp.rec.tsnflg">Use Opt.F</c-checkbox>
>Use Opt.F</c-checkbox
>
</c-col> </c-col>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -418,6 +420,8 @@ export default { ...@@ -418,6 +420,8 @@ export default {
setgrp:{ setgrp:{
awi:{ awi:{
pts:{ 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