Commit aa26aa37 by zhoujunpeng

fttpcm修改和fttpcn交易

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