Commit 2fbc77f5 by panziyi

Bctcan修改

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