|
@@ -135,6 +135,7 @@ class Formula extends Backend
|
|
|
$customer_id = Db::name('customer')->where('customer_name','in',$customer)->column('id');
|
|
$customer_id = Db::name('customer')->where('customer_name','in',$customer)->column('id');
|
|
|
$usability = implode(',',$customer_id);
|
|
$usability = implode(',',$customer_id);
|
|
|
}
|
|
}
|
|
|
|
|
+// $order = Db::name('order')->order('desc id')->find();
|
|
|
$params['usability'] = $usability;
|
|
$params['usability'] = $usability;
|
|
|
$params['create'] = date('Y-m-d H:i:s');
|
|
$params['create'] = date('Y-m-d H:i:s');
|
|
|
$user_info = Session::get('admin');
|
|
$user_info = Session::get('admin');
|
|
@@ -215,17 +216,22 @@ class Formula extends Backend
|
|
|
}
|
|
}
|
|
|
if (false === $this->request->isPost()) {
|
|
if (false === $this->request->isPost()) {
|
|
|
$ids = input('ids');
|
|
$ids = input('ids');
|
|
|
- $order = Db::name('order')->field('user_name,examine,customer')->where('id',"=",$ids)->find();
|
|
|
|
|
|
|
+ $formula = Db::name('formula')->field('charge_name,examine_name')->where('id',"=",$ids)->find();
|
|
|
//查询公司
|
|
//查询公司
|
|
|
- $customer_name = Db::name('customer')->field('id,customer_name')->where('customer_name','=',$order['customer'])->find();
|
|
|
|
|
|
|
+ $user_info = Session::get('admin');
|
|
|
|
|
+ $map = [];
|
|
|
|
|
+ if ($user_info['id'] !== 1){
|
|
|
|
|
+ $map['company_id'] = $user_info['company_id'];
|
|
|
|
|
+ }
|
|
|
|
|
+ $customer_name = Db::name('customer')->field('id,customer_name')->where($map)->find();
|
|
|
$this->assign('customer_name',$customer_name);
|
|
$this->assign('customer_name',$customer_name);
|
|
|
$customer = Db::name('customer')->field('customer_name')->select();
|
|
$customer = Db::name('customer')->field('customer_name')->select();
|
|
|
$this->assign('customer',$customer);
|
|
$this->assign('customer',$customer);
|
|
|
//查询 经办 审核
|
|
//查询 经办 审核
|
|
|
$jsdd = Db::name('personnel')->where('bid',"=",2)->where('position','=',"jsdd")->order('name desc')->select();
|
|
$jsdd = Db::name('personnel')->where('bid',"=",2)->where('position','=',"jsdd")->order('name desc')->select();
|
|
|
$jssh = Db::name('personnel')->where('bid',"=",2)->where('position','=',"jssh")->order('name desc')->select();
|
|
$jssh = Db::name('personnel')->where('bid',"=",2)->where('position','=',"jssh")->order('name desc')->select();
|
|
|
- $personnel_jsdd = Db::name('personnel')->where('name','=',$order['user_name'])->find();
|
|
|
|
|
- $personnel_jssh = Db::name('personnel')->where('name','=',$order['examine'])->find();
|
|
|
|
|
|
|
+ $personnel_jsdd = Db::name('personnel')->where('name','=',$formula['charge_name'])->find();
|
|
|
|
|
+ $personnel_jssh = Db::name('personnel')->where('name','=',$formula['examine_name'])->find();
|
|
|
$this->assign('jsdd',$jsdd);
|
|
$this->assign('jsdd',$jsdd);
|
|
|
$this->assign('jssh',$jssh);
|
|
$this->assign('jssh',$jssh);
|
|
|
$this->assign('personnel_jsdd',$personnel_jsdd);
|
|
$this->assign('personnel_jsdd',$personnel_jsdd);
|