Commit 38c7f453 by “yanyuxin”

Trtopn交易完善

parent e814f6aa
......@@ -4,6 +4,7 @@ import Utils from "~/utils"
* Trtopn Check规则
*/
let checkObj = {
"liaall.misamt" :null,
"liaall.limmod.limpts.oth.pts.extkey" :null,
"trtmod.finmod.flttyp" :null,
"dftcre.dfdgrp.rec.matdat" :null,
......@@ -82,6 +83,7 @@ let checkObj = {
"trtmod.finmod.ratchgdat" :null,
"dftcre.dfdgrp.rec.fintyp" :null,
"trdgrp.rec.flowflag" :null,
"trdgrp.rec.fintyp1" :null,
}
for (const key in checkObj) {
......
......@@ -12,7 +12,7 @@ export default {
"liaall.limmod.limpts.oth.pts.extkey" :Utils.defaultFunction,
"trtmod.finmod.dinjdm" :Utils.defaultFunction,
"trdgrp.cbs.max.amt" :Utils.defaultFunction,
"trdgrp.rec.fintyp" :Utils.defaultFunction,
"trdgrp.rec.fintyp1" :Utils.defaultFunction,
"trdgrp.cbs.max.cur" :Utils.defaultFunction,
"trtmod.finmod.act1" :Utils.defaultFunction,
"trtmod.finmod.acttyp" :Utils.defaultFunction,
......@@ -79,6 +79,7 @@ export default {
"dftcre.dfdgrp.cbs.max.amt" :Utils.defaultFunction,
"trdgrp.rec.pctfin" :Utils.defaultFunction,
"trtmod.finmod.dinmod.rmbsbs" :Utils.defaultFunction,
"liaall.misamt" :Utils.defaultFunction,
"dftcre.dfdgrp.rec.resamt" :Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inftxt" :Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inflev" :Utils.defaultFunction,
......
......@@ -254,7 +254,36 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
onExtkey() {},
onSeainf() {},
async onLiaallButmisamt(){
let rtnmsg = await this.executeRule("liaall.butmisamt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onLiaallButmissig(){
let rtnmsg = await this.executeRule("liaall.butmissig")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
onSeainf() {
},
async onExtkey(e) {
},
}
\ No newline at end of file
......@@ -558,4 +558,34 @@ export default {
],
"liaall.outamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.outpct":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
],
"liaall.concur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"liaall.misamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.exttotoldamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.exttotamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
import Dids from "../Public/Dids"
import Pub from "../Public"
export default class Trtopn{
......@@ -13,7 +12,7 @@ export default class Trtopn{
ownref:"", // 融资编号 .trdgrp.rec.ownref
nam:"", // Name of Loan Contract .trdgrp.rec.nam
issdat:"", // 开立日期 .trdgrp.rec.issdat
fintyp:"", // 融资品种 .trdgrp.rec.fintyp
fintyp1:"", // 融资品种 .trdgrp.rec.fintyp
stagod:"", // Good's Code .trdgrp.rec.stagod
guaflg:"", // 货押标识 .trdgrp.rec.guaflg
pctfin:"", // % Financed .trdgrp.rec.pctfin
......@@ -37,7 +36,7 @@ export default class Trtopn{
},
cbs:{
max:{
cur:"", // Currency .trdgrp.cbs.max.cur
curtxt1:"", // Currency .trdgrp.cbs.max.cur
amt:"", // 融资金额 .trdgrp.cbs.max.amt
},
},
......@@ -238,7 +237,6 @@ export default class Trtopn{
trnmod: new Pub().data.Trnmod,
mtabut: new Pub().data.Mtabut,
setmod: new Pub().data.Setmod,
pageId: "" // ctx的key
}
}
......
......@@ -4,8 +4,6 @@ import Utils from "~/utils"
* Trtsel Check规则
*/
let checkObj = {
"recget.sdamod.dadsnd" :null,
"dadsnd" :null,
}
for (const key in checkObj) {
......
......@@ -6,15 +6,19 @@ import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"cfgfil.subtrn1" :Utils.defaultFunction,
"selbut.sptpenlab_descr" :Utils.defaultFunction,
"selbut.sptpenlab" :Utils.defaultFunction,
"trdgrp.rec.ownref" :Utils.defaultFunction,
"trdgrp.rec.fintyp" :Utils.defaultFunction,
"trdgrp.fip.pts.nam" :Utils.defaultFunction,
"selbut.trnpenlab" :Utils.defaultFunction,
"selbut.trnpenlab_descr" :Utils.defaultFunction,
"clsflg" :Utils.defaultFunction,
"trdgrp.rec.fintyp" :Utils.defaultFunction,
"cfgfil.subtxt10" :Utils.defaultFunction,
"cfgfil.subtrn10" :Utils.defaultFunction,
"cfgfil.subtrn11" :Utils.defaultFunction,
"cfgfil.subtxt11" :Utils.defaultFunction,
"cfgfil.subtrn1" :Utils.defaultFunction,
"cfgfil.subtxt1" :Utils.defaultFunction,
"cfgfil.subtrn9" :Utils.defaultFunction,
"cfgfil.subtxt9" :Utils.defaultFunction,
......@@ -32,9 +36,5 @@ export default {
"cfgfil.subtxt3" :Utils.defaultFunction,
"cfgfil.subtrn2" :Utils.defaultFunction,
"cfgfil.subtxt2" :Utils.defaultFunction,
"selbut.sptpenlab" :Utils.defaultFunction,
"trdgrp.fip.pts.nam" :Utils.defaultFunction,
"clsflg" :Utils.defaultFunction,
"selbut.sptpenlab_descr" :Utils.defaultFunction,
}
//你可以添加自动default处理
......@@ -49,7 +49,6 @@ export default class Trtsel{
clsflg:"", // Show closed Contract .clsflg
cfgfil:{
bitmap:"", // Bitmap for folder .cfgfil.bitmap
btnstm:"", //按钮数据
regside1:"", // Regside .cfgfil.regside1
regside2:"", // Regside .cfgfil.regside2
regside3:"", // Regside .cfgfil.regside3
......
......@@ -14,8 +14,9 @@ import commonProcess from "~/mixin/commonProcess"
export default {
props:["ownref"],
components:{
inject: ['root'],
props:["model","codes"],
components:{
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
......@@ -101,7 +102,8 @@ export default {
}
</script>
<style>
.busnavbar-items{
/*TODO完善按钮间隔等样式 */
}
/* .busnavbar-items{
} */
</style>
<template>
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--inftrd PD000024 Selection -->
<el-tab-pane label="Selection" name="infsea">
<c-content>
<m-infsea
v-show="!showPanel"
@updateShowPanel="updateShowPanel($event)"
:model="model"
:codes="codes"
ref="infsea"/>
</c-content>
<!-- <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> -->
<!-- <el-tab-pane label="内容" name="infsea">
<m-infsea :model="model" :codes="codes" />
</el-tab-pane> -->
<!-- <el-tab-pane label="Selection" name="infsea">
<m-infsea :model="model" :codes="codes"/>
</el-tab-pane>
<!--inftrd PD000018 Loan -->
<el-tab-pane label="Loan" name="infconp">
</el-tab-pane> -->
<!-- <el-tab-pane label="Loan" name="infconp">
<m-infconp :model="model" :codes="codes"/>
</el-tab-pane>
<!--coninf PD000010 Incoming Tag 72/79 -->
<el-tab-pane label="Incoming Tag" name="coninftag">
<m-coninftag :model="model" :codes="codes"/>
</el-tab-pane>
<!--infcon PD000013 Transactions -->
<el-tab-pane label="Transactions" name="trnpan">
<m-trnpan :model="model" :codes="codes"/>
</el-tab-pane>
<!--infcon PD000019 CBS Info -->
<el-tab-pane label="CBS Info" name="cbsinfp">
<m-cbsinfp :model="model" :codes="codes"/>
</el-tab-pane>
<!--infcon PD000028 CBE Info -->
<el-tab-pane label="CBE Info" name="cbeinfp">
<m-cbeinfp :model="model" :codes="codes"/>
</el-tab-pane>
<!--infcon PD000111 FEP/FCP Info -->
<el-tab-pane label="FEP/FCP Info" name="fepinfp">
<m-fepinfp :model="model" :codes="codes"/>
</el-tab-pane>
<!--infcon PD000162 SEP Info -->
<el-tab-pane label="SEP Inf" name="sepinfp">
<m-sepinfp :model="model" :codes="codes"/>
</el-tab-pane>
<!--infcon PD000177 GLE Bookings -->
<el-tab-pane label="GLE Bookings" name="gleinfp">
<m-gleinfp :model="model" :codes="codes"/>
</el-tab-pane>
<!--infcon PD000119 SMH Info -->
<el-tab-pane label="SMH Info" name="smhinfp">
<m-smhinfp :model="model" :codes="codes"/>
</el-tab-pane>
<!--infcon PD000130 SPT/DIA Info -->
<el-tab-pane label="SPT/DIA Info" name="peninfp">
<m-peninfp :model="model" :codes="codes"/>
</el-tab-pane>
<!--infcon PD000147 Engagement -->
<el-tab-pane label="Engagement" name="liainfp">
<m-liainfp :model="model" :codes="codes"/>
</el-tab-pane>
<!--inftrd PD000023 Print -->
<el-tab-pane label="Print" name="prtpan">
<m-prtpan :model="model" :codes="codes"/>
</el-tab-pane>
<!--infcon PD000185 Order -->
<el-tab-pane label="Order" name="ordpan">
<m-ordpan :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-tab-pane> -->
<!-- </c-tabs> -->
<c-button
v-show="showPanel"
style="margin-left: 75%; bottom: 10%; position: sticky"
size="small"
@click="goBack()"
>
<!-- @click="getDitSelInfo(scope.$index, scope.row)" -->
返回
</c-button>
</el-form>
</div>
</template>
......@@ -120,8 +127,7 @@ export default {
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
codes: {...CodeTable},
}
},
methods:{
......@@ -132,6 +138,21 @@ export default {
**/
}
},
initPanel(val) {
if (val) {
this.tabVal = "ovwp";
//
} else {
this.tabVal = "";
}
},
async updateShowPanel(value) {
this.showPanel = value;
this.initPanel(value);
},
goBack() {
this.showPanel = false;
},
created:async function(){
console.log("进入inftrd交易");
let rtnmsg = await this.init({})
......
......@@ -46,8 +46,8 @@
</c-col>
<c-col :span="11" :offset="1">
<c-checkbox v-model="model.cfatrt.basflg">签约信息</c-checkbox>
<c-checkbox v-model="model.cfatrt.dclflg">变动信息</c-checkbox>
<c-checkbox v-model="model.cfadft.basflg">签约信息</c-checkbox>
<c-checkbox v-model="model.cfadft.dclflg">变动信息</c-checkbox>
</c-col>
</c-col>
<c-col :span="8" >
......
......@@ -94,9 +94,9 @@
</el-form-item>
</c-col>
<c-col :span="13">
<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>
<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>
</c-select>
</el-form-item>
</c-col>
......@@ -352,9 +352,9 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="第三方还款方式" prop="trtmod.finmod.acttyp">
<c-select v-model="model.trtmod.finmod.acttyp" style="width:100%" placeholder="请选择第三方还款方式">
<el-option v-for="item in codes.acttyp" :key="item.value" :label="item.label" :value="item.value"></el-option>
<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>
</c-select>
</el-form-item>
</c-col>
......@@ -407,8 +407,8 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="外币贷款专户清单" prop="trtp.act">
<c-select v-model="model.trtp.act" style="width:100%" placeholder="请选择外币贷款专户清单">
<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>
</el-form-item>
</c-col>
......@@ -419,10 +419,13 @@
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Trtopn/Event";
import Utils from "~/utils";
export default {
onSeainf() {
},
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
......
......@@ -22,12 +22,21 @@
<m-ovwp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--dftcre PD000001 同业代付 -->
<el-tab-pane label="同业代付" name="dftcrep">
<el-tab-pane label="同业代付" name="dftcrep" v-if="model.trtp.dfflag">
<c-content>
<m-dftcrep :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<el-tab-pane label="Liability" name="Engp">
<c-content>
<m-engp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--financ PD000004 融资款项 -->
<el-tab-pane label="融资款项" name="rzkx">
<c-content>
......@@ -68,11 +77,12 @@
</el-tab-pane>
</c-tabs>
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
v-on:select-ety="selectEty">
ref="etyDialog"
:promptData="promptData"
v-on:select-ety="selectEty">
</c-grid-ety-prompt-dialog>
</el-form>
</div>
</c-page>
</template>
......@@ -86,6 +96,7 @@ import commonFuncs from "~/mixin/commonFuncs";
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"
......@@ -95,6 +106,7 @@ import Doctre from "~/views/Public/Doctre"
import Docpan from "~/views/Public/Docpan"
import Coninfp from "~/views/Public/Coninfp"
import Setpan from "~/views/Public/Setpan"
import Engp from "~/views/Public/Engp";
export default {
......@@ -109,6 +121,7 @@ export default {
"m-docpan" : Docpan,
"m-coninfp" : Coninfp,
"m-setpan" : Setpan,
"m-engp" : Engp,
},
provide() {
return {
......@@ -126,8 +139,7 @@ export default {
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
codes: {...CodeTable},
}
},
methods:{
......@@ -138,6 +150,21 @@ export default {
**/
}
},
// initPanel(val) {
// if (val) {
// this.tabVal = "ovwp";
// //
// } else {
// this.tabVal = "";
// }
// },
// async updateShowPanel(value) {
// this.showPanel = value;
// this.initPanel(value);
// },
// goBack() {
// this.showPanel = false;
// },
created:async function(){
console.log("进入trtopn交易");
let rtnmsg = await this.init({})
......
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Trtsel/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
\ No newline at end of file
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Trtsel/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eContainer">
<el-form
:model="model"
:rules="rules"
ref="modelForm"
label-width="110px"
label-position="right"
size="small"
:validate-on-rule-change="false"
>
<!--PD000006 -->
<!--
<el-tab-pane label="查詢界面" name="infsea">
<m-infsea :model="model" :codes="codes"/>
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--trtsel PD000012 Menu -->
<el-tab-pane :label="$t('trtsel.PD000012')" name="sel">
<m-sel :model="model" :codes="codes"/>
</el-tab-pane>
-->
<c-content>
<m-infsea
v-show="!showPanel"
@updateShowPanel="updateShowPanel($event)"
:model="model"
:codes="codes"
ref="infsea"
/>
</c-content>
<c-tabs
v-model="tabVal"
v-show="showPanel"
ref="elment"
type="card"
@tab-click="tabClick"
>
<!--PD000017 -->
<el-tab-pane label="内容" name="ovwp">
<m-ovwp :model="model" :codes="codes" />
</el-tab-pane>
<!--
<el-tab-pane label="条款" name="detp">
<m-detp :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane label="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane label="Transactions" name="trnpan">
<m-trnpan :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane label="余额信息" name="cbsinfp">
<m-cbsinfp :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane label="发生额信息" name="cbeinfp">
<m-cbeinfp :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane label="费用明细" name="fepinfp">
<m-fepinfp :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane label="临时账务" name="sepinfp">
<m-sepinfp :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane label="账务信息" name="gleinfp">
<m-gleinfp :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane label="面函、报文" name="smhinfp">
<m-smhinfp :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane label="经办信息" name="peninfp">
<m-peninfp :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane label="表外信息" name="liainfp">
<m-liainfp :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane label="Print" name="prtpan">
<m-prtpan :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane label="Order" name="ordpan">
<m-ordpan :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane label="银行明细" name="detp1">
<m-detp1 :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane label="明细" name="detp2">
<m-detp2 :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane label="声明" name="stament">
<m-stament :model="model" :codes="codes"/>
</el-tab-pane>
-->
</c-tabs>
</c-tabs>
</el-form>
<c-button
v-show="showPanel"
style="margin-left: 75%; bottom: 10%; position: sticky"
size="small"
@click="goBack()"
>
<!-- @click="getDitSelInfo(scope.$index, scope.row)" -->
返回
</c-button>
</div>
</template>
<script>
......@@ -138,9 +19,10 @@ import Check from "~/model/Trtsel/Check"
import Default from "~/model/Trtsel/Default"
import Pattern from "~/model/Trtsel/Pattern"
import Sel from "./Sel"
import Infsea from "./Infsea";
export default {
name: "Trtsel",
components:{
"m-sel" : Sel,
},
......@@ -154,6 +36,7 @@ export default {
return {
tabVal: "",
trnName: "trtsel",
trnType: "",
model: new Trtsel().data,
checkRules: Check,
defaultRules: Default,
......@@ -164,7 +47,11 @@ export default {
}
},
methods:{
tabClick(){
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
......@@ -172,6 +59,7 @@ export default {
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
......
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