|
@@ -447,9 +447,9 @@ class ApproveService
|
|
|
except('您没有权限操作');
|
|
|
}
|
|
|
// TODO 没有判断反馈状态
|
|
|
-
|
|
|
+
|
|
|
$params['maintain_user_id'] = $info->maintain_user_id;
|
|
|
- $params['comment_status'] = CommonConstant::IS_WHO_1;
|
|
|
+ $params['feedback_status'] = CommonConstant::IS_WHO_1;
|
|
|
self::feedback($info, $params);
|
|
|
break;
|
|
|
}
|
|
@@ -474,7 +474,7 @@ class ApproveService
|
|
|
|
|
|
if ($status == CommonConstant::STATUS_3) {
|
|
|
if ($info->module == CommonConstant::MODULE_3) {
|
|
|
- // 入库商品列表 TODO
|
|
|
+ // 入库商品列表
|
|
|
$goods = $info->stock_goods;
|
|
|
if (!$goods->toArray()) {
|
|
|
except('入库商品不存在');
|
|
@@ -541,10 +541,6 @@ class ApproveService
|
|
|
GoodsStockLog::insertAll($goodsStockLog);
|
|
|
}
|
|
|
}
|
|
|
- if ($info->module == CommonConstant::MODULE_4) {
|
|
|
- // 领用商品列表
|
|
|
-
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
if ($status == CommonConstant::STATUS_4) {
|
|
@@ -637,9 +633,8 @@ class ApproveService
|
|
|
public static function feedback($info, $params)
|
|
|
{
|
|
|
try {
|
|
|
- $data = $params;
|
|
|
// 更新维修信息
|
|
|
- ApproveMaintain::where('info_id', $info->id)->update($data);
|
|
|
+ ApproveMaintain::where('info_id', $info->id)->update($params);
|
|
|
} catch (Exception $e) {
|
|
|
except('出现错误:' . $e->getMessage());
|
|
|
}
|