Commit 8a9c1bab by 王勇飞

gyq

parent 90c7d302
......@@ -16,6 +16,7 @@ class DeliverybillCtl extends CtlBase {
this.logService = system.getObject("service.bizchance.statuslogSve");
this.cacheManager = system.getObject("db.common.cacheManager");
this.fitaxschemeService = system.getObject("service.bizchance.fitaxschemeSve");
this.bizoptService = system.getObject("service.bizchance.bizoptSve");
}
/**
......@@ -194,7 +195,20 @@ class DeliverybillCtl extends CtlBase {
obj.scheme_number = pobj.solutionBizId;
var scheme = await this.fitaxschemeService.findInfoByBizid({ "bizId": pobj.solutionBizId });
if (scheme) {
pobj.demand_code = scheme.demand_code;
obj.demand_code = scheme.demand_code;
//根据需求编号获取业务员信息
var bizopt = await this.bizoptService.findInfoByDemandCode({ "demand_code": obj.demand_code });
if (bizopt){
obj.salesman_opcode = bizopt.salesman_opcode;
obj.salesman_id = bizopt.salesman_id;
obj.salesman_name = bizopt.salesman_name;
obj.salesman_phone = bizopt.salesman_phone;
obj.delivery_man_opcode = bizopt.salesman_opcode;
obj.delivery_man_id = bizopt.salesman_id;
obj.delivery_man_name = bizopt.salesman_name;
}
}
}
obj.product_code = "bookkeeping";
......
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