Commit 2fbc77f5 by panziyi

Bctcan修改

parent b763a0a4
......@@ -126,7 +126,7 @@
<el-form-item label="Document Status" prop="bcdgrp.rec.docsta">
<c-select
disabled
:code="codes.docsta"
:code="codes.docstabot"
v-model="model.bcdgrp.rec.docsta"
style="width:100%"
placeholder="请输入Document Status"
......
......@@ -99,11 +99,26 @@ export default {
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {},
codes: {...CodeTable},
};
},
methods: {
tabClick() {},
mimeTabClick(tab) {
this.tabClick(tab);
const name = tab.name;
let rulePath;
if (name === "doctre") {
rulePath = "trnmod.trndoc.doctre"
}
if (!!rulePath) {
this.executeRule(rulePath).then((res) => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
}
});
}
},
},
created: async function () {
console.log("进入bctcan交易");
......
......@@ -246,7 +246,7 @@
<c-col :span="12">
<el-form-item label-width="0" prop="setmod.redamt">
<c-input
:disabled="model.bcdgrp.rec.focflg"
:disabled="model.bcdgrp.rec.focflg=='X'"
v-model="model.setmod.redamt"
placeholder="请输入Reduction Amt."
></c-input>
......@@ -254,7 +254,7 @@
</c-col>
<c-col :span="12" class="bctdav_bctp_bctovw_cheak">
<c-checkbox :disabled="model.bcdgrp.rec.focflg" v-model="model.trtcre.crefinflg"
<c-checkbox :disabled="model.bcdgrp.rec.focflg=='X'" v-model="model.trtcre.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"
<c-checkbox true-label="C" v-model="model.mtabut.clsflg" @change="clsflgChange"
>Close Contract</c-checkbox
>
</c-col>
......@@ -421,7 +421,13 @@ export default {
methods: {
...Event,
focflgChange(){
this.executeCheck('bcdgrp.rec.focflg').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) {
......@@ -462,14 +468,9 @@ export default {
}
}
},
async focflgChange() {
let rtnmsg = await this.executeDefault("bcdgrp.rec.focflg");
if (rtnmsg.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsg.data);
}
},
},
// watch: {
watch: {
// "model.bcdgrp.rec.focflg": {
// immediate:true,
// handler(val,oldval){
......@@ -493,17 +494,17 @@ export default {
// }
// },
// "model.bctp.ischktyp": {
// immediate: true,
// handler(val, oldVal) {
// if (this.model.bctp.ischktyp == "Y") {
// this.typ1 = false;
// } else {
// this.typ1 = true;
// }
// },
// },
// },
"model.bctp.ischktyp": {
immediate: true,
handler(val, oldVal) {
if (this.model.bctp.ischktyp == "Y") {
this.typ1 = false;
} else {
this.typ1 = true;
}
},
},
},
created: function () {},
};
</script>
......
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