wugg 2 years ago
parent
commit
be07d14587
1 changed files with 16 additions and 16 deletions
  1. 16 16
      app/command/handleYzOrderData.php

+ 16 - 16
app/command/handleYzOrderData.php

@@ -492,21 +492,21 @@ class handleYzOrderData extends Command
                                 ], "CKD", 0, $out);
 
                                 if ($out['status'] == 1) {
-//                                    if ($is_stock == 1) {
-//                                        //库存品,待办数据推给库管
-//                                        $uids = Db::name('user_role')
-//                                            ->where(['is_del' => 0, 'roleid' => config('app.wsm_cgder_role'), 'status' => 1])
-//                                            ->column('uid');
-//                                        ProcessOrder::AddProcess(['id' => $rm, 'nickname' => $ri], [
-//                                            "order_type" => 'CKD',
-//                                            "order_code" => $outCode,//出库单号
-//                                            "order_id" => $ou,
-//                                            "order_status" => $out['status'],
-//                                            "before_status" => 0,
-//                                            'holder_id' => $data['apply_id'],
-//                                            'handle_user_list' => implode(',', $uids),
-//                                        ]);
-//                                    } else {
+                                    if ($is_stock == 1) {
+                                        //库存品,待办数据推给库管
+                                        $uids = Db::name('user_role')
+                                            ->where(['is_del' => 0, 'roleid' => config('app.wsm_cgder_role'), 'status' => 1])
+                                            ->column('uid');
+                                        ProcessOrder::AddProcess(['id' => $rm, 'nickname' => $ri], [
+                                            "order_type" => 'CKD',
+                                            "order_code" => $outCode,//出库单号
+                                            "order_id" => $ou,
+                                            "order_status" => $out['status'],
+                                            "before_status" => 0,
+                                            'holder_id' => $data['apply_id'],
+                                            'handle_user_list' => implode(',', $uids),
+                                        ]);
+                                    } else {
 //                                        //非库存品推给供应商负责人
                                         $supp = Db::name('supplier')
                                             ->field('person,personid')
@@ -522,7 +522,7 @@ class handleYzOrderData extends Command
                                             'wait_id' => $supp['personid'],
                                             'wait_name' => $supp['person'],
                                         ]);
-//                                    }
+                                    }
 
 
                                 }else ProcessOrder::AddProcess(['id' => $rm, 'nickname' => $ri], [