Commit f3a41cb4 by zhujiazhan

infcpd,infbrd,Cptadv,Cptopn页面BUG整改

parent 7d7674a7
......@@ -39,7 +39,7 @@ export default {
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cptp.uetr":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
......
......@@ -43,7 +43,6 @@ export default {
this.model.infcon.searol = "";
this.model.infcon.seacur = "";
this.model.infcon.seasta = "";
this.stmData.data = "";
},
async onInfbutSearow(){
......
......@@ -262,7 +262,9 @@ export default {
this.model.infcon.searol = "";
this.model.infcon.seacur = "";
this.model.infcon.seasta = "";
this.model.seapaytyp="";
this.model.msgtyp="";
this.model.countcode="";
this.stmData.data = "";
},
......
......@@ -63,7 +63,7 @@
placeholder="请输入清算编号"
style="width:100%"
></c-input>
<template slot="footer">
<!-- <template slot="footer">
<c-button
style="margin-left:10px;padding: 0 10px;"
size="small"
......@@ -72,7 +72,7 @@
@click="onCptpGetinf"
>
</c-button>
</template>
</template> -->
</c-fullbox>
</el-form-item>
</c-col>
......@@ -111,6 +111,7 @@
v-model="model.cpdgrp.rec.othbch"
maxlength="8"
placeholder="请输入所属行"
disabled
></c-input>
</el-form-item>
</c-col>
......@@ -261,6 +262,7 @@
v-model="model.cptp.uetr"
style="width: 100%"
placeholder="请输入Uetr"
disabled
></c-input>
<template slot="footer">
<c-button size="small" style="margin-left:10px;padding: 0 10px;" type="primary" @click="onCptpGetuetr">
......
......@@ -29,7 +29,7 @@
<c-col :span="11" :offset="1">
<c-col :span="24">
<c-col :span="8">
<c-checkbox v-model="model.bopmod.basflg" v-show="basflgShow">基础数据</c-checkbox>
<c-checkbox v-model="model.bopmod.basflg" v-show="basflgShow" :disabled="basflgEnable">基础数据</c-checkbox>
</c-col>
<c-col :span="8">
......@@ -63,7 +63,7 @@
<c-col :span="24">
<el-form-item label="地区机构号" label-width="30%">
<c-select v-model="model.bopmod.ownextkey" style="width:100%" placeholder="请选择地区机构号" :disabled="model.bopmod.szflg == 3">
<c-select v-model="model.bopmod.ownextkey" style="width:100%" placeholder="请选择地区机构号" :disabled="model.bopmod.szflg == 3 || model.bopmod.szflg == '' ">
</c-select>
</el-form-item>
</c-col>
......@@ -212,6 +212,7 @@ export default {
basflgShow: true,
dclflgShow: false,
vrfflgShow: false,
basflgEnable:true,
szflg:[
{ value: "1", label: "跨境收支" },
{ value: "2", label: "境内收支" },
......@@ -231,13 +232,31 @@ export default {
},
methods:{...Event,
handelSelChange(){
this.basflgEnable = false;
//控制checkbox的逻辑
if(this.model.bopmod.szflg == '3'){
this.model.bopmod.basflg = false;
this.basflgEnable = true;
this.model.bopmod.acttyp ="";
this.model.bopmod.ownextkey ="";
}else if(this.model.bopmod.szflg == '2'){
this.model.bopmod.acttyp ="";
this.model.bopmod.outchargeamt="0.00";
}
},
},
watch:{
"model.bopmod.basflg":{
immediate:true,
handler(val ,oldVal){
if(this.model.bopmod.basflg == ''){
this.model.bopmod.outchargeamt="0.00";
}
}
}
},
created:function(){
}
......
......@@ -36,9 +36,14 @@
<m-setpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--
<el-tab-pane label="分录" name="glepan">
<m-glepan :model="model" :codes="codes" ref="glepan" />
</el-tab-pane>
-->
<el-tab-pane label="附言" name="coninfp">
<!--PD000000 -->
<m-coninfp :model="model" :codes="codes" />
......
......@@ -337,7 +337,7 @@ export default {
'1 1 "Reference" 140',
'2 2 "Resp. User" 100',
//'3 3 "Goods Code" 100 1 0 1 GODCOD',
{ index: 3, position: 3, width: 100, pattern: "code", label: "Goods Code" ,"code":this.codes.godcod},
{ index: 3, position: 3, width: 100, pattern: "code", label: "Goods Code" ,"code":"godcod"},
'7 4 "Party Number1" 133',
'8 5 "Applicant" 160',
'9 6 "Applicant CN" 133',
......
......@@ -111,20 +111,22 @@
v-model="model.infcon.pty.extkey"
maxlength="24"
placeholder="请输入Select Single Party"
:disabled=this.flag1
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="Visible Name"
label="Party Name"
prop="infcon.pty.nam"
style="width: 100%"
>
<c-input
v-model="model.infcon.pty.nam"
maxlength="40"
placeholder="请输入External Visible Name"
placeholder="请输入External Party Name"
disabled
>
</c-input>
</el-form-item>
......@@ -142,6 +144,7 @@
v-model="model.infcon.seapty"
maxlength="24"
placeholder="请输入Party Name/BIC"
:disabled=this.flag2
></c-input>
</el-form-item>
</c-col>
......@@ -166,6 +169,7 @@
v-model="model.infcon.usr.extkey"
maxlength="8"
placeholder="请输入User ID"
disabled
>
</c-input>
</el-form-item>
......@@ -248,7 +252,7 @@
v-model="model.msgtyp"
style="width: 100%"
placeholder="请选择Swift type"
:code="codes.swftyp"
:code="swftyp"
>
</c-select>
</el-form-item>
......@@ -422,6 +426,8 @@ export default {
components: { "m-busbtn": BusNavbar },
data() {
return {
flag1:false,
flag2:false,
searol:[
{ label: "Ordering Customer", value: "ORC" },
{ label: "Ordering Institution", value: "ORI" },
......@@ -429,6 +435,14 @@ export default {
{ label: "Payee", value: "PYE" },
{ label: "Reimb. Bank Transfer", value: "RMT" },
],
swftyp:[
{ label: "MT103", value: "103" },
{ label: "MT202", value: "202" },
{ label: "MT910", value: "910" },
{ label: "CMT100", value: "CMT" },
{ label: "境内外币清算", value: "100" },
{ label: "Other", value: "OTH" },
],
cptselModel: new CptselModel().data,
searchToggle: true,
ownref: "",
......@@ -446,7 +460,7 @@ export default {
width: 100,
pattern: "code",
label: "状态",
code: "relstaEN",
code: this.codes.relstaEN,
},
'5 5 "币种" 80',
'6 6 "金额" 100',
......@@ -502,6 +516,25 @@ export default {
},
};
},
watch:{
"model.infcon.seapty": function () {
if (this.model.infcon.seapty == '') {
this.flag1 = false;
} else {
this.flag1 = true;
this.model.infcon.pty.extkey="";
}
},
"model.infcon.pty.extkey":function(){
if(this.model.infcon.pty.extkey == ''){
this.flag2 = false;
} else {
this.flag2 = true;
this.model.infcon.seapty="";
}
}
},
methods: {
...Event,
/* handleSearch(callback) {
......
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