From a52e631f700564595ff03c216704dcfd5d2723e6 Mon Sep 17 00:00:00 2001 From: 10994015 Date: Tue, 27 Feb 2024 17:59:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=89=E6=9C=9B=E5=AE=A2=E6=88=B6=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wms/mkt/pricereviewCheck.php | 2 +- wms/mkt/pricereviewCreate.php | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/wms/mkt/pricereviewCheck.php b/wms/mkt/pricereviewCheck.php index fb1ed442..27e17c01 100644 --- a/wms/mkt/pricereviewCheck.php +++ b/wms/mkt/pricereviewCheck.php @@ -7,7 +7,7 @@ if(!isset($_GET['id'])){ } $id = $_GET['id']; -$sql_str = "SELECT pricereview_main.*, account.name as person_name FROM pricereview_main LEFT JOIN account ON pricereview_main.person = account.accountid WHERE pricereview_main.id = :id"; +$sql_str = "SELECT pricereview_main.*, account.name as person_name FROM pricereview_main LEFT JOIN account ON pricereview_main.person = account.accountid WHERE pricereview_main.id = :id AND pricereview_main.status <> 'D'"; $stmt = $conn->prepare($sql_str); $stmt->bindParam(':id', $id); $stmt->execute(); diff --git a/wms/mkt/pricereviewCreate.php b/wms/mkt/pricereviewCreate.php index 9f22c448..e18ad0e6 100644 --- a/wms/mkt/pricereviewCreate.php +++ b/wms/mkt/pricereviewCreate.php @@ -57,7 +57,23 @@ if($user_id !== $hope_customer['salesman'] && $user_id !== "M0174"){ echo ""; exit; } - +if($hope_customer['vol_no']=="" || +$hope_customer['customer']=="" || +$hope_customer['manager']=="" || +$hope_customer['uscc']=="" || +$hope_customer['source']=="" || +$hope_customer['linkman']=="" || +$hope_customer['lm_tel']=="" || +$hope_customer['salesman']=="" || +$hope_customer['num']=="" || +$hope_customer['pre_order_date']=="" || +$hope_customer['status']=="" || +$hope_customer['address']=="" || +$hope_customer['case_name']=="" +){ + echo ""; + exit; +} $hope_elevators = []; $total_spec = 0; $selectedOptions = [];