Commit a7392db8 by panziyi

letamc修改

parent d01f8401
export default {
buildPtspta (ptsptaObj) {
buildPtspta(ptsptaObj) {
let pts = ptsptaObj.pts;
let ptspta = {
rol: pts.rol,
......@@ -17,7 +17,7 @@ export default {
};
return ptspta;
},
buildCommonData (model, trnName) {
buildCommonData(model, trnName) {
let ptsptaList = [];
if (model.ledgrp.iss.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ledgrp.iss));
......@@ -71,7 +71,7 @@ export default {
};
return dataObj
},
buildSetfeg (model, trnName) {
buildSetfeg(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaall: model.liaall,
......@@ -80,7 +80,7 @@ export default {
};
return params
},
buildSetglg (model, trnName) {
buildSetglg(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
setfeg: model.setmod.setfeg,
......@@ -89,7 +89,7 @@ export default {
};
return params
},
buildGlentry (model, trnName) {
buildGlentry(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaallg: model.liaall.liaallg,
......@@ -99,20 +99,20 @@ export default {
};
return params
},
buildEngp (model, trnName) {
buildEngp(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaallg: model.liaall.liaallg,
};
return params
},
buildDocpan (model, trnName) {
buildDocpan(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
};
return params
},
buildCcvpan (model, trnName) {
buildCcvpan(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaccvg: model.liaccv.liaccvg,
......@@ -122,7 +122,7 @@ export default {
};
return params
},
buildLimitbody (model, trnName) {
buildLimitbody(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
......@@ -133,7 +133,7 @@ export default {
};
return params
},
buildDoctre (model, trnName) {
buildDoctre(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
......@@ -146,7 +146,7 @@ export default {
return params
},
// 公共组件setmod中dsp字段改变,触发联动时候的入参
buildSetgllAccts (model, trnName, setglg) {
buildSetgllAccts(model, trnName, setglg) {
let params = {
...this.buildCommonData(model, trnName),
setglg
......
......@@ -20,21 +20,21 @@ export default {
...ccvpan,
...limitbody,
...doctre,
async init () {
async init() {
const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
trninr: this.$route.query.trninr,
}
if ( typeof(this.$route.query.inr) == 'string'){
if (typeof (this.$route.query.inr) == 'string') {
params.spt = null
}
const res = await Api.post('/service/letamc/init', {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
ledgrp:{
rec:{
ledgrp: {
rec: {
inr: this.$route.query.inr
}
},
......@@ -48,7 +48,7 @@ export default {
this.copyValueFromVoData(this.model.setmod.setglg, res.data.setglg)
},
// 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题
copyValueFromVoData (model, data) {
copyValueFromVoData(model, data) {
let keysList = Object.keys(model)
keysList.map((key) => {
if (data[key]) {
......@@ -133,7 +133,7 @@ export default {
handleChangePurpos() {
this.queryHndtypCodeTableList(this.root.trnName);
},
buildLiaccv () {
buildLiaccv() {
let params = {
...buildFn.buildCommonData(this.model, this.trnName),
liaccvg: this.model.liaccv.liaccvg,
......@@ -145,7 +145,7 @@ export default {
return params
},
// 公共组件setmod处理方式改变触发联动
changeSetmodModel (emitParams) {
changeSetmodModel(emitParams) {
let reqParams = {}
switch (emitParams.code) {
case 'processMethods':
......@@ -155,12 +155,25 @@ export default {
case 'changeDsp':
let index = emitParams.index;
let setglgRequest = buildFn.buildSetglg(this.model, this.trnName);
setglgRequest.setglg = {setgll: emitParams.list};
setglgRequest.setglg = { setgll: emitParams.list };
this.setgllAccts(setglgRequest, index);
break
default:
return
}
},
//最大金额
async cbsmax() {
let params = {
nom1cur: this.model.ledgrp.cbs.nom1.cur,
nom1amt: this.model.ledgrp.cbs.nom1.amt,
nomtop: this.model.ledgrp.rec.nomtop
};
let res = await Api.post('/service/letopn/cbsmax', params);
if (res.respCode == SUCCESS) {
this.model.ledgrp.cbs.max.cur = res.data.maxcur;
this.model.ledgrp.cbs.max.amt = res.data.maxamt;
}
},
},
};
......@@ -50,10 +50,10 @@ export default {
{max: 18,message:"整数位不能超过14位",trigger:"blur"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
// "ledgrp.rec.partcon":[
// {type: "string", required: false, message: "必输项",trigger:"blur"},
// {max: 6,message:"长度不能超过6",trigger:"blur"}
// ],
"ledgrp.rec.partcon":[
{type: "string", required: false, message: "必输项",trigger:"blur"},
{max: 6,message:"长度不能超过6",trigger:"blur"}
],
"reqdat":[
{ required: false, message: "输入正确的日期"}
],
......
<template>
<div class="eibs">
<!-- ============左边================= -->
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<el-form-item label="出口信用证编号" prop="ledgrp.rec.ownref" style="width: 100%">
<el-form-item
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">
<c-input
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" >
<i class="el-icon-info" style="font-size:15px"></i>
<c-button
style="margin: 0 10px 0 0; padding: 0 12px"
size="small"
type="primary"
>
<i class="el-icon-info" style="font-size: 15px"></i>
</c-button>
<c-button style="margin: 0 0" size="small" type="primary"
:disabled="model.ledgrp.ben.pts.adrblk && !model.ledgrp.rec.ownref ? false : true">
<c-button
style="margin: 0 0"
size="small"
type="primary"
:disabled="
model.ledgrp.ben.pts.adrblk && !model.ledgrp.rec.ownref
? false
: true
"
>
获取
</c-button>
</template>
......@@ -24,7 +44,12 @@
<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">
<c-select
v-model="model.ledgrp.rec.lcrtyp"
style="width: 100%"
placeholder="请选择类型"
:code="codes.lcrtyp"
>
</c-select>
</el-form-item>
</c-col>
......@@ -33,11 +58,24 @@
<c-col :span="24">
<el-form-item label="客户经理" prop="letp.usr.extkey">
<c-fullbox>
<c-input v-model="model.letp.usr.extkey" maxlength="8" placeholder="请输入" disabled></c-input>
<c-input
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"></c-button>
<c-checkbox :disabled="true" style="margin-left:5px;" v-model="model.ledgrp.rec.collflg">Collateralized
L/C
<c-button
style="margin-left: 10px; padding: 0 10px"
size="small"
icon="el-icon-search"
type="primary"
></c-button>
<c-checkbox
:disabled="true"
style="margin-left: 5px"
v-model="model.ledgrp.rec.collflg"
>Collateralized L/C
</c-checkbox>
</template>
</c-fullbox>
......@@ -48,37 +86,53 @@
<c-col :span="24">
<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">
<c-select
v-model="model.ledgrp.cbs.nom1.cur"
style="width: 100%"
placeholder="请选择币种"
:code="codes.curtxt1"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="7">
<el-form-item label="" label-width="5px" prop="ledgrp.cbs.nom1.amt">
<c-input-currency v-model="model.ledgrp.cbs.nom1.amt" style="text-align: left; width: 95%"
placeholder="请输入" @keyup.enter.native="$event.target.blur()"></c-input-currency>
<c-input-currency
v-model="model.ledgrp.cbs.nom1.amt"
style="text-align: left; width: 95%"
placeholder="请输入"
@keyup.enter.native="$event.target.blur()"
></c-input-currency>
</el-form-item>
</c-col>
<c-col :span="5">
<c-checkbox v-model="addamtflg" style="margin-left:-1px;">附加金额</c-checkbox>
<c-checkbox v-model="addamtflg" style="margin-left: -1px"
>附加金额</c-checkbox
>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<c-form-item label="溢短装" prop="ledgrp.rec.nomtop">
<c-input v-model.number="model.ledgrp.rec.nomtop" maxlength="2" style="width: 100%"
<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"></c-input>
@change="cbsmax"
></c-input>
</c-form-item>
</c-col>
<c-col :span="7">
<el-form-item label="" label-width="5px" prop="ledgrp.rec.nomton">
<c-input v-model.number="model.ledgrp.rec.nomton" maxlength="2" style="width: 95%"
<c-input
v-model.number="model.ledgrp.rec.nomton"
maxlength="2"
style="width: 95%"
placeholder="请输入下浮比例"
@keyup.enter.native="$event.target.blur()"
class="m-input-currency"></c-input>
></c-input>
</el-form-item>
</c-col>
<c-col :span="5">
......@@ -89,14 +143,23 @@
<c-col :span="24">
<c-col :span="19">
<el-form-item label="金额限额表述" prop="ledgrp.rec.nomspc">
<c-select v-model="model.ledgrp.rec.nomspc" style="width: 97%" placeholder="请选择"
:code="codes.nomspc" disabled>
<c-select
v-model="model.ledgrp.rec.nomspc"
style="width: 97%"
placeholder="请选择"
:code="codes.nomspc"
disabled
>
</c-select>
</el-form-item>
</c-col>
<!-- Incoming Transfer -->
<c-col :span="5">
<c-checkbox v-model="model.ledgrp.rec.inctrf" style="margin-left:-1px;" disabled>Incoming Transfer
<c-checkbox
v-model="model.ledgrp.rec.inctrf"
style="margin-left: -1px"
disabled
>Incoming Transfer
</c-checkbox>
</c-col>
</c-col>
......@@ -104,46 +167,84 @@
<!-- Maximum Amount -->
<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="请选择币种"
<c-select
v-model="model.ledgrp.cbs.max.cur"
style="width: 100%"
placeholder="请选择币种"
:code="codes.curtxt1"
disabled>
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" label-width="5px" prop="ledgrp.cbs.max.amt">
<c-input-currency disabled v-model="model.ledgrp.cbs.max.amt" placeholder="请输入最大金额"
class="m-input-currency"></c-input-currency>
<c-input-currency
disabled
v-model="model.ledgrp.cbs.max.amt"
placeholder="请输入最大金额"
class="m-input-currency"
></c-input-currency>
</el-form-item>
</c-col>
<!-- Issued on -->
<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%" value-format="yyyy-MM-dd"
placeholder="请选择开证日期">
<c-date-picker
type="date"
v-model="model.ledgrp.rec.opndat"
style="width: 100%"
value-format="yyyy-MM-dd"
placeholder="请选择开证日期"
>
</c-date-picker>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="预通知日期" label-width="120px" prop="ledgrp.rec.preadvdt">
<c-date-picker type="date" v-model="model.ledgrp.rec.preadvdt" style="width: 100%" value-format="yyyy-MM-dd"
placeholder="请选择日期" disabled>
<el-form-item
label="预通知日期"
label-width="120px"
prop="ledgrp.rec.preadvdt"
>
<c-date-picker
type="date"
v-model="model.ledgrp.rec.preadvdt"
style="width: 100%"
value-format="yyyy-MM-dd"
placeholder="请选择日期"
disabled
>
</c-date-picker>
</el-form-item>
</c-col>
<!-- shipment date -->
<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="请选择装运日期"
value-format="yyyy-MM-dd">
<c-date-picker
type="date"
v-model="model.ledgrp.rec.shpdat"
style="width: 100%"
placeholder="请选择装运日期"
value-format="yyyy-MM-dd"
>
</c-date-picker>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="复核日期" label-width="120px" prop="ledgrp.rec.advdat">
<c-date-picker disabled type="date" v-model="model.ledgrp.rec.advdat" style="width: 100%"
placeholder="请选择通知日期" value-format="yyyy-MM-dd">
<el-form-item
label="复核日期"
label-width="120px"
prop="ledgrp.rec.advdat"
>
<c-date-picker
disabled
type="date"
v-model="model.ledgrp.rec.advdat"
style="width: 100%"
placeholder="请选择通知日期"
value-format="yyyy-MM-dd"
>
</c-date-picker>
</el-form-item>
</c-col>
......@@ -151,129 +252,198 @@
<!-- expiring on -->
<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%" value-format="yyyy-MM-dd"
placeholder="请选择到期日">
<c-date-picker
type="date"
v-model="model.ledgrp.rec.expdat"
style="width: 100%"
value-format="yyyy-MM-dd"
placeholder="请选择到期日"
>
</c-date-picker>
</el-form-item>
</c-col>
<!-- in (place)/counters of -->
<c-col :span="24">
<el-form-item label="生效地点" prop="ledgrp.rec.expplc">
<c-input v-model="model.ledgrp.rec.expplc" maxlength="29" placeholder="有效地点"></c-input>
<c-input
v-model="model.ledgrp.rec.expplc"
maxlength="29"
placeholder="有效地点"
></c-input>
</el-form-item>
</c-col>
<!-- Confirmation Instruct.Received -->
<c-col :span="24">
<el-form-item label="保兑指示" prop="ledgrp.rec.cnfdet">
<c-select v-model="model.ledgrp.rec.cnfdet" style="width: 100%" placeholder="请选择确认接收指示"
:code="codes.cnfflg1">
<c-select
v-model="model.ledgrp.rec.cnfdet"
style="width: 100%"
placeholder="请选择确认接收指示"
:code="codes.cnfflg1"
>
</c-select>
</el-form-item>
</c-col>
<!-- Applicable rules -->
<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.apprul" @change="apprulChange(model.ledgrp.rec.apprul)">
<c-select
v-model="model.ledgrp.rec.apprul"
style="width: 100%"
placeholder="请选择适用规则"
:code="codes.apprul"
@change="apprulChange(model.ledgrp.rec.apprul)"
>
</c-select>
</el-form-item>
</c-col>
<!-- Other Applicable rules -->
<c-col :span="24">
<el-form-item label="其他适用规则" prop="ledgrp.rec.apprultxt">
<c-input v-model="model.ledgrp.rec.apprultxt" maxlength="35" placeholder="请输入其他规则"
:disabled="model.ledgrp.rec.apprul === 'OTHR' ? false : true"></c-input>
<c-input
v-model="model.ledgrp.rec.apprultxt"
maxlength="35"
placeholder="请输入其他规则"
:disabled="model.ledgrp.rec.apprul === 'OTHR' ? false : true"
></c-input>
</el-form-item>
</c-col>
<!-- Partial shipment -->
<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">
<c-select
v-model="model.ledgrp.rec.shppar"
style="width: 100%"
placeholder="请选择分批装运"
:code="codes.shptrss18"
>
</c-select>
</el-form-item>
</c-col>
<!-- Transshipment -->
<c-col :span="24">
<el-form-item label="转运" prop="ledgrp.rec.shptrs">
<c-select v-model="model.ledgrp.rec.shptrs" style="width:100%" placeholder="请选择"
:code="codes.shptrss18">
<c-select
v-model="model.ledgrp.rec.shptrs"
style="width: 100%"
placeholder="请选择"
:code="codes.shptrss18"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
<!-- ============右边================= -->
<c-col :span="12" style="padding-left: 20px;">
<c-col :span="12" style="padding-left: 20px">
<c-col :span="24">
<el-form-item label="简略信息" prop="ledgrp.rec.nam">
<c-input text-align="middle" v-model="model.ledgrp.rec.nam" maxlength="40" placeholder="请输入" disabled>
<c-input
text-align="middle"
v-model="model.ledgrp.rec.nam"
maxlength="40"
placeholder="请输入"
disabled
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-ptap :model="model" :argadr="{
<c-ptap
:model="model"
:argadr="{
title: '受益人',
grp: 'ledgrp',
rol: 'ben',
}" :disabled="true"
}"
:disabled="true"
disabledRef
disabledExtkey>
disabledExtkey
>
</c-ptap>
</c-col>
<c-col :span="24">
<c-ptap :model="model" :argadr="{
<c-ptap
:model="model"
:argadr="{
title: '开证行',
grp: 'ledgrp',
rol: 'iss',
}" :disabled="true"
}"
:disabled="true"
disabledRef
disabledExtkey>
disabledExtkey
>
</c-ptap>
</c-col>
<c-col :span="24">
<c-ptap :model="model" :argadr="{
<c-ptap
:model="model"
:argadr="{
title: '申请人',
grp: 'ledgrp',
rol: 'apl',
}" :disabled="true"
}"
:disabled="true"
disabledRef
disabledExtkey>
disabledExtkey
>
</c-ptap>
</c-col>
<!-- Revolving Flag -->
<c-col :span="12">
<el-form-item label=" " prop="ledgrp.rec.revflg" label-width="120px" style=" float:left;">
<el-form-item
label=" "
prop="ledgrp.rec.revflg"
label-width="120px"
style="float: left"
>
<c-checkbox v-model="model.ledgrp.rec.revflg">循环信用证</c-checkbox>
</el-form-item>
</c-col>
<!-- Authorization to Debit 借记授权书-->
<c-col :span="12">
<el-form-item label=" " prop="ledgrp.rec.dbtflg" label-width="120px" style=" float:right;">
<el-form-item
label=" "
prop="ledgrp.rec.dbtflg"
label-width="120px"
style="float: right"
>
<c-checkbox v-model="model.ledgrp.rec.dbtflg">借记授权</c-checkbox>
</el-form-item>
</c-col>
<!-- Non-Bank Issuer 非银行发行人-->
<c-col :span="24">
<el-form-item label=" " prop="ledgrp.rec.nonban" label-width="120px" style=" float:right;">
<c-checkbox v-model="model.ledgrp.rec.nonban">非银行发行人</c-checkbox>
<el-form-item
label=" "
prop="ledgrp.rec.nonban"
label-width="120px"
style="float: right"
>
<c-checkbox v-model="model.ledgrp.rec.nonban"
>非银行发行人</c-checkbox
>
</el-form-item>
</c-col>
<!-- Test Key Unconfirmity -->
<c-col :span="24">
<el-form-item label=" " prop="ledgrp.rec.teskeyunc" label-width="120px" style=" float:right;">
<c-checkbox v-model="model.ledgrp.rec.teskeyunc">测试密钥不确定</c-checkbox>
<el-form-item
label=" "
prop="ledgrp.rec.teskeyunc"
label-width="120px"
style="float: right"
>
<c-checkbox v-model="model.ledgrp.rec.teskeyunc"
>测试密钥不确定</c-checkbox
>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
......@@ -282,21 +452,21 @@ import event from "../event";
import Ptap from "~/views/Public/Ptap";
export default {
components: {"c-ptap": Ptap},
inject: ['root'],
components: { "c-ptap": Ptap },
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {}
return {};
},
computed: {
addamtflg: {
get() {
return this.model.letp.aamp.aammod.addamtflg != ''
return this.model.letp.aamp.aammod.addamtflg != "";
},
set(val) {
this.model.letp.aamp.aammod.addamtflg = val ? "X" : ""
}
this.model.letp.aamp.aammod.addamtflg = val ? "X" : "";
},
},
},
methods: {
......@@ -334,9 +504,8 @@ export default {
// }
// },
},
created: function () {
}
}
created: function () {},
};
</script>
<style>
.marginLable {
......
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