|
@@ -500,7 +500,7 @@ class After extends Base
|
|
|
if (in_array($param['status'], [6, 9]) == false) throw new Exception('选项错误');
|
|
|
break;
|
|
|
case 9:
|
|
|
- if (in_array($param['status'], [2, 4]) == false) throw new Exception('选项错误');
|
|
|
+ if (in_array($param['status'], [2, 4, 5]) == false) throw new Exception('选项错误');
|
|
|
// if ($this->level != 3) throw new Exception('当前状态下只能由供应商账号操作');
|
|
|
if ($param['status'] == 4) {
|
|
|
if ($param['contactor'] == '') throw new Exception('收货人不能为空');
|
|
@@ -510,7 +510,7 @@ class After extends Base
|
|
|
}
|
|
|
break;
|
|
|
case 2:
|
|
|
- if (in_array($param['status'], [10, 4]) == false) throw new Exception('选项错误');
|
|
|
+ if (in_array($param['status'], [10, 4, 5]) == false) throw new Exception('选项错误');
|
|
|
if ($param['status'] == 4) {
|
|
|
if ($param['wsm_code'] == '') throw new Exception('请填写退回仓库');
|
|
|
else {
|
|
@@ -525,7 +525,7 @@ class After extends Base
|
|
|
|
|
|
break;
|
|
|
case 10:
|
|
|
- if (in_array($param['status'], [2, 4]) == false) throw new Exception('选项错误');
|
|
|
+ if (in_array($param['status'], [2, 4, 5]) == false) throw new Exception('选项错误');
|
|
|
if ($param['status'] == 4) {
|
|
|
if ($param['contactor'] == '') throw new Exception('收货人不能为空');
|
|
|
if ($param['mobile'] == '') throw new Exception('联系电话不能为空');
|
|
@@ -569,7 +569,7 @@ class After extends Base
|
|
|
$action_log_user = ['id' => $this->uid, 'nickname' => $this->uname];
|
|
|
|
|
|
//如果是小循环,增加次数
|
|
|
- if ($info['status'] == 10 && $param['status'] == 2) $info['loop_total'] += 1;
|
|
|
+ if ($param['status'] == 10) $info['loop_total'] += 1;//只要走到节点10(业务公司修改,待供应商确认),就增加次数
|
|
|
|
|
|
//判断 退回供应商 or 退回业务公司
|
|
|
if ($info['status'] == 9) {
|