Commit 6588bcce by v_vjyjiang

gyq

parent 1f27668f
...@@ -401,6 +401,7 @@ class DeliverybillCtl extends CtlBase { ...@@ -401,6 +401,7 @@ class DeliverybillCtl extends CtlBase {
async receivePaperPost(pobj, qobj, req) { async receivePaperPost(pobj, qobj, req) {
console.log("融易算接收票据快递单号参数--------------------------", JSON.stringify(pobj)); console.log("融易算接收票据快递单号参数--------------------------", JSON.stringify(pobj));
var deliverInfo = await this.service.getInfo({ "bizId": pobj.actionBody.bizNo }); var deliverInfo = await this.service.getInfo({ "bizId": pobj.actionBody.bizNo });
console.log("融易算接收票据快递单号deliverInfo------------------",JSON.stringify(deliverInfo));
if (deliverInfo) { if (deliverInfo) {
var param = { var param = {
companyId: deliverInfo.deliveryBillInfo.deliveryInfo.setupInfo.supplier,//租户信息 companyId: deliverInfo.deliveryBillInfo.deliveryInfo.setupInfo.supplier,//租户信息
...@@ -411,8 +412,10 @@ class DeliverybillCtl extends CtlBase { ...@@ -411,8 +412,10 @@ class DeliverybillCtl extends CtlBase {
courierNumber: pobj.actionBody.expressNum courierNumber: pobj.actionBody.expressNum
} }
param.sign = await toFtClient.postToFtBySign("/customerReceiveBill/addCusReceiveBill", param.companyId); param.sign = await toFtClient.postToFtBySign("/customerReceiveBill/addCusReceiveBill", param.companyId);
console.log("融易算接收票据快递单号param.sign------------------",param.sign);
var rc = this.getObject("util.execClient"); var rc = this.getObject("util.execClient");
var reqUrl = settings.ftConfig.url + "/customerReceiveBill/addCusReceiveBill"; var reqUrl = settings.ftConfig.url + "/customerReceiveBill/addCusReceiveBill";
console.log("调代账系统参数--------------------------", JSON.stringify(param));
var result = await rc.execPost(param, reqUrl); var result = await rc.execPost(param, reqUrl);
var j = JSON.parse(result.stdout); var j = JSON.parse(result.stdout);
console.log("融易算接收票据快递单号返回结果--------------------------", JSON.stringify(j)); console.log("融易算接收票据快递单号返回结果--------------------------", JSON.stringify(j));
...@@ -497,4 +500,27 @@ class DeliverybillCtl extends CtlBase { ...@@ -497,4 +500,27 @@ class DeliverybillCtl extends CtlBase {
} }
} }
module.exports = DeliverybillCtl; module.exports = DeliverybillCtl;
\ No newline at end of file
// var task = new DeliverybillCtl();
// var obj={
// "actionType": "receivePaperPost",
// "identifyCode": "book-manage",
// "actionBody": {
// "accountDate": "2020-08",
// "bizNo": "S20200922115649144715",
// "companyId": "241",
// "expressNum": "KD1234566",
// "postWay": 2,
// "requestId": "33db6955-0cf2-4726-bfe5-6aa74e456004",
// "topOrgCode": "gong_si_bao"
// },
// "requestId": "MQ-202009281634woz6B",
// "clientIp": "172.26.176.47",
// "agent": "curl/7.29.0",
// "classname": "bizchance.deliverybillCtl",
// "isPrincipal": false
// }
// task.receivePaperPost(obj,{},{}).then(d=>{
// console.log(JSON.stringify(d));
// })
\ No newline at end of file
...@@ -76,7 +76,7 @@ const getChannelCompany = async (id) => { ...@@ -76,7 +76,7 @@ const getChannelCompany = async (id) => {
...reqData, ...reqData,
sign sign
}); });
companyData = companyData.datas; companyData = companyData.data.datas;
if (id) { if (id) {
companyData = _.find(companyData, (item) => { companyData = _.find(companyData, (item) => {
return item.id === id return item.id === id
......
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