|
|
@@ -3163,4 +3163,37 @@ class WorkOrder extends Api
|
|
|
return array_merge($newData, $overrideData);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 糊盒标准工单左侧菜单栏
|
|
|
+ * @return void
|
|
|
+ * @throws \think\db\exception\DataNotFoundException
|
|
|
+ * @throws \think\db\exception\ModelNotFoundException
|
|
|
+ * @throws \think\exception\DbException
|
|
|
+ */
|
|
|
+ public function HuheDataList()
|
|
|
+ {
|
|
|
+ if ($this->request->isGet() === false){
|
|
|
+ $this->error('请求错误');
|
|
|
+ }
|
|
|
+ $list = \db('产品_基本资料')
|
|
|
+ ->where('客户编号','<>','')
|
|
|
+ ->field('客户编号,客户名称')
|
|
|
+ ->group('客户编号,客户名称')
|
|
|
+ ->order('客户编号')
|
|
|
+ ->select();
|
|
|
+ if (empty($list)){
|
|
|
+ $this->success('',[]);
|
|
|
+ }
|
|
|
+ $data['糊盒工单'] = [];
|
|
|
+ foreach ($list as $key=>$value){
|
|
|
+ $value['客户编号'] = rtrim($value['客户编号']);
|
|
|
+
|
|
|
+ $name = $value['客户编号'].rtrim($value['客户名称']);
|
|
|
+ if (strpos($value['客户编号'],'J') !== false ){
|
|
|
+ array_push($data['糊盒工单'],$name);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $this->success('成功',$data);
|
|
|
+ }
|
|
|
}
|