|
|
@@ -212,6 +212,22 @@ class Formula extends Backend
|
|
|
$this->error(__('No Results were found'));
|
|
|
}
|
|
|
if (false === $this->request->isPost()) {
|
|
|
+ $ids = input('ids');
|
|
|
+ $order = Db::name('order')->field('user_name,examine,customer')->where('id',"=",$ids)->find();
|
|
|
+ //查询公司
|
|
|
+ $customer_name = Db::name('customer')->field('id,customer_name')->where('customer_name','=',$order['customer'])->find();
|
|
|
+ $this->assign('customer_name',$customer_name);
|
|
|
+ $customer = Db::name('customer')->field('customer_name')->select();
|
|
|
+ $this->assign('customer',$customer);
|
|
|
+ //查询 经办 审核
|
|
|
+ $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();
|
|
|
+ $personnel_jsdd = Db::name('personnel')->where('name','=',$order['user_name'])->find();
|
|
|
+ $personnel_jssh = Db::name('personnel')->where('name','=',$order['examine'])->find();
|
|
|
+ $this->assign('jsdd',$jsdd);
|
|
|
+ $this->assign('jssh',$jssh);
|
|
|
+ $this->assign('personnel_jsdd',$personnel_jsdd);
|
|
|
+ $this->assign('personnel_jssh',$personnel_jssh);
|
|
|
$list = Db::name('formula')->where('id',$ids)->find();
|
|
|
//可用性,对应客户名称
|
|
|
if ($list['usability'] != 99){
|