Commit 4b109232 by 李少勇

qrtmgd 交易原型页面开发

parent 3b2f1d30
......@@ -38,6 +38,7 @@ const BusRouter = [
{ path: 'qrtsel', component: () => import("./Qrtsel/views"), name: 'Qrtsel', meta: { title: 'CASE查询/处理', module: 'frontend', keepAlive: true } },
{ path: 'qrtman', component: () => import("./Qrtman/views"), name: 'Qrtman', meta: { title: 'CASE处理页面', module: 'frontend', keepAlive: true } },
{ path: 'qrtopn', component: () => import("./Qrtopn/views"), name: 'Qrtopn', meta: { title: '新建CASE页面', module: 'frontend', keepAlive: true } },
{ path: 'qrtmgd', component: () => import("./Qrtmgd/views"), name: 'Qrtmgd', meta: { title: '查询查复报文业务数据查询页面', module: 'frontend', keepAlive: true } },
{ path: 'rcvselblk', component: () => import("./Rcvselblk/views"), name: 'Rcvselblk', meta: { title: '收报灰名单', module: 'frontend', keepAlive: true } },
{ path: 'rptgen', component: () => import("./Rptgen/views"), name: 'Rptgen', meta: { title: '报表管理', module: 'frontend', keepAlive: true } },
{ path: 'smdsel', component: () => import("./Smdsel/views"), name: 'Smdsel', meta: { title: '对账单明细查询', module: 'frontend', keepAlive: true } },
......
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: "QRT",
},
cbsMap: {
},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL",
};
},
},
};
import commonFunctions from '~/mixin/commonFunctions.js';
import Api from '~/service/Api';
export default {
mixins: [commonFunctions],
methods: {
}
}
\ No newline at end of file
export default {
}
\ No newline at end of file
import Api from "~/service/Api"
export default class Qrtmgd {
constructor() {
this.data = {
qrtp: {
wtdlst: [],
rerway: "", // 重新分发路径 .qrtp.rerway
lblrer: "", // 重新分发 .qrtp.lblrer
mdtmod: {
msgdtl: "", // 报文展示 .qrtp.mdtmod.msgdtl
},
},
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-row>
<c-col :span="12">
<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">
</el-option>
</c-select>
</el-form-item>
</c-col>
<!-- LT001269 : 记录类型 -->
<!-- LT000305 : : -->
<c-col :span="12">
<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">
</el-option>
</c-select>
</el-form-item>
</c-col>
<!-- LT000081 : 记录范围 -->
<!-- LT000305 : : -->
<c-col :span="12">
<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">
</el-option>
</c-select>
</el-form-item>
</c-col>
<!-- LT000082 : 接收方向 -->
<!-- LT000309 : : -->
<c-col :span="12">
<el-form-item label="起始时间" prop="qrtp.dts">
<c-date-picker type="date" v-model="model.qrtp.dts" style="width:100%"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000152 : 起始时间 -->
<!-- LT000310 : : -->
<c-col :span="12">
<el-form-item label="截止时间" prop="qrtp.dte">
<c-date-picker type="date" v-model="model.qrtp.dte" style="width:100%"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000153 : 截止时间 -->
<!-- LT000311 : : -->
<!-- LT004023 : 报文标准 -->
<!-- LT004024 : : -->
<c-col :span="12">
<el-form-item label="报文标准" prop="qrtp.msgtyp">
<c-select v-model="model.qrtp.msgtyp" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="报文种类" prop="qrtp.mty">
<c-select v-model="model.qrtp.mty" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<!-- LT000173 : 报文种类 -->
<!-- LT000312 : : -->
<c-col :span="12">
<el-form-item label="报文状态" prop="qrtp.msgsta">
<c-select v-model="model.qrtp.msgsta" style="width:100%">
<el-option v-for="item in codes.mgssta" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<!-- LT000084 : 报文状态 -->
<!-- LT000313 : : -->
<c-col :span="12">
<c-form-item label="收报行BIC" prop="qrtp.revbnk">
<c-input v-model="model.qrtp.revbnk" maxlength="11"></c-input>
</c-form-item>
</c-col>
<!-- LT000085 : 收报行BIC -->
<!-- LT000314 : : -->
<c-col :span="12">
<c-form-item label="发报行BIC" prop="qrtp.sedbnk">
<c-input v-model="model.qrtp.sedbnk" maxlength="11"></c-input>
</c-form-item>
</c-col>
<!-- LT000086 : 发报行BIC -->
<!-- LT000315 : : -->
<c-col :span="12">
<el-form-item label="币种" prop="qrtp.cur">
<c-select v-model="model.qrtp.cur" style="width:100%" dbCode="curtxt">
</c-select>
</el-form-item>
</c-col>
<!-- LT000087 : 币种 -->
<!-- LT000316 : : -->
<c-col :span="12">
<c-form-item label="金额下限" prop="qrtp.amtdwl">
<c-input v-model="model.qrtp.amtdwl"></c-input>
</c-form-item>
</c-col>
<!-- LT000089 : 金额下限 -->
<!-- LT000317 : : -->
<c-col :span="12">
<c-form-item label="金额上限" prop="qrtp.amtupl">
<c-input v-model="model.qrtp.amtupl"></c-input>
</c-form-item>
</c-col>
<!-- LT000088 : 金额上限 -->
<!-- LT000318 : : -->
<c-col :span="12">
<c-form-item label="CASE编号" prop="qrtp.casnum">
<c-input v-model="model.qrtp.casnum" maxlength="16"></c-input>
</c-form-item>
</c-col>
<!-- LT000091 : CASE编号 -->
<!-- LT000319 : : -->
<c-col :span="12">
<c-form-item label="汇票号码" prop="qrtp.drtnum">
<c-input v-model="model.qrtp.drtnum" maxlength="20"></c-input>
</c-form-item>
</c-col>
<!-- LT000090 : 汇票号码 -->
<!-- LT000320 : : -->
<c-col :span="12">
<c-form-item label="报文20域" prop="qrtp.tagt20">
<c-input v-model="model.qrtp.tagt20" maxlength="16"></c-input>
</c-form-item>
</c-col>
<!-- LT000220 : 报文20域 -->
<!-- LT000321 : : -->
<c-col :span="12">
<c-form-item label="报文21域" prop="qrtp.tagt21">
<c-input v-model="model.qrtp.tagt21" maxlength="16"></c-input>
</c-form-item>
</c-col>
<!-- LT000221 : 报文21域 -->
<!-- LT000322 : : -->
<!-- LT004620 : UETR -->
<!-- LT004621 : : -->
<c-col :span="12">
<c-form-item label="UETR" prop="qrtp.uetr">
<c-input v-model="model.qrtp.uetr" maxlength="40"></c-input>
</c-form-item>
</c-col>
</c-row>
<c-col :span="24">
<div class="e-table-wrapper">
<el-table :data="model.qrtp.wtdlst" style="width: 100%">
<el-table-column prop="seddat" label="收发日期" sortable width="90">
</el-table-column>
<el-table-column prop="drfnum" label="汇票号码" sortable width="150">
</el-table-column>
<el-table-column prop="casnum" label="CASE编号" sortable width="130">
</el-table-column>
<el-table-column prop="sweflg" label="G渠道" sortable width="60">
</el-table-column>
<el-table-column prop="sevref" label="报文20域" sortable width="125">
</el-table-column>
<el-table-column prop="relref" label="报文21域" sortable width="125">
</el-table-column>
<el-table-column prop="uetr" label="UETR" sortable width="270">
</el-table-column>
<el-table-column prop="cur" label="币种" sortable width="50">
</el-table-column>
<el-table-column prop="amt" label="金额" sortable width="120">
</el-table-column>
<el-table-column prop="vludat" label="起息日" sortable width="90">
</el-table-column>
<el-table-column prop="sedbak" label="发报行" sortable width="100">
</el-table-column>
<el-table-column prop="revbak" label="收报行" sortable width="100">
</el-table-column>
<el-table-column prop="megrevdrt" label="方向" sortable width="50">
<template slot-scope="scope">
<span>{{ this.codes.msgdrt.find(item => item.value == scope.row.megrevdrt).label }}</span>
</template>
</el-table-column>
<el-table-column prop="typ" label="类型" sortable width="50">
</el-table-column>
<el-table-column prop="sta" label="状态" sortable width="80">
<template slot-scope="scope">
<span>{{ this.codes.mgssta.find(item => item.value == scope.row.sta).label }}</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"
@current-change="handleCurrentChange"></el-pagination>
</div>
</c-col>
</div>
</template>
<script>
import Event from "../event"
export default {
inject: ['root'],
props: ["model", "codes"],
mixins: [Event],
data() {
return {
pagination: {
pageNum: 1,
pageSize: 10,
total: 0,
},
}
},
methods: {},
created: function () {
}
}
</script>
<style></style>
<template>
<div class="eContainer">
<c-page title="查询查复报文业务数据查询页面">
<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">
<el-tab-pane label="业务信息" name="wtdselp">
<m-ovwp :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 Qrtmgs from "../model"
import Ovwp from "./Ovwp"
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: "Qrtmgs",
components: {
"m-ovwp": Ovwp,
},
provide() {
return {
root: this
}
},
mixins: [operationFunc, commonDepend, event, buildFn],
data() {
return {
tabVal: "wtdselp",
trnName: "qrtmgs",
model: new Qrtmgs().data,
rules: Check,
codes: {
msgdrt: CodeTable.msgdrt,
mgssta: CodeTable.mgssta,
cassta: CodeTable.cassta,
ljschk: CodeTable.ljschk,
rerway: CodeTable.rerway,
msgrng: CodeTable.msgrng,
},
}
},
methods: {
myTabClick(tab) {
this.tabClick(tab)
}
},
created: async function () {
console.log("进入qrtmgs交易");
let params = {
transName: this.trnName,
qrdgrp: {
rec: {
inr: this.$route.query.inr || "",
},
},
};
this.init(params);
}
}
</script>
<style></style>
......@@ -4,14 +4,6 @@ import Api from '~/service/Api';
export default {
mixins: [commonFunctions],
methods: {
// pageSize改变
handleSizeChange(val) {
this.pagination.pageNum = 1;
this.pagination.pageSize = val;
},
// 页码改变
handleCurrentChange(val) {
this.pagination.pageNum = val;
},
}
}
\ No newline at end of file
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