Commit c4e70f82 by 李少勇

smtame 交易优化修改

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