Commit 3483793f by s_guodong

待关联报文处理

parent a361b3e7
......@@ -3,7 +3,47 @@ import Oftdtl from "../model"
export default {
methods: {
async handleSearch() {
let amtu = this.model.oftp.smd.amtu;
if (!amtu || amtu === "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.金额上限必输!"),
});
return;
}
let amtd = this.model.oftp.smd.amtd;
if (!amtd || amtd === "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.金额下限必输!"),
});
return;
}
this.load = true;
// TODO rewrite url
let rtnmsg = await Api.post("/frontend/oftdtl/smdQuery", {
...this.model,
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
});
if (rtnmsg.respCode == SUCCESS) {
this.load = false;
this.model.oftgrp.dotsmd.lst = [];
let list = rtnmsg.data.oftp.smd.dotrec.lst;
this.model.oftgrp.dotsmd.lst = 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() {
this.model = new Oftdtl().data;
......@@ -21,6 +61,62 @@ export default {
},
handleSelectionChange(val) {
this.multipleSelection = val;
},
// 手工关联
async oftopm(){
this.model.oftp.smd.dotrec.lst = this.multipleSelection;
let rtnmsg = await Api.post("/frontend/oftdtl/oftopm", {
...this.model,
});
if (rtnmsg.respCode == SUCCESS) {
if(rtnmsg.data == true){
this.$notify.info({
title: this.$t("financing.成功"),
message: this.$t("financing.手工关联成功"),
});
//this.handleSearch();
}else{
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing."+rtnmsg.data),
});
}
} else {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.服务请求失败!"),
});
}
},
// 提前放行
async pass(){
this.model.oftp.smd.dotrec.lst = this.multipleSelection;
let rtnmsg = await Api.post("/frontend/oftdtl/pass", {
...this.model,
});
if (rtnmsg.respCode == SUCCESS) {
if(rtnmsg.data.mpsinr){
this.routerPush({
path: '/business/msgpss',
query: {
inr: rtnmsg.data.mpsinr,
}
})
}else{
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing."+rtnmsg.data),
});
}
} else {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.服务请求失败!"),
});
}
}
},
};
......@@ -19,10 +19,10 @@ export default {
],
"oftp.smd.amtd": [
{ type: "string", required: false, message: "必输项" },
{ required: true, message: "必输项" },
],
"oftp.smd.amtu": [
{ type: "string", required: false, message: "必输项" },
{ required: true, message: "必输项" },
],
"oftp.smd.ref": [
......
......@@ -8,13 +8,13 @@
<c-col :span="8">
<el-form-item label="起息日" prop="oftp.smd.vludats" style="width: 100%">
<c-col :span="11">
<c-date-picker type="date" v-model="model.oftp.smd.vludats" style="width:100%"></c-date-picker>
<c-date-picker type="date" v-model="model.oftp.smd.vludate" style="width:100%"></c-date-picker>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
</c-col>
<c-col :span="11">
<c-date-picker type="date" v-model="model.oftp.smd.vludate" style="width:100%"></c-date-picker>
<c-date-picker type="date" v-model="model.oftp.smd.vludats" style="width:100%"></c-date-picker>
</c-col>
</el-form-item>
</c-col>
......@@ -95,21 +95,26 @@
</c-list-search>
<el-col :span="24" style="margin-top: 10px;margin-bottom: 10px;">
<c-button class="medium_bcs" size="medium" type="primary" style="margin-left: 0px">
<c-button class="medium_bcs" size="medium" type="primary" style="margin-left: 0px" @click="showMsg">
原报展示
</c-button>
<c-button class="medium_bcs" :disabled="isDisable" size="medium" type="primary" style="margin-left: 30px" @click="oftopm">
手工关联
</c-button>
<c-button class="medium_bcs" size="medium" type="primary" style="margin-left: 30px">
<!-- <c-button class="medium_bcs" size="medium" type="primary" style="margin-left: 30px" @click="pass">
提前放行
</c-button>
<c-button style="margin-left: 30px" class="medium_bcs" size="medium" type="primary">
导出
</c-button>
</c-button> -->
</el-col>
<el-col :span="24" style="margin-top: 10px">
<div>
<c-col :span="24">
<el-table :data="model.oftgrp.dotsmd.lst" v-loading="load" style="width: 100%" size="small" :border="true" height="calc(100vh - 320px)" :highlight-current-row="true">
<el-table :data="model.oftgrp.dotsmd.lst" @selection-change="handleSelectionChange"
v-loading="load" style="width: 100%" size="small" :border="true" height="calc(100vh - 320px)" :highlight-current-row="true">
<el-table-column type="selection" width="55"></el-table-column>
<el-table-column prop="mty" label="报文类型" width="100">
</el-table-column>
<el-table-column prop="rsptim" label="收报时间" width="100">
......@@ -288,25 +293,23 @@ export default {
};
},
computed:{
isFoldDisable: function(){
return this.multipleSelection.length == 0;
} ,
isRoutingDisable:function(){
return this.multipleSelection.length == 0;
isDisable: function(){
return this.multipleSelection.length != 1;
}
},
watch: {
},
methods: {
dbClickRow(row) {
showMsg() {
this.routerPush({
path: '/business/msgdtl',
query: {
mpsinr: row.inr
mpsinr: this.model.msggrp.mps.inr
}
})
}
},
},
mounted: function () {
},
......
......@@ -45,15 +45,18 @@ export default {
},
created: async function () {
console.log("进入oftdtl交易");
let params = {
transName: this.trnName,
fxdgrp: {
rec: {
inr: this.$route.query.inr || "",
},
},
};
this.init(params)
let rtnmsg = await Api.post("/frontend/oftdtl/init", {
dotinr: this.$route.query.dotinr || "",
});
if (rtnmsg.respCode == SUCCESS) {
this.model = rtnmsg.data;
} else {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.服务请求失败!"),
});
}
}
}
</script>
......
......@@ -71,20 +71,26 @@ export default {
handleSelectionChange (val) {
this.multipleSelection = val;
},
exportToExcel() {
let codeKeysMap = {
typ: 'kpasta',
sta: 'zfqsta',
area: 'stacd1',
offsta: 'offsta',
multimsg: 'chncod',
chk: 'chncod',
kpatyp: 'chncod',
};
async exportToExcel () {
// const loading = this.loading();
let rsptims = this.model.oftp.rel.rsptims;
let rsptime = this.model.oftp.rel.rsptime;
let params = {
...this.model.oftp.rel,
rsptims: rsptims ? moment(rsptims).format("YYYY-MM-DD") + ' 00:00:00' : "",
rsptime: moment(rsptime).format("YYYY-MM-DD") + ' 23:59:59',
pageNumber: this.pagination.pageIndex,
pageSize: this.pagination.pageSize,
};
let res = await Api.post("/frontend/oftopn/exportExcel", params);
if (res.respCode == SUCCESS) {
console.log(res.data)
let name = moment(new Date()).format('yyyy-MM-DD HH:mm:ss');
Utils.exportToExcel(res.data, "待关联报文查询_" + name + ".xlsx", "待关联报文查询");
}
this.exportExcel(this.stmData.columns, '/frontend/oftopn/exportExcel', params, codeKeysMap, '待关联报文处理');
// loading.close();
}
},
};
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