Commit b87708ef by xionglin

复核页面注释

parent c33aaa54
......@@ -130,17 +130,17 @@ export default {
refuse: this.onReprow.bind(this, idx),
}
);
let Flag = JSON.parse(localStorage.getItem('flag_'+row.inifrm.toLowerCase()))
//判断该交易名是否存在已打开复核页面,如果存在则提示
if ( Flag ) {
console.log
this.$notify({
title: "错误",
message: row.inifrm.toLowerCase()+"交易已存在一笔复核",
type: "error",
});
return
}
// let Flag = JSON.parse(localStorage.getItem('flag_'+row.inifrm.toLowerCase()))
//判断该交易名是否存在已打开复核页面,如果存在则提示
// if ( Flag ) {
// console.log
// this.$notify({
// title: "错误",
// message: row.inifrm.toLowerCase()+"交易已存在一笔复核",
// type: "error",
// });
// return
// }
this.$router.push({
// name: 'Review-new' + trnName.charAt(0).toUpperCase() + trnName.substring(1),
path: 'review-new/' + row['inifrm'].toLowerCase(),
......@@ -149,7 +149,7 @@ export default {
});
localStorage.setItem(`review_${row.inifrm.toLowerCase()}`, JSON.stringify(row))
//进入复核之后,给该交易的交易码设置flag,用来判断是否存在该交易码的复核页面
localStorage.setItem(`flag_${row.inifrm.toLowerCase()}`,true)
// localStorage.setItem(`flag_${row.inifrm.toLowerCase()}`,true)
},
async onRelrow(idx) {
this.$confirm('您确定复核该笔交易?', '提示', {
......@@ -157,8 +157,8 @@ export default {
cancelButtonText: '取消',
type: 'warning',
}).then(async () => {
// 提交复核之后给该交易码的flag设置为false,用来判断此交易码没有当前页面
localStorage.removeItem('flag_'+this.$route.query.newFlag)
// 提交复核之后给该交易码的flag设置为false,用来判断此交易码没有当前页面
// localStorage.removeItem('flag_'+this.$route.query.newFlag)
let params = {
transName: 'trnrel',
userId: window.sessionStorage.userId || 'ZL',
......@@ -222,8 +222,8 @@ export default {
cancelButtonText: '取消',
type: 'warning',
}).then(async () => {
// 退回复核之后给该交易码的flag设置为false,用来判断此交易码没有当前页面
localStorage.removeItem('flag_'+this.$route.query.newFlag)
// 退回复核之后给该交易码的flag设置为false,用来判断此交易码没有当前页面
// localStorage.removeItem('flag_'+this.$route.query.newFlag)
let params = {
trninr: this.$route.query.trn,
transName: 'trnrel',
......
......@@ -166,8 +166,8 @@ export default {
showCancelButton: true,
type: "warning",
}).then(() => {
// 在当前 点击确定按钮关闭复核页面,清空缓存
localStorage.removeItem('flag_'+this.$route.query.newFlag)
// 在当前 点击确定按钮关闭复核页面,清空缓存
// localStorage.removeItem('flag_'+this.$route.query.newFlag)
this.closeTagView(view);
});
},
......
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