Browse Source

提交信息

lvhao 1 month ago
parent
commit
4e70f0319c

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

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

+ 1 - 1
template/erp/returngoods.html

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

+ 1 - 0
template/erp/returngoods_add.html

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