Commit 7b95c46c by 李少勇

smtsel和smpsel交易调整

parent f6fee93e
import Api from "~/service/Api";
import moment from "moment";
import Smpsel from "../model";
import Utils from "~/utils";
export default {
methods: {
async handleSearch() {
......@@ -28,9 +29,8 @@ export default {
this.load = false;
},
async handleReset() {
this.model.smdp.smdsup.ptpmod.pty.extkey = ''
this.model.smdp.smdsup.act = ''
this.model.smdp.smdsup.cur = ''
let resetModel = new Smpsel().data
Utils.copyValueFromVoData(this.model, resetModel);
},
// pageSize改变
handleSizeChange(val) {
......
......@@ -12,10 +12,10 @@ export default class Smpsel {
smtno: "",
begnum: "",
endnum: "",
begdat: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)),
enddat: new Date(),
valdatbeg: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)),
valdatend: new Date(),
begdat: '',
enddat: '',
valdatbeg: '',
valdatend: '',
smpp: {
smpsup: {
smtno: "", // : .smpp.smpsup.smtno
......
......@@ -97,37 +97,52 @@
height="calc(100vh - 280px)"
:highlight-current-row="true"
>
<el-table-column prop="chk" label="" width="30">
<!-- <el-table-column prop="chk" label="" width="30">
</el-table-column> -->
<el-table-column prop="recdat" label="收报日期" width="120">
</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 prop="valdat" label="起息日期" width="120">
</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 prop="bic" label="BIC" width="150">
</el-table-column>
<el-table-column prop="act" label="帐号" width="100">
<el-table-column prop="act" label="帐号" width="150">
</el-table-column>
<el-table-column prop="cur" label="币种" width="100">
<el-table-column prop="cur" label="币种" width="80">
</el-table-column>
<el-table-column prop="ref" label="对账单参考号" width="130">
<el-table-column prop="ref" label="对账单参考号" width="150">
</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 prop="pagnum" label="页码" width="100">
</el-table-column>
<el-table-column prop="pagamenum" label="修改后页码" width="150">
<el-table-column prop="pagamenum" label="修改后页码" width="120">
</el-table-column>
<el-table-column prop="begamt" label="页初金额" width="120">
<template slot-scope="scope">
{{ moneyFormat(scope.row.begamt, scope.row.cur) }}
</template>
</el-table-column>
<el-table-column prop="newbegamt" label="修改后页初金额" width="150">
<template slot-scope="scope">
{{ moneyFormat(scope.row.newbegamt, scope.row.cur) }}
</template>
</el-table-column>
<el-table-column prop="endamt" label="页末金额" width="120">
<template slot-scope="scope">
{{ moneyFormat(scope.row.endamt, scope.row.cur) }}
</template>
</el-table-column>
<el-table-column prop="newendamt" label="修改后页末金额" width="150">
<template slot-scope="scope">
{{ moneyFormat(scope.row.newendamt, scope.row.cur) }}
</template>
</el-table-column>
<el-table-column prop="endvalamt" label="页末可用金额" width="150">
<template slot-scope="scope">
{{ moneyFormat(scope.row.endvalamt, scope.row.cur) }}
</template>
</el-table-column>
<el-table-column prop="dtlamt" label="明细条数" width="100">
</el-table-column>
......
<template>
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small"
<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-smpp01 :model="model" :codes="codes" />
......
import Api from "~/service/Api";
import Smtsel from "../model";
import Utils from "~/utils";
export default {
mixins: [],
methods: {
......@@ -25,15 +27,8 @@ export default {
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();
let resetModel = new Smtsel().data
Utils.copyValueFromVoData(this.model, resetModel);
},
// pageSize改变
handleSizeChange(val) {
......
......@@ -7,138 +7,86 @@
<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%"
:code="codes.smttyp"
/>
<c-select v-model="model.smtp.smtsup.typ" style="width: 100%" :code="codes.smttyp" />
</el-form-item>
</c-col>
<c-col :span="8">
<c-col :span="22">
<c-form-item label="BIC" prop="smtp.smtsup.ptpmod.pty.extkey">
<c-input
v-model="model.smtp.smtsup.ptpmod.pty.extkey"
maxlength="24"
placeholder="请输入BIC"
></c-input>
<c-input v-model="model.smtp.smtsup.ptpmod.pty.extkey" maxlength="24" placeholder="请输入BIC"></c-input>
</c-form-item>
</c-col>
<c-col :span="2">
<c-button
size="small"
type="primary"
icon="el-icon-search"
>
<c-button size="small" type="primary" icon="el-icon-search">
</c-button>
</c-col>
</c-col>
<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="请输入账户行名称"
></c-input>
<c-form-item label="账户行名称" prop="smtp.smtsup.ptpmod.pty.chnnam">
<c-input v-model="model.smtp.smtsup.ptpmod.pty.chnnam" maxlength="100" placeholder="请输入账户行名称"></c-input>
</c-form-item>
</c-col>
</c-col>
</el-row>
<el-row v-show="searchSlot.searchToggle">
<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="请输入帐号"
></c-input>
<c-input v-model="model.smtp.smtsup.act" maxlength="40" placeholder="请输入帐号"></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="币种" prop="smtp.smtsup.cur">
<c-select
v-model="model.smtp.smtsup.cur"
style="width: 100%" dbCode="curtxt"/>
<c-select v-model="model.smtp.smtsup.cur" style="width: 100%" dbCode="curtxt" />
</el-form-item>
</c-col>
<c-col :span="8">
<c-form-item label="对账单参考号" prop="smtp.smtsup.ref">
<c-input
v-model="model.smtp.smtsup.ref"
maxlength="16"
placeholder="请输入对账单参考号"
></c-input>
<c-input v-model="model.smtp.smtsup.ref" maxlength="16" placeholder="请输入对账单参考号"></c-input>
</c-form-item>
</c-col>
</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="请输入对账单编号"
></c-input>
<c-input v-model="model.smtp.smtsup.smtno" maxlength="16" placeholder="请输入对账单编号"></c-input>
</c-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.smtp.smtsup.begdat"
style="width: 100%"
placeholder="请选择收报日期"
value-format="yyyy-MM-dd"
></c-date-picker>
<c-date-picker type="date" v-model="model.smtp.smtsup.begdat" style="width: 100%" placeholder="请选择收报日期"
value-format="yyyy-MM-dd"></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.smtp.smtsup.enddat"
style="width: 100%"
placeholder=""
value-format="yyyy-MM-dd"
></c-date-picker>
<c-date-picker type="date" v-model="model.smtp.smtsup.enddat" style="width: 100%" placeholder=""
value-format="yyyy-MM-dd"></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.smtp.smtsup.valdatbeg"
style="width: 100%"
placeholder="请选择起息日期"
></c-date-picker>
<c-date-picker type="date" v-model="model.smtp.smtsup.valdatbeg" style="width: 100%"
placeholder="请选择起息日期"></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.smtp.smtsup.valdatend"
style="width: 100%"
placeholder=""
value-format="yyyy-MM-dd"
></c-date-picker>
<c-date-picker type="date" v-model="model.smtp.smtsup.valdatend" style="width: 100%" placeholder=""
value-format="yyyy-MM-dd"></c-date-picker>
</c-col>
</el-form-item>
</c-col>
......@@ -148,79 +96,49 @@
</c-list-search>
<el-col :span="24" style="margin-left: 0px">
<c-button
class="medium_bcs"
style="margin-left: 20"
size="medium"
type="primary"
@click="batchupdateAck"
>导出</c-button>
<c-button class="medium_bcs" style="margin-left: 20" size="medium" type="primary"
@click="batchupdateAck">导出</c-button>
</el-col>
<el-col :span="24" style="margin-top: 10px">
<div>
<c-col :span="24">
<el-table
:span="24"
id="infgidSptableRef"
:data="tableData"
:highlight-current-row="true"
:border="true"
v-loading="load"
style="width: 100%"
height="calc(100vh - 320px)"
size="medium"
>
<el-table-column
prop="recdat"
label="收报日期"
width="150"
>
<el-table :span="24" id="infgidSptableRef" :data="tableData" :highlight-current-row="true" :border="true"
v-loading="load" style="width: 100%" height="calc(100vh - 320px)" size="medium">
<el-table-column prop="recdat" label="收报日期" width="120">
</el-table-column>
<el-table-column
prop="valdat"
label="起息日期"
width="150"
>
<el-table-column prop="valdat" label="起息日期" width="120">
</el-table-column>
<el-table-column
prop="chnnam"
label="账户行名称"
width="150"
></el-table-column>
<el-table-column prop="chnnam" label="账户行名称" width="150"></el-table-column>
<el-table-column prop="bic" label="BIC" width="150">
</el-table-column>
<el-table-column prop="acc" label="帐号" width="100">
<el-table-column prop="acc" label="帐号" width="120">
</el-table-column>
<el-table-column prop="cur" label="币种" width="100">
<el-table-column prop="cur" label="币种" width="80">
</el-table-column>
<el-table-column
prop="ref"
label="对账单参考号"
width="180"
></el-table-column>
<el-table-column prop="ref" label="对账单参考号" width="150"></el-table-column>
<el-table-column prop="smtno" label="单编号" width="150">
</el-table-column>
<el-table-column
prop="begamt"
label="期初金额"
width="150"
></el-table-column>
<el-table-column
prop="endamt"
label="期末金额"
width="120"
></el-table-column>
<el-table-column
prop="endvalamt"
label="期末可用金额"
width="180"
></el-table-column>
<el-table-column prop="typ" label="对账单类型" width="180">
<el-table-column prop="begamt" label="期初金额" width="120">
<template slot-scope="scope">
{{ moneyFormat(scope.row.begamt, scope.row.cur) }}
</template>
</el-table-column>
<el-table-column prop="endamt" label="期末金额" width="120">
<template slot-scope="scope">
{{ moneyFormat(scope.row.endamt, scope.row.cur) }}
</template>
</el-table-column>
<el-table-column prop="endvalamt" label="期末可用金额" width="150">
<template slot-scope="scope">
{{ moneyFormat(scope.row.endvalamt, scope.row.cur) }}
</template>
</el-table-column>
<el-table-column prop="typ" label="对账单类型" width="150">
</el-table-column>
<el-table-column prop="pag" label="页数" width="80">
<el-table-column prop="pag" label="页数" width="100">
</el-table-column>
<el-table-column prop="dtl" label="明细条数" width="150">
<el-table-column prop="dtl" label="明细条数" width="100">
</el-table-column>
<!-- <el-table-column label="操作" fixed="right" min-width="150">
<template slot-scope="scope">
......@@ -241,14 +159,9 @@
</el-table-column> -->
</el-table>
<el-pagination
layout="total, sizes, prev, pager, next, jumper"
:total="pagenation.total"
:page-size="pagenation.pageSize"
:current-page="pagenation.pageNum"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
></el-pagination>
<el-pagination layout="total, sizes, prev, pager, next, jumper" :total="pagenation.total"
:page-size="pagenation.pageSize" :current-page="pagenation.pageNum" @size-change="handleSizeChange"
@current-change="handleCurrentChange"></el-pagination>
</c-col>
<!--预览弹框-->
<message-view ref="msgView" :model="model"></message-view>
......@@ -308,5 +221,4 @@ export default {
},
};
</script>
<style>
</style>
<style></style>
<template>
<div class="eContainer">
<div class="eContainer-search">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small"
:validate-on-rule-change="false">
<c-content>
......
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