Browse Source

提交客户下单加急

lvhao 4 months ago
parent
commit
b43f4640e8
2 changed files with 27 additions and 1 deletions
  1. 1 0
      core/CoreApp/controllers/Customer.php
  2. 26 1
      template/erp/customer_mdedit.html

+ 1 - 0
core/CoreApp/controllers/Customer.php

@@ -1386,6 +1386,7 @@ class Customer extends Start_Controller {
 			//查询净重结束
 					$cusnum = $this->customer->read($customerid);
 					$this->customer->save(array('num'=>$cusnum['num']+1,'time'=>$post['buytime']),$customerid);
+					unset($post['id']);
 					$this->fullorder->insert($post);
 					echo json_encode(array('msg'=>'下单成功','success'=>true));exit;	
 		}

+ 26 - 1
template/erp/customer_mdedit.html

@@ -1,4 +1,16 @@
 {Template header}
+
+<style>
+.isjiaji{
+	color:red;
+	font-size:20px;
+	font-weight: bold;
+	padding:10px
+}
+.isjiaji_hid{
+	display: none;
+}
+</style>
 <body>
 <div class="warp">
 <div class="packing">
@@ -161,7 +173,16 @@
 <em>仓库品名:</em>
 <textarea class="must" name="shipremarks"></textarea>
 </li>
-
+<li class="length remark">
+	<em>是否加急:</em>
+	<select id="is_jiaji_id" name="is_jiaji" class="select" >
+	<option value="0" selected="selected">否</option>
+	<option value="1" >是</option>
+	</select>
+	
+	<span id="isjiaji_flag" class="isjiaji  {if $fullorderamz['is_jiaji'] == 0} isjiaji_hid{/if}">*</span>
+	
+</li>
 <li>
 <em>Bill Name:</em>
 <input name="bname" class="must" value="{$customer['name']}" type="text">
@@ -529,6 +550,10 @@ window.parent.window2(t,h);
 		 $('.fullorderdata').click();
 	}
 });
+
+$("#is_jiaji_id").on('change',function(){
+	$("#isjiaji_flag").toggle()
+});
 </script>
 <script type="text/javascript" src="{$theme}js/time.js"></script>
 <script src="{$theme}js/fullorder-addedit.js?v=202309060001"></script>