Commit 4ec244fa by 孙亚楠

dd

parent 7a272f26
......@@ -4,6 +4,7 @@ class InvoiceCtl extends CtlBase {
constructor() {
super();
this.invoiceSve = system.getObject("service.invoice.invoiceSve");
this.userSve = system.getObject("service.uc.userSve");
}
/**
......@@ -68,7 +69,20 @@ class InvoiceCtl extends CtlBase {
*/
async handleStatus(pobj, pobj2, req) {
try {
if(pobj.status=="1030"){
if(pobj.status=="1010"){ //平台分配业务员
//1.获取业务员的基本id和bd_path
let _user = await this.userSve.queryById({
id:pobj.bd_id
});
if(!_user || _user.status!=0){
return system.getResult(null,`业务员不存在`);
}
if(!_user.data || !_user.data.orgpath){
return system.getResult(null,`业务员信息错误 请联系管理员`);
}
pobj.bd_path=_user.data.orgpath;
}else if(pobj.status=="1030"){ //交付商分配
pobj.deliver_delive= system.y2f(pobj.deliver_delive);
}
return await this.invoiceSve.handleStatus(pobj);
......
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