浏览代码

排产时间判断优化

zck 1 月之前
父节点
当前提交
09092ff2fa
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      application/api/controller/Manufacture.php

+ 1 - 3
application/api/controller/Manufacture.php

@@ -455,9 +455,7 @@ class Manufacture extends Api
             }else{
                 $newTime = $lastTime['sj2'];
             }
-            if (strtotime($newTime) >= strtotime($date . ' +2 month')) {
-                $this->error('计划开工时间超过规定时间');
-            }
+
             $row = \db('工单_工艺资料')
                 ->where($where)
                 ->field('rtrim(Gy0_计划接货数) as 计划接货数,rtrim(Gy0_小时产能) as 小时产能,rtrim(Gy0_辅助工时) as 辅助工时')