Commit 99ec8658 by liaoxing

smtsel修改

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