Commit a45ca11d by fukai

Merge remote-tracking branch 'origin/develop' into develop

parents 2cd7a4f3 6ed652fc
<template>
<div class="eibs-tab">
<c-col :span="12">
<el-form-item :label="$t('msgp.LT000077')" prop="msgp.msgtyp">
<c-select v-model="model.msgp.msgtyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('msgp.LT000077')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.msgp.isbnk">{{$t('msgp.FD000178')}}</c-checkbox>
</c-col>
<c-col :span="12">
<c-form-item :label="$t('msgp.LT000078')" prop="msgp.rcvbnk.pty.extkey">
<c-input v-model="model.msgp.rcvbnk.pty.extkey" maxlength="24" :placeholder="$t('other.please_enter')+$t('msgp.LT000078')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" icon="el-icon-search" @click="onRcvbnkSel">
{{$t('msgp.BT000079')}}
</c-button>
</c-col>
<!-- LT000092 : 报文标准: -->
<c-col :span="12">
<el-form-item :label="$t('msgp.LT000092')" prop="msgp.typ">
<c-select v-model="model.msgp.typ" style="width:100%" :placeholder="$t('other.please_enter')+$t('msgp.LT000092')">
</c-select>
</el-form-item>
</c-col>
<!-- LT000077 : 报文类型: -->
<!-- LT000078 : 收报行: -->
<c-col :span="12">
<span v-text="model.msgp.msginfo" data-path=".msgp.msginfo" > </span>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onMsgpNxtstp">
{{$t('msgp.BT000087')}}
</c-button>
</c-col>
<!-- <c-col :span="12">
<el-form-item :label="$t('msgp.LT000077')" prop="msgp.msgtyp">
<c-select v-model="model.msgp.msgtyp" style="width:100%"
:placeholder="$t('other.please_enter')+$t('msgp.LT000077')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.msgp.isbnk">{{ $t('msgp.FD000178') }}</c-checkbox>
</c-col>
<c-col :span="12">
<c-form-item :label="$t('msgp.LT000078')" prop="msgp.rcvbnk.pty.extkey">
<c-input v-model="model.msgp.rcvbnk.pty.extkey" maxlength="24"
:placeholder="$t('other.please_enter')+$t('msgp.LT000078')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" icon="el-icon-search" @click="onRcvbnkSel">
{{ $t('msgp.BT000079') }}
</c-button>
</c-col>-->
<!-- LT000092 : 报文标准: -->
<c-col :span="12">
<el-form-item label="报文标准" prop="msgp.typ">
<c-select v-model="model.msgp.typ" style="width:100%"
placeholder="请选择报文标准(mt/iso/cips/fxps)">
</c-select>
</el-form-item>
</c-col>
<!-- LT000077 : 报文类型: -->
<!-- LT000078 : 收报行: -->
<!--
<c-col :span="12">
<span v-text="model.msgp.msginfo" data-path=".msgp.msginfo"> </span>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onMsgpNxtstp">
{{ $t('msgp.BT000087') }}
</c-button>
</c-col>
-->
</div>
</template>
<script>
......@@ -54,18 +59,16 @@ import CodeTable from "~/config/CodeTable"
import Event from "../model/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
inject: ['root'],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {}
},
methods: {...Event},
created: function () {
}
}
}
</script>
<style>
......
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 = Utils.formatPtspta(model.oftp, this.buildPtspta);
return {
rec: {
objtyp: "PFT",
},
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 getOwnref() {
}
}
}
\ No newline at end of file
import Utils from "~/utils"
/**
* Oftopn Check规则
*/
let checkObj = {
"oftp.rel.ref" :null,
"oftp.rel.relref" :null,
"oftp.rel.msgtyp" :null,
"oftp.rel.sedbak" :null,
"oftp.rel.revbak" :null,
"oftp.rel.actbic" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
export default {
"oftp.rel.rsptims": [
{ type: "date", required: false, message: "输入正确的日期" }
],
"oftp.rel.rsptime": [
{ type: "date", required: false, message: "输入正确的日期" }
],
"oftp.rel.sedbak": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"oftp.rel.revbak": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"oftp.rel.actbic": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"oftp.rel.amtd": [
{ type: "number", required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"oftp.rel.amtu": [
{ type: "number", required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"oftp.rel.ref": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"oftp.rel.relref": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
}
\ No newline at end of file
/**
* Oftopn Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onRelSer(){
let rtnmsg = await this.executeRule("rel.ser")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRelRes(){
let rtnmsg = await this.executeRule("rel.res")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"oftp.rel.rsptims":[
{type: "date", required: false, message: "输入正确的日期"}
],
"oftp.rel.rsptime":[
{type: "date", required: false, message: "输入正确的日期"}
],
"oftp.rel.sedbak":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"oftp.rel.revbak":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"oftp.rel.actbic":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"oftp.rel.amtd":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"oftp.rel.amtu":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"oftp.rel.ref":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"oftp.rel.relref":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts"
export default class Oftopn{
constructor () {
this.data = {
oftp:{
rel:{
ref:"", // : .oftp.rel.ref
relref:"", // : .oftp.rel.relref
dcflg:"", // : .oftp.rel.dcflg
amtu:"", // : .oftp.rel.amtu
amtd:"", // : .oftp.rel.amtd
mty:"", // : .oftp.rel.mty
rsptims:"", // : .oftp.rel.rsptims
rsptime:"", // : .oftp.rel.rsptime
sedbak:"", // : .oftp.rel.sedbak
revbak:"", // : .oftp.rel.revbak
actbic:"", // : .oftp.rel.actbic
cur:"", // : .oftp.rel.cur
msgtyp:"", // : .oftp.rel.msgtyp
},
stm2:"", // 导出 .oftp.stm2
},
oftgrp:{
dotrel:{
lst:[], // .oftgrp.dotrel.lst
},
},
pageId: "" // ctx的key
}
export default class Oftopn {
constructor() {
this.data = {
oftp: {
rel: {
ref: "", // : .oftp.rel.ref
relref: "", // : .oftp.rel.relref
dcflg: "", // : .oftp.rel.dcflg
amtu: "", // : .oftp.rel.amtu
amtd: "", // : .oftp.rel.amtd
mty: "", // : .oftp.rel.mty
rsptims: "", // : .oftp.rel.rsptims
rsptime: "", // : .oftp.rel.rsptime
sedbak: "", // : .oftp.rel.sedbak
revbak: "", // : .oftp.rel.revbak
actbic: "", // : .oftp.rel.actbic
cur: "", // : .oftp.rel.cur
msgtyp: "", // : .oftp.rel.msgtyp
},
stm2: "", // 导出 .oftp.stm2
},
oftgrp: {
dotrel: {
lst: [], // .oftgrp.dotrel.lst
},
},
}
}
}
\ No newline at end of file
<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">
<!--oftp PD000700 人工关联页面oftopn -->
<el-tab-pane :label="$t('oftp.PD000700')" name="oftp13">
<m-oftp13 :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
<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">
<!--oftp PD000700 人工关联页面oftopn -->
<el-tab-pane :label="$t('oftp.人工关联页面')" name="oftp13">
<m-oftp13 :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>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Oftopn from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Check from "../model/check"
import Oftp13 from "./Oftp13"
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import event from "../event";
import buildFn from "../event/buildCommons.js";
export default {
name: "Oftopn",
components:{
"m-oftp13" : Oftp13,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "oftp13",
trnName: "oftopn",
trnType: "",
model: new Oftopn().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
kpatyp:CodeTable.kpatyp,
cur:CodeTable.cur,
sdcflg:CodeTable.sdcflg,
gpicod:CodeTable.gpicod,
offtyp:CodeTable.offtyp,
fmssta:CodeTable.fmssta,
clrsys:CodeTable.clrsys,
stacod:CodeTable.stacod,
dottyp:CodeTable.dottyp,
recsta:CodeTable.recsta,
bnksta:CodeTable.bnksta,
gpista:CodeTable.gpista,
kpadir:CodeTable.kpadir,
area:CodeTable.area,
cpsfxdtyp:CodeTable.cpsfxdtyp,
rspsta:CodeTable.rspsta,
sta:CodeTable.sta,
actsta:CodeTable.actsta,
offsta:CodeTable.offsta,
batcharge:CodeTable.batcharge,
msgmst:CodeTable.msgmst,
yosflg:CodeTable.yosflg,
filtyp:CodeTable.filtyp,
dircod:CodeTable.dircod,
kpstyp:CodeTable.kpstyp,
allmsgcod:CodeTable.allmsgcod,
dcflg:CodeTable.dcflg,
msgtyp:CodeTable.msgtyp,
chncod:CodeTable.chncod,
msgsta:CodeTable.msgsta,
usratr:CodeTable.usratr,
msgchksta:CodeTable.msgchksta,
setmth:CodeTable.setmth,
chniptcod:CodeTable.chniptcod,
dtlchg:CodeTable.dtlchg,
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入oftopn交易");
let rtnmsg = {}; // await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
name: "Oftopn",
components: {
"m-oftp13": Oftp13,
},
provide() {
return {
root: this
}
},
mixins: [operationFunc, commonDepend, event, buildFn],
data() {
return {
tabVal: "oftp13",
trnName: "oftopn",
trnType: "",
model: new Oftopn().data,
rules: Check,
codes: {
kpatyp: CodeTable.kpatyp,
cur: CodeTable.cur,
sdcflg: CodeTable.sdcflg,
gpicod: CodeTable.gpicod,
offtyp: CodeTable.offtyp,
fmssta: CodeTable.fmssta,
clrsys: CodeTable.clrsys,
stacod: CodeTable.stacod,
dottyp: CodeTable.dottyp,
recsta: CodeTable.recsta,
bnksta: CodeTable.bnksta,
gpista: CodeTable.gpista,
kpadir: CodeTable.kpadir,
area: CodeTable.area,
cpsfxdtyp: CodeTable.cpsfxdtyp,
rspsta: CodeTable.rspsta,
sta: CodeTable.sta,
actsta: CodeTable.actsta,
offsta: CodeTable.offsta,
batcharge: CodeTable.batcharge,
msgmst: CodeTable.msgmst,
yosflg: CodeTable.yosflg,
filtyp: CodeTable.filtyp,
dircod: CodeTable.dircod,
kpstyp: CodeTable.kpstyp,
allmsgcod: CodeTable.allmsgcod,
dcflg: CodeTable.dcflg,
msgtyp: CodeTable.msgtyp,
chncod: CodeTable.chncod,
msgsta: CodeTable.msgsta,
usratr: CodeTable.usratr,
msgchksta: CodeTable.msgchksta,
setmth: CodeTable.setmth,
chniptcod: CodeTable.chniptcod,
dtlchg: CodeTable.dtlchg,
},
}
},
methods: {
myTabClick(tab) {
this.tabClick(tab)
}
},
created: async function () {
console.log("进入oftopn交易");
let params = {
transName: this.trnName,
fxdgrp: {
rec: {
inr: this.$route.query.inr || "",
},
},
};
this.init(params)
}
}
</script>
<style>
</style>
<style></style>
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 = Utils.formatPtspta(model.oftp, this.buildPtspta);
return {
rec: {
objtyp: "PFT",
},
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 getOwnref() {
}
}
}
\ No newline at end of file
import Utils from "~/utils"
export default {
/**
* Oftsel Check规则
*/
let checkObj = {
"oftp.rel.ref" :null,
"oftp.rel.relref" :null,
"oftp.rel.msgtyp" :null,
"oftp.rel.sedbak" :null,
"oftp.rel.revbak" :null,
"oftp.rel.actbic" :null,
}
"oftp.rel.rsptims": [
{ type: "date", required: false, message: "输入正确的日期" }
],
"oftp.rel.rsptime": [
{ type: "date", required: false, message: "输入正确的日期" }
],
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
"oftp.rel.sedbak": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"oftp.rel.revbak": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"oftp.rel.actbic": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"oftp.rel.amtd": [
{ type: "number", required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"oftp.rel.amtu": [
{ type: "number", required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"oftp.rel.ref": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"oftp.rel.relref": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
}
\ No newline at end of file
/**
* Oftsel Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onRelSer(){
let rtnmsg = await this.executeRule("rel.ser")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRelRes(){
let rtnmsg = await this.executeRule("rel.res")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"oftp.rel.rsptims":[
{type: "date", required: false, message: "输入正确的日期"}
],
"oftp.rel.rsptime":[
{type: "date", required: false, message: "输入正确的日期"}
],
"oftp.rel.sedbak":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"oftp.rel.revbak":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"oftp.rel.actbic":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"oftp.rel.amtd":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"oftp.rel.amtu":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"oftp.rel.ref":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"oftp.rel.relref":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts"
export default class Oftsel{
constructor () {
this.data = {
oftp:{
stm2:"", // 导出 .oftp.stm2
rel:{
ref:"", // : .oftp.rel.ref
relref:"", // : .oftp.rel.relref
dcflg:"", // : .oftp.rel.dcflg
amtu:"", // : .oftp.rel.amtu
amtd:"", // : .oftp.rel.amtd
mty:"", // : .oftp.rel.mty
rsptims:"", // : .oftp.rel.rsptims
rsptime:"", // : .oftp.rel.rsptime
sedbak:"", // : .oftp.rel.sedbak
revbak:"", // : .oftp.rel.revbak
actbic:"", // : .oftp.rel.actbic
cur:"", // : .oftp.rel.cur
msgtyp:"", // : .oftp.rel.msgtyp
},
},
oftgrp:{
dotrel:{
lst:[], // .oftgrp.dotrel.lst
},
},
pageId: "" // ctx的key
}
export default class Oftsel {
constructor() {
this.data = {
oftp: {
stm2: "", // 导出 .oftp.stm2
rel: {
ref: "", // : .oftp.rel.ref
relref: "", // : .oftp.rel.relref
dcflg: "", // : .oftp.rel.dcflg
amtu: "", // : .oftp.rel.amtu
amtd: "", // : .oftp.rel.amtd
mty: "", // : .oftp.rel.mty
rsptims: "", // : .oftp.rel.rsptims
rsptime: "", // : .oftp.rel.rsptime
sedbak: "", // : .oftp.rel.sedbak
revbak: "", // : .oftp.rel.revbak
actbic: "", // : .oftp.rel.actbic
cur: "", // : .oftp.rel.cur
msgtyp: "", // : .oftp.rel.msgtyp
},
},
oftgrp: {
dotrel: {
lst: [], // .oftgrp.dotrel.lst
},
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<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">
<!--oftp PD001804 已关联报文查询面板 -->
<el-tab-pane :label="$t('oftp.PD001804')" name="oftp01">
<m-oftp01 :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
<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">
<!--oftp PD001804 已关联报文查询面板 -->
<el-tab-pane :label="$t('oftp.已关联报文查询面板')" name="oftp01">
<m-oftp01 :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>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Oftsel from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Check from "../model/check"
import Oftp01 from "./Oftp01"
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import event from "../event";
import buildFn from "../event/buildCommons.js";
export default {
name: "Oftsel",
components:{
"m-oftp01" : Oftp01,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "oftp01",
trnName: "oftsel",
trnType: "",
model: new Oftsel().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
kpatyp:CodeTable.kpatyp,
cur:CodeTable.cur,
sdcflg:CodeTable.sdcflg,
gpicod:CodeTable.gpicod,
offtyp:CodeTable.offtyp,
fmssta:CodeTable.fmssta,
clrsys:CodeTable.clrsys,
stacod:CodeTable.stacod,
dottyp:CodeTable.dottyp,
recsta:CodeTable.recsta,
bnksta:CodeTable.bnksta,
gpista:CodeTable.gpista,
kpadir:CodeTable.kpadir,
area:CodeTable.area,
cpsfxdtyp:CodeTable.cpsfxdtyp,
rspsta:CodeTable.rspsta,
sta:CodeTable.sta,
actsta:CodeTable.actsta,
offsta:CodeTable.offsta,
batcharge:CodeTable.batcharge,
msgmst:CodeTable.msgmst,
yosflg:CodeTable.yosflg,
filtyp:CodeTable.filtyp,
dircod:CodeTable.dircod,
kpstyp:CodeTable.kpstyp,
allmsgcod:CodeTable.allmsgcod,
dcflg:CodeTable.dcflg,
msgtyp:CodeTable.msgtyp,
chncod:CodeTable.chncod,
msgsta:CodeTable.msgsta,
usratr:CodeTable.usratr,
msgchksta:CodeTable.msgchksta,
setmth:CodeTable.setmth,
chniptcod:CodeTable.chniptcod,
dtlchg:CodeTable.dtlchg,
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入oftsel交易");
let rtnmsg = {}; // await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
name: "Oftsel",
components: {
"m-oftp01": Oftp01,
},
provide() {
return {
root: this
}
},
mixins: [operationFunc, commonDepend, event, buildFn],
data() {
return {
tabVal: "oftp01",
trnName: "oftsel",
trnType: "",
model: new Oftsel().data,
rules: Check,
codes: {
kpatyp: CodeTable.kpatyp,
cur: CodeTable.cur,
sdcflg: CodeTable.sdcflg,
gpicod: CodeTable.gpicod,
offtyp: CodeTable.offtyp,
fmssta: CodeTable.fmssta,
clrsys: CodeTable.clrsys,
stacod: CodeTable.stacod,
dottyp: CodeTable.dottyp,
recsta: CodeTable.recsta,
bnksta: CodeTable.bnksta,
gpista: CodeTable.gpista,
kpadir: CodeTable.kpadir,
area: CodeTable.area,
cpsfxdtyp: CodeTable.cpsfxdtyp,
rspsta: CodeTable.rspsta,
sta: CodeTable.sta,
actsta: CodeTable.actsta,
offsta: CodeTable.offsta,
batcharge: CodeTable.batcharge,
msgmst: CodeTable.msgmst,
yosflg: CodeTable.yosflg,
filtyp: CodeTable.filtyp,
dircod: CodeTable.dircod,
kpstyp: CodeTable.kpstyp,
allmsgcod: CodeTable.allmsgcod,
dcflg: CodeTable.dcflg,
msgtyp: CodeTable.msgtyp,
chncod: CodeTable.chncod,
msgsta: CodeTable.msgsta,
usratr: CodeTable.usratr,
msgchksta: CodeTable.msgchksta,
setmth: CodeTable.setmth,
chniptcod: CodeTable.chniptcod,
dtlchg: CodeTable.dtlchg,
},
}
},
methods: {
myTabClick(tab) {
this.tabClick(tab)
}
},
created: async function () {
console.log("进入oftsel交易");
let params = {
transName: this.trnName,
fxdgrp: {
rec: {
inr: this.$route.query.inr || "",
},
},
};
this.init(params)
}
}
</script>
<style>
</style>
<style></style>
import Api from "~/service/Api";
import moment from "moment";
export default {
methods: {
async handleSearch() {
},
async handleReset() {
},
// pageSize改变
handleSizeChange(val) {
this.pagination.pageNum = 1;
this.pagination.pageSize = val;
this.handleSearch();
},
// 页码改变
handleCurrentChange(val) {
this.pagination.pageNum = val;
this.handleSearch();
},
handleSelectionChange(val){
this.multipleSelection = val;
}
},
};
......@@ -114,17 +114,17 @@
</div>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('qrtp.LT000326')" prop="qrtp.settimsta">
<c-date-picker type="date" v-model="model.qrtp.settimsta" style="width:100%" :placeholder="$t('other.please_enter')+$t('qrtp.LT000326')"></c-date-picker>
<c-col :span="8">
<el-form-item label="起始时间" prop="qrtp.settimsta">
<c-date-picker type="date" v-model="model.qrtp.settimsta" style="width:100%" placeholder="请选择起始时间"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000023 : 起始时间 -->
<!-- LT000326 : -->
<!-- LT000326 : 记录类型 -->
<c-col :span="12">
<el-form-item :label="$t('qrtp.LT000328')" prop="qrtp.settimend">
<c-date-picker type="date" v-model="model.qrtp.settimend" style="width:100%" :placeholder="$t('other.please_enter')+$t('qrtp.LT000328')"></c-date-picker>
<c-col :span="8">
<el-form-item label="截至日期" prop="qrtp.settimend">
<c-date-picker type="date" v-model="model.qrtp.settimend" style="width:100%" placeholder="请输入截至日期"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000024 : 截止时间 -->
......@@ -132,9 +132,9 @@
<!-- LT002442 : 报文类型 -->
<!-- LT002443 : : -->
<c-col :span="12">
<el-form-item :label="$t('qrtp.LT002442')" prop="qrdgrp.rec.msgtyp">
<c-select v-model="model.qrdgrp.rec.msgtyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('qrtp.LT002442')">
<c-col :span="8">
<el-form-item label="报文类型" prop="qrdgrp.rec.msgtyp">
<c-select v-model="model.qrdgrp.rec.msgtyp" style="width:100%" placeholder="请选择报文类型">
</c-select>
</el-form-item>
</c-col>
......@@ -142,8 +142,8 @@
<!-- LT000329 : : -->
<c-col :span="12">
<el-form-item :label="$t('qrtp.LT000329')" prop="qrtp.cassta">
<c-select v-model="model.qrtp.cassta" style="width:100%" :placeholder="$t('other.please_enter')+$t('qrtp.LT000329')">
<el-form-item label="CASE状态" prop="qrtp.cassta">
<c-select v-model="model.qrtp.cassta" style="width:100%" placeholder="请选择CASE状态">
<el-option
v-for="item in codes.cassta"
:key="item.value"
......@@ -157,38 +157,38 @@
<!-- LT000330 : : -->
<c-col :span="12">
<c-form-item :label="$t('qrtp.LT000330')" prop="qrtp.casnum">
<c-input v-model="model.qrtp.casnum" maxlength="16" :placeholder="$t('other.please_enter')+$t('qrtp.LT000330')"></c-input>
<c-form-item label="CASE编号" prop="qrtp.casnum">
<c-input v-model="model.qrtp.casnum" maxlength="16" placeholder="请输入CASE编号"></c-input>
</c-form-item>
</c-col>
<!-- LT000021 : 汇票号码 -->
<!-- LT000331 : : -->
<c-col :span="12">
<c-form-item :label="$t('qrtp.LT000331')" prop="qrtp.drfnum">
<c-input v-model="model.qrtp.drfnum" maxlength="20" :placeholder="$t('other.please_enter')+$t('qrtp.LT000331')"></c-input>
<c-form-item label="汇票号码" prop="qrtp.drfnum">
<c-input v-model="model.qrtp.drfnum" maxlength="20" placeholder="请输入汇票号码"></c-input>
</c-form-item>
</c-col>
<!-- LT000180 : 20域编号(发) -->
<!-- LT000332 : : -->
<c-col :span="12">
<c-form-item :label="$t('qrtp.LT000332')" prop="qrtp.ownrel">
<c-input v-model="model.qrtp.ownrel" maxlength="20" :placeholder="$t('other.please_enter')+$t('qrtp.LT000332')"></c-input>
<c-form-item label="20域编号(发)" prop="qrtp.ownrel">
<c-input v-model="model.qrtp.ownrel" maxlength="20" placeholder="请输入20域编号(发)"></c-input>
</c-form-item>
</c-col>
<!-- LT000181 : 20域编号(收) -->
<!-- LT000333 : : -->
<c-col :span="12">
<c-form-item :label="$t('qrtp.LT000333')" prop="qrtp.opsref">
<c-input v-model="model.qrtp.opsref" maxlength="20" :placeholder="$t('other.please_enter')+$t('qrtp.LT000333')"></c-input>
<c-form-item label=" 20域编号(收)" prop="qrtp.opsref">
<c-input v-model="model.qrtp.opsref" maxlength="20" placeholder="请输入20域编号(收)"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item :label="$t('qrtp.LT000336')" prop="qrtp.uetr">
<c-input v-model="model.qrtp.uetr" maxlength="40" :placeholder="$t('other.please_enter')+$t('qrtp.LT000336')"></c-input>
<c-form-item label="UETR" prop="qrtp.uetr">
<c-input v-model="model.qrtp.uetr" maxlength="40" placeholder="请输入UETR"></c-input>
</c-form-item>
</c-col>
<!-- LT004599 : UETR -->
......@@ -197,42 +197,42 @@
<!-- LT000334 : : -->
<c-col :span="12">
<c-form-item :label="$t('qrtp.LT000334')" prop="qrtp.sedbak">
<c-input v-model="model.qrtp.sedbak" maxlength="11" :placeholder="$t('other.please_enter')+$t('qrtp.LT000334')"></c-input>
<c-form-item label="发报行BIC" prop="qrtp.sedbak">
<c-input v-model="model.qrtp.sedbak" maxlength="11" placeholder="请输入发报行BIC"></c-input>
</c-form-item>
</c-col>
<!-- LT000183 : 收报行BIC -->
<!-- LT000335 : : -->
<c-col :span="12">
<c-form-item :label="$t('qrtp.LT000335')" prop="qrtp.revbak">
<c-input v-model="model.qrtp.revbak" maxlength="11" :placeholder="$t('other.please_enter')+$t('qrtp.LT000335')"></c-input>
<c-form-item label="收报行BIC" prop="qrtp.revbak">
<c-input v-model="model.qrtp.revbak" maxlength="11" placeholder="请输入收报行BIC"></c-input>
</c-form-item>
</c-col>
<!-- LT000184 : 账户行BIC -->
<!-- LT000336 : : -->
<c-col :span="12">
<c-form-item :label="$t('qrtp.LT000336')" prop="qrtp.actbak">
<c-input v-model="model.qrtp.actbak" maxlength="11" :placeholder="$t('other.please_enter')+$t('qrtp.LT000336')"></c-input>
<c-form-item label="账户行BIC" prop="qrtp.actbak">
<c-input v-model="model.qrtp.actbak" maxlength="11" placeholder="请输入账户行BIC"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" icon="el-icon-search" @click="onQrtpCassel">
{{$t('qrtp.BT000027')}}
查询
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onQrtpCasclr">
{{$t('qrtp.BT000028')}}
清空
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onQrtpCrecas">
{{$t('qrtp.BT000130')}}
新建CASE
</c-button>
</c-col>
......
......@@ -43,7 +43,7 @@ import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import event from "../event";
import buildFn from "../event/buildCommons.js";
import Check from "../model/Check.js";
import Check from "../model/check.js";
export default {
name: "Fxtssb",
components: {
......
......@@ -43,7 +43,7 @@ import Docpan from "~/components/business/docpan/views";
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import event from "../event";
import Check from "../model/Check.js";
import Check from "../model/check.js";
import buildFn from "../event/buildCommons.js";
export default {
name: "Fxtsss",
......
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