Commit bd5de9a8 by zhoujunpeng

头寸调拨确认交易

parent f2eb27ac
......@@ -21,12 +21,18 @@ export default {
};
},
buildCommonData(model, trnName) {
let ptsptaList = [];
let ptsptaList = Utils.formatPtspta(model.ftdgrp, this.buildPtspta);
return {
rec: {
objtyp: "FXT",
objinr: model.ftdgrp.rec.inr,
ownref: model.ftdgrp.rec.ownref,
fttyp:model.ftdgrp.rec.fttyp,
},
cbsMap: {
MAX: model.ftdgrp.cbs.max,
NOM1: model.ftdgrp.cbs.nom1,
},
cbsMap: {},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL",
......
......@@ -4,6 +4,23 @@ import Api from '~/service/Api';
export default {
mixins: [commonFunctions],
methods: {
async getOwnref(){
if (this.model.ftdgrp.rec.fttyp == "") {
this.$notify.warning({
title: '提示',
message: '请先选择类型!'
});
return;
}
const loading = this.loading();
let res = await Api.post(`/${this.moduleRouter()}/fttpcm/getRef`, this.model);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
this.model.ftdgrp.rec.ownref = res.data;
},
async onFttpButgetref() {
let rtnmsg = await this.executeRule("fttp.butgetref")
if (rtnmsg.respCode == SUCCESS) {
......
<template>
<div class="eibs-tab">
<el-row>
<!-- ==================左边================ -->
<!-- S0000076 : 头寸调拨业务参考号 -->
<c-col :span="12">
<c-form-item :label="$t('fttpcm.Reference')" prop="ftdgrp.rec.ownref">
<c-col :span="12" style="padding-right: 20px">
<c-form-item :label="$t('fttpcm.头寸调拨业务参考号')" prop="ftdgrp.rec.ownref">
<c-fullbox>
<c-input v-model="model.ftdgrp.rec.ownref" maxlength="16"></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 5px" type="primary">
Get Ref
<c-button size="small" style="margin-left: 5px" type="primary"
@click="getOwnref">
获取
</c-button>
</template>
</c-fullbox>
......@@ -16,7 +18,7 @@
</c-col>
<!-- S0000077 : 名称 -->
<c-col :span="12">
<c-form-item :label="$t('fttp.Name')" prop="ftdgrp.rec.nam">
<c-form-item :label="$t('fttp.名称')" prop="ftdgrp.rec.nam">
<c-input v-model="model.ftdgrp.rec.nam" maxlength="40"></c-input>
</c-form-item>
</c-col>
......@@ -29,11 +31,11 @@
<!-- S0000080 : 资金部负责人 -->
<c-col :span="24">
<c-form-item
:label="$t('fttp.Resp User(Treasury)')"
prop="fttp.usr.extkey"
:label="$t('fttp.资金部负责人')"
prop="ftdgrp.rec.usr"
>
<c-fullbox>
<c-input v-model="model.fttp.usr.extkey" maxlength="8"></c-input>
<c-input v-model="model.ftdgrp.rec.usr" maxlength="8"></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 5px" type="primary">
i
......@@ -45,11 +47,11 @@
<!-- S0000088 : 清算中心负责人 -->
<c-col :span="24">
<c-form-item
:label="$t('fttp.Resp User(Clearing)')"
:label="$t('fttp.清算中心负责人')"
prop="ftdgrp.rec.usr"
>
<c-fullbox>
<c-input v-model="model.ftdgrp.rec.usr" maxlength="8"></c-input>
<c-input v-model="model.ftdgrp.rec.usr" maxlength="8" placeholder="请输入清算中心负责人"></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 5px" type="primary">
i
......@@ -62,19 +64,20 @@
<c-col :span="24">
<c-col :span="10">
<c-form-item
:label="$t('fttp.Position Amount')"
:label="$t('fttp.头寸调拨金额')"
prop="ftdgrp.cbs.max.cur"
>
<c-select
<c-select-cur
v-model="model.ftdgrp.cbs.max.cur"
:code="codes.curtxt"
style="width: 100%"
>
</c-select>
dbCode="curtxt">
</c-select-cur>
<!-- </c-select> -->
</c-form-item>
</c-col>
<c-col :span="14">
<c-form-item label-width="10px" prop="ftdgrp.cbs.max.amt">
<c-form-item label-width="20px" prop="ftdgrp.cbs.max.amt">
<c-input-currency
v-model="model.ftdgrp.cbs.max.amt"
:currency="model.ftdgrp.cbs.max.cur"
......@@ -85,7 +88,7 @@
<!-- S0000084 : 调拨日期 -->
<c-col :span="24">
<c-form-item
:label="$t('fttp.Date of Creation')"
:label="$t('fttp.调拨日期')"
prop="ftdgrp.rec.opndat"
>
<c-date-picker
......@@ -97,7 +100,7 @@
</c-col>
<!-- S0000085 : 起息日 -->
<c-col :span="24">
<c-form-item :label="$t('fttp.Value Date')" prop="ftdgrp.rec.valdat">
<c-form-item :label="$t('fttp.起息日')" prop="ftdgrp.rec.valdat">
<c-date-picker
type="date"
v-model="model.ftdgrp.rec.valdat"
......@@ -107,7 +110,7 @@
</c-col>
<!-- S0000025 : 备注 -->
<c-col :span="24">
<c-form-item :label="$t('fttp.Remark')" prop="ftdgrp.blk.remark">
<c-form-item :label="$t('fttp.备注')" prop="ftdgrp.blk.remark">
<c-input
type="textarea"
v-model="model.ftdgrp.blk.remark"
......@@ -117,9 +120,20 @@
></c-input>
</c-form-item>
</c-col>
<!---beneficiary受益人-->
<c-col :span="24">
<el-card class="box-card">
<c-ptap :model="model" :requiredExtkey="true" :disabledExtkey="false" :disabled="false"
:isAdrblk="true" :haveAdrLabel="true"
:isShowCard="false" :argadr="{title: '头寸调拨受益人',grp: 'ftdgrp', rol: 'ben',}"
:label="{labelExtkey:'头寸调拨受益人',labelNam:'名称',labelAdrblk:'地址'}" ptytyp="C">
</c-ptap>
</el-card>
</c-col>
<!-- <c-col :span="24">
<c-form-item
:label="$t('fttp.Beneficiary')"
:label="$t('fttp.受益人')"
prop="ftdgrp.ben.pts.extkey"
>
<c-fullbox>
......@@ -132,12 +146,12 @@
i
</c-button>
<c-button size="small" style="margin-left: 5px" type="primary">
Details
详情
</c-button>
</template>
</c-fullbox>
</c-form-item>
</c-col>
</c-col> -->
<c-col :span="24">
<c-form-item prop="ftdgrp.ben.pts.nam">
<c-input
......@@ -148,7 +162,7 @@
</c-col>
<!-- S0000104 : 报文类型 -->
<c-col :span="24">
<c-form-item :label="$t('fttp.Message Type')" prop="fttp.msgtyp">
<c-form-item :label="$t('fttp.报文类型')" prop="fttp.msgtyp">
<c-select
v-model="model.fttp.msgtyp"
:code="codes.swftyp1"
......@@ -160,10 +174,12 @@
</c-col>
<c-col :span="12">
<!-- S0000078 : 头寸调出行 -->
<c-col :span="24">
<!-- ==================右边================ -->
<!-- <c-col :span="24">
<c-form-item
:label="$t('fttp.Long Position Bank')"
:label="$t('fttp.头寸调出行')"
prop="ftdgrp.tro.pts.ref"
>
<c-input
......@@ -184,7 +200,7 @@
i
</c-button>
<c-button size="small" style="margin-left: 5px" type="primary">
Details
详情
</c-button>
</template>
</c-fullbox>
......@@ -200,7 +216,21 @@
show-word-limit
></c-input>
</c-form-item>
</c-col> -->
<!-- S0000078 : 头寸调出行 -->
<c-col :span="24">
<el-card class="box-card">
<c-ptap :model="model" :requiredExtkey="true" :disabledExtkey="false" :disabled="false"
:isAdrblk="true" :haveAdrLabel="true"
:isShowCard="false" :argadr="{title: '头寸调出行',grp: 'ftdgrp', rol: 'tro',}"
:label="{labelExtkey:'头寸调出行',labelNam:'名称',labelAdrblk:'地址'}" ptytyp="B">
</c-ptap>
</el-card>
</c-col>
<c-col :span="24">
<c-form-item label="" prop="fttp.troact">
<c-select
......@@ -211,9 +241,22 @@
</c-select>
</c-form-item>
</c-col>
<!--头寸调入行Short Position Bank-->
<c-col :span="24">
<el-card class="box-card">
<c-ptap :model="model" :requiredExtkey="true" :disabledExtkey="false" :disabled="false"
:isAdrblk="true" :haveAdrLabel="true"
:isShowCard="false" :argadr="{title: '头寸调入行',grp: 'ftdgrp', rol: 'tri',}"
:label="{labelExtkey:'头寸调入行',labelNam:'名称',labelAdrblk:'地址'}" ptytyp="B">
</c-ptap>
</el-card>
</c-col>
<!-- <c-col :span="24">
<c-form-item
label="Short Position Bank"
label="头寸调入行"
prop="fttp.trop.ptsget.sdamod.dadsnd"
>
<c-input v-model="model.fttp.trop.ptsget.sdamod.dadsnd"></c-input>
......@@ -231,7 +274,7 @@
i
</c-button>
<c-button size="small" style="margin-left: 5px" type="primary">
Details
详情
</c-button>
</template>
</c-fullbox>
......@@ -247,7 +290,9 @@
show-word-limit
></c-input>
</c-form-item>
</c-col>
</c-col> -->
<c-col :span="24">
<c-form-item prop="fttp.triact">
<c-select
......@@ -274,7 +319,14 @@ export default {
data() {
return {};
},
methods: {},
computed: {
},
methods: { //获取码值
getCodelabel(value, codenam) {
const codeobj = this.codes[codenam].find(obj => obj.value === value)
return codeobj ? codeobj.label : value;
},},
created: function () {},
};
</script>
......
......@@ -75,7 +75,7 @@ export default {
trnName: "fttpcm",
trnType: "",
model: new Fttpcm().data,
rules: Check,
rules: {},
codes: { ...CodeTable },
}
},
......@@ -89,18 +89,17 @@ export default {
},
created:async function(){
console.log("进入fttpcm交易");
let rtnmsg = {}; // await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
let params = {
transName: this.trnName,
ftdgrp: {
rec: {
inr: this.$route.query.inr || "",
},
},
};
this.init(params)
},
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
......
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