Commit 95fc2f4b by WH

修复letrsv缺陷

parent 6bda1321
......@@ -449,8 +449,8 @@ export default {
this.model.ledgrp.cbs.max.cur = this.model.ledgrp.cbs.nom1.cur
return this.model.ledgrp.cbs.max.cur
},
maxamt(){
this.model.ledgrp.cbs.max.amt = this.model.ledgrp.cbs.nom1.amt * (1+this.model.ledgrp.rec.nomtop/100)
maxamt() {
this.model.ledgrp.cbs.max.amt = parseFloat(this.model.ledgrp.cbs.nom1.amt * (1 + this.model.ledgrp.rec.nomtop / 100)).toFixed(2)
return this.model.ledgrp.cbs.max.amt
}
}
......
......@@ -157,7 +157,6 @@ export default {
ptsList.push(this.model.ledgrp.adv)
ptsList.push(this.model.ledgrp.a2b)
ptsList.push(this.model.ledgrp.iss)
ptsList.push(this.model.ledgrp.own)
let params = {
avbwth: this.model.ledgrp.rec.avbwth,
ptsList
......
......@@ -4,7 +4,7 @@
<c-col :span="10">
<el-form-item label="附加金额" prop="ledgrp.cbs.max2.cur">
<c-select
v-model="model.ledgrp.cbs.max2.cur"
v-model="max2cur"
style="width: 100%"
placeholder="请选择币种"
disabled
......@@ -32,7 +32,7 @@
<c-col :span="10">
<el-form-item label="附加金额余额" prop="ledgrp.cbs.opn2.cur">
<c-select
v-model="model.ledgrp.cbs.opn2.cur"
v-model="opn2cur"
style="width: 100%"
placeholder="请选择币种"
:code="codes.curtxt1"
......@@ -45,7 +45,7 @@
<c-col :span="12">
<el-form-item label="" label-width="20px" prop="ledgrp.cbs.opn2.amt">
<c-input-currency
v-model="model.ledgrp.cbs.opn2.amt"
v-model="opn2amt"
style="width: 100%"
placeholder="请输入附加金额余额"
disabled
......@@ -57,7 +57,7 @@
<el-form-item label="39C场" prop="ledgrp.blk.addamtcov">
<c-input
type="textarea"
v-model="model.ledgrp.blk.addamtcov"
v-model="getBlkAddamtcov"
maxlength="35"
show-word-limit
placeholder="请输入39C场"
......@@ -84,6 +84,28 @@ export default {
},
methods: { event },
created: function () {},
computed:{
max2cur(){
this.model.ledgrp.cbs.max2.cur = this.model.ledgrp.cbs.max.cur
return this.model.ledgrp.cbs.max2.cur
},
opn2cur(){
this.model.ledgrp.cbs.opn2.cur = this.model.ledgrp.cbs.max.cur
return this.model.ledgrp.cbs.opn2.cur
},
opn2amt(){
this.model.ledgrp.cbs.opn2.amt = parseFloat(this.model.ledgrp.cbs.max2.amt).toFixed(3)
return this.model.ledgrp.cbs.opn2.amt
},
getBlkAddamtcov(){
this.model.ledgrp.blk.addamtcov = this.model.ledgrp.cbs.opn2.cur + " " +this.model.ledgrp.cbs.opn2.amt
return this.model.ledgrp.blk.addamtcov
}
},
};
</script>
<style>
......
......@@ -11,8 +11,9 @@
style="width: 100%"
placeholder="请选择可用银行"
:code="codes.avbwth"
@change="avbwthEvent"
@change="avbwthFlg"
>
<!-- @change="avbwthEvent"-->
</c-select>
</el-form-item>
</c-col>
......
......@@ -4,37 +4,37 @@
<c-col :span="24">
<c-col :span="12" style="padding-right: 20px;">
<el-form-item
label="信用证编号"
prop="ledgrp.rec.ownref"
style="width: 100%"
label="信用证编号"
prop="ledgrp.rec.ownref"
style="width: 100%"
>
<c-fullbox>
<c-input
v-model="model.ledgrp.rec.ownref"
maxlength="16"
placeholder="请输入信用证编号"
style="width: 95%"
:disabled="true"
v-model="model.ledgrp.rec.ownref"
maxlength="16"
placeholder="请输入信用证编号"
style="width: 95%"
:disabled="true"
></c-input>
<template slot="footer">
<c-button
style="margin: 0 10px 0 0; padding: 0 12px"
size="small"
type="primary"
icon="el-icon-info"
style="margin: 0 10px 0 0; padding: 0 12px"
size="small"
type="primary"
icon="el-icon-info"
>
</c-button>
<c-button
<c-button
style="margin: 0 0"
size="small"
type="primary"
:disabled="
model.ledgrp.ben.pts.adrblk && !model.ledgrp.rec.ownref? false: true"
@click="onLitpButgetref"
>
获取
</c-button>
@click="onLitpButgetref"
>
获取
</c-button>
</template>
</c-fullbox>
</el-form-item>
......@@ -43,10 +43,10 @@
<c-col :span="12" style="padding-left: 20px;">
<el-form-item label="简略信息" prop="ledgrp.rec.nam">
<c-input
v-model="model.ledgrp.rec.nam"
maxlength="40"
placeholder="请输入"
disabled
v-model="model.ledgrp.rec.nam"
maxlength="40"
placeholder="请输入"
disabled
></c-input>
</el-form-item>
</c-col>
......@@ -57,10 +57,10 @@
<c-col :span="24">
<el-form-item label="信用证类型" prop="ledgrp.rec.lcrtyp">
<c-select
v-model="model.ledgrp.rec.lcrtyp"
style="width: 100%"
placeholder="请选择信用证类型"
:code="codes.lcrtyp"
v-model="model.ledgrp.rec.lcrtyp"
style="width: 100%"
placeholder="请选择信用证类型"
:code="codes.lcrtyp"
>
</c-select>
</el-form-item>
......@@ -69,23 +69,23 @@
<c-col :span="24">
<c-col :span="19">
<el-form-item
label="客户经理"
prop="letp.usr.extkey"
style="width: 100%"
label="客户经理"
prop="letp.usr.extkey"
style="width: 100%"
>
<c-fullbox>
<c-input
v-model="model.letp.usr.extkey"
maxlength="8"
placeholder="请输入客户经理"
disabled
v-model="model.letp.usr.extkey"
maxlength="8"
placeholder="请输入客户经理"
disabled
></c-input>
<template slot="footer">
<c-button
style="margin-left: 10px; padding: 0 10px"
size="small"
icon="el-icon-search"
type="primary"
style="margin-left: 10px; padding: 0 10px"
size="small"
icon="el-icon-search"
type="primary"
>
</c-button>
</template>
......@@ -94,10 +94,11 @@
</c-col>
<c-col :span="5">
<c-checkbox
:disabled="true"
v-model="model.ledgrp.rec.collflg"
style="margin-left: 10px"
>担保信用证</c-checkbox
:disabled="true"
v-model="model.ledgrp.rec.collflg"
style="margin-left: 10px"
>担保信用证
</c-checkbox
>
</c-col>
</c-col>
......@@ -106,10 +107,10 @@
<c-col :span="12">
<el-form-item label="信用证金额" prop="ledgrp.cbs.nom1.cur">
<c-select
v-model="model.ledgrp.cbs.nom1.cur"
style="width: 100%"
placeholder="请选择币种"
:code="codes.curtxt1"
v-model="model.ledgrp.cbs.nom1.cur"
style="width: 100%"
placeholder="请选择币种"
:code="codes.curtxt1"
>
</c-select>
</el-form-item>
......@@ -118,19 +119,20 @@
<c-col :span="7">
<el-form-item label="" label-width="20px" prop="ledgrp.cbs.nom1.amt">
<c-input-currency
v-model="model.ledgrp.cbs.nom1.amt"
style="text-align: left; width: 100%"
placeholder="请输入金额"
@keyup.enter.native="$event.target.blur()"
v-model="model.ledgrp.cbs.nom1.amt"
style="text-align: left; width: 100%"
placeholder="请输入金额"
@keyup.enter.native="$event.target.blur()"
></c-input-currency>
</el-form-item>
</c-col>
<c-col :span="5">
<c-checkbox
v-model="model.letp.aamp.aammod.addamtflg"
style="margin-left: 10px"
>附加金额</c-checkbox
v-model="model.letp.aamp.aammod.addamtflg"
style="margin-left: 10px"
>附加金额
</c-checkbox
>
</c-col>
</c-col>
......@@ -139,33 +141,34 @@
<c-col :span="12">
<el-form-item label="溢短装" prop="ledgrp.rec.nomtop">
<c-input
v-model.number="model.ledgrp.rec.nomtop"
maxlength="2"
style="width: 100%"
placeholder="请输入金额上浮"
@keyup.enter.native="$event.target.blur()"
class="m-input-currency"
v-model.number="model.ledgrp.rec.nomtop"
maxlength="2"
style="width: 100%"
placeholder="请输入金额上浮"
@keyup.enter.native="$event.target.blur()"
class="m-input-currency"
></c-input>
</el-form-item>
</c-col>
<c-col :span="7">
<el-form-item label="" label-width="20px" prop="ledgrp.rec.nomton">
<c-input
v-model.number="model.ledgrp.rec.nomton"
maxlength="2"
style="width: 100%"
placeholder="请输入金额下浮"
@keyup.enter.native="$event.target.blur()"
class="m-input-currency"
v-model.number="model.ledgrp.rec.nomton"
maxlength="2"
style="width: 100%"
placeholder="请输入金额下浮"
@keyup.enter.native="$event.target.blur()"
class="m-input-currency"
></c-input>
</el-form-item>
</c-col>
<c-col :span="5">
<c-checkbox
v-model="model.ledgrp.rec.inctrf"
disabled
style="margin-left: 10px"
>Incoming Transfer</c-checkbox
v-model="model.ledgrp.rec.inctrf"
disabled
style="margin-left: 10px"
>Incoming Transfer
</c-checkbox
>
</c-col>
</c-col>
......@@ -174,18 +177,19 @@
<c-col :span="19">
<el-form-item label="金额限额表述" prop="ledgrp.rec.nomspc">
<c-select
v-model="model.ledgrp.rec.nomspc"
style="width: 100%"
placeholder="请输入金额限额表述"
:code="codes.nomspc"
:disabled="true"
v-model="model.ledgrp.rec.nomspc"
style="width: 100%"
placeholder="请输入金额限额表述"
:code="codes.nomspc"
:disabled="true"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="5">
<c-checkbox v-model="resflg" style="margin-left: 10px"
>保留合同</c-checkbox
>保留合同
</c-checkbox
>
</c-col>
</c-col>
......@@ -194,11 +198,11 @@
<c-col :span="12">
<el-form-item label="最大金额" prop="ledgrp.cbs.max.cur">
<c-select
v-model="model.ledgrp.cbs.max.cur"
style="width: 100%"
placeholder="请选择币种"
disabled
:code="codes.curtxt1"
v-model="maxcur"
style="width: 100%"
placeholder="请选择币种"
disabled
:code="codes.curtxt1"
>
</c-select>
</el-form-item>
......@@ -207,10 +211,10 @@
<c-col :span="12">
<el-form-item label="" label-width="20px" prop="ledgrp.cbs.max.amt">
<c-input
v-model="model.ledgrp.cbs.max.amt"
placeholder="请输入金额"
class="m-input-currency"
disabled
v-model="maxamt"
placeholder="请输入金额"
class="m-input-currency"
disabled
></c-input>
</el-form-item>
</c-col>
......@@ -220,25 +224,25 @@
<c-col :span="12">
<el-form-item label="开证日期" prop="ledgrp.rec.opndat">
<c-date-picker
type="date"
v-model="model.ledgrp.rec.opndat"
style="width: 100%"
placeholder="请选择日期"
type="date"
v-model="model.ledgrp.rec.opndat"
style="width: 100%"
placeholder="请选择日期"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item
label="预通知日期"
label-width="130px"
prop="ledgrp.rec.preadvdt"
label="预通知日期"
label-width="130px"
prop="ledgrp.rec.preadvdt"
>
<c-date-picker
type="date"
v-model="model.ledgrp.rec.preadvdt"
style="width: 100%"
placeholder="请选择日期"
disabled
type="date"
v-model="model.ledgrp.rec.preadvdt"
style="width: 100%"
placeholder="请选择日期"
disabled
></c-date-picker>
</el-form-item>
</c-col>
......@@ -248,26 +252,26 @@
<c-col :span="12">
<el-form-item label="装运日期" prop="ledgrp.rec.shpdat">
<c-date-picker
type="date"
v-model="model.ledgrp.rec.shpdat"
style="width: 100%"
placeholder="请选择日期"
type="date"
v-model="model.ledgrp.rec.shpdat"
style="width: 100%"
placeholder="请选择日期"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item
label="复核日期"
label-width="130px"
prop="ledgrp.rec.advdat"
label="复核日期"
label-width="130px"
prop="ledgrp.rec.advdat"
>
<c-date-picker
type="date"
v-model="model.ledgrp.rec.advdat"
style="width: 100%"
placeholder="请选择日期"
disabled
type="date"
v-model="model.ledgrp.rec.advdat"
style="width: 100%"
placeholder="请选择日期"
disabled
></c-date-picker>
</el-form-item>
</c-col>
......@@ -276,10 +280,10 @@
<c-col :span="24">
<el-form-item label="生效日期" prop="ledgrp.rec.expdat">
<c-date-picker
type="date"
v-model="model.ledgrp.rec.expdat"
style="width: 100%"
placeholder="请选择日期"
type="date"
v-model="model.ledgrp.rec.expdat"
style="width: 100%"
placeholder="请选择日期"
></c-date-picker>
</el-form-item>
</c-col>
......@@ -287,23 +291,23 @@
<c-col :span="24">
<el-form-item label="生效地点" prop="ledgrp.rec.expplc">
<c-input
v-model="model.ledgrp.rec.expplc"
maxlength="29"
placeholder="请选择地点"
v-model="model.ledgrp.rec.expplc"
maxlength="29"
placeholder="请选择地点"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="收到的承兑指示"
prop="ledgrp.rec.cnfdet"
label="收到的承兑指示"
prop="ledgrp.rec.cnfdet"
>
<c-select
v-model="model.ledgrp.rec.cnfdet"
style="width: 100%"
placeholder="请选择内容"
:code="codes.cnfflg1"
v-model="model.ledgrp.rec.cnfdet"
style="width: 100%"
placeholder="请选择内容"
:code="codes.cnfflg1"
>
</c-select>
</el-form-item>
......@@ -312,11 +316,11 @@
<c-col :span="24">
<el-form-item label="适用规则" prop="ledgrp.rec.apprul">
<c-select
v-model="model.ledgrp.rec.apprul"
style="width: 100%"
placeholder="请选择适用规则"
:code="codes.apprul1"
@change="apprulChange"
v-model="model.ledgrp.rec.apprul"
style="width: 100%"
placeholder="请选择适用规则"
:code="codes.apprul1"
@change="apprulChange"
>
</c-select>
</el-form-item>
......@@ -324,24 +328,24 @@
<c-col :span="24">
<el-form-item
label="其他适用规则"
prop="ledgrp.rec.apprultxt"
label="其他适用规则"
prop="ledgrp.rec.apprultxt"
>
<c-input
v-model="model.ledgrp.rec.apprultxt"
maxlength="35"
placeholder="请选择适用规则"
:disabled="model.ledgrp.rec.apprul === 'OTHR' ? false : true"
v-model="model.ledgrp.rec.apprultxt"
maxlength="35"
placeholder="请选择适用规则"
:disabled="model.ledgrp.rec.apprul === 'OTHR' ? false : true"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="分批装运" prop="ledgrp.rec.shppar">
<c-select
v-model="model.ledgrp.rec.shppar"
style="width: 100%"
placeholder="请选择"
:code="codes.shptrss18"
v-model="model.ledgrp.rec.shppar"
style="width: 100%"
placeholder="请选择"
:code="codes.shptrss18"
>
</c-select>
</el-form-item>
......@@ -350,10 +354,10 @@
<c-col :span="24">
<el-form-item label="转运" prop="ledgrp.rec.shptrss18">
<c-select
v-model="model.ledgrp.rec.shptrss18"
style="width: 100%"
placeholder="请选择"
:code="codes.shptrss18"
v-model="model.ledgrp.rec.shptrss18"
style="width: 100%"
placeholder="请选择"
:code="codes.shptrss18"
>
</c-select>
</el-form-item>
......@@ -363,62 +367,64 @@
<!-- right -->
<c-col :span="12" style="padding-left: 20px;">
<c-ptap
:model="model"
:argadr="{
:model="model"
:argadr="{
title: '受益人',
grp: 'ledgrp',
rol: 'ben',
}"
:disabled="true"
@keyup.enter.native="
:disabled="true"
@keyup.enter.native="
queryGridEtyPromptDialogData('BEN', 'C')
"
>
</c-ptap>
<c-ptap
:model="model"
:argadr="{
:model="model"
:argadr="{
title: '开证行',
grp: 'ledgrp',
rol: 'iss',
}"
:disabled="true"
@keyup.enter.native="
:disabled="true"
@keyup.enter.native="
queryGridEtyPromptDialogData('ISS', 'B')
"
>
</c-ptap>
<c-ptap
:model="model"
:argadr="{
:model="model"
:argadr="{
title: '申请人',
grp: 'ledgrp',
rol: 'apl',
}"
:disabled="true"
@keyup.enter.native="
:disabled="true"
@keyup.enter.native="
queryGridEtyPromptDialogData('APL', 'C')
"
>
</c-ptap>
<c-col :span="12" >
<c-checkbox v-model="model.ledgrp.rec.revflg" class="checkbox-left" style="margin: 0px 0 10px 120px">循环信用证</c-checkbox>
<c-col :span="12">
<c-checkbox v-model="model.ledgrp.rec.revflg" class="checkbox-left" style="margin: 0px 0 10px 120px">
循环信用证
</c-checkbox>
</c-col>
<!-- Authorization to Debit -->
<c-col :span="12" >
<c-col :span="12">
<c-checkbox v-model="dbtflg" style="margin: 0px 0 10px 100px">借记授权</c-checkbox>
</c-col>
<c-col :span="12" >
<c-col :span="12">
<c-checkbox v-model="nonban" class="checkbox-left" style="margin: 0px 0 10px 120px">非银行开证</c-checkbox>
</c-col>
<!-- Test Key Unconfirmity -->
......@@ -433,7 +439,7 @@ import event from "../event"
import Ptap from "~/views/Public/Ptap";
export default {
components: { "c-ptap": Ptap },
components: {"c-ptap": Ptap},
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
......@@ -476,6 +482,16 @@ export default {
this.model.ledgrp.rec.teskeyunc = val ? "X" : "";
},
},
maxcur() {
this.model.ledgrp.cbs.max.cur = this.model.ledgrp.cbs.nom1.cur
return this.model.ledgrp.cbs.max.cur
},
maxamt() {
this.model.ledgrp.cbs.max.amt = parseFloat(this.model.ledgrp.cbs.nom1.amt * (1 + this.model.ledgrp.rec.nomtop / 100)).toFixed(2)
return this.model.ledgrp.cbs.max.amt
}
},
methods: {
apprulChange(v) {
......@@ -484,7 +500,8 @@ export default {
}
},
},
created: function () {},
created: function () {
},
};
</script>
<style>
......
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