Commit 7acd75c9 by hulei

临时调整处理getTrnNameByInr接口缺失

parent 8b03345b
import Api from "~/service/Api"
import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default {
async onInfbutSearow(){
......@@ -141,13 +142,10 @@ export default {
},
display(index, row) {
debugger;
Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
},
}
\ No newline at end of file
import Api from "~/service/Api"
import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default {
async onInfbutSearow(){
......@@ -146,13 +147,17 @@ export default {
},
display(index, row) {
debugger;
Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
// Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
}
\ No newline at end of file
import Api from "~/service/Api"
import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default {
async onInfbutSearow () {
......@@ -112,13 +113,17 @@ export default {
display (index, row) {
debugger;
Api.post("getTrnNameByInr", { inr: row['INR'] }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
// Api.post("getTrnNameByInr", { inr: row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
}
\ No newline at end of file
import Api from "~/service/Api"
import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default {
async onInfbutSearow(){
......@@ -30,13 +31,18 @@ export default {
}
},
display(index, row) {
Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
// Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
async onInfbutUserow(){
let rtnmsg = await this.executeRule("infbut.userow")
......
import Api from "~/service/Api"
import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default {
async onInfbutSearow () {
......@@ -201,13 +202,18 @@ export default {
display (index, row) {
debugger;
Api.post("getTrnNameByInr", { inr: row['INR'] }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
// Api.post("getTrnNameByInr", { inr: row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
}
\ No newline at end of file
import Api from "~/service/Api"
import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default {
async onInfbutSearow() {
......@@ -199,13 +200,18 @@ export default {
},
display(index, row) {
debugger;
Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
// Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
}
\ No newline at end of file
import Api from "~/service/Api"
import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default {
// 顶部查询按钮
......@@ -364,13 +365,17 @@ export default {
// },
getDetails(index, row) {
debugger;
Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
// Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
......
import Api from "~/service/Api"
import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default {
/*async onInfbutSearow() {
......@@ -92,13 +93,18 @@ export default {
},
display(index, row) {
debugger;
Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
// Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
async onInfbutDsp(row) {
......
......@@ -3,7 +3,16 @@
* UUID
*/
export function getUUID() {
const map = {
'开立信用证':'ditopn',
'到单':'ditdck',
'付款':'bdtset',
'Incoming payment':'cptopn',
'Outgoing payment':'cptadv'
}
var PubFun = {
getUUID:function() {
var s = [];
var hexDigits = "0123456789abcdef";
for(var i=0;i<36;i++){
......@@ -14,4 +23,12 @@ export function getUUID() {
s[8] = s[13] = s[18] = s[23] = "";
return s.join("");
},
getTrnNameByDesc:function(descri){
return map[descri]||'';
}
}
export default PubFun;
......@@ -47,27 +47,26 @@ module.exports = {
'^/gjjs/report': '/gjjs/report'
}
},
<<<<<<< HEAD
'/gjjs/notice/': {
target: 'http://127.0.0.1:8085',
changeOrigin: true,
pathRewrite: {
'^/gjjs/notice': '/gjjs/notice'
=======
}
},
'/gjjs/devtools/': {
target: 'http://127.0.0.1:8083',
changeOrigin: true,
pathRewrite: {
'^/gjjs/devtools': '/gjjs/devtools'
>>>>>>> e711bf965506eb41654c479eae2b7e633e370da4
}
},
/**
* ocr智能识别服务
*/
'/ocr/': {
target: 'http://192.168.0.110:5010',
// target: 'http://127.0.0.1:5000',
// target: 'http://192.168.0.110:5010',
target: 'http://127.0.0.1:5000',
changeOrigin: true,
pathRewrite: {
'^/ocr': '/'
......
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