diff --git a/wms/cont/submit.php b/wms/cont/submit.php index c352525d..fe51e37d 100644 --- a/wms/cont/submit.php +++ b/wms/cont/submit.php @@ -6,6 +6,15 @@ require_once './model/ConMaintanceExamineClearModel.php'; //print_r($_POST);exit; $request = $_SERVER['REQUEST_METHOD'] == "GET" ? $_GET : $_POST; $tosign = ($request["btn_save"] == "tosign") ? 1 : 0; // 1:提交 + +if ($tosign && (!isset($request["register_code"]) || empty($request["register_code"][0]) || !isset($request["next_users"]) || empty($request["next_users"]))) { + echo ""; + exit; +} + //更新表单ConMaintanceExamineApplyModel $cmea = new ConMaintanceExamineApplyModel(); $apply_key=$request['apply_key']; diff --git a/wms/excel-upload.php b/wms/excel-upload.php index 5c681828..1a9d842d 100644 --- a/wms/excel-upload.php +++ b/wms/excel-upload.php @@ -134,6 +134,7 @@ if (move_uploaded_file($temp_file_name, $target_file)) { //创建作番信息 switch ($facilityno) { case (preg_match('/TX/', $facilityno) ? true : false): + case (preg_match('/JX/', $facilityno) ? true : false): $facility_kind = "MAE100"; break; case (preg_match('/TW/', $facilityno) ? true : false):