Commit 16a2d77d by zhoujunpeng

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

parents bd5de9a8 dd7dabea
...@@ -42,6 +42,7 @@ const BusRouter = [ ...@@ -42,6 +42,7 @@ const BusRouter = [
// 报文管理w // 报文管理w
{ path: 'rcvsel', component: () => import("./Rcvsel/views"), name: 'Rcvsel', meta: { keepAlive: true, title: '收报查询' } }, { path: 'rcvsel', component: () => import("./Rcvsel/views"), name: 'Rcvsel', meta: { keepAlive: true, title: '收报查询' } },
{ path: 'sndsel', component: () => import("./Sndsel/views"), name: 'Sndsel', meta: { keepAlive: true, title: '发报查询' } }, { path: 'sndsel', component: () => import("./Sndsel/views"), name: 'Sndsel', meta: { keepAlive: true, title: '发报查询' } },
{ path: 'msgdtl', component: () => import("./Msgdtl/views"), name: 'msgdtl', meta: { keepAlive: true, title: '报文原文展示', module: 'frontend' } },
{ path: 'sndselcop', component: () => import("./Sndselcop/views"), name: 'Sndselcop', meta: { keepAlive: true, title: '发报疑似重复处理' } }, { path: 'sndselcop', component: () => import("./Sndselcop/views"), name: 'Sndselcop', meta: { keepAlive: true, title: '发报疑似重复处理' } },
{ path: 'rcvselcop', component: () => import("./Rcvselcop/views"), name: 'Rcvselcop', meta: { keepAlive: true, title: '收报疑似重复处理' } }, { path: 'rcvselcop', component: () => import("./Rcvselcop/views"), name: 'Rcvselcop', meta: { keepAlive: true, title: '收报疑似重复处理' } },
{ path: 'msgrtm', component: () => import("./Msgrtm/views"), name: 'Msgrtm', meta: { keepAlive: true, title: '人工清分' } }, { path: 'msgrtm', component: () => import("./Msgrtm/views"), name: 'Msgrtm', meta: { keepAlive: true, title: '人工清分' } },
......
...@@ -4,6 +4,57 @@ import moment from "moment"; ...@@ -4,6 +4,57 @@ import moment from "moment";
export default { export default {
methods: { methods: {
async handleSearch() { async handleSearch() {
let begdat = this.model.fddp.begdat;
if (!begdat || begdat == "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.导入起始日期必输!"),
});
return;
}
let enddat = this.model.fddp.enddat;
if (!enddat || enddat == "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.导入结束日期必输!"),
});
return;
}
this.load = true;
let rtnmsg = await Api.post("/gjzf/fxdsdb/query", {
...this.model.fddp,
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
begdat: moment(begdat).format("YYYY-MM-DD"),
enddat: moment(enddat).format("YYYY-MM-DD"),
});
if (rtnmsg.respCode == SUCCESS) {
this.load = false;
this.stmData.data = [];
const {list} = rtnmsg.data;
const {codes:{sta1}} = this;
list.forEach(v=>{
for(let i in sta1){
if(sta1[i].value == v.sta){
v.sta = sta1[i].label;
}
}
})
this.stmData.data = list;
this.pagination = {
pageNum: rtnmsg.data.pageNum || 1,
pageSize: rtnmsg.data.pageSize || 10,
total: parseInt(rtnmsg.data.total),
};
} else {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.服务请求失败!"),
});
}
this.load = false;
}, },
async handleReset() { async handleReset() {
}, },
......
...@@ -5,8 +5,8 @@ export default class Fxdsdb{ ...@@ -5,8 +5,8 @@ export default class Fxdsdb{
constructor () { constructor () {
this.data = { this.data = {
fddp:{ fddp:{
begdat:"", // 导入起始日期 .fddp.begdat begdat:new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)), // 导入起始日期 .fddp.begdat
enddat:"", // 导入截止日期 .fddp.enddat enddat:new Date(), // 导入截止日期 .fddp.enddat
filtyp:"", // 文件类型 .fddp.filtyp filtyp:"", // 文件类型 .fddp.filtyp
filnam:"", // 文件名 .fddp.filnam filnam:"", // 文件名 .fddp.filnam
}, },
......
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 Msgdtl {
constructor() {
this.data = {
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-col :span="24">
<div class="e-table-wrapper">
<el-table :data="model.mdtp.mdtmod.gpe192lst" style="width: 100%">
<el-table-column prop="subtyp" label="报文类型" width="150">
</el-table-column>
<el-table-column prop="orgbic" label="状态发起行BIC" width="150">
</el-table-column>
<el-table-column prop="rspsta" label="处理状态" width="150">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.rspsta" :code="codes.gpista"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="rspcod" label="原因码" width="150">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.rspcod" :code="codes.gpicod"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="credattim" label="创建时间" width="150">
</el-table-column>
<el-table-column prop="upddattim" label="更新时间" width="150">
</el-table-column>
<el-table-column prop="mpstim" label="发送/接收时间" width="150">
</el-table-column>
<el-table-column prop="txt" label="处理说明" width="300">
</el-table-column>
</el-table>
<el-pagination layout="prev, pager, next" :total="model.mdtp.mdtmod.gpe192lstTotal">
</el-pagination>
</div>
</c-col>
<c-col :span="12">
<span v-text="model.mdtp.mdtmod.msgdtl" data-path=".mdtp.mdtmod.msgdtl"> </span>
</c-col>
<c-col :span="24">
<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>
</c-col>
<c-col :span="24">
<div class="e-table-wrapper">
<el-table :data="model.mdtp.mdtmod.gpelst" style="width: 100%">
<el-table-column prop="subtyp" label="报文类型" width="150">
</el-table-column>
<el-table-column prop="orgbic" label="状态发起行BIC" width="150">
</el-table-column>
<el-table-column prop="fwdbic" label="状态转发行BIC" width="150">
</el-table-column>
<el-table-column prop="rspsta" label="处理状态" width="150">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.rspsta" :code="codes.gpista"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="rspcod" label="处理码" width="150">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.rspcod" :code="codes.gpicod"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="stasndtim" label="处理时间" width="150">
</el-table-column>
<el-table-column prop="utc" label="时区" width="150">
</el-table-column>
<el-table-column prop="cur" label="收款币种" width="150">
</el-table-column>
<el-table-column prop="amt" label="收款金额" width="150">
</el-table-column>
<el-table-column prop="oricur" label="原始币种" width="150">
</el-table-column>
<el-table-column prop="exgcur" label="转换币种" width="150">
</el-table-column>
<el-table-column prop="exgrat" label="货币转换汇率" width="150">
</el-table-column>
<el-table-column prop="deucur" label="扣费币种" width="150">
</el-table-column>
<el-table-column prop="deuamt" label="扣费金额" width="150">
</el-table-column>
<el-table-column prop="credattim" label="创建时间" width="150">
</el-table-column>
<el-table-column prop="upddattim" label="更新时间" width="150">
</el-table-column>
<el-table-column prop="mpstim" label="发送/接收时间" width="150">
</el-table-column>
<el-table-column prop="txt" label="处理说明" width="300">
</el-table-column>
</el-table>
<el-pagination layout="prev, pager, next" :total="model.mdtp.mdtmod.gpelstTotal">
</el-pagination>
</div>
</c-col>
<c-col :span="24">
<div class="e-table-wrapper">
<el-table :data="model.mdtp.mdtmod.gpeutrlst" style="width: 100%">
<el-table-column prop="subtyp" label="报文类型" width="150">
</el-table-column>
<el-table-column prop="dir" label="收发方向" width="150">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.dir" :code="codes.dircod"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="cur" label="收款币种" width="150">
</el-table-column>
<el-table-column prop="amt" label="收款金额" width="150">
</el-table-column>
<el-table-column prop="sndbic" label="发报行BIC" width="150">
</el-table-column>
<el-table-column prop="rcvbic" label="收报行BIC" width="150">
</el-table-column>
<el-table-column prop="orgbic" label="状态发起行BIC" width="150">
</el-table-column>
<el-table-column prop="fwdbic" label="状态转发行BIC" width="150">
</el-table-column>
<el-table-column prop="rspsta" label="处理状态" width="150">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.rspsta" :code="codes.gpista"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="rspcod" label="处理码" width="150">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.rspcod" :code="codes.gpicod"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="setmth" label="结算方式" width="150">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.setmth" :code="codes.setmth"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="clrsys" label="清算系统" width="150">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.clrsys" :code="codes.clrsys"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="stasndtim" label="处理时间" width="150">
</el-table-column>
<el-table-column prop="utc" label="时区" width="70">
</el-table-column>
<el-table-column prop="credattim" label="创建时间" width="150">
</el-table-column>
<el-table-column prop="usrnam" label="操作员" width="150">
</el-table-column>
<el-table-column prop="mpstim" label="发送/接收时间" width="150">
</el-table-column>
<el-table-column prop="txt" label="处理说明" width="300">
</el-table-column>
</el-table>
<el-pagination layout="prev, pager, next" :total="model.mdtp.mdtmod.gpeutrlstTotal">
</el-pagination>
</div>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.mdtp.shwpremsg">显示转会前报文</c-checkbox>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
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="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 Msgdtl 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: "Msgdtl",
components: {
"m-msgdtlp": Msgdtlp,
},
provide() {
return {
root: this
}
},
mixins: [operationFunc, commonDepend, event, buildFn],
data() {
return {
tabVal: "msgdtlp",
trnName: "msgdtl",
model: new Msgdtl().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("进入msgdtl交易");
let params = {
transName: this.trnName,
fxdgrp: {
rec: {
inr: this.$route.query.inr || "",
},
},
};
// this.init(params)
}
}
</script>
<style></style>
...@@ -12,6 +12,14 @@ ...@@ -12,6 +12,14 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item label="报文类型" prop="subtype" style="width: 100%">
<el-select v-model="model.sndp.subtyp" placeholder="请选择报文类型">
<el-option v-for="code in subtypCodes" :key="code.label" :label="code.label" :value="code.value">
</el-option>
</el-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="开立日期" prop="rcvdatsta" style="width: 100%"> <el-form-item label="开立日期" prop="rcvdatsta" style="width: 100%">
<c-col :span="11"> <c-col :span="11">
<c-date-picker type="date" v-model="model.sndp.rcvdatsta" style="width: 100%"></c-date-picker> <c-date-picker type="date" v-model="model.sndp.rcvdatsta" style="width: 100%"></c-date-picker>
...@@ -24,14 +32,6 @@ ...@@ -24,14 +32,6 @@
</c-col> </c-col>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8">
<el-form-item label="报文类型" prop="subtype" style="width: 100%">
<el-select v-model="model.sndp.subtyp" placeholder="请选择报文类型">
<el-option v-for="code in subtypCodes" :key="code.label" :label="code.label" :value="code.value">
</el-option>
</el-select>
</el-form-item>
</c-col>
</c-col> </c-col>
</el-row> </el-row>
<!-- 可控展示区 --> <!-- 可控展示区 -->
......
...@@ -12,6 +12,14 @@ ...@@ -12,6 +12,14 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item label="报文类型" prop="subtype" style="width: 100%">
<el-select v-model="model.sndp.subtyp" placeholder="请选择报文类型">
<el-option v-for="code in subtypCodes" :key="code.label" :label="code.label" :value="code.value">
</el-option>
</el-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="开立日期" prop="rcvdatsta" style="width: 100%"> <el-form-item label="开立日期" prop="rcvdatsta" style="width: 100%">
<c-col :span="11"> <c-col :span="11">
<c-date-picker type="date" v-model="model.sndp.rcvdatsta" style="width: 100%"></c-date-picker> <c-date-picker type="date" v-model="model.sndp.rcvdatsta" style="width: 100%"></c-date-picker>
...@@ -24,14 +32,6 @@ ...@@ -24,14 +32,6 @@
</c-col> </c-col>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8">
<el-form-item label="报文类型" prop="subtype" style="width: 100%">
<el-select v-model="model.sndp.subtyp" placeholder="请选择报文类型">
<el-option v-for="code in subtypCodes" :key="code.label" :label="code.label" :value="code.value">
</el-option>
</el-select>
</el-form-item>
</c-col>
</c-col> </c-col>
</el-row> </el-row>
<!-- 可控展示区 --> <!-- 可控展示区 -->
......
...@@ -33,27 +33,88 @@ ...@@ -33,27 +33,88 @@
</el-row> </el-row>
<!-- 可控展示区 --> <!-- 可控展示区 -->
<el-row v-show="searchSlot.searchToggle"> <el-row v-show="searchSlot.searchToggle">
<!-- <c-col :span="24">
<c-col :span="8"> <c-col :span="8">
<el-form-item label="发报行BIC" prop="sndbak" style="width: 100%"> <el-form-item :label="$t('qrtp.起始时间')" prop="qrtp.dts">
<c-input v-model="model.sndp.sndbak" maxlength="40" > <c-date-picker type="date" v-model="model.qrtp.dts" style="width:100%"></c-date-picker>
</c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item label="收报行BIC" prop="revbak" style="width: 100%"> <el-form-item :label="$t('qrtp.截止时间')" prop="qrtp.dte">
<c-input v-model="model.sndp.revbak" maxlength="40" > <c-date-picker type="date" v-model="model.qrtp.dte" style="width:100%"></c-date-picker>
</c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item label="账户行BIC" prop="actbic" style="width: 100%"> <el-form-item :label="$t('qrtp.报文标准')" prop="qrtp.msgtyp">
<c-input v-model="model.sndp.actbic" maxlength="40" > <c-select v-model="model.qrtp.msgtyp" style="width:100%"></c-select>
</c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col>--> <c-col :span="8">
<el-form-item :label="$t('qrtp.报文种类')" prop="qrtp.mty">
<c-select v-model="model.qrtp.mty" style="width:100%"></c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item :label="$t('qrtp.报文状态')" 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>
<c-col :span="8">
<c-form-item :label="$t('qrtp.收报行BIC')" prop="qrtp.revbnk">
<c-input v-model="model.qrtp.revbnk" maxlength="11"></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<c-form-item :label="$t('qrtp.发报行BIC')" prop="qrtp.sedbnk">
<c-input v-model="model.qrtp.sedbnk" maxlength="11"></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<el-form-item :label="$t('qrtp.币种')" prop="qrtp.cur">
<c-select v-model="model.qrtp.cur" style="width:100%"></c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<c-form-item :label="$t('qrtp.金额下限')" prop="qrtp.amtdwl">
<c-input v-model="model.qrtp.amtdwl"></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<c-form-item :label="$t('qrtp.金额上限')" prop="qrtp.amtupl">
<c-input v-model="model.qrtp.amtupl"></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<c-form-item :label="$t('qrtp.CASE编号')" prop="qrtp.casnum">
<c-input v-model="model.qrtp.casnum" maxlength="16"></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<c-form-item :label="$t('qrtp.汇票号码')" prop="qrtp.drtnum">
<c-input v-model="model.qrtp.drtnum" maxlength="20"></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<c-form-item :label="$t('qrtp.报文20域')" prop="qrtp.tagt20">
<c-input v-model="model.qrtp.tagt20" maxlength="16"></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<c-form-item :label="$t('qrtp.报文21域')" prop="qrtp.tagt21">
<c-input v-model="model.qrtp.tagt21" maxlength="16"></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<c-form-item :label="$t('qrtp.UETR')" prop="qrtp.uetr">
<c-input v-model="model.qrtp.uetr" maxlength="40"></c-input>
</c-form-item>
</c-col>
</el-row> </el-row>
</template> </template>
</c-list-search> </c-list-search>
......
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
<!-- LT000309 : : --> <!-- LT000309 : : -->
<c-col :span="12"> <c-col :span="12">
<el-form-item :label="$t('qrtp.LT000152')" prop="qrtp.dts"> <el-form-item :label="$t('qrtp.起始时间')" prop="qrtp.dts">
<c-date-picker type="date" v-model="model.qrtp.dts" style="width:100%" :placeholder="$t('other.please_enter')+$t('qrtp.LT000152')"></c-date-picker> <c-date-picker type="date" v-model="model.qrtp.dts" style="width:100%" :placeholder="$t('other.please_enter')+$t('qrtp.LT000152')"></c-date-picker>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
<!-- LT000310 : : --> <!-- LT000310 : : -->
<c-col :span="12"> <c-col :span="12">
<el-form-item :label="$t('qrtp.LT000153')" prop="qrtp.dte"> <el-form-item :label="$t('qrtp.截止时间')" prop="qrtp.dte">
<c-date-picker type="date" v-model="model.qrtp.dte" style="width:100%" :placeholder="$t('other.please_enter')+$t('qrtp.LT000153')"></c-date-picker> <c-date-picker type="date" v-model="model.qrtp.dte" style="width:100%" :placeholder="$t('other.please_enter')+$t('qrtp.LT000153')"></c-date-picker>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -175,14 +175,14 @@ ...@@ -175,14 +175,14 @@
<!-- LT004024 : : --> <!-- LT004024 : : -->
<c-col :span="12"> <c-col :span="12">
<el-form-item :label="$t('qrtp.LT004023')" prop="qrtp.msgtyp"> <el-form-item :label="$t('qrtp.报文标准')" prop="qrtp.msgtyp">
<c-select v-model="model.qrtp.msgtyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('qrtp.LT004023')"> <c-select v-model="model.qrtp.msgtyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('qrtp.LT004023')">
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<el-form-item :label="$t('qrtp.LT000173')" prop="qrtp.mty"> <el-form-item :label="$t('qrtp.报文种类')" prop="qrtp.mty">
<c-select v-model="model.qrtp.mty" style="width:100%" :placeholder="$t('other.please_enter')+$t('qrtp.LT000173')"> <c-select v-model="model.qrtp.mty" style="width:100%" :placeholder="$t('other.please_enter')+$t('qrtp.LT000173')">
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -191,7 +191,7 @@ ...@@ -191,7 +191,7 @@
<!-- LT000312 : : --> <!-- LT000312 : : -->
<c-col :span="12"> <c-col :span="12">
<el-form-item :label="$t('qrtp.LT000084')" prop="qrtp.msgsta"> <el-form-item :label="$t('qrtp.报文状态')" prop="qrtp.msgsta">
<c-select v-model="model.qrtp.msgsta" style="width:100%" :placeholder="$t('other.please_enter')+$t('qrtp.LT000084')"> <c-select v-model="model.qrtp.msgsta" style="width:100%" :placeholder="$t('other.please_enter')+$t('qrtp.LT000084')">
<el-option <el-option
v-for="item in codes.mgssta" v-for="item in codes.mgssta"
...@@ -206,7 +206,7 @@ ...@@ -206,7 +206,7 @@
<!-- LT000313 : : --> <!-- LT000313 : : -->
<c-col :span="12"> <c-col :span="12">
<c-form-item :label="$t('qrtp.LT000085')" prop="qrtp.revbnk"> <c-form-item :label="$t('qrtp.收报行BIC')" prop="qrtp.revbnk">
<c-input v-model="model.qrtp.revbnk" maxlength="11" :placeholder="$t('other.please_enter')+$t('qrtp.LT000085')"></c-input> <c-input v-model="model.qrtp.revbnk" maxlength="11" :placeholder="$t('other.please_enter')+$t('qrtp.LT000085')"></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
...@@ -214,7 +214,7 @@ ...@@ -214,7 +214,7 @@
<!-- LT000314 : : --> <!-- LT000314 : : -->
<c-col :span="12"> <c-col :span="12">
<c-form-item :label="$t('qrtp.LT000086')" prop="qrtp.sedbnk"> <c-form-item :label="$t('qrtp.发报行BIC')" prop="qrtp.sedbnk">
<c-input v-model="model.qrtp.sedbnk" maxlength="11" :placeholder="$t('other.please_enter')+$t('qrtp.LT000086')"></c-input> <c-input v-model="model.qrtp.sedbnk" maxlength="11" :placeholder="$t('other.please_enter')+$t('qrtp.LT000086')"></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
...@@ -222,7 +222,7 @@ ...@@ -222,7 +222,7 @@
<!-- LT000315 : : --> <!-- LT000315 : : -->
<c-col :span="12"> <c-col :span="12">
<el-form-item :label="$t('qrtp.LT000087')" prop="qrtp.cur"> <el-form-item :label="$t('qrtp.币种')" prop="qrtp.cur">
<c-select v-model="model.qrtp.cur" style="width:100%" :placeholder="$t('other.please_enter')+$t('qrtp.LT000087')"> <c-select v-model="model.qrtp.cur" style="width:100%" :placeholder="$t('other.please_enter')+$t('qrtp.LT000087')">
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -231,7 +231,7 @@ ...@@ -231,7 +231,7 @@
<!-- LT000316 : : --> <!-- LT000316 : : -->
<c-col :span="12"> <c-col :span="12">
<c-form-item :label="$t('qrtp.LT000089')" prop="qrtp.amtdwl"> <c-form-item :label="$t('qrtp.金额下限')" prop="qrtp.amtdwl">
<c-input v-model="model.qrtp.amtdwl" :placeholder="$t('other.please_enter')+$t('qrtp.LT000089')"></c-input> <c-input v-model="model.qrtp.amtdwl" :placeholder="$t('other.please_enter')+$t('qrtp.LT000089')"></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
...@@ -239,7 +239,7 @@ ...@@ -239,7 +239,7 @@
<!-- LT000317 : : --> <!-- LT000317 : : -->
<c-col :span="12"> <c-col :span="12">
<c-form-item :label="$t('qrtp.LT000088')" prop="qrtp.amtupl"> <c-form-item :label="$t('qrtp.金额上限')" prop="qrtp.amtupl">
<c-input v-model="model.qrtp.amtupl" :placeholder="$t('other.please_enter')+$t('qrtp.LT000088')"></c-input> <c-input v-model="model.qrtp.amtupl" :placeholder="$t('other.please_enter')+$t('qrtp.LT000088')"></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
<!-- LT000318 : : --> <!-- LT000318 : : -->
<c-col :span="12"> <c-col :span="12">
<c-form-item :label="$t('qrtp.LT000091')" prop="qrtp.casnum"> <c-form-item :label="$t('qrtp.CASE编号')" prop="qrtp.casnum">
<c-input v-model="model.qrtp.casnum" maxlength="16" :placeholder="$t('other.please_enter')+$t('qrtp.LT000091')"></c-input> <c-input v-model="model.qrtp.casnum" maxlength="16" :placeholder="$t('other.please_enter')+$t('qrtp.LT000091')"></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
...@@ -255,7 +255,7 @@ ...@@ -255,7 +255,7 @@
<!-- LT000319 : : --> <!-- LT000319 : : -->
<c-col :span="12"> <c-col :span="12">
<c-form-item :label="$t('qrtp.LT000090')" prop="qrtp.drtnum"> <c-form-item :label="$t('qrtp.汇票号码')" prop="qrtp.drtnum">
<c-input v-model="model.qrtp.drtnum" maxlength="20" :placeholder="$t('other.please_enter')+$t('qrtp.LT000090')"></c-input> <c-input v-model="model.qrtp.drtnum" maxlength="20" :placeholder="$t('other.please_enter')+$t('qrtp.LT000090')"></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
...@@ -263,7 +263,7 @@ ...@@ -263,7 +263,7 @@
<!-- LT000320 : : --> <!-- LT000320 : : -->
<c-col :span="12"> <c-col :span="12">
<c-form-item :label="$t('qrtp.LT000220')" prop="qrtp.tagt20"> <c-form-item :label="$t('qrtp.报文20域')" prop="qrtp.tagt20">
<c-input v-model="model.qrtp.tagt20" maxlength="16" :placeholder="$t('other.please_enter')+$t('qrtp.LT000220')"></c-input> <c-input v-model="model.qrtp.tagt20" maxlength="16" :placeholder="$t('other.please_enter')+$t('qrtp.LT000220')"></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
...@@ -271,7 +271,7 @@ ...@@ -271,7 +271,7 @@
<!-- LT000321 : : --> <!-- LT000321 : : -->
<c-col :span="12"> <c-col :span="12">
<c-form-item :label="$t('qrtp.LT000221')" prop="qrtp.tagt21"> <c-form-item :label="$t('qrtp.报文21域')" prop="qrtp.tagt21">
<c-input v-model="model.qrtp.tagt21" maxlength="16" :placeholder="$t('other.please_enter')+$t('qrtp.LT000221')"></c-input> <c-input v-model="model.qrtp.tagt21" maxlength="16" :placeholder="$t('other.please_enter')+$t('qrtp.LT000221')"></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
...@@ -281,7 +281,7 @@ ...@@ -281,7 +281,7 @@
<!-- LT004621 : : --> <!-- LT004621 : : -->
<c-col :span="12"> <c-col :span="12">
<c-form-item :label="$t('qrtp.LT004620')" prop="qrtp.uetr"> <c-form-item :label="$t('qrtp.UETR')" prop="qrtp.uetr">
<c-input v-model="model.qrtp.uetr" maxlength="40" :placeholder="$t('other.please_enter')+$t('qrtp.LT004620')"></c-input> <c-input v-model="model.qrtp.uetr" maxlength="40" :placeholder="$t('other.please_enter')+$t('qrtp.LT004620')"></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
......
...@@ -7,11 +7,19 @@ ...@@ -7,11 +7,19 @@
<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.rcvp.msgtyp" style="width: 100%" placeholder="请选择货押标识" :code="codes.msgtyp3"> <c-select v-model="model.rcvp.msgtyp" style="width: 100%" placeholder="请选择报文标准" :code="codes.msgtyp3">
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item label="报文类型" prop="subtype" style="width: 100%">
<el-select v-model="model.rcvp.subtyp" placeholder="请选择报文类型">
<el-option v-for="code in subtypCodes" :key="code.label" :label="code.label" :value="code.value">
</el-option>
</el-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="开立日期" prop="rcvdatsta" style="width: 100%"> <el-form-item label="开立日期" prop="rcvdatsta" style="width: 100%">
<c-col :span="11"> <c-col :span="11">
<c-date-picker type="date" v-model="model.rcvp.rcvdatsta" style="width: 100%"></c-date-picker> <c-date-picker type="date" v-model="model.rcvp.rcvdatsta" style="width: 100%"></c-date-picker>
...@@ -24,14 +32,6 @@ ...@@ -24,14 +32,6 @@
</c-col> </c-col>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8">
<el-form-item label="报文类型" prop="subtype" style="width: 100%">
<el-select v-model="model.rcvp.subtyp" placeholder="请选择报文类型">
<el-option v-for="code in subtypCodes" :key="code.label" :label="code.label" :value="code.value">
</el-option>
</el-select>
</el-form-item>
</c-col>
</c-col> </c-col>
</el-row> </el-row>
<!-- 可控展示区 --> <!-- 可控展示区 -->
...@@ -157,6 +157,7 @@ ...@@ -157,6 +157,7 @@
<el-tab-pane label="发报查询" name="sb"> <el-tab-pane label="发报查询" name="sb">
<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" height="calc(100vh - 480px)" :highlight-current-row="true"> size="small" :border="true" height="calc(100vh - 480px)" :highlight-current-row="true">
<el-table-column type="selection" width="55"> <el-table-column type="selection" width="55">
</el-table-column> </el-table-column>
...@@ -320,7 +321,16 @@ export default { ...@@ -320,7 +321,16 @@ export default {
deep: true deep: true
} }
}, },
methods: {}, methods: {
dbClickRow() {
this.routerPush({
path: '/business/msgdtl',
query: {
}
})
}
},
mounted: function () { mounted: function () {
}, },
}; };
......
...@@ -7,11 +7,19 @@ ...@@ -7,11 +7,19 @@
<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.rcvp.msgtyp" style="width: 100%" placeholder="请选择货押标识" :code="codes.msgtyp3"> <c-select v-model="model.rcvp.msgtyp" style="width: 100%" placeholder="请选择报文标准" :code="codes.msgtyp3">
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item label="报文类型" prop="subtype" style="width: 100%">
<el-select v-model="model.rcvp.subtyp" placeholder="请选择报文类型">
<el-option v-for="code in subtypCodes" :key="code.label" :label="code.label" :value="code.value">
</el-option>
</el-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="开立日期" prop="rcvdatsta" style="width: 100%"> <el-form-item label="开立日期" prop="rcvdatsta" style="width: 100%">
<c-col :span="11"> <c-col :span="11">
<c-date-picker type="date" v-model="model.rcvp.rcvdatsta" style="width: 100%"></c-date-picker> <c-date-picker type="date" v-model="model.rcvp.rcvdatsta" style="width: 100%"></c-date-picker>
...@@ -24,14 +32,6 @@ ...@@ -24,14 +32,6 @@
</c-col> </c-col>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8">
<el-form-item label="报文类型" prop="subtype" style="width: 100%">
<el-select v-model="model.rcvp.subtyp" placeholder="请选择报文类型">
<el-option v-for="code in subtypCodes" :key="code.label" :label="code.label" :value="code.value">
</el-option>
</el-select>
</el-form-item>
</c-col>
</c-col> </c-col>
</el-row> </el-row>
<!-- 可控展示区 --> <!-- 可控展示区 -->
......
...@@ -12,6 +12,14 @@ ...@@ -12,6 +12,14 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item label="报文类型" prop="subtype" style="width: 100%">
<el-select v-model="model.sndp.subtyp" placeholder="请选择报文类型">
<el-option v-for="code in subtypCodes" :key="code.label" :label="code.label" :value="code.value">
</el-option>
</el-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="开立日期" prop="rcvdatsta" style="width: 100%"> <el-form-item label="开立日期" prop="rcvdatsta" style="width: 100%">
<c-col :span="11"> <c-col :span="11">
<c-date-picker type="date" v-model="model.sndp.rcvdatsta" style="width: 100%"></c-date-picker> <c-date-picker type="date" v-model="model.sndp.rcvdatsta" style="width: 100%"></c-date-picker>
...@@ -24,14 +32,6 @@ ...@@ -24,14 +32,6 @@
</c-col> </c-col>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8">
<el-form-item label="报文类型" prop="subtype" style="width: 100%">
<el-select v-model="model.sndp.subtyp" placeholder="请选择报文类型">
<el-option v-for="code in subtypCodes" :key="code.label" :label="code.label" :value="code.value">
</el-option>
</el-select>
</el-form-item>
</c-col>
</c-col> </c-col>
</el-row> </el-row>
<!-- 可控展示区 --> <!-- 可控展示区 -->
......
...@@ -7,11 +7,19 @@ ...@@ -7,11 +7,19 @@
<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"> <c-select v-model="model.sndp.msgtyp" style="width: 100%" placeholder="请选择报文标准" :code="codes.msgtyp3">
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item label="报文类型" prop="subtype" style="width: 100%">
<el-select v-model="model.sndp.subtyp" placeholder="请选择报文类型">
<el-option v-for="code in subtypCodes" :key="code.label" :label="code.label" :value="code.value">
</el-option>
</el-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="开立日期" prop="rcvdatsta" style="width: 100%"> <el-form-item label="开立日期" prop="rcvdatsta" style="width: 100%">
<c-col :span="11"> <c-col :span="11">
<c-date-picker type="date" v-model="model.sndp.rcvdatsta" style="width: 100%"></c-date-picker> <c-date-picker type="date" v-model="model.sndp.rcvdatsta" style="width: 100%"></c-date-picker>
...@@ -24,14 +32,6 @@ ...@@ -24,14 +32,6 @@
</c-col> </c-col>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8">
<el-form-item label="报文类型" prop="subtype" style="width: 100%">
<el-select v-model="model.sndp.subtyp" placeholder="请选择报文类型">
<el-option v-for="code in subtypCodes" :key="code.label" :label="code.label" :value="code.value">
</el-option>
</el-select>
</el-form-item>
</c-col>
</c-col> </c-col>
</el-row> </el-row>
<!-- 可控展示区 --> <!-- 可控展示区 -->
......
<template> <template>
<div class="eContainer-search"> <div class="eContainer-search">
<el-form <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small"
:model="model"
:rules="rules"
ref="modelForm"
label-width="120px"
label-position="right"
size="small"
:validate-on-rule-change="false"> :validate-on-rule-change="false">
<c-content> <c-content>
<m-infsea :model="model" :codes="codes" ref="infsea" /> <m-infsea :model="model" :codes="codes" ref="infsea" />
</c-content> </c-content>
...@@ -22,31 +15,28 @@ import Infsea from "./Infsea"; ...@@ -22,31 +15,28 @@ import Infsea from "./Infsea";
export default { export default {
name: 'infcpd', name: 'infcpd',
components:{ components: {
"m-infsea" : Infsea, "m-infsea": Infsea,
}, },
provide() { provide() {
return { return {
root: this root: this
} }
}, // 里面包含了Default、Check等的公共处理 },
data(){ data() {
return { return {
tabVal: "", tabVal: "",
trnName: "infcpd", trnName: "infcpd",
model: new Infcpd().data, model: new Infcpd().data,
rules: null, rules: null,
codes:{...CodeTable}, codes: { ...CodeTable },
} }
}, },
methods:{ methods: {
}, },
mounted () { mounted() {
}, },
} }
</script> </script>
<style scoped> <style scoped></style>
</style>
...@@ -41,6 +41,7 @@ const RemittanceRouter = [ ...@@ -41,6 +41,7 @@ const RemittanceRouter = [
{ path: 'auesig', component: () => import('./Autsig/Auesig/views'), name: 'Auesig', meta: { keepAlive: true, title: '自动化签约信息编辑',module: 'Remittance' } }, { path: 'auesig', component: () => import('./Autsig/Auesig/views'), name: 'Auesig', meta: { keepAlive: true, title: '自动化签约信息编辑',module: 'Remittance' } },
{ path: 'autrul', component: () => import('./Autsig/Autrul/views'), name: 'Autrul', meta: { keepAlive: true, title: '签约场景配置',module: 'Remittance' } }, { path: 'autrul', component: () => import('./Autsig/Autrul/views'), name: 'Autrul', meta: { keepAlive: true, title: '签约场景配置',module: 'Remittance' } },
// 代理行
{ path: 'zptsel', component: () => import('./Zptsel/views'), name: 'zptsel', meta: { keepAlive: true, title: '转汇款',module: 'Remittance' } },
] ]
export default RemittanceRouter export default RemittanceRouter
import Api from '~/service/Api';
import moment from 'moment';
export default {
methods: {
async handleSearch() {
if ((this.model.infcon.seaownref == '' || this.model.infcon.seaownref == null) && this.model.infcon.opndatfrom == null) {
this.$notify.error({ title: '错误', message: '开始日期必输!' });
return;
}
if ((this.model.infcon.seaownref == '' || this.model.infcon.seaownref == null) && this.model.infcon.opndatto == null) {
this.$notify.error({ title: '错误', message: '截止日期必输!' });
return;
}
if (this.model.infcon.opndatfrom != null && this.model.infcon.opndatto != null) {
if (new Date(this.model.infcon.opndatfrom).getTime() > new Date(this.model.infcon.opndatto).getTime()) {
this.$notify.error({ title: '错误', message: '开始日期应小于或等于截止日期!' });
return
}
}
if (this.model.infcon.seacur == '' && (this.model.infcon.seaamtfr != '' || this.model.infcon.seaamtto != '')) {
this.$notify.error({ title: '错误', message: '输入金额前请先选择币种!' });
return
}
if (this.model.infcon.seaamtfr != '' && this.model.infcon.seaamtto != '') {
if (Number(this.model.infcon.seaamtfr) > Number(this.model.infcon.seaamtto)) {
this.$notify.error({ title: '错误', message: '金额下限应小于等于金额上限!' });
return
}
}
this.load = true;
let params = {
...this.model.infcon,
opndatfrom: this.model.infcon.opndatfrom ? moment(this.model.infcon.opndatfrom).format("YYYY-MM-DD") : '',
opndatto: this.model.infcon.opndatto ? moment(this.model.infcon.opndatto).format("YYYY-MM-DD") : '',
branch: JSON.parse(sessionStorage.getItem('currentOrg')).departmentNumber,
pageNumber: this.pagination.pageIndex,
pageSize: this.pagination.pageSize,
paytyp: 'I',
};
delete params.markSet
delete params.modifySet
let rtnmsg = await Api.post('/Remittance/cptsel/listcp', params);
if (rtnmsg.respCode == SUCCESS) {
this.stmData.data = [];
this.stmData.data = rtnmsg.data.list;
this.pagination.total = rtnmsg.data.total;
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
this.load = false;
},
async handleReset() {
this.model.infcon = {}
},
//柜员列表
async getUserList() {
let param = {};
if (this.model.bchcon) {
param.bchcon = this.model.bchcon
}
let res = await Api.post("/public/quesel/getActUserList", param);
if (res.respCode == SUCCESS) {
this.userList = res.data.list;
}
},
//获取机构列表
async getBranchList() {
let branch = JSON.parse(sessionStorage.getItem('currentOrg')).departmentNumber
let rtnmsg = await Api.post("/public/rptsel/getBranchList", branch)
if (rtnmsg.respCode === SUCCESS) {
this.bchtypList = rtnmsg.data.filter(item => (item.lev != 'A' && item.lev != 'B'))
}
},
// pageSize改变
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
this.pagination.pageIndex = 1;
this.pagination.pageSize = val;
this.handleSearch();
},
// 页码改变
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.pagination.pageIndex = val;
this.handleSearch();
},
// 详情
async details(row) {
const params = {
ownref: row.ownref,
};
const res = await Api.post('/manager/trn/getTrnListByOwnref', params);
if (res.respCode === SUCCESS) {
if (res.data.length === 1) {
if (this.oldRefId && this.$refs[this.oldRefId]) {
this.$refs[this.oldRefId].showPopper = false;
}
this.display(res.data[0])
} else {
this.trnData.data = res.data;
this.oldRefId = 'popover_' + row.inr
this.$refs[this.oldRefId].showPopper = true;
}
}
},
closeDisplayDialog() {
if (this.oldRefId) {
this.$refs[this.oldRefId].showPopper = false;
}
},
// 关闭详情弹框
closeDetailsDialog(refId) {
if (refId) {
this.$refs[refId].showPopper = false;
}
},
// 处理
async handler(row) {
this.handleModel = row;
this.trnUrl = 'Remittance';
this.inifrm = 'cptsel';
this.initdialog = true;
},
//双击表格数据
async TableDblRow(row) {
this.handler(row)
},
//点击处理弹窗中按钮
async handleClick(btn, row) {
let obj = {
objtyp: 'CPD',
objinr: row.inr,
pntinr: row.pntinr,
pnttyp: row.pnttyp,
ledinr: row.ledinr,
trnName: btn.code.toLowerCase(),
}
let isPush = await this.$refs.lockAndPending.checkLockAndPending(obj)
if (!isPush) {
return
}
let params = {}
let type;
if ("挂账退汇" === btn.label.toUpperCase()) {
type = "GZTH"
} else if ("解付后退汇" === btn.label.toUpperCase()) {
type = "JFTH"
}
if (btn.code.toLowerCase() == 'jstopn') {
params = {
path: "/business/" + btn.code.toLowerCase(),
}
} else {
params = {
path: "/business/" + btn.code.toLowerCase(),
query: { inr: row.inr, pntinr: row.pntinr, accmod: 'G', type: type }
}
}
this.routerPush(params);
this.initdialog = false;
},
//修改弹窗状态
changeBtn(isVisible) {
this.initdialog = isVisible;
},
// 关闭处理弹框
closeHandlerDialog() {
this.initdialog = false;
},
/**
* 打开快照页面
* @param {string} inr
*/
display(row) {
if (this.oldRefId) {
this.$refs[this.oldRefId].showPopper = false;
}
// 历史快照
if (row.inr.length == 8) {
this.routerPush({
path: '/business/HistoryRecord',
query: {
businessInr: row.inr,
businessType: 'TRN',
type: 'view'
}
})
} else if (row.inr.length == 16) {
this.routerPush({
path: `/display/${row.inifrm.toLowerCase()}`,
query: {
businessInr: row.inr,
businessType: 'TRN'
}
});
}
},
toCptati() {
// 点击开立,清空从待经办进来的时候带的行参数
// localStorage.setItem('row_letopn', null)
// localStorage.setItem('review_letopn',null)
this.routerPush({
path: '/business/cptati',
});
},
toCptato() {
this.routerPush({
path: '/business/cptato',
});
},
toZptadv() {
this.routerPush({
path: '/business/zptadv',
});
},
toZptopn() {
this.routerPush({
path: '/business/zptopn',
});
},
toZpticr() {
this.routerPush({
path: '/business/zpticr',
});
},
toZptocr() {
this.routerPush({
path: '/business/zptocr',
});
},
changeOwnref() {
if (this.model.infcon.seaownref) {
this.model.infcon.opndatfrom = null
}
},
//Info
toInfo(row, objtyp, subobjtyp, paytyp) {
this.routerPush({
path: "/business/cpdinf",
query: { inr: row.inr, objtyp: objtyp, pntinr: row.pntinr, subobjtyp: subobjtyp, paytyp: paytyp }
});
},
async getdbCode(codeType, uil, codeNam) {
let params = {
codeType: codeType,
uil: uil ? uil : 'EN'
}
let rtnmsg = await Api.post("/manager/dic/listDicInfo", params)
if (rtnmsg.respCode === SUCCESS) {
let curList = rtnmsg.data.map(item => ({
value: item.codeValue,
label: item.codeName
}));
this.model.dbCodes[codeNam] = curList
}
},
getCodelabel(value, codenam) {
const codeobj = this.model.dbCodes[codenam].find(obj => obj.value === value)
return codeobj ? codeobj.label : value;
},
},
};
export default class Zptsel {
constructor() {
this.data = {
dbCodes: {
cptrou: [],
},
infcon: {
seaownref: '',
opndatfrom: new Date((new Date).getTime() - (7 * 24 * 60 * 60 * 1000)),
opndatto: new Date(),
searef: '',
route: '',
isClosed: '',
seacur: '',
seaamtfr: '',
seaamtto: '',
branchinr: '',
ownusr: '',
}
}
}
}
<template>
<div class="eContainer-search">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
<c-content>
<m-infsea :model="model" :codes="codes" ref="infsea" />
</c-content>
</el-form>
</div>
</template>
<script>
import CodeTable from "~/config/CodeTable";
import Zptsel from "../model";
import event from "../event"
import Infsea from "./Infsea";
export default {
name: "Zptsel",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this
}
},
mixins: [event], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "infsea",
trnName: "zptsel",
model: new Zptsel().data,
rules: null,
codes: { ...CodeTable },
};
},
methods: {},
created: async function () { },
};
</script>
<style scoped></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