Commit f96aeeda by sunxi

孙曦20241019下午版本

parent 70fa27ad
......@@ -10116,6 +10116,35 @@ const CodeTable = {
{label:"新增",value:"1" },
{label:"变更",value:"3" },
],
chncod: [
{label: "SWIFT渠道", value: "SWT"},
{label: "国际结算系统", value: "GJS"},
{label: "逻辑集中系统", value: "GHD"},
{label: "资金清算系统", value: "ZQS"},
{label: "代理行管理子系统", value: "BNK"},
{label: "清算管理子系统", value: "QIN"},
{label: "对销帐管理子系统", value: "DXZ"},
{label: "查询查复管理子系统", value: "QAA"},
{label: "报文编辑管理子系统", value: "MAN"},
{label: "疑似重复或关注报文队列", value: "ZZZ"},
{label: "自动清分或手工清分队列", value: "XXX"},
{label: "无需清分队列", value: "OOO"},
{label: "仅供程序处理逻辑使用", value: "ALL"},
{label: "疑似黑名单", value: "BLK"},
{label: "挂账状态", value: "HNG"},
{label: "境内外币", value: "FMT"},
{label: "转发其他机构", value: "DZF"},
{label: "本系统内转发", value: "NZF"},
{label: "SWIFT自动回复", value: "APT"},
{label: "SWIFT报文编辑子系统", value: "HWE"},
{label: "境内外币查询查复子系统", value: "FAA"},
{label: "境内外币报文编辑子系统", value: "FWE"},
{label: "公司2.0系统", value: "CSP"},
{label: "新一代资金业务系统", value: "ZYW"},
{label: "新一代资金业务系统", value: "ZYS"},
{label: "人行支付前置", value: "RQZ"},
{label: "G渠道", value: "SWE"},
],
};
export default CodeTable;
......@@ -3,13 +3,10 @@
<c-button class="medium_bcs" size="medium" style="margin-left: 0" type="primary" @click="handleList">
历史记录
</c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 20px" type="primary" @click="handleBack">
返回
</c-button>
<p style="margin-top: 20px;border: 1px solid #333333;padding-10px;width: 100%;min-height: 500px;" v-html="model.msgdtll"></p>
<el-dialog v-if="visible" v-dialogDrag :visible="visible" :modal-append-to-body="false" :close-on-click-modal="true"
title="历史记录" destroy-on-close width="50%">
title="历史记录" destroy-on-close width="50%" @close="visible = false">
<div class="e-table-wrapper">
<el-table :data="model.mdtp.mdtmod.mpelst" style="width: 100%">
<el-table-column prop="dattim" label="处理时间" width="150">
......@@ -17,24 +14,36 @@
<el-table-column prop="usr" label="操作用户" width="150">
</el-table-column>
<el-table-column prop="chncod" label="当前渠道" width="150">
<template slot-scope="scope">
<!-- <template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.chncod" :code="codes.chncod"></c-select-value-to-label>
</template> -->
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.chncod" :code="codes.chncod"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="nxtchncod" label="下一渠道" width="150">
<template slot-scope="scope">
<!-- <template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.nxtchncod" :code="codes.chncod"></c-select-value-to-label>
</template> -->
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.nxtchncod" :code="codes.chncod"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="prvsta" label="处理前状态" width="150">
<template slot-scope="scope">
<!-- <template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.prvsta" :code="codes.msgsta"></c-select-value-to-label>
</template>
</template> -->
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.prvsta" :code="codes.stacod"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="sta" label="处理状态" width="150">
<template slot-scope="scope">
<!-- <template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.sta" :code="codes.msgsta"></c-select-value-to-label>
</template>
</template> -->
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.sta" :code="codes.stacod"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="txt" label="备注">
</el-table-column>
......
......@@ -44,6 +44,7 @@ export default {
rules: Check,
codes: {
chncod: CodeTable.chncod,
stacod: CodeTable.stacod,
clrsys: CodeTable.clrsys,
gpicod: CodeTable.gpicod,
msgsta: CodeTable.msgsta,
......
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: "MSG",
},
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 {
}
\ No newline at end of file
import Pts from "~/page/Model/Common/Pts"
import Pub from "~/components/business/commonModel/index.js";
export default class Msgdtlblk {
constructor() {
this.data = {
msgdtll: '',
msgdtlll: '',
mdtp: {
mdtmod: {
mpelst: [], // .mdtp.mdtmod.mpelst
msgdtl: "", // 报文展示 .mdtp.mdtmod.msgdtl
mpelstTotal: 0,
gpelst: [], // .mdtp.mdtmod.gpelst
gpelstTotal: 0,
gpe192lst: [], // .mdtp.mdtmod.gpe192lst
gpe192lstTotal: 0,
gpeutrlst: [], // .mdtp.mdtmod.gpeutrlst
gpeutrlstTotal: 0
},
shwpremsg: "", // 显示转会前报文 .mdtp.shwpremsg
},
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-button class="medium_bcs" size="medium" style="margin-left: 0" type="primary" @click="handleList">
历史记录
</c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 40px" type="primary" @click="handleCheck">
放行
</c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 40px" type="primary" @click="handleReject">
丢弃
</c-button>
<div style="width: 100%;height: calc(100% - 50px); display: flex;align-item: center;justify-content: space-between;">
<p style="margin-top: 20px;border: 1px solid #333333;width: 49%;height: 100%;overflow: auto;" v-html="model.msgdtll"></p>
<p style="margin-top: 20px;border: 1px solid #333333;width: 49%;height: 100%;overflow: auto;" v-html="model.msgdtlll"></p>
</div>
<el-dialog v-if="visible" v-dialogDrag :visible="visible" :modal-append-to-body="false" :close-on-click-modal="true"
title="历史记录" destroy-on-close width="50%" @close="visible = false">
<div class="e-table-wrapper">
<el-table :data="model.mdtp.mdtmod.mpelst" style="width: 100%">
<el-table-column prop="dattim" label="处理时间" width="150">
</el-table-column>
<el-table-column prop="usr" label="操作用户" width="150">
</el-table-column>
<el-table-column prop="chncod" label="当前渠道" width="150">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.chncod" :code="codes.chncod"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="nxtchncod" label="下一渠道" width="150">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.nxtchncod" :code="codes.chncod"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="prvsta" label="处理前状态" width="150">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.prvsta" :code="codes.msgsta"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="sta" label="处理状态" width="150">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.sta" :code="codes.msgsta"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="txt" label="备注">
</el-table-column>
</el-table>
<el-pagination layout="prev, pager, next" :total="model.mdtp.mdtmod.mpelstTotal">
</el-pagination>
</div>
</el-dialog>
</div>
</template>
<script>
import Api from "~/service/Api"
import Event from "../event"
export default {
inject: ['root'],
props: ["model", "codes"],
mixins: [Event],
data() {
return {
trnName: "Msgdtlrtm",
visible: false
}
},
methods: {
async handleCheck() {
this.$confirm("确定放行该报文?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
}).then(async() => {
let params={
mpsinr: this.$route.query.mpsinr || "",
};
const rtnmsg = await Api.post(`/${this.moduleRouter()}/msgsel/check`, params);
if (rtnmsg.respCode === SUCCESS) {
this.$notify({ title: '成功', type: 'success', message: '丢弃成功' })
}
});
},
async handleReject() {
this.$confirm("确定丢弃该报文?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
}).then(async() => {
let params={
mpsinr: this.$route.query.mpsinr || "",
};
const rtnmsg = await Api.post(`/${this.moduleRouter()}/msgsel/reject`, params);
if (rtnmsg.respCode === SUCCESS) {
this.$notify({ title: '成功', type: 'success', message: '丢弃成功' })
}
});
},
async handleList () {
let params = {
mpsinr: this.$route.query.mpsinr || "",
}
const rtnmsg = await Api.post(`/${this.moduleRouter()}/${this.trnName}/msghis`, params);
if (rtnmsg.respCode === SUCCESS) {
this.visible = true
this.model.mdtp.mdtmod.mpelst = rtnmsg.data
}
}
},
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="msgdtlp">
<c-content>
<m-msgdtlp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Msgdtlblk from "../model"
import Msgdtlp from "./Msgdtlp"
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: "Msgdtlblk",
components: {
"m-msgdtlp": Msgdtlp,
},
provide() {
return {
root: this
}
},
mixins: [operationFunc, commonDepend, event, buildFn],
data() {
return {
tabVal: "msgdtlp",
trnName: "Msgdtlblk",
model: new Msgdtlblk().data,
rules: Check,
codes: {
chncod: CodeTable.chncod,
clrsys: CodeTable.clrsys,
gpicod: CodeTable.gpicod,
msgsta: CodeTable.msgsta,
dircod: CodeTable.dircod,
setmth: CodeTable.setmth,
gpista: CodeTable.gpista,
},
}
},
methods: {
myTabClick(tab) {
this.tabClick(tab)
}
},
created: async function () {
console.log("进入Msgdtlblk交易");
let params = {
mpsinr: this.$route.query.mpsinr || "",
};
const rtnmsg = await Api.post(`/${this.moduleRouter()}/msgdtl/init`, params);
if (rtnmsg.respCode === SUCCESS) {
this.model.msgdtll = rtnmsg.data
}
const rtnmsgrsm = await Api.post(`/${this.moduleRouter()}/msgdtl/rsm`, params);
if (rtnmsgrsm.respCode === SUCCESS) {
this.model.msgdtlll = rtnmsgrsm.data
}
}
}
</script>
<style></style>
......@@ -9,14 +9,13 @@
<c-button class="medium_bcs" size="medium" style="margin-left: 40px" type="primary" @click="handleReject">
丢弃
</c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 1000px" type="primary" @click="handleBack">
返回
</c-button>
<p style="margin-top: 20px;margin-left: 0;border: 1px solid #333333;padding-10px;width: 40%;min-height: 500px;" v-html="model.msgdtll"></p>
<p style="margin-top: 20px;margin-left: 60%;border: 1px solid #333333;padding-10px;width: 40%;min-height: 500px;" v-html="model.msgdtlll"></p>
<div style="width: 100%;height: calc(100% - 50px); display: flex;align-item: center;justify-content: space-between;">
<p style="margin-top: 20px;border: 1px solid #333333;width: 49%;height: 100%;overflow: auto;" v-html="model.msgdtll"></p>
<p style="margin-top: 20px;border: 1px solid #333333;width: 49%;height: 100%;overflow: auto;" v-html="model.msgdtlll"></p>
</div>
<el-dialog v-if="visible" v-dialogDrag :visible="visible" :modal-append-to-body="false" :close-on-click-modal="true"
title="历史记录" destroy-on-close width="50%">
title="历史记录" destroy-on-close width="50%" @close="visible = false">
<div class="e-table-wrapper">
<el-table :data="model.mdtp.mdtmod.mpelst" style="width: 100%">
<el-table-column prop="dattim" label="处理时间" width="150">
......
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: "MSG",
},
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 {
}
\ No newline at end of file
import Pts from "~/page/Model/Common/Pts"
import Pub from "~/components/business/commonModel/index.js";
export default class Msgdtlrtm {
constructor() {
this.data = {
msgdtll: '',
msgdtlll: '',
mdtp: {
mdtmod: {
mpelst: [], // .mdtp.mdtmod.mpelst
msgdtl: "", // 报文展示 .mdtp.mdtmod.msgdtl
mpelstTotal: 0,
gpelst: [], // .mdtp.mdtmod.gpelst
gpelstTotal: 0,
gpe192lst: [], // .mdtp.mdtmod.gpe192lst
gpe192lstTotal: 0,
gpeutrlst: [], // .mdtp.mdtmod.gpeutrlst
gpeutrlstTotal: 0
},
shwpremsg: "", // 显示转会前报文 .mdtp.shwpremsg
},
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-button class="medium_bcs" size="medium" style="margin-left: 0" type="primary" @click="handleList">
历史记录
</c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 40px" type="primary" @click="handleCheck">
放行
</c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 40px" type="primary" @click="handleReject">
丢弃
</c-button>
<div style="width: 100%;height: calc(100% - 50px); display: flex;align-item: center;justify-content: space-between;">
<p style="margin-top: 20px;border: 1px solid #333333;width: 49%;height: 100%;overflow: auto;" v-html="model.msgdtll"></p>
<p style="margin-top: 20px;border: 1px solid #333333;width: 49%;height: 100%;overflow: auto;" v-html="model.msgdtlll"></p>
</div>
<el-dialog v-if="visible" v-dialogDrag :visible="visible" :modal-append-to-body="false" :close-on-click-modal="true"
title="历史记录" destroy-on-close width="50%" @close="visible = false">
<div class="e-table-wrapper">
<el-table :data="model.mdtp.mdtmod.mpelst" style="width: 100%">
<el-table-column prop="dattim" label="处理时间" width="150">
</el-table-column>
<el-table-column prop="usr" label="操作用户" width="150">
</el-table-column>
<el-table-column prop="chncod" label="当前渠道" width="150">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.chncod" :code="codes.chncod"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="nxtchncod" label="下一渠道" width="150">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.nxtchncod" :code="codes.chncod"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="prvsta" label="处理前状态" width="150">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.prvsta" :code="codes.msgsta"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="sta" label="处理状态" width="150">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.sta" :code="codes.msgsta"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="txt" label="备注">
</el-table-column>
</el-table>
<el-pagination layout="prev, pager, next" :total="model.mdtp.mdtmod.mpelstTotal">
</el-pagination>
</div>
</el-dialog>
</div>
</template>
<script>
import Api from "~/service/Api"
import Event from "../event"
export default {
inject: ['root'],
props: ["model", "codes"],
mixins: [Event],
data() {
return {
trnName: "Msgdtlrtm",
visible: false
}
},
methods: {
async handleCheck() {
this.$confirm("确定放行该报文?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
}).then(async() => {
let params={
mpsinr: this.$route.query.mpsinr || "",
};
const rtnmsg = await Api.post(`/${this.moduleRouter()}/msgsel/check`, params);
if (rtnmsg.respCode === SUCCESS) {
this.$notify({ title: '成功', type: 'success', message: '丢弃成功' })
}
});
},
async handleReject() {
this.$confirm("确定丢弃该报文?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
}).then(async() => {
let params={
mpsinr: this.$route.query.mpsinr || "",
};
const rtnmsg = await Api.post(`/${this.moduleRouter()}/msgsel/reject`, params);
if (rtnmsg.respCode === SUCCESS) {
this.$notify({ title: '成功', type: 'success', message: '丢弃成功' })
}
});
},
async handleList () {
let params = {
mpsinr: this.$route.query.mpsinr || "",
}
const rtnmsg = await Api.post(`/${this.moduleRouter()}/${this.trnName}/msghis`, params);
if (rtnmsg.respCode === SUCCESS) {
this.visible = true
this.model.mdtp.mdtmod.mpelst = rtnmsg.data
}
}
},
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="msgdtlp">
<c-content>
<m-msgdtlp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Msgdtlrtm from "../model"
import Msgdtlp from "./Msgdtlp"
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: "Msgdtlrtm",
components: {
"m-msgdtlp": Msgdtlp,
},
provide() {
return {
root: this
}
},
mixins: [operationFunc, commonDepend, event, buildFn],
data() {
return {
tabVal: "msgdtlp",
trnName: "Msgdtlrtm",
model: new Msgdtlrtm().data,
rules: Check,
codes: {
chncod: CodeTable.chncod,
clrsys: CodeTable.clrsys,
gpicod: CodeTable.gpicod,
msgsta: CodeTable.msgsta,
dircod: CodeTable.dircod,
setmth: CodeTable.setmth,
gpista: CodeTable.gpista,
},
}
},
methods: {
myTabClick(tab) {
this.tabClick(tab)
}
},
created: async function () {
console.log("进入Msgdtlrtm交易");
let params = {
mpsinr: this.$route.query.mpsinr || "",
};
const rtnmsg = await Api.post(`/${this.moduleRouter()}/msgdtl/init`, params);
if (rtnmsg.respCode === SUCCESS) {
this.model.msgdtll = rtnmsg.data
}
const rtnmsgrsm = await Api.post(`/${this.moduleRouter()}/msgdtl/rsm`, params);
if (rtnmsgrsm.respCode === SUCCESS) {
this.model.msgdtlll = rtnmsgrsm.data
}
}
}
</script>
<style></style>
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: "MSG",
},
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 {
}
\ No newline at end of file
import Pts from "~/page/Model/Common/Pts"
import Pub from "~/components/business/commonModel/index.js";
export default class Msgdtlsep {
constructor() {
this.data = {
msgdtll: '',
msgdtlll: '',
mdtp: {
mdtmod: {
mpelst: [], // .mdtp.mdtmod.mpelst
msgdtl: "", // 报文展示 .mdtp.mdtmod.msgdtl
mpelstTotal: 0,
gpelst: [], // .mdtp.mdtmod.gpelst
gpelstTotal: 0,
gpe192lst: [], // .mdtp.mdtmod.gpe192lst
gpe192lstTotal: 0,
gpeutrlst: [], // .mdtp.mdtmod.gpeutrlst
gpeutrlstTotal: 0
},
shwpremsg: "", // 显示转会前报文 .mdtp.shwpremsg
},
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-button class="medium_bcs" size="medium" style="margin-left: 0" type="primary" @click="handleList">
历史记录
</c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 40px" type="primary" @click="handleCheck">
放行
</c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 40px" type="primary" @click="handleReject">
丢弃
</c-button>
<div style="width: 100%;height: calc(100% - 50px); display: flex;align-item: center;justify-content: space-between;">
<p style="margin-top: 20px;border: 1px solid #333333;width: 49%;height: 100%;overflow: auto;" v-html="model.msgdtll"></p>
<p style="margin-top: 20px;border: 1px solid #333333;width: 49%;height: 100%;overflow: auto;" v-html="model.msgdtlll"></p>
</div>
<el-dialog v-if="visible" v-dialogDrag :visible="visible" :modal-append-to-body="false" :close-on-click-modal="true"
title="历史记录" destroy-on-close width="50%" @close="visible = false">
<div class="e-table-wrapper">
<el-table :data="model.mdtp.mdtmod.mpelst" style="width: 100%">
<el-table-column prop="dattim" label="处理时间" width="150">
</el-table-column>
<el-table-column prop="usr" label="操作用户" width="150">
</el-table-column>
<el-table-column prop="chncod" label="当前渠道" width="150">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.chncod" :code="codes.chncod"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="nxtchncod" label="下一渠道" width="150">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.nxtchncod" :code="codes.chncod"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="prvsta" label="处理前状态" width="150">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.prvsta" :code="codes.msgsta"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="sta" label="处理状态" width="150">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.sta" :code="codes.msgsta"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="txt" label="备注">
</el-table-column>
</el-table>
<el-pagination layout="prev, pager, next" :total="model.mdtp.mdtmod.mpelstTotal">
</el-pagination>
</div>
</el-dialog>
</div>
</template>
<script>
import Api from "~/service/Api"
import Event from "../event"
export default {
inject: ['root'],
props: ["model", "codes"],
mixins: [Event],
data() {
return {
trnName: "Msgdtlsep",
visible: false
}
},
methods: {
async handleCheck() {
this.$confirm("确定放行该报文?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
}).then(async() => {
let params={
mpsinr: this.$route.query.mpsinr || "",
};
const rtnmsg = await Api.post(`/${this.moduleRouter()}/msgsel/check`, params);
if (rtnmsg.respCode === SUCCESS) {
this.$notify({ title: '成功', type: 'success', message: '丢弃成功' })
}
});
},
async handleReject() {
this.$confirm("确定丢弃该报文?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
}).then(async() => {
let params={
mpsinr: this.$route.query.mpsinr || "",
};
const rtnmsg = await Api.post(`/${this.moduleRouter()}/msgsel/reject`, params);
if (rtnmsg.respCode === SUCCESS) {
this.$notify({ title: '成功', type: 'success', message: '丢弃成功' })
}
});
},
async handleList () {
let params = {
mpsinr: this.$route.query.mpsinr || "",
}
const rtnmsg = await Api.post(`/${this.moduleRouter()}/${this.trnName}/msghis`, params);
if (rtnmsg.respCode === SUCCESS) {
this.visible = true
this.model.mdtp.mdtmod.mpelst = rtnmsg.data
}
}
},
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="msgdtlp">
<c-content>
<m-msgdtlp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Msgdtlsep from "../model"
import Msgdtlp from "./Msgdtlp"
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: "Msgdtlsep",
components: {
"m-msgdtlp": Msgdtlp,
},
provide() {
return {
root: this
}
},
mixins: [operationFunc, commonDepend, event, buildFn],
data() {
return {
tabVal: "msgdtlp",
trnName: "Msgdtlsep",
model: new Msgdtlsep().data,
rules: Check,
codes: {
chncod: CodeTable.chncod,
clrsys: CodeTable.clrsys,
gpicod: CodeTable.gpicod,
msgsta: CodeTable.msgsta,
dircod: CodeTable.dircod,
setmth: CodeTable.setmth,
gpista: CodeTable.gpista,
},
}
},
methods: {
myTabClick(tab) {
this.tabClick(tab)
}
},
created: async function () {
console.log("进入Msgdtlsep交易");
let params = {
mpsinr: this.$route.query.mpsinr || "",
};
const rtnmsg = await Api.post(`/${this.moduleRouter()}/msgdtl/init`, params);
if (rtnmsg.respCode === SUCCESS) {
this.model.msgdtll = rtnmsg.data
}
const rtnmsgrsm = await Api.post(`/${this.moduleRouter()}/msgdtl/rsm`, params);
if (rtnmsgrsm.respCode === SUCCESS) {
this.model.msgdtlll = rtnmsgrsm.data
}
}
}
</script>
<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