浏览代码

提交信息

lvhao 1 月之前
父节点
当前提交
4e70f0319c
共有 3 个文件被更改,包括 9 次插入2 次删除
  1. 7 1
      core/CoreApp/controllers/Returngoods.php
  2. 1 1
      template/erp/returngoods.html
  3. 1 0
      template/erp/returngoods_add.html

+ 7 - 1
core/CoreApp/controllers/Returngoods.php

@@ -168,6 +168,9 @@ class Returngoods extends Start_Controller {
                 if(empty($post['jjcd'])){
                 if(empty($post['jjcd'])){
                     echo json_encode(array('msg'=>'紧急程度必须选择!请选择','success'=>false));exit;
                     echo json_encode(array('msg'=>'紧急程度必须选择!请选择','success'=>false));exit;
                 }
                 }
+                if(empty($post['shpjxx'])){
+                    echo json_encode(array('msg'=>'评价选项必须选择!请选择','success'=>false));exit;
+                }
             }
             }
             if(empty($type)){
             if(empty($type)){
                 echo json_encode(array('msg'=>'订单信息存储表单异常','success'=>false));exit;
                 echo json_encode(array('msg'=>'订单信息存储表单异常','success'=>false));exit;
@@ -269,6 +272,9 @@ class Returngoods extends Start_Controller {
                 if(empty($post['jjcd'])){
                 if(empty($post['jjcd'])){
                     echo json_encode(array('msg'=>'紧急程度必须选择!请选择','success'=>false));exit;
                     echo json_encode(array('msg'=>'紧急程度必须选择!请选择','success'=>false));exit;
                 }
                 }
+                if(empty($post['shpjxx'])){
+                    echo json_encode(array('msg'=>'评价选项必须选择!请选择','success'=>false));exit;
+                }
             }
             }
             $insert_data  =[
             $insert_data  =[
                 'recorder'=>$post['recorder'],
                 'recorder'=>$post['recorder'],
@@ -534,7 +540,7 @@ class Returngoods extends Start_Controller {
             if($jjcd){
             if($jjcd){
                 $where  .= " and jjcd = '$jjcd'";
                 $where  .= " and jjcd = '$jjcd'";
             }
             }
-            if($shpjxx >= 0){
+            if($shpjxx){
                 $where  .= " and shpjxx = '$shpjxx'";
                 $where  .= " and shpjxx = '$shpjxx'";
             }
             }
 
 

+ 1 - 1
template/erp/returngoods.html

@@ -116,7 +116,7 @@
 <li>
 <li>
     评价选项:
     评价选项:
     <select name="shpjxx" class="select">
     <select name="shpjxx" class="select">
-        <option value="-1">请选择</option>
+        <option value="">请选择</option>
         {loop $shpjxx_list as $key=>$val}
         {loop $shpjxx_list as $key=>$val}
         <option value="{$key}">{$val}</option>
         <option value="{$key}">{$val}</option>
         {/loop}
         {/loop}

+ 1 - 0
template/erp/returngoods_add.html

@@ -47,6 +47,7 @@
 <li>
 <li>
     <em>评价选项:</em>
     <em>评价选项:</em>
     <select name="shpjxx" class="select ">
     <select name="shpjxx" class="select ">
+        <option value="">请选择</option>
         {loop $shpjxx as $key=>$val}
         {loop $shpjxx as $key=>$val}
             <option value="{$key}">{$val}</option>
             <option value="{$key}">{$val}</option>
         {/loop}
         {/loop}