|
@@ -55,7 +55,7 @@ class ReorderChild extends Base
|
|
|
|
|
|
}
|
|
|
$val_child = Validate::rule([
|
|
|
-// 'outChildCode|发货工单号' => 'require',
|
|
|
+ 'outChildCode|发货工单号' => 'max:255',
|
|
|
'return_num|退货数量' => 'require|number|gt:0|max:999999999999',
|
|
|
'return_wsm_code|退货仓库编码' => 'require'
|
|
|
]);
|
|
@@ -88,7 +88,7 @@ class ReorderChild extends Base
|
|
|
'returnCode' => $param['returnCode'],
|
|
|
'outCode' => $param['outCode'],
|
|
|
'outChildCode' => $value['outChildCode'] ?? '',
|
|
|
- 'order_out_child_status' => $orderOutChild[$value['outChildCode']]['status'] ?? 0,
|
|
|
+ 'order_out_child_status' =>isset($value['outChildCode'])?($orderOutChild[$value['outChildCode']]['status'] ?? 0) :0,
|
|
|
'saleReturnChildCode' => substr(makeNo('KCC'), 0, -2) . str_pad($i++, 2, '0', STR_PAD_LEFT),
|
|
|
// 'type' => $param['type'],
|
|
|
'companyNo' => $saleReturn['companyNo'],
|
|
@@ -101,8 +101,8 @@ class ReorderChild extends Base
|
|
|
'addtime' => $date,
|
|
|
'updatetime' => $date,
|
|
|
'record' => '',
|
|
|
- 'send_wsm_code' => $orderOutChild[$value['outChildCode']]['wsm_code'] ?? '',
|
|
|
- 'send_num' => $orderOutChild[$value['outChildCode']]['num'] ?? 0,
|
|
|
+ 'send_wsm_code' => isset($value['outChildCode'])?($orderOutChild[$value['outChildCode']]['wsm_code'] ?? ''):"",
|
|
|
+ 'send_num' => isset($value['outChildCode'])?($orderOutChild[$value['outChildCode']]['num'] ?? 0):"",
|
|
|
'return_num' => $value['return_num'],
|
|
|
'return_wsm_code' => $value['return_wsm_code'],
|
|
|
'good_receive_type' => 0,
|
|
@@ -207,7 +207,7 @@ class ReorderChild extends Base
|
|
|
'remark|备注' => 'max:255'
|
|
|
]);
|
|
|
|
|
|
- if ($val->check($param)) return json_show(1004, $val->getError());
|
|
|
+ if ($val->check($param)==false) return json_show(1004, $val->getError());
|
|
|
|
|
|
$info = Db::name('sale_return_child')
|
|
|
->alias('a')
|