Commit c51447e5 by 李少勇

rcvsel交易优化修改

parent 7b95c46c
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 Rcvsel from "../model";
import Utils from "~/utils";
export default { export default {
mixins: [getSubtyp], mixins: [getSubtyp],
...@@ -60,24 +62,9 @@ export default { ...@@ -60,24 +62,9 @@ export default {
this.load = false; this.load = false;
}, },
async handleReset() { async handleReset() {
this.model.rcvp.msgtyp = ""; let resetModel = new Rcvsel().data
this.model.rcvp.rcvdatsta = new Date(); Utils.copyValueFromVoData(this.model, resetModel);
this.model.rcvp.rcvdatend = new Date(); this.handleSearch();
this.model.rcvp.subtyp = "";
this.model.rcvp.sndbak = "";
this.model.rcvp.revbak = "";
this.model.rcvp.actbic = "";
this.model.rcvp.othref = "";
this.model.rcvp.ownref = "";
this.model.rcvp.cur = "";
this.model.rcvp.act = "";
this.model.rcvp.amtmin = "";
this.model.rcvp.amtmax = "";
this.model.rcvp.chnipt = "";
this.model.rcvp.rspsta = "";
this.model.rcvp.dtlchg = "";
this.model.rcvp.sta = "";
this.model.rcvp.gpi = "";
}, },
// pageSize改变 // pageSize改变
handleSizeChange(val) { handleSizeChange(val) {
......
import Utils from "~/utils" export default {
/** "rcvp.rcvdatsta": [
* Rcvselblk Check规则 { type: "date", required: false, message: "输入正确的日期" }
*/ ],
let checkObj = { "rcvp.rcvdatend": [
"rcvp.sndbak" :null, { type: "date", required: false, message: "输入正确的日期" }
"rcvp.actbic" :null, ],
"rcvp.revbak" :null,
"rcvp.msgtyp" :null,
"rcvp.othref" :null,
"rcvp.rcvdatend" :null,
"rcvp.ownref" :null,
"rcvp.amtmax" :null,
"rcvp.amtmin" :null,
"rcvp.rcvdatsta" :null,
} "rcvp.sndbak": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"rcvp.revbak": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"rcvp.actbic": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"rcvp.othref": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"rcvp.ownref": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
for (const key in checkObj) { "rcvp.act": [
if (Object.hasOwnProperty.call(checkObj, key)) { { type: "string", required: false, message: "必输项" },
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key) { max: 0, message: "长度不能超过0" }
} ],
}
export default checkObj
"rcvp.amtmin": [
{ type: "string", required: false, message: "必输项" },
{ max: 18, message: "长度不能超过18" }
],
"rcvp.amtmax": [
{ type: "string", required: false, message: "必输项" },
{ max: 18, message: "长度不能超过18" }
],
}
\ No newline at end of file
/**
* Rcvselblk Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
}
//你可以添加自动default处理
export default {
"rcvp.rcvdatsta":[
{type: "date", required: false, message: "输入正确的日期"}
],
"rcvp.rcvdatend":[
{type: "date", required: false, message: "输入正确的日期"}
],
"rcvp.sndbak":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"rcvp.revbak":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"rcvp.actbic":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"rcvp.othref":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"rcvp.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"rcvp.act":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"rcvp.amtmin":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"长度不能超过18"}
],
"rcvp.amtmax":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"长度不能超过18"}
],
}
\ No newline at end of file
...@@ -28,7 +28,6 @@ export default class Rcvsel { ...@@ -28,7 +28,6 @@ export default class Rcvsel {
msggrp: { msggrp: {
rcvlst: [], // .msggrp.rcvlst rcvlst: [], // .msggrp.rcvlst
}, },
pageId: "" // ctx的key
} }
} }
} }
\ No newline at end of file
...@@ -161,6 +161,7 @@ ...@@ -161,6 +161,7 @@
<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 v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop" :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-if="item.prop == 'amt'">{{ moneyFormat(scope.row.amt, scope.row.cur) }}</span>
<span v-else>{{ scope.row[item.prop] }}</span> <span v-else>{{ scope.row[item.prop] }}</span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -253,12 +254,12 @@ export default { ...@@ -253,12 +254,12 @@ export default {
{ {
label: "发报行BIC", label: "发报行BIC",
prop: "sndbic", prop: "sndbic",
width: "120px" width: "150px"
}, },
{ {
label: "收报行BIC", label: "收报行BIC",
prop: "rcvbic", prop: "rcvbic",
width: "120px" width: "150px"
}, },
{ {
label: "报文标准", label: "报文标准",
......
...@@ -18,11 +18,10 @@ ...@@ -18,11 +18,10 @@
<script> <script>
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Sndsel from "../model"; import Rcvsel 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: "Rcvsel", name: "Rcvsel",
components:{ components:{
...@@ -34,12 +33,12 @@ export default { ...@@ -34,12 +33,12 @@ export default {
root: this root: this
} }
}, },
mixins: [event], // 里面包含了Default、Check等的公共处理 mixins: [event],
data(){ data(){
return { return {
tabVal: "schpnl", tabVal: "schpnl",
trnName: "sndsel", trnName: "rcvsel",
model: new Sndsel().data, model: new Rcvsel().data,
rules: null, rules: null,
codes:{...CodeTable}, codes:{...CodeTable},
}; };
......
...@@ -31,6 +31,7 @@ export default { ...@@ -31,6 +31,7 @@ export default {
async handleReset() { async handleReset() {
let resetModel = new Smpsel().data let resetModel = new Smpsel().data
Utils.copyValueFromVoData(this.model, resetModel); Utils.copyValueFromVoData(this.model, resetModel);
this.handleSearch();
}, },
// pageSize改变 // pageSize改变
handleSizeChange(val) { handleSizeChange(val) {
......
...@@ -29,6 +29,7 @@ export default { ...@@ -29,6 +29,7 @@ export default {
async handleReset() { async handleReset() {
let resetModel = new Smtsel().data let resetModel = new Smtsel().data
Utils.copyValueFromVoData(this.model, resetModel); Utils.copyValueFromVoData(this.model, resetModel);
this.handleSearch();
}, },
// pageSize改变 // pageSize改变
handleSizeChange(val) { handleSizeChange(val) {
......
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