Commit aa26aa37 by zhoujunpeng

fttpcm修改和fttpcn交易

parent cfa64128
...@@ -9587,6 +9587,11 @@ const CodeTable = { ...@@ -9587,6 +9587,11 @@ const CodeTable = {
{ label: "平盘卖出", value: "LS" }, { label: "平盘卖出", value: "LS" },
{ label: "兑换平盘买入", value: "FB" }, { label: "兑换平盘买入", value: "FB" },
], ],
ftt_fttyp:[
{
label:"头寸调拨", value:"PT"
},
],
rmbsta: [ rmbsta: [
{ label: "待申报", value: "0" }, { label: "待申报", value: "0" },
{ label: "已发送", value: "8" }, { label: "已发送", value: "8" },
......
...@@ -24,14 +24,13 @@ export default { ...@@ -24,14 +24,13 @@ 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, fttyp:model.ftdgrp.rec.fttyp,
}, },
cbsMap: { cbsMap: {
MAX: model.ftdgrp.cbs.max, MAX: model.ftdgrp.cbs.max,
NOM1: model.ftdgrp.cbs.nom1,
}, },
ptsList: ptsptaList, ptsList: ptsptaList,
transName: trnName, transName: trnName,
......
...@@ -56,7 +56,7 @@ export default { ...@@ -56,7 +56,7 @@ export default {
], ],
"ftdgrp.cbs.max.amt":[ "ftdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"}, {type: "string", 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位" }
], ],
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<!-- S0000077 : 名称 --> <!-- S0000077 : 名称 -->
<c-col :span="12"> <c-col :span="12">
<c-form-item label=名称 prop="ftdgrp.rec.nam"> <c-form-item label=名称 prop="ftdgrp.rec.nam">
<c-input v-model="model.ftdgrp.rec.nam" maxlength="40"></c-input> <c-input v-model="defaultNam950" maxlength="40" disabled></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
...@@ -320,14 +320,20 @@ export default { ...@@ -320,14 +320,20 @@ export default {
return {}; return {};
}, },
computed: { computed: {
defaultNam950: function () {
let amount = this.moneyFormat(this.model.ftdgrp.cbs.max.amt, this.model.ftdgrp.cbs.max.cur);
let nam = this.getCodelabel(this.model.ftdgrp.rec.fttyp, "ftt_fttyp") + ","
+ this.model.ftdgrp.cbs.max.cur + " " + amount
this.model.ftdgrp.rec.nam = nam;
return nam;
}, },
},
methods: { //获取码值 methods: { //获取码值
getCodelabel(value, codenam) { getCodelabel(value, codenam) {
const codeobj = this.codes[codenam].find(obj => obj.value === value) const codeobj = this.codes[codenam].find(obj => obj.value === value)
return codeobj ? codeobj.label : value; return codeobj ? codeobj.label : value;
},}, },},
created: function () {}, created: function () {},
}; }
</script> </script>
<style></style> <style></style>
...@@ -53,6 +53,7 @@ import Mt199 from "./Mt199" ...@@ -53,6 +53,7 @@ import Mt199 from "./Mt199"
import Ftt199l1 from "./Ftt199l1" import Ftt199l1 from "./Ftt199l1"
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 check from "../model/check.js";
export default { export default {
......
...@@ -25,8 +25,17 @@ export default { ...@@ -25,8 +25,17 @@ export default {
return { return {
rec: { rec: {
objtyp: "FXT", objtyp: "FXT",
objinr: model.ftdgrp.rec.inr,
ownref: model.ftdgrp.rec.ownref,
fttyp:model.ftdgrp.rec.fttyp,
swtflg:model.swtflg,
cancur:model.cancur,
canamt:model.canamt,
},
cbsMap: {
MAX: model.ftdgrp.cbs.max,
OPN2:model.ftdgrp.cbs.opn2,
}, },
cbsMap: {},
ptsList: ptsptaList, ptsList: ptsptaList,
transName: trnName, transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL", userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL",
......
...@@ -44,7 +44,7 @@ export default { ...@@ -44,7 +44,7 @@ export default {
], ],
"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位" }
], ],
...@@ -53,7 +53,7 @@ export default { ...@@ -53,7 +53,7 @@ export default {
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
"ftdgrp.cbs.opn2.amt":[ "ftdgrp.cbs.opn2.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位" }
], ],
...@@ -62,7 +62,7 @@ export default { ...@@ -62,7 +62,7 @@ export default {
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
"canamt":[ "canamt":[
{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位" }
], ],
......
...@@ -7,6 +7,8 @@ export default class Fttpcn{ ...@@ -7,6 +7,8 @@ export default class Fttpcn{
this.data = { this.data = {
ftdgrp:{ ftdgrp:{
rec:{ rec:{
int:"",
ownusr:"",
ownref:"", // 头寸调拨业务参考号 .ftdgrp.rec.ownref ownref:"", // 头寸调拨业务参考号 .ftdgrp.rec.ownref
nam:"", // 名称 .ftdgrp.rec.nam nam:"", // 名称 .ftdgrp.rec.nam
fttyp:"", // 头寸调拨类型 .ftdgrp.rec.fttyp fttyp:"", // 头寸调拨类型 .ftdgrp.rec.fttyp
...@@ -31,9 +33,7 @@ export default class Fttpcn{ ...@@ -31,9 +33,7 @@ export default class Fttpcn{
}, },
}, },
fttp:{ fttp:{
usr:{
extkey:"", // 资金部负责人 .fttp.usr.extkey
},
trop:{ trop:{
ptsget:{ ptsget:{
sdamod:{ sdamod:{
...@@ -51,7 +51,8 @@ export default class Fttpcn{ ...@@ -51,7 +51,8 @@ export default class Fttpcn{
}, },
}, },
}, },
canamt:"", // Cancellation Amount .canamt cancur:"",
canamt:0, // Cancellation Amount .canamt
setmod:{ setmod:{
doccur:"", // 实际销账金额 .setmod.doccur doccur:"", // 实际销账金额 .setmod.doccur
}, },
......
...@@ -7,19 +7,21 @@ ...@@ -7,19 +7,21 @@
prop="ftdgrp.rec.ownref" prop="ftdgrp.rec.ownref"
> >
<c-fullbox> <c-fullbox>
<c-input v-model="model.ftdgrp.rec.ownref" maxlength="16"></c-input> <c-input v-model="model.ftdgrp.rec.ownref" maxlength="16"
<template slot="footer"> disabled></c-input>
<!-- <template slot="footer">
<c-button size="small" style="margin-left: 5px" type="primary"> <c-button size="small" style="margin-left: 5px" type="primary">
Get Ref 获取
</c-button> </c-button>
</template> </template> -->
</c-fullbox> </c-fullbox>
</c-form-item> </c-form-item>
</c-col> </c-col>
<!-- S0000077 : 名称 --> <!-- S0000077 : 名称 -->
<c-col :span="12"> <c-col :span="12">
<c-form-item :label="$t('fttp.名称')" 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-input v-model="model.ftdgrp.rec.nam" maxlength="40"
disabled></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
...@@ -30,8 +32,8 @@ ...@@ -30,8 +32,8 @@
<c-col :span="12"> <c-col :span="12">
<!-- S0000080 : 资金部负责人 --> <!-- S0000080 : 资金部负责人 -->
<c-col :span="24"> <c-col :span="24">
<c-form-item :label="$t('fttp.资金部负责人')" prop="fttp.usr.extkey"> <c-form-item :label="$t('fttp.资金部负责人')" prop="ftdgrp.rec.ownusr">
<c-input v-model="model.fttp.usr.extkey" maxlength="8"></c-input> <c-input v-model="model.ftdgrp.rec.ownusr" maxlength="8" disabled></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
<!-- S0000063 : 头寸调拨类型 --> <!-- S0000063 : 头寸调拨类型 -->
...@@ -53,6 +55,7 @@ ...@@ -53,6 +55,7 @@
prop="ftdgrp.cbs.max.cur" prop="ftdgrp.cbs.max.cur"
> >
<c-select <c-select
disabled
v-model="model.ftdgrp.cbs.max.cur" v-model="model.ftdgrp.cbs.max.cur"
:code="codes.curtxt" :code="codes.curtxt"
style="width: 100%" style="width: 100%"
...@@ -63,6 +66,7 @@ ...@@ -63,6 +66,7 @@
<c-col :span="14"> <c-col :span="14">
<c-form-item label-width="10px" prop="ftdgrp.cbs.max.amt"> <c-form-item label-width="10px" prop="ftdgrp.cbs.max.amt">
<c-input-currency <c-input-currency
disabled
v-model="model.ftdgrp.cbs.max.amt" v-model="model.ftdgrp.cbs.max.amt"
:currency="model.ftdgrp.cbs.max.cur" :currency="model.ftdgrp.cbs.max.cur"
></c-input-currency> ></c-input-currency>
...@@ -77,6 +81,7 @@ ...@@ -77,6 +81,7 @@
prop="ftdgrp.cbs.opn2.cur" prop="ftdgrp.cbs.opn2.cur"
> >
<c-select <c-select
disabled
v-model="model.ftdgrp.cbs.opn2.cur" v-model="model.ftdgrp.cbs.opn2.cur"
:code="codes.curtxt" :code="codes.curtxt"
maxlength="3" maxlength="3"
...@@ -86,6 +91,7 @@ ...@@ -86,6 +91,7 @@
<c-col :span="14"> <c-col :span="14">
<c-form-item label-width="10px" prop="ftdgrp.cbs.opn2.amt"> <c-form-item label-width="10px" prop="ftdgrp.cbs.opn2.amt">
<c-input-currency <c-input-currency
disabled
v-model="model.ftdgrp.cbs.opn2.amt" v-model="model.ftdgrp.cbs.opn2.amt"
:currency="model.ftdgrp.cbs.opn2.cur" :currency="model.ftdgrp.cbs.opn2.cur"
></c-input-currency> ></c-input-currency>
...@@ -95,9 +101,10 @@ ...@@ -95,9 +101,10 @@
<!-- S0000068 : 实际销账金额 --> <!-- S0000068 : 实际销账金额 -->
<c-col :span="24"> <c-col :span="24">
<c-col :span="10"> <c-col :span="10">
<c-form-item :label="$t('fttpcn.实际销账金额')" prop="setmod.doccur"> <c-form-item :label="$t('fttpcn.实际销账金额')" prop="ftdgrp.cbs.opn2.cur">
<c-select <c-select
v-model="model.setmod.doccur" disabled
v-model="model.ftdgrp.cbs.opn2.cur"
:code="codes.curtxt" :code="codes.curtxt"
maxlength="3" maxlength="3"
></c-select> ></c-select>
...@@ -126,7 +133,7 @@ ...@@ -126,7 +133,7 @@
<!-- S0000078 : 头寸调出行 --> <!-- S0000078 : 头寸调出行 -->
<c-col :span="24"> <c-col :span="24">
<el-card class="box-card"> <el-card class="box-card">
<c-ptap :model="model" :requiredExtkey="true" :disabledExtkey="false" :disabled="false" <c-ptap :model="model" :requiredExtkey="true" :disabledExtkey="true" :disabled="true"
:isAdrblk="true" :haveAdrLabel="true" :isAdrblk="true" :haveAdrLabel="true"
:isShowCard="false" :argadr="{title: '头寸调出行',grp: 'ftdgrp', rol: 'tro',}" :isShowCard="false" :argadr="{title: '头寸调出行',grp: 'ftdgrp', rol: 'tro',}"
:label="{labelExtkey:'头寸调出行',labelNam:'名称',labelAdrblk:'地址'}" ptytyp="B"> :label="{labelExtkey:'头寸调出行',labelNam:'名称',labelAdrblk:'地址'}" ptytyp="B">
...@@ -166,7 +173,7 @@ ...@@ -166,7 +173,7 @@
<!-- S0000066 : 头寸调入行 --> <!-- S0000066 : 头寸调入行 -->
<c-col :span="24"> <c-col :span="24">
<el-card class="box-card"> <el-card class="box-card">
<c-ptap :model="model" :requiredExtkey="true" :disabledExtkey="false" :disabled="false" <c-ptap :model="model" :requiredExtkey="true" :disabledExtkey="true" :disabled="true"
:isAdrblk="true" :haveAdrLabel="true" :isAdrblk="true" :haveAdrLabel="true"
:isShowCard="false" :argadr="{title: '头寸调入行',grp: 'ftdgrp', rol: 'tri',}" :isShowCard="false" :argadr="{title: '头寸调入行',grp: 'ftdgrp', rol: 'tri',}"
:label="{labelExtkey:'头寸调入行',labelNam:'名称',labelAdrblk:'地址'}" ptytyp="B"> :label="{labelExtkey:'头寸调入行',labelNam:'名称',labelAdrblk:'地址'}" ptytyp="B">
...@@ -210,11 +217,11 @@ ...@@ -210,11 +217,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: [event], mixins: [event,commonProcess],
data() { data() {
return {}; return {};
}, },
......
...@@ -49,6 +49,7 @@ import event from "../event"; ...@@ -49,6 +49,7 @@ import event from "../event";
import operationFunc from "~/mixin/operationFunc"; import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend"; import commonDepend from "~/mixin/commonDepend";
import buildFn from "../event/buildCommons.js"; import buildFn from "../event/buildCommons.js";
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/check.js"; import Check from "../model/check.js";
import Canp from "./Canp"; import Canp from "./Canp";
...@@ -67,14 +68,14 @@ export default { ...@@ -67,14 +68,14 @@ export default {
root: this, root: this,
}; };
}, },
mixins: [operationFunc, commonDepend, event, buildFn], mixins: [operationFunc, commonDepend, event, buildFn,commonProcess],
data() { data() {
return { return {
tabVal: "canp", tabVal: "canp",
trnName: "fttpcn", trnName: "fttpcn",
trnType: "", trnType: "",
model: new Fttpcn().data, model: new Fttpcn().data,
rules: Check, rules: {},
codes: { ...CodeTable }, codes: { ...CodeTable },
}; };
}, },
...@@ -88,13 +89,15 @@ export default { ...@@ -88,13 +89,15 @@ export default {
}, },
created: async function () { created: async function () {
console.log("进入fttpcn交易"); console.log("进入fttpcn交易");
let rtnmsg = {}; // await this.init({}) let params = {
if (rtnmsg.respCode == SUCCESS) { transName: this.trnName,
this.updateModel(rtnmsg.data); ftdgrp: {
//TODO 处理数据逻辑 rec: {
} else { inr: this.$route.query.inr || "",
this.$notify.error({ title: "错误", message: "服务请求失败!" }); },
} },
};
this.init(params)
}, },
}; };
</script> </script>
......
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