|
@@ -479,14 +479,14 @@ class ApproveService
|
|
|
|
|
|
if ($status == CommonConstant::STATUS_3) {
|
|
|
if ($info->module == CommonConstant::MODULE_3) {
|
|
|
- // 入库商品列表
|
|
|
+ // 3=入库申请
|
|
|
$goods = $info->stock_goods;
|
|
|
if (!$goods->toArray()) {
|
|
|
except('入库商品不存在');
|
|
|
}
|
|
|
}
|
|
|
if ($info->module == CommonConstant::MODULE_8) {
|
|
|
- // 维修
|
|
|
+ // 8=维修申请
|
|
|
$is_maintain = CommonService::isMaintain($user);
|
|
|
if ($is_maintain && !$maintain_user_id) {
|
|
|
except('请选择维修人员');
|
|
@@ -497,13 +497,11 @@ class ApproveService
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if ($status == CommonConstant::STATUS_4) {
|
|
|
- if ($info->module == CommonConstant::MODULE_4) {
|
|
|
- // 领用商品列表 TODO
|
|
|
- $goods = $info->use_goods;
|
|
|
- if (!$goods->toArray()) {
|
|
|
- except('领用商品不存在');
|
|
|
- }
|
|
|
+ if ($info->module == CommonConstant::MODULE_4) {
|
|
|
+ // 4=领用申请
|
|
|
+ $goods = $info->use_goods;
|
|
|
+ if (!$goods->toArray()) {
|
|
|
+ except('领用商品不存在');
|
|
|
}
|
|
|
}
|
|
|
|