Commit 295731c7 by 李少勇

Merge branch 'develop' of http://114.115.138.98:8900/isc-v3.1/isc-web-vue into develop

parents 4d7ca935 00770cc0
import Pts from "../Pts.js";
export default class Crdgrp {
constructor() {
this.data = {
rec: {
inr: "", //.crdgrp.rec.inr
ownref: "", // 业务编号 .crdgrp.rec.ownref
nam: "", // 名称 .crdgrp.rec.nam
ownusr: "", // Responsible User .crdgrp.rec.ownusr
credat: "", // Date of Creation Opening or Registry .crdgrp.rec.credat
opndat: "", // Date L/C Opened/Issued .crdgrp.rec.opndat
clsdat: "", // Date L/C Closed .crdgrp.rec.clsdat
rcvobjtyp: "", // 业务种类 .crdgrp.rec.rcvobjtyp
rcvbchinr: "", // 归属机构 .crdgrp.rec.rcvbchinr
clrtyp: "", // Clearing Type .crdgrp.rec.clrtyp
trntyp: "", // Transaction Type .crdgrp.rec.trntyp
rcvbic: "", // Receiver BIC .crdgrp.rec.rcvbic
msgref: "", // 本行业务编号 .crdgrp.rec.msgref
msgact: "", // 汇款账号(Tag59) .crdgrp.rec.msgact
msgtyp: "", // Message Type .crdgrp.rec.msgtyp
msginr: "", // Message InrSMH .crdgrp.rec.msginr
bndtyp: "", // Bound Message Type .crdgrp.rec.bndtyp
bndinr: "", // Bound Message INRSMH .crdgrp.rec.bndinr
sta: "", // Status .crdgrp.rec.sta
errmsg: "", // 出错信息 .crdgrp.rec.errmsg
custyp: "", // 客户类型 .crdgrp.rec.custyp
branchinr: "", // branchinr .crdgrp.rec.branchinr
bchkeyinr: "", // BRANCH CODE KEYINR .crdgrp.rec.bchkeyinr
rcvbchinr: "", // Receiver Branch Inr .crdgrp.rec.rcvbchinr
ver: "", // Version Counter .crdgrp.rec.ver
sptinr: "", // Inr for SPT .crdgrp.rec.sptinr
etyextkey: "", // Entity holding Contract .crdgrp.rec.etyextkey
},
cbs: {
max: {
cur: "", // 清算币种及金额 .crdgrp.cbs.max.cur
amt: "", // 清算币种及金额 .crdgrp.cbs.max.amt
},
},
snd: {
pts: new Pts().data,
dbfadrblkcn: "", // Chinese address .crdgrp.snd.dbfadrblkcn
},
rcv: {
pts: new Pts().data,
dbfadrblkcn: "", // Chinese address .crdgrp.rcv.dbfadrblkcn
},
trf: {
pts: new Pts().data,
dbfadrblkcn: "", // Chinese address .crdgrp.trf.dbfadrblkcn
},
apl: {
pts: new Pts().data,
dbfadrblkcn: "", // Chinese address .crdgrp.apl.dbfadrblkcn
},
acc: {
pts: new Pts().data,
dbfadrblkcn: "", // Chinese address .crdgrp.acc.dbfadrblkcn
},
};
}
}
...@@ -2080,6 +2080,18 @@ const DisplayRouter = [ ...@@ -2080,6 +2080,18 @@ const DisplayRouter = [
component: () => import("./Funds/DisplayFxtsss.vue"), component: () => import("./Funds/DisplayFxtsss.vue"),
meta: {keepAlive: true, title: "交易快照-即期售汇", module: 'funds'} meta: {keepAlive: true, title: "交易快照-即期售汇", module: 'funds'}
}, },
{
name: "DisplayCrtcri",
path: "crtcri",
component: () => import("./Funds/DisplayCrtcri.vue"),
meta: {keepAlive: true, title: "交易快照-汇入清算", module: 'funds'}
},
{
name: "DisplayCrtcro",
path: "crtcro",
component: () => import("./Funds/DisplayCrtcro.vue"),
meta: {keepAlive: true, title: "交易快照-汇入清算", module: 'funds'}
},
]; ];
export default DisplayRouter; export default DisplayRouter;
\ No newline at end of file
<template>
<Crtcri></Crtcri>
</template>
<script>
import Crtcri from "~/page/Funds/Crtcri/views";
export default {
name: "display-crtcri",
components: { Crtcri },
created() {},
mounted() {},
};
</script>
<style></style>
<template>
<Crtcro></Crtcro>
</template>
<script>
import Crtcro from "~/page/Funds/Crtcro/views";
export default {
name: "display-crtcrio",
components: { Crtcro },
created() {},
mounted() {},
};
</script>
<style></style>
...@@ -77,7 +77,7 @@ export default { ...@@ -77,7 +77,7 @@ export default {
}; };
const rtnmsg = await Api.post(`/${this.moduleRouter()}/msgsel/check`, params); const rtnmsg = await Api.post(`/${this.moduleRouter()}/msgsel/check`, params);
if (rtnmsg.respCode === SUCCESS) { if (rtnmsg.respCode === SUCCESS) {
this.$notify({ title: '成功', type: 'success', message: '丢弃成功' }) this.$notify({ title: '成功', type: 'success', message: '放行成功' })
} }
}); });
}, },
......
...@@ -3,7 +3,15 @@ import Api from '~/service/Api'; ...@@ -3,7 +3,15 @@ import Api from '~/service/Api';
export default { export default {
mixins: [commonFunctions], mixins: [commonFunctions],
async init(params) {
const rtnmsg = await Api.post(`/${this.moduleRouter()}/${this.trnName}/init`, params);
if (rtnmsg.respCode === SUCCESS) {
this._rtnmsg = rtnmsg;
Utils.copyValueFromVoData(this.model, rtnmsg.data);
}
},
methods: { methods: {
} }
} }
\ No newline at end of file
...@@ -2,6 +2,20 @@ import Api from "~/service/Api" ...@@ -2,6 +2,20 @@ import Api from "~/service/Api"
export default class Qrtmgd { export default class Qrtmgd {
constructor() { constructor() {
this.data = { this.data = {
qrdgrp: {
rec: {
casnum: "", // CASE编号: .qrdgrp.rec.casnum
drfnum: "", // 汇票号码: .qrdgrp.rec.drfnum
ownt20: "", // 20域编号(发) .qrdgrp.rec.ownt20
otht20: "", // 20域编号(收): .qrdgrp.rec.otht20
revbak: "", // 收报行BIC: .qrdgrp.rec.revbak
actbak: "", // 账户行BIC: .qrdgrp.rec.actbak
sedbak: "", // 发报行BIC: .qrdgrp.rec.sedbak
settim: "", // 创建时间: .qrdgrp.rec.settim
des: "", // 备注 .qrdgrp.rec.des
msgtyp: "", // 报文标准 .qrdgrp.rec.msgtyp
},
},
qrtp: { qrtp: {
wtdlst: [], wtdlst: [],
rerway: "", // 重新分发路径 .qrtp.rerway rerway: "", // 重新分发路径 .qrtp.rerway
......
...@@ -230,12 +230,13 @@ export default { ...@@ -230,12 +230,13 @@ export default {
methods: { methods: {
async showCaseInfo() { async showCaseInfo() {
let params = { let params = {
mpsinr: this.$route.query.mpsinr || "", qrdgrp: this.model,
casnum: this.model.qrdgrp.rec.casnum,
} }
const rtnmsg = await Api.post(`/${this.moduleRouter()}/qrtmgd/msghis`, params); const rtnmsg = await Api.post(`/${this.moduleRouter()}/qrtmgd/msghis`, params);
if (rtnmsg.respCode === SUCCESS) { if (rtnmsg.respCode === SUCCESS) {
this.visible = true this.visible = true
this.model.qrtp.wtdlst = rtnmsg.data this.model.qrtp.roflst = rtnmsg.data
} }
} }
}, },
......
...@@ -56,9 +56,11 @@ export default { ...@@ -56,9 +56,11 @@ export default {
} }
}, },
created: async function () { created: async function () {
console.log("进入qrtmgs交易"); console.log("进入qrtmgd交易");
let params = { let params = {
transName: this.trnName, transName: this.trnName,
wtdinr: this.$route.query.inr,
msginr: this.$route.query.msginr,
qrdgrp: { qrdgrp: {
rec: { rec: {
inr: this.$route.query.inr || "", inr: this.$route.query.inr || "",
......
...@@ -31,8 +31,9 @@ export default { ...@@ -31,8 +31,9 @@ export default {
}); });
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
this.load = false; this.load = false;
this.model.msgrag = rtnmsg.data.msgrag;
this.stmData.data = []; this.stmData.data = [];
this.stmData.data=rtnmsg.data.list; this.stmData.data=rtnmsg.data.pageInfo.list;
// const {list} = rtnmsg.data; // const {list} = rtnmsg.data;
// const {codes:{sta1}} = this; // const {codes:{sta1}} = this;
// //
...@@ -73,6 +74,7 @@ export default { ...@@ -73,6 +74,7 @@ export default {
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
console.log(val);
}, },
dbClick() { dbClick() {
this.activeTab = 'fc' this.activeTab = 'fc'
...@@ -117,6 +119,14 @@ export default { ...@@ -117,6 +119,14 @@ export default {
}, },
handleSelectionChange1(val) { handleSelectionChange1(val) {
this.multipleSelection1 = val; this.multipleSelection1 = val;
} },
async toQrtmgd(row) {
console.log("xxxxxxxx",row.inr,row.msginr);
this.routerPush({
path: "/business/qrtmgd",
query: { wtdinr: row.inr,msginr:row.msginr}
});
},
}, },
}; };
...@@ -16,7 +16,7 @@ export default class Qrtmgs { ...@@ -16,7 +16,7 @@ export default class Qrtmgs {
settimend: "", settimend: "",
settimsta: "", settimsta: "",
uetr:"", uetr:"",
msgrag:"",
qrdgrp:{ qrdgrp:{
rec:{ rec:{
msgtyp: "", msgtyp: "",
......
...@@ -111,6 +111,22 @@ ...@@ -111,6 +111,22 @@
<c-input v-model="model.qrtp.uetr" maxlength="40"></c-input> <c-input v-model="model.qrtp.uetr" maxlength="40"></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
<el-table-column label="操作" fixed="right" min-width="150">
<template slot-scope="scope">
<c-button
style="margin-right: 5px"
size="small"
type="primary"
@click="showMessage(scope.row)"
>预览</c-button>
<c-button
style="margin-right: 5px"
size="small"
type="primary"
@click="updateAck(scope.row)"
>更新</c-button>
</template>
</el-table-column>
</el-row> </el-row>
</template> </template>
</c-list-search> </c-list-search>
...@@ -149,7 +165,22 @@ ...@@ -149,7 +165,22 @@
:key="key" :label="item.label" :key="key" :label="item.label"
:prop="item.prop" :prop="item.prop"
:min-width="item.width" :min-width="item.width"
></el-table-column> >
<template slot-scope="scope">
<c-select-value-to-label v-if="item.prop == 'sta'" v-model="scope.row.sta" :code="codes.stacod"></c-select-value-to-label>
<span v-else>{{ scope.row[item.prop] }}</span>
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" min-width="150">
<template slot-scope="scope">
<c-button
style="margin-right: 5px"
size="small"
type="primary"
@click="toQrtmgd(scope.row)"
>处理</c-button>
</template>
</el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination
......
...@@ -278,7 +278,7 @@ export default { ...@@ -278,7 +278,7 @@ export default {
{ {
label: "接收时间", label: "接收时间",
prop: "rcvdattim", prop: "rcvdattim",
width: "150px" width: "170px"
}, },
], ],
data: [], data: [],
......
...@@ -283,7 +283,7 @@ export default { ...@@ -283,7 +283,7 @@ export default {
{ {
label: "接收时间", label: "接收时间",
prop: "rcvdattim", prop: "rcvdattim",
width: "150px" width: "170px"
}, },
], ],
data: [], data: [],
......
...@@ -10,6 +10,12 @@ export default class Smpsel { ...@@ -10,6 +10,12 @@ export default class Smpsel {
cur: "", cur: "",
ref: "", ref: "",
smtno: "", smtno: "",
begnum: "",
endnum: "",
begdat: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)),
enddat: new Date(),
valdatbeg: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)),
valdatend: new Date(),
smpp: { smpp: {
smpsup: { smpsup: {
smtno: "", // : .smpp.smpsup.smtno smtno: "", // : .smpp.smpsup.smtno
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<el-row v-show="searchSlot.searchToggle"> <el-row v-show="searchSlot.searchToggle">
<c-col :span="8"> <c-col :span="8">
<el-form-item label="币种" prop="cur"> <el-form-item label="币种" prop="cur">
<c-select v-model="model.cur" style="width:100%"></c-select> <c-select v-model="model.cur" style="width:100%" dbCode="curtxt"></c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
...@@ -43,13 +43,13 @@ ...@@ -43,13 +43,13 @@
<c-col :span="8"> <c-col :span="8">
<el-form-item label="起止页码" style="width: 100%"> <el-form-item label="起止页码" style="width: 100%">
<c-col :span="11"> <c-col :span="11">
<c-input v-model="model.smpp.smpsup.begnum" maxlength="8"></c-input> <c-input v-model="model.begnum" maxlength="8"></c-input>
</c-col> </c-col>
<c-col :span="2" style="text-align: center"> <c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label> <label style="display: inline-block; width: 100%">-</label>
</c-col> </c-col>
<c-col :span="11"> <c-col :span="11">
<c-input v-model="model.smpp.smpsup.endnum" maxlength="8"></c-input> <c-input v-model="model.endnum" maxlength="8"></c-input>
</c-col> </c-col>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -57,26 +57,26 @@ ...@@ -57,26 +57,26 @@
<c-col :span="8"> <c-col :span="8">
<el-form-item label="收报日期" style="width: 100%"> <el-form-item label="收报日期" style="width: 100%">
<c-col :span="11"> <c-col :span="11">
<c-date-picker type="date" v-model="model.smpp.smpsup.begdat" style="width:100%"></c-date-picker> <c-date-picker type="date" v-model="model.begdat" style="width:100%"></c-date-picker>
</c-col> </c-col>
<c-col :span="2" style="text-align: center"> <c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label> <label style="display: inline-block; width: 100%">-</label>
</c-col> </c-col>
<c-col :span="11"> <c-col :span="11">
<c-date-picker type="date" v-model="model.smpp.smpsup.enddat" style="width:100%"></c-date-picker> <c-date-picker type="date" v-model="model.enddat" style="width:100%"></c-date-picker>
</c-col> </c-col>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item label="起息日期" style="width: 100%"> <el-form-item label="起息日期" style="width: 100%">
<c-col :span="11"> <c-col :span="11">
<c-date-picker type="date" v-model="model.smpp.smpsup.valdatbeg" style="width:100%"></c-date-picker> <c-date-picker type="date" v-model="model.valdatbeg" style="width:100%"></c-date-picker>
</c-col> </c-col>
<c-col :span="2" style="text-align: center"> <c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label> <label style="display: inline-block; width: 100%">-</label>
</c-col> </c-col>
<c-col :span="11"> <c-col :span="11">
<c-date-picker type="date" v-model="model.smpp.smpsup.valdatend" style="width:100%"></c-date-picker> <c-date-picker type="date" v-model="model.valdatend" style="width:100%"></c-date-picker>
</c-col> </c-col>
</el-form-item> </el-form-item>
</c-col> </c-col>
......
...@@ -153,6 +153,10 @@ ...@@ -153,6 +153,10 @@
</el-table-column> </el-table-column>
<el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop" <el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop"
:min-width="item.width"> :min-width="item.width">
<template slot-scope="scope">
<c-select-value-to-label v-if="item.prop == 'sta'" v-model="scope.row.sta" :code="codes.stacod"></c-select-value-to-label>
<span v-else>{{ scope.row[item.prop] }}</span>
</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -270,7 +274,7 @@ export default { ...@@ -270,7 +274,7 @@ export default {
{ {
label: "处理时间", label: "处理时间",
prop: "sttdattim", prop: "sttdattim",
width: "150px" width: "170px"
}, },
], ],
data: [], data: [],
......
...@@ -274,7 +274,7 @@ export default { ...@@ -274,7 +274,7 @@ export default {
{ {
label: "处理时间", label: "处理时间",
prop: "sttdattim", prop: "sttdattim",
width: "150px" width: "170px"
}, },
], ],
data: [], data: [],
......
...@@ -25,9 +25,17 @@ export default { ...@@ -25,9 +25,17 @@ export default {
return { return {
rec: { rec: {
objtyp: "CRD", objtyp: "CRD",
forare:model.crtp.forare,
opndat:model.crdgrp.rec.opndat,
rcvbchinr:model.crdgrp.rec.rcvbchinr,
custyp:model.crdgrp.rec.custyp,
rcvactInr:model.rcvact.inr,
rcvactExtkey:model.rcvact.extkey,
rcvobjtyp:model.crdgrp.rec.rcvobjtyp,
valdat:model.cpdgrp.rec.valdat,
}, },
cbsMap: { cbsMap: {
MAX: model.crdgrp.cbs.max,
}, },
ptsList: ptsptaList, ptsList: ptsptaList,
transName: trnName, transName: trnName,
......
import commonFunctions from '~/mixin/commonFunctions.js'; import commonFunctions from "~/mixin/commonFunctions.js";
import Api from '~/service/Api'; import Api from "~/service/Api";
export default { export default {
mixins: [commonFunctions], mixins: [commonFunctions],
methods: { methods: {
async getOwnref() {
} if (this.model.crdgrp.rec.clrtyp == "") {
} this.$notify.warning({
\ No newline at end of file title: "提示",
message: "清算类型为空!",
});
return;
}
const loading = this.loading();
let res = await Api.post(
`/${this.moduleRouter()}/crtcri/getRef`,
this.model
);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
this.model.crdgrp.rec.ownref = res.data;
},
async getBranchCodeValue() {
const loading = this.loading();
let res = await Api.post(
`/${this.moduleRouter()}/crtcri/getBranchCodeValue`,
this.model
);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
this.rcvbchinrCode = res.data;
},
},
};
export default { export default {
"crtp.recget.sdamod.dadsnd": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"crdgrp.rec.ownref": [ "crdgrp.rec.ownref": [
{ type: "string", required: false, message: "必输项" }, { type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" } { max: 16, message: "长度不能超过16" },
],
"crtp.recget.sdamod.seainf": [
{ type: "string", required: false, message: "必输项" },
{ max: 3, message: "长度不能超过3" }
], ],
"crdgrp.rec.nam": [ "crdgrp.rec.nam": [
{ type: "string", required: false, message: "必输项" }, { type: "string", required: false, message: "必输项" },
{ max: 40, message: "长度不能超过40" } { max: 40, message: "长度不能超过40" },
], ],
"crdgrp.snd.pts.ref": [ "crdgrp.snd.pts.ref": [
{ type: "string", required: false, message: "必输项" }, { type: "string", required: false, message: "必输项" },
{ max: 20, message: "长度不能超过20" } { max: 20, message: "长度不能超过20" },
], ],
"crtp.usr.extkey": [ "crdgrp.rec.ownusr": [
{ type: "string", required: false, message: "必输项" }, { type: "string", required: false, message: "必输项" },
{ max: 8, message: "长度不能超过8" } { max: 8, message: "长度不能超过8" },
],
"crtp.usrget.sdamod.seainf": [
{ type: "string", required: false, message: "必输项" },
{ max: 3, message: "长度不能超过3" }
],
"crtp.sndp.ptsget.sdamod.dadsnd": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
], ],
"crdgrp.snd.pts.extkey": [ "crdgrp.snd.pts.extkey": [
{ type: "string", required: false, message: "必输项" }, { type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" } { max: 16, message: "长度不能超过16" },
],
"crtp.sndp.ptsget.sdamod.seainf": [
{ type: "string", required: false, message: "必输项" },
{ max: 3, message: "长度不能超过3" }
], ],
"crdgrp.cbs.max.amt": [ "crdgrp.cbs.max.amt": [
{ type: "number", required: false, message: "必输项" }, { required: true, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" }, { max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {
pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/,
message: "小数位不能超过3位",
},
], ],
"crdgrp.snd.pts.adrblk": [ "crdgrp.snd.pts.adrblk": [
{ type: "string", required: true, message: "必输项" }, { type: "string", required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" } { max: 35, message: "长度不能超过35" },
], ],
"crdgrp.snd.dbfadrblkcn": [ "crdgrp.snd.dbfadrblkcn": [
{ type: "string", required: true, message: "必输项" }, { type: "string", required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" } { max: 35, message: "长度不能超过35" },
], ],
"crdgrp.rec.msgref": [ "crdgrp.rec.msgref": [
{ type: "string", required: false, message: "必输项" }, { type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" } { max: 16, message: "长度不能超过16" },
], ],
"crdgrp.rec.msgact": [ "crdgrp.rec.msgact": [
{ type: "string", required: false, message: "必输项" }, { type: "string", required: false, message: "必输项" },
{ max: 21, message: "长度不能超过21" } { max: 21, message: "长度不能超过21" },
], ],
"crdgrp.acc.pts.ref": [ "crdgrp.acc.pts.ref": [
{ type: "string", required: false, message: "必输项" }, { type: "string", required: false, message: "必输项" },
{ max: 20, message: "长度不能超过20" } { max: 20, message: "长度不能超过20" },
],
"crtp.accp.ptsget.sdamod.dadsnd": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
], ],
"crdgrp.acc.pts.extkey": [ "crdgrp.acc.pts.extkey": [
{ type: "string", required: false, message: "必输项" }, { type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" } { max: 16, message: "长度不能超过16" },
],
"crtp.accp.ptsget.sdamod.seainf": [
{ type: "string", required: false, message: "必输项" },
{ max: 3, message: "长度不能超过3" }
], ],
"crdgrp.rec.errmsg": [ "crdgrp.rec.errmsg": [
{ type: "string", required: true, message: "必输项" }, { type: "string", required: false, message: "必输项" },
{ max: 40, message: "长度不能超过40" } { max: 40, message: "长度不能超过40" },
], ],
"crdgrp.acc.pts.adrblk": [ "crdgrp.acc.pts.adrblk": [
{ type: "string", required: true, message: "必输项" }, { type: "string", required: false, message: "必输项" },
{ max: 35, message: "长度不能超过35" } { max: 35, message: "长度不能超过35" },
], ],
"crdgrp.acc.dbfadrblkcn": [ "crdgrp.acc.dbfadrblkcn": [
{ type: "string", required: true, message: "必输项" }, { type: "string", required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" } { max: 35, message: "长度不能超过35" },
],
"crtp.valdat": [
{ type: "date", required: false, message: "输入正确的日期" }
], ],
} "crtp.valdat": [{ required: false, message: "输入正确的日期" }],
\ No newline at end of file };
import commonFunctions from "~/mixin/commonFunctions.js";
import Api from "~/service/Api";
import moment from "moment";
import commonDepend from "~/mixin/commonDepend";
import BigNumber from "bignumber.js";
export default {
mixins: [commonFunctions, commonDepend],
methods: {
isModifyCrd(key) {
if (this.model.crdgrp.rec.modifySet) {
if (this.model.crdgrp.rec.modifySet.includes(key)) {
return true;
} else {
return false;
}
} else {
return false;
}
},
},
};
import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts"
import Pub from "~/components/business/commonModel/index.js"; import Pub from "~/components/business/commonModel/index.js";
import Crdgrp from "~/components/business/commonModel/crdgrp";
import Cpdgrp from "~/components/business/commonModel/cpdgrp";
export default class Crtcri { export default class Crtcri {
constructor() { constructor() {
this.data = { this.data = {
crdgrp: { clrsta: "",
cbs: { crdgrp: new Crdgrp().data,
max: { cpdgrp: new Cpdgrp().data,
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
custyp: "", // 客户类型 .crdgrp.rec.custyp
},
snd: {
pts: new Pts().data,
dbfadrblkcn: "", // Chinese address .crdgrp.snd.dbfadrblkcn
},
acc: {
pts: new Pts().data,
dbfadrblkcn: "", // Chinese address .crdgrp.acc.dbfadrblkcn
},
},
crtp: { crtp: {
recget: {
sdamod: {
seainf: "", // .crtp.recget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .crtp.recget.sdamod.dadsnd
},
},
usr: { usr: {
extkey: "", // 经办柜员 .crtp.usr.extkey extkey: "", // 经办柜员 .crtp.usr.extkey
},
usrget: {
sdamod: {
seainf: "", // .crtp.usrget.sdamod.seainf
},
},
sndp: {
ptsget: {
sdamod: {
seainf: "", // .crtp.sndp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .crtp.sndp.ptsget.sdamod.dadsnd
},
},
}, },
accp: { valdat: "", // 起息日 .crtp.valdat
ptsget: { forare: "", // USE FOR ARE AMTOUNT .crtp.forare
sdamod: { },
seainf: "", // .crtp.accp.ptsget.sdamod.seainf rcvact: {
dadsnd: "", // Drag Drop Sender .crtp.accp.ptsget.sdamod.dadsnd inr: "",
}, extkey:"",
},
},
valdat: "", // 起息日 .crtp.valdat
forare: "", // USE FOR ARE AMTOUNT .crtp.forare
}, },
setmod: new Pub().data.Setmod, setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan, docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia, trndia: new Pub().data.Trndia,
doctre: new Pub().data.Doctre, doctre: new Pub().data.Doctre,
mtabut: new Pub().data.Mtabut, mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod, trnmod: new Pub().data.Trnmod,
} };
} }
} }
\ No newline at end of file
...@@ -5,96 +5,225 @@ ...@@ -5,96 +5,225 @@
<!-- S0000005 : 业务编号 --> <!-- S0000005 : 业务编号 -->
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="$t('crtp.业务编号')" prop="crdgrp.rec.ownref"> <el-form-item :label="$t('crtp.业务编号')" prop="crdgrp.rec.ownref">
<c-input v-model="model.crdgrp.rec.ownref" maxlength="16"></c-input> <c-fullbox>
<c-input
v-model="model.crdgrp.rec.ownref"
maxlength="16"
disabled
></c-input>
<template slot="footer">
<c-button
style="margin: 0 0"
size="small"
type="primary"
:disabled=" model.crdgrp.rec.ownref != '' || model.crdgrp.rec.clrtyp == '' "
@click="getOwnref"
>
获取
</c-button>
</template>
</c-fullbox>
</el-form-item> </el-form-item>
</c-col> </c-col>
<!-- S0000009 : 经办柜员 --> <!-- S0000009 : 经办柜员 -->
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="$t('crtp.经办柜员')" prop="crtp.usr.extkey"> <el-form-item :label="$t('crtp.经办柜员')" prop="crdgrp.rec.ownusr">
<c-input v-model="model.crtp.usr.extkey" maxlength="8"></c-input> <c-input
v-model="model.crdgrp.rec.ownusr"
maxlength="8"
disabled
></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<!-- S0000026 : 清算币种及金额 --> <!-- S0000026 : 清算币种及金额 -->
<c-col :span="24" class="custom-box-wrap"> <c-col :span="24" class="custom-box-wrap">
<el-form-item :label="$t('crtp.清算币种及金额')" prop="crdgrp.cbs.max.cur"> <el-form-item
<c-select-cur v-model="model.crdgrp.cbs.max.cur" style="width: 115px" placeholder="请选择币种" dbCode="curtxt"> :label="$t('crtp.清算币种及金额')"
prop="crdgrp.cbs.max.cur"
>
<c-select-cur
v-model="model.crdgrp.cbs.max.cur"
style="width: 115px"
placeholder="请选择币种"
dbCode="curtxt"
>
</c-select-cur> </c-select-cur>
</el-form-item> </el-form-item>
<div class="box-3"> <div class="box-3">
<el-form-item label-width="5px" prop="crdgrp.cbs.max.amt"> <el-form-item label-width="5px" prop="crdgrp.cbs.max.amt">
<c-input-currency v-model="model.crdgrp.cbs.max.amt" :currency="model.crdgrp.cbs.max.cur" style="width: 100%"> <c-input-currency
v-model="model.crdgrp.cbs.max.amt"
:currency="model.crdgrp.cbs.max.cur"
style="width: 100%"
>
</c-input-currency> </c-input-currency>
</el-form-item> </el-form-item>
</div> </div>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="$t('crtp.本行业务编号')" prop="crdgrp.rec.msgref"> <el-form-item :label="$t('crtp.本行业务编号')" prop="crdgrp.rec.msgref">
<c-input v-model="model.crdgrp.rec.msgref" maxlength="16"></c-input> <c-input
v-model="model.crdgrp.rec.msgref"
maxlength="16"
:disabled="defaultCrdgrpRecMsgrefN1000"
></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="$t('crtp.汇款账号(Tag59)')" prop="crdgrp.rec.msgact"> <el-form-item
:label="$t('crtp.汇款账号(Tag59)')"
prop="crdgrp.rec.msgact"
>
<c-input v-model="model.crdgrp.rec.msgact" maxlength="21"></c-input> <c-input v-model="model.crdgrp.rec.msgact" maxlength="21"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-ptap :model="model" :isAdrblk="false" :haveAdrLabel="true" :requiredExtkey="true" :isAdrVisible="false" <c-ptap
:argadr="{ title: '账户行', grp: 'crdgrp', rol: 'acc' }" ptytyp="C"></c-ptap> :model="model"
:isAdrblk="false"
:haveAdrLabel="true"
:requiredExtkey="true"
:isAdrVisible="false"
:argadr="{ title: '账户行', grp: 'crdgrp', rol: 'acc' }"
ptytyp="B"
></c-ptap>
</c-col> </c-col>
</c-col> </c-col>
<!-- ============右边================= --> <!-- ============右边================= -->
<c-col :span="12" style="padding-left: 20px"> <c-col :span="12" style="padding-left: 20px">
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="$t('crtp.业务种类')" prop="crdgrp.rec.rcvobjtyp"> <el-form-item :label="$t('crtp.业务种类')" prop="crdgrp.rec.rcvobjtyp">
<c-select dbCode="RMB122" v-model="model.crdgrp.rec.rcvobjtyp" style="width:100%"> <c-select
dbCode="CBOTXT"
:filterKey="['CPD', 'BOD', 'CCD', 'CLD', 'BED', 'BTD', 'GID']"
v-model="model.crdgrp.rec.rcvobjtyp"
style="width: 100%"
>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="$t('crtp.客户类型')" prop="crdgrp.rec.custyp"> <el-form-item :label="$t('crtp.客户类型')" prop="crdgrp.rec.custyp">
<c-select dbCode="SZPTY" v-model="model.crdgrp.rec.custyp" style="width:100%"> <c-select
dbCode="GORS"
v-model="model.crdgrp.rec.custyp"
style="width: 100%"
:disabled="model.crdgrp.rec.rcvobjtyp != 'CPD'"
>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="$t('crtp.归属机构')" prop="crdgrp.rec.rcvbchinr"> <el-form-item :label="$t('crtp.归属机构')" prop="crdgrp.rec.rcvbchinr">
<c-select v-model="model.crdgrp.rec.rcvbchinr" style="width:100%"> <c-select v-model="model.crdgrp.rec.rcvbchinr" style="width: 100%">
<el-option
v-for="(item, idx) in rcvbchinrCode"
:key="idx"
:label="item.label"
:value="item.value"
></el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="$t('crtp.出错信息')" prop="crdgrp.rec.errmsg"> <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> <c-input
type="textarea"
v-model="model.crdgrp.rec.errmsg"
maxlength="40"
disabled
show-word-limit
></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="$t('crtp.起息日')" prop="crtp.valdat"> <el-form-item :label="$t('crtp.起息日')" prop="crtp.valdat">
<c-date-picker type="date" v-model="model.crtp.valdat" style="width:100%"></c-date-picker> <c-date-picker
type="date"
v-model="model.crtp.valdat"
style="width: 100%"
disabled
></c-date-picker>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-ptap :model="model" :isAdrblk="false" :haveAdrLabel="true" :requiredExtkey="true" :isAdrVisible="false" <c-ptap
:argadr="{ title: '发报行', grp: 'crdgrp', rol: 'snd' }" ptytyp="C"></c-ptap> :model="model"
:isAdrblk="false"
:haveAdrLabel="true"
:requiredExtkey="true"
:isAdrVisible="false"
:argadr="{ title: '发报行', grp: 'crdgrp', rol: 'snd' }"
ptytyp="B"
></c-ptap>
</c-col> </c-col>
</c-col> </c-col>
</div> </div>
</template> </template>
<script> <script>
import Event from "../event" import Event from "../event";
export default { export default {
inject: ['root'], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [Event], mixins: [Event],
data() { data() {
return { return {
rcvbchinrCode: [],
} };
}, },
methods: {}, methods: {},
created: function () { created: function () {
this.getBranchCodeValue();
} },
} computed: {
defaultCrdgrpRecMsgrefN1000: function () {
if (this.model.crdgrp.rec.rcvobjtyp == "") {
this.model.crdgrp.rec.msgref = "";
return true;
} else {
return false;
}
},
defaultCrdgrpRecNamN1000: function () {
if (!this.isModifyCrd("nam")) {
if (this.model.crdgrp.rec.clrtyp == "O") {
let amount = this.moneyFormat(
this.model.crdgrp.cbs.max.amt,
this.model.crdgrp.cbs.max.cur
);
let nam =
this.model.crdgrp.rec.msgtyp +
" " +
this.model.crdgrp.cbs.max.cur +
" " +
amount +
" " +
this.model.crdgrp.rec.rcvobjtyp +
"/" +
this.model.crdgrp.rcv.pts.nam;
this.model.crdgrp.rec.nam = nam.substring(0, 40);
} else {
let amount = this.moneyFormat(
this.model.crdgrp.cbs.max.amt,
this.model.crdgrp.cbs.max.cur
);
let nam =
this.model.crdgrp.rec.msgtyp +
" " +
this.model.crdgrp.cbs.max.cur +
" " +
amount +
" " +
this.model.crdgrp.rec.rcvobjtyp +
"/" +
this.model.crdgrp.snd.pta.nam;
this.model.crdgrp.rec.nam = nam.substring(0, 40);
}
}
return this.model.crdgrp.rec.nam;
},
},
};
</script> </script>
<style></style> <style></style>
<template> <template>
<div class="eContainer"> <div class="eContainer">
<c-page title="汇入清算"> <c-page title="汇入清算">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" <el-form
:validate-on-rule-change="false"> :model="model"
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> :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="clip"> <el-tab-pane label="业务信息" name="clip">
<m-clip :model="model" :codes="codes" /> <m-clip :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
...@@ -30,10 +42,10 @@ ...@@ -30,10 +42,10 @@
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable";
import Crtcri from "../model" import Crtcri from "../model";
import Clip from "./Clip" import Clip from "./Clip";
import Setpan from "~/components/business/setmod/views"; import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views"; import Docpan from "~/components/business/docpan/views";
...@@ -42,6 +54,8 @@ import commonDepend from "~/mixin/commonDepend"; ...@@ -42,6 +54,8 @@ import commonDepend from "~/mixin/commonDepend";
import event from "../event"; import event from "../event";
import buildFn from "../event/buildCommons.js"; import buildFn from "../event/buildCommons.js";
import Check from "../model/check.js"; import Check from "../model/check.js";
import Default from "../model/default";
export default { export default {
name: "Crtcri", name: "Crtcri",
components: { components: {
...@@ -51,10 +65,10 @@ export default { ...@@ -51,10 +65,10 @@ export default {
}, },
provide() { provide() {
return { return {
root: this root: this,
} };
}, },
mixins: [operationFunc, commonDepend, event, buildFn], mixins: [Default, operationFunc, commonDepend, event, buildFn],
data() { data() {
return { return {
tabVal: "clip", tabVal: "clip",
...@@ -63,14 +77,14 @@ export default { ...@@ -63,14 +77,14 @@ export default {
model: new Crtcri().data, model: new Crtcri().data,
rules: Check, rules: Check,
codes: { codes: {
...CodeTable ...CodeTable,
}, },
} };
}, },
methods: { methods: {
myTabClick(tab) { myTabClick(tab) {
this.tabClick(tab) this.tabClick(tab);
} },
}, },
created: async function () { created: async function () {
console.log("进入crtcri交易"); console.log("进入crtcri交易");
...@@ -82,8 +96,8 @@ export default { ...@@ -82,8 +96,8 @@ export default {
}, },
}, },
}; };
this.init(params) this.init(params);
} },
} };
</script> </script>
<style></style> <style></style>
...@@ -15,13 +15,25 @@ ...@@ -15,13 +15,25 @@
</c-col> </c-col>
<!-- S0000026 : 清算币种及金额 --> <!-- S0000026 : 清算币种及金额 -->
<c-col :span="24" class="custom-box-wrap"> <c-col :span="24" class="custom-box-wrap">
<el-form-item :label="$t('crtp.清算币种及金额')" prop="crdgrp.cbs.max.cur"> <el-form-item
<c-select-cur v-model="model.crdgrp.cbs.max.cur" style="width: 115px" placeholder="请选择币种" dbCode="curtxt"> :label="$t('crtp.清算币种及金额')"
prop="crdgrp.cbs.max.cur"
>
<c-select-cur
v-model="model.crdgrp.cbs.max.cur"
style="width: 115px"
placeholder="请选择币种"
dbCode="curtxt"
>
</c-select-cur> </c-select-cur>
</el-form-item> </el-form-item>
<div class="box-3"> <div class="box-3">
<el-form-item label-width="5px" prop="crdgrp.cbs.max.amt"> <el-form-item label-width="5px" prop="crdgrp.cbs.max.amt">
<c-input-currency v-model="model.crdgrp.cbs.max.amt" :currency="model.crdgrp.cbs.max.cur" style="width: 100%"> <c-input-currency
v-model="model.crdgrp.cbs.max.amt"
:currency="model.crdgrp.cbs.max.cur"
style="width: 100%"
>
</c-input-currency> </c-input-currency>
</el-form-item> </el-form-item>
</div> </div>
...@@ -29,76 +41,102 @@ ...@@ -29,76 +41,102 @@
<!-- S0000028 : 业务种类 --> <!-- S0000028 : 业务种类 -->
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="$t('crtp.业务种类')" prop="crdgrp.rec.rcvobjtyp"> <el-form-item :label="$t('crtp.业务种类')" prop="crdgrp.rec.rcvobjtyp">
<c-select dbCode="RMB122" v-model="model.crdgrp.rec.rcvobjtyp" style="width:100%"> <c-select
dbCode="CBOTXT"
:filterKey="['CPD', 'BCD', 'BRD', 'GID']"
v-model="model.crdgrp.rec.rcvobjtyp"
style="width: 100%"
>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<!-- S0000033 : 账户行 --> <!-- S0000033 : 账户行 -->
<!-- S0000034 : Ref. --> <!-- S0000034 : Ref. -->
<c-col :span="24"> <c-col :span="24">
<c-ptap :model="model" :isAdrblk="false" :haveAdrLabel="true" :requiredExtkey="true" :isAdrVisible="false" <c-ptap
:argadr="{ title: '账户行', grp: 'crdgrp', rol: 'acc' }" ptytyp="C"></c-ptap> :model="model"
:isAdrblk="false"
:haveAdrLabel="true"
:requiredExtkey="true"
:isAdrVisible="false"
:argadr="{ title: '账户行', grp: 'crdgrp', rol: 'acc' }"
ptytyp="C"
></c-ptap>
</c-col> </c-col>
</c-col> </c-col>
<!-- ============右边================= --> <!-- ============右边================= -->
<c-col :span="12" style="padding-left: 20px"> <c-col :span="12" style="padding-left: 20px">
<c-col :span="24"> <c-col :span="24">
<el-form-item label="清算类型" prop="crdgrp.rec.crttyp"> <el-form-item label="清算类型" prop="crdgrp.rec.crttyp">
<c-select :code="crttyp" v-model="model.crdgrp.rec.crttyp" style="width:100%"> <c-select
:code="crttyp"
v-model="model.crdgrp.rec.crttyp"
style="width: 100%"
>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<!-- S0000027 : 前手付汇业务编号 --> <!-- S0000027 : 前手付汇业务编号 -->
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="$t('crtp.前手付汇业务编号')" prop="crdgrp.rec.msgref"> <el-form-item
:label="$t('crtp.前手付汇业务编号')"
prop="crdgrp.rec.msgref"
>
<c-input v-model="model.crdgrp.rec.msgref" maxlength="16"></c-input> <c-input v-model="model.crdgrp.rec.msgref" maxlength="16"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<!-- S0000029 : 业务所属机构 --> <!-- S0000029 : 业务所属机构 -->
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="$t('crtp.业务所属机构')" prop="crdgrp.rec.rcvbchinr"> <el-form-item
<c-select v-model="model.crdgrp.rec.rcvbchinr" style="width:100%"> :label="$t('crtp.业务所属机构')"
prop="crdgrp.rec.rcvbchinr"
>
<c-select v-model="model.crdgrp.rec.rcvbchinr" style="width: 100%">
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-ptap :model="model" :isAdrblk="false" :haveAdrLabel="true" :requiredExtkey="true" <c-ptap
:argadr="{ title: '收报行', grp: 'crdgrp', rol: 'rcv' }" ptytyp="C"></c-ptap> :model="model"
:isAdrblk="false"
:haveAdrLabel="true"
:requiredExtkey="true"
:argadr="{ title: '收报行', grp: 'crdgrp', rol: 'rcv' }"
ptytyp="C"
></c-ptap>
</c-col> </c-col>
</c-col> </c-col>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import Event from "../event" import Event from "../event";
export default { export default {
inject: ['root'], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [Event], mixins: [Event],
data() { data() {
return { return {
crttyp: [ crttyp: [
{ {
label: '汇出清算', label: "汇出清算",
value: '汇出清算', value: "汇出清算",
}, },
{ {
label: '退汇清算', label: "退汇清算",
value: '退汇清算', value: "退汇清算",
}, },
{ {
label: '转汇清算', label: "转汇清算",
value: '转汇清算', value: "转汇清算",
}, },
] ],
} };
}, },
methods: {}, methods: {},
created: function () { created: function () {},
};
}
}
</script> </script>
<style></style> <style></style>
...@@ -70,6 +70,8 @@ export default class Fttfcm { ...@@ -70,6 +70,8 @@ export default class Fttfcm {
}, },
}, },
narblk:"",
relref:"",
setmod: new Pub().data.Setmod, setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan, docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia trndia: new Pub().data.Trndia
......
...@@ -24,13 +24,21 @@ export default { ...@@ -24,13 +24,21 @@ export default {
let ptsptaList = Utils.formatPtspta(model.ftdgrp, this.buildPtspta); let ptsptaList = Utils.formatPtspta(model.ftdgrp, this.buildPtspta);
return { return {
rec: { rec: {
objtyp: "FXT", objtyp: "FTD",
objinr: model.ftdgrp.rec.inr, objinr: model.ftdgrp.rec.inr,
ownref: model.ftdgrp.rec.ownref, ownref: model.ftdgrp.rec.ownref,
msgtyp: model.fttp.msgtyp,
fttyp: model.ftdgrp.rec.fttyp,
rat :model.ftdgrp.rec.rat,
bnktyp : model.ftdgrp.rec.bnktyp,
valdat: model.ftdgrp.rec.valdat,
canamt:model.canamt,
}, },
cbsMap: { cbsMap: {
MAX: model.ftdgrp.cbs.max, MAX: model.ftdgrp.cbs.max,
NOM1: model.ftdgrp.cbs.nom1, INS: model.ftdgrp.cbs.ins,
OPN1: model.ftdgrp.cbs.opn1,
OPN2: model.ftdgrp.cbs.opn2,
}, },
ptsList: ptsptaList, ptsList: ptsptaList,
transName: trnName, transName: trnName,
......
...@@ -2,28 +2,5 @@ import Api from "~/service/Api"; ...@@ -2,28 +2,5 @@ import Api from "~/service/Api";
import Utils from "~/utils"; import Utils from "~/utils";
export default { export default {
async onTropDet() {
let rtnmsg = await this.executeRule("trop.det");
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
async onTripDet() {
let rtnmsg = await this.executeRule("trip.det");
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
async onActpDet() {
let rtnmsg = await this.executeRule("actp.det");
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
}; };
export default { export default {
"ftdgrp.rec.ownref":[ data() {
{type: "string", required: false, message: "必输项"}, return {
{max: 16,message:"长度不能超过16"} rules: {
],
"ftdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ftdgrp.tro.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"fttp.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"fttp.trop.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.tro.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.trop.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"canamt": [
{ required: true, message: "必输项" },
// {
// validator (rule, value, callback) {
// if (value>this.model.ftdgrp.cbs.opn2.amt) {
// return callback(new Error('实际销账金额不能大于待销账金额!'));
// }
// callback();
// }, trigger: ['blur', 'change']
// }
],
"ftdgrp.tro.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.tro.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ftdgrp.cbs.opn2.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.cbs.opn2.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"setmod.doccur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"canamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ftdgrp.tri.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"fttp.trip.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.tri.pts.extkey":[ },
{type: "string", required: false, message: "必输项"}, };
{max: 16,message:"长度不能超过16"} },
], };
"fttp.trip.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.tri.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.tri.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.act.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"fttp.actp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.act.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.actp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.act.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.act.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
}
\ No newline at end of file
import Api from "~/service/Api" import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts" import Pts from "~/page/Model/Common/Pts"
import Pub from "~/components/business/commonModel/index.js"; import Pub from "~/components/business/commonModel/index.js";
import Ftdgrp from '~/components/business/commonModel/ftdgrp';
export default class Fttfcn{ export default class Fttfcn{
constructor () { constructor () {
this.data = { this.data = {
ftdgrp:{ ftdgrp: new Ftdgrp().data,
rec:{
ownref:"", // 资金调拨业务参考号 .ftdgrp.rec.ownref fttp: {
nam:"", // 名称 .ftdgrp.rec.nam troact: "", // Trade-out Account .fttp.troact
fttyp:"", // 定存拆借类型 .ftdgrp.rec.fttyp triact: "", // 备注 .fttp.triact
}, msgtyp: "", // 报文类型 .fttp.msgtyp
cbs:{ benact: "",
max:{ bnaktypflg: "",
cur:"", // 定存拆借金额 .ftdgrp.cbs.max.cur mt32m: {
amt:"", // 定存拆借金额 .ftdgrp.cbs.max.amt amecur: "", // Broker's Commission Cur. .mt30m.comcur
}, ameamt: 0,
opn2:{ newcur: "", // Broker's Commission Cur. .mt30m.comcur
cur:"", // 待销账金额 .ftdgrp.cbs.opn2.cur newamt: 0,
amt:"", // Balance .ftdgrp.cbs.opn2.amt s22a: "", // Typeof Operation(:22A) .mt30m.s22a
}, s94a: "",
}, s17r: "",
tro:{ s22b: "",
pts:new Pts().data, s30x: "",
dbfadrblkcn:"", // Chinese address .ftdgrp.tro.dbfadrblkcn oldref: "",
}, conref: "",
tri:{ conno: "", // MT300 22C - 共同参号 .mt30m.conref
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tri.dbfadrblkcn a53act: "", // Delivery Agent Account .mt30m.a53act
}, iniact: "", // Intermediary Account .mt30m.iniact
act:{ rbcact: "", // Receiving Agent Account .mt30m.rbcact
pts:new Pts().data, a58act: "",
dbfadrblkcn:"", // Chinese address .ftdgrp.act.dbfadrblkcn
}, b53act: "", // Delivery Agent Account .mt30m.b53act
}, b56act: "", // Intermediary Account .mt30m.b56act
fttp:{ owcact: "", // Receiving Agent Account .mt30m.owcact
usr:{ b58act: "", // Beneficiary Institution Account .mt30m.b58act
extkey:"", // 资金部负责人 .fttp.usr.extkey str300: "",
},
trop:{
ptsget:{ b58: {
sdamod:{ pts: new Pts().data,
seainf:"", // .fttp.trop.ptsget.sdamod.seainf },
dadsnd:"", // Drag Drop Sender .fttp.trop.ptsget.sdamod.dadsnd b53: {
}, pts: new Pts().data,
}, },
}, owc: {
trip:{ pts: new Pts().data,
ptsget:{ },
sdamod:{ b56: {
seainf:"", // .fttp.trip.ptsget.sdamod.seainf pts: new Pts().data,
dadsnd:"", // Drag Drop Sender .fttp.trip.ptsget.sdamod.dadsnd },
},
}, a58: {
}, pts: new Pts().data,
actp:{ },
ptsget:{ rbc: {
sdamod:{ pts: new Pts().data,
seainf:"", // .fttp.actp.ptsget.sdamod.seainf },
dadsnd:"", // Drag Drop Sender .fttp.actp.ptsget.sdamod.dadsnd ini: {
}, pts: new Pts().data,
}, },
}, a53: {
}, pts: new Pts().data,
canamt:"", // Cancellation Amount .canamt },
setmod:{
doccur:"", // 实际消账金额 .setmod.doccur
}, },
mtabut:{ },
clsflg:"", // Close Flag .mtabut.clsflg
}, canamt:0,
pageId: "", // ctx的key setmod: new Pub().data.Setmod,
setmod: new Pub().data.Setmod, docpan: new Pub().data.Docpan,
docpan: new Pub().data.Docpan, trndia: new Pub().data.Trndia
trndia: new Pub().data.Trndia
}
} }
}
} }
\ No newline at end of file
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-col :span="24">
<!-- ======================左边====================== -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24"> <c-col :span="24">
<!-- ======================左边====================== -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24"> <c-form-item label="业务编号" prop="ftdgrp.rec.ownref">
<c-form-item :label="$t('fttfcn.资金调拨业务参考号')" prop="ftdgrp.rec.ownref"> <c-fullbox>
<c-input v-model="model.ftdgrp.rec.ownref" maxlength="16" <c-input v-model="model.ftdgrp.rec.ownref" maxlength="16" placeholder="请输入业务编号" disabled>
:placeholder="$t('other.请输入') + $t('fttfcn.S0000002')"></c-input> </c-input>
</c-form-item> <template slot="footer">
</c-col> <c-button style="margin: 0 5px" size="small" type="primary" disabled
>
<c-col :span="24"> 获取
<c-form-item :label="$t('fttfcn.资金部负责人')" prop="fttp.usr.extkey"> </c-button>
<c-input v-model="model.fttp.usr.extkey" maxlength="8" </template>
:placeholder="$t('other.请输入') + $t('fttfcn.资金部负责人')"></c-input> </c-fullbox>
</c-form-item> </c-form-item>
</c-col>
</c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="$t('fttfcn.定存拆借类型')" prop="ftdgrp.rec.fttyp"> <c-form-item label="资金部负责人" prop="ftdgrp.rec.ownusr">
<c-select v-model="model.ftdgrp.rec.fttyp" :code="codes.ffttyp" style="width:100%" <c-fullbox>
:placeholder="$t('other.请输入') + $t('fttfcn.定存拆借类型')"> <c-input disabled v-model="model.ftdgrp.rec.ownusr" placeholder="请输入业务负责人" ></c-input>
</c-select> <template slot="footer">
</el-form-item> <c-button style="margin: 0 5px" size="small" type="primary">
</c-col> i
</c-button>
<c-col :span="24"> </template>
<c-col :span="12"> </c-fullbox>
<el-form-item :label="$t('fttfcn.定存拆借金额币种')" prop="ftdgrp.cbs.max.cur"> </c-form-item>
<c-select v-model="model.ftdgrp.cbs.max.cur" :code="codes.curtxt1" style="width:100%" </c-col>
:placeholder="$t('other.请输入') + $t('fttfcn.定存拆借金额币种')">
</c-select> <c-col :span="24">
</el-form-item> <el-form-item label="定存拆借类型" prop="ftdgrp.rec.fttyp">
</c-col> <c-select disabled v-model="model.ftdgrp.rec.fttyp" :code="codes.fttyp" :filterKey="['LO','LI','DO','DI']" style="width:100%"
<c-col :span="12" class="pl8"> placeholder="请输入定存拆借类型">
<c-form-item label-width="0" prop="ftdgrp.cbs.max.amt"> </c-select>
<c-input v-model="model.ftdgrp.cbs.max.amt" </el-form-item>
:placeholder="$t('other.请输入') + $t('fttfcn.定存拆借金额')"></c-input> </c-col>
</c-form-item> <!-- S0000009 : 定存拆借金额 -->
</c-col>
</c-col> <c-col :span="24">
<c-col :span="12">
<c-col :span="24"> <el-form-item label="定存拆借金额" prop="ftdgrp.cbs.max.cur">
<c-col :span="12"> <c-select disabled v-model="model.ftdgrp.cbs.max.cur" :code="codes.curtxt1" style="width:100%"
<el-form-item :label="$t('fttfcn.待销账金额币种')" prop="ftdgrp.cbs.opn2.cur"> placeholder="请输入定存拆借金额币种">
<c-select v-model="model.ftdgrp.cbs.opn2.cur" :code="codes.curtxt1" style="width:100%" </c-select>
:placeholder="$t('other.请输入') + $t('fttfcn.待销账金额币种')"> </el-form-item>
</c-select> </c-col>
</el-form-item> <c-col :span="12" class="pl8">
</c-col> <c-form-item label-width="0" prop="ftdgrp.cbs.max.amt">
<c-col :span="12" class="pl8"> <c-input-currency disabled :currency="model.ftdgrp.cbs.max.cur" v-model="model.ftdgrp.cbs.max.amt" placeholder="请输入定存拆借金额">
<c-form-item label-width="0" prop="ftdgrp.cbs.opn2.amt">
<c-input v-model="model.ftdgrp.cbs.opn2.amt" </c-input-currency>
:placeholder="$t('other.请输入') + '待销账金额币种'"></c-input> </c-form-item>
</c-form-item> </c-col>
</c-col> </c-col>
</c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="12"> <c-col :span="12">
<el-form-item :label="$t('fttfcn.实际消费金币种')" prop="setmod.doccur"> <el-form-item label="待销账金额" prop="ftdgrp.cbs.opn2.cur">
<c-select v-model="model.setmod.doccur" :code="codes.curtxt1" style="width:100%" <c-select disabled v-model="model.ftdgrp.cbs.opn2.cur" :code="codes.curtxt1" style="width:100%"
:placeholder="$t('other.请输入') + $t('fttfcn.实际消费金币种')"> placeholder="">
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12" class="pl8">
<c-col :span="12" class="pl8"> <c-form-item label-width="0" prop="ftdgrp.cbs.opn2.amt">
<c-form-item label-width="0" prop="canamt"> <c-input-currency disabled :currency="model.ftdgrp.cbs.opn2.cur" v-model="model.ftdgrp.cbs.opn2.amt" placeholder="">
<c-input v-model="model.canamt" :placeholder="$t('other.请输入') + '实际消费金额'"></c-input>
</c-form-item> </c-input-currency>
</c-col> </c-form-item>
</c-col> </c-col>
</c-col>
</c-col>
<!-- ======================右边====================== --> <c-col :span="24">
<c-col :span="12" style="padding-left: 20px"> <c-col :span="12">
<c-col :span="24"> <el-form-item label="实际销账金额" prop="ftdgrp.cbs.opn2.cur">
<c-form-item :label="$t('fttfcn.名称')" prop="ftdgrp.rec.nam"> <c-select disabled v-model="model.ftdgrp.cbs.opn2.cur" :code="codes.curtxt1" style="width:100%"
<c-input v-model="model.ftdgrp.rec.nam" maxlength="40" placeholder="">
:placeholder="$t('other.请输入') + $t('fttfcn.S0000003')"></c-input> </c-select>
</c-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="12" class="pl8">
<el-card class="box-card"> <c-form-item label-width="0" prop="canamt">
<c-ptap :model="model" :requiredExtkey="true" :disabled="false" :isAdrblk="true" <c-input-currency :currency="model.ftdgrp.cbs.opn2.cur" v-model="model.canamt" placeholder="">
:haveAdrLabel="true" :isShowCard="false"
:argadr="{ title: '资金拆出行', grp: 'ftdgrp', rol: 'tro' }" ptytyp="B"> </c-input-currency>
</c-ptap> </c-form-item>
</el-card> </c-col>
</c-col> </c-col>
<c-col :span="24">
<el-card class="box-card">
<c-ptap :model="model" :requiredExtkey="true" :disabled="false" :isAdrblk="true" </c-col>
:haveAdrLabel="true" :isShowCard="false" <!-- ======================右边====================== -->
:argadr="{ title: '资金拆入行', grp: 'ftdgrp', rol: 'tri' }" ptytyp="B"> <c-col :span="12" style="padding-left: 20px">
</c-ptap> <c-col :span="24">
</el-card> <c-form-item label="业务摘要" prop="ftdgrp.rec.nam">
</c-col> <c-input disabled v-model="model.ftdgrp.rec.nam" maxlength="40"
<c-col :span="24"> placeholder="请输入名称"></c-input>
<el-card class="box-card"> </c-form-item>
<c-ptap :model="model" :requiredExtkey="true" :disabled="false" :isAdrblk="true" </c-col>
:haveAdrLabel="true" :isShowCard="false" <c-col :span="24">
:argadr="{ title: '账户行', grp: 'ftdgrp', rol: 'act' }" ptytyp="B"> <el-card class="box-card">
</c-ptap> <c-ptap :model="model" :disabled="true"
</el-card> :requiredExtkey="model.ftdgrp.rec.fttyp =='LI'||model.ftdgrp.rec.fttyp =='DI'"
</c-col> :disabledExtkey="true"
</c-col>
:isAdrblk="true" :haveAdrLabel="true"
:isShowCard="false" :argadr="{ title: '资金拆出行', grp: 'ftdgrp', rol: 'tro' }" ptytyp="B">
</c-ptap>
</el-card >
</c-col>
<c-col :span="24">
<el-card class="box-card">
<c-ptap :model="model" :disabled="true"
:requiredExtkey="model.ftdgrp.rec.fttyp =='LO'||model.ftdgrp.rec.fttyp =='DO'"
:disabledExtkey="true" :isAdrblk="true" :haveAdrLabel="true"
:isShowCard="false" :argadr="{ title: '资金拆入行', grp: 'ftdgrp', rol: 'tri' }" ptytyp="B">
</c-ptap>
</el-card>
</c-col>
<c-col :span="24">
<el-card class="box-card">
<c-ptap :model="model" :disabled="true"
:disabledExtkey="true"
:isAdrblk="true" :haveAdrLabel="true"
:isShowCard="false" :argadr="{ title: '资金拆出我方账户行', grp: 'ftdgrp', rol: 'act' }" ptytyp="B">
</c-ptap>
</el-card>
</c-col> </c-col>
</div>
</c-col>
</c-col>
</div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api"
import Event from "../event" import commonProcess from "~/mixin/commonProcess";
import Event from "../event";
export default { export default {
inject: ['root'], inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [], mixins: [Event,commonProcess],
data() { data() {
return { return {
}
},
computed: {
},
methods: {
//获取码值
getCodelabel(value, codenam) {
const codeobj = this.codes[codenam].find(obj => obj.value === value)
return codeobj ? codeobj.label : value;
},
}
}, },
methods: { ...Event }, created: function () {
created: function () {
} },
watch: {
}
} }
</script> </script>
<style></style> <style></style>
...@@ -22,24 +22,33 @@ ...@@ -22,24 +22,33 @@
</el-tab-pane> </el-tab-pane>
</c-tabs> </c-tabs>
</el-form> </el-form>
<c-function-btn :handleCheck="handleCheck" :handleStash="handleStash" :handleSubmit="handleSubmit" <c-function-btn
@handleSureWarning="handleSureWarning" ref="commonBtn"></c-function-btn> :handleCheck="handleCheck"
:handleStash="handleStash"
:handleSubmit="handleSubmit"
@handleSureWarning="handleSureWarning"
ref="commonBtn"
></c-function-btn>
</c-page> </c-page>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Fttfcn from "../model" import commonProcess from "~/mixin/commonProcess"
import Canp from "./Canp"
import Setpan from "~/components/business/setmod/views"; import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views"; import Docpan from "~/components/business/docpan/views";
import buildFn from "../event/buildCommons.js";
import Fttfcn from "../model";
import operationFunc from "~/mixin/operationFunc"; import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend"; import commonDepend from "~/mixin/commonDepend";
import event from "../event"; import event from "../event";
import buildFn from "../event/buildCommons.js";
import Check from "../model/Check.js"; import Check from "../model/Check.js";
import Canp from "./Canp"
export default { export default {
...@@ -54,7 +63,7 @@ export default { ...@@ -54,7 +63,7 @@ export default {
root: this root: this
} }
}, },
mixins: [operationFunc, commonDepend, event, buildFn], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess,operationFunc,commonDepend,event,Check,buildFn], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
tabVal: "canp", tabVal: "canp",
...@@ -74,16 +83,16 @@ export default { ...@@ -74,16 +83,16 @@ export default {
} }
}, },
created: async function () { created: async function () {
console.log("进入fttfcn交易"); console.log("进入fttfcn交易.."+this.trnName);
let rtnmsg = {}; // await this.init({}) let params = {
if (rtnmsg.respCode == SUCCESS) { transName: this.trnName,
this.updateModel(rtnmsg.data) ftdgrp: {
//TODO 处理数据逻辑 rec: {
inr: this.$route.query.inr || "",
} },
else { },
this.$notify.error({ title: '错误', message: '服务请求失败!' }); };
} this.init(params)
} }
} }
</script> </script>
......
...@@ -24,13 +24,15 @@ export default { ...@@ -24,13 +24,15 @@ export default {
let ptsptaList = Utils.formatPtspta(model.ftdgrp, this.buildPtspta); let ptsptaList = Utils.formatPtspta(model.ftdgrp, this.buildPtspta);
return { return {
rec: { rec: {
objtyp: "FXT", objtyp: "FTD",
objinr: model.ftdgrp.rec.inr, objinr: model.ftdgrp.rec.inr,
ownref: model.ftdgrp.rec.ownref, ownref: model.ftdgrp.rec.ownref,
fttyp:model.ftdgrp.rec.fttyp,
}, },
cbsMap: { cbsMap: {
MAX: model.ftdgrp.cbs.max, MAX: model.ftdgrp.cbs.max,
NOM1: model.ftdgrp.cbs.nom1, OPN1: model.ftdgrp.cbs.opn1,
INS : model.ftdgrp.cbs.ins,
}, },
ptsList: ptsptaList, ptsList: ptsptaList,
transName: trnName, transName: trnName,
......
...@@ -38,7 +38,7 @@ export default { ...@@ -38,7 +38,7 @@ export default {
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"ftdgrp.cbs.max.amt":[ "ftdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"}, {type: "number", required: true, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
......
import Api from "~/service/Api" import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts" import Pts from "~/page/Model/Common/Pts"
import Pub from "~/components/business/commonModel/index.js"; import Pub from "~/components/business/commonModel/index.js";
import Ftdgrp from '~/components/business/commonModel/ftdgrp';
export default class Fttfmt{ export default class Fttfmt{
constructor () { constructor () {
this.data = { this.data = {
ftdgrp:{ ftdgrp: new Ftdgrp().data,
rec:{
ownref:"", // 资金调拨业务参考号 .ftdgrp.rec.ownref
nam:"", // 名称 .ftdgrp.rec.nam
fttyp:"", // 定存拆借类型 .ftdgrp.rec.fttyp
matdat:"", // 到期日 .ftdgrp.rec.matdat
rat:"", // 年利率 .ftdgrp.rec.rat
gzno:"", // 挂账编号 .ftdgrp.rec.gzno
},
cbs:{
max:{
cur:"", // 定存拆借金额 .ftdgrp.cbs.max.cur
amt:"", // 定存拆借金额 .ftdgrp.cbs.max.amt
},
},
tro:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tro.dbfadrblkcn
},
tri:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tri.dbfadrblkcn
},
act:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.act.dbfadrblkcn
},
},
fttp:{ fttp:{
troact: "", // Trade-out Account .fttp.troact
triact: "", // 备注 .fttp.triact
msgtyp: "", // 报文类型 .fttp.msgtyp
benact: "",
bnaktypflg: "",
usr:{ usr:{
extkey:"", // 资金部负责人 .fttp.usr.extkey extkey:"", // 资金部负责人 .fttp.usr.extkey
}, },
......
...@@ -5,16 +5,16 @@ ...@@ -5,16 +5,16 @@
<c-col :span="12" style="padding-right: 20px"> <c-col :span="12" style="padding-right: 20px">
<c-col :span="24"> <c-col :span="24">
<c-form-item :label="$t('fttfmt.资金调拨业务参考号')" prop="ftdgrp.rec.ownref"> <c-form-item :label="$t('fttfmt.资金调拨业务参考号')" prop="ftdgrp.rec.ownref">
<c-input v-model="model.ftdgrp.rec.ownref" maxlength="16" <c-input v-model="model.ftdgrp.rec.ownref" maxlength="16"
:placeholder="$t('other.请输入') + $t('fttfmt.资金调拨业务参考号')"></c-input> disabled></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
<!-- S0000004 : 资金部负责人 --> <!-- S0000004 : 资金部负责人 -->
<c-col :span="24"> <c-col :span="24">
<c-form-item :label="$t('fttfmt.资金部负责人')" prop="fttp.usr.extkey"> <c-form-item :label="$t('fttfmt.资金部负责人')" prop="ftdgrp.rec.ownusr">
<c-input v-model="model.fttp.usr.extkey" maxlength="8" <c-input v-model="model.ftdgrp.rec.ownusr" maxlength="8"
:placeholder="$t('other.请输入') + $t('fttfmt.资金部负责人')"></c-input> disabled></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
<!-- S0000005 : 定存拆借类型 --> <!-- S0000005 : 定存拆借类型 -->
...@@ -30,16 +30,16 @@ ...@@ -30,16 +30,16 @@
<c-col :span="24"> <c-col :span="24">
<c-col :span="12"> <c-col :span="12">
<el-form-item :label="$t('fttfmt.定存拆借金额')" prop="setmod.doccur"> <el-form-item :label="$t('fttfmt.定存拆借金额')" prop="ftdgrp.cbs.max.cur">
<c-select v-model="model.setmod.doccur" :code="codes.curtxt1" style="width:100%" <c-select v-model="model.ftdgrp.cbs.max.cur" :code="codes.curtxt1" style="width:100%"
:placeholder="$t('other.请输入') + $t('fttfmt.定存拆借金额币种')"> disabled>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12" class="pl8"> <c-col :span="12" class="pl8">
<c-form-item label-width="0" prop="ftdgrp.cbs.max.amt"> <c-form-item label-width="0" prop="ftdgrp.cbs.max.amt">
<c-input v-model="model.ftdgrp.cbs.max.amt" <c-input v-model="model.ftdgrp.cbs.max.amt"
:placeholder="$t('other.请输入') + $t('fttfmt.定存拆借金额')"></c-input> disabled></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
</c-col> </c-col>
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="$t('fttfmt.到期日')" prop="ftdgrp.rec.matdat"> <el-form-item :label="$t('fttfmt.到期日')" prop="ftdgrp.rec.matdat">
<c-date-picker type="date" v-model="model.ftdgrp.rec.matdat" style="width:100%" <c-date-picker type="date" v-model="model.ftdgrp.rec.matdat" style="width:100%"
:placeholder="$t('other.请输入') + $t('fttfmt.到期日')"></c-date-picker> disabled></c-date-picker>
</el-form-item> </el-form-item>
</c-col> </c-col>
<!-- S0000012 : 年利率 --> <!-- S0000012 : 年利率 -->
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<c-col :span="24"> <c-col :span="24">
<c-form-item :label="$t('fttfmt.年利率')" prop="ftdgrp.rec.rat"> <c-form-item :label="$t('fttfmt.年利率')" prop="ftdgrp.rec.rat">
<c-input v-model="model.ftdgrp.rec.rat" <c-input v-model="model.ftdgrp.rec.rat"
:placeholder="$t('other.请输入') + $t('fttfmt.年利率')"></c-input> disabled></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
<!-- S0000017 : 利息金额 --> <!-- S0000017 : 利息金额 -->
...@@ -64,14 +64,14 @@ ...@@ -64,14 +64,14 @@
<c-col :span="12"> <c-col :span="12">
<el-form-item :label="$t('fttfmt.利息金额币种')" prop="ftdgrp.cbs.max.cur"> <el-form-item :label="$t('fttfmt.利息金额币种')" prop="ftdgrp.cbs.max.cur">
<c-select v-model="model.ftdgrp.cbs.max.cur" :code="codes.curtxt1" style="width:100%" <c-select v-model="model.ftdgrp.cbs.max.cur" :code="codes.curtxt1" style="width:100%"
:placeholder="$t('other.请输入') + $t('fttfmt.利息金额币种')"> disabled>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12" class="pl8"> <c-col :span="12" class="pl8">
<c-form-item label-width="0" prop="intamt"> <c-form-item label-width="0" prop="ftdgrp.cbs.ins.amt">
<c-input v-model="model.intamt" :placeholder="$t('other.请输入') + $t('fttfmt.利息金额')"></c-input> <c-input v-model="model.ftdgrp.cbs.ins.amt" :placeholder="$t('other.请输入') + $t('fttfmt.利息金额')"></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
</c-col> </c-col>
...@@ -81,13 +81,13 @@ ...@@ -81,13 +81,13 @@
<c-col :span="12"> <c-col :span="12">
<el-form-item :label="$t('fttfmt.结算总金额币种')" prop="ftdgrp.cbs.max.cur"> <el-form-item :label="$t('fttfmt.结算总金额币种')" prop="ftdgrp.cbs.max.cur">
<c-select v-model="model.ftdgrp.cbs.max.cur" :code="codes.curtxt1" style="width:100%" <c-select v-model="model.ftdgrp.cbs.max.cur" :code="codes.curtxt1" style="width:100%"
:placeholder="$t('other.请输入') + $t('fttfmt.结算总金额币种')"> disabled>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12" class="pl8"> <c-col :span="12" class="pl8">
<c-form-item label-width="0" prop="setmod.setamt"> <c-form-item label-width="0" prop="setmod.setamt">
<c-input v-model="model.setmod.setamt" :placeholder="$t('other.请输入') + '结算总金额'"></c-input> <c-input v-model="model.setmod.setamt" disabled></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
</c-col> </c-col>
...@@ -105,12 +105,12 @@ ...@@ -105,12 +105,12 @@
<c-col :span="24"> <c-col :span="24">
<c-form-item :label="$t('fttfmt.名称')" prop="ftdgrp.rec.nam"> <c-form-item :label="$t('fttfmt.名称')" prop="ftdgrp.rec.nam">
<c-input v-model="model.ftdgrp.rec.nam" maxlength="40" <c-input v-model="model.ftdgrp.rec.nam" maxlength="40"
:placeholder="$t('other.请输入') + $t('fttfmt.名称')"></c-input> disabled></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-card class="box-card"> <el-card class="box-card">
<c-ptap :model="model" :requiredExtkey="true" :disabled="false" :isAdrblk="true" <c-ptap :model="model" :requiredExtkey="true" :disabled="true" :disabledExtkey="true" :isAdrblk="true"
:haveAdrLabel="true" :isShowCard="false" :haveAdrLabel="true" :isShowCard="false"
:argadr="{ title: '资金拆出行', grp: 'ftdgrp', rol: 'tro' }" ptytyp="B"> :argadr="{ title: '资金拆出行', grp: 'ftdgrp', rol: 'tro' }" ptytyp="B">
</c-ptap> </c-ptap>
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-card class="box-card"> <el-card class="box-card">
<c-ptap :model="model" :requiredExtkey="true" :disabled="false" :isAdrblk="true" <c-ptap :model="model" :requiredExtkey="true" :disabled="true":disabledExtkey="true" :isAdrblk="true"
:haveAdrLabel="true" :isShowCard="false" :haveAdrLabel="true" :isShowCard="false"
:argadr="{ title: '资金拆入行', grp: 'ftdgrp', rol: 'tri' }" ptytyp="B"> :argadr="{ title: '资金拆入行', grp: 'ftdgrp', rol: 'tri' }" ptytyp="B">
</c-ptap> </c-ptap>
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-card class="box-card"> <el-card class="box-card">
<c-ptap :model="model" :requiredExtkey="true" :disabled="false" :isAdrblk="true" <c-ptap :model="model" :requiredExtkey="true" :disabled="true" :isAdrblk="true"
:haveAdrLabel="true" :isShowCard="false" :haveAdrLabel="true" :isShowCard="false"
:argadr="{ title: '账户行', grp: 'ftdgrp', rol: 'act' }" ptytyp="B"> :argadr="{ title: '账户行', grp: 'ftdgrp', rol: 'act' }" ptytyp="B">
</c-ptap> </c-ptap>
...@@ -139,10 +139,11 @@ ...@@ -139,10 +139,11 @@
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api"
import Event from "../event" import Event from "../event"
import commonProcess from "~/mixin/commonProcess";
export default { export default {
inject: ['root'], inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess],
data() { data() {
return { return {
......
...@@ -32,6 +32,7 @@ import Api from "~/service/Api" ...@@ -32,6 +32,7 @@ import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Fttfmt from "../model" import Fttfmt from "../model"
import Matp from "./Matp" import Matp from "./Matp"
import commonProcess from "~/mixin/commonProcess"
import Setpan from "~/components/business/setmod/views"; import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views"; import Docpan from "~/components/business/docpan/views";
...@@ -54,14 +55,14 @@ export default { ...@@ -54,14 +55,14 @@ export default {
root: this root: this
} }
}, },
mixins: [operationFunc, commonDepend, event, buildFn], // 里面包含了Default、Check等的公共处理 mixins: [operationFunc, commonDepend, event, buildFn,commonProcess], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
tabVal: "matp", tabVal: "matp",
trnName: "fttfmt", trnName: "fttfmt",
trnType: "", trnType: "",
model: new Fttfmt().data, model: new Fttfmt().data,
rules: Check, rules: {},
codes: { ...CodeTable }, codes: { ...CodeTable },
} }
}, },
...@@ -75,15 +76,15 @@ export default { ...@@ -75,15 +76,15 @@ export default {
}, },
created: async function () { created: async function () {
console.log("进入fttfmt交易"); console.log("进入fttfmt交易");
let rtnmsg = {}; // await this.init({}) let params = {
if (rtnmsg.respCode == SUCCESS) { transName: this.trnName,
this.updateModel(rtnmsg.data) ftdgrp: {
//TODO 处理数据逻辑 rec: {
inr: this.$route.query.inr || "",
} },
else { },
this.$notify.error({ title: '错误', message: '服务请求失败!' }); };
} this.init(params)
} }
} }
</script> </script>
......
import Api from "~/service/Api" import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts" import Pts from "~/page/Model/Common/Pts"
import Pub from "~/components/business/commonModel/index.js"; import Pub from "~/components/business/commonModel/index.js";
import Ftdgrp from '~/components/business/commonModel/ftdgrp';
export default class Fttpcm{ export default class Fttpcm{
constructor () { constructor () {
this.data = { this.data = {
ftdgrp:{ ftdgrp: new Ftdgrp().data,
rec:{
int:"",
nam:"",
fttyp:"",
ownref:"", // Reference .ftdgrp.rec.ownref
nam:"", // 名称 .ftdgrp.rec.nam
opndat:"", // 调拨日期 .ftdgrp.rec.opndat
valdat:"", // 起息日 .ftdgrp.rec.valdat
ownusr:"", // 资金部负责人 .ftdgrp.rec.ownusr
usr:"", // 清算中心负责人 .ftdgrp.rec.usr
},
tro:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tro.dbfadrblkcn
},
tri:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tri.dbfadrblkcn
},
cbs:{
max:{
cur:"", // 头寸调拨金额 .ftdgrp.cbs.max.cur
amt:"", // 头寸调拨金额 .ftdgrp.cbs.max.amt
},
},
blk:{
remark:"", // 备注 .ftdgrp.blk.remark
},
ben:{
pts:new Pts().data,
},
},
fttp:{ fttp:{
trop:{ trop:{
ptsget:{ ptsget:{
......
...@@ -24,7 +24,7 @@ export default { ...@@ -24,7 +24,7 @@ export default {
let ptsptaList = []; let ptsptaList = [];
return { return {
rec: { rec: {
objtyp: "FXT", objtyp: "FTD",
objinr: model.ftdgrp.rec.inr, objinr: model.ftdgrp.rec.inr,
ownref: model.ftdgrp.rec.ownref, ownref: model.ftdgrp.rec.ownref,
fttyp:model.ftdgrp.rec.fttyp, fttyp:model.ftdgrp.rec.fttyp,
......
import Api from "~/service/Api" import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts" import Pts from "~/page/Model/Common/Pts"
import Pub from "~/components/business/commonModel/index.js"; import Pub from "~/components/business/commonModel/index.js";
import Ftdgrp from '~/components/business/commonModel/ftdgrp';
export default class Fttpcn{ export default class Fttpcn{
constructor () { constructor () {
this.data = { this.data = {
ftdgrp:{ ftdgrp: new Ftdgrp().data,
rec:{
int:"",
ownusr:"",
ownref:"", // 头寸调拨业务参考号 .ftdgrp.rec.ownref
nam:"", // 名称 .ftdgrp.rec.nam
fttyp:"", // 头寸调拨类型 .ftdgrp.rec.fttyp
},
cbs:{
max:{
cur:"", // 头寸调拨金额 .ftdgrp.cbs.max.cur
amt:"", // 头寸调拨金额 .ftdgrp.cbs.max.amt
},
opn2:{
cur:"", // 待销账金额 .ftdgrp.cbs.opn2.cur
amt:"", // Balance .ftdgrp.cbs.opn2.amt
},
},
tro:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tro.dbfadrblkcn
},
tri:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tri.dbfadrblkcn
},
},
fttp:{ fttp:{
trop:{ trop:{
...@@ -52,7 +26,7 @@ export default class Fttpcn{ ...@@ -52,7 +26,7 @@ export default class Fttpcn{
}, },
}, },
cancur:"", cancur:"",
canamt:0, // Cancellation Amount .canamt canamt:"", // Cancellation Amount .canamt
setmod:{ setmod:{
doccur:"", // 实际销账金额 .setmod.doccur doccur:"", // 实际销账金额 .setmod.doccur
}, },
......
import Pub from "~/components/business/commonModel/index.js"; import Pub from "~/components/business/commonModel/index.js";
import Fxdgrp from '~/components/business/commonModel/fxdgrp'; import Fxdgrp from '~/components/business/commonModel/fxdgrp';
import Cpdgrp from '~/components/business/commonModel/cpdgrp';
export default class Fxtssb { export default class Fxtssb {
...@@ -13,6 +15,7 @@ export default class Fxtssb { ...@@ -13,6 +15,7 @@ export default class Fxtssb {
cshflg: "", // 钞汇标志 .fxtp.cshflg cshflg: "", // 钞汇标志 .fxtp.cshflg
}, },
fxdgrp: new Fxdgrp().data, fxdgrp: new Fxdgrp().data,
cpdgrp: new Cpdgrp().data,
setmod: new Pub().data.Setmod, setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan, docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia, trndia: new Pub().data.Trndia,
......
...@@ -138,16 +138,12 @@ export default { ...@@ -138,16 +138,12 @@ export default {
return return
} }
let params = {} let params = {}
if(btn.code.toLowerCase() == 'fttfmt'){
params = {
path: "/business/" + btn.code.toLowerCase(),
}
}else{
params = { params = {
path: "/business/" + btn.code.toLowerCase(), path: "/business/" + btn.code.toLowerCase(),
query: { inr: row.inr,pntinr: row.pntinr } query: { inr: row.inr,pntinr: row.pntinr }
} }
}
this.routerPush(params); this.routerPush(params);
this.initdialog = false; this.initdialog = false;
}, },
......
<template>
<ReviewWrapper>
<Crtcri></Crtcri>
</ReviewWrapper>
</template>
<script>
import Crtcri from "~/page/Funds/Crtcri/views";
import ReviewWrapper from "~/components/business/ReviewWrapper.vue";
export default {
name: "review-crtcri",
components: {ReviewWrapper, Crtcri},
created() {
},
mounted() {
}
};
</script>
<style></style>
\ No newline at end of file
<template>
<ReviewWrapper>
<Crtcro></Crtcro>
</ReviewWrapper>
</template>
<script>
import Crtcro from "~/page/Funds/Crtcro/views";
import ReviewWrapper from "~/components/business/ReviewWrapper.vue";
export default {
name: "review-crtcro",
components: {ReviewWrapper, Crtcro},
created() {
},
mounted() {
}
};
</script>
<style></style>
\ No newline at end of file
...@@ -2197,6 +2197,18 @@ const ReviewRouter = [ ...@@ -2197,6 +2197,18 @@ const ReviewRouter = [
component: () => import("./Funds/ReviewFxtsss.vue"), component: () => import("./Funds/ReviewFxtsss.vue"),
meta: {keepAlive: true, title: "复核-即期结汇", module: 'funds'} meta: {keepAlive: true, title: "复核-即期结汇", module: 'funds'}
}, },
{
name: "review-crtcri",
path: "review-crtcri",
component: () => import("./Funds/ReviewCrtcri.vue"),
meta: {keepAlive: true, title: "复核-汇入清算", module: 'funds'}
},
{
name: "review-crtcro",
path: "review-crtcro",
component: () => import("./Funds/ReviewCrtcro.vue"),
meta: {keepAlive: true, title: "复核-汇出清算", module: 'funds'}
},
]; ];
export default ReviewRouter; export default ReviewRouter;
\ No newline at end of file
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