Ver Fonte

维保微调

lizhen_gitee há 1 mês atrás
pai
commit
bf11722c3d

+ 2 - 1
application/company/controller/Maintain.php

@@ -318,7 +318,8 @@ class Maintain extends Apic
             ->join('user_company uc','mt.uc_id = uc.id','LEFT')
             ->join('user','mt.user_id = user.id','LEFT')
             ->join('worker','mt.worker_id = worker.id','LEFT')
-            ->field('mt.*,uc.projectname,uc.header,uc.header_mobile,uc.projectaddress,user.nickname as user_nickname,user.mobile as user_mobile,worker.truename as worker_truename,worker.mobile as worker_mobile')
+            ->join('company','mt.company_id = company.id','LEFT')
+            ->field('mt.*,uc.projectname,uc.header,uc.header_mobile,uc.projectaddress,user.nickname as user_nickname,user.mobile as user_mobile,worker.truename as worker_truename,worker.mobile as worker_mobile,company.companyname')
             ->where('mt.id',$id)
             ->find();
 

+ 2 - 2
public/assets/js/backend/maintain.js

@@ -94,7 +94,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                                     url:'maintainbaojia/index/order_id/{ids}?dialog=1',
                                     target:'_self',
                                 },
-                                {
+                                /*{
                                     name:'zhipai',
                                     text:'总部指派',
                                     title:'总部指派',
@@ -109,7 +109,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                                         }
                                         return true;
                                     }
-                                },
+                                },*/
                             ],
                             events: Table.api.events.operate, formatter: Table.api.formatter.operate}
                     ]