Commit 972c4eae by 李少勇

smtsel、smdsel和smpsel交易修改调整

parent e25db58d
......@@ -38,6 +38,7 @@ const BusRouter = [
{ path: 'smtame', component: () => import("./Smtame/views"), name: 'Smtame', meta: { title: '问题、异常对账单' }, module: 'frontend' },
{ path: 'smtexe', component: () => import("./Smtexe/views"), name: 'Smtexe', meta: { title: 'Smtexe' }, module: 'frontend' },
{ path: 'smtsel', component: () => import("./Smtsel/views"), name: 'Smtsel', meta: { title: '对账单查询' }, module: 'frontend' },
{ path: 'smpsel', component: () => import("./Smpsel/views"), name: 'Smpsel', meta: { title: '对账单页查询' }, module: 'frontend' },
{ path: 'usrmsg', component: () => import("./Usrmsg/views"), name: 'Usrmsg', meta: { title: '系统管理' }, module: 'frontend' },
// 报文管理w
{ path: 'rcvsel', component: () => import("./Rcvsel/views"), name: 'Rcvsel', meta: { keepAlive: true, title: '收报查询' } },
......
......@@ -2,25 +2,49 @@ 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;
}
methods: {
async handleSearch() {
this.load = true;
let rtnmsg = await Api.post("/frontend/smdsel", {
...this.model,
pageNumber: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
});
if (rtnmsg.respCode == SUCCESS) {
this.load = false;
this.stmData.data = [];
this.stmData.data=rtnmsg.data.list;
this.pagination = {
pageNum: rtnmsg.data.pageNum || 1,
pageSize: rtnmsg.data.pageSize || 10,
total: parseInt(rtnmsg.data.total),
};
} else {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.服务请求失败!"),
});
}
this.load = false;
},
async handleReset() {
this.model.smdp.smdsup.ptpmod.pty.extkey = ''
this.model.smdp.smdsup.act = ''
this.model.smdp.smdsup.cur = ''
},
// 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;
}
},
};
import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts"
import Pub from "~/components/business/commonModel/index.js";
export default class Smdsel{
constructor () {
this.data = {
smdp:{
smdsup:{
begdat:"", // 起息日起始 .smdp.smdsup.begdat
enddat:"", // 起息日截止 .smdp.smdsup.enddat
ref:"", // 参考号/前 .smdp.smdsup.ref
begamt:"", // 金额下限 .smdp.smdsup.begamt
endamt:"", // 金额上限 .smdp.smdsup.endamt
begrevdat:"", // 起始日期 .smdp.smdsup.begrevdat
endrevdat:"", // 截止日期 .smdp.smdsup.endrevdat
ptpmod:{
pty:{
extkey:"", // BIC 码 .smdp.smdsup.ptpmod.pty.extkey
chnnam:"", // 账户行名称 .smdp.smdsup.ptpmod.pty.chnnam
},
},
cur:"", // 币 种 .smdp.smdsup.cur
inf:"", // 详细信息 .smdp.smdsup.inf
dcflg:"", // 借贷标识 .smdp.smdsup.dcflg
accdatbeg:"", // 记账日期起始 .smdp.smdsup.accdatbeg
accdatend:"", // 记账日期截止 .smdp.smdsup.accdatend
act:"", // 帐 号 .smdp.smdsup.act
offsta:"", // 勾销状态 .smdp.smdsup.offsta
kpatyp:"", // 记账类型 .smdp.smdsup.kpatyp
recsta:"", // 记账状态 .smdp.smdsup.recsta
expstm:"", // 导出Strem .smdp.smdsup.expstm
},
},
smdgrp:{
smdsub:{
smd:{
othref:"", // 参考号/后 .smdgrp.smdsub.smd.othref
busflg:"", // 业务标识 .smdgrp.smdsub.smd.busflg
},
lst:[], // .smdgrp.smdsub.lst
},
},
pageId: "" // ctx的key
}
export default class Smdsel {
constructor() {
this.data = {
smdp: {
smdsup: {
begdat: "", // 起息日起始 .smdp.smdsup.begdat
enddat: "", // 起息日截止 .smdp.smdsup.enddat
ref: "", // 参考号/前 .smdp.smdsup.ref
begamt: "", // 金额下限 .smdp.smdsup.begamt
endamt: "", // 金额上限 .smdp.smdsup.endamt
begrevdat: "", // 起始日期 .smdp.smdsup.begrevdat
endrevdat: "", // 截止日期 .smdp.smdsup.endrevdat
ptpmod: {
pty: {
extkey: "", // BIC 码 .smdp.smdsup.ptpmod.pty.extkey
chnnam: "", // 账户行名称 .smdp.smdsup.ptpmod.pty.chnnam
},
},
cur: "", // 币 种 .smdp.smdsup.cur
inf: "", // 详细信息 .smdp.smdsup.inf
dcflg: "", // 借贷标识 .smdp.smdsup.dcflg
accdatbeg: "", // 记账日期起始 .smdp.smdsup.accdatbeg
accdatend: "", // 记账日期截止 .smdp.smdsup.accdatend
act: "", // 帐 号 .smdp.smdsup.act
offsta: "", // 勾销状态 .smdp.smdsup.offsta
kpatyp: "", // 记账类型 .smdp.smdsup.kpatyp
recsta: "", // 记账状态 .smdp.smdsup.recsta
expstm: "", // 导出Strem .smdp.smdsup.expstm
},
},
smdgrp: {
smdsub: {
smd: {
othref: "", // 参考号/后 .smdgrp.smdsub.smd.othref
busflg: "", // 业务标识 .smdgrp.smdsub.smd.busflg
},
lst: [], // .smdgrp.smdsub.lst
},
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
......@@ -6,18 +6,18 @@
<el-row>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="BIC码" prop="msgtyp" style="width: 100%">
<c-input v-model="model.smdp.smdsup.ptpmod.pty.extkey" style="width: 100%" />
<el-form-item label="BIC码" style="width: 100%">
<c-input v-model="model.smdp.smdsup.ptpmod.pty.extkey" style="width: 100%" />
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="帐号" prop="rcvdatsta" style="width: 100%">
<c-input v-model="model.smdp.smdsup.act" style="width: 100%" />
<el-form-item label="帐号" style="width: 100%">
<c-input v-model="model.smdp.smdsup.act" style="width: 100%" />
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="币种" prop="subtype" style="width: 100%">
<c-select v-model="model.smdp.smdsup.cur" :code="codes.cur"/>
<el-form-item label="币种" style="width: 100%">
<c-select v-model="model.smdp.smdsup.cur" :code="codes.cur" />
</el-form-item>
</c-col>
</c-col>
......@@ -30,11 +30,11 @@
</c-list-search>
<el-col :span="24" style="margin-top: 2px;margin-bottom: 1px;">
<c-button :disabled="isFoldDisable" class="medium_bcs" size="medium" style="margin-left: 0"
type="primary" >{{ $t('public.归档') }}
<c-button :disabled="isFoldDisable" class="medium_bcs" size="medium" style="margin-left: 0" type="primary">
{{ $t('public.归档') }}
</c-button>
<c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium"
style="margin-left: 20" type="primary">ReRouting
<c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium" style="margin-left: 20" type="primary">
ReRouting
</c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 20" type="primary">
{{ $t('public.导出Excel') }}
......@@ -43,22 +43,31 @@
<el-col :span="24" style="margin-top: 10px">
<div style="height: 90%">
<div>
<c-col :span="24">
<el-tabs v-model="activeTab" class="y-tabs">
<el-tab-pane label="对账单明细查询" name="sb">
<el-table :data="stmData.data" :columns="stmData.columns" v-loading="load" style="width: 100%"
@selection-change="handleSelectionChange"
size="small" :border="true" height="calc(100vh - 480px)" :highlight-current-row="true">
<el-table-column type="selection" width="55">
</el-table-column>
<el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop"
:min-width="item.width">
</el-table-column>
<el-table
:data="stmData.data"
:columns="stmData.columns"
v-loading="load"
style="width: 100%"
@selection-change="handleSelectionChange"
size="small" :border="true"
height="calc(100vh - 430px)"
:highlight-current-row="true"
>
<el-table-column type="selection" width="55"></el-table-column>
<el-table-column
v-for="(item, key) in stmData.columns"
:key="key" :label="item.label"
:prop="item.prop"
:min-width="item.width"
></el-table-column>
</el-table>
<el-pagination layout="total, sizes, prev, pager, next, jumper" :total="pagination.total"
:page-size="pagination.pageSize" :current-page.sync="pagination.pageNum" @size-change="handleSizeChange"
@current-change="handleCurrentChange">
:page-size="pagination.pageSize" :current-page.sync="pagination.pageNum" @size-change="handleSizeChange"
@current-change="handleCurrentChange">
</el-pagination>
</el-tab-pane>
</el-tabs>
......@@ -79,9 +88,7 @@ export default {
activeTab: 'sb',
load: false,
subtypCodes: [],
// isFoldDisable: true,
// isRoutingDisable: true,
multipleSelection:[],
multipleSelection: [],
stmData: {
columns: [
{
......@@ -177,7 +184,6 @@ export default {
],
data: [],
},
pagination: {
pageNum: 1,
pageSize: 10,
......@@ -185,11 +191,11 @@ export default {
},
};
},
computed:{
isFoldDisable: function(){
computed: {
isFoldDisable: function () {
return this.multipleSelection.length == 0;
} ,
isRoutingDisable:function(){
},
isRoutingDisable: function () {
return this.multipleSelection.length == 0;
}
},
......
<template>
<div class="eContainer-search">
<el-form
:model="model"
:rules="rules"
ref="modelForm"
label-width="120px"
label-position="right"
size="small"
:validate-on-rule-change="false"
>
<c-content>
<m-smdp01 :model="model" :codes="codes" ref="smdp01"/>
</c-content>
</el-form>
</div>
</template>
<script>
import CodeTable from "~/config/CodeTable";
import Smdsel from "../model";
import event from "../event"
import Smdp01 from "./Smdp01.vue"
export default {
name: "Smdsel",
components:{
"m-smdp01" : Smdp01,
},
provide() {
return {
root: this
}
},
mixins: [event], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "smdp01",
trnName: "smdsel",
model: new Smdsel().data,
rules: null,
codes:{...CodeTable},
};
},
methods:{},
created:async function() {},
};
</script>
<style scoped>
</style>
<div class="eContainer-search">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small"
:validate-on-rule-change="false">
<c-content>
<m-smdp01 :model="model" :codes="codes" ref="smdp01" />
</c-content>
</el-form>
</div>
</template>
<script>
import CodeTable from "~/config/CodeTable";
import Smdsel from "../model";
import event from "../event"
import Smdp01 from "./Smdp01.vue"
export default {
name: "Smdsel",
components: {
"m-smdp01": Smdp01,
},
provide() {
return {
root: this
}
},
mixins: [event],
data() {
return {
trnName: "smdsel",
model: new Smdsel().data,
rules: null,
codes: { ...CodeTable },
};
},
methods: {},
created: async function () { },
};
</script>
<style scoped></style>
\ No newline at end of file
import Api from "~/service/Api";
import moment from "moment";
export default {
methods: {
async handleSearch() {
this.load = true;
let rtnmsg = await Api.post("/frontend/smpsel", {
...this.model,
pageNumber: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
});
if (rtnmsg.respCode == SUCCESS) {
this.load = false;
this.model.smpgrp.smpsub.lst = [];
this.model.smpgrp.smpsub.lst = rtnmsg.data.list;
this.pagination = {
pageNum: rtnmsg.data.pageNum || 1,
pageSize: rtnmsg.data.pageSize || 10,
total: parseInt(rtnmsg.data.total),
};
} else {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.服务请求失败!"),
});
}
this.load = false;
},
async handleReset() {
this.model.smdp.smdsup.ptpmod.pty.extkey = ''
this.model.smdp.smdsup.act = ''
this.model.smdp.smdsup.cur = ''
},
// pageSize改变
handleSizeChange(val) {
this.pagination.pageNum = 1;
this.pagination.pageSize = val;
this.handleSearch();
},
// 页码改变
handleCurrentChange(val) {
this.pagination.pageNum = val;
this.handleSearch();
},
},
};
export default {
"smpp.smpsup.ptpmod.pty.extkey": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"smpp.smpsup.ptpmod.pty.chnnam": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"smpp.smpsup.act": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"smpp.smpsup.ref": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"smpp.smpsup.smtno": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"smpp.smpsup.begnum": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"smpp.smpsup.endnum": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"smpp.smpsup.begdat": [
{ type: "date", required: false, message: "输入正确的日期" }
],
"smpp.smpsup.enddat": [
{ type: "date", required: false, message: "输入正确的日期" }
],
"smpp.smpsup.valdatbeg": [
{ type: "date", required: false, message: "输入正确的日期" }
],
"smpp.smpsup.valdatend": [
{ type: "date", required: false, message: "输入正确的日期" }
],
}
\ No newline at end of file
import Pts from "~/page/Model/Common/Pts"
import Pub from "~/components/business/commonModel/index.js";
export default class Smpsel {
constructor() {
this.data = {
smpp: {
smpsup: {
smtno: "", // : .smpp.smpsup.smtno
begdat: "", // : .smpp.smpsup.begdat
enddat: "", // 至 .smpp.smpsup.enddat
cur: "", // : .smpp.smpsup.cur
ptpmod: {
pty: {
chnnam: "", // : .smpp.smpsup.ptpmod.pty.chnnam
extkey: "", // : .smpp.smpsup.ptpmod.pty.extkey
},
},
begnum: "", // : .smpp.smpsup.begnum
endnum: "", // 终止页码 .smpp.smpsup.endnum
ref: "", // : .smpp.smpsup.ref
valdatbeg: "", // : .smpp.smpsup.valdatbeg
valdatend: "", // 至 .smpp.smpsup.valdatend
act: "", // 帐号 .smpp.smpsup.act
exp: "", // 导出 .smpp.smpsup.exp
},
},
smpgrp: {
smpsub: {
lst: [], // .smpgrp.smpsub.lst
},
},
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-list-search @form-reset="handleReset" @form-search="handleSearch">
<!-- 持续展示区 -->
<template v-slot="searchSlot">
<el-row>
<c-col :span="24">
<c-col :span="8">
<c-form-item label="BIC码" prop="smpp.smpsup.ptpmod.pty.extkey">
<c-input v-model="model.smpp.smpsup.ptpmod.pty.extkey" maxlength="24"></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<c-form-item label="账户行名称" prop="smpp.smpsup.ptpmod.pty.chnnam">
<c-input v-model="model.smpp.smpsup.ptpmod.pty.chnnam" maxlength="100"></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<c-form-item label="帐号" prop="smpp.smpsup.act">
<c-input v-model="model.smpp.smpsup.act" maxlength="40"></c-input>
</c-form-item>
</c-col>
</c-col>
</el-row>
<!-- 可控展示区 -->
<el-row v-show="searchSlot.searchToggle">
<c-col :span="8">
<el-form-item label="币种" prop="smpp.smpsup.cur">
<c-select v-model="model.smpp.smpsup.cur" style="width:100%"></c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<c-form-item label="对账单参考号" prop="smpp.smpsup.ref">
<c-input v-model="model.smpp.smpsup.ref" maxlength="16"></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<c-form-item label="所属单编号" prop="smpp.smpsup.smtno">
<c-input v-model="model.smpp.smpsup.smtno" maxlength="16"></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="起止页码" style="width: 100%">
<c-col :span="11">
<c-input v-model="model.smpp.smpsup.begnum" maxlength="8"></c-input>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
</c-col>
<c-col :span="11">
<c-input v-model="model.smpp.smpsup.endnum" maxlength="8"></c-input>
</c-col>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="收报日期" style="width: 100%">
<c-col :span="11">
<c-date-picker type="date" v-model="model.smpp.smpsup.begdat" style="width:100%"></c-date-picker>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
</c-col>
<c-col :span="11">
<c-date-picker type="date" v-model="model.smpp.smpsup.enddat" style="width:100%"></c-date-picker>
</c-col>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="起息日期" style="width: 100%">
<c-col :span="11">
<c-date-picker type="date" v-model="model.smpp.smpsup.valdatbeg" style="width:100%"></c-date-picker>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
</c-col>
<c-col :span="11">
<c-date-picker type="date" v-model="model.smpp.smpsup.valdatend" style="width:100%"></c-date-picker>
</c-col>
</el-form-item>
</c-col>
</el-row>
</template>
</c-list-search>
<el-col :span="24" style="margin-top: 2px;margin-bottom: 1px;">
</el-col>
<el-col :span="24" style="margin-top: 10px">
<div>
<c-col :span="24">
<el-table
:data="model.smpgrp.smpsub.lst"
v-loading="load"
style="width: 100%"
size="small" :border="true"
height="calc(100vh - 280px)"
:highlight-current-row="true"
>
<el-table-column prop="chk" label="" width="30">
</el-table-column>
<el-table-column prop="recdat" label="收报日期" width="90">
</el-table-column>
<el-table-column prop="valdat" label="起息日期" width="90">
</el-table-column>
<el-table-column prop="chnnam" label="账户行名称" width="150">
</el-table-column>
<el-table-column prop="bic" label="BIC" width="90">
</el-table-column>
<el-table-column prop="act" label="帐号" width="100">
</el-table-column>
<el-table-column prop="cur" label="币种" width="100">
</el-table-column>
<el-table-column prop="ref" label="对账单参考号" width="130">
</el-table-column>
<el-table-column prop="smtno" label="所属单编号" width="150">
</el-table-column>
<el-table-column prop="pagnum" label="页码" width="50">
</el-table-column>
<el-table-column prop="pagamenum" label="修改后页码" width="150">
</el-table-column>
<el-table-column prop="begamt" label="页初金额" width="120">
</el-table-column>
<el-table-column prop="newbegamt" label="修改后页初金额" width="150">
</el-table-column>
<el-table-column prop="endamt" label="页末金额" width="120">
</el-table-column>
<el-table-column prop="newendamt" label="修改后页末金额" width="150">
</el-table-column>
<el-table-column prop="endvalamt" label="页末可用金额" width="150">
</el-table-column>
<el-table-column prop="dtlamt" label="明细条数" width="100">
</el-table-column>
</el-table>
<el-pagination layout="total, sizes, prev, pager, next, jumper" :total="pagination.total"
:page-size="pagination.pageSize" :current-page.sync="pagination.pageNum" @size-change="handleSizeChange"
@current-change="handleCurrentChange">
</el-pagination>
</c-col>
</div>
</el-col>
</div>
</template>
<script>
import event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
load: false,
pagination: {
pageNum: 1,
pageSize: 10,
total: 0,
},
};
},
computed: {
},
watch: {
},
methods: {},
mounted: function () {
},
};
</script>
<style lang="less" scoped>
::v-deep .c-content-scrollbar {
height: 100% !important;
}
.eibs-tabs /deep/ {
.m-table-search {
padding: 20px 0px 10px 0px;
}
}
.header-wrap {
height: 36px;
display: flex;
justify-content: space-between;
align-items: center;
.title {
font-size: 16px;
color: #000;
}
.close-btn {
padding: 3px;
cursor: pointer;
}
}
.m-list-btns {
height: 300px;
overflow: auto;
}
.medium_bcs {
border-radius: 5px;
}
.m-table-search {
padding: 20px 0px 10px 0px;
}
.pagination-box {
width: 100%;
height: 30px;
display: flex;
align-items: center;
justify-content: flex-end;
padding: 0 10px;
background: #fff;
margin-top: 5px;
}
.el-dialog__body {
padding: 10px 5px 50px;
}
.m-table-search {
padding: 20px 0px 10px 0px;
}
.btn-group-wrap {
max-height: 200px;
width: 100%;
overflow-y: auto;
display: flex;
align-items: flex-start;
justify-content: flex-start;
flex-wrap: wrap;
}
.btn-item {
margin-bottom: 10px;
margin-right: 10px;
}
</style>
<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-content>
<m-smpp01 :model="model" :codes="codes" />
</c-content>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Smpsel from "../model"
import Smpp01 from "./Smpp01"
export default {
name: "Smpsel",
components: {
"m-smpp01": Smpp01,
},
provide() {
return {
root: this
}
},
mixins: [],
data() {
return {
trnName: "smpsel",
model: new Smpsel().data,
rules: null,
codes: {
},
}
},
methods: {
},
created: async function () {
console.log("进入smpsel交易");
}
}
</script>
<style></style>
export default{
mixins: [],
methods: {
async handleReset(){
this.model.extkey = "";
this.model.sndref = "";
this.model.flg= "";
this.model.sta = "";
this.model.acksrv = "";
this.model.elcmsgtyp=""
this.model.rcvdat = $CurDate();
this.model.gendat = new Date(($CurDate()).getTime()-(7*24*60 *60 * 1800));
this.model.endgendat = $CurDate();
}
}
export default {
mixins: [],
methods: {
async handleSearch() {
this.load = true;
let rtnmsg = await Api.post("/frontend/smtsel", {
...this.model,
pageNumber: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
});
if (rtnmsg.respCode == SUCCESS) {
this.load = false;
this.tableData = [];
this.tableData = rtnmsg.data.list;
this.pagination = {
pageNum: rtnmsg.data.pageNum || 1,
pageSize: rtnmsg.data.pageSize || 10,
total: parseInt(rtnmsg.data.total),
};
} else {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.服务请求失败!"),
});
}
this.load = false;
},
async handleReset() {
this.model.extkey = "";
this.model.sndref = "";
this.model.flg = "";
this.model.sta = "";
this.model.acksrv = "";
this.model.elcmsgtyp = ""
this.model.rcvdat = $CurDate();
this.model.gendat = new Date(($CurDate()).getTime() - (7 * 24 * 60 * 60 * 1800));
this.model.endgendat = $CurDate();
},
// pageSize改变
handleSizeChange(val) {
this.pagination.pageNum = 1;
this.pagination.pageSize = val;
this.handleSearch();
},
// 页码改变
handleCurrentChange(val) {
this.pagination.pageNum = val;
this.handleSearch();
},
}
}
\ No newline at end of file
import Utils from "~/utils"
/**
* Smtsel Check规则
*/
let checkObj = {
"smtp.smtsup.ptpmod.pty.extkey" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Smtsel 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 onPtpmodSel(){
let rtnmsg = await this.executeRule("ptpmod.sel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSmtsupSel(){
let rtnmsg = await this.executeRule("smtsup.sel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSmtsupClr(){
let rtnmsg = await this.executeRule("smtsup.clr")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSmtsupAllchk(){
let rtnmsg = await this.executeRule("smtsup.allchk")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSmtsupOpp(){
let rtnmsg = await this.executeRule("smtsup.opp")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSmtsupLook(){
let rtnmsg = await this.executeRule("smtsup.look")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSmtsupDtllok(){
let rtnmsg = await this.executeRule("smtsup.dtllok")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"smtp.smtsup.ptpmod.pty.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"smtp.smtsup.ptpmod.pty.chnnam":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"smtp.smtsup.act":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"smtp.smtsup.ref":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"smtp.smtsup.smtno":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"smtp.smtsup.begdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"smtp.smtsup.enddat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"smtp.smtsup.valdatbeg":[
{type: "date", required: false, message: "输入正确的日期"}
],
"smtp.smtsup.valdatend":[
{type: "date", required: false, message: "输入正确的日期"}
],
}
\ No newline at end of file
......@@ -2,34 +2,34 @@ import Api from "~/service/Api"
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
},
},
smtgrp: {
smtsub: {
lst: [], // .smtgrp.smtsub.lst
},
},
pageId: "" // ctx的key
}
}
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
},
},
smtgrp: {
smtsub: {
lst: [], // .smtgrp.smtsub.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">
<!--smtp PD000000 -->
<el-tab-pane :label="$t('smtp.对账单查询')" name="smtp01">
<m-smtp01 :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small"
:validate-on-rule-change="false">
<c-content>
<m-smtp01 :model="model" :codes="codes" />
</c-content>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess"
import Smtsel from "../model/index"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Smtp01 from "./Smtp01"
import CodeTable from "@/config/CodeTable";
export default {
name: "Smtsel",
components:{
"m-smtp01" : Smtp01,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "smtp01",
trnName: "smtsel",
trnType: "",
model: new Smtsel().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes:{...CodeTable},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入smtsel交易");
// let rtnmsg = await this.init({})
// if(rtnmsg.respCode == SUCCESS)
// {
// this.updateModel(rtnmsg.data)
// //TODO 处理数据逻辑
// }
// else
// {
// this.$notify.error({title: '错误',message: '服务请求失败!'});
// }
name: "Smtsel",
components: {
"m-smtp01": Smtp01,
},
provide() {
return {
root: this
}
},
mixins: [],
data() {
return {
trnName: "smtsel",
model: new Smtsel().data,
rules: null,
codes: { ...CodeTable },
}
},
methods: {
},
created: async function () {
console.log("进入smtsel交易");
}
}
</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