Commit 8daf9e5c by liushikai

头寸调拨登记确认界面优化

parent 5a6867ec
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onFttpButgetref(){
let rtnmsg = await this.executeRule("fttp.butgetref")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
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: '服务请求失败!'});
}
},
async onBenpDet(){
let rtnmsg = await this.executeRule("benp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
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 onFttpButgetref() {
let rtnmsg = await this.executeRule("fttp.butgetref")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
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: '服务请求失败!' });
}
},
async onBenpDet() {
let rtnmsg = await this.executeRule("benp.det")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
}
}
\ No newline at end of file
...@@ -3,23 +3,137 @@ import Utils from "~/utils" ...@@ -3,23 +3,137 @@ import Utils from "~/utils"
/** /**
* Fttpcm Check规则 * Fttpcm Check规则
*/ */
let checkObj = { export default {
"ftdgrp.rec.opndat" :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.rec.valdat" :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.ben.pts.extkey" :null, ],
"ftdgrp.tro.pts.extkey" :null, "ftdgrp.tro.pts.ref":[
} {type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"ftdgrp.rec.ownusr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"fttp.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"fttp.usrget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"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.rec.usr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"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.rec.opndat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"ftdgrp.rec.valdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"ftdgrp.blk.remark":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"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"}
],
"fttp.benp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"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"}
],
"ftdgrp.ben.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.benp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.ben.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"fttp.benact":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
for (const key in checkObj) { "ftdgrp.rec.ownref":[
if (Object.hasOwnProperty.call(checkObj, key)) { {type: "string", required: false, message: "必输项"},
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key) {max: 16,message:"长度不能超过16"}
} ],
"relref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"narblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftt199l1blk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
} }
export default checkObj
/**
* Fttpcm 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.rec.opndat" :Utils.defaultFunction,
"ftdgrp.cbs.max.cur" :Utils.defaultFunction,
"ftdgrp.rec.valdat" :Utils.defaultFunction,
"ftdgrp.tri.pts.extkey" :Utils.defaultFunction,
"ftdgrp.tro.pts.extkey" :Utils.defaultFunction,
"ftdgrp.tro.dbfadrblkcn" :Utils.defaultFunction,
"ftdgrp.rec.usr" :Utils.defaultFunction,
"fttp.msgtyp" :Utils.defaultFunction,
"ftdgrp.rec.ownusr" :Utils.defaultFunction,
"ftdgrp.ben.pts.extkey" :Utils.defaultFunction,
"ftdgrp.rec.ownref" :Utils.defaultFunction,
"ftdgrp.cbs.max.amt" :Utils.defaultFunction,
}
//你可以添加自动default处理
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"}
],
"ftdgrp.rec.ownusr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"fttp.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"fttp.usrget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"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.rec.usr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"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.rec.opndat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"ftdgrp.rec.valdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"ftdgrp.blk.remark":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"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"}
],
"fttp.benp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"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"}
],
"ftdgrp.ben.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.benp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.ben.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"fttp.benact":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
"ftdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"relref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"narblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftt199l1blk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
}
\ 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 Fttpcm{ export default class Fttpcm{
constructor () { constructor () {
...@@ -75,7 +76,10 @@ export default class Fttpcm{ ...@@ -75,7 +76,10 @@ export default class Fttpcm{
narblk:"", // Narrative .narblk narblk:"", // Narrative .narblk
relref:"", // Related Reference .relref relref:"", // Related Reference .relref
ftt199l1blk:"", // XMLPanel ftt199l1的内置block .ftt199l1blk ftt199l1blk:"", // XMLPanel ftt199l1的内置block .ftt199l1blk
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
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
import Api from "~/service/Api" import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Event from "../event/Event" import Event from "../event"
export default { export default {
inject: ['root'], inject: ['root'],
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
import Api from "~/service/Api" import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Event from "../event/Event" import Event from "../event"
export default { export default {
inject: ['root'], inject: ['root'],
......
<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 :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right"
<!--fttpcm PD000098 Confirmation --> size="small" :validate-on-rule-change="false">
<el-tab-pane :label="$t('fttpcm.PD000098')" name="cnfp"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<m-cnfp :model="model" :codes="codes"/> <el-tab-pane label="概要" name="cnfp">
</el-tab-pane> <m-cnfp :model="model" :codes="codes" />
<!--fttpcm PD000100 MT199 --> </el-tab-pane>
<el-tab-pane :label="$t('fttpcm.PD000100')" name="mt199"> <el-tab-pane label="费用/账务" name="setpan">
<m-mt199 :model="model" :codes="codes"/> <c-content>
</el-tab-pane> <m-setpan :codes="codes" :model="model" />
<!--fttpcm PD000101 MT199 --> </c-content>
<el-tab-pane :label="$t('fttpcm.PD000101')" name="ftt199l1"> </el-tab-pane>
<m-ftt199l1 :model="model" :codes="codes"/> <el-tab-pane label="报文/面函" name="docpan">
</el-tab-pane> <c-content>
</c-tabs> <m-docpan :codes="codes" :model="model" />
</el-form> </c-content>
</div> </el-tab-pane>
<!--fttpcm PD000100 MT199 -->
<!-- <el-tab-pane :label="$t('fttpcm.PD000100')" name="mt199">
<m-mt199 :model="model" :codes="codes" />
</el-tab-pane> -->
<!--fttpcm PD000101 MT199 -->
<!-- <el-tab-pane :label="$t('fttpcm.PD000101')" name="ftt199l1">
<m-ftt199l1 :model="model" :codes="codes" />
</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> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Fttpcm from "../model" import Fttpcm 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 Check from "../model/check";
import Cnfp from "./Cnfp" import Cnfp from "./Cnfp"
import Mt199 from "./Mt199" import Mt199 from "./Mt199"
import Ftt199l1 from "./Ftt199l1" import Ftt199l1 from "./Ftt199l1"
import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
export default { export default {
...@@ -37,25 +60,23 @@ export default { ...@@ -37,25 +60,23 @@ export default {
"m-cnfp" : Cnfp, "m-cnfp" : Cnfp,
"m-mt199" : Mt199, "m-mt199" : Mt199,
"m-ftt199l1" : Ftt199l1, "m-ftt199l1" : Ftt199l1,
"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: "cnfp", tabVal: "cnfp",
trnName: "fttpcm", trnName: "fttpcm",
trnType: "", trnType: "",
model: new Fttpcm().data, model: new Fttpcm().data,
checkRules: Check, rules: Check,
defaultRules: Default, codes: { ...CodeTable },
pattern: Pattern,
rules: null,
codes: {
},
} }
}, },
methods:{ methods:{
......
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