From 1d4904e60aa794bed5fd84e15f3c13a4dfa296da Mon Sep 17 00:00:00 2001 From: 10994015 Date: Wed, 13 Mar 2024 18:11:26 +0800 Subject: [PATCH] =?UTF-8?q?select3=20=E5=81=9A=E5=88=B0=E4=B8=80=E5=8D=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wms/chengyanUI/select3.css | 106 ++++++++++++++++++++++ wms/chengyanUI/select3.css.map | 1 + wms/chengyanUI/select3.php | 88 ++++++++++++++++++ wms/chengyanUI/select3.scss | 110 +++++++++++++++++++++++ wms/cont/api/postElevatorPricereview.php | 2 +- 5 files changed, 306 insertions(+), 1 deletion(-) create mode 100644 wms/chengyanUI/select3.css create mode 100644 wms/chengyanUI/select3.css.map create mode 100644 wms/chengyanUI/select3.php create mode 100644 wms/chengyanUI/select3.scss diff --git a/wms/chengyanUI/select3.css b/wms/chengyanUI/select3.css new file mode 100644 index 00000000..fa4dd032 --- /dev/null +++ b/wms/chengyanUI/select3.css @@ -0,0 +1,106 @@ +body { + background-color: #aaa; + padding: 150px; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box !important; +} + +.select3 { + position: relative; +} +.select3 > .input { + width: 250px; + padding: 12px 15px; + border-radius: 10px; + background-color: #fff; + font-size: 13px; + cursor: pointer; + position: relative; +} +.select3 > .input > i { + position: absolute; + top: 50%; + right: 8px; + transform: translateY(-50%); + font-size: 12px; +} +.select3 > .select { + display: none; + position: absolute; + top: 44px; + left: 0; + width: 250px; + padding: 16px 10px; + background-color: #fff; + border-radius: 10px; + box-sizing: border-box !important; + overflow: hidden; + animation: fadein 0.085s linear; +} +.select3 > .select > input[type=text] { + outline: none; + border: 1px #999 solid; + width: 100%; + border-radius: 4px; + height: 31px; + padding: 12px; + margin-bottom: 3px; +} +.select3 > .select > .options { + overflow-y: scroll; + max-height: 205px; + height: auto; +} +.select3 > .select > .options::-webkit-scrollbar { + width: 7px; +} +.select3 > .select > .options::-webkit-scrollbar-track { + background-color: transparent; + background-size: 10px 10px; +} +.select3 > .select > .options::-webkit-scrollbar-thumb { + background: #aaa; + border-radius: 5px; +} +.select3 > .select > .options > label { + width: 100%; + display: block; + padding: 10px; + cursor: pointer; + border-bottom: 1px #ccc solid; + transition: 0.2s; +} +.select3 > .select > .options > label:hover { + transform: scale(1.05); +} +.select3 > .select > .options > label.check { + background-color: #5BC0DE; + color: #fff; + animation: check 0.1s linear; +} + +@keyframes fadein { + 0% { + opacity: 0; + } + 100% { + opacity: 1; + } +} +@keyframes check { + 0% { + transform: translateX(0px); + background-color: rgba(91, 192, 222, 0); + } + 0% { + transform: translateX(180px); + } + 100% { + transform: translateX(0px); + background-color: rgb(91, 192, 222); + } +}/*# sourceMappingURL=select3.css.map */ \ No newline at end of file diff --git a/wms/chengyanUI/select3.css.map b/wms/chengyanUI/select3.css.map new file mode 100644 index 00000000..a49de8d4 --- /dev/null +++ b/wms/chengyanUI/select3.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["select3.scss","select3.css"],"names":[],"mappings":"AAAA;EACI,sBAAA;EACA,cAAA;ACCJ;;ADCA;EACI,SAAA;EACA,UAAA;EACA,iCAAA;ACEJ;;ADAA;EACI,kBAAA;ACGJ;ADFI;EACI,YAAA;EACA,kBAAA;EACA,mBAAA;EACA,sBAAA;EAEA,eAAA;EACA,eAAA;EACA,kBAAA;ACGR;ADFQ;EACI,kBAAA;EACA,QAAA;EACA,UAAA;EACA,2BAAA;EACA,eAAA;ACIZ;ADDI;EACI,aAAA;EACA,kBAAA;EACA,SAAA;EACA,OAAA;EACA,YAAA;EACA,kBAAA;EACA,sBAAA;EACA,mBAAA;EACA,iCAAA;EACA,gBAAA;EACA,+BAAA;ACGR;ADFQ;EACI,aAAA;EACA,sBAAA;EACA,WAAA;EACA,kBAAA;EACA,YAAA;EACA,aAAA;EACC,kBAAA;ACIb;ADDQ;EACI,kBAAA;EACA,iBAAA;EACA,YAAA;ACGZ;ADFY;EACI,UAAA;ACIhB;ADFY;EACI,6BAAA;EACA,0BAAA;ACIhB;ADFY;EACI,gBAAA;EACA,kBAAA;ACIhB;ADAY;EACI,WAAA;EACA,cAAA;EACA,aAAA;EACA,eAAA;EACA,6BAAA;EACA,gBAAA;ACEhB;ADDgB;EACI,sBAAA;ACGpB;ADDgB;EACI,yBAAA;EACA,WAAA;EACA,4BAAA;ACGpB;;ADKA;EACI;IACI,UAAA;ECFN;EDIE;IACI,UAAA;ECFN;AACF;ADKA;EACI;IACI,0BAAA;IACA,uCAAA;ECHN;EDKE;IACI,4BAAA;ECHN;EDKE;IACI,0BAAA;IACA,mCAAA;ECHN;AACF","file":"select3.css"} \ No newline at end of file diff --git a/wms/chengyanUI/select3.php b/wms/chengyanUI/select3.php new file mode 100644 index 00000000..e1be0a39 --- /dev/null +++ b/wms/chengyanUI/select3.php @@ -0,0 +1,88 @@ + + + +
+
+ 請選擇 + +
+
+ +
+ +
+
+
+ + \ No newline at end of file diff --git a/wms/chengyanUI/select3.scss b/wms/chengyanUI/select3.scss new file mode 100644 index 00000000..d4edf46b --- /dev/null +++ b/wms/chengyanUI/select3.scss @@ -0,0 +1,110 @@ +body{ + background-color: #aaa; + padding: 150px; +} +*{ + margin:0; + padding: 0; + box-sizing: border-box !important; +} +.select3{ + position: relative; + >.input { + width: 250px; + padding: 12px 15px; + border-radius: 10px; + background-color: #fff; + + font-size: 13px; + cursor: pointer; + position: relative; + >i{ + position: absolute; + top: 50%; + right:8px; + transform: translateY(-50%); + font-size: 12px; + } + } + >.select{ + display: none; + position: absolute; + top: 44px;; + left:0; + width:250px; + padding: 16px 10px; + background-color: #fff; + border-radius: 10px; + box-sizing: border-box !important; + overflow: hidden; + animation: fadein .085s linear; + >input[type='text']{ + outline: none; + border:1px #999 solid; + width: 100%; + border-radius: 4px; + height: 31px; + padding: 12px ; + margin-bottom: 3px; + + } + >.options{ + overflow-y: scroll; + max-height: 205px; + height:auto; + &::-webkit-scrollbar { + width: 7px; + } + &::-webkit-scrollbar-track { + background-color: transparent; + background-size: 10px 10px; + } + &::-webkit-scrollbar-thumb { + background: #aaa; + border-radius: 5px; + } + + + >label{ + width:100%; + display: block; + padding: 10px; + cursor: pointer; + border-bottom: 1px #ccc solid; + transition: .2s; + &:hover{ + transform: scale(1.05); + } + &.check{ + background-color:#5BC0DE; + color:#fff; + animation: check .1s linear; + + } + } + } + + } +} +@keyframes fadein { + 0%{ + opacity: 0; + } + 100%{ + opacity: 1; + } +} + +@keyframes check { + 0%{ + transform: translateX(0px); + background-color:rgba(91, 192, 222,0); + } + 0%{ + transform: translateX(180px); + } + 100%{ + transform: translateX(0px); + background-color:rgba(91, 192, 222,1); + } +} \ No newline at end of file diff --git a/wms/cont/api/postElevatorPricereview.php b/wms/cont/api/postElevatorPricereview.php index 71d0ffab..a02de093 100644 --- a/wms/cont/api/postElevatorPricereview.php +++ b/wms/cont/api/postElevatorPricereview.php @@ -165,7 +165,7 @@ try{ VALUES (:apply_key, :item_no, :register_code, :elevator_brand, :elevator_kind, :spec, :weight, :speed, :stop, :floors, :persons, :elevator_num, :useful_years, :last_check_date, :speed_governors_check_expense, :maintain_times, :is_m1_bundle, :maintain_months, :maintain_period, :maintain_method, :stand_price, :contract_price, :sold_price, :commission_expense, :management_expense, :annual_survey_expense, :service_expense, :cmstatus, :updated_at, :creater, :created_at) "; foreach($elevators as $elevator){ - if(empty($elevator['permitNumber'])) $register_code = "A"; + $register_code = (empty($elevator['permitNumber'])) ? "A" : $elevator['permitNumber']; if($elevator['spec'] == "MAE100") $elevator_kind = "A"; if($elevator['spec'] == "MAF100") $elevator_kind = "B";