|
|
@@ -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'];
|