From 7873a6e151779ae705f5721cfc25529b78e7d671 Mon Sep 17 00:00:00 2001 From: 10994015 Date: Thu, 29 Feb 2024 01:13:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=83=B9=E5=AF=A9=E7=B3=BB=E7=B5=B1=E9=98=B2?= =?UTF-8?q?=E5=91=86=E5=8A=A0=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wms/mkt/assets/js/pricereviewAlpine.js | 67 +- wms/mkt/css/pricereview.css | 12 +- wms/mkt/css/pricereview.css.map | 2 +- wms/mkt/css/pricereview.scss | 13 +- wms/mkt/pricereviewCreate.php | 570 +++--------------- wms/mkt/window-modal/demolishOptionModal.php | 47 ++ .../window-modal/demolishToElevatorModal.php | 36 ++ wms/mkt/window-modal/elevatorModal.php | 124 ++++ wms/mkt/window-modal/maintainOptionModal.php | 31 + .../window-modal/maintainToElevatorModal.php | 36 ++ wms/mkt/window-modal/optionModal.php | 59 ++ .../window-modal/optionToElevatorModal.php | 36 ++ wms/mkt/window-modal/otherOptionModal.php | 33 + wms/mkt/window-modal/otherToElevatorModal.php | 36 ++ 14 files changed, 582 insertions(+), 520 deletions(-) create mode 100644 wms/mkt/window-modal/demolishOptionModal.php create mode 100644 wms/mkt/window-modal/demolishToElevatorModal.php create mode 100644 wms/mkt/window-modal/elevatorModal.php create mode 100644 wms/mkt/window-modal/maintainOptionModal.php create mode 100644 wms/mkt/window-modal/maintainToElevatorModal.php create mode 100644 wms/mkt/window-modal/optionModal.php create mode 100644 wms/mkt/window-modal/optionToElevatorModal.php create mode 100644 wms/mkt/window-modal/otherOptionModal.php create mode 100644 wms/mkt/window-modal/otherToElevatorModal.php diff --git a/wms/mkt/assets/js/pricereviewAlpine.js b/wms/mkt/assets/js/pricereviewAlpine.js index 01a41f77..637b3bf6 100644 --- a/wms/mkt/assets/js/pricereviewAlpine.js +++ b/wms/mkt/assets/js/pricereviewAlpine.js @@ -38,6 +38,17 @@ const pricereviewCreate = ()=>{ otherOptionKey: otherOptionKey, maintainOptionKey:1, demolishOptionKey: demolishOptionKey, + modalShow:{ + elevator:false, + option:false, + other:false, + maintain:false, + demolish:false, + optionToElevator:false, + otherToElevator:false, + maintainToElevator:false, + demolishToElevator:false, + }, modalElevatorInfo:{ spec:'', person:'', @@ -278,7 +289,8 @@ const pricereviewCreate = ()=>{ this.options.forEach(option=>{ option.selected = 0 }) - this.$refs.optionsModal.style.display = "block" + this.modalShow.option = true; + // this.$refs.optionsModal.style.display = "block" body.style.overflow = 'hidden' }, chkOptions(){ @@ -289,11 +301,13 @@ const pricereviewCreate = ()=>{ this.hideOptionsModal(); }, hideOptionsModal(){ - this.$refs.optionsModal.style.display = 'none'; + this.modalShow.option = false; + // this.$refs.optionsModal.style.display = 'none'; body.style.overflow = 'auto' }, hideToElevatorModal(){ - this.$refs.toElevatorModal.style.display = 'none'; + this.modalShow.optionToElevator = false; + // this.$refs.toElevatorModal.style.display = 'none'; body.style.overflow = 'auto' }, hideToOtherOptionElevatorModal(){ @@ -301,15 +315,18 @@ const pricereviewCreate = ()=>{ body.style.overflow = 'auto' }, hideToMaintainOptionElevatorModal(){ - this.$refs.toMaintainOptionElevatorModal.style.display = 'none'; + this.modalShow.maintainToElevator = false; + // this.$refs.toMaintainOptionElevatorModal.style.display = 'none'; body.style.overflow = 'auto' }, hideToDemolishOptionElevatorModal(){ - this.$refs.toDemolishOptionElevatorModal.style.display = 'none'; + this.modalShow.demolishToElevator = false; + // this.$refs.toDemolishOptionElevatorModal.style.display = 'none'; body.style.overflow = 'auto' }, hideCreateElevatorModal(){ - this.$refs.createElevatorModal.style.display = 'none'; + this.modalShow.elevator = false; + // this.$refs.createElevatorModal.style.display = 'none'; body.style.overflow = 'auto' this.modalElevatorInfo = { spec:'', @@ -324,31 +341,38 @@ const pricereviewCreate = ()=>{ }; }, hideCreateOtherOptionModal(){ - this.$refs.createOtherOptionModal.style.display = 'none'; + this.modalShow.other = false + // this.$refs.createOtherOptionModal.style.display = 'none'; body.style.overflow = 'auto' }, hideCreateMaintainModal(){ - this.$refs.createMaintainModal.style.display = 'none'; + this.modalShow.maintain = false; + // this.$refs.createMaintainModal.style.display = 'none'; body.style.overflow = 'auto' }, hideCreateDemolishModal(){ - this.$refs.createDemolishModal.style.display = 'none'; + this.modalShow.demolish = false; + // this.$refs.createDemolishModal.style.display = 'none'; body.style.overflow = 'auto' }, openCreateElevatorModal(){ - this.$refs.createElevatorModal.style.display = 'block'; + this.modalShow.elevator = true; + // this.$refs.createElevatorModal.style.display = 'block'; body.style.overflow = 'hidden' }, openCreateOtherOptionFn(){ - this.$refs.createOtherOptionModal.style.display = 'block'; + this.modalShow.other = true + // this.$refs.createOtherOptionModal.style.display = 'block'; body.style.overflow = 'hidden' }, openCreateMaintainModal(){ - this.$refs.createMaintainModal.style.display = 'block'; + this.modalShow.maintain = true; + // this.$refs.createMaintainModal.style.display = 'block'; body.style.overflow = 'hidden' }, openCreateDemolishOptionModal(){ - this.$refs.createDemolishModal.style.display = 'block'; + this.modalShow.demolish = true; + // this.$refs.createDemolishModal.style.display = 'block'; body.style.overflow = 'hidden' }, totalElevatorsPrice(){ @@ -487,7 +511,8 @@ const pricereviewCreate = ()=>{ }) } }) - this.$refs.toElevatorModal.style.display = 'block'; + this.modalShow.optionToElevator = true; + // this.$refs.toElevatorModal.style.display = 'block'; body.style.overflow = 'hidden' }, addOtherOptionToElevator(id){ @@ -712,8 +737,8 @@ const pricereviewCreate = ()=>{ }) } }) - - this.$refs.toMaintainOptionElevatorModal.style.display = 'block'; + this.modalShow.maintainToElevator = true; + // this.$refs.toMaintainOptionElevatorModal.style.display = 'block'; body.style.overflow = 'hidden' }, addDemolishOptionToElevator(id){ @@ -738,8 +763,8 @@ const pricereviewCreate = ()=>{ }) } }) - - this.$refs.toDemolishOptionElevatorModal.style.display = 'block'; + this.modalShow.demolishToElevator = true; + // this.$refs.toDemolishOptionElevatorModal.style.display = 'block'; body.style.overflow = 'hidden' }, removeMaintainOption(id){ @@ -776,13 +801,13 @@ const pricereviewCreate = ()=>{ for(let i=0;ialert('此單正在審核中!');window.history.go(-1);"; - exit; + // echo ""; + // exit; } $hope_status = [ 'A'=>'有望簽約(已報價)', @@ -54,8 +56,8 @@ $stmt->execute(); $hope_customer = $stmt->fetch(PDO::FETCH_ASSOC); if($user_id !== $hope_customer['salesman'] && $user_id !== "M0174"){ - echo ""; - exit; + // echo ""; + // exit; } if($hope_customer['vol_no']=="" || $hope_customer['customer']=="" || @@ -71,8 +73,8 @@ $hope_customer['status']=="" || $hope_customer['address']=="" || $hope_customer['case_name']=="" ){ - echo ""; - exit; + // echo ""; + // exit; } $hope_elevators = []; $total_spec = 0; @@ -349,15 +351,6 @@ if($main){ ], ]; } - - - - - - - - - function convertDateTimeFormat($dateTimeStr) { // 使用 DateTime::createFromFormat 解析给定格式的日期时间 $date = DateTime::createFromFormat('Y-m-d H:i:s', $dateTimeStr); @@ -378,444 +371,19 @@ function convertDateTimeFormat($dateTimeStr) {
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
+
@@ -877,37 +445,7 @@ function convertDateTimeFormat($dateTimeStr) {
-
-

整機單價

@@ -950,6 +488,7 @@ function convertDateTimeFormat($dateTimeStr) { + 請選擇規格 + 請填入人乘 + 載重需大於0 + 請輸入正整數 + 請選擇速度 + 請選擇開門方式 - 請填寫正確規格 + + 請填寫正確規格 + + + + 請輸入正整數 - + 售價需大於0 @@ -1053,13 +602,17 @@ function convertDateTimeFormat($dateTimeStr) { - + + + 請輸入正整數 + + 尚未選擇電梯
@@ -1099,14 +652,21 @@ function convertDateTimeFormat($dateTimeStr) {