|
@@ -131,7 +131,7 @@ class After extends Base
|
|
|
|
|
|
Db::execute("UPDATE `wsm_standing_book` SET `returnCode`=CONCAT(IFNULL(`returnCode`,''),',{$returnCode}'),`updatetime`='" . date('Y-m-d H:i:s') . "' WHERE FIND_IN_SET('{$outCode}',`outCode`)");
|
|
|
|
|
|
- $process = ["order_code" => $returnCode, "order_id" => $create, "order_status" => $in['status'], "order_type" => 'SHD', "before_status" => 1];
|
|
|
+ $process = ["order_code" => $returnCode, "order_id" => $create, "order_status" => $in['status'], "order_type" => 'SHD', "before_status" => 1,'holder_id'=>$in['apply_id']];
|
|
|
ProcessOrder::AddProcess($token,$process);
|
|
|
Db::commit();
|
|
|
return app_show(0,"售后申请单新建成功",["returnCode"=>$returnCode]);
|
|
@@ -408,9 +408,9 @@ class After extends Base
|
|
|
$order = ["order_code"=>$info['returnCode'],"status"=>$var,"action_remark"=>'',"action_type"=>"edit"];
|
|
|
ActionLog::logAdd($this->post['token'],$order,"SHD", $info['status'],$this->post);
|
|
|
|
|
|
- if (in_array($status, [2, 3])) $process = ["order_code" => $info['returnCode'], "order_id" => $info['id'], "order_status" => $status, "order_type" => "SHD", "before_status" => $var, 'wait_id' => $info['cgderid'], 'wait_name' => $info['cgder']];
|
|
|
- elseif ($status == 4) $process = ["order_code" => $info['returnCode'], "order_id" => $info['id'], "order_status" => $status, "order_type" => "SHD", "before_status" => $var, 'wait_id' => $info['apply_id'], 'wait_name' => $info['apply_name']];
|
|
|
- else $process = ["order_code" => $info['returnCode'], "order_id" => $info['id'], "order_status" => $status, "order_type" => "SHD", "before_status" => $var];
|
|
|
+ if (in_array($status, [2, 3])) $process = ["order_code" => $info['returnCode'], "order_id" => $info['id'], "order_status" => $status, "order_type" => "SHD", "before_status" => $var, 'wait_id' => $info['cgderid'], 'wait_name' => $info['cgder'],'holder_id'=>$info['cgderid']];
|
|
|
+ elseif ($status == 4) $process = ["order_code" => $info['returnCode'], "order_id" => $info['id'], "order_status" => $status, "order_type" => "SHD", "before_status" => $var, 'wait_id' => $info['apply_id'], 'wait_name' => $info['apply_name'],'holder_id'=>$info['apply_id']];
|
|
|
+ else $process = ["order_code" => $info['returnCode'], "order_id" => $info['id'], "order_status" => $status, "order_type" => "SHD", "before_status" => $var,'holder_id'=>$info['apply_id']];
|
|
|
|
|
|
ProcessOrder::AddProcess($this->post['token'],$process);
|
|
|
Db::commit();
|
|
@@ -515,7 +515,9 @@ class After extends Base
|
|
|
"order_type" => 'SHD',
|
|
|
"order_code" => $info['returnCode'],//销售单code
|
|
|
"order_id" => $info['id'],
|
|
|
- "order_status" => $info['status'],"before_status"=>$old_info_status
|
|
|
+ "order_status" => $info['status'],
|
|
|
+ "before_status"=>$old_info_status,
|
|
|
+ 'holder_id'=>$info['apply_id']
|
|
|
]);
|
|
|
|
|
|
Db::commit();
|
|
@@ -631,7 +633,7 @@ class After extends Base
|
|
|
if($in){
|
|
|
$order = ["order_code"=>$info['returnCode'],"status"=>$var,"action_remark"=>'',"action_type"=>"edit"];
|
|
|
ActionLog::logAdd($this->post['token'],$order,"SHD",$info['status'],$this->post);
|
|
|
- $process=["order_code"=>$info['returnCode'],"order_id"=>$info['id'],"order_status"=>$info['status'],"order_type"=>"SHD","before_status"=>$var];
|
|
|
+ $process=["order_code"=>$info['returnCode'],"order_id"=>$info['id'],"order_status"=>$info['status'],"order_type"=>"SHD","before_status"=>$var,'holder_id'=>$info['apply_id']];
|
|
|
ProcessOrder::AddProcess($this->post['token'],$process);
|
|
|
Db::commit();
|
|
|
return app_show(0,"更新成功");
|
|
@@ -705,7 +707,7 @@ class After extends Base
|
|
|
if($up){
|
|
|
$order = ["order_code"=>$info['orderCode'],"status"=>$str,"action_remark"=>'',"action_type"=>"edit"];
|
|
|
ActionLog::logAdd($this->post['token'],$order,"SHD",$info['status'],$this->post);
|
|
|
- $process=["order_code"=>$info['returnCode'],"order_id"=>$info['id'],"order_status"=>$info['status'],"order_type"=>"SHD","before_status"=>$str];
|
|
|
+ $process=["order_code"=>$info['returnCode'],"order_id"=>$info['id'],"order_status"=>$info['status'],"order_type"=>"SHD","before_status"=>$str,'holder_id'=>$info['apply_id']];
|
|
|
ProcessOrder::AddProcess($this->post['token'],$process);
|
|
|
$in=Db::name("order_returninfo")->save($return_info);
|
|
|
if($in){
|
|
@@ -843,7 +845,7 @@ class After extends Base
|
|
|
if($in){
|
|
|
$order = ["order_code"=>$info['returnCode'],"status"=>$stat,"action_remark"=>'',"action_type"=>"edit"];
|
|
|
ActionLog::logAdd($this->post['token'],$order,"SHD", $info['status'],$this->post);
|
|
|
- $process=["order_code"=>$info['returnCode'],"order_id"=>$info['id'],"order_status"=>$info['status'],"SHD","before_status"=>$stat];
|
|
|
+ $process=["order_code"=>$info['returnCode'],"order_id"=>$info['id'],"order_status"=>$info['status'],"SHD","before_status"=>$stat,'holder_id'=>$info['apply_id']];
|
|
|
ProcessOrder::AddProcess($this->post['token'],$process);
|
|
|
Db::commit();
|
|
|
return app_show(0,"更新成功");
|
|
@@ -1008,7 +1010,9 @@ class After extends Base
|
|
|
"order_type" => 'SHD',
|
|
|
"order_code" => $info['returnCode'],//销售单code
|
|
|
"order_id" => $info['id'],
|
|
|
- "order_status" => $info['status'],"before_status"=>$old_info_status
|
|
|
+ "order_status" => $info['status'],
|
|
|
+ "before_status"=>$old_info_status,
|
|
|
+ 'holder_id'=>$info['apply_id']
|
|
|
]);
|
|
|
|
|
|
$thNo =makeNo("ST");
|
|
@@ -1168,7 +1172,7 @@ class After extends Base
|
|
|
Db::startTrans();
|
|
|
try {
|
|
|
|
|
|
- $rs = Db::name('order_return')->field('id,status')->where([['returnCode', '=', $data['returnCode']], ['is_del', '=', 0], ['status', '<>', 8]])->find();
|
|
|
+ $rs = Db::name('order_return')->field('id,status,apply_id')->where([['returnCode', '=', $data['returnCode']], ['is_del', '=', 0], ['status', '<>', 8]])->find();
|
|
|
|
|
|
if (!$rs) throw new Exception('该售后单记录不存在');
|
|
|
|
|
@@ -1179,7 +1183,7 @@ class After extends Base
|
|
|
|
|
|
//记录日志
|
|
|
ActionLog::logAdd($data['token'], ["order_code" => $data['returnCode'], "status" => $rs['status'], "action_remark" => '', "action_type" => "delete"], 'SHD', 8, $this->post);
|
|
|
- ProcessOrder::AddProcess($this->post['token'], ["order_code" => $data['returnCode'], "order_id" => $rs['id'], "order_status" => 8, "order_type" => 'SHD',"before_status"=>$rs['status']]);
|
|
|
+ ProcessOrder::AddProcess($this->post['token'], ["order_code" => $data['returnCode'], "order_id" => $rs['id'], "order_status" => 8, "order_type" => 'SHD',"before_status"=>$rs['status'],'holder_id'=>$rs['apply_id']]);
|
|
|
|
|
|
//提交
|
|
|
Db::commit();
|