Commit afa8eff4 by liushikai

头寸调拨销账界面优化

parent 8daf9e5c
......@@ -30,11 +30,11 @@
<c-col :span="24">
<c-form-item
:label="$t('fttp.Resp User(Treasury)')"
prop="ftdgrp.rec.ownusr"
prop="fttp.usr.extkey"
>
<c-fullbox>
<c-input
v-model="model.ftdgrp.rec.ownusr"
v-model="model.fttp.usr.extkey"
maxlength="8"
></c-input>
<template slot="footer">
......@@ -68,22 +68,8 @@
:label="$t('fttp.Position Amount')"
prop="ftdgrp.cbs.max.cur"
>
<c-fullbox>
<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 v-model="model.ftdgrp.cbs.max.cur" style="width: 100%">
</c-select>
</c-fullbox>
</c-form-item>
</c-col>
<c-col :span="14">
......@@ -128,9 +114,9 @@
</c-form-item>
</c-col>
<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-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">
<c-button size="small" style="margin-left: 5px" type="primary">
i
......@@ -147,7 +133,6 @@
<c-input
v-model="model.ftdgrp.ben.pts.nam"
maxlength="40"
disabled
></c-input>
</c-form-item>
</c-col>
......@@ -174,9 +159,9 @@
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="" prop="fttp.usr.extkey">
<c-form-item label="" prop="ftdgrp.tro.pts.extkey">
<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">
<c-button size="small" style="margin-left: 5px" type="primary">
i
......@@ -214,10 +199,10 @@
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item prop="ftdgrp.tro.pts.extkey">
<c-form-item prop="ftdgrp.tri.pts.extkey">
<c-fullbox>
<c-input
v-model="model.ftdgrp.tro.pts.extkey"
v-model="model.ftdgrp.tri.pts.extkey"
maxlength="16"
></c-input>
<template slot="footer">
......@@ -232,7 +217,7 @@
</c-form-item>
</c-col>
<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
type="textarea"
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"
/**
* Fttpcn Check规则
*/
let checkObj = {
"canamt" :null,
"ftdgrp.cbs.max.cur" :null,
"ftdgrp.cbs.max.amt" :null,
"fttp.usr.extkey" :null,
"ftdgrp.tro.pts.adrblk" :null,
"ftdgrp.tri.pts.extkey" :null,
"ftdgrp.tri.pts.adrblk" :null,
"ftdgrp.tro.pts.extkey" :null,
"ftdgrp.rec.fttyp" :null,
"mtabut.clsflg" :null,
}
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"}
],
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
"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"}
],
}
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 Pts from "~/page/Model/Common/Pts"
import Pub from "~/components/business/commonModel/index.js";
export default class Fttpcn{
constructor () {
......@@ -57,7 +58,10 @@ export default class Fttpcn{
mtabut:{
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>
<div class="eibs-tab">
<!-- S0000060 : 头寸调拨业务参考号 -->
<c-col :span="12">
<c-form-item :label="$t('fttpcn.S0000060')" prop="ftdgrp.rec.ownref">
<c-input v-model="model.ftdgrp.rec.ownref" maxlength="16" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000060')"></c-input>
</c-form-item>
</c-col>
<!-- S0000061 : 名称 -->
<c-col :span="12">
<c-form-item :label="$t('fttpcn.S0000061')" prop="ftdgrp.rec.nam">
<c-input v-model="model.ftdgrp.rec.nam" maxlength="40" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000061')"></c-input>
</c-form-item>
</c-col>
<!-- 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>
<!-- S0000076 : 头寸调拨业务参考号 -->
<c-col :span="12">
<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>
</template>
</c-fullbox>
</c-form-item>
</c-col>
<!-- S0000062 : 资金部负责人 -->
<!-- S0000077 : 名称 -->
<c-col :span="12">
<c-form-item :label="$t('fttpcn.S0000062')" prop="fttp.usr.extkey">
<c-input v-model="model.fttp.usr.extkey" maxlength="8" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000062')"></c-input>
<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>
<c-col :span="12">
<c-form-item label="Drag Drop Sender" prop="fttp.trop.ptsget.sdamod.dadsnd">
<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 :span="24">
<el-divider></el-divider>
</c-col>
<c-col :span="12">
<c-form-item label="External Key of Address" prop="ftdgrp.tro.pts.extkey">
<c-input v-model="model.ftdgrp.tro.pts.extkey" maxlength="16" :placeholder="$t('other.please_enter')+'External Key of Address'"></c-input>
<!-- 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>
</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 : 头寸调拨类型 -->
<c-col :span="12">
<el-form-item :label="$t('fttpcn.S0000063')" prop="ftdgrp.rec.fttyp">
<c-select v-model="model.ftdgrp.rec.fttyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000063')">
<c-col :span="24">
<c-form-item :label="$t('fttpcn.头寸调拨类型')" prop="ftdgrp.rec.fttyp">
<c-select v-model="model.ftdgrp.rec.fttyp" style="width: 100%">
</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-col>
<!-- S0000064 : 头寸调拨金额 -->
<c-col :span="12">
<el-form-item :label="$t('fttpcn.S0000064')" prop="ftdgrp.cbs.max.cur">
<c-select v-model="model.ftdgrp.cbs.max.cur" style="width:100%" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000064')">
<!-- S0000083 : 头寸调拨金额 -->
<c-col :span="24">
<c-col :span="10">
<c-form-item
:label="$t('fttp.头寸调拨金额')"
prop="ftdgrp.cbs.max.cur"
>
<c-select v-model="model.ftdgrp.cbs.max.cur" style="width: 100%">
</c-select>
</el-form-item>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item :label="$t('fttpcn.S0000064')" prop="ftdgrp.cbs.max.amt">
<c-input v-model="model.ftdgrp.cbs.max.amt" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000064')"></c-input>
<c-col :span="14">
<c-form-item label-width="10px" prop="ftdgrp.cbs.max.amt">
<c-input v-model="model.ftdgrp.cbs.max.amt"></c-input>
</c-form-item>
</c-col>
</c-col>
<!-- S0000067 : 待销账金额 -->
<c-col :span="12">
<c-form-item :label="$t('fttpcn.S0000067')" prop="ftdgrp.cbs.opn2.cur">
<c-input v-model="model.ftdgrp.cbs.opn2.cur" maxlength="3" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000067')"></c-input>
<c-col :span="24">
<c-col :span="10">
<c-form-item
: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-col>
<c-col :span="12">
<c-form-item label="Balance" prop="ftdgrp.cbs.opn2.amt">
<c-input v-model="model.ftdgrp.cbs.opn2.amt" :placeholder="$t('other.please_enter')+'Balance'"></c-input>
<c-col :span="14">
<c-form-item label-width="10px" prop="ftdgrp.cbs.opn2.amt">
<c-input v-model="model.ftdgrp.cbs.opn2.amt"></c-input>
</c-form-item>
</c-col>
</c-col>
<!-- S0000068 : 实际销账金额 -->
<c-col :span="12">
<c-form-item :label="$t('fttpcn.S0000068')" prop="setmod.doccur">
<c-input v-model="model.setmod.doccur" maxlength="3" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000068')"></c-input>
<c-col :span="24">
<c-col :span="10">
<c-form-item :label="$t('fttpcn.实际销账金额')" prop="setmod.doccur">
<c-select v-model="model.setmod.doccur" maxlength="3"></c-select>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Cancellation Amount" prop="canamt">
<c-input v-model="model.canamt" :placeholder="$t('other.please_enter')+'Cancellation Amount'"></c-input>
<c-col :span="14">
<c-form-item label-width="10px" prop="canamt">
<c-input v-model="model.canamt"></c-input>
</c-form-item>
</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 :span="12">
<c-form-item label="Drag Drop Sender" prop="fttp.trip.ptsget.sdamod.dadsnd">
<c-input v-model="model.fttp.trip.ptsget.sdamod.dadsnd" :placeholder="$t('other.please_enter')+'Drag Drop Sender'"></c-input>
</c-form-item>
<c-col :span="24" style="display:inline-flex;padding-left: 150px;">
<c-checkbox v-model="model.mtabut.clsflg">{{
$t("mtabut.业务闭卷")
}}</c-checkbox>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.mtabut.clsflg">{{$t('mtabut.CF000215')}}</c-checkbox>
</c-col>
<c-col :span="12">
<c-form-item label="External Key of Address" prop="ftdgrp.tri.pts.extkey">
<c-input v-model="model.ftdgrp.tri.pts.extkey" maxlength="16" :placeholder="$t('other.please_enter')+'External Key of Address'"></c-input>
<!-- S0000078 : 头寸调出行 -->
<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-col>
<c-col :span="12">
<c-form-item label="" prop="fttp.trip.ptsget.sdamod.seainf">
<c-input v-model="model.fttp.trip.ptsget.sdamod.seainf" :placeholder="$t('other.please_enter')+''"></c-input>
<c-col :span="24">
<c-form-item prop="ftdgrp.tro.pts.extkey">
<c-fullbox>
<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-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTripDet">
{{$t('ptsp.CF000081')}}
</c-button>
<c-col :span="24">
<c-form-item label="" prop="ftdgrp.tro.pts.adrblk">
<c-input
type="textarea"
v-model="model.ftdgrp.tro.pts.adrblk"
:rows="3"
maxlength="35"
show-word-limit
></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Address Block" prop="ftdgrp.tri.pts.adrblk">
<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>
<!-- S0000066 : 头寸调入行 -->
<c-col :span="24">
<c-form-item :label="$t('fttpcn.头寸调入行')" prop="ftdgrp.tri.pts.ref">
<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-col>
<c-col :span="12">
<c-form-item label="Chinese address" prop="ftdgrp.tri.dbfadrblkcn">
<c-input type="textarea" v-model="model.ftdgrp.tri.dbfadrblkcn" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Chinese address'" ></c-input>
<c-col :span="24">
<c-form-item label="" prop="ftdgrp.tri.pts.adrblk">
<c-input
type="textarea"
v-model="model.ftdgrp.tri.pts.adrblk"
:rows="3"
maxlength="35"
show-word-limit
></c-input>
</c-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "../model/Event"
import Api from "~/service/Api";
import event from "../event";
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
methods:{...Event},
created:function(){
}
}
methods: {},
created: function () {},
};
</script>
<style>
</style>
<template>
<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-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--fttpcn PD000050 Cancellation -->
<el-tab-pane :label="$t('fttpcn.PD000050')" name="canp">
<m-canp :model="model" :codes="codes"/>
<c-page title="寸调拨销账">
<el-form
:model="model"
:rules="rules"
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>
</c-tabs>
</el-form>
<c-function-btn
:handleCheck="handleCheck"
:handleStash="handleStash"
:handleSubmit="handleSubmit"
@handleSureWarning="handleSureWarning"
ref="commonBtn"
></c-function-btn>
</c-page>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Fttpcn from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Canp from "./Canp"
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Fttpcn from "../model";
import event from "../event";
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import buildFn from "../event/buildCommons.js";
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 {
name: "Fttpcn",
components:{
"m-canp" : Canp,
components: {
"m-canp": Canp,
"m-setpan": Setpan,
"m-docpan": Docpan,
},
provide() {
return {
root: this
}
root: this,
};
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
mixins: [operationFunc, commonDepend, event, buildFn],
data() {
return {
tabVal: "canp",
trnName: "fttpcn",
trnType: "",
model: new Fttpcn().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
rules: Check,
codes: { ...CodeTable },
};
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
methods: {
myTabClick(tab) {
this.tabClick(tab);
/**
* do it yourself
**/
}
},
created:async function(){
},
created: async function () {
console.log("进入fttpcn交易");
let rtnmsg = {}; // await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
}
}
},
};
</script>
<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