ソースを参照

在数据字典 添加核对提交订单的字段

lvhao 5 ヶ月 前
コミット
18e77f0825

+ 10 - 0
core/CoreApp/controllers/Typeclass.php

@@ -202,6 +202,11 @@ class Typeclass extends Start_Controller {
 				}
 				$post['bm'] = substr(strval($bm[0]['bm']+1+$num),1,3);
 			}
+			if($post['is_check'] == 1){
+				$post['is_check'] = 1;
+			}else{
+				$post['is_check'] = 0;
+			}
 			if($this->typeclass->insert($post))
         	{
          		echo json_encode(array('msg'=>'添加成功','success'=>true));exit;
@@ -251,6 +256,11 @@ class Typeclass extends Start_Controller {
 			}
 			$post['time'] = time();
 			$post['zh'] = str_replace(array('(',')'),array('(',')'),$post['zh']);
+			if($post['is_check'] == 1){
+				$post['is_check'] = 1;
+			}else{
+				$post['is_check'] = 0;
+			}
 			if($this->typeclass->save($post,$id))
         	{
          		echo json_encode(array('msg'=>'修改成功','success'=>true));exit;

+ 7 - 0
template/erp/typeclass_add.html

@@ -70,6 +70,13 @@
 {/loop}
 </select>
 </li>
+<li>
+    <em>提交订单核对:</em>
+    <select name="is_check" class="select class">
+    <option value="0">不</option>
+    <option value="1">是</option>
+    </select>
+</li>
 
 <div style="clear:both;"></div>
 </ul>

+ 7 - 1
template/erp/typeclass_edit.html

@@ -75,7 +75,13 @@
 {/loop}
 </select>
 </li>
-
+<li>
+    <em>提交订单核对:</em>
+    <select name="is_check" class="select class">
+    <option value="0">不</option>
+    <option value="1">是</option>
+    </select>
+</li>
 <div style="clear:both;"></div>
 </ul>
 <input type="hidden" name="id" value="{$typeclass['id']}" />