From 05481d61976d5eb3cfb8ef93b77a3fb0a74c9bd6 Mon Sep 17 00:00:00 2001 From: 10994015 Date: Tue, 12 Mar 2024 10:47:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BF=9D=E9=A4=8A=E5=83=B9?= =?UTF-8?q?=E5=AF=A9=E7=B0=BD=E6=A0=B8=E7=95=AB=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wms/cont/api/postFlow.php | 3 +- wms/cont/js/pricereviewAlpine.js | 9 +++ wms/cont/pricereviewCheck.php | 124 ++++++++++++++++++++++++++++++- wms/mkt/api/postFlow.php | 3 +- wms/mkt/pricereviewCheck.php | 2 +- 5 files changed, 137 insertions(+), 4 deletions(-) diff --git a/wms/cont/api/postFlow.php b/wms/cont/api/postFlow.php index 554974a9..df762a62 100644 --- a/wms/cont/api/postFlow.php +++ b/wms/cont/api/postFlow.php @@ -7,7 +7,8 @@ function createFlow($mid, $current_assigner, $flow_code, $ekind, $form_key=null) $system_id = "prm"; if($ekind == "新梯") $flow_id = "prm01"; if($ekind == "汰改") $flow_id = "prm02"; - if($ekind == "保養") $flow_id = "prm03"; + if($ekind == "修理") $flow_id = "prm03"; + if($ekind == "保養") $flow_id = "prm04"; if($form_key == null){ $sql_str = "SELECT appwms.nextval('form_key') form_key"; diff --git a/wms/cont/js/pricereviewAlpine.js b/wms/cont/js/pricereviewAlpine.js index 03423d76..14d81040 100644 --- a/wms/cont/js/pricereviewAlpine.js +++ b/wms/cont/js/pricereviewAlpine.js @@ -408,4 +408,13 @@ const pricereviewCreate = ()=>{ return res.data ; }, } +} + +const pricereviewCheck = ()=>{ + return { + init(){ + console.log(123); + }, + elevators: elevators, + } } \ No newline at end of file diff --git a/wms/cont/pricereviewCheck.php b/wms/cont/pricereviewCheck.php index 2225044c..4e0fc38c 100644 --- a/wms/cont/pricereviewCheck.php +++ b/wms/cont/pricereviewCheck.php @@ -1,4 +1,126 @@ prepare($sql_str); + $stmt->bindParam(':form_key', $form_key); + $stmt->execute(); + $flow = $stmt->fetch(PDO::FETCH_ASSOC); + $apply_key = $flow['form_id']; + +} +if(!isset($_GET['apply_key']) && !isset($_GET['form_key'])){ + echo "找不到此紀錄。"; + exit; +} + +$sql_str = "SELECT * FROM con_maintance_examine_apply WHERE apply_key = :apply_key ORDER BY create_at DESC LIMIT 1"; +$stmt = $conn->prepare($sql_str); +$stmt->bindParam(':apply_key', $apply_key); +$stmt->execute(); +$contract = $stmt->fetch(PDO::FETCH_ASSOC); +if(!$contract){ + echo "找不到此紀錄!"; + exit; +} + +$sql_str = "SELECT * FROM con_maintance_examine_clear WHERE (apply_key, cmstatus) = (:apply_key, 'Y') ORDER BY created_at ASC"; +$stmt = $conn->prepare($sql_str); +$stmt->bindParam(':apply_key', $apply_key); +$stmt->execute(); +$elevators = $stmt->fetchAll(PDO::FETCH_ASSOC); + +$permissions = false; +//開啟工務權限 +if($user_id == "M0174" || $user_id == "M0008" || $user_id == "M0012"){ + $permissions = true; +} + +?> + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
整機單價業務部作業區
項次規格單價(月)月數總價業務部MI售價(月)利潤利潤率(%)
小計
+
+
+ + \ No newline at end of file diff --git a/wms/mkt/api/postFlow.php b/wms/mkt/api/postFlow.php index 10fbeaf0..736049f5 100644 --- a/wms/mkt/api/postFlow.php +++ b/wms/mkt/api/postFlow.php @@ -7,7 +7,8 @@ function createFlow($mid, $current_assigner, $flow_code, $ekind, $form_key=null) $system_id = "prm"; if($ekind == "新梯") $flow_id = "prm01"; if($ekind == "汰改") $flow_id = "prm02"; - if($ekind == "保養") $flow_id = "prm03"; + if($ekind == "修理") $flow_id = "prm03"; + if($ekind == "保養") $flow_id = "prm04"; if($form_key == null){ $sql_str = "SELECT appwms.nextval('form_key') form_key"; diff --git a/wms/mkt/pricereviewCheck.php b/wms/mkt/pricereviewCheck.php index 48c64625..e2824703 100644 --- a/wms/mkt/pricereviewCheck.php +++ b/wms/mkt/pricereviewCheck.php @@ -269,7 +269,7 @@ function getSignerName($signer){
- +
卷號