Browse Source

大王椰 完工

cqpCow 1 year ago
parent
commit
8e1607fee9
1 changed files with 4 additions and 1 deletions
  1. 4 1
      app/Jobs/DesktopDeviceJob.php

+ 4 - 1
app/Jobs/DesktopDeviceJob.php

@@ -112,9 +112,11 @@ class DesktopDeviceJob implements ShouldQueue
         if(! $status) return;
 
         //组织数据
+        $total = 0;
         $completion_orders_dtl = [];
         $first = $data['content'][0]['dispatch_orders'];
         foreach ($data['content'] as $value){
+            $total += $value['dispatch_num'];
             $completion_orders_dtl[] = [
                 "item_num" => $value['item_num'],
                 "product_no" => $value['product_no'],
@@ -181,7 +183,8 @@ class DesktopDeviceJob implements ShouldQueue
             "employee_id_show" => $first['employee_id_show'],
             "tag" => $tag,
             "completion_type" => 'COMPLETION_AFTER_QUALITY',
-            "completion_type_show" => '完工扫码'
+            "completion_type_show" => '完工扫码',
+            "finished_num_total" => $total,
         ];
         $post = [
             "bizTypeEk" => "LOWCODE",