Commit 21e49d7e by 李少勇

sndsel 交易优化修改

parent c51447e5
<template> <template>
<div class="eContainer-search"> <div class="eContainer-search">
<el-form <el-form
:model="model" :model="model"
:rules="rules" :rules="rules"
ref="modelForm" ref="modelForm"
label-width="120px" label-width="120px"
label-position="right" label-position="right"
size="small" size="small"
:validate-on-rule-change="false" :validate-on-rule-change="false"
> >
<c-content> <c-content>
<m-schpnl :model="model" :codes="codes" ref="schpnl"/> <m-schpnl :model="model" :codes="codes" ref="schpnl"/>
......
import Api from "~/service/Api"; import Api from "~/service/Api";
import getSubtyp from '~/page/Frontend/Rcvsel/event/getSubtyp.js'; import getSubtyp from '~/page/Frontend/Rcvsel/event/getSubtyp.js';
import moment from "moment"; import moment from "moment";
import Sndsel from "../model";
import Utils from "~/utils";
export default { export default {
mixins: [getSubtyp], mixins: [getSubtyp],
...@@ -60,23 +62,9 @@ export default { ...@@ -60,23 +62,9 @@ export default {
this.load = false; this.load = false;
}, },
async handleReset() { async handleReset() {
this.model.sndp.msgtyp = ""; let resetModel = new Sndsel().data
this.model.sndp.rcvdatsta = new Date(); Utils.copyValueFromVoData(this.model, resetModel);
this.model.sndp.rcvdatend = new Date(); this.handleSearch();
this.model.sndp.subtyp = "";
this.model.sndp.sndbak = "";
this.model.sndp.revbak = "";
this.model.sndp.actbic = "";
this.model.sndp.othref = "";
this.model.sndp.ownref = "";
this.model.sndp.cur = "";
this.model.sndp.act = "";
this.model.sndp.amtmin = "";
this.model.sndp.amtmax = "";
this.model.sndp.chnipt = "";
this.model.sndp.rspsta = "";
this.model.sndp.dtlchg = "";
this.model.sndp.sta = "";
}, },
// pageSize改变 // pageSize改变
handleSizeChange(val) { handleSizeChange(val) {
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
<c-col :span="24"> <c-col :span="24">
<c-col :span="8"> <c-col :span="8">
<el-form-item label="报文标准" prop="msgtyp" style="width: 100%"> <el-form-item label="报文标准" prop="msgtyp" style="width: 100%">
<c-select v-model="model.sndp.msgtyp" style="width: 100%" placeholder="请选择报文标准" :code="codes.msgtyp3" @change="getSubtyp(model.sndp.msgtyp, 'sndp.subtyp')"> <c-select v-model="model.sndp.msgtyp" style="width: 100%" placeholder="请选择报文标准" :code="codes.msgtyp3"
@change="getSubtyp(model.sndp.msgtyp, 'sndp.subtyp')">
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -129,16 +130,16 @@ ...@@ -129,16 +130,16 @@
</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"
style="margin-left: 20" type="primary">ReRouting type="primary">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') }}
</c-button> </c-button>
</el-col> </el-col>
<el-col :span="24" style="margin-top: 10px"> <el-col :span="24" style="margin-top: 10px">
<div style="height: 90%"> <div style="height: 90%">
...@@ -146,17 +147,17 @@ ...@@ -146,17 +147,17 @@
<el-tabs v-model="activeTab" class="y-tabs"> <el-tabs v-model="activeTab" class="y-tabs">
<el-tab-pane label="发报查询" name="fb"> <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" @selection-change="handleSelectionChange" @row-dblclick="dbClickRow" size="small" :border="true"
@row-dblclick="dbClickRow" height="calc(100vh - 420px)" :highlight-current-row="true">
size="small" :border="true" height="calc(100vh - 420px)" :highlight-current-row="true"> <el-table-column type="selection" width="55">
<el-table-column type="selection" width="55">
</el-table-column> </el-table-column>
<el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop" <el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop"
:min-width="item.width"> :min-width="item.width">
<template slot-scope="scope"> <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> <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>{{ scope.row[item.prop] }}</span> <span v-else-if="item.prop == 'amt'">{{ moneyFormat(scope.row.amt, scope.row.cur) }}</span>
</template> <span v-else>{{ scope.row[item.prop] }}</span>
</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -183,7 +184,7 @@ export default { ...@@ -183,7 +184,7 @@ export default {
activeTab: 'fb', activeTab: 'fb',
load: false, load: false,
subtypCodes: [], subtypCodes: [],
multipleSelection:[], multipleSelection: [],
stmData: { stmData: {
columns: [ columns: [
{ {
...@@ -204,17 +205,17 @@ export default { ...@@ -204,17 +205,17 @@ export default {
{ {
label: "币种", label: "币种",
prop: "cur", prop: "cur",
width: "100px" width: "80px"
}, },
{ {
label: "金额", label: "金额",
prop: "amt", prop: "amt",
width: "100px" width: "120px"
}, },
{ {
label: "账号", label: "账号",
prop: "act", prop: "act",
width: "120px" width: "150px"
}, },
{ {
label: "费用明细", label: "费用明细",
...@@ -224,7 +225,7 @@ export default { ...@@ -224,7 +225,7 @@ export default {
{ {
label: "报文类型", label: "报文类型",
prop: "subtyp", prop: "subtyp",
width: "120px" width: "150px"
}, },
{ {
label: "行内系统", label: "行内系统",
...@@ -259,17 +260,17 @@ export default { ...@@ -259,17 +260,17 @@ export default {
{ {
label: "报文标准", label: "报文标准",
prop: "msgtyp", prop: "msgtyp",
width: "150px" width: "120px"
}, },
{ {
label: "GPI标识", label: "GPI标识",
prop: "gpi", prop: "gpi",
width: "150px" width: "120px"
}, },
{ {
label: "子系统", label: "子系统",
prop: "zxt", prop: "zxt",
width: "150px" width: "120px"
}, },
{ {
label: "处理时间", label: "处理时间",
...@@ -287,16 +288,16 @@ export default { ...@@ -287,16 +288,16 @@ 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;
} }
}, },
watch: { watch: {
}, },
methods: { methods: {
dbClickRow(row) { dbClickRow(row) {
......
...@@ -15,12 +15,10 @@ import Sndsel from "../model"; ...@@ -15,12 +15,10 @@ import Sndsel from "../model";
import event from "../event" import event from "../event"
import Schpnl from "./Schpnl.vue" import Schpnl from "./Schpnl.vue"
export default { export default {
name: "Sndsel", name: "Sndsel",
components: { components: {
"m-schpnl": Schpnl, "m-schpnl": Schpnl,
}, },
provide() { provide() {
return { return {
......
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