Commit a7bb3d0c by WF1020

infbed修改

parent 7042dcc4
import Api from '~/service/Api';
import { getTrnNameByInr } from "~/service/business/common";
import { getTrnNameByInr } from '~/service/business/common';
import moment from 'moment';
export default {
......@@ -19,11 +19,11 @@ export default {
...this.model.infcon,
seadocflg: this.model.seadocflg,
seagodcod: this.model.seagodcod,
inr:this.model.ledgrp.rec.inr,
inr: this.model.ledgrp.rec.inr,
pageIndex: this.pagination.pageIndex,
pageSize: this.pagination.pageSize,
opndatfrom:moment(opndatfrom).format('YYYY-MM-DD'),
opndatto:moment(opndatto).format('YYYY-MM-DD'),
opndatfrom: moment(opndatfrom).format('YYYY-MM-DD'),
opndatto: moment(opndatto).format('YYYY-MM-DD'),
};
let rtnmsg = await Api.post('/service/infbed/getList', params);
if (rtnmsg.respCode == SUCCESS) {
......@@ -77,7 +77,7 @@ export default {
async details(row) {
const params = {
//根据xx字段 查询详情表的数据
inr:row.inr,
inr: row.inr,
userId: window.sessionStorage.userId || 'ZL',
ownref: row.ownref,
};
......@@ -96,7 +96,7 @@ export default {
// 处理
async handler(row) {
this.initdialog = true;
this.currentHandleRow = row
this.currentHandleRow = row;
const params = {
//根据xx字段 查询处理的数据
ownref: row.ownref,
......@@ -104,36 +104,36 @@ export default {
const res = await Api.post('/service/infbed/dealWithByOwnref', params);
if (res.respCode === SUCCESS) {
if (res.data) {
this.handlerDataList = []
this.handlerDataList = [];
Object.keys(res.data).map((item) => {
this.handlerDataList.push({
label: item,
value: res.data[item]
})
})
value: res.data[item],
});
});
}
}
},
handleClick (btn) {
handleClick(btn) {
if (btn.value === 'N') {
return
return;
}
let filterRoute = this.btnRouteMap.filter((item) => {
return item.label === btn.label
})
return item.label === btn.label;
});
this.$router.history.push({
path: filterRoute[0].route,
query: {
inr: this.currentHandleRow.inr
}
inr: this.currentHandleRow.inr,
},
});
},
// 关闭处理弹框
closeHandlerDialog() {
this.initdialog = false;
},
/**
* 打开详情页面
* @param {string} inr
......@@ -142,11 +142,14 @@ export default {
getTrnNameByInr({ inr }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
let viewurl = "/#/display/" + trnName + "?trn=" + inr
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
let viewurl = '/#/display/' + trnName + '?trn=' + inr;
window.open(
viewurl,
'newwindow',
'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no'
);
}
});
},
},
};
......@@ -371,16 +371,40 @@
</el-pagination>
</div>
</c-col>
<!-- 点击处理ba弹框 -->
<el-dialog
:visible.sync="initdialog"
title="交易列表"
append-to-body
width="60%"
>
<div class="dialog-wrap">
<div class="btn-group-wrap">
<div
class="btn-item"
v-for="(item, index) in handlerDataList"
:key="index"
>
<el-button
type="primary"
:disabled="item.value === 'N'"
@click="handleClick(item)"
>{{ item.label }}
</el-button>
</div>
</div>
</div>
</el-dialog>
</div>
<!-- <m-busbtn
ref="childs"
:ownref="ownref"
trnCode="letsel"
trnCode="betsel"
ownrefPath="bedgrp"
tabIndex="3"
:model="letselModel"
:model="BetselModel"
>11</m-busbtn
> -->
</div>
......@@ -558,4 +582,17 @@ export default {
background: #fff;
margin-top: 5px;
}
.btn-group-wrap {
max-height: 200px;
width: 100%;
overflow-y: auto;
display: flex;
align-items: flex-start;
justify-content: flex-start;
flex-wrap: wrap;
}
.btn-item {
margin-bottom: 10px;
margin-right: 10px;
}
</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