Commit dd92996b by WF1020

gitcan修改“init方法”

parent 3f85c9bc
......@@ -16,35 +16,10 @@ export default {
...docpan,
...ccvpan,
async init () {
const params = {
// spt: {
// bchname: "中国光大银行北京分行",
// cxmflg: "N",
// expdat: null,
// fromflg: "",
// gartyp: "A",
// grtnam: "",
// hndtyp: "OL",
// inr: "00000582",
// iscrotra: "",
// liadat: null,
// opndat: 1680537600000,
// othersno: "",
// ownref: "LG3500231016AA",
// ownusr: "ZL",
// segtyp: "01",
// sta:"111"
// }
"transName":"gitcan",
"userId":"ZL",
"gidInr":"00000582"
}
const res = await Api.post('/service/gitcan/init', {
...params,
sta:1122,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
gidInr: this.$route.query.inr
});
if (!res.data) {
return
......
......@@ -107,6 +107,7 @@ export default {
// 处理
async handler(row) {
this.initdialog = true;
this.currentHandleRow = row
const params = {
//根据xx字段 查询处理的数据
ownref: row.ownref,
......@@ -131,7 +132,12 @@ export default {
let filterRoute = this.btnRouteMap.filter((item) => {
return item.label === btn.label
})
this.$router.history.push(filterRoute[0].route);
this.$router.history.push({
path: filterRoute[0].route,
query: {
inr: this.currentHandleRow.inr
}
});
},
// 关闭处理弹框
closeHandlerDialog() {
......
......@@ -656,9 +656,14 @@ export default {
btnRouteMap: [
{
label: '注销',
route: '/business/gitcan'
}
]
route: '/business-new/gitcan'
},
{
label: '修改',
route: '/business-new/gitame'
},
],
currentHandleRow: {}
};
},
methods: {},
......
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