Commit 99ec8658 by liaoxing

smtsel修改

parent 87d73847
import Api from "~/service/Api"
import Pts from "../Common/Pts"
import Pts from "~/page/Model/Common/Pts"
export default class Smtsel{
constructor () {
this.data = {
smtp:{
smtsup:{
smtno:"", // : .smtp.smtsup.smtno
begdat:"", // : .smtp.smtsup.begdat
enddat:"", // 至 .smtp.smtsup.enddat
ptpmod:{
pty:{
chnnam:"", // : .smtp.smtsup.ptpmod.pty.chnnam
extkey:"", // : .smtp.smtsup.ptpmod.pty.extkey
},
},
cur:"", // : .smtp.smtsup.cur
ref:"", // : .smtp.smtsup.ref
valdatbeg:"", // : .smtp.smtsup.valdatbeg
valdatend:"", // 至 .smtp.smtsup.valdatend
typ:"", // : .smtp.smtsup.typ
act:"", // : .smtp.smtsup.act
exp:"", // 导出 .smtp.smtsup.exp
},
export default class Smtsel {
constructor() {
this.data = {
smtp: {
smtsup: {
smtno: "", // : .smtp.smtsup.smtno
begdat: "", // : .smtp.smtsup.begdat
enddat: "", // 至 .smtp.smtsup.enddat
ptpmod: {
pty: {
chnnam: "", // : .smtp.smtsup.ptpmod.pty.chnnam
extkey: "", // : .smtp.smtsup.ptpmod.pty.extkey
},
smtgrp:{
smtsub:{
lst:[], // .smtgrp.smtsub.lst
},
},
pageId: "" // ctx的key
}
}
},
cur: "", // : .smtp.smtsup.cur
ref: "", // : .smtp.smtsup.ref
valdatbeg: "", // : .smtp.smtsup.valdatbeg
valdatend: "", // 至 .smtp.smtsup.valdatend
typ: "", // : .smtp.smtsup.typ
act: "", // : .smtp.smtsup.act
exp: "", // 导出 .smtp.smtsup.exp
},
},
smtgrp: {
smtsub: {
lst: [], // .smtgrp.smtsub.lst
},
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="24">
<div class="e-table-wrapper">
<el-table
:data="model.smtgrp.smtsub.lst"
style="width: 100%"
>
<el-table-column
prop="chk"
label=""
sortable
width="30">
</el-table-column>
<el-table-column
prop="recdat"
label="收报日期"
sortable
width="90">
</el-table-column>
<el-table-column
prop="valdat"
label="起息日期"
sortable
width="90">
</el-table-column>
<el-table-column
prop="chnnam"
label="账户行名称"
sortable
width="150">
</el-table-column>
<el-table-column
prop="bic"
label="BIC"
sortable
width="90">
</el-table-column>
<el-table-column
prop="acc"
label="帐号"
sortable
width="100">
</el-table-column>
<el-table-column
prop="cur"
label="币种"
sortable
width="40">
</el-table-column>
<el-table-column
prop="ref"
label="对账单参考号"
sortable
width="130">
</el-table-column>
<el-table-column
prop="smtno"
label="单编号"
sortable
width="60">
</el-table-column>
<el-table-column
prop="begamt"
label="期初金额"
sortable
width="120">
</el-table-column>
<el-table-column
prop="endamt"
label="期末金额"
sortable
width="120">
</el-table-column>
<el-table-column
prop="endvalamt"
label="期末可用金额"
sortable
width="120">
</el-table-column>
<el-table-column
prop="typ"
label="对账单类型"
sortable
width="80">
</el-table-column>
<el-table-column
prop="pag"
label="页数"
sortable
width="60">
</el-table-column>
<el-table-column
prop="dtl"
label="明细条数"
sortable
width="80">
</el-table-column>
</el-table>
<el-pagination
layout="prev, pager, next"
:total="pager.smtgrp_smtsub_lst.total">
</el-pagination>
</div>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('smtsup.LT000199')" prop="smtp.smtsup.typ">
<c-select v-model="model.smtp.smtsup.typ" style="width:100%" :placeholder="$t('other.please_enter')+$t('smtsup.LT000199')">
<el-option
v-for="item in codes.smttyp"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</c-select>
<c-col :span="24">
<div class="e-table-wrapper">
<el-table :data="model.smtgrp.smtsub.lst" style="width: 100%">
<el-table-column prop="chk" label="" sortable width="30">
</el-table-column>
<el-table-column prop="recdat" label="收报日期" sortable width="90">
</el-table-column>
<el-table-column prop="valdat" label="起息日期" sortable width="90">
</el-table-column>
<el-table-column
prop="chnnam"
label="账户行名称"
sortable
width="150"
>
</el-table-column>
<el-table-column prop="bic" label="BIC" sortable width="90">
</el-table-column>
<el-table-column prop="acc" label="帐号" sortable width="100">
</el-table-column>
<el-table-column prop="cur" label="币种" sortable width="40">
</el-table-column>
<el-table-column prop="ref" label="对账单参考号" sortable width="130">
</el-table-column>
<el-table-column prop="smtno" label="单编号" sortable width="60">
</el-table-column>
<el-table-column prop="begamt" label="期初金额" sortable width="120">
</el-table-column>
<el-table-column prop="endamt" label="期末金额" sortable width="120">
</el-table-column>
<el-table-column
prop="endvalamt"
label="期末可用金额"
sortable
width="120"
>
</el-table-column>
<el-table-column prop="typ" label="对账单类型" sortable width="80">
</el-table-column>
<el-table-column prop="pag" label="页数" sortable width="60">
</el-table-column>
<el-table-column prop="dtl" label="明细条数" sortable width="80">
</el-table-column>
</el-table>
<el-pagination layout="prev, pager, next" :total="pagenation.total">
</el-pagination>
</div>
</c-col>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="对账单类型" prop="smtp.smtsup.typ">
<c-select
v-model="model.smtp.smtsup.typ"
style="width: 100%"
:placeholder="$t('other.please_enter') + $t('smtsup.LT000199')"
>
<el-option
v-for="item in codes.smttyp"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<!-- LT000148 : 对账单类型 -->
<!-- LT000199 : : -->
<c-col :span="12">
<c-form-item :label="$t('smtsup.LT000200')" prop="smtp.smtsup.ptpmod.pty.extkey">
<c-input v-model="model.smtp.smtsup.ptpmod.pty.extkey" maxlength="24" :placeholder="$t('other.please_enter')+$t('smtsup.LT000200')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" icon="el-icon-search" @click="onPtpmodSel">
{{$t('smtsup.BT000017')}}
</c-button>
</c-col>
<!-- LT000054 : BIC -->
<!-- LT000200 : : -->
<c-col :span="12">
<c-form-item :label="$t('smtsup.LT000201')" prop="smtp.smtsup.ptpmod.pty.chnnam">
<c-input v-model="model.smtp.smtsup.ptpmod.pty.chnnam" maxlength="100" :placeholder="$t('other.please_enter')+$t('smtsup.LT000201')"></c-input>
</c-col>
<!-- LT000148 : 对账单类型 -->
<!-- LT000199 : : -->
<c-col :span="8">
<c-col :span="16">
<c-form-item label="BIC" prop="smtp.smtsup.ptpmod.pty.extkey">
<c-input
v-model="model.smtp.smtsup.ptpmod.pty.extkey"
maxlength="24"
:placeholder="$t('other.please_enter') + $t('smtsup.LT000200')"
></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<c-button
size="small"
type="primary"
icon="el-icon-search"
@click="onPtpmodSel"
>
</c-button>
</c-col>
</c-col>
<!-- LT000054 : BIC -->
<!-- LT000200 : : -->
<c-col :span="8">
<c-form-item label="账户行名称" prop="smtp.smtsup.ptpmod.pty.chnnam">
<c-input
v-model="model.smtp.smtsup.ptpmod.pty.chnnam"
maxlength="100"
:placeholder="$t('other.please_enter') + $t('smtsup.LT000201')"
></c-input>
</c-form-item>
</c-col>
<!-- LT000016 : 账户行名称 -->
<!-- LT000201 : : -->
<!-- LT000227 : : -->
<c-col :span="12">
<c-form-item :label="$t('smtsup.LT000227')" prop="smtp.smtsup.act">
<c-input v-model="model.smtp.smtsup.act" maxlength="40" :placeholder="$t('other.please_enter')+$t('smtsup.LT000227')"></c-input>
</c-col>
<!-- LT000016 : 账户行名称 -->
<!-- LT000201 : : -->
<!-- LT000227 : : -->
</c-col>
<c-col :span="24">
<c-col :span="8">
<c-form-item label="帐号" prop="smtp.smtsup.act">
<c-input
v-model="model.smtp.smtsup.act"
maxlength="40"
:placeholder="$t('other.please_enter') + $t('smtsup.LT000227')"
></c-input>
</c-form-item>
</c-col>
<!-- LT000226 : 帐号 -->
<c-col :span="12">
<el-form-item :label="$t('smtsup.LT000202')" prop="smtp.smtsup.cur">
<c-select v-model="model.smtp.smtsup.cur" style="width:100%" :placeholder="$t('other.please_enter')+$t('smtsup.LT000202')">
</c-select>
</c-col>
<!-- LT000226 : 帐号 -->
<c-col :span="8">
<el-form-item label="币种" prop="smtp.smtsup.cur">
<c-select
v-model="model.smtp.smtsup.cur"
style="width: 100%"
:placeholder="$t('other.please_enter') + $t('smtsup.LT000202')"
>
</c-select>
</el-form-item>
</c-col>
<!-- LT000018 : 币种 -->
<!-- LT000202 : : -->
<c-col :span="12">
<c-form-item :label="$t('smtsup.LT000203')" prop="smtp.smtsup.ref">
<c-input v-model="model.smtp.smtsup.ref" maxlength="16" :placeholder="$t('other.please_enter')+$t('smtsup.LT000203')"></c-input>
</c-col>
<!-- LT000018 : 币种 -->
<!-- LT000202 : : -->
<c-col :span="8">
<c-form-item label="对账单参考号" prop="smtp.smtsup.ref">
<c-input
v-model="model.smtp.smtsup.ref"
maxlength="16"
:placeholder="$t('other.please_enter') + $t('smtsup.LT000203')"
></c-input>
</c-form-item>
</c-col>
<!-- LT000078 : 对账单参考号 -->
<!-- LT000203 : : -->
<c-col :span="12">
<c-form-item :label="$t('smtsup.LT000204')" prop="smtp.smtsup.smtno">
<c-input v-model="model.smtp.smtsup.smtno" maxlength="16" :placeholder="$t('other.please_enter')+$t('smtsup.LT000204')"></c-input>
</c-col>
<!-- LT000078 : 对账单参考号 -->
<!-- LT000203 : : -->
</c-col>
<c-col :span="24">
<c-col :span="8">
<c-form-item label="对账单编号" prop="smtp.smtsup.smtno">
<c-input
v-model="model.smtp.smtsup.smtno"
maxlength="16"
:placeholder="$t('other.please_enter') + $t('smtsup.LT000204')"
></c-input>
</c-form-item>
</c-col>
<!-- LT000011 : 对账单编号 -->
<!-- LT000204 : : -->
<c-col :span="12">
<el-form-item :label="$t('smtsup.LT000205')" prop="smtp.smtsup.begdat">
<c-date-picker type="date" v-model="model.smtp.smtsup.begdat" style="width:100%" :placeholder="$t('other.please_enter')+$t('smtsup.LT000205')"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000012 : 收报日期 -->
<!-- LT000205 : : -->
<c-col :span="12">
<el-form-item :label="$t('smtsup.LT000013')" prop="smtp.smtsup.enddat">
<c-date-picker type="date" v-model="model.smtp.smtsup.enddat" style="width:100%" :placeholder="$t('other.please_enter')+$t('smtsup.LT000013')"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000013 : 至 -->
<c-col :span="12">
<el-form-item :label="$t('smtsup.LT000206')" prop="smtp.smtsup.valdatbeg">
<c-date-picker type="date" v-model="model.smtp.smtsup.valdatbeg" style="width:100%" :placeholder="$t('other.please_enter')+$t('smtsup.LT000206')"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000139 : 起息日期 -->
<!-- LT000206 : : -->
<c-col :span="12">
<el-form-item :label="$t('smtsup.LT000140')" prop="smtp.smtsup.valdatend">
<c-date-picker type="date" v-model="model.smtp.smtsup.valdatend" style="width:100%" :placeholder="$t('other.please_enter')+$t('smtsup.LT000140')"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000140 : 至 -->
<c-col :span="12">
<c-button size="small" type="primary" icon="el-icon-search" @click="onSmtsupSel">
{{$t('smtsup.BT000014')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSmtsupClr">
{{$t('smtsup.BT000015')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSmtsupAllchk">
{{$t('smtsup.BT000173')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSmtsupOpp">
{{$t('smtsup.BT000174')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSmtsupLook">
{{$t('smtsup.BT000058')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSmtsupDtllok">
{{$t('smtsup.BT000057')}}
</c-button>
</c-col>
</c-col>
<!-- LT000011 : 对账单编号 -->
<!-- LT000204 : : -->
<c-col :span="8">
<c-col :span="16">
<el-form-item label="收报日期" prop="smtp.smtsup.begdat">
<c-date-picker
type="date"
v-model="model.smtp.smtsup.begdat"
style="width: 100%"
:placeholder="$t('other.please_enter') + $t('smtsup.LT000205')"
></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000012 : 收报日期 -->
<!-- LT000205 : : -->
<c-col :span="8">
<el-form-item label="至" prop="smtp.smtsup.enddat">
<c-date-picker
type="date"
v-model="model.smtp.smtsup.enddat"
style="width: 100%"
:placeholder="$t('other.please_enter') + $t('smtsup.LT000013')"
></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000013 : 至 -->
</c-col>
<c-col :span="8">
<c-col :span="16">
<el-form-item label="起息日期" prop="smtp.smtsup.valdatbeg">
<c-date-picker
type="date"
v-model="model.smtp.smtsup.valdatbeg"
style="width: 100%"
:placeholder="$t('other.please_enter') + $t('smtsup.LT000206')"
></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000139 : 起息日期 -->
<!-- LT000206 : : -->
<c-col :span="8">
<el-form-item label="至" prop="smtp.smtsup.valdatend">
<c-date-picker
type="date"
v-model="model.smtp.smtsup.valdatend"
style="width: 100%"
:placeholder="$t('other.please_enter') + $t('smtsup.LT000140')"
></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000140 : 至 -->
</c-col>
</c-col>
<c-col :span="12">
<c-button
size="small"
type="primary"
icon="el-icon-search"
@click="onSmtsupSel"
>
{{ $t("smtsup.BT000014") }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSmtsupClr">
{{ $t("smtsup.BT000015") }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSmtsupAllchk">
{{ $t("smtsup.BT000173") }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSmtsupOpp">
{{ $t("smtsup.BT000174") }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSmtsupLook">
{{ $t("smtsup.BT000058") }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSmtsupDtllok">
{{ $t("smtsup.BT000057") }}
</c-button>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Smtsel/Event"
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 {
pagenation: {
total: 10,
},
};
},
methods: { ...Event },
created: function () {},
};
</script>
<style>
</style>
......@@ -3,7 +3,7 @@
<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">
<!--smtp PD000000 -->
<el-tab-pane :label="$t('smtp.PD000000')" name="smtp01">
<el-tab-pane :label="$t('smtp.对账单查询')" name="smtp01">
<m-smtp01 :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
......@@ -12,12 +12,11 @@
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Smtsel from "~/model/Smtsel"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Smtsel/Check"
import Default from "~/model/Smtsel/Default"
import Pattern from "~/model/Smtsel/Pattern"
import Smtsel from "../model/index"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Smtp01 from "./Smtp01"
......@@ -34,7 +33,7 @@ export default {
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
tabVal: "smtp01",
trnName: "smtsel",
trnType: "",
model: new Smtsel().data,
......@@ -43,52 +42,52 @@ export default {
pattern: Pattern,
rules: null,
codes: {
msgdrt:CodeTable.msgdrt,
blksta:CodeTable.blksta,
kpatyp:CodeTable.kpatyp,
cur:CodeTable.cur,
sdcflg:CodeTable.sdcflg,
smttyp:CodeTable.smttyp,
gpicod:CodeTable.gpicod,
mgssta:CodeTable.mgssta,
ljschk:CodeTable.ljschk,
offtyp:CodeTable.offtyp,
msgrng:CodeTable.msgrng,
fmssta:CodeTable.fmssta,
clrsys:CodeTable.clrsys,
errtyp:CodeTable.errtyp,
stacod:CodeTable.stacod,
dottyp:CodeTable.dottyp,
recsta:CodeTable.recsta,
cassta:CodeTable.cassta,
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,
cipsstatus:CodeTable.cipsstatus,
curcod:CodeTable.curcod,
msgtyp:CodeTable.msgtyp,
chncod:CodeTable.chncod,
msgsta:CodeTable.msgsta,
usratr:CodeTable.usratr,
msgchksta:CodeTable.msgchksta,
cipsmsgtype:CodeTable.cipsmsgtype,
setmth:CodeTable.setmth,
chniptcod:CodeTable.chniptcod,
dtlchg:CodeTable.dtlchg,
// msgdrt:CodeTable.msgdrt,
// blksta:CodeTable.blksta,
// kpatyp:CodeTable.kpatyp,
// cur:CodeTable.cur,
// sdcflg:CodeTable.sdcflg,
// smttyp:CodeTable.smttyp,
// gpicod:CodeTable.gpicod,
// mgssta:CodeTable.mgssta,
// ljschk:CodeTable.ljschk,
// offtyp:CodeTable.offtyp,
// msgrng:CodeTable.msgrng,
// fmssta:CodeTable.fmssta,
// clrsys:CodeTable.clrsys,
// errtyp:CodeTable.errtyp,
// stacod:CodeTable.stacod,
// dottyp:CodeTable.dottyp,
// recsta:CodeTable.recsta,
// cassta:CodeTable.cassta,
// 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,
// cipsstatus:CodeTable.cipsstatus,
// curcod:CodeTable.curcod,
// msgtyp:CodeTable.msgtyp,
// chncod:CodeTable.chncod,
// msgsta:CodeTable.msgsta,
// usratr:CodeTable.usratr,
// msgchksta:CodeTable.msgchksta,
// cipsmsgtype:CodeTable.cipsmsgtype,
// setmth:CodeTable.setmth,
// chniptcod:CodeTable.chniptcod,
// dtlchg:CodeTable.dtlchg,
},
}
},
......@@ -102,17 +101,17 @@ export default {
},
created:async function(){
console.log("进入smtsel交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
// let rtnmsg = await this.init({})
// if(rtnmsg.respCode == SUCCESS)
// {
// this.updateModel(rtnmsg.data)
// //TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
// }
// else
// {
// this.$notify.error({title: '错误',message: '服务请求失败!'});
// }
}
}
</script>
......
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