Commit 46a4bc24 by zhaoqian

crtcbk、crtctf交易代码提交

parent 5a6867ec
......@@ -3190,6 +3190,16 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/bindings": {
"version": "1.5.0",
"resolved": "https://registry.npmmirror.com/bindings/-/bindings-1.5.0.tgz",
"integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==",
"dev": true,
"optional": true,
"dependencies": {
"file-uri-to-path": "1.0.0"
}
},
"node_modules/bluebird": {
"version": "3.7.2",
"resolved": "https://registry.npmmirror.com/bluebird/-/bluebird-3.7.2.tgz",
......@@ -6760,6 +6770,13 @@
"node": ">=4.0.0"
}
},
"node_modules/file-uri-to-path": {
"version": "1.0.0",
"resolved": "https://registry.npmmirror.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
"integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==",
"dev": true,
"optional": true
},
"node_modules/filelist": {
"version": "1.0.4",
"resolved": "https://registry.npmmirror.com/filelist/-/filelist-1.0.4.tgz",
......@@ -9750,6 +9767,13 @@
"resolved": "https://registry.npmmirror.com/namespace-emitter/-/namespace-emitter-2.0.1.tgz",
"integrity": "sha512-N/sMKHniSDJBjfrkbS/tpkPj4RAbvW3mr8UAzvlMHyun93XEm83IAvhWtJVHo+RHn/oO8Job5YN4b+wRjSVp5g=="
},
"node_modules/nan": {
"version": "2.20.0",
"resolved": "https://registry.npmmirror.com/nan/-/nan-2.20.0.tgz",
"integrity": "sha512-bk3gXBZDGILuuo/6sKtr0DQmSThYHLtNCdSdXk9YkxD/jK6X2vmCyyXBBxyqZ4XcnzTyYEAThfX3DCEnLf6igw==",
"dev": true,
"optional": true
},
"node_modules/nanoid": {
"version": "3.3.7",
"resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.7.tgz",
......@@ -18834,6 +18858,16 @@
"dev": true,
"optional": true
},
"bindings": {
"version": "1.5.0",
"resolved": "https://registry.npmmirror.com/bindings/-/bindings-1.5.0.tgz",
"integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==",
"dev": true,
"optional": true,
"requires": {
"file-uri-to-path": "1.0.0"
}
},
"bluebird": {
"version": "3.7.2",
"resolved": "https://registry.npmmirror.com/bluebird/-/bluebird-3.7.2.tgz",
......@@ -21977,6 +22011,13 @@
}
}
},
"file-uri-to-path": {
"version": "1.0.0",
"resolved": "https://registry.npmmirror.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
"integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==",
"dev": true,
"optional": true
},
"filelist": {
"version": "1.0.4",
"resolved": "https://registry.npmmirror.com/filelist/-/filelist-1.0.4.tgz",
......@@ -24500,6 +24541,13 @@
"resolved": "https://registry.npmmirror.com/namespace-emitter/-/namespace-emitter-2.0.1.tgz",
"integrity": "sha512-N/sMKHniSDJBjfrkbS/tpkPj4RAbvW3mr8UAzvlMHyun93XEm83IAvhWtJVHo+RHn/oO8Job5YN4b+wRjSVp5g=="
},
"nan": {
"version": "2.20.0",
"resolved": "https://registry.npmmirror.com/nan/-/nan-2.20.0.tgz",
"integrity": "sha512-bk3gXBZDGILuuo/6sKtr0DQmSThYHLtNCdSdXk9YkxD/jK6X2vmCyyXBBxyqZ4XcnzTyYEAThfX3DCEnLf6igw==",
"dev": true,
"optional": true
},
"nanoid": {
"version": "3.3.7",
"resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.7.tgz",
import Utils from "~/utils";
export default {
methods: {
buildPtspta(ptsptaObj) {
let pts = ptsptaObj.pts;
return {
rol: pts.rol,
name: pts.nam,
ptyinr: pts.ptyinr,
ptainr: pts.ptainr,
extkey: pts.extkey,
dftdsp: pts.dftdsp,
dftcur: pts.dftcur,
dftact: pts.dftact,
dftfeecur: pts.dftfeecur,
dftactptainr: pts.dftactptainr,
glggrpflg: pts.glggrpflg,
adrblk: pts.adrblk,
pts,
};
},
buildCommonData(model, trnName) {
let ptsptaList = Utils.formatPtspta(model.crtp.fxdgrp, this.buildPtspta);
return {
rec: {
objtyp: "CRT",
objinr: model.crtp.fxdgrp.rec.inr,
ownref: model.crtp.fxdgrp.rec.ownref,
},
cbsMap: {
MAX: model.crtp.fxdgrp.cbs.max,
NOM1: model.crtp.fxdgrp.cbs.nom1,
},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL",
};
},
},
};
import commonFunctions from '~/mixin/commonFunctions.js';
import Api from '~/service/Api';
export default {
mixins: [commonFunctions],
methods: {
async getOwnref() {
}
}
}
\ No newline at end of file
import moment from 'moment';
export default {
"crtp.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crtp.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"crdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"crdgrp.rcv.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"crtp.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"crtp.usrget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"crtp.rcvp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crdgrp.rcv.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crtp.rcvp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"crdgrp.cbs.max.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"crdgrp.rcv.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"crdgrp.rcv.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"crdgrp.rec.msgref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crdgrp.acc.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"crtp.accp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crdgrp.acc.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crtp.accp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"crdgrp.acc.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"crdgrp.acc.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
}
\ No newline at end of file
/**
* Default规则
*/
import Api from '~/service/Api';
import Utils from "~/utils/index"
import commonFunctions from '~/mixin/commonFunctions.js';
import commonDepend from "~/mixin/commonDepend";
import Pts from '~/components/business/commonModel/Pts';
import dateFormat from '@/util/date/dateFormat.js'
export default {
mixins: [commonFunctions],
methods: {
defaultFuc() {
},
}
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts"
import Pub from "~/components/business/commonModel/index.js";
export default class Crtcbk {
constructor() {
this.data = {
crtp: {
recget: {
sdamod: {
seainf: "", // .crtp.recget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .crtp.recget.sdamod.dadsnd
},
},
usr: {
extkey: "", // 经办柜员 .crtp.usr.extkey
},
usrget: {
sdamod: {
seainf: "", // .crtp.usrget.sdamod.seainf
},
},
rcvp: {
ptsget: {
sdamod: {
seainf: "", // .crtp.rcvp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .crtp.rcvp.ptsget.sdamod.dadsnd
},
},
},
accp: {
ptsget: {
sdamod: {
seainf: "", // .crtp.accp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .crtp.accp.ptsget.sdamod.dadsnd
},
},
},
},
crdgrp: {
rec: {
nam: "", // 名称 .crdgrp.rec.nam
ownref: "", // 业务编号 .crdgrp.rec.ownref
msgref: "", // 前手付汇业务编号 .crdgrp.rec.msgref
rcvobjtyp: "", // 业务种类 .crdgrp.rec.rcvobjtyp
rcvbchinr: "", // 业务所属机构 .crdgrp.rec.rcvbchinr
},
cbs: {
max: {
cur: "", // 清算币种及金额 .crdgrp.cbs.max.cur
amt: "", // 清算币种及金额 .crdgrp.cbs.max.amt
},
},
rcv: {
pts: new Pts().data,
dbfadrblkcn: "", // Chinese address .crdgrp.rcv.dbfadrblkcn
},
acc: {
pts: new Pts().data,
dbfadrblkcn: "", // Chinese address .crdgrp.acc.dbfadrblkcn
},
},
// pageId: "" // ctx的key
setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia,
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<!-- S0000023 : 业务编号 -->
<c-col :span="12">
<el-form-item :label="$t('crtp.业务编号')" prop="crdgrp.rec.ownref">
<c-input v-model="model.crdgrp.rec.ownref" maxlength="16"></c-input>
</el-form-item>
</c-col>
<!-- <c-col :span="12">
<el-form-item label="" prop="crtp.recget.sdamod.seainf">
<c-input v-model="model.crtp.recget.sdamod.seainf"></c-input>
</el-form-item>
</c-col> -->
<!-- S0000024 : 名称 -->
<c-col :span="12">
<el-form-item :label="$t('crtp.名称')" prop="crdgrp.rec.nam">
<c-input v-model="model.crdgrp.rec.nam" maxlength="40"></c-input>
</el-form-item>
</c-col>
<!-- S0000025 : 经办柜员 -->
<c-col :span="12">
<el-form-item :label="$t('crtp.经办柜员')" prop="crtp.usr.extkey">
<c-input v-model="model.crtp.usr.extkey" maxlength="8"></c-input>
</el-form-item>
</c-col>
<!-- S0000031 : 收报行 -->
<!-- S0000032 : Ref. -->
<c-col :span="12">
<el-form-item :label="$t('crtp.收报行')" prop="crdgrp.rcv.pts.ref">
<c-input v-model="model.crdgrp.rcv.pts.ref" maxlength="20"></c-input>
</el-form-item>
</c-col>
<!-- <c-col :span="12">
<el-form-item label="" prop="crtp.usrget.sdamod.seainf">
<c-input v-model="model.crtp.usrget.sdamod.seainf"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Drag Drop Sender" prop="crtp.rcvp.ptsget.sdamod.dadsnd">
<c-input v-model="model.crtp.rcvp.ptsget.sdamod.dadsnd"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="External Key of Address" prop="crdgrp.rcv.pts.extkey">
<c-input v-model="model.crdgrp.rcv.pts.extkey" maxlength="16"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" prop="crtp.rcvp.ptsget.sdamod.seainf">
<c-input v-model="model.crtp.rcvp.ptsget.sdamod.seainf"></c-input>
</el-form-item>
</c-col> -->
<!-- S0000026 : 清算币种及金额 -->
<c-col :span="12">
<el-form-item :label="$t('crtp.清算币种及金额')" prop="crdgrp.cbs.max.cur">
<c-select v-model="model.crdgrp.cbs.max.cur" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('crtp.清算币种及金额')" prop="crdgrp.cbs.max.amt">
<c-input v-model="model.crdgrp.cbs.max.amt"></c-input>
</el-form-item>
</c-col>
<!-- <c-col :span="12">
<el-form-item label="Address Block" prop="crdgrp.rcv.pts.adrblk">
<c-input type="textarea" v-model="model.crdgrp.rcv.pts.adrblk" maxlength="35" show-word-limit></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Chinese address" prop="crdgrp.rcv.dbfadrblkcn">
<c-input type="textarea" v-model="model.crdgrp.rcv.dbfadrblkcn" maxlength="35" show-word-limit></c-input>
</el-form-item>
</c-col> -->
<!-- S0000027 : 前手付汇业务编号 -->
<c-col :span="12">
<el-form-item :label="$t('crtp.前手付汇业务编号')" prop="crdgrp.rec.msgref">
<c-input v-model="model.crdgrp.rec.msgref" maxlength="16"></c-input>
</el-form-item>
</c-col>
<!-- S0000028 : 业务种类 -->
<c-col :span="12">
<el-form-item :label="$t('crtp.业务种类')" prop="crdgrp.rec.rcvobjtyp">
<c-select v-model="model.crdgrp.rec.rcvobjtyp" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<!-- S0000029 : 业务所属机构 -->
<c-col :span="12">
<el-form-item :label="$t('crtp.业务所属机构')" prop="crdgrp.rec.rcvbchinr">
<c-select v-model="model.crdgrp.rec.rcvbchinr" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<!-- S0000033 : 账户行 -->
<!-- S0000034 : Ref. -->
<c-col :span="12">
<el-form-item :label="$t('crtp.账户行')" prop="crdgrp.acc.pts.ref">
<c-input v-model="model.crdgrp.acc.pts.ref" maxlength="20"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Drag Drop Sender" prop="crtp.accp.ptsget.sdamod.dadsnd">
<c-input v-model="model.crtp.accp.ptsget.sdamod.dadsnd"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="External Key of Address" prop="crdgrp.acc.pts.extkey">
<c-input v-model="model.crdgrp.acc.pts.extkey" maxlength="16"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Address Block" prop="crdgrp.acc.pts.adrblk">
<c-input type="textarea" v-model="model.crdgrp.acc.pts.adrblk" maxlength="35" show-word-limit ></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Chinese address" prop="crdgrp.acc.dbfadrblkcn">
<c-input type="textarea" v-model="model.crdgrp.acc.dbfadrblkcn" maxlength="35" show-word-limit></c-input>
</el-form-item>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "../event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess,Event],
data(){
return {
}
},
methods:{},
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="150px" 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="retp">
<c-content>
<m-retp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="费用/账务" name="setpan">
<c-content>
<m-setpan :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane label="报文/面函" name="docpan">
<c-content>
<m-docpan :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane label="附件信息" name="doctre">
<c-content>
<m-doctre :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="附言" name="coninfp">
<c-content>
<m-coninfp :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<c-function-btn :handleCheck="handleCheck" :handleStash="handleStash" :handleSubmit="handleSubmit"
@handleSureWarning="handleSureWarning" ref="commonBtn"></c-function-btn>
</c-page>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Crtcbk from "../model/index"
import Retp from "./Retp"
import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
import Doctre from "~/components/business/doctre/views";
import Glepan from "~/components/business/glentry/views";
import Coninfp from "~/components/business/coninfp/views";
import Engp from "~/components/business/engp/views";
import Setmod from "~/components/business/setmod/views";
import Glentry from "~/components/business/glentry/views";
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import event from "../event";
import buildFn from "../event/buildCommons.js";
import Check from "../model/check.js"
export default {
name: "Crtcbk",
components: {
"m-retp": Retp,
"m-setpan": Setpan,
"m-docpan": Docpan,
"m-glepan": Glepan,
// "m-glentry": Glentry,
"m-doctre": Doctre,
"m-coninfp": Coninfp,
"m-engp": Engp, 
"m-setmod": Setmod,
"m-glentry": Glentry, 
},
provide() {
return {
root: this
}
},
mixins: [operationFunc, commonDepend, event, buildFn],
data() {
return {
tabVal: "",
trnName: "crtcbk",
trnType: "",
model: new Crtcbk().data,
rules: Check,
codes: { ...CodeTable },
}
},
methods: {
myTabClick(tab) {
this.tabClick(tab)
}
},
created: async function () {
console.log("进入crtcbk交易");
let params = {
transName: this.trnName,
fxdgrp: {
rec: {
inr: this.$route.query.inr || "",
},
},
};
this.init(params)
}
}
</script>
<style></style>
import Utils from "~/utils";
export default {
methods: {
buildPtspta(ptsptaObj) {
let pts = ptsptaObj.pts;
return {
rol: pts.rol,
name: pts.nam,
ptyinr: pts.ptyinr,
ptainr: pts.ptainr,
extkey: pts.extkey,
dftdsp: pts.dftdsp,
dftcur: pts.dftcur,
dftact: pts.dftact,
dftfeecur: pts.dftfeecur,
dftactptainr: pts.dftactptainr,
glggrpflg: pts.glggrpflg,
adrblk: pts.adrblk,
pts,
};
},
buildCommonData(model, trnName) {
let ptsptaList = Utils.formatPtspta(model.crtp.fxdgrp, this.buildPtspta);
return {
rec: {
objtyp: "CRT",
objinr: model.crtp.fxdgrp.rec.inr,
ownref: model.crtp.fxdgrp.rec.ownref,
},
cbsMap: {
MAX: model.crtp.fxdgrp.cbs.max,
NOM1: model.crtp.fxdgrp.cbs.nom1,
},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL",
};
},
},
};
import commonFunctions from '~/mixin/commonFunctions.js';
import Api from '~/service/Api';
export default {
mixins: [commonFunctions],
methods: {
async getOwnref() {
}
}
}
\ No newline at end of file
export default {
"crtp.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crtp.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"crdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"crdgrp.snd.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"crdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"crtp.sndp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crdgrp.snd.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crtp.sndp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"crdgrp.rec.msgref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crdgrp.snd.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"crdgrp.rec.msgact":[
{type: "string", required: false, message: "必输项"},
{max: 21,message:"长度不能超过21"}
],
"crdgrp.acc.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"crtp.accp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crdgrp.acc.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crtp.accp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"crdgrp.acc.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"crdgrp.rec.errmsg":[
{type: "string", required: true, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"crdgrp.trf.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"crtp.trfp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crdgrp.trf.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crtp.trfp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"crdgrp.trf.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"crdgrp.trf.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
}
\ No newline at end of file
/**
* Crtctf Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"crdgrp.acc.pts.extkey" :Utils.defaultFunction,
"crdgrp.trf.dbfadrblkcn" :Utils.defaultFunction,
"crdgrp.trf.pts.adrblk" :Utils.defaultFunction,
"crdgrp.rec.ownref" :Utils.defaultFunction,
"crdgrp.trf.pts.extkey" :Utils.defaultFunction,
"crdgrp.snd.pts.extkey" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts"
import Pub from "~/components/business/commonModel/index.js";
export default class Crtctf {
constructor() {
this.data = {
crdgrp: {
cbs: {
max: {
cur: "", // 清算币种及金额 .crdgrp.cbs.max.cur
amt: "", // 清算币种及金额 .crdgrp.cbs.max.amt
},
},
rec: {
msgact: "", // 汇款账号(Tag59) .crdgrp.rec.msgact
ownref: "", // 业务编号 .crdgrp.rec.ownref
nam: "", // 名称 .crdgrp.rec.nam
msgref: "", // 本行业务编号 .crdgrp.rec.msgref
rcvobjtyp: "", // 业务种类 .crdgrp.rec.rcvobjtyp
rcvbchinr: "", // 归属机构 .crdgrp.rec.rcvbchinr
errmsg: "", // 出错信息 .crdgrp.rec.errmsg
},
snd: {
pts: new Pts().data,
},
acc: {
pts: new Pts().data,
},
trf: {
pts: new Pts().data,
dbfadrblkcn: "", // Chinese address .crdgrp.trf.dbfadrblkcn
},
},
crtp: {
recget: {
sdamod: {
seainf: "", // .crtp.recget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .crtp.recget.sdamod.dadsnd
},
},
sndp: {
ptsget: {
sdamod: {
dadsnd: "", // Drag Drop Sender .crtp.sndp.ptsget.sdamod.dadsnd
seainf: "", // .crtp.sndp.ptsget.sdamod.seainf
},
},
},
accp: {
ptsget: {
sdamod: {
dadsnd: "", // Drag Drop Sender .crtp.accp.ptsget.sdamod.dadsnd
seainf: "", // .crtp.accp.ptsget.sdamod.seainf
},
},
},
trfp: {
ptsget: {
sdamod: {
seainf: "", // .crtp.trfp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .crtp.trfp.ptsget.sdamod.dadsnd
},
},
},
},
pageId: "", // ctx的key
setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia,
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<!-- <c-col :span="12">
<el-form-item label="Drag Drop Sender" prop="crtp.recget.sdamod.dadsnd">
<c-input v-model="model.crtp.recget.sdamod.dadsnd" ></c-input>
</el-form-item>
</c-col> -->
<!-- S0000037 : 业务编号 -->
<c-col :span="12">
<el-form-item :label="$t('crtp.业务编号')" prop="crdgrp.rec.ownref">
<c-input v-model="model.crdgrp.rec.ownref" maxlength="16" ></c-input>
</el-form-item>
</c-col>
<!-- <c-col :span="12">
<el-form-item label="" prop="crtp.recget.sdamod.seainf">
<c-input v-model="model.crtp.recget.sdamod.seainf" :placeholder="$t('other.please_enter')+''"></c-input>
</el-form-item>
</c-col> -->
<!-- S0000038 : 名称 -->
<c-col :span="12">
<el-form-item :label="$t('crtp.名称')" prop="crdgrp.rec.nam">
<c-input v-model="model.crdgrp.rec.nam" maxlength="40" ></c-input>
</el-form-item>
</c-col>
<!-- S0000042 : 清算币种及金额 -->
<c-col :span="12">
<el-form-item :label="$t('crtp.清算币种及金额')" prop="crdgrp.cbs.max.cur">
<c-select v-model="model.crdgrp.cbs.max.cur" style="width:100%" >
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('crtp.清算币种及金额')" prop="crdgrp.cbs.max.amt">
<c-input v-model="model.crdgrp.cbs.max.amt" ></c-input>
</el-form-item>
</c-col>
<!-- S0000040 : 发报行 -->
<!-- S0000041 : Ref. -->
<c-col :span="12">
<el-form-item :label="$t('crtp.发报行')" prop="crdgrp.snd.pts.ref">
<c-input v-model="model.crdgrp.snd.pts.ref" maxlength="20"></c-input>
</el-form-item>
</c-col>
<!-- <c-col :span="12">
<el-form-item label="Drag Drop Sender" prop="crtp.sndp.ptsget.sdamod.dadsnd">
<c-input v-model="model.crtp.sndp.ptsget.sdamod.dadsnd" :placeholder="$t('other.please_enter')+'Drag Drop Sender'"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="External Key of Address" prop="crdgrp.snd.pts.extkey">
<c-input v-model="model.crdgrp.snd.pts.extkey" maxlength="16" :placeholder="$t('other.please_enter')+'External Key of Address'"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" prop="crtp.sndp.ptsget.sdamod.seainf">
<c-input v-model="model.crtp.sndp.ptsget.sdamod.seainf" :placeholder="$t('other.please_enter')+''"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSndpDet">
{{$t('ptsp.CF000082')}}
</c-button>
</c-col> -->
<!-- S0000043 : 本行业务编号 -->
<c-col :span="12">
<el-form-item :label="$t('crtp.本行业务编号')" prop="crdgrp.rec.msgref">
<c-input v-model="model.crdgrp.rec.msgref" maxlength="16"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Name of Party" prop="crdgrp.snd.pts.nam">
<c-input v-model="model.crdgrp.snd.pts.nam" maxlength="40"></c-input>
</el-form-item>
</c-col>
<!-- S0000036 : 汇款账号(Tag59) -->
<c-col :span="12">
<el-form-item :label="$t('crtp.汇款账号(Tag59)')" prop="crdgrp.rec.msgact">
<c-input v-model="model.crdgrp.rec.msgact" maxlength="21"></c-input>
</el-form-item>
</c-col>
<!-- S0000044 : 业务种类 -->
<c-col :span="12">
<el-form-item :label="$t('crtp.业务种类')" prop="crdgrp.rec.rcvobjtyp">
<c-select v-model="model.crdgrp.rec.rcvobjtyp" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<!-- S0000045 : 账户行 -->
<!-- S0000046 : Ref. -->
<c-col :span="12">
<el-form-item :label="$t('crtp.账户行')" prop="crdgrp.acc.pts.ref">
<c-input v-model="model.crdgrp.acc.pts.ref" maxlength="20"></c-input>
</el-form-item>
</c-col>
<!-- <c-col :span="12">
<el-form-item label="Drag Drop Sender" prop="crtp.accp.ptsget.sdamod.dadsnd">
<c-input v-model="model.crtp.accp.ptsget.sdamod.dadsnd" :placeholder="$t('other.please_enter')+'Drag Drop Sender'"></c-input>
</el-form-item>
</c-col> -->
<!-- S0000047 : 归属机构 -->
<c-col :span="12">
<el-form-item :label="$t('crtp.归属机构')" prop="crdgrp.rec.rcvbchinr">
<c-select v-model="model.crdgrp.rec.rcvbchinr" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<!-- <c-col :span="12">
<el-form-item label="External Key of Address" prop="crdgrp.acc.pts.extkey">
<c-input v-model="model.crdgrp.acc.pts.extkey" maxlength="16"></c-input>
</el-form-item>
</c-col> -->
<!-- <c-col :span="12">
<el-form-item label="" prop="crtp.accp.ptsget.sdamod.seainf">
<c-input v-model="model.crtp.accp.ptsget.sdamod.seainf"></c-input>
</el-form-item>
</c-col> -->
<!-- S0000048 : 出错信息 -->
<!-- <c-col :span="12">
<el-form-item label="Name of Party" prop="crdgrp.acc.pts.nam">
<c-input v-model="model.crdgrp.acc.pts.nam" maxlength="40" :placeholder="$t('other.please_enter')+'Name of Party'"></c-input>
</el-form-item>
</c-col> -->
<c-col :span="12">
<el-form-item :label="$t('crtp.出错信息')" prop="crdgrp.rec.errmsg">
<c-input type="textarea" v-model="model.crdgrp.rec.errmsg" maxlength="40" show-word-limit></c-input>
</el-form-item>
</c-col>
<!-- S0000049 : 收报行 -->
<!-- S0000050 : Ref. -->
<!-- <c-col :span="12">
<el-form-item :label="$t('crtp.收报行')" prop="crdgrp.trf.pts.ref">
<c-input v-model="model.crdgrp.trf.pts.ref" maxlength="20"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Drag Drop Sender" prop="crtp.trfp.ptsget.sdamod.dadsnd">
<c-input v-model="model.crtp.trfp.ptsget.sdamod.dadsnd"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="External Key of Address" prop="crdgrp.trf.pts.extkey">
<c-input v-model="model.crdgrp.trf.pts.extkey" maxlength="16"></c-input>
</el-form-item>
</c-col>
-->
<!-- <c-col :span="12">
<el-form-item label="" prop="crtp.trfp.ptsget.sdamod.seainf">
<c-input v-model="model.crtp.trfp.ptsget.sdamod.seainf" :placeholder="$t('other.please_enter')+''"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTrfpDet">
{{$t('ptsp.CF000081')}}
</c-button>
</c-col>
<c-col :span="12">
<el-form-item label="Address Block" prop="crdgrp.trf.pts.adrblk">
<c-input type="textarea" v-model="model.crdgrp.trf.pts.adrblk" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Address Block'" ></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Chinese address" prop="crdgrp.trf.dbfadrblkcn">
<c-input type="textarea" v-model="model.crdgrp.trf.dbfadrblkcn" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Chinese address'" ></c-input>
</el-form-item>
</c-col> -->
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "../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">
<c-page title="转汇结算">
<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">
<el-tab-pane label="转汇结算" name="ctfp">
<c-content>
<m-ctfp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="费用/账务" name="setpan">
<c-content>
<m-setpan :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane label="报文/面函" name="docpan">
<c-content>
<m-docpan :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane label="附件信息" name="doctre">
<c-content>
<m-doctre :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="附言" name="coninfp">
<c-content>
<m-coninfp :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<c-function-btn :handleCheck="handleCheck" :handleStash="handleStash" :handleSubmit="handleSubmit"
@handleSureWarning="handleSureWarning" ref="commonBtn"></c-function-btn>
</c-page>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Crtctf from "../model/index"
import Ctfp from "./Ctfp"
import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
import Doctre from "~/components/business/doctre/views";
import Glepan from "~/components/business/glentry/views";
import Coninfp from "~/components/business/coninfp/views";
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import event from "../event";
import buildFn from "../event/buildCommons.js";
import Check from "../model/check.js"
export default {
name: "Crtctf",
components: {
"m-ctfp": Ctfp,
"m-setpan": Setpan,
"m-docpan": Docpan,
"m-glepan": Glepan,
// "m-glentry": Glentry,
"m-doctre": Doctre,
"m-coninfp": Coninfp
},
provide() {
return {
root: this
}
},
mixins: [operationFunc, commonDepend, event, buildFn],
data() {
return {
tabVal: "",
trnName: "crtctf",
trnType: "",
model: new Crtctf().data,
rules: Check,
codes: { ...CodeTable },
}
},
methods: {
myTabClick(tab) {
this.tabClick(tab)
}
},
created: async function () {
console.log("进入crtctf交易");
let params = {
transName: this.trnName,
fxdgrp: {
rec: {
inr: this.$route.query.inr || "",
},
},
};
this.init(params)
}
}
</script>
<style></style>
......@@ -33,5 +33,7 @@ const BusRouter = [
{ path: 'fxtssb', component: () => import("./Fxtssb/views"), name: 'Fxtssb', meta: { title: '即期结汇交易' }, module: 'Funds' },
{ path: 'fxtsss', component: () => import("./Fxtsss/views"), name: 'Fxtsss', meta: { title: '即期售汇交易' }, module: 'Funds' },
{ path: 'fxtsqo', component: () => import("./Fxtsqo/views"), name: 'Fxtsqo', meta: { title: '结售汇报价' }, module: 'Funds' },
{ path: 'crtcbk', component: () => import("./Crtcbk/views"), name: 'Crtcbk', meta: { title: '退汇清算' }, module: 'Funds' },
{ path: 'crtctf', component: () => import("./Crtctf/views"), name: 'Crtctf', meta: { title: '转汇清算' }, module: 'Funds' },
];
export default BusRouter
const path = require('path')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const publicPath = require('./src/config/isc-publicPath.js')
const baseData = require('./src/config/isc-baseData-local.js')
// const baseData = require('./src/config/isc-baseData.js')
//const baseData = require('./src/config/isc-baseData-local.js')
const baseData = require('./src/config/isc-baseData.js')
let moment = require("moment")
process.env.VUE_APP_BASETHEME = 'purple';
......@@ -146,7 +146,7 @@ module.exports = {
configureWebpack: config => {
if (process.env.NODE_ENV !== 'production') {
// 开发环境下的source map配置
config.devtool = 'source-map';
// config.devtool = 'source-map';
}
if (process.env.NODE_ENV === 'production') {
// 将每个依赖包打包成单独的js文件
......
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