Commit 4045e432 by linboxuan

needSolution add channelDeliverId

parent d0069cb6
...@@ -20,6 +20,7 @@ module.exports = (db, DataTypes) => { ...@@ -20,6 +20,7 @@ module.exports = (db, DataTypes) => {
} }
}, },
statusName: DataTypes.STRING(50), //状态名称 statusName: DataTypes.STRING(50), //状态名称
channelDeliverId: DataTypes.STRING(128), //服务单id
createUserId: DataTypes.INTEGER, //创建者id createUserId: DataTypes.INTEGER, //创建者id
isInvalid:DataTypes.INTEGER, //是否废弃的无效的方案 isInvalid:DataTypes.INTEGER, //是否废弃的无效的方案
}, { }, {
......
...@@ -999,15 +999,10 @@ class AliyunQcService { ...@@ -999,15 +999,10 @@ class AliyunQcService {
var material = solutionContent.customerMaterial || {}; var material = solutionContent.customerMaterial || {};
if (ab.extInfo) { if (ab.extInfo) {
// 退回修改理由 // 退回修改理由
<<<<<<< HEAD
var extInfoJson = JSON.parse(ab.extInfo); var extInfoJson = JSON.parse(ab.extInfo);
if(ab.extInfo.rejectReason) { if(extInfoJson.rejectReason) {
ab.rejectReason = ab.extInfo.rejectReason, ab.rejectReason = extInfoJson.rejectReason,
solutionContent.note = ab.rejectReason solutionContent.rejectReason = extInfoJson.rejectReason
=======
if (ab.extInfo.rejectReason) {
ab.rejectReason = ab.extInfo.rejectReason
>>>>>>> 6f53c3c29ddcc51fd1cf02d87cf354bda70b546d
} }
material.businessLicenseArr = ab.extInfo.businessLicenseArr; material.businessLicenseArr = ab.extInfo.businessLicenseArr;
material.idCardListArr = ab.idCardListArr; material.idCardListArr = ab.idCardListArr;
...@@ -1018,9 +1013,10 @@ class AliyunQcService { ...@@ -1018,9 +1013,10 @@ class AliyunQcService {
var updateObj = { var updateObj = {
id: ns.id, id: ns.id,
solutionContent: solutionContent, solutionContent: solutionContent,
channelDeliverId: ab.bizId,
note: ab.rejectReason
}; };
if(ab.bizId != ns.channelDeliverId) {
updateObj.channelDeliverId = ab.bizId
}
if (ab.operationType == "ABC_CLOSE_PRODUCE") {//⽅案已关闭 if (ab.operationType == "ABC_CLOSE_PRODUCE") {//⽅案已关闭
updateObj["status"] = "yzf"; updateObj["status"] = "yzf";
updateObj["isInvalid"] = 1; updateObj["isInvalid"] = 1;
......
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