Commit 8808e282 by wangna

gitplb交易转换

parent b8686735
import Utils from "~/utils"
/**
* Gitplb Check规则
*/
let checkObj = {
"chgamt" :null,
"chgdat" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Gitplb Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"chgdat" :Utils.defaultFunction,
"chgamt" :Utils.defaultFunction,
"gidgrp.rec.ownref" :Utils.defaultFunction,
"setmod.doccur" :Utils.defaultFunction,
"gidgrp.rec.expdat" :Utils.defaultFunction,
"gidgrp.rec.gartyp" :Utils.defaultFunction,
"gidgrp.rec.hndtyp" :Utils.defaultFunction,
"gidgrp.rec.liadat" :Utils.defaultFunction,
"gidgrp.cbs.max.cur" :Utils.defaultFunction,
"gidgrp.cbs.max.amt" :Utils.defaultFunction,
"gidgrp.iss.pts.nam" :Utils.defaultFunction,
"gidgrp.ben.pts.nam" :Utils.defaultFunction,
"gidgrp.apl.pts.nam" :Utils.defaultFunction,
"gidgrp.ctr.pts.nam" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
}
\ No newline at end of file
export default {
"gitp0.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"gidgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"gitp0.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"gidgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"gidgrp.cbs.max.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"gidgrp.cbs.max.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"gidgrp.apl.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"gidgrp.cbs.opn1.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"gidgrp.cbs.opn1.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{ pattern: /(^-?\d+$)|(^\.\d{1,3}$)|(^-?\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"gidgrp.ben.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"gidgrp.ctr.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"gidgrp.rec.expdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"gidgrp.rec.liadat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"gidgrp.iss.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"chgdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"setmod.doccur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"chgamt":[
{type: "string", 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 Pub from "../Public"
export default class Gitplb{
constructor () {
this.data = {
gitp0:{
explab:"", // Label unlimited Validity .gitp0.explab
lialab:"", // Label unlimited lLability .gitp0.lialab
aplmullab:"", // Label, that is set, if there are multiple applicants .gitp0.aplmullab
expfldlab:"", // Label for Field Validity .gitp0.expfldlab
liafldlab:"", // Label for Field Lability .gitp0.liafldlab
recget:{
sdamod:{
seainf:"", // .gitp0.recget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .gitp0.recget.sdamod.dadsnd
},
},
aamgid:{
addamtflg:"",
},
},
gidgrp:{
rec:{
ownref:"", // Reference .gidgrp.rec.ownref
nam:"", // Externally Displayed Name to Identify the Contract .gidgrp.rec.nam
hndtyp:"", // Handling Type .gidgrp.rec.hndtyp
gartyp:"", // Type of Undertaking .gidgrp.rec.gartyp
expdat:"", // Valid until .gidgrp.rec.expdat
liadat:"", // Liability until .gidgrp.rec.liadat
},
cbs:{
max:{
cur:"", // Currency .gidgrp.cbs.max.cur
amt:"", // Balance .gidgrp.cbs.max.amt
},
opn1:{
cur:"", // Currency .gidgrp.cbs.opn1.cur
amt:"", // Balance .gidgrp.cbs.opn1.amt
},
},
apl:{
pts:new Pts().data,
},
ben:{
pts:new Pts().data,
},
ctr:{
pts:new Pts().data,
},
iss:{
pts:new Pts().data,
},
},
setmod:{
doccur:"", // Agreed Amount .setmod.doccur
},
chgdat:"", // Change Date Booking .chgdat
chgamt:"", // Change Amount .chgamt
pageId: "", // ctx的key
trnmod: new Pub().data.Trnmod,
setmod: new Pub().data.Setmod,
liaall: new Pub().data.Liaall,
mtabut: new Pub().data.Mtabut,
}
}
}
\ No newline at end of file
......@@ -151,6 +151,7 @@ import Bftdrv from "./Bftdrv"
import ExamRule from "./ExamRule";
import Gitcom from "./Gitcom"
import Giteng from "./Giteng"
import Gitplb from "./Gitplb"
import Gitopn from "./Gitopn"
import Gitpop from "./Gitpop"
import Gitame from "./Gitame"
......@@ -506,6 +507,7 @@ const BusRouter = [
{ path: 'examRule', component: ExamRule, name: 'ExamRule', meta: { title: '智能审单规则设置' } },
{ path: 'gitcom', component: Gitcom, name: 'Gitcom', meta: { title: '进口保函定期收费' } },
{ path: 'giteng', component: Giteng, name: 'Giteng', meta: { title: '保函保证金调整' } },
{ path: 'gitplb', component: Gitplb, name: 'Gitplb', meta: { title: '保函责任计划变更' } },
{ path: 'gitpop', component: Gitpop, name: 'Gitpop', meta: { title: '进口保函预开立' } },
{ path: 'gitopn', component: Gitopn, name: 'Gitopn', meta: { title: '进口保函开立' } },
{ path: 'gitame', component: Gitame, name: 'Gitame', meta: { title: '进口保函修改' } },
......
<template>
<div class="eibs">
<!-- ====================左边======================= -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<el-form-item label="保函编号" prop="gidgrp.rec.ownref">
<c-fullbox>
<c-input
v-model="model.gidgrp.rec.ownref"
maxlength="16"
placeholder="请输入保函编号"
disabled
></c-input>
<template slot="footer">
<c-button
style="margin: 0 0 0 10px; padding: 0 12px"
size="small"
type="primary"
icon="el-icon-info"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="保函币种和金额" prop="gidgrp.cbs.max.cur">
<c-select
v-model="model.gidgrp.cbs.max.cur"
style="width: 100%"
placeholder="请选择保函币种"
disabled
>
<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>
<c-col :span="8">
<el-form-item label-width="5px" prop="gidgrp.cbs.max.amt">
<c-input-currency
disabled
v-model.number="model.gidgrp.cbs.max.amt"
></c-input-currency>
</el-form-item>
</c-col>
<c-col :span="4" class="centerLable">
<c-checkbox disabled v-model="model.gitp0.aamgid.addamtflg"
>附加金额</c-checkbox
>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="保函余额" prop="gidgrp.cbs.opn1.cur">
<c-select
disabled
v-model="model.gidgrp.cbs.opn1.cur"
style="width: 100%"
placeholder="请选择保函余额币种"
>
<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>
<c-col :span="8">
<el-form-item label-width="5px" prop="gidgrp.cbs.opn1.amt">
<c-input-currency-min
disabled
v-model.number="model.gidgrp.cbs.opn1.amt"
></c-input-currency-min>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="接收目的" prop="gidgrp.rec.purposin">
<c-select
v-model="model.gidgrp.rec.purposin"
style="width: 100%"
placeholder="请选择接收目的"
:code="codes.purposin"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="报文目的" prop="gidgrp.rec.purpos">
<c-select
v-model="model.gidgrp.rec.purpos"
style="width: 100%"
placeholder="请选择报文目的"
:code="codes.purpos"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="保函类型" prop="gidgrp.rec.gartyp">
<c-select
disabled
v-model="model.gidgrp.rec.gartyp"
style="width: 100%"
placeholder="请选择保函类型"
:code="codes.typgar"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="13">
<el-form-item label="到期" prop="gidgrp.rec.expdat">
<c-date-picker
disabled
type="date"
v-model="model.gidgrp.rec.expdat"
style="width: 100%"
placeholder="请选择"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item
style="text-align: left"
label-width="5px"
prop="gidgrp.rec.exptyp"
>
<c-select
v-model="model.gidgrp.rec.exptyp"
style="width: 100%"
placeholder="请选择到期类型"
:code="codes.exptyp"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="13">
<el-form-item
v-show="model.gidgrp.rec.liadat != ''"
label="责任日期"
prop="gidgrp.rec.liadat"
>
<c-date-picker
disabled
type="date"
v-show="model.gidgrp.rec.liadat != ''"
v-model="model.gidgrp.rec.liadat"
style="width: 100%"
placeholder="请选择责任日期"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="11" v-show="model.gidgrp.rec.liadat != ''">
<el-form-item
style="text-align: left"
label-width="5px"
prop="gidgrp.rec.liatypc"
>
<c-select
v-model="model.gidgrp.rec.liatypc"
style="width: 100%"
placeholder="请选择责任类型"
:code="codes.liatypc"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="原计划中指定的修改责任余额日期" prop="chgdat">
<c-date-picker
type="date"
v-model="model.chgdat"
style="width: 100%"
placeholder="请选择日期"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="13">
<el-form-item
label="原计划中指定的修改责任余额的发生额"
prop="setmod.doccur"
>
<c-select
disabled
v-model="model.setmod.doccur"
style="width: 100%"
placeholder="请选择币种"
>
<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>
<c-col :span="11">
<el-form-item label-width="5px" prop="chgamt">
<c-input-currency-min v-model.number="model.chgamt"></c-input-currency-min>
</el-form-item>
</c-col>
</c-col>
</c-col>
<!-- ========================右边======================= -->
<c-col :span="12" style="padding-left: 20px">
<c-col :span="24">
<el-form-item label="简略信息" prop="gidgrp.rec.nam">
<c-input
disabled
v-model="model.gidgrp.rec.nam"
maxlength="40"
placeholder="请输入简略信息"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="申请人" prop="gidgrp.apl.pts.nam">
<c-input
disabled
v-model="model.gidgrp.apl.pts.nam"
maxlength="40"
placeholder="请输入"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="受益人" prop="gidgrp.ben.pts.nam">
<c-input
disabled
v-model="model.gidgrp.ben.pts.nam"
maxlength="40"
placeholder="请输入"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="帐户行" prop="gidgrp.ctr.pts.nam">
<c-input
disabled
v-model="model.gidgrp.ctr.pts.nam"
maxlength="40"
placeholder="请输入"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="开证行" prop="gidgrp.iss.pts.nam">
<c-input
disabled
v-model="model.gidgrp.iss.pts.nam"
maxlength="40"
placeholder="请输入开证行"
></c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Gitplb/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {};
},
methods: { ...Event },
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames" @change="handleChange">
<el-collapse-item title="事后赔偿责任" name="gitsetp1">
<m-gitsetp1 :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Giteng/Event";
import Gitsetp1 from "./Gitsetp1";
export default {
components: {
"m-gitsetp1": Gitsetp1,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
activeNames: ["gitsetp1"],
};
},
methods: { ...Event },
created: function () {},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eContainer">
<c-page title="保函责任计划变更">
<el-form
:model="model"
:rules="rules"
ref="modelForm"
label-width="120px"
label-position="right"
size="small"
:validate-on-rule-change="false"
>
<c-tabs
v-model="tabVal"
ref="elment"
type="card"
@tab-click="myTabClick"
>
<el-tab-pane label="业务信息" name="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="保证金" name="ccvpan">
<c-content>
<m-ccvpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="统一授信" name="limitbody,shisuan">
<c-content>
<div class="eibs-tab">
<el-collapse v-model="activeNames1">
<el-collapse-item title="统一授信" name="limitbody">
<m-limitbody :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="试算结果" name="shisuan">
<m-shisuan :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</c-content>
</el-tab-pane>
<el-tab-pane label="费用/账务" name="engp,setpan">
<c-content>
<div class="eibs-tab">
<el-collapse v-model="activeNames">
<el-collapse-item title="表外记账" name="engp">
<m-engp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="结算" name="setpan">
<m-setpan :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</c-content>
</el-tab-pane>
<el-tab-pane label="备查/附言" name="coninfp">
<c-content>
<div class="eibs-tab">
<el-collapse v-model="activeNames">
<el-collapse-item title="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</c-content>
</el-tab-pane>
<el-tab-pane label="报文/面函" name="docpan">
<c-content>
<m-docpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="附件信息" name="doctre">
<c-content>
<m-doctre :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
</c-function-btn>
</c-page>
</div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Gitplb from "~/model/Gitplb";
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Gitplb/Check";
import Default from "~/model/Gitplb/Default";
import Pattern from "~/model/Gitplb/Pattern";
import Ovwp from "./Ovwp";
import Engp from "~/views/Public/Engp";
import Ccvpan from "~/views/Public/Ccvpan";
import Setpan from "~/views/Public/Setpan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
import Shisuan from "~/views/Public/Shisuan";
import Limitbody from "~/views/Public/Limitbody";
export default {
name: "Gitplb",
components: {
"m-ovwp": Ovwp,
"m-engp": Engp,
"m-ccvpan": Ccvpan,
"m-setpan": Setpan,
"m-coninfp": Coninfp,
"m-docpan": Docpan,
"m-doctre": Doctre,
"m-shisuan": Shisuan,
"m-limitbody": Limitbody,
},
provide() {
return {
root: this,
};
},
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "ovwp",
trnName: "gitplb",
trnType: "",
model: new Gitplb().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: { ...CodeTable },
activeNames: ["engp", "coninfp"],
activeNames1: ["limitbody"],
};
},
methods: {
myTabClick(tab) {
this.tabClick(tab);
/**
* do it yourself
**/
},
},
created: async function () {
console.log("进入gitplb交易");
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
//TODO 处理数据逻辑
if (this.isInDisplay) {
this.restoreDisplay();
}
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
};
</script>
<style>
</style>
<template>
<ReviewWrapper>
<Gitplb></Gitplb>
</ReviewWrapper>
</template>
<script>
import Gitplb from "~/views/Business/Gitplb";
import { ReviewWrapper } from "~/components/gj-common.min.js";
export default {
name: "ReviewGitplb",
components: { ReviewWrapper, Gitplb },
created() {},
mounted() {},
};
</script>
<style></style>
\ No newline at end of file
......@@ -116,6 +116,7 @@ import ReviewGitcrj from "./Business/ReviewGitcrj.vue";
import ReviewGitset from "./Business/ReviewGitset.vue";
import ReviewGctcan from "./Business/ReviewGctcan.vue";
import ReviewGiteng from "./Business/ReviewGiteng.vue";
import ReviewGitplb from "./Business/ReviewGitplb.vue";
import ReviewBttrcl from "./Business/ReviewBttrcl.vue";
import ReviewBttset from "./Business/ReviewBttset.vue";
......@@ -255,6 +256,7 @@ const ReviewRouter = [
{ path: "gitcrj", component: ReviewGitcrj, name: "ReviewGitcrj", meta: { title: "复核-Gitcrj" } },
{ path: "gctcan", component: ReviewGctcan, name: "ReviewGctcan", meta: { title: "复核-Gctcan" } },
{ path: "giteng", component: ReviewGiteng, name: "ReviewGiteng", meta: { title: "复核-Giteng" } },
{ path: "gitplb", component: ReviewGitplb, name: "ReviewGitplb", meta: { title: "复核-Gitplb" } },
{ path: "bttrcl", component: ReviewBttrcl, name: "ReviewBttrcl", meta: { title: "复核-Bttrcl" } },
{ path: "bttset", component: ReviewBttset, name: "ReviewBttset", meta: { title: "复核-Bttset" } },
......
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