Commit 8540ea43 by zhoujunpeng

Merge branch 'develop' of http://192.168.0.110:11080/isc-v3.1/isc-web-vue into develop

parents 8b2b04f1 3886f947
import Utils from "~/utils";
export default {
methods: {
buildPtspta(ptsptaObj) {
let pts = ptsptaObj.pts;
return {
rol: pts.rol,
name: pts.nam,
ptyinr: pts.ptyinr,
ptainr: pts.ptainr,
extkey: pts.extkey,
dftdsp: pts.dftdsp,
dftcur: pts.dftcur,
dftact: pts.dftact,
dftfeecur: pts.dftfeecur,
dftactptainr: pts.dftactptainr,
glggrpflg: pts.glggrpflg,
adrblk: pts.adrblk,
pts,
};
},
buildCommonData(model, trnName) {
let ptsptaList = Utils.formatPtspta(model.crdgrp, this.buildPtspta);
return {
rec: {
objtyp: "OFT",
},
cbsMap: {
},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL",
};
},
},
};
import Api from "~/service/Api";
import moment from "moment";
export default {
methods: {
},
};
export default {
"oftp.smd.vludats": [
{ type: "string", required: false, message: "输入正确的日期" }
],
"oftp.smd.vludate": [
{ type: "string", required: false, message: "输入正确的日期" }
],
"oftp.smd.actbic": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"oftp.smd.sedbak": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"oftp.smd.revbak": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"oftp.smd.amtd": [
{ type: "string", required: false, message: "必输项" },
],
"oftp.smd.amtu": [
{ type: "string", required: false, message: "必输项" },
],
"oftp.smd.ref": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"oftp.smd.relref": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"oftp.smd.supdtl": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts"
export default class Oftopn {
constructor() {
this.data = {
oftp: {
smd: {
ref: "", // 参考号/前 .oftp.smd.ref
relref: "", // 参考号/后 .oftp.smd.relref
actbic: "", // 账户行BIC .oftp.smd.actbic
amtu: "", // 金额上限 .oftp.smd.amtu
amtd: "", // 金额下限 .oftp.smd.amtd
supdtl: "", // 补充细节 .oftp.smd.supdtl
vludats: "", // 起息日起始 .oftp.smd.vludats
vludate: "", // 起息日截止 .oftp.smd.vludate
sedbak: "", // 收报行BIC .oftp.smd.sedbak
revbak: "", // 发报行BIC .oftp.smd.revbak
sta: "", // 关联状态 .oftp.smd.sta
offsta: "", // 勾销状态 .oftp.smd.offsta
recsta: "", // 记账状态 .oftp.smd.recsta
dcflg2: "", // 借 贷 .oftp.smd.dcflg2
cur: "", // 币种 .oftp.smd.cur
},
stm3: "", // 导出 .oftp.stm3
},
fmsp: {
mdtmod: {
msgdtl: "", // 报文展示 .fmsp.mdtmod.msgdtl
},
},
oftgrp: {
dotsmd: {
lst: [], // .oftgrp.dotsmd.lst
total: 0
},
},
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<el-col :span="24" style="margin-top: 10px;margin-bottom: 10px;">
<c-button class="medium_bcs" size="medium" type="primary" style="margin-left: 0px">
手工关联
</c-button>
<c-button class="medium_bcs" size="medium" type="primary" style="margin-left: 30px">
提前放行
</c-button>
<c-button style="margin-left: 30px" class="medium_bcs" size="medium" type="primary">
导出
</c-button>
</el-col>
<c-col :span="24">
<div class="e-table-wrapper" style="margin-bottom: 20px;">
<el-table :data="model.oftgrp.dotsmd.lst" style="width: 100%">
<el-table-column prop="mty" label="报文类型" sortable width="100">
</el-table-column>
<el-table-column prop="rsptim" label="收报时间" sortable width="100">
</el-table-column>
<el-table-column prop="amt" label="金额" sortable width="100">
</el-table-column>
<el-table-column prop="cur" label="币种" sortable width="100">
</el-table-column>
<el-table-column prop="dcflg" label="借贷标记" sortable width="100">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.dcflg" :code="codes.sdcflg" disabled></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="actbic" label="账户行BIC" sortable width="180">
</el-table-column>
<el-table-column prop="valdat" label="起息日" sortable width="100">
</el-table-column>
<el-table-column prop="busflg" label="业务类型标识" sortable width="180">
</el-table-column>
<el-table-column prop="sta" label="关联状态" sortable width="150">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.sta" :code="codes.sta" disabled></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="offsta" label="勾销标识" sortable width="150">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.offsta" :code="codes.offsta" disabled></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="recsta" label="记账状态" sortable width="110">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.recsta" :code="codes.recsta" disabled></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="ownref" label="参考号/前" sortable width="125">
</el-table-column>
<el-table-column prop="othref" label="参考号/后" sortable width="125">
</el-table-column>
<el-table-column prop="inf" label="补充细节" sortable width="250">
</el-table-column>
<el-table-column prop="staref" label="对账单参号" sortable width="120">
</el-table-column>
<el-table-column prop="stanum" label="对账单号" sortable width="100">
</el-table-column>
<el-table-column prop="seqnum" label="对账单页号" sortable width="150">
</el-table-column>
</el-table>
<el-pagination layout="prev, pager, next" :total="model.oftgrp.dotsmd.total">
</el-pagination>
</div>
</c-col>
<c-col :span="24">
<!-- ==================左边================ -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<el-form-item :label="$t('dotrep.起息日起始')" prop="oftp.smd.vludats">
<c-date-picker type="date" v-model="model.oftp.smd.vludats" style="width:100%"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000180 : 起息日截止 -->
<c-col :span="24">
<el-form-item :label="$t('dotrep.起息日截止')" prop="oftp.smd.vludate">
<c-date-picker type="date" v-model="model.oftp.smd.vludate" style="width:100%"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000043 : 账户行BIC -->
<c-col :span="24">
<el-form-item :label="$t('dotrep.账户行BIC')" prop="oftp.smd.actbic">
<c-input v-model="model.oftp.smd.actbic" maxlength="11"></c-input>
</el-form-item>
</c-col>
<!-- LT000181 : 收报行BIC -->
<c-col :span="24">
<el-form-item :label="$t('dotrep.收报行BIC')" prop="oftp.smd.sedbak">
<c-input v-model="model.oftp.smd.sedbak" maxlength="11"></c-input>
</el-form-item>
</c-col>
<!-- LT000182 : 发报行BIC -->
<c-col :span="24">
<el-form-item :label="$t('dotrep.发报行BIC')" prop="oftp.smd.revbak">
<c-input v-model="model.oftp.smd.revbak" maxlength="11"></c-input>
</el-form-item>
</c-col>
<!-- LT000046 : 借 贷 -->
<c-col :span="24">
<el-form-item :label="$t('dotrep.借 贷')" prop="oftp.smd.dcflg2">
<c-select v-model="model.oftp.smd.dcflg2" style="width:100%">
<el-option v-for="item in codes.sdcflg" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<!-- LT000224 : 币种 -->
<c-col :span="24">
<el-form-item :label="$t('dotrep.币种')" prop="oftp.smd.cur">
<c-select v-model="model.oftp.smd.cur" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<!-- LT000057 : 金额下限 -->
<c-col :span="24">
<el-form-item :label="$t('dotrep.金额下限')" prop="oftp.smd.amtd">
<c-input v-model="model.oftp.smd.amtd"></c-input>
</el-form-item>
</c-col>
<!-- LT000058 : 金额上限 -->
<c-col :span="24">
<el-form-item :label="$t('dotrep.金额上限')" prop="oftp.smd.amtu">
<c-input v-model="model.oftp.smd.amtu"></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- ============右边================= -->
<c-col :span="12" style="padding-left: 20px">
<!-- LT000192 : 关联状态 -->
<c-col :span="24">
<el-form-item :label="$t('dotrep.关联状态')" prop="oftp.smd.sta">
<c-select v-model="model.oftp.smd.sta" style="width:100%">
<el-option v-for="item in codes.sta" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<!-- LT000193 : 勾销状态 -->
<c-col :span="24">
<el-form-item :label="$t('dotrep.勾销状态')" prop="oftp.smd.offsta">
<c-select v-model="model.oftp.smd.offsta" style="width:100%">
<el-option v-for="item in codes.offsta" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<!-- LT000213 : 记账状态 -->
<c-col :span="24">
<el-form-item :label="$t('dotrep.记账状态')" prop="oftp.smd.recsta">
<c-select v-model="model.oftp.smd.recsta" style="width:100%">
<el-option v-for="item in codes.recsta" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<!-- LT000040 : 参考号/前 -->
<c-col :span="24">
<el-form-item :label="$t('dotrep.参考号/前')" prop="oftp.smd.ref">
<c-input v-model="model.oftp.smd.ref" maxlength="20"></c-input>
</el-form-item>
</c-col>
<!-- LT000041 : 参考号/后 -->
<c-col :span="24">
<el-form-item :label="$t('dotrep.参考号/后')" prop="oftp.smd.relref">
<c-input v-model="model.oftp.smd.relref" maxlength="20"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="补充细节" prop="oftp.smd.supdtl">
<c-input v-model="model.oftp.smd.supdtl" maxlength="200"></c-input>
</el-form-item>
</c-col>
</c-col>
</c-col>
</div>
</template>
<script>
import Event from "../event"
export default {
inject: ['root'],
props: ["model", "codes"],
mixins: [Event],
data() {
return {
}
},
methods: {},
created: function () {
}
}
</script>
<style></style>
<template>
<div class="eContainer">
<c-page title="报文详情展示">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small"
:validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--fmsp PD000000 展示 -->
<el-tab-pane :label="$t('fmsp.展示')" name="oftdtl">
<m-oftdtl :model="model" :codes="codes" />
</el-tab-pane>
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Oftdtl from "../model"
import MOftdtl from "./Oftdtl"
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import event from "../event";
import buildFn from "../event/buildCommons.js";
import Check from "../model/check.js";
export default {
name: "Oftdtl",
components: {
"m-oftdtl": MOftdtl,
},
provide() {
return {
root: this
}
},
mixins: [operationFunc, commonDepend, event, buildFn],
data() {
return {
tabVal: "oftdtl",
trnName: "oftdtl",
model: new Oftdtl().data,
rules: Check,
codes: {
sta: CodeTable.sta,
sdcflg: CodeTable.sdcflg,
offsta: CodeTable.offsta,
recsta: CodeTable.recsta,
},
}
},
methods: {
myTabClick(tab) {
this.tabClick(tab)
}
},
created: async function () {
console.log("进入oftdtl交易");
let params = {
transName: this.trnName,
fxdgrp: {
rec: {
inr: this.$route.query.inr || "",
},
},
};
this.init(params)
}
}
</script>
<style></style>
......@@ -2,26 +2,26 @@ import Api from "~/service/Api";
import moment from "moment";
export default {
methods: {
async handleSearch() {
methods: {
async handleSearch() {
},
async handleReset() {
},
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;
}
},
// 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 Utils from "~/utils"
export default {
/**
* Qrtmgs Check规则
*/
let checkObj = {
"qrtp.revbnk" :null,
"qrtp.dte" :null,
"qrtp.dts" :null,
"qrtp.msgtyp" :null,
"qrtp.msgrag" :null,
"qrtp.sedbnk" :null,
}
"qrtp.dts": [
{ type: "date", required: false, message: "输入正确的日期" }
],
"qrtp.dte": [
{ type: "date", required: false, message: "输入正确的日期" }
],
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
"qrtp.revbnk": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"qrtp.sedbnk": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"qrtp.amtdwl": [
{ type: "number", required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"qrtp.amtupl": [
{ type: "number", required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"qrtp.casnum": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"qrtp.drtnum": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"qrtp.tagt20": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"qrtp.tagt21": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"qrtp.uetr": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
}
\ No newline at end of file
/**
* Qrtmgs Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onQrtpCassel(){
let rtnmsg = await this.executeRule("qrtp.cassel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onQrtpCasclr(){
let rtnmsg = await this.executeRule("qrtp.casclr")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onQrtpMan(){
let rtnmsg = await this.executeRule("qrtp.man")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onQrtpMsgchk(){
let rtnmsg = await this.executeRule("qrtp.msgchk")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onQrtpRefresh(){
let rtnmsg = await this.executeRule("qrtp.refresh")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"qrtp.dts":[
{type: "date", required: false, message: "输入正确的日期"}
],
"qrtp.dte":[
{type: "date", required: false, message: "输入正确的日期"}
],
"qrtp.revbnk":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"qrtp.sedbnk":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"qrtp.amtdwl":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"qrtp.amtupl":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"qrtp.casnum":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"qrtp.drtnum":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"qrtp.tagt20":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"qrtp.tagt21":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"qrtp.uetr":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts"
export default class Qrtmgs{
constructor () {
this.data = {
qrtp:{
msgrag:"", // 记录范围 .qrtp.msgrag
revdrt:"", // 接收方向 .qrtp.revdrt
dts:"", // 起始时间 .qrtp.dts
dte:"", // 截止时间 .qrtp.dte
mty:"", // 报文种类 .qrtp.mty
msgsta:"", // 报文状态 .qrtp.msgsta
revbnk:"", // 收报行BIC .qrtp.revbnk
sedbnk:"", // 发报行BIC .qrtp.sedbnk
cur:"", // 币种 .qrtp.cur
amtdwl:"", // 金额下限 .qrtp.amtdwl
amtupl:"", // 金额上限 .qrtp.amtupl
casnum:"", // CASE编号 .qrtp.casnum
drtnum:"", // 汇票号码 .qrtp.drtnum
tagt20:"", // 报文20域 .qrtp.tagt20
tagt21:"", // 报文21域 .qrtp.tagt21
ljschk:"", // 记录类型 .qrtp.ljschk
msgtyp:"", // 报文标准 .qrtp.msgtyp
uetr:"", // UETR .qrtp.uetr
wtdlst:[], // .qrtp.wtdlst
exp:"", // 导出 .qrtp.exp
},
pageId: "" // ctx的key
}
export default class Qrtmgs {
constructor() {
this.data = {
qrtp: {
msgrag: "", // 记录范围 .qrtp.msgrag
revdrt: "", // 接收方向 .qrtp.revdrt
dts: "", // 起始时间 .qrtp.dts
dte: "", // 截止时间 .qrtp.dte
mty: "", // 报文种类 .qrtp.mty
msgsta: "", // 报文状态 .qrtp.msgsta
revbnk: "", // 收报行BIC .qrtp.revbnk
sedbnk: "", // 发报行BIC .qrtp.sedbnk
cur: "", // 币种 .qrtp.cur
amtdwl: "", // 金额下限 .qrtp.amtdwl
amtupl: "", // 金额上限 .qrtp.amtupl
casnum: "", // CASE编号 .qrtp.casnum
drtnum: "", // 汇票号码 .qrtp.drtnum
tagt20: "", // 报文20域 .qrtp.tagt20
tagt21: "", // 报文21域 .qrtp.tagt21
ljschk: "", // 记录类型 .qrtp.ljschk
msgtyp: "", // 报文标准 .qrtp.msgtyp
uetr: "", // UETR .qrtp.uetr
wtdlst: [], // .qrtp.wtdlst
exp: "", // 导出 .qrtp.exp
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
......@@ -2,56 +2,38 @@
<div class="eibs-tab">
<c-list-search @form-reset="handleReset" @form-search="handleSearch">
<!-- 持续展示区 -->
<template v-slot="searchSlot" >
<template v-slot="searchSlot">
<el-row>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="记录类型" prop="qrtp.ljschk">
<c-select v-model="model.qrtp.ljschk" style="width:100%" >
<el-option
v-for="item in codes.ljschk"
:key="item.value"
:label="item.label"
:value="item.value">
<c-select v-model="model.qrtp.ljschk" style="width:100%">
<el-option v-for="item in codes.ljschk" :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="qrtp.msgrag">
<c-select v-model="model.qrtp.msgrag" style="width:100%" >
<el-option
v-for="item in codes.msgrng"
:key="item.value"
:label="item.label"
:value="item.value">
<c-select v-model="model.qrtp.msgrag" style="width:100%">
<el-option v-for="item in codes.msgrng" :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="qrtp.revdrt">
<c-select v-model="model.qrtp.revdrt" style="width:100%" >
<el-option
v-for="item in codes.msgdrt"
:key="item.value"
:label="item.label"
:value="item.value">
<c-select v-model="model.qrtp.revdrt" style="width:100%">
<el-option v-for="item in codes.msgdrt" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
</el-row>
<!-- 可控展示区 -->
<el-row v-show="searchSlot.searchToggle">
<!-- <c-col :span="24">
<!-- <c-col :span="24">
<c-col :span="8">
<el-form-item label="发报行BIC" prop="sndbak" style="width: 100%">
<c-input v-model="model.sndp.sndbak" maxlength="40" >
......@@ -80,16 +62,16 @@
<!-- LT000305 : : -->
<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>
<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') }}
</c-button>
</el-col>
<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>
<c-button class="medium_bcs" size="medium" style="margin-left: 20" type="primary">
{{ $t('public.导出Excel') }}
</c-button>
</el-col>
<el-col :span="24" style="margin-top: 10px">
<div style="height: 90%">
......@@ -97,9 +79,9 @@
<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%"
@selection-change="handleSelectionChange"
size="small" :border="true" height="calc(100vh - 480px)" :highlight-current-row="true">
<el-table-column type="selection" width="55">
@selection-change="handleSelectionChange" size="small" :border="true" height="calc(100vh - 420px)"
: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">
......@@ -129,7 +111,7 @@ export default {
activeTab: 'fb',
load: false,
subtypCodes: [],
multipleSelection:[],
multipleSelection: [],
stmData: {
columns: [
{
......@@ -213,17 +195,17 @@ export default {
},
};
},
computed:{
isFoldDisable: function(){
computed: {
isFoldDisable: function () {
return this.multipleSelection.length == 0;
} ,
isRoutingDisable:function(){
},
isRoutingDisable: function () {
return this.multipleSelection.length == 0;
}
},
watch: {
'model.sndp.msgtyp': {
handler: function (newTyp, oldTyp) {
handler (newTyp, oldTyp) {
// 把已经选择的 subtyp 重置
this.model.sndp.subtyp = '';
const { codes } = this;
......
<template>
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--qrtp PD000078 qrtmgs 查询查复报文业务数据查询页面 -->
<el-tab-pane :label="$t('qrtp.PD000078')" name="wtdselp">
<m-wtdselp :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
<el-form :model="model" ref="modelForm" label-width="150px" label-position="right" size="small"
:validate-on-rule-change="false">
<c-content>
<m-wtdselp :model="model" :codes="codes" />
</c-content>
</el-form>
</div>
</template>
......@@ -14,104 +12,76 @@
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Qrtmgs from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
// import Check from "../model/Check.js"
import Wtdselp from "./Wtdselp"
export default {
name: "Qrtmgs",
components:{
"m-wtdselp" : Wtdselp,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "wtdselp",
trnName: "qrtmgs",
trnType: "",
model: new Qrtmgs().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
msgdrt:CodeTable.msgdrt,
kpatyp:CodeTable.kpatyp,
cur:CodeTable.cur,
sdcflg:CodeTable.sdcflg,
gpicod:CodeTable.gpicod,
mgssta:CodeTable.mgssta,
ljschk:CodeTable.ljschk,
offtyp:CodeTable.offtyp,
msgrng:CodeTable.msgrng,
fmssta:CodeTable.fmssta,
clrsys:CodeTable.clrsys,
stacod:CodeTable.stacod,
dottyp:CodeTable.dottyp,
recsta:CodeTable.recsta,
bnksta:CodeTable.bnksta,
gpista:CodeTable.gpista,
kpadir:CodeTable.kpadir,
area:CodeTable.area,
cpsfxdtyp:CodeTable.cpsfxdtyp,
rspsta:CodeTable.rspsta,
sta:CodeTable.sta,
actsta:CodeTable.actsta,
offsta:CodeTable.offsta,
batcharge:CodeTable.batcharge,
msgmst:CodeTable.msgmst,
yosflg:CodeTable.yosflg,
filtyp:CodeTable.filtyp,
dircod:CodeTable.dircod,
kpstyp:CodeTable.kpstyp,
allmsgcod:CodeTable.allmsgcod,
dcflg:CodeTable.dcflg,
cipsstatus:CodeTable.cipsstatus,
curcod:CodeTable.curcod,
msgtyp:CodeTable.msgtyp,
chncod:CodeTable.chncod,
msgsta:CodeTable.msgsta,
usratr:CodeTable.usratr,
msgchksta:CodeTable.msgchksta,
cipsmsgtype:CodeTable.cipsmsgtype,
setmth:CodeTable.setmth,
chniptcod:CodeTable.chniptcod,
dtlchg:CodeTable.dtlchg,
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入qrtmgs交易");
let rtnmsg = {}; // await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
name: "Qrtmgs",
components: {
"m-wtdselp": Wtdselp,
},
provide() {
return {
root: this
}
},
mixins: [],
data() {
return {
trnName: "qrtmgs",
model: new Qrtmgs().data,
rules: {},
codes: {
msgdrt: CodeTable.msgdrt,
kpatyp: CodeTable.kpatyp,
cur: CodeTable.cur,
sdcflg: CodeTable.sdcflg,
gpicod: CodeTable.gpicod,
mgssta: CodeTable.mgssta,
ljschk: CodeTable.ljschk,
offtyp: CodeTable.offtyp,
msgrng: CodeTable.msgrng,
fmssta: CodeTable.fmssta,
clrsys: CodeTable.clrsys,
stacod: CodeTable.stacod,
dottyp: CodeTable.dottyp,
recsta: CodeTable.recsta,
bnksta: CodeTable.bnksta,
gpista: CodeTable.gpista,
kpadir: CodeTable.kpadir,
area: CodeTable.area,
cpsfxdtyp: CodeTable.cpsfxdtyp,
rspsta: CodeTable.rspsta,
sta: CodeTable.sta,
actsta: CodeTable.actsta,
offsta: CodeTable.offsta,
batcharge: CodeTable.batcharge,
msgmst: CodeTable.msgmst,
yosflg: CodeTable.yosflg,
filtyp: CodeTable.filtyp,
dircod: CodeTable.dircod,
kpstyp: CodeTable.kpstyp,
allmsgcod: CodeTable.allmsgcod,
dcflg: CodeTable.dcflg,
cipsstatus: CodeTable.cipsstatus,
curcod: CodeTable.curcod,
msgtyp: CodeTable.msgtyp,
chncod: CodeTable.chncod,
msgsta: CodeTable.msgsta,
usratr: CodeTable.usratr,
msgchksta: CodeTable.msgchksta,
cipsmsgtype: CodeTable.cipsmsgtype,
setmth: CodeTable.setmth,
chniptcod: CodeTable.chniptcod,
dtlchg: CodeTable.dtlchg,
},
}
},
methods: {
},
created: async function () {
console.log("进入qrtmgs交易");
}
}
</script>
<style>
</style>
<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