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) {