Commit e03530ab by liyixun

gitame (bug 862)

parent 61b13745
...@@ -111,7 +111,6 @@ ...@@ -111,7 +111,6 @@
v-model="model.trnmod.swiadd.exptyp" v-model="model.trnmod.swiadd.exptyp"
style="width: 100%" style="width: 100%"
placeholder="请选择" placeholder="请选择"
@change="exptypChange"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -141,12 +140,19 @@ ...@@ -141,12 +140,19 @@
prop="trnmod.swiadd.exptxt" prop="trnmod.swiadd.exptxt"
> >
<c-input <c-input
:disabled="this.flag" :disabled="
!(model.trnmod.swiadd.exptyp == 'COND') &&
!(
model.oldgidgrp.blk.exptxt != '' &&
model.trnmod.swiadd.exptyp == ''
)
"
type="textarea" type="textarea"
v-model="model.trnmod.swiadd.exptxt" v-model="model.trnmod.swiadd.exptxt"
maxlength="65" maxlength="65"
show-word-limit show-word-limit
placeholder="请输入New Expiry Condition" placeholder="请输入New Expiry Condition"
@blur="exptxtBlur"
></c-input> ></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
...@@ -165,7 +171,6 @@ ...@@ -165,7 +171,6 @@
v-model="model.trnmod.swiadd.liatypc" v-model="model.trnmod.swiadd.liatypc"
style="width: 100%" style="width: 100%"
placeholder="请选择" placeholder="请选择"
@change="liatypcChange"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -195,7 +200,13 @@ ...@@ -195,7 +200,13 @@
prop="trnmod.swiadd.liatxtc" prop="trnmod.swiadd.liatxtc"
> >
<c-input <c-input
:disabled="this.flag1" :disabled="
!(model.trnmod.swiadd.liatypc == 'COND') &&
!(
model.oldgidgrp.blk.liatxtc != '' &&
model.trnmod.swiadd.liatypc == ''
)
"
type="textarea" type="textarea"
v-model="model.trnmod.swiadd.liatxtc" v-model="model.trnmod.swiadd.liatxtc"
maxlength="65" maxlength="65"
...@@ -240,34 +251,20 @@ export default { ...@@ -240,34 +251,20 @@ export default {
mixins: [commonProcess], mixins: [commonProcess],
data() { data() {
return { return {
flag: false,
flag1: false,
}; };
}, },
methods: { methods: {
...Event, ...Event,
exptypChange() { async exptxtBlur() {
if (this.model.trnmod.swiadd.exptyp != "COND") {
this.flag = true; let rtnmsg = await this.executeDefault("gidgrp.blk.exptxt");
} else { if (rtnmsg.respCode == SUCCESS) {
if ( Utils.copyValueFromVO(this.model, rtnmsg.data);
this.model.trnmod.swiadd.exptyp == "" &&
model.oldgidgrp.blk.exptxt != ""
) {
this.flag = true;
}
}
},
liatypcChange() {
if (this.model.trnmod.swiadd.liatypc != "COND") {
this.flag1 = true;
} else {
if (
this.model.trnmod.swiadd.liatypc == "" &&
model.oldgidgrp.blk.liatxtc != ""
) {
this.flag1 = true;
} }
let rtnmsg1 = await this.executeDefault("gidgrp.blk.atxexptxt");
if (rtnmsg1.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsg1.data);
} }
}, },
}, },
......
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