Bladeren bron

修改erp独立站订单 输入申报价的bug

lvhao 7 maanden geleden
bovenliggende
commit
14771f1de6
1 gewijzigde bestanden met toevoegingen van 9 en 0 verwijderingen
  1. 9 0
      core/CoreApp/controllers/Fullorder.php

+ 9 - 0
core/CoreApp/controllers/Fullorder.php

@@ -907,6 +907,15 @@ class Fullorder extends Start_Controller {
 		$post = $this->input->post(NULL, TRUE);
 		if(isset($post['id']))
 		{
+			$dtsbjz = $this->input->post('dtsbjz',true);
+			$ts = $this->input->post('ts',true);
+			$dtsbjz = sprintf("%.2f",$dtsbjz);
+			$total_sbjz = $dtsbjz*$ts;
+			$tmp_zsbjz = $this->input->post('zsbjz',true);
+			$tmp_zsbjz = sprintf("%.2f",$tmp_zsbjz);
+			if($tmp_zsbjz*1 != $total_sbjz){
+				echo json_encode(array('msg'=>'单条申报价为2为小数!','success'=>false));exit;
+			}
 			$id = $this->input->post('id',true);
 			$data = $this->fullorder->read($id);
 			$post['type'] = $this->input->post('warehouse',true);