qiuenguang 1 anno fa
parent
commit
553dc7f2b8
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      application/api/controller/Facility.php

+ 5 - 0
application/api/controller/Facility.php

@@ -359,7 +359,12 @@ class Facility extends Api
         if (empty($orderList)){
             $this->success('未找到排产工单');
         }
+        $data = \db('设备_产量采集')->where('设备编号',$machine)->order('UniqId desc')->find();
         foreach ($orderList as $key=>$value){
+            $orderList[$key]['status'] = 0;
+            if ($value['gdbh'] === $data['工单编号'] && $value['yjno'] === $data['印件号'] && $value['gxh'] === $data['工序号']) {
+                $orderList[$key]['status'] = 1;
+            }
             $orderList[$key]['工单编号|质量信息'] = $value['gdbh'].'|'.$value['质量信息'];
             $orderList[$key]['印件号'] = $value['yjno'];
             $orderList[$key]['工序号'] = $value['gxh'];