Commit 379d2fb2 by v_vjyjiang

gyq

parent abec2143
...@@ -411,15 +411,9 @@ class DeliverybillCtl extends CtlBase { ...@@ -411,15 +411,9 @@ class DeliverybillCtl extends CtlBase {
currentPeriod: pobj.actionBody.accountDate, currentPeriod: pobj.actionBody.accountDate,
courierNumber: pobj.actionBody.expressNum courierNumber: pobj.actionBody.expressNum
} }
param.sign = await toFtClient.postToFtBySign("/customerReceiveBill/addCusReceiveBill", param.companyId); var result = await toFtClient.postToFtBySign("/customerReceiveBill/addCusReceiveBill", param);
console.log("融易算接收票据快递单号param.sign------------------",param.sign); console.log("融易算接收票据快递单号返回结果--------------------------", result);
var rc = this.getObject("util.execClient"); if (result) {
var reqUrl = settings.ftConfig.url + "/customerReceiveBill/addCusReceiveBill";
console.log("调代账系统参数--------------------------", JSON.stringify(param));
var result = await rc.execPost(param, reqUrl);
var j = JSON.parse(result.stdout);
console.log("融易算接收票据快递单号返回结果--------------------------", JSON.stringify(j));
if (j.status == 1) {
return system.getResult(result); return system.getResult(result);
} }
else { else {
...@@ -431,10 +425,6 @@ class DeliverybillCtl extends CtlBase { ...@@ -431,10 +425,6 @@ class DeliverybillCtl extends CtlBase {
console.log("融易算接收票据快递单号错误------------------------没有交付单信息"); console.log("融易算接收票据快递单号错误------------------------没有交付单信息");
return system.getResultError("没有交付单信息"); return system.getResultError("没有交付单信息");
} }
} }
async testPaperPostConfirm(obj) { async testPaperPostConfirm(obj) {
......
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