Commit e7ee664a by Sxy

fix: 统一主订单分配到同一人

parent 909ac402
...@@ -878,6 +878,17 @@ class DeliverybillCtl extends CtlBase { ...@@ -878,6 +878,17 @@ class DeliverybillCtl extends CtlBase {
pobj.cacheInfo.cmpDeliverInfo = schemeInfo.scheme_info;// 获取方案中的缓存信息 pobj.cacheInfo.cmpDeliverInfo = schemeInfo.scheme_info;// 获取方案中的缓存信息
} }
} }
if (pobj.txOrderNum) {
const masterOrderData = await this.service.findOne({
master_source_number: pobj.txOrderNum
});
if (masterOrderData) {
pobj.salesmanOpcode = masterOrderData.salesman_opcode;
pobj.salesmanName = masterOrderData.salesman_name;
pobj.salesmanId = masterOrderData.salesman_id;
pobj.salesmanPhone = masterOrderData.salesman_phone;
}
}
// 缓存信息和交付单保持一致 // 缓存信息和交付单保持一致
console.log('---------------------------------------------------------------------------------------------------------------------------------------'); console.log('---------------------------------------------------------------------------------------------------------------------------------------');
if (pobj.companyInfo.companyProperties && pobj.companyInfo.companyProperties != 'undefined') { if (pobj.companyInfo.companyProperties && pobj.companyInfo.companyProperties != 'undefined') {
......
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