|
@@ -211,8 +211,8 @@ class Resign extends Base
|
|
|
"lasttime"=>$lastime,
|
|
|
"status"=>1,
|
|
|
"remark"=>$mark,
|
|
|
- "cgder"=>$good['creater'],
|
|
|
- "cgderid"=>$good['createrid'],
|
|
|
+ "cgder" => $good['charger'],//$good['creater'],
|
|
|
+ "cgderid" => $good['chargerid'],//$good['createrid'],
|
|
|
"addtime"=>date("Y-m-d H:i:s"),
|
|
|
"updatetime"=>date("Y-m-d H:i:s"),
|
|
|
"apply_id"=>$this->uid,
|
|
@@ -221,15 +221,8 @@ class Resign extends Base
|
|
|
];
|
|
|
$in = Db::name("purchease")->insert($info,true);
|
|
|
if($in>0){
|
|
|
- //备库单,推给供应商负责人、库管、库管-张凯旋
|
|
|
- $handle_user_list = Db::name('user_role')
|
|
|
- ->where('is_del', 0)
|
|
|
- ->whereIn('roleid', config('app.wsm_cgder_role'))
|
|
|
- ->where('status',1)
|
|
|
- ->column('uid');
|
|
|
- $handle_user_list[]=$supplier['personid'];
|
|
|
-
|
|
|
- $order = ["order_type" => 'BHD', "order_code" => $bk_code, "order_id" => $in, "order_status" => 1, "before_status" => 1, 'handle_user_list'=>implode(',',$handle_user_list)];
|
|
|
+ //备库单,推给供应商负责人
|
|
|
+ $order = ["order_type" => 'BHD', "order_code" => $bk_code, "order_id" => $in, "order_status" => 1, "before_status" => 1, 'wait_id' => $supplier['personid'], 'wait_name' => $supplier['person']];
|
|
|
ProcessOrder::AddProcess(['id' => $this->uid, 'nickname' => $this->uname], $order);
|
|
|
$ste = ["order_code" => $bk_code, "status" => 0, "action_remark" => '', "action_type" => "create"];
|
|
|
ActionLog::logAdd(['id' => $this->uid, 'nickname' => $this->uname], $ste, "BHD", 1, $info);
|