Commit a404733a by 王勇飞

gyq

parent ac16f098
var system = require("../../../system");
const http = require("http");
const uuidv4 = require('uuid/v4');
const querystring = require('querystring');
const sha235 = require("sha256");
var settings = require("../../../../config/settings");
......@@ -363,6 +364,50 @@ class DeliverybillCtl extends CtlBase {
}
}
//接收票据快递单号
async receivePaperPost(pobj, qobj, req) {
var param = {
companyId: "",//租户信息
customerName: "",//客户信息(帐套)
sign: "",//签名
postWay: "2",
currentPeriod: pobj.actionBody.accountDate,
courierNumber: pobj.actionBody.expressNum
}
var rc = this.getObject("util.execClient");
var reqUrl = settings.ftConfig.url + "/customerReceiveBill/addCusReceiveBill";
var result = await rc.execPost(param, reqUrl);
var j = JSON.parse(result.stdout);
return result;
}
//票据快递情况反馈
async confirmPaperPost(pobj, qobj, req) {
var param = {
bizNo: pobj.customer_id,//需要根据客户id获取服务示例号
accountDate: pobj.current_period,
status: pobj.status,
errorStatus: -1
}
if (pobj.remark) {
param.remark = pobj.remark;
if (pobj.remark.includes("进销项发票不全")) {
param.errorStatus = 1;
}
}
var pushObj = {
pushUrl: this.rysUrl + "service/paperPost/confirm",
actionType: "confirm",
messageBody: param,
headData: {
'Source': 'GSB'
},
requestId:uuidv4()
}
return system.queueOper(pushObj);
}
}
module.exports = DeliverybillCtl;
\ No newline at end of file
......@@ -65,5 +65,5 @@ class FitaxpushqueueCtl extends CtlBase {
}
}
}
module.exports = fitaxpushqueueCtl;
module.exports = FitaxpushqueueCtl;
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