Commit c4e70f82 by 李少勇

smtame 交易优化修改

parent 07776e71
import Api from "~/service/Api";
import moment from "moment";
import Smtame from "../model";
import Utils from "~/utils";
export default {
methods: {
async handleSearch() {
},
async handleReset() {
let resetModel = new Smtame().data
Utils.copyValueFromVoData(this.model, resetModel);
this.handleSearch();
},
// pageSize改变
handleSizeChange(val) {
......@@ -20,7 +23,7 @@ export default {
this.pagination.pageNum = val;
this.handleSearch();
},
handleSelectionChange(val){
handleSelectionChange(val) {
this.multipleSelection = val;
}
},
......
import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts"
export default class Smtame {
constructor() {
this.data = {
......@@ -30,7 +27,6 @@ export default class Smtame {
lst: [], // .smtgrp.smtsub.lst
},
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
......@@ -12,6 +12,12 @@
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="BIC" prop="subtype" style="width: 100%">
<c-input v-model="model.smtp.smtsup.ptpmod.pty.extkey" maxlength="24">
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="开立日期" prop="rcvdatsta" style="width: 100%">
<c-col :span="11">
<c-date-picker type="date" v-model="model.smtp.smtsup.begdat" style="width: 100%"></c-date-picker>
......@@ -24,12 +30,6 @@
</c-col>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="BIC" prop="subtype" style="width: 100%">
<c-input v-model="model.smtp.smtsup.ptpmod.pty.extkey" maxlength="24" >
</c-input>
</el-form-item>
</c-col>
</c-col>
</el-row>
<!-- 可控展示区 -->
......@@ -42,7 +42,7 @@
</c-col>
<c-col :span="8">
<el-form-item label="帐号" prop="revbak" style="width: 100%">
<c-input v-model="model.smtp.smtsup.act" maxlength="40"/>
<c-input v-model="model.smtp.smtsup.act" maxlength="40" />
</el-form-item>
</c-col>
<c-col :span="8">
......@@ -54,19 +54,15 @@
<c-col :span="24">
<c-col :span="8">
<el-form-item label="错误类型" prop="ownref" style="width: 100%">
<c-select v-model="model.smtp.smtsup.errtyp" style="width:100%" >
<el-option
v-for="item in codes.errtyp"
:key="item.value"
:label="item.label"
:value="item.value">
<c-select v-model="model.smtp.smtsup.errtyp" style="width:100%">
<el-option v-for="item in codes.errtyp" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="对账单参考号" prop="othref" style="width: 100%">
<c-input v-model="model.smtp.smtsup.ref" maxlength="40" >
<c-input v-model="model.smtp.smtsup.ref" maxlength="40">
</c-input>
</el-form-item>
</c-col>
......@@ -97,11 +93,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') }}
......@@ -111,24 +107,31 @@
<el-col :span="24" style="margin-top: 10px">
<div style="height: 90%">
<c-col :span="24">
<el-tabs v-model="activeTab" class="y-tabs">
<el-tab-pane label="问题、异常对账单" name="fb">
<el-table :data="stmData.data" :columns="stmData.columns" v-loading="load" style="width: 100%"
<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">
size="small"
:border="true" height="calc(100vh - 310px)"
: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">
<template slot-scope="scope">
<c-select-value-to-label v-if="item.prop == 'sta'" v-model="scope.row.sta" :code="codes.stacod"></c-select-value-to-label>
<span v-else-if="item.prop == 'amt'">{{ moneyFormat(scope.row.amt, scope.row.cur) }}</span>
<span v-else>{{ scope.row[item.prop] }}</span>
</template>
</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"
<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>
</el-tab-pane>
</el-tabs>
</c-col>
</div>
</el-col>
......@@ -143,21 +146,20 @@ export default {
mixins: [event],
data() {
return {
activeTab: 'fb',
load: false,
subtypCodes: [],
multipleSelection:[],
multipleSelection: [],
stmData: {
columns: [
{
label: "起息日",
prop: "valdat",
width: "180px"
width: "120px"
},
{
label: "20域编号",
prop: "ownref",
width: "180px"
width: "120px"
},
{
label: "21域名编号",
......@@ -167,7 +169,7 @@ export default {
{
label: "币种",
prop: "cur",
width: "120px"
width: "80px"
},
{
label: "金额",
......@@ -202,12 +204,12 @@ export default {
{
label: "账户行BIC(53域)",
prop: "actbic",
width: "120px"
width: "150px"
},
{
label: "账户行BIC(54域)",
prop: "actbic",
width: "250px"
width: "150px"
},
{
label: "发报行BIC",
......@@ -227,17 +229,17 @@ export default {
{
label: "GPI标识",
prop: "gpi",
width: "150px"
width: "120px"
},
{
label: "子系统",
prop: "",
width: "150px"
width: "120px"
},
{
label: "处理时间",
prop: "sttdattim",
width: "150px"
width: "170px"
},
],
data: [],
......@@ -250,11 +252,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"
>
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small"
:validate-on-rule-change="false">
<c-content>
<m-smtp03 :model="model" :codes="codes" ref="smtp03"/>
<m-smtp03 :model="model" :codes="codes" ref="smtp03" />
</c-content>
</el-form>
</div>
</template>
<script>
import CodeTable from "~/config/CodeTable";
import Smtame from "../model";
import event from "../event"
import Smtp03 from "./Smtp03.vue"
export default {
name: "Smtame",
components:{
"m-smtp03" : Smtp03,
components: {
"m-smtp03": Smtp03,
},
provide() {
......@@ -35,20 +26,18 @@ export default {
root: this
}
},
mixins: [event], // 里面包含了Default、Check等的公共处理
data(){
mixins: [event],
data() {
return {
tabVal: "smtp03",
trnName: "smtame",
model: new Smtame().data,
rules: null,
codes:{...CodeTable},
codes: { ...CodeTable },
};
},
methods:{},
created:async function() {},
methods: {},
created: async function () { },
};
</script>
<style scoped>
</style>
<style scoped></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