Commit dca93a98 by suwenhao

精简trnrel模块代码;

parent dae1eb9e
import Utils from "~/utils/index";
export default {
methods: {
//重置
async handleReset() {
this.model.bchcon = "";
this.model.trncorco.ownref = "";
this.model.trncorco.relflg = "ALL";
this.model.usrcon = "";
this.model.trncorco.inidatfro = "";
this.model.trncorco.inidattil = "";
this.model.atp.cod = "";
this.model.trncorco.dflg = "ALL";
this.model.atptxt = "";
this.model.searchAllUsers = false;
},
//查询列表
async handleSearch() {
if(this.model.trncorco.relflg == ''){
this.model.trncorco.relflg = '0';
}
let params = {
ownref: this.model.trncorco.ownref,
inidattil: this.model.trncorco.inidattil,
inidatfro: this.model.trncorco.inidatfro,
usrcon: this.model.usrcon,
relflg: this.model.trncorco.relflg,
bchcon: this.model.bchcon,
cod: this.model.atp.cod,
dflg: this.model.trncorco.dflg,
atptxt: this.model.atptxt,
bchtyp: "",
iniusr: "",
userId: "ZL"
}
//查询接口
const res = await Api.post("/service/trnrel/getTenrelList", params);
that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows;
this.model.trncorco.trnstm = res.data.trncorco_trnstm;
this.$store.commit("setTaskList", {key: "trnrel", val: this.stmData.data.length});
this.$refs.paramsForm.clearValidate();
Utils.positioningErrorMsg(res.fieldErrors, this.$refs.paramsForm.fields)
},
//交易代码
async onSeainf() {
},
//交易详情
async onWaitDetail(idx, row) {
let viewurl = "business/inftrnpsDetail";
const selIds = [idx + 1];
const selDst = "trncorco.trnstm" //列表对应后台模型中的stream
let params = { selDst, selIds };
this.executeRule("dsp",params).then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
sessionStorage.setItem('InftrnpsDetail', JSON.stringify(this.model));
this.$router.push({ path: viewurl, query: {} });
}else{
const h = this.$createElement;
const msg = res.respMsg||'请求执行失败!'
this.$notify.error({ title: '错误', message: h('p',{style: 'word-break:break-all;'}, msg) })
}
});
},
//处理
async onHandle(idx, row) {
let trnName = row.trnName;
const operateId = await this.$store.dispatch('Transaction/setOperateFuns', {
pass: this.onRelrow.bind(this, idx),
refuse: this.onReprow.bind(this, idx),
});
this.$router.push({ name: 'Review' + trnName.charAt(0).toUpperCase() + trnName.substring(1), query: { trn: row['INR'], operateId: operateId }, params: { prePageId: this.model.pageId } });
},
}
}
\ No newline at end of file
export default class Trnrel {
constructor() {
this.data = {
trncorco: {
ownref: "", // Reference .trncorco.ownref
relflg: "", // Status .trncorco.relflg
inidatfro: "", // Date of entry of Transaction .trncorco.inidatfro
inidattil: new Date(), // Date of entry of Transaction until .trncorco.inidattil
trnstm: "", // List of transaction sfor display .trncorco.trnstm
dflg: "", // 国内证标志 .trncorco.dflg
selinr: {},
},
atp: {
cod: "", // Transaction Type .atp.cod
},
atpget: {
sdamod: {
seainf: "", // .atpget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .atpget.sdamod.dadsnd
},
},
atptxt: "", // Transaction Text .atptxt
numtrn: "", // # of transactions .numtrn
orddsp: "", // >> .orddsp
bchcon: "", // Branch .bchcon
usrcon: "", // User .usrcon
recpan: {
cpltxt: "", // Completion text .recpan.cpltxt
spt: {
sta: "", // Status .recpan.spt.sta
},
ord: {
sta: "", // Status .recpan.ord.sta
},
recget: {
sdamod: {
seainf: "", // Ident No. .recpan.recget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .recpan.recget.sdamod.dadsnd
},
},
atp: {
cod: "", // Transaction ID .recpan.atp.cod
},
atpget: {
sdamod: {
dadsnd: "", // Drag Drop Sender .recpan.atpget.sdamod.dadsnd
seainf: "", // Transaction .recpan.atpget.sdamod.seainf
},
},
smhstm: "", // Documents .recpan.smhstm
usr: {
extkey: "", // User ID .recpan.usr.extkey
},
usrget: {
sdamod: {
seainf: "", // .recpan.usrget.sdamod.seainf
},
},
trsstm: "", // Signatures .recpan.trsstm
con: "", // Reference .recpan.con
cretrs: {
usr: "", // Entered by .recpan.cretrs.usr
dattim: "", // Timestamp .recpan.cretrs.dattim
},
ackgrp: {
rec: {
sndref: "", // Send to SOP/CASmf reference .recpan.ackgrp.rec.sndref
},
},
wfestm: "", // WFEs for transaction for display .recpan.wfestm
evthisstm: "", // stream of history of transactions .recpan.evthisstm
evtstm: "", // stream of events .recpan.evtstm
ackstm: "", // ACKs for transaction .recpan.ackstm
trostm: "", // TROs for transaction for display .recpan.trostm
prtgleblk: "", // XMLPanel prtgle的内置block .recpan.prtgleblk
prtpanblk: "", // XMLPanel prtpan的内置block .recpan.prtpanblk
},
trn: {
ownref: "", // Reference .trn.ownref
inr: "", // Transaction Key .trn.inr
objnam: "", // External Readable Object Identification .trn.objnam
reloricur: "", // Relevant Amount .trn.reloricur
reloriamt: "", // Relevant Amount for Release in Original Currency .trn.reloriamt
relflg: "", // Release Status of Transaction .trn.relflg
usr: "", // Responsible .trn.usr
usg: "", // Responsible Group .trn.usg
relreq: "", // Signatures Required/Obtained .trn.relreq
relres: "", // Applied Signatures .trn.relres
cortrninr: "", // Based on Ident No. .trn.cortrninr
exedat: "", // Execution Date .trn.exedat
inftxt: "", // Infotext .trn.inftxt
infdsp: "", // Infoflag .trn.infdsp
inifrm: "",
},
wfmmod: {
wfs: {
objnam: "", // External Readable Object Identification .wfmmod.wfs.objnam
objtyp: "", // Table Used to Store Associated Object .wfmmod.wfs.objtyp
objinr: "", // Object .wfmmod.wfs.objinr
},
},
docimm: {
prtswtpblk: "", // XMLPanel prtswtp的内置block .docimm.prtswtpblk
xmldocblk: "", // XMLPanel xmldoc的内置block .docimm.xmldocblk
prtswtrpblk: "", // XMLPanel prtswtrp的内置block .docimm.prtswtrpblk
docbol: {
prtpblk: "", // XMLPanel prtp的内置block .docimm.docbol.prtpblk
},
},
pageId: "", // ctx的key
searchAllUsers: ""
}
}
}
\ No newline at end of file
export default class Inftrnps {
constructor() {
this.data = {
trncorco: {
ownref: "", // Reference .trncorco.ownref
relflg: "", // Status .trncorco.relflg
inidatfro: "", // Date of entry of Transaction .trncorco.inidatfro
inidattil: new Date(), // Date of entry of Transaction until .trncorco.inidattil
trnstm: "", // List of transaction sfor display .trncorco.trnstm
dflg: "", // 国内证标志 .trncorco.dflg
selinr: {},
},
atp: {
cod: "", // Transaction Type .atp.cod
},
atptxt: "", // Transaction Text .atptxt
usrcon: "", // User .usrcon
bchcon: "", // Branch .bchcon
}
}
}
\ No newline at end of file
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<!-- <c-list-search @form-reset="handleReset" @form-search="handleSearch"> -->
<!-- <template v-slot="searchSlot"> -->
<el-form class="m-table-search-form" ref="paramsForm" label-position="right" label-width="110px" <el-form class="m-table-search-form" ref="paramsForm" label-position="right" label-width="110px"
size="small"> size="small">
<el-row> <el-row>
...@@ -38,13 +36,6 @@ ...@@ -38,13 +36,6 @@
</c-col> </c-col>
</c-col> </c-col>
</el-row> </el-row>
<!--
<c-col :span="12">
<el-form-item label="Drag Drop Sender">
<c-input v-model="model.atpget.sdamod.dadsnd" placeholder="请输入Drag Drop Sender"></c-input>
</el-form-item>
</c-col>
-->
<el-row> <el-row>
<c-col :span="24" style=""> <c-col :span="24" style="">
<c-col :span="8"> <c-col :span="8">
...@@ -63,15 +54,6 @@ ...@@ -63,15 +54,6 @@
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<!--
<c-col :span="12">
<el-form-item label="and">
</el-form-item>
</c-col> -->
<c-col :span="8"> <c-col :span="8">
<el-form-item label="交易代码" prop="atp.cod" style="width: 100%"> <el-form-item label="交易代码" prop="atp.cod" style="width: 100%">
<c-col :span="24"> <c-col :span="24">
...@@ -79,8 +61,6 @@ ...@@ -79,8 +61,6 @@
<c-input v-model="model.atp.cod" maxlength="6" style="width: 95%" placeholder="请输入交易代码" <c-input v-model="model.atp.cod" maxlength="6" style="width: 95%" placeholder="请输入交易代码"
@keyup.enter.native="showGridPromptDialog('findAtpCod')"></c-input> @keyup.enter.native="showGridPromptDialog('findAtpCod')"></c-input>
</c-col> </c-col>
<!-- <c-input v-model="model.atpget.sdamod.seainf" style="width:10%" placeholder="i"></c-input> -->
<c-col :span="4"> <c-col :span="4">
<c-button size="small" style="width:100%;margin-left:0" type="primary" @click="onSeainf" <c-button size="small" style="width:100%;margin-left:0" type="primary" @click="onSeainf"
icon="el-icon-search"></c-button> icon="el-icon-search"></c-button>
...@@ -119,11 +99,18 @@ ...@@ -119,11 +99,18 @@
<el-row> <el-row>
<c-col :span="24" style=""> <c-col :span="24" style="">
<c-istream-table :list="stmData.data" :columns="stmData.columns" style="width:100%" :showButtonFlg="true"> <el-table :data="stmData.data" :columns="stmData.columns" style="width:100%" :showButtonFlg="true">
<el-table-column
v-for="(item, key) in stmData.columns"
:key="key"
:label="item.label"
:prop="item.prop"
>
</el-table-column>
<el-table-column fixed="right" prop="op" label="操作" width="140px"> <el-table-column fixed="right" prop="op" label="操作" width="140px">
<template slot="header"> <template slot="header">
<c-col :span="11" style="text-align:center"><span>操作</span></c-col> <c-col :span="11" style="text-align:center"><span>操作</span></c-col>
<!-- <c-col :span="12" style="text-align:right"><c-button icon="el-icon-s-tools"></c-button></c-col> -->
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<c-button style="margin-left: 0" size="small" @click="onWaitDetail(scope.$index,scope.row)"> <c-button style="margin-left: 0" size="small" @click="onWaitDetail(scope.$index,scope.row)">
...@@ -132,35 +119,26 @@ ...@@ -132,35 +119,26 @@
<c-button style="margin-left: 5px" size="small" type="primary" @click="onHandle(scope.$index,scope.row)"> <c-button style="margin-left: 5px" size="small" type="primary" @click="onHandle(scope.$index,scope.row)">
处理 处理
</c-button> </c-button>
<!-- <c-button
style="margin-left: 0"
size="small"
type="primary"
@click="onRelrow(scope.$index)"
>
复核
</c-button> -->
</template> </template>
</el-table-column> </el-table-column>
</c-istream-table> </el-table>
</c-col> </c-col>
</el-row> </el-row>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"; import event from "../event/inftrnps";
import Event from "../event"; import Inftrnps from "../model/inftrnps";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["codes"],
mixins: [commonProcess], mixins: [commonProcess, event],
components: {}, components: {},
data() { data() {
return { return {
model: new Inftrnps().data,
initdialog: false, initdialog: false,
transactionStatus: { transactionStatus: {
busiNo: "", busiNo: "",
...@@ -172,43 +150,26 @@ ...@@ -172,43 +150,26 @@
}, },
stmData: { stmData: {
columns: [ columns: [
'10 1 "交易代码" 100', { label: "交易代码", prop: "" },
'11 2 "业务编号" 150', { label: "业务编号", prop: "" },
'17 3 "摘要信息" 300', { label: "摘要信息", prop: "" },
'12 4 "币种" 70', { label: "币种", prop: "" },
'13 5 "金额" 100', { label: "金额", prop: "" },
// '14 6 "创建时间" 170', { label: "创建时间", prop: "" },
{ index: 14, position: 6, width: 140, pattern: 'time', label: '创建时间' }, { label: "签名要求", prop: "" },
'9 7 "签名要求" 100', { label: "签名状态", prop: "" },
'2 8 "签名状态" 100', { label: "经办柜员", prop: "" },
'16 9 "经办柜员" 100', { label: "业务状态", prop: "" },
// '0 10 "业务状态" 80', { label: "业务机构", prop: "" },
{
index: 0, position: 10, width: 100, pattern: 'code', label: '业务状态', code: [{ label: "等待", value: "W" },
{ label: "已打回", value: "C" },
{ label: "已拾取", value: "P" },
{ label: "已拒绝", value: "N" },]
},
'15 11 "业务机构" 120',
], ],
data: [], data: [],
}, },
relrowDisabled: true, relrowDisabled: true,
relflgCodes: [], relflgCodes: [],
Trnp0Visible: false, Trnp0Visible: false,
// multipleSelection: [],
}; };
}, },
methods: { methods: {
// multipleSelect(val) {
// // TODO 根据Status判断按钮是否禁用
// this.relrowDisabled = !(val.length > 0);
// this.multipleSelection = val;
// },
// getSelectedData() {
// return this.multipleSelection.map((idx) => this.stmData.data[idx]);
// },
...Event,
getInidatfro(){ getInidatfro(){
let datetime = new Date(); let datetime = new Date();
datetime = datetime.setDate(datetime.getDate() - 1); datetime = datetime.setDate(datetime.getDate() - 1);
...@@ -223,15 +184,10 @@ ...@@ -223,15 +184,10 @@
this.relflgCodes = [ this.relflgCodes = [
{ label: "全部", value: "0" }, //待复核列表业务状态All { label: "全部", value: "0" }, //待复核列表业务状态All
{ label: "已修改", value: "C" }, { label: "已修改", value: "C" },
// { label: "Closed", value: "M" },
// { label: "Entered", value: "E" },
// { label: "External", value: "X" },
{ label: "已拾取", value: "P" }, { label: "已拾取", value: "P" },
{ label: "已拒绝", value: "N" }, { label: "已拒绝", value: "N" },
{ label: "等待", value: "W" }, { label: "等待", value: "W" },
]; ];
// await this.handleSearch()
// this.$store.commit("setTaskList", {key: "trnrel", val: this.stmData.data.length})
}, },
computed: {}, computed: {},
......
...@@ -9,25 +9,20 @@ ...@@ -9,25 +9,20 @@
label-width="120px" label-width="120px"
size="small" size="small"
> >
<!-- <el-tabs ref="elment" type="card" @tab-click="tabClick">
<el-tab-pane label="复核夹查询"> -->
<c-content> <c-content>
<m-inftrnps :model="model" :codes="codes" ref="inftrnps" /> <m-inftrnps :codes="codes" ref="inftrnps" />
</c-content> </c-content>
<!-- </el-tab-pane>
</el-tabs> -->
<c-grid-ety-prompt-dialog <c-grid-ety-prompt-dialog
ref="etyDialog" ref="etyDialog"
:promptData="promptData" :promptData="promptData"
v-on:select-ety="selectEty"> v-on:select-ety="selectEty"
>
</c-grid-ety-prompt-dialog> </c-grid-ety-prompt-dialog>
</el-form> </el-form>
</div> </div>
</template> </template>
<script> <script>
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Trnrel from "../model";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import Utils from "~/utils/index"; import Utils from "~/utils/index";
import Inftrnps from "./Inftrnps"; import Inftrnps from "./Inftrnps";
...@@ -38,7 +33,6 @@ ...@@ -38,7 +33,6 @@
"m-inftrnps": Inftrnps, "m-inftrnps": Inftrnps,
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
// computed: {},
provide() { provide() {
return { return {
root: this, root: this,
...@@ -47,14 +41,12 @@ ...@@ -47,14 +41,12 @@
data() { data() {
return { return {
trnName: "trnrel", trnName: "trnrel",
model: new Trnrel().data,
rules: null, rules: null,
codes: { codes: {
dflg: CodeTable.dflg, dflg: CodeTable.dflg,
bchtyp: CodeTable.bchtyp, bchtyp: CodeTable.bchtyp,
usrsort: CodeTable.usrsort, usrsort: CodeTable.usrsort,
}, },
// reload:false,
}; };
}, },
created() { created() {
...@@ -63,7 +55,6 @@ ...@@ -63,7 +55,6 @@
//TODO 处理数据逻辑 //TODO 处理数据逻辑
that.model = Utils.copyValueFromVO(that.model, res.data); that.model = Utils.copyValueFromVO(that.model, res.data);
// that.$refs.inftrnps.stmData.columns=res.data.trncorco_trnstm.rows
this.$refs.inftrnps.handleSearch(); this.$refs.inftrnps.handleSearch();
}); });
}, },
...@@ -83,13 +74,10 @@ ...@@ -83,13 +74,10 @@
//TODO 处理数据逻辑 //TODO 处理数据逻辑
that.model = Utils.copyValueFromVO(that.model, res.data); that.model = Utils.copyValueFromVO(that.model, res.data);
// that.$refs.inftrnps.stmData.columns=res.data.trncorco_trnstm.rows
this.$refs.inftrnps.handleSearch(); this.$refs.inftrnps.handleSearch();
//刷新页面后重置刷新状态为不刷新 //刷新页面后重置刷新状态为不刷新
this.$store.commit("setLoadingFreshReview", false) this.$store.commit("setLoadingFreshReview", false)
}); });
} }
}, },
}, },
......
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