'order_inquire','factory_id' => 0,'order_id' => $_SESSION['orderId'])); $jsonContent = "content=".$jsonStr; list($returnCode, $returnContent) = http_post_json($url, $jsonContent); $responData = json_decode($returnContent,true); ?> 志高AI智能订单查询系统
志高AI智能订单查询系统



",$handover_list['product_id'],"
"; } echo ")已下单,已排产
"; }else { echo "采购订单( )已下单,已排产"; } ?>
alert(".$errorMsg.")"; }else{ if(!empty($_SESSION['orderId']) and $responData['error_code'] == 0 and $responData['is_customer'] == 0){ $productionBomCount = 0; //物料已有库存 $sourcingBomCount = 0; //需采购物料 foreach($responData['bom_list'] as $bom_list){ $productionBomCount += $bom_list['production_bom']; $sourcingBomCount += $bom_list['sourcing_bom']; } echo "物料准备:",$productionBomCount,"个物料已有库存,",$sourcingBomCount,"个物料正在下单采购"; }else{ echo "物料准备:",$productionBomCount,"个物料已有库存,",$sourcingBomCount,"个物料正在下单采购"; } } ?>
alert(".$errorMsg.")"; }else{ date_default_timezone_set("PRC"); //时区转换,PRC指的是中华人民共和国 if(!empty($_SESSION['orderId']) and $responData['error_code'] == 0 and $responData['is_customer'] == 0){ foreach($responData['schedule_list'] as $schedule_list){ echo "生产环节:
",$schedule_list['product_name'],":预计生产日期",date("Y-m-d H:i",$schedule_list['production_time']),",正在生产中。
"; } if(empty($schedule_list['production_time'])){ echo "暂无信息!"; } }else{ echo "生产环节:
",$schedule_list['product_name'],":预计生产日期",date("Y-m-d H:i",$schedule_list['production_time']),",正在生产中。
"; } } ?>
alert(".$errorMsg.")"; }else{ if(!empty($_SESSION['orderId']) and $responData['error_code'] == 0 and $responData['is_customer'] == 0){ foreach($responData['production_list'] as $production_list){ echo "生产完成,可配送成品:
",$production_list['product_name'],"成品已到位。
"; } if(empty($production_list['product_name'])){ echo "暂无信息!"; } }else{ echo "生产完成,可配送成品:
",$production_list['product_name'],"成品已到位。
"; } } ?>
    alert('$responData[is_customer]');'; }else if($responData['is_customer'] == 0 and $responData['error_code'] == 0 ) { date_default_timezone_set("PRC"); //时区转换,PRC指的是中华人民共和国 //handover_list:交付信息 if(!$responData['handover_list']){ echo '暂没查询到数据!'; }else if($responData['handover_list']){ foreach($responData['handover_list'] as $handover_list){ $time = $handover_list['time']; $product_id = $handover_list['product_id']; $product_name = $handover_list['product_name']; $quantity = $handover_list['quantity']; $delivery_date = $handover_list['delivery_date']; $salesman = $handover_list['salesman']; echo '

  • ',date("Y-m-d H:i",$time),'    成品出库

    产品编号:',$product_id,'
    产品名称:',$product_name,'
    产品数量:',$quantity,'
    原计划交付时间:',date("Y-m-d H:i",$delivery_date),'
    业务员:',$salesman,'
  • '; } } //production_list:生产完成信息 foreach($responData['production_list'] as $production_list){ $time = $production_list['time']; $task_id = $production_list['task_id']; $product_id = $production_list['product_id']; $product_name = $production_list['product_name']; $prodline_name = $production_list['prodline_name']; $quantity = $production_list['quantity']; echo '

  • ',date("Y-m-d H:i",$time),'    生产入库

    生产订单:',$task_id,'
    产品编号:',$product_id,'
    产品名称:',$product_name,'
    生产线名称:',$prodline_name,'
    生产数量:',$quantity,'
  • '; } //check_list:成品品质检查 foreach($responData['check_list'] as $check_list){ $time = $check_list['time']; $task_id = $check_list['task_id']; $product_id = $check_list['product_id']; $product_name = $check_list['product_name']; $prodline_name = $check_list['prodline_name']; $quantity = $check_list['quantity']; $fail_quantity = $check_list['fail_quantity']; echo '

  • ',date("Y-m-d H:i",$time),'    成品品质检验

    生产订单:',$task_id,'
    产品编号:',$product_id,'
    产品名称:',$product_name,'
    生产线名称:',$prodline_name,'
    生产数量:',$quantity,'
    不合格数量:',$fail_quantity,'
  • '; } //begin_list:开始生产信息 foreach($responData['begin_list'] as $begin_list){ $time = $begin_list['time']; $task_id = $begin_list['task_id']; $product_id = $begin_list['product_id']; $product_name = $begin_list['product_name']; $prodline_name = $begin_list['prodline_name']; $quantity = $begin_list['quantity']; echo '

  • ',date("Y-m-d H:i",$time),'    生产订单首台上线

    生产订单:',$task_id,"
    产品编号:",$product_id,"
    产品名称:",$product_name,"
    生产线名称:",$prodline_name,"
    生产数量:",$quantity,'
  • '; } //material_list:物料到齐信息 foreach($responData['material_list'] as $material_list){ $time = $material_list['time']; $task_id = $material_list['task_id']; $product_id = $material_list['product_id']; $product_name = $material_list['product_name']; $material_types = $material_list['material_types']; $material_count = $material_list['material_count']; echo '

  • ',date("Y-m-d H:i",$time),'    物料备齐状态

    生产订单:',$task_id,"
    产品编号:",$product_id,"
    产品名称:",$product_name,"
    共需物料种类:",$material_types,"
    已送达物料种类:",$material_count,'
  • '; } //sourcing_list:送料提醒信息 foreach($responData['sourcing_list'] as $sourcing_list){ $time = $sourcing_list['time']; $task_id = $sourcing_list['task_id']; $product_id = $sourcing_list['product_id']; $product_name = $sourcing_list['product_name']; $arrival_time = $sourcing_list['arrival_time']; echo '

  • ',date("Y-m-d H:i",$time),'    通知送料

    ','生产订单号:',$task_id,'
    产品编号:',$product_id,'
    产品名称:',$product_name,'
    预计送达时间:',date("Y-m-d H:i",$arrival_time),'
  • '; } //schedule_list:排产信息 foreach($responData['schedule_list'] as $schedule_list){ $time = $schedule_list['time']; $task_id = $schedule_list['task_id']; $product_id = $schedule_list['product_id']; $product_name = $schedule_list['product_name']; $production_time = $schedule_list['production_time']; $prodline_name = $schedule_list['prodline_name']; echo '

  • ',date("Y-m-d H:i",$time),'    进入排

    生产订单号:',$task_id,'
    产品编号:',$product_id,'
    产品名称:',$product_name.'
    预计生产时间:',date("Y-m-d H:i",$production_time).'
    生产线:',$prodline_name,'
  • '; } //bom_list:客户订单分解 foreach($responData['bom_list'] as $bom_list){ $time = $bom_list['time']; $task_id = $bom_list['task_id']; $product_id = $bom_list['product_id']; $product_name = $bom_list['product_name']; $production_bom = $bom_list['production_bom']; $sourcing_bom = $bom_list['sourcing_bom']; echo '

  • ',date("Y-m-d H:i",$time),'    生产订单创建

    生产订单号:',$task_id,'
    产品编号:',$product_id,'
    产品名称:',$product_name,'
    共需物料种类:',$production_bom,'
    需采购物料种类:',$sourcing_bom,'
  • '; } //order_list:客户订单信息 foreach($responData['order_list'] as $order_list){ $time = $order_list['time']; $product_id = $order_list['product_id']; $product_name = $order_list['product_name']; $quantity = $order_list['quantity']; $delivery_date = $order_list['delivery_date']; $salesman = $order_list['salesman']; echo '

  • ',date("Y-m-d H:i",$time),'    销售订单创建

    产品编号:',$product_id,'
    产品名称:',$product_name,'
    产品数量:',$quantity,'
    预计交货日期:',date("Y-m-d H:i",$delivery_date),'
    业务员:',$salesman,'
  • '; } }else if($responData['is_customer'] == 1 and $responData['error_code'] == 0){ //客户信息查询 foreach($responData['customer_list'] as $customer_list){ foreach($customer_list['order_list'] as $order_list){ foreach($order_list['product_list'] as $product_list){ echo '

  • ',$customer_list['customer_id'],'

    销售订单号:',$order_list['order_id'], '
    销售订单要求交货日期:',date("Y-m-d H:i",$order_list['order_date']), '
    PI要求交货日期:',date("Y-m-d H:i",$order_list['order_pi_date']), '
    成品编码:',$product_list['product_id'], '
    成品名称:',$product_list['product_name'], '
    需求数量:',$product_list['quantity'],'
  • '; } } } } } ?>