Commit acfa98be by “yanyuxin”

进口融资开立交易完善

parent 0923df7c
......@@ -88,5 +88,8 @@ export default {
"dftcre.dfdgrp.rec.matdat" :Utils.defaultFunction,
"dftcre.dfdgrp.rec.stttendat" :Utils.defaultFunction,
"trtmod.finmod.dinmod.jzllgz" :Utils.defaultFunction,
"trdgrp.rec.lprtyp" :Utils.defaultFunction,
"trdgrp.rec.tenday" :Utils.defaultFunction,
"trtmod.finmod.acttyp1" :Utils.defaultFunction,
}
//你可以添加自动default处理
......@@ -285,5 +285,21 @@ export default {
async onExtkey(e) {
},
/**
* 计算两个日期相差的天数
* sDate1和sDate2是2006-12-18格式 
*/
async DateDiff(sDate1, sDate2){
var aDate, oDate1, oDate2, iDays
aDate = sDate1.split("-")
oDate1 = new Date(aDate[0] , aDate[1] ,aDate[2]) //转换为12-18-2006格式  
aDate = sDate2.split("-")
oDate2 = new Date(aDate[0] , aDate[1] , aDate[2])
iDays = parseInt(Math.abs(oDate1 - oDate2) / 1000 / 60 / 60 /24) //把相差的毫秒数转换为天数  
return iDays
},
async OperatePanel(){
},
}
\ No newline at end of file
......@@ -20,13 +20,13 @@ export default class Trtopn{
actrat:"", // actural rate .trdgrp.rec.actrat
stttendat:"", // Start Date Tenor .trdgrp.rec.stttendat
matdat:"", // Maturity Date .trdgrp.rec.matdat
tenday:"", // Tenor Days .trdgrp.rec.tenday
trntyp:"", // 交易性�'� .trdgrp.rec.trntyp
oppacc:"", // 对方�'�号 .trdgrp.rec.oppacc
tenday:"", // 融资天数 .trdgrp.rec.tenday
trntyp:"", // 交易性 .trdgrp.rec.trntyp
oppacc:"", // 对方号 .trdgrp.rec.oppacc
flowflag:"", // 是否定向收付 .trdgrp.rec.flowflag
invtyp:"", // 发票类型 .trdgrp.rec.invtyp
lprtyp:"", // 市场LPR期限品种 .trdgrp.rec.lprtyp
mycontno:"", // �'�易合同号 .trdgrp.rec.mycontno
mycontno:"", // 易合同号 .trdgrp.rec.mycontno
},
fip:{
pts:new Pts().data,
......@@ -36,7 +36,7 @@ export default class Trtopn{
},
cbs:{
max:{
curtxt1:"", // Currency .trdgrp.cbs.max.cur
cur:"", // Currency .trdgrp.cbs.max.cur
amt:"", // 融资金额 .trdgrp.cbs.max.amt
},
},
......@@ -96,7 +96,7 @@ export default class Trtopn{
},
dfflag:"", // Flag .trtp.dfflag
flowflag:"", // 是否定向收付 .trtp.flowflag
act:"", // 外币�'�款专户清单 .trtp.act
act:"", // 外币款专户清单 .trtp.act
},
trtmod:{
finmod:{
......@@ -104,32 +104,33 @@ export default class Trtopn{
fincod:"", // % .trtmod.finmod.fincod
intprd:"", // 计息周期 .trtmod.finmod.intprd
intdat:"", // 计息日期 .trtmod.finmod.intdat
ratchgtyp:"", // 利率调�'方式 .trtmod.finmod.ratchgtyp
ratchgprd:"", // 利率调�'周期 .trtmod.finmod.ratchgprd
ratchgdat:"", // 利率调�'月日数 .trtmod.finmod.ratchgdat
ratchgtyp:"", // 利率调方式 .trtmod.finmod.ratchgtyp
ratchgprd:"", // 利率调周期 .trtmod.finmod.ratchgprd
ratchgdat:"", // 利率调月日数 .trtmod.finmod.ratchgdat
graday:"", // 宽限期 .trtmod.finmod.graday
flttyp:"", // 浮动方式 .trtmod.finmod.flttyp
fltval:"", // 浮动值 .trtmod.finmod.fltval
ovdinttyp:"", // 呆滞计息方式 .trtmod.finmod.ovdinttyp
ovdintrat:"", // 罚息比率 .trtmod.finmod.ovdintrat
act1:"", // 第一还款�'�号 .trtmod.finmod.act1
accbch:"", // 入�'�机构 .trtmod.finmod.accbch
act1:"", // 第一还款号 .trtmod.finmod.act1
accbch:"", // 入机构 .trtmod.finmod.accbch
acttyp:"", // 第三方还款方式 .trtmod.finmod.acttyp
act3:"", // 第三方还款�'�号 .trtmod.finmod.act3
act3:"", // 第三方还款号 .trtmod.finmod.act3
intamt:"", // 预收息金额 .trtmod.finmod.intamt
intact:"", // 利息付款�'�号 .trtmod.finmod.intact
intact:"", // 利息付款号 .trtmod.finmod.intact
inttyp:"", // 预扣息方式 .trtmod.finmod.inttyp
wjdkfl:"", // 是否到期主动扣收款 .trtmod.finmod.wjdkfl
dinjdm:"", // 定价审批代码 .trtmod.finmod.dinjdm
shuilv:"", // 税率 .trtmod.finmod.shuilv
acttyp1:"", // 第三还款方式 .trtmod.finmod.acttyp1
dinmod:{
jzllgz:"", // 基准利率规则 .trtmod.finmod.dinmod.jzllgz
rmbsbs:"", // 审批流程发起标识 .trtmod.finmod.dinmod.rmbsbs
},
},
},
oppacc:"", // 对方�'�号 .oppacc
trntyp:"", // 交易性�'� .trntyp
oppacc:"", // 对方号 .oppacc
trntyp:"", // 交易性 .trntyp
dftcre:{
dfdgrp:{
rec:{
......@@ -150,7 +151,7 @@ export default class Trtopn{
fltval:"", // 浮动值 .dftcre.dfdgrp.rec.fltval
bankcn:"", // 代付行中文名 .dftcre.dfdgrp.rec.bankcn
bankno:"", // 代付行核心客户号 .dftcre.dfdgrp.rec.bankno
bnkact:"", // 同业代付内部�'�号 .dftcre.dfdgrp.rec.bnkact
bnkact:"", // 同业代付内部号 .dftcre.dfdgrp.rec.bnkact
rescur:"", // 代付利息: .dftcre.dfdgrp.rec.rescur
resamt:"", // 代付利息 .dftcre.dfdgrp.rec.resamt
invtyp:"", // 发票类型 .dftcre.dfdgrp.rec.invtyp
......
......@@ -47,7 +47,7 @@
<!--=================中部-左================= -->
<c-col :span="11">
<c-col :span="16">
<c-col :span="10">
<el-form-item label="客户经理" prop="trtp.usr.extkey">
<c-input v-model="model.trtp.usr.extkey" maxlength="8" placeholder="请输入客户经理"></c-input>
</el-form-item>
......@@ -61,16 +61,15 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="开立日期" prop="trdgrp.rec.issdat">
<c-col :span="10">
<el-form-item label="开立日期" label-width="90px" prop="trdgrp.rec.issdat">
<c-date-picker type="date" v-model="model.trdgrp.rec.issdat" style="width: 100%" placeholder="请选择开立日期"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="17">
<el-form-item label="融资品种" prop="trdgrp.rec.fintyp1">
<c-select v-model="model.trdgrp.rec.fintyp1" style="width:100%" placeholder="请选择融资品种">
<el-option v-for="item in codes.fintyp1" :key="item.value" :label="item.label" :value="item.value">
</el-option>
<el-option v-for="item in codes.fintyp1" :key="item.value" :label="item.label" :value="item.value"></el-option>
</c-select>
</el-form-item>
</c-col>
......@@ -93,29 +92,36 @@
</c-select>
</el-form-item>
</c-col>
<c-col :span="30">
<c-col :span="13">
<el-form-item label="融资金额" prop="trdgrp.cbs.max.curtxt1">
<c-select v-model="model.trdgrp.cbs.max.curtxt1" style="width:100%" placeholder="请选择Currency" @keyup.enter.native="maxCurEvent">
<el-option v-for="item in codes.curtxt1" :key="item.value" :label="item.label" :value="item.value"></el-option>
<el-form-item label="融资金额" prop="trdgrp.cbs.max.cur">
<c-select v-model="model.trdgrp.cbs.max.cur" style="width:100%" placeholder="请选择Currency" @keyup.enter.native="maxCurEvent">
<el-option v-for="item in codes.cur" :key="item.value" :label="item.label" :value="item.value"></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11">
<c-col :span="7">
<el-form-item style="text-align: left" label-width="20px" prop="trdgrp.cbs.max.amt">
<c-input v-model="model.trdgrp.cbs.max.amt" style="text-align: left; width: 100%" placeholder="请输入融资金额"></c-input>
</el-form-item>
</c-col>
<c-col :span="20">
<el-form-item label="融资比例" prop="trdgrp.rec.pctfin">
<c-input v-model="model.trdgrp.rec.pctfin" style="width: 100%" placeholder="请输入融资比例"></c-input>
<c-col :span="4">
<el-form-item prop="trdgrp.rec.pctfin" label-width="20px">
<c-input
v-model="model.trdgrp.rec.pctfin"
style="width: 80%"
placeholder="请输入融资比例"
:disabled="true"></c-input>%
</el-form-item>
</c-col>
<c-col :span="4">
</c-col>
<!-- <c-col :span="3">
<el-form-item label="%">
</el-form-item>
</c-col>
</c-col> -->
<c-col :span="24">
<el-form-item label="计息周期" prop="trtmod.finmod.intprd">
<c-select v-model="model.trtmod.finmod.intprd" style="width:100%" placeholder="请选择计息周期">
......@@ -130,14 +136,24 @@
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="开户日期" prop="trdgrp.rec.stttendat">
<c-date-picker type="date" v-model="model.trdgrp.rec.stttendat" style="width:100%" placeholder="请选择开户日期"></c-date-picker>
<c-col :span="13">
<el-form-item label="开户日期" prop="trdgrp.rec.stttendat" >
<c-date-picker
type="date"
v-model="model.trdgrp.rec.stttendat"
style="width:110%"
placeholder="请选择开户日期"
value-format="yyyy-MM-dd"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="融资到期日" prop="trdgrp.rec.matdat">
<c-date-picker type="date" v-model="model.trdgrp.rec.matdat" style="width:100%" placeholder="请选择融资到期日"></c-date-picker>
<c-col :span="11">
<el-form-item label="融资到期日" prop="trdgrp.rec.matdat" label-width="110px">
<c-date-picker
type="date"
v-model="model.trdgrp.rec.matdat"
style="width:100%"
placeholder="请选择融资到期日"
value-format="yyyy-MM-dd"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="18">
......@@ -157,18 +173,18 @@
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="执行利率" prop="trdgrp.rec.actrat">
<c-input v-model="model.trdgrp.rec.actrat" placeholder="请输入执行利率"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<!-- <c-col :span="24">
<el-form-item label="是否定向收付" prop="trdgrp.rec.flowflag">
<c-select v-model="model.trdgrp.rec.flowflag" style="width:100%" placeholder="请选择是否定向收付">
<el-option v-for="item in codes.flowflag" :key="item.value" :label="item.label" :value="item.value"></el-option>
</c-select>
</el-form-item>
</c-col>
</c-col> -->
<c-col :span="24">
<el-form-item label="第一还款账号" prop="trtmod.finmod.act1">
<c-select filterable allow-create v-model="model.trtmod.finmod.act1" style="width:100%" placeholder="请选择第一还款账号">
......@@ -178,29 +194,33 @@
</c-col>
<c-col :span="18">
<el-form-item label="预收息金额" prop="trtmod.finmod.intamt">
<c-input v-model="model.trtmod.finmod.intamt" placeholder="请输入预收息金额"></c-input>
<c-input v-model="model.trtmod.finmod.intamt" :disabled="true" placeholder="请输入预收息金额"></c-input>
</el-form-item>
</c-col>
<c-col :span="6">
<c-button size="small" type="primary" @click="onFinmodButcal">
<c-button
size="small"
type="primary"
@click="onFinmodButcal"
:disabled="model.trtmod.finmod.intprd !='7'">
计算
</c-button>
</c-col>
<c-col :span="24">
<c-col :span="14">
<el-form-item label="预扣息方式" prop="trtmod.finmod.inttyp">
<c-select
v-model="model.trtmod.finmod.inttyp"
style="width:100%"
placeholder="请选择预扣息方式"
:disabled="model.trtmod.finmod.intprd !='7'">
<el-option v-for="item in codes.fininttyp" :key="item.value" :label="item.label" :value="item.value"></el-option>
<el-option v-for="item in codes.inttyp" :key="item.value" :label="item.label" :value="item.value"></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="税率" prop="trtmod.finmod.shuilv">
<c-input v-model="model.trtmod.finmod.shuilv" placeholder="请输入税率"></c-input>
<c-col :span="10">
<el-form-item label="税率" label-width="110px" prop="trtmod.finmod.shuilv">
<c-input v-model="model.trtmod.finmod.shuilv" :disabled="true" placeholder="请输入税率"></c-input>
</el-form-item>
</c-col>
<c-col :span="18">
......@@ -210,7 +230,7 @@
</c-col>
<c-col :span="6">
<c-button size="small" type="primary" @click="onDinmodDget">
<c-button size="small" type="primary" @click="onDinmodDget" :disabled="true">
Get
</c-button>
</c-col>
......@@ -281,7 +301,7 @@
</c-col> -->
<c-col :span="24">
<el-form-item label="Address Block" prop="trdgrp.fip.pts.adrblk">
<c-input type="textarea" :autosize="{ minRows: 1, maxRows: 5}" :rows="3" v-model="model.trdgrp.fip.pts.adrblk" maxlength="200" show-word-limit placeholder="请输入Address Block"></c-input>
<c-input type="textarea" :disabled="true" :autosize="{ minRows: 1, maxRows: 5}" :rows="3" v-model="model.trdgrp.fip.pts.adrblk" maxlength="200" show-word-limit placeholder="请输入Address Block"></c-input>
</el-form-item>
</c-col>
<!--
......@@ -311,9 +331,9 @@
</el-form-item>
</c-col>
<c-col :span="9" :offset="1">
<c-checkbox v-model="model.trtmod.finmod.wjdkfl">是否到期主动扣收款</c-checkbox>
<c-checkbox v-model="model.trtmod.finmod.wjdkfl" :disabled="true">是否到期主动扣收款</c-checkbox>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="利率调整周期" prop="trtmod.finmod.ratchgprd">
<c-select
v-model="model.trtmod.finmod.ratchgprd"
......@@ -327,7 +347,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="利率调整月日数" prop="trtmod.finmod.ratchgdat">
<c-input
v-model="model.trtmod.finmod.ratchgdat"
......@@ -336,18 +356,18 @@
:disabled="model.trtmod.finmod.ratchgtyp != '4' && model.trtmod.finmod.ratchgtyp != '5'"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="融资天数" prop="trdgrp.rec.tenday">
<c-input v-model="model.trdgrp.rec.tenday" style="width:100%" placeholder="请输入融资天数"></c-input>
<c-input v-model="model.trdgrp.rec.tenday" style="width:100%" :disabled="true"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="宽限期" prop="trtmod.finmod.graday">
<c-input v-model="model.trtmod.finmod.graday" style="width:100%" placeholder="请输入宽限期"></c-input>
<c-input v-model="model.trtmod.finmod.graday" style="width:100%" :disabled="true" placeholder="请输入宽限期"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="浮动方式" prop="trtmod.finmod.flttyp">
<c-select v-model="model.trtmod.finmod.flttyp" style="width:100%" placeholder="请选择浮动方式">
<el-option v-for="item in codes.flttyp" :key="item.value" :label="item.label" :value="item.value"></el-option>
......@@ -355,13 +375,13 @@
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="浮动值" prop="trtmod.finmod.fltval">
<c-input v-model="model.trtmod.finmod.fltval" placeholder="请输入浮动值" :disabled="model.trtmod.finmod.flttyp =='0'"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="逾期计息方式" prop="trtmod.finmod.ovdinttyp">
<c-select v-model="model.trtmod.finmod.ovdinttyp" style="width:100%" placeholder="请选择逾期计息方式">
<el-option v-for="item in codes.ovdinttyp" :key="item.value" :label="item.label" :value="item.value"></el-option>
......@@ -369,20 +389,21 @@
</el-form-item>
</c-col>
<c-col :span="20">
<c-col :span="12">
<el-form-item label="罚息比率" prop="trtmod.finmod.ovdintrat">
<c-input
v-model="model.trtmod.finmod.ovdintrat"
placeholder="请输入罚息比率"
:disabled="model.trtmod.finmod.ovdinttyp == '0'"></c-input>
style="width: 85%"
:disabled="model.trtmod.finmod.ovdinttyp == '0'"></c-input>%
</el-form-item>
</c-col>
<c-col :span="1">
<el-form-item label="%">
<!-- <c-col :span="1">
<el-form-item label="">
</el-form-item>
</c-col>
<c-col :span="24">
</c-col> -->
<c-col :span="12">
<el-form-item label="第三方还款方式" prop="trtmod.finmod.acttyp1">
<c-select v-model="model.trtmod.finmod.acttyp1" style="width:100%" placeholder="请选择第三方还款方式" >
<el-option v-for="item in codes.acttyp1" :key="item.value" :label="item.label" :value="item.value"></el-option>
......@@ -390,7 +411,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="入账机构" prop="trtmod.finmod.accbch">
<c-select v-model="model.trtmod.finmod.accbch" style="width:100%" placeholder="请选择入账机构">
</c-select>
......@@ -411,16 +432,16 @@
<c-col :span="12">
<span v-text="model.trntyp" data-path=".trntyp"> </span>
</c-col>
<c-col :span="12">
<!-- <c-col :span="12">
<el-form-item label="交易性质" prop="trdgrp.rec.trntyp">
<c-input v-model="model.trdgrp.rec.trntyp" maxlength="6" placeholder="请输入交易性质"></c-input>
<c-input v-model="model.trdgrp.rec.trntyp" maxlength="6" placeholder="请输入交易性质" :disabed="true"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" icon="el-icon-search" @click="onCodselSelbut">
?
</c-button>
</c-col>
</c-col> -->
<c-col :span="24">
<el-form-item label="利息付款账号" prop="trtmod.finmod.intact">
......@@ -432,11 +453,11 @@
<span v-text="model.oppacc" data-path=".oppacc"> </span>
</c-col>
<c-col :span="24">
<!-- <c-col :span="24">
<el-form-item label="对方账号" prop="trdgrp.rec.oppacc">
<c-input v-model="model.trdgrp.rec.oppacc" maxlength="35" placeholder="请输入对方账号"></c-input>
</el-form-item>
</c-col>
</c-col> -->
<c-col :span="24">
<el-form-item label="贸易合同号" prop="trdgrp.rec.mycontno">
......@@ -445,7 +466,11 @@
</c-col>
<c-col :span="24">
<el-form-item label="外币贷款专户清单" prop="trtp.act" >
<c-select v-model="model.trtp.act" style="width:100%" placeholder="请选择外币贷款专户清单" :disabled="model.trdgrp.cbs.max.curtxt1==='CNY'">
<c-select
v-model="model.trtp.act"
style="width:100%"
placeholder="请选择外币贷款专户清单"
:disabled="model.trdgrp.cbs.max.cur==='CNY'">
</c-select>
</el-form-item>
</c-col>
......@@ -472,6 +497,9 @@
flag: false
};
},
watch:{
},
methods: { ...Event },
created: function() {}
};
......
......@@ -17,7 +17,7 @@
<!--Ovwp PD000026 Financing Details -->
<el-tab-pane label="Financing Details" name="Ovwp">
<el-tab-pane label="Financing Details" name="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
......@@ -97,6 +97,7 @@ import Check from "~/model/Trtopn/Check"
import Default from "~/model/Trtopn/Default"
import Pattern from "~/model/Trtopn/Pattern"
import Event from "~/model/Trtopn/Event";
import Ovwp from "./Ovwp"
import Dftcrep from "./Dftcrep"
import Rzkx from "./Rzkx"
......@@ -133,7 +134,6 @@ export default {
return {
tabVal: "ovwp",
trnName: "trtopn",
trnType: "",
model: new Trtopn().data,
checkRules: Check,
defaultRules: Default,
......@@ -172,7 +172,9 @@ export default {
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
if(this.isInDisplay){
this.restoreDisplay();
}
}
else
{
......
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