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 </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-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="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"
</el-tab-pane> label-width="150px"
</c-tabs> label-position="right"
</el-form> 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> </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() {
return {
root: this,
};
},
mixins: [operationFunc, commonDepend, event, buildFn],
data() {
return {
tabVal: "canp",
trnName: "fttpcn",
trnType: "",
model: new Fttpcn().data,
rules: Check,
codes: { ...CodeTable },
};
},
methods: {
myTabClick(tab) {
this.tabClick(tab);
/**
* do it yourself
**/
}, },
provide() { },
return { created: async function () {
root: this console.log("进入fttpcn交易");
} let rtnmsg = {}; // await this.init({})
}, if (rtnmsg.respCode == SUCCESS) {
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 this.updateModel(rtnmsg.data);
data(){ //TODO 处理数据逻辑
return { } else {
tabVal: "canp", this.$notify.error({ title: "错误", message: "服务请求失败!" });
trnName: "fttpcn",
trnType: "",
model: new Fttpcn().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
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: '服务请求失败!'});
}
} }
} },
};
</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