Commit a6931b11 by panziyi

Bctset修改

parent e29f3270
......@@ -227,7 +227,7 @@
</el-form-item>
</c-col>
<c-col :span="24" class="bctdav_bctp_bctovw_cheak">
<c-checkbox v-model="model.bcdgrp.rec.focflg" @change="frepayflgDefault"
<c-checkbox v-model="focflg" @change="focflgDefault"
>Free of Payment</c-checkbox
>
</c-col>
......@@ -254,7 +254,7 @@
</c-col>
<c-col :span="12" class="bctdav_bctp_bctovw_cheak">
<c-checkbox :disabled="model.bcdgrp.rec.focflg=='X'" v-model="model.trtcre.crefinflg"
<c-checkbox :disabled="model.bcdgrp.rec.focflg=='X'" v-model="crefinflg"
@change="crefinflgChange"
>Create Financing</c-checkbox
>
......@@ -265,7 +265,7 @@
</c-col>
<c-col :span="24" class="bctdav_bctp_bctovw_cheak">
<c-checkbox true-label="C" v-model="model.mtabut.clsflg" @change="clsflgOtherDefault"
<c-checkbox true-label="C" v-model="clsflg" @change="clsflgOtherDefault"
>Close Contract</c-checkbox
>
</c-col>
......@@ -423,7 +423,7 @@ export default {
crefinflg: {
get() {
if (this.model.bddgrp.rec.frepayflg == 'X') {
if (this.model.bcdgrp.rec.focflg == 'X') {
return false;
}else{
return this.model.trtcre.crefinflg != ''
......@@ -446,41 +446,50 @@ export default {
this.model.mtabut.clsflg = val ? "C" : "O"
}
},
frepayflg: {
focflg: {
get() {
return this.model.bddgrp.rec.frepayflg != ''
return this.model.bcdgrp.rec.focflg != ''
},
set(val) {
if (this.model.bddgrp.rec.frepayflg == 'X' ) {
if (this.model.bcdgrp.rec.focflg == 'X' ) {
this.model.trtcre.crefinflg = ''
this.model.trnmod.cmtflg="O"
this.model.trnmod.cmtflg='O'
}else{
this.model.trnmod.cmtflg=''
}
this.model.bddgrp.rec.frepayflg = val ? "X" : ""
}
},
dfflag: {
get() {
return this.model.dftcre.dfflag != ''
},
set(val) {
this.model.dftcre.dfflag = val ? "X" : ""
this.model.bcdgrp.rec.focflg = val ? "X" : ""
}
},
// dfflag: {
// get() {
// return this.model.dftcre.dfflag != ''
// },
// set(val) {
// this.model.dftcre.dfflag = val ? "X" : ""
// }
// },
},
methods: {
...Event,
frepayflgDefault(){
focflgDefault(){
this.executeDefault("trnmod.cmtflg").then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
}
});
},
async crefinflgChange() {
let rtnmsg = await this.executeRule("trtcre.crefinflg");
if (rtnmsg.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsg.data);
// async crefinflgChange() {
// let rtnmsg = await this.executeRule("trtcre.crefinflg");
// if (rtnmsg.respCode == SUCCESS) {
// Utils.copyValueFromVO(this.model, rtnmsg.data);
// }
// },
crefinflgChange(){
this.executeRule("trtcre.crefinflg").then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
}
});
},
clsflgOtherDefault(){
this.executeDefault("mtabut.clsflg").then((res) => {
......@@ -526,28 +535,35 @@ export default {
},
watch: {
// "model.bcdgrp.rec.focflg": {
// immediate:true,
// handler(val,oldval){
// if(this.model.mtabut.clsflg=="C") {
// if(this.model.bcdgrp.rec.focflg==""){
// this.model.bcdgrp.rec.docsta="C"
// }else if(this.model.bcdgrp.rec.focflg=="X"){
// this.model.bcdgrp.rec.docsta="E"
// }
// }
// if(this.model.mtabut.clsflg==""){
// if(this.model.bcdgrp.rec.focflg=="X"){
// this.model.bcdgrp.rec.docsta="D"
// } else if(this.model.bcdgrp.rec.focflg==""){
// if(this.model.bcdgrp.rec.doctypcod=="A"||this.model.bcdgrp.rec.doctypcod=="D"||this.model.bcdgrp.rec.doctypcod=="M"){
// this.model.bcdgrp.rec.docsta="C"
// }
// }
// }
// }
// },
// "focflg":{
// immediate: true,
// handler(val, oldVal) {
// if(this.model.focflg=="X"){
// this.model.trnmod.cmtflg="O"
// }
// }
// },
"bcdgrp.rec.doctypcod":{
immediate: true,
handler(val, oldVal) {
if(this.bcdgrp.rec.predat!=''){
this.model.bcdgrp.rec.docsta="A"
}else if(this.bcdgrp.rec.opndat!=''){
this.model.bcdgrp.rec.docsta="B"
}
else if(this.model.bcdgrp.rec.doctypcod=="A"||this.model.bcdgrp.rec.doctypcod=="D"||this.model.bcdgrp.rec.doctypcod=="M"){
this.model.bcdgrp.rec.docsta="C"
}
}
},
"model.trnmod.cmtflg":{
immediate: true,
handler(val, oldVal) {
if(this.model.trnmod.cmtflg=="P"){
this.model.trnmod.swftyp="CIV"
}
}
},
"model.bctp.ischktyp": {
immediate: true,
......
......@@ -431,9 +431,7 @@
v-model="model.dftcre.dfdgrp.dff.pts.ref"
maxlength="16"
placeholder="请输入代付行"
@keyup.enter.native="
showGridPromptDialog('dftcre.dfdgrp.dff.pts.ref')
"
>
></c-input>
</el-form-item>
......@@ -449,6 +447,9 @@
v-model="model.dftcre.dfdgrp.dff.pts.extkey"
maxlength="16"
placeholder="请输入External Key of Address"
@keyup.enter.native="
showGridPromptDialog('dftcre.dfdgrp.dff.pts.extkey')
"
></c-input>
</el-form-item>
</c-col>
......@@ -460,7 +461,7 @@
</c-col>
<c-col :span="24">
<el-form-item label="名称" prop="dftcre.dfdgrp.dff.namelc">
<el-form-item label="名称" prop="dftcre.dfdgrp.dff.namelc" v-show="false">
<c-input
type="textarea"
v-model="model.dftcre.dfdgrp.dff.namelc"
......@@ -477,12 +478,13 @@
<el-form-item
label="地址"
prop="dftcre.dfdgrp.dff.adrelc"
v-show="false"
>
<c-input
type="textarea"
v-model="model.dftcre.dfdgrp.dff.adrelc"
v-model="model.dftcre.dfdgrp.dff.pts.adrblk"
maxlength="35"
:rows="5"
show-word-limit
placeholder="请输入地址"
></c-input>
......
......@@ -272,6 +272,7 @@ export default {
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
if (this.isInDisplay) {
this.restoreDisplay();
}
......
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