Commit ee01ac9a by Sxy

feat: 文网文

parent d90d7c1d
......@@ -53,6 +53,10 @@ class AliHandler {
params.businessType = "/qcfw/edi/";
params.businessName = "edi"
}
if (actionBody.type_code == "wangwen") {
params.businessType = "wangwen";
params.businessName = "wangwen"
}
}
var rtn = await rc.execPost3({ "d": params }, requrl);
......@@ -277,7 +281,7 @@ class AliHandler {
obj.channelNumber = channelobj.code;
//如果订单状态为已支付
if (datajson.actionBody.needsolution.status && datajson.actionBody.needsolution.status == "PAID") {
if (datajson.actionBody.needsolution.status && (datajson.actionBody.needsolution.status == "PAID" || datajson.actionBody.needsolution.status == "USER_PAY_PRODUCE")) {
//查询业务员信息并填充到obj
if (datajson.actionBody.needsolution.salesmanInfo.salesmanChannelId) {
//去数据库查询该业务员信息
......@@ -332,7 +336,9 @@ class AliHandler {
// // obj.servicerCode = deliveryInfo.compId;
// }
//设置成本
obj.costPrice = await this.userService.findCostBySkuCode(obj.skuCode)
if (obj.skuCode) {
obj.costPrice = await this.userService.findCostBySkuCode(obj.skuCode)
}
//异步更新需求状态 channelNeedNo
if (datajson.actionBody && datajson.actionBody.channelNeedNo) {
var stau = {
......@@ -386,14 +392,18 @@ class AliHandler {
}
}
let title = "";
if (datajson.actionBody.needsolution.status == "USER_CONFIRMED") {//用户已确认递交文件
if (datajson.actionBody.needsolution.status == "USER_CONFIRMED" || datajson.actionBody.needsolution.status == "USER_CONFIRM_PRODUCE") {//用户已确认递交文件
title = "用户已确认递交文件";
params.d.deliverStatus = "userConfirmationResolve";
params.d.customerMaterial = datajson.actionBody.needsolution.customerMaterial;
}
else if (datajson.actionBody.needsolution.status == "CLOSE") {//方案关闭
else if (datajson.actionBody.needsolution.status == "CLOSE" || datajson.actionBody.needsolution.status == "ABC_CLOSE_PRODUCE") {//方案关闭
title = "方案已关闭";
params.d.deliverStatus = "closed";
} else if (datajson.actionBody.needsolution.status == "USER_REFUSE_PRODUCE") {
title = "材料被驳回";
params.d.deliverStatus = "userConfirmationReject";
params.d.memoInfo = datajson.actionBody.needsolution.rejectReason
}
var rtn = await rc.execPost3(params, requrl);
var j = JSON.parse(rtn.stdout);
......@@ -484,6 +494,14 @@ class AliHandler {
if (data.needsolution.solution.CompanyAddress) {//公司地址
obj.baseInfo.companyAddress = data.needsolution.solution.CompanyAddress;
}
if (data.needsolution.solution.actionType) {//证件类型:新办 续期 变更
obj.baseInfo.actionType = data.needsolution.solution.actionType;
}
if (data.needsolution.solution.licenseType) {//⽹⽂类型:⽹络表演
obj.baseInfo.licenseType = data.needsolution.solution.licenseType;
}
if (data.needsolution.bizType) { //产品编码
if (data.needsolution.bizType == "icpsq") {
obj.businessType = "ICP";
......@@ -491,6 +509,9 @@ class AliHandler {
if (data.needsolution.bizType == "edisq") {
obj.businessType = "EDI";
}
if (data.needsolution.bizType == "wangwen") {
obj.businessType = "wangwen";
}
}
if (data.needsolution.typeName) { //产品名称
if (data.needsolution.typeName == "icp申请") {
......@@ -499,6 +520,9 @@ class AliHandler {
if (data.needsolution.typeName == "edi申请") {
obj.businessName = "edi";
}
if (data.needsolution.typeName == "文网文") {
obj.businessName = "文网文";
}
}
if (data.skuCode) { //产品的sku
obj.skuCode = data.skuCode;
......@@ -510,6 +534,13 @@ class AliHandler {
if (data.needsolution.status == "USER_UPLOADED") {//已上传
obj.deliverStatus = "collecting";
}
if (data.needsolution.status == "USER_PAY_PRODUCE") {//已支付
obj.deliverStatus = "received";
}
if (data.needsolution.status == "USER_UPLOAD_PRODUCE") {//已上传
obj.deliverStatus = "collecting";
}
}
if (data.needsolution.customerRemark) { //状态原因
obj.statusReason = data.needsolution.customerRemark;
......
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