Commit 96441c77 by liyixun

gitopn 优化

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