Bläddra i källkod

1修改boss的出库时间不允许超过当月

lvhao 11 timmar sedan
förälder
incheckning
8cc8c3a789
2 ändrade filer med 7 tillägg och 1 borttagningar
  1. 5 1
      core/CoreApp/controllers/Boss.php
  2. 2 0
      core/CoreApp/controllers/Bosstwo.php

+ 5 - 1
core/CoreApp/controllers/Boss.php

@@ -147,7 +147,11 @@ class Boss extends Start_Controller
 		if (isset($post['order'])) {
 			$time = $this->input->post('time', true);
 			$time = strtotime($time);
-
+			$now_month_time = strtotime(date("Y-m",time()));
+			if($time <= $now_month_time){
+				echo json_encode(array('msg' => '当月业务当月完成,不允许跨月份操作!', 'success' => false));
+				exit;
+			}
 			$order = $this->input->post('order', true);
 			$weight = $this->input->post('weight', true);
 			if (!isset($weight)) //测试没问题后可以删

+ 2 - 0
core/CoreApp/controllers/Bosstwo.php

@@ -66,6 +66,8 @@ class Bosstwo extends Start_Controller
 	//定义方法的调用规则 获取URI第二段值
 	public function _remap($arg, $arg_array)
 	{
+
+	    die;
 		if ($arg == 'out') {
 			$this->_out($arg_array);
 		} else if ($arg == 'sku') {