Commit 7acd75c9 by hulei

临时调整处理getTrnNameByInr接口缺失

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