Commit afa8eff4 by liushikai

头寸调拨销账界面优化

parent 8daf9e5c
...@@ -30,11 +30,11 @@ ...@@ -30,11 +30,11 @@
<c-col :span="24"> <c-col :span="24">
<c-form-item <c-form-item
:label="$t('fttp.Resp User(Treasury)')" :label="$t('fttp.Resp User(Treasury)')"
prop="ftdgrp.rec.ownusr" prop="fttp.usr.extkey"
> >
<c-fullbox> <c-fullbox>
<c-input <c-input
v-model="model.ftdgrp.rec.ownusr" v-model="model.fttp.usr.extkey"
maxlength="8" maxlength="8"
></c-input> ></c-input>
<template slot="footer"> <template slot="footer">
...@@ -68,22 +68,8 @@ ...@@ -68,22 +68,8 @@
:label="$t('fttp.Position Amount')" :label="$t('fttp.Position Amount')"
prop="ftdgrp.cbs.max.cur" prop="ftdgrp.cbs.max.cur"
> >
<c-fullbox> <c-select v-model="model.ftdgrp.cbs.max.cur" style="width: 100%">
<c-select
v-model="model.ftdgrp.cbs.max.cur"
style="width: 100%"
>
<template slot="footer">
<c-button
size="small"
style="margin-left: 5px"
type="primary"
>
i
</c-button>
</template>
</c-select> </c-select>
</c-fullbox>
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="14"> <c-col :span="14">
...@@ -128,9 +114,9 @@ ...@@ -128,9 +114,9 @@
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-form-item :label="$t('fttp.Beneficiary')" prop="fttp.benact"> <c-form-item :label="$t('fttp.Beneficiary')" prop="ftdgrp.ben.pts.extkey">
<c-fullbox> <c-fullbox>
<c-input v-model="model.fttp.benact" maxlength="34"></c-input> <c-input v-model="model.ftdgrp.ben.pts.extkey" maxlength="34"></c-input>
<template slot="footer"> <template slot="footer">
<c-button size="small" style="margin-left: 5px" type="primary"> <c-button size="small" style="margin-left: 5px" type="primary">
i i
...@@ -147,7 +133,6 @@ ...@@ -147,7 +133,6 @@
<c-input <c-input
v-model="model.ftdgrp.ben.pts.nam" v-model="model.ftdgrp.ben.pts.nam"
maxlength="40" maxlength="40"
disabled
></c-input> ></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
...@@ -174,9 +159,9 @@ ...@@ -174,9 +159,9 @@
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-form-item label="" prop="fttp.usr.extkey"> <c-form-item label="" prop="ftdgrp.tro.pts.extkey">
<c-fullbox> <c-fullbox>
<c-input v-model="model.fttp.usr.extkey" maxlength="8"></c-input> <c-input v-model="model.ftdgrp.tro.pts.extkey" maxlength="8"></c-input>
<template slot="footer"> <template slot="footer">
<c-button size="small" style="margin-left: 5px" type="primary"> <c-button size="small" style="margin-left: 5px" type="primary">
i i
...@@ -214,10 +199,10 @@ ...@@ -214,10 +199,10 @@
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-form-item prop="ftdgrp.tro.pts.extkey"> <c-form-item prop="ftdgrp.tri.pts.extkey">
<c-fullbox> <c-fullbox>
<c-input <c-input
v-model="model.ftdgrp.tro.pts.extkey" v-model="model.ftdgrp.tri.pts.extkey"
maxlength="16" maxlength="16"
></c-input> ></c-input>
<template slot="footer"> <template slot="footer">
...@@ -232,7 +217,7 @@ ...@@ -232,7 +217,7 @@
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-form-item label="Address Block" prop="ftdgrp.tri.pts.adrblk"> <c-form-item prop="ftdgrp.tri.pts.adrblk">
<c-input <c-input
type="textarea" type="textarea"
v-model="model.ftdgrp.tri.pts.adrblk" v-model="model.ftdgrp.tri.pts.adrblk"
......
import Utils from "~/utils";
export default {
methods: {
buildPtspta(ptsptaObj) {
let pts = ptsptaObj.pts;
return {
rol: pts.rol,
name: pts.nam,
ptyinr: pts.ptyinr,
ptainr: pts.ptainr,
extkey: pts.extkey,
dftdsp: pts.dftdsp,
dftcur: pts.dftcur,
dftact: pts.dftact,
dftfeecur: pts.dftfeecur,
dftactptainr: pts.dftactptainr,
glggrpflg: pts.glggrpflg,
adrblk: pts.adrblk,
pts,
};
},
buildCommonData(model, trnName) {
let ptsptaList = [];
return {
rec: {
objtyp: "FXT",
},
cbsMap: {},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL",
};
},
},
};
import commonFunctions from '~/mixin/commonFunctions.js';
import Api from '~/service/Api';
export default {
mixins: [commonFunctions],
methods: {
async 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: '服务请求失败!' });
}
},
}
}
\ No newline at end of file
...@@ -3,23 +3,94 @@ import Utils from "~/utils" ...@@ -3,23 +3,94 @@ import Utils from "~/utils"
/** /**
* Fttpcn Check规则 * Fttpcn Check规则
*/ */
let checkObj = { export default {
"canamt" :null, "ftdgrp.rec.ownref":[
"ftdgrp.cbs.max.cur" :null, {type: "string", required: false, message: "必输项"},
"ftdgrp.cbs.max.amt" :null, {max: 16,message:"长度不能超过16"}
"fttp.usr.extkey" :null, ],
"ftdgrp.tro.pts.adrblk" :null, "ftdgrp.rec.nam":[
"ftdgrp.tri.pts.extkey" :null, {type: "string", required: false, message: "必输项"},
"ftdgrp.tri.pts.adrblk" :null, {max: 40,message:"长度不能超过40"}
"ftdgrp.tro.pts.extkey" :null, ],
"ftdgrp.rec.fttyp" :null, "ftdgrp.tro.pts.ref":[
"mtabut.clsflg" :null, {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"}
],
"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"}
],
for (const key in checkObj) { "ftdgrp.tri.pts.adrblk":[
if (Object.hasOwnProperty.call(checkObj, key)) { {type: "string", required: true, message: "必输项"},
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key) {max: 35,message:"长度不能超过35"}
} ],
"ftdgrp.tri.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
} }
export default checkObj
/**
* Fttpcn Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"ftdgrp.tri.dbfadrblkcn" :Utils.defaultFunction,
"ftdgrp.tri.pts.adrblk" :Utils.defaultFunction,
"ftdgrp.tro.pts.adrblk" :Utils.defaultFunction,
"fttp.usr.extkey" :Utils.defaultFunction,
"ftdgrp.tri.pts.extkey" :Utils.defaultFunction,
"ftdgrp.tro.pts.extkey" :Utils.defaultFunction,
"setmod.doccur" :Utils.defaultFunction,
"ftdgrp.tro.dbfadrblkcn" :Utils.defaultFunction,
"ftdgrp.cbs.max.cur" :Utils.defaultFunction,
"ftdgrp.rec.ownref" :Utils.defaultFunction,
"ftdgrp.rec.fttyp" :Utils.defaultFunction,
"ftdgrp.cbs.max.amt" :Utils.defaultFunction,
"canamt" :Utils.defaultFunction,
"ftdgrp.cbs.opn2.amt" :Utils.defaultFunction,
"mtabut.clsflg" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
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: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"ftdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"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"}
],
"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"}
],
}
\ 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";
export default class Fttpcn{ export default class Fttpcn{
constructor () { constructor () {
...@@ -57,7 +58,10 @@ export default class Fttpcn{ ...@@ -57,7 +58,10 @@ export default class Fttpcn{
mtabut:{ mtabut:{
clsflg:"", // Close Flag .mtabut.clsflg clsflg:"", // Close Flag .mtabut.clsflg
}, },
pageId: "" // ctx的key pageId: "", // ctx的key
setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia
} }
} }
} }
\ No newline at end of file
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<!-- S0000060 : 头寸调拨业务参考号 --> <!-- S0000076 : 头寸调拨业务参考号 -->
<c-col :span="12">
<c-col :span="12"> <c-form-item
<c-form-item :label="$t('fttpcn.S0000060')" prop="ftdgrp.rec.ownref"> :label="$t('fttpcm.头寸调拨业务参考号')"
<c-input v-model="model.ftdgrp.rec.ownref" maxlength="16" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000060')"></c-input> prop="ftdgrp.rec.ownref"
</c-form-item> >
</c-col> <c-fullbox>
<!-- S0000061 : 名称 --> <c-input v-model="model.ftdgrp.rec.ownref" maxlength="16"></c-input>
<template slot="footer">
<c-col :span="12"> <c-button size="small" style="margin-left: 5px" type="primary">
<c-form-item :label="$t('fttpcn.S0000061')" prop="ftdgrp.rec.nam"> Get Ref
<c-input v-model="model.ftdgrp.rec.nam" maxlength="40" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000061')"></c-input> </c-button>
</c-form-item> </template>
</c-col> </c-fullbox>
<!-- S0000065 : 头寸调出行 -->
<c-col :span="12">
<c-form-item :label="$t('fttpcn.S0000065')" prop="ftdgrp.tro.pts.ref">
<c-input v-model="model.ftdgrp.tro.pts.ref" maxlength="20" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000065')"></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
<!-- S0000062 : 资金部负责人 --> <!-- S0000077 : 名称 -->
<c-col :span="12"> <c-col :span="12">
<c-form-item :label="$t('fttpcn.S0000062')" prop="fttp.usr.extkey"> <c-form-item :label="$t('fttp.名称')" prop="ftdgrp.rec.nam">
<c-input v-model="model.fttp.usr.extkey" maxlength="8" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000062')"></c-input> <c-input v-model="model.ftdgrp.rec.nam" maxlength="40"></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="24">
<c-form-item label="Drag Drop Sender" prop="fttp.trop.ptsget.sdamod.dadsnd"> <el-divider></el-divider>
<c-input v-model="model.fttp.trop.ptsget.sdamod.dadsnd" :placeholder="$t('other.please_enter')+'Drag Drop Sender'"></c-input>
</c-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<c-form-item label="External Key of Address" prop="ftdgrp.tro.pts.extkey"> <!-- S0000080 : 资金部负责人 -->
<c-input v-model="model.ftdgrp.tro.pts.extkey" maxlength="16" :placeholder="$t('other.please_enter')+'External Key of Address'"></c-input> <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> </c-form-item>
</c-col> </c-col>
<c-col :span="12">
<c-form-item label="" prop="fttp.trop.ptsget.sdamod.seainf">
<c-input v-model="model.fttp.trop.ptsget.sdamod.seainf" :placeholder="$t('other.please_enter')+''"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTropDet">
{{$t('ptsp.CF000081')}}
</c-button>
</c-col>
<!-- S0000063 : 头寸调拨类型 --> <!-- S0000063 : 头寸调拨类型 -->
<c-col :span="24">
<c-col :span="12"> <c-form-item :label="$t('fttpcn.头寸调拨类型')" prop="ftdgrp.rec.fttyp">
<el-form-item :label="$t('fttpcn.S0000063')" prop="ftdgrp.rec.fttyp"> <c-select v-model="model.ftdgrp.rec.fttyp" style="width: 100%">
<c-select v-model="model.ftdgrp.rec.fttyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000063')">
</c-select> </c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Address Block" prop="ftdgrp.tro.pts.adrblk">
<c-input type="textarea" v-model="model.ftdgrp.tro.pts.adrblk" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Address Block'" ></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Chinese address" prop="ftdgrp.tro.dbfadrblkcn">
<c-input type="textarea" v-model="model.ftdgrp.tro.dbfadrblkcn" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Chinese address'" ></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
<!-- S0000064 : 头寸调拨金额 --> <!-- S0000083 : 头寸调拨金额 -->
<c-col :span="24">
<c-col :span="12"> <c-col :span="10">
<el-form-item :label="$t('fttpcn.S0000064')" prop="ftdgrp.cbs.max.cur"> <c-form-item
<c-select v-model="model.ftdgrp.cbs.max.cur" style="width:100%" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000064')"> :label="$t('fttp.头寸调拨金额')"
prop="ftdgrp.cbs.max.cur"
>
<c-select v-model="model.ftdgrp.cbs.max.cur" style="width: 100%">
</c-select> </c-select>
</el-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="14">
<c-col :span="12"> <c-form-item label-width="10px" prop="ftdgrp.cbs.max.amt">
<c-form-item :label="$t('fttpcn.S0000064')" prop="ftdgrp.cbs.max.amt"> <c-input v-model="model.ftdgrp.cbs.max.amt"></c-input>
<c-input v-model="model.ftdgrp.cbs.max.amt" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000064')"></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
</c-col>
<!-- S0000067 : 待销账金额 --> <!-- S0000067 : 待销账金额 -->
<c-col :span="24">
<c-col :span="12"> <c-col :span="10">
<c-form-item :label="$t('fttpcn.S0000067')" prop="ftdgrp.cbs.opn2.cur"> <c-form-item
<c-input v-model="model.ftdgrp.cbs.opn2.cur" maxlength="3" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000067')"></c-input> :label="$t('fttpcn.待销账金额')"
prop="ftdgrp.cbs.opn2.cur"
>
<c-select
v-model="model.ftdgrp.cbs.opn2.cur"
maxlength="3"
></c-select>
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="14">
<c-col :span="12"> <c-form-item label-width="10px" prop="ftdgrp.cbs.opn2.amt">
<c-form-item label="Balance" prop="ftdgrp.cbs.opn2.amt"> <c-input v-model="model.ftdgrp.cbs.opn2.amt"></c-input>
<c-input v-model="model.ftdgrp.cbs.opn2.amt" :placeholder="$t('other.please_enter')+'Balance'"></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
</c-col>
<!-- S0000068 : 实际销账金额 --> <!-- S0000068 : 实际销账金额 -->
<c-col :span="24">
<c-col :span="12"> <c-col :span="10">
<c-form-item :label="$t('fttpcn.S0000068')" prop="setmod.doccur"> <c-form-item :label="$t('fttpcn.实际销账金额')" prop="setmod.doccur">
<c-input v-model="model.setmod.doccur" maxlength="3" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000068')"></c-input> <c-select v-model="model.setmod.doccur" maxlength="3"></c-select>
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="14">
<c-col :span="12"> <c-form-item label-width="10px" prop="canamt">
<c-form-item label="Cancellation Amount" prop="canamt"> <c-input v-model="model.canamt"></c-input>
<c-input v-model="model.canamt" :placeholder="$t('other.please_enter')+'Cancellation Amount'"></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
<!-- S0000066 : 头寸调入行 -->
<c-col :span="12">
<c-form-item :label="$t('fttpcn.S0000066')" prop="ftdgrp.tri.pts.ref">
<c-input v-model="model.ftdgrp.tri.pts.ref" maxlength="20" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000066')"></c-input>
</c-form-item>
</c-col> </c-col>
<c-col :span="24" style="display:inline-flex;padding-left: 150px;">
<c-col :span="12"> <c-checkbox v-model="model.mtabut.clsflg">{{
<c-form-item label="Drag Drop Sender" prop="fttp.trip.ptsget.sdamod.dadsnd"> $t("mtabut.业务闭卷")
<c-input v-model="model.fttp.trip.ptsget.sdamod.dadsnd" :placeholder="$t('other.please_enter')+'Drag Drop Sender'"></c-input> }}</c-checkbox>
</c-form-item>
</c-col> </c-col>
<c-col :span="12">
<c-checkbox v-model="model.mtabut.clsflg">{{$t('mtabut.CF000215')}}</c-checkbox>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<c-form-item label="External Key of Address" prop="ftdgrp.tri.pts.extkey"> <!-- S0000078 : 头寸调出行 -->
<c-input v-model="model.ftdgrp.tri.pts.extkey" maxlength="16" :placeholder="$t('other.please_enter')+'External Key of Address'"></c-input> <c-col :span="24">
<c-form-item :label="$t('fttp.头寸调出行')" prop="ftdgrp.tro.pts.ref">
<c-input v-model="model.ftdgrp.tro.pts.ref" maxlength="20"></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="24">
<c-col :span="12"> <c-form-item prop="ftdgrp.tro.pts.extkey">
<c-form-item label="" prop="fttp.trip.ptsget.sdamod.seainf"> <c-fullbox>
<c-input v-model="model.fttp.trip.ptsget.sdamod.seainf" :placeholder="$t('other.please_enter')+''"></c-input> <c-input
v-model="model.ftdgrp.tro.pts.extkey"
maxlength="16"
></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 5px" type="primary">
i
</c-button>
<c-button size="small" style="margin-left: 5px" type="primary">
明细
</c-button>
</template>
</c-fullbox>
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="24">
<c-col :span="12"> <c-form-item label="" prop="ftdgrp.tro.pts.adrblk">
<c-button size="small" type="primary" @click="onTripDet"> <c-input
{{$t('ptsp.CF000081')}} type="textarea"
</c-button> v-model="model.ftdgrp.tro.pts.adrblk"
:rows="3"
maxlength="35"
show-word-limit
></c-input>
</c-form-item>
</c-col> </c-col>
<!-- S0000066 : 头寸调入行 -->
<c-col :span="12"> <c-col :span="24">
<c-form-item label="Address Block" prop="ftdgrp.tri.pts.adrblk"> <c-form-item :label="$t('fttpcn.头寸调入行')" prop="ftdgrp.tri.pts.ref">
<c-input type="textarea" v-model="model.ftdgrp.tri.pts.adrblk" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Address Block'" ></c-input> <c-input v-model="model.ftdgrp.tri.pts.ref" maxlength="20"></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item prop="ftdgrp.tri.pts.extkey">
<c-fullbox>
<c-input
v-model="model.ftdgrp.tri.pts.extkey"
maxlength="16"
></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 5px" type="primary">
i
</c-button>
<c-button size="small" style="margin-left: 5px" type="primary">
明细
</c-button>
</template>
</c-fullbox>
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="24">
<c-col :span="12"> <c-form-item label="" prop="ftdgrp.tri.pts.adrblk">
<c-form-item label="Chinese address" prop="ftdgrp.tri.dbfadrblkcn"> <c-input
<c-input type="textarea" v-model="model.ftdgrp.tri.dbfadrblkcn" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Chinese address'" ></c-input> type="textarea"
v-model="model.ftdgrp.tri.pts.adrblk"
:rows="3"
maxlength="35"
show-word-limit
></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
</c-col>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import event from "../event";
import CodeTable from "~/config/CodeTable"
import Event from "../model/Event"
export default { export default {
inject: ['root'], inject: ["root"],
props:["model","codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data(){ data() {
return { return {};
}
}, },
methods:{...Event}, methods: {},
created:function(){ created: function () {},
};
}
}
</script> </script>
<style> <style>
</style> </style>
<template> <template>
<div class="eContainer"> <div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false"> <c-page title="寸调拨销账">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> <el-form
<!--fttpcn PD000050 Cancellation --> :model="model"
<el-tab-pane :label="$t('fttpcn.PD000050')" name="canp"> :rules="rules"
<m-canp :model="model" :codes="codes"/> ref="modelForm"
label-width="150px"
label-position="right"
size="small"
:validate-on-rule-change="false"
>
<c-tabs
v-model="tabVal"
ref="elment"
type="card"
@tab-click="myTabClick"
>
<el-tab-pane label="概要" name="canp">
<m-canp :model="model" :codes="codes" />
</el-tab-pane>
<el-tab-pane label="费用/账务" name="setpan">
<c-content>
<m-setpan :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane label="报文/面函" name="docpan">
<c-content>
<m-docpan :codes="codes" :model="model" />
</c-content>
</el-tab-pane> </el-tab-pane>
</c-tabs> </c-tabs>
</el-form> </el-form>
<c-function-btn
:handleCheck="handleCheck"
:handleStash="handleStash"
:handleSubmit="handleSubmit"
@handleSureWarning="handleSureWarning"
ref="commonBtn"
></c-function-btn>
</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 Fttpcn from "../model" import Fttpcn from "../model";
import commonProcess from "~/mixin/commonProcess" import event from "../event";
import Check from "../model/Check" import operationFunc from "~/mixin/operationFunc";
import Default from "../model/Default" import commonDepend from "~/mixin/commonDepend";
import Pattern from "../model/Pattern" import buildFn from "../event/buildCommons.js";
import Canp from "./Canp" import Check from "../model/check";
import Canp from "./Canp";
import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
export default { export default {
name: "Fttpcn", name: "Fttpcn",
components:{ components: {
"m-canp" : Canp, "m-canp": Canp,
"m-setpan": Setpan,
"m-docpan": Docpan,
}, },
provide() { provide() {
return { return {
root: this root: this,
} };
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [operationFunc, commonDepend, event, buildFn],
data(){ data() {
return { return {
tabVal: "canp", tabVal: "canp",
trnName: "fttpcn", trnName: "fttpcn",
trnType: "", trnType: "",
model: new Fttpcn().data, model: new Fttpcn().data,
checkRules: Check, rules: Check,
defaultRules: Default, codes: { ...CodeTable },
pattern: Pattern, };
rules: null,
codes: {
}, },
} methods: {
}, myTabClick(tab) {
methods:{ this.tabClick(tab);
myTabClick(tab){
this.tabClick(tab)
/** /**
* do it yourself * do it yourself
**/ **/
}
}, },
created:async function(){ },
created: async function () {
console.log("进入fttpcn交易"); console.log("进入fttpcn交易");
let rtnmsg = {}; // await this.init({}) let rtnmsg = {}; // await this.init({})
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{ this.updateModel(rtnmsg.data);
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} else {
} this.$notify.error({ title: "错误", message: "服务请求失败!" });
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
} },
} };
</script> </script>
<style> <style>
</style> </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