企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
### 装箱单详细信息 **位置:** Common\Lib\FlowLib.class.php **参数:** * @param $data array 订单信息(如装箱单ID,订单ID) * @return array 装箱单信息 **调用:** * $flow = new FlowLib(); * $order_arr = $flow->bview($data); **完整代码:** ~~~ /** * 装箱单详情 * @param $data array 装箱单信息(如装箱单ID) * @return array 装箱单信息 * whz 2018-01-30 * */ public function bview($data) { //1、查询装箱单的详情 $box_list = M('wms_box') ->where(array('id' => $data['box_id'])) ->find(); $datas['box_list'] = $box_list; //2、查询配货单的状态(如果还没有签收就不能拆箱) $status = M('wms_flow') ->field('status') ->where(array('id' => $data['id'])) ->find(); $datas['status'] = $status; //3、根据装箱单号查看已扫描的商品 $order_goods_list = M('wms_no as o') ->field('o.status,no.no,u.supply_style_no,u.name_zh,no.color_name,no.color,no.size,no.company_retail_price') ->join('coscia_goods_no as no on o.no_id = no.id','left') ->join('coscia_goods_menu as u on no.menu_id = u.id','left') ->where(array('o.box_id'=>$data['box_id'], 'o.is_delete'=>0)) ->select(); $datas['order_goods_list'] = $order_goods_list; return $datas; } ~~~