Commit 96441c77 by liyixun

gitopn 优化

parent 5b7f1d33
...@@ -64,7 +64,7 @@ export default class Gitopn{ ...@@ -64,7 +64,7 @@ export default class Gitopn{
chkast:"", // Allow * .gitp.covgod.chkast chkast:"", // Allow * .gitp.covgod.chkast
}, },
aplnamtxt:"", // 申请人名称 .gitp.aplnamtxt aplnamtxt:"", // 申请人名称 .gitp.aplnamtxt
indirectswiadd:"", // InDirect Swift Add .gitp.indirectswiadd indirectswiadd:{}, // InDirect Swift Add .gitp.indirectswiadd
labaddinfc:"", // Label for Additional Info in Sequence C .gitp.labaddinfc labaddinfc:"", // Label for Additional Info in Sequence C .gitp.labaddinfc
covgodsrvcmodflg:"", // Modify Object of Contract Sequence C .gitp.covgodsrvcmodflg covgodsrvcmodflg:"", // Modify Object of Contract Sequence C .gitp.covgodsrvcmodflg
covgodc:{ covgodc:{
...@@ -341,7 +341,7 @@ export default class Gitopn{ ...@@ -341,7 +341,7 @@ export default class Gitopn{
orcplcc:"", // Original Contract Place - Local Undertaking Seq. C .gidgrp.blk.orcplcc orcplcc:"", // Original Contract Place - Local Undertaking Seq. C .gidgrp.blk.orcplcc
addinfc:"", // Additional Info - Local Undertaking Seq. C .gidgrp.blk.addinfc addinfc:"", // Additional Info - Local Undertaking Seq. C .gidgrp.blk.addinfc
atxcovgodsrvc:"", // Underly. Transact. Det. .gidgrp.blk.atxcovgodsrvc atxcovgodsrvc:"", // Underly. Transact. Det. .gidgrp.blk.atxcovgodsrvc
gidtxt:"", // Guarantee Text .gidgrp.blk.gidtxt gidtxt:{}, // Guarantee Text .gidgrp.blk.gidtxt
gtxgidtxt:"", // Guarantee Text with Variables .gidgrp.blk.gtxgidtxt gtxgidtxt:"", // Guarantee Text with Variables .gidgrp.blk.gtxgidtxt
gidtxtc:"", // Guarantee Text local undertaking .gidgrp.blk.gidtxtc gidtxtc:"", // Guarantee Text local undertaking .gidgrp.blk.gidtxtc
gtxgidtxtc:"", // Guarantee Text with Variables - Counter Undertaking .gidgrp.blk.gtxgidtxtc gtxgidtxtc:"", // Guarantee Text with Variables - Counter Undertaking .gidgrp.blk.gtxgidtxtc
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="11" :offset="1"> <c-col :span="11" :offset="1">
<c-col :span="24"> <!-- <c-col :span="24">
<el-form-item label="以下两个选项二选一" prop="addbcb.bccls4"> <el-form-item label="以下两个选项二选一" prop="addbcb.bccls4">
<c-select <c-select
:code="codes.bccls8" :code="codes.bccls8"
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col> -->
</c-col> </c-col>
</c-col> </c-col>
</c-row> </c-row>
......
...@@ -111,6 +111,7 @@ ...@@ -111,6 +111,7 @@
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>
...@@ -123,7 +124,7 @@ ...@@ -123,7 +124,7 @@
> >
<c-date-picker <c-date-picker
:disabled=" :disabled="
model.trnmod.swiadd.exptyp == 'OPEN' && model.trnmod.swiadd.exptyp == 'OPEN' ||
model.oldgidgrp.rec.expdat == '' model.oldgidgrp.rec.expdat == ''
" "
type="date" type="date"
...@@ -140,7 +141,7 @@ ...@@ -140,7 +141,7 @@
prop="trnmod.swiadd.exptxt" prop="trnmod.swiadd.exptxt"
> >
<c-input <c-input
disabled :disabled="this.flag"
type="textarea" type="textarea"
v-model="model.trnmod.swiadd.exptxt" v-model="model.trnmod.swiadd.exptxt"
maxlength="65" maxlength="65"
...@@ -164,6 +165,7 @@ ...@@ -164,6 +165,7 @@
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>
...@@ -175,7 +177,10 @@ ...@@ -175,7 +177,10 @@
prop="trnmod.swiadd.newliadat" prop="trnmod.swiadd.newliadat"
> >
<c-date-picker <c-date-picker
disabled :disabled="
model.trnmod.swiadd.liatypc == 'OPEN' ||
model.oldgidgrp.rec.liadat == ''
"
type="date" type="date"
v-model="model.trnmod.swiadd.newliadat" v-model="model.trnmod.swiadd.newliadat"
style="width: 100%" style="width: 100%"
...@@ -190,7 +195,7 @@ ...@@ -190,7 +195,7 @@
prop="trnmod.swiadd.liatxtc" prop="trnmod.swiadd.liatxtc"
> >
<c-input <c-input
disabled :disabled="this.flag1"
type="textarea" type="textarea"
v-model="model.trnmod.swiadd.liatxtc" v-model="model.trnmod.swiadd.liatxtc"
maxlength="65" maxlength="65"
...@@ -206,8 +211,10 @@ ...@@ -206,8 +211,10 @@
prop="trnmod.swiadd.newdtaappexpdat" prop="trnmod.swiadd.newdtaappexpdat"
> >
<c-date-picker <c-date-picker
:disabled="model.trnmod.swiadd.exptyp != 'OPEN' && :disabled="
model.oldgidgrp.rec.exptyp != 'OPEN'" model.trnmod.swiadd.exptyp != 'OPEN' &&
model.oldgidgrp.rec.exptyp != 'OPEN'
"
type="date" type="date"
v-model="model.trnmod.swiadd.newdtaappexpdat" v-model="model.trnmod.swiadd.newdtaappexpdat"
style="width: 100%" style="width: 100%"
...@@ -232,9 +239,38 @@ export default { ...@@ -232,9 +239,38 @@ export default {
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data() { data() {
return {}; return {
flag: false,
flag1: false,
};
},
methods: {
...Event,
exptypChange() {
if (this.model.trnmod.swiadd.exptyp != "COND") {
this.flag = true;
} else {
if (
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;
}
}
},
}, },
methods: { ...Event },
created: function () {}, created: function () {},
}; };
</script> </script>
......
...@@ -503,15 +503,15 @@ ...@@ -503,15 +503,15 @@
label="InDirect Swift Add" label="InDirect Swift Add"
prop="gitp.indirectswiadd" prop="gitp.indirectswiadd"
> >
<c-input <c-input-xml
disabled
type="textarea" type="textarea"
rows="4" :maxRows="10"
v-model="model.gitp.indirectswiadd" :model="model.gitp.indirectswiadd"
@change="selectOrCheckboxRule('gitp.indirectswiadd')"
maxlength="9750" maxlength="9750"
show-word-limit show-word-limit
placeholder="请输入InDirect Swift Add" placeholder="请输入InDirect Swift Add"
></c-input> ></c-input-xml>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -647,8 +647,10 @@ import Api from "~/service/Api"; ...@@ -647,8 +647,10 @@ import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Event from "~/model/Gitopn/Event"; import Event from "~/model/Gitopn/Event";
import InputXml from "~/components/InputXml";
export default { export default {
components: { InputXml },
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
......
...@@ -9,22 +9,23 @@ ...@@ -9,22 +9,23 @@
label="Guarantee Text with Variables" label="Guarantee Text with Variables"
prop="gidgrp.blk.gidtxt" prop="gidgrp.blk.gidtxt"
> >
<i-stream-input <c-input-xml
:disabled="model.gitp.gidtxtmodflg == ''" :disabled="model.gitp.gidtxtmodflg == ''"
type="textarea" resize="none"
rows="15" :maxRows="10"
:model="model.gidgrp.blk.gidtxt" :model="model.gidgrp.blk.gidtxt"
maxlength="32500" maxlength="32500"
show-word-limit show-word-limit
placeholder="请输入Guarantee Text with Variables" placeholder="请输入Guarantee Text with Variables"
></i-stream-input> @change="selectOrCheckboxRule('gidgrp.blk.gidtxt')"
></c-input-xml>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
v-if="model.gitp.gidtxtmodflg == 'X'" v-if="model.gitp.gidtxtmodflg == 'X'"
label="Guarantee Text with Variables" label="Guarantee Text with Variables"
prop="gidgrp.blk.gtxgidtxt" prop="gidgrp.blk.gtxgidtxt"
> >
<i-stream-input <c-input-xml
type="textarea" type="textarea"
:model="model.gidgrp.blk.gtxgidtxt" :model="model.gidgrp.blk.gtxgidtxt"
rows="15" rows="15"
...@@ -32,7 +33,7 @@ ...@@ -32,7 +33,7 @@
show-word-limit show-word-limit
placeholder="请输入Guarantee Text with Variables" placeholder="请输入Guarantee Text with Variables"
@change="gtxBlur" @change="gtxBlur"
></i-stream-input> ></c-input-xml>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
...@@ -130,12 +131,12 @@ ...@@ -130,12 +131,12 @@
import Api from "~/service/Api"; import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import IStreamInput from "~/components/IStreamInput"; import InputXml from "~/components/InputXml";
import Event from "~/model/Gitopn/Event"; import Event from "~/model/Gitopn/Event";
import Utils from "~/utils"; import Utils from "~/utils";
export default { export default {
components: { IStreamInput }, components: { InputXml},
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
label="Guarantee Text with Variables" label="Guarantee Text with Variables"
prop="gidgrp.blk.gtxgidtxt" prop="gidgrp.blk.gtxgidtxt"
> >
<i-stream-input <c-input-xml
:disabled="model.gitp.gidtxtmodflgc == ''" :disabled="model.gitp.gidtxtmodflgc == ''"
type="textarea" type="textarea"
rows="15" rows="15"
...@@ -17,21 +17,21 @@ ...@@ -17,21 +17,21 @@
maxlength="32500" maxlength="32500"
show-word-limit show-word-limit
placeholder="请输入Guarantee Text with Variables" placeholder="请输入Guarantee Text with Variables"
></i-stream-input> ></c-input-xml>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
v-if="model.gitp.gidtxtmodflgc == 'X'" v-if="model.gitp.gidtxtmodflgc == 'X'"
label="Guarantee Text with Variables - Counter Undertaking" label="Guarantee Text with Variables - Counter Undertaking"
prop="gidgrp.blk.gtxgidtxtc" prop="gidgrp.blk.gtxgidtxtc"
> >
<i-stream-input <c-input-xml
type="textarea" type="textarea"
:modle="model.gidgrp.blk.gtxgidtxtc" :modle="model.gidgrp.blk.gtxgidtxtc"
rows="15" rows="15"
maxlength="32500" maxlength="32500"
show-word-limit show-word-limit
placeholder="请输入Guarantee Text with Variables - Counter Undertaking" placeholder="请输入Guarantee Text with Variables - Counter Undertaking"
></i-stream-input> ></c-input-xml>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="11" :offset="1">
<el-form-item label="是否对外担保" prop="gidgrp.rec.fingua"> <el-form-item label="是否对外担保" prop="gidgrp.rec.fingua">
<c-select <c-select
v-model="model.gidgrp.rec.fingua" v-model="model.gidgrp.rec.fingua"
......
...@@ -205,7 +205,22 @@ ...@@ -205,7 +205,22 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24" v-if="model.gitp.swiftflg == 'Y'">
<el-form-item
label="Outgoing Purpose"
prop="gidgrp.rec.purpos"
>
<c-select
v-model="model.gidgrp.rec.purpos"
style="width: 100%"
placeholder="请选择Outgoing Purpose"
:code="getValues('gidgrp.rec.purpos')"
>
</c-select>
</el-form-item>
</c-col>
<!-- <c-col :span="24">
<el-form-item <el-form-item
v-if="model.gitp.swiftflg == 'Y' && model.gidgrp.rec.purposin == ''" v-if="model.gitp.swiftflg == 'Y' && model.gidgrp.rec.purposin == ''"
label="Outgoing Purpose" label="Outgoing Purpose"
...@@ -225,9 +240,9 @@ ...@@ -225,9 +240,9 @@
</el-option> </el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col> -->
<c-col :span="24"> <!-- <c-col :span="24">
<el-form-item <el-form-item
v-if=" v-if="
model.gitp.swiftflg == 'Y' && model.gidgrp.rec.purposin == 'ICCO' model.gitp.swiftflg == 'Y' && model.gidgrp.rec.purposin == 'ICCO'
...@@ -249,9 +264,9 @@ ...@@ -249,9 +264,9 @@
</el-option> </el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col> -->
<c-col :span="24"> <!-- <c-col :span="24">
<el-form-item <el-form-item
v-if=" v-if="
model.gitp.swiftflg == 'Y' && model.gidgrp.rec.purposin == 'ISCO' model.gitp.swiftflg == 'Y' && model.gidgrp.rec.purposin == 'ISCO'
...@@ -297,7 +312,7 @@ ...@@ -297,7 +312,7 @@
</el-option> </el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col> -->
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item
...@@ -325,6 +340,7 @@ ...@@ -325,6 +340,7 @@
v-model="model.gidgrp.rec.hndtyp" v-model="model.gidgrp.rec.hndtyp"
style="width: 100%" style="width: 100%"
placeholder="请选择Handling Type" placeholder="请选择Handling Type"
@change="hndtypChange"
> >
<el-option <el-option
v-for="item in codes.hndtyp8" v-for="item in codes.hndtyp8"
...@@ -2088,6 +2104,13 @@ export default { ...@@ -2088,6 +2104,13 @@ export default {
Utils.copyValueFromVO(this.model, rtnmsg.data); Utils.copyValueFromVO(this.model, rtnmsg.data);
} }
}, },
async hndtypChange() {
let rtnmsg = await this.executeRule("gidgrp.rec.hndtyp");
if (rtnmsg.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsg.data);
}
},
}, },
created: function () {}, created: function () {},
}; };
......
...@@ -371,6 +371,9 @@ export default { ...@@ -371,6 +371,9 @@ export default {
if (name === "ptypc"){ if (name === "ptypc"){
rulePath = "gitp.ptypc" rulePath = "gitp.ptypc"
} }
if(name === "detp"){
rulePath = "gitp.detp"
}
if (!!rulePath) { if (!!rulePath) {
this.executeRule(rulePath).then((res) => { this.executeRule(rulePath).then((res) => {
if (res.respCode == SUCCESS) { if (res.respCode == SUCCESS) {
......
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