@ -20,6 +20,7 @@ $facilityno = $createFacilityNo->makeTFacilityNo("T", 'X', 5);
?>
?>
< link rel = "stylesheet" href = "./styles/style.css" >
< link rel = "stylesheet" href = "./styles/style.css" >
< link rel = "stylesheet" href = "semantic/dist/semantic.min.css" >
< link rel = "stylesheet" href = "semantic/dist/semantic.min.css" >
< link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity = "sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin = "anonymous" referrerpolicy = "no-referrer" / >
< script defer src = "https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js" > < / script >
< script defer src = "https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js" > < / script >
< script src = "https://cdnjs.cloudflare.com/ajax/libs/axios/1.5.0/axios.min.js" integrity = "sha512-aoTNnqZcT8B4AmeCFmiSnDlc4Nj/KPaZyB5G7JnOnUEkdNpCZs1LCankiYi01sLTyWy+m2P+W4XM+BuQ3Q4/Dg==" crossorigin = "anonymous" referrerpolicy = "no-referrer" > < / script >
< script src = "https://cdnjs.cloudflare.com/ajax/libs/axios/1.5.0/axios.min.js" integrity = "sha512-aoTNnqZcT8B4AmeCFmiSnDlc4Nj/KPaZyB5G7JnOnUEkdNpCZs1LCankiYi01sLTyWy+m2P+W4XM+BuQ3Q4/Dg==" crossorigin = "anonymous" referrerpolicy = "no-referrer" > < / script >
@ -33,11 +34,14 @@ $facilityno = $createFacilityNo->makeTFacilityNo("T", 'X', 5);
},
},
cities:[],
cities:[],
data:{
data:{
< < < < < < < HEAD
contractno:'Q23080026',
contractno:'Q23080026',
=======
contractno:'B23100060',
>>>>>>> yan
total_price:'', //合約總價
total_price:'', //合約總價
vat:'', //統一編號
vat:'', //統一編號
mtype:'A', //維修型態
mtype:'A', //維修型態
opendoor:'', //開門方式
phone:'', //客戶電話
phone:'', //客戶電話
email:'', //Email
email:'', //Email
mworker:'', //保養員
mworker:'', //保養員
@ -54,6 +58,7 @@ $facilityno = $createFacilityNo->makeTFacilityNo("T", 'X', 5);
partyAphone:'', //業務聯繫人電話
partyAphone:'', //業務聯繫人電話
partyAemail:'', //業務聯繫人email
partyAemail:'', //業務聯繫人email
files:[], //附件檔案
files:[], //附件檔案
< < < < < < < HEAD
spec:'', //機種
spec:'', //機種
brand:'', //廠牌
brand:'', //廠牌
weight: '', //載重
weight: '', //載重
@ -67,6 +72,11 @@ $facilityno = $createFacilityNo->makeTFacilityNo("T", 'X', 5);
num:'', //電梯數量
num:'', //電梯數量
latitude:'', //緯度
latitude:'', //緯度
longitude:'', //經度
longitude:'', //經度
=======
num:'', //電梯數量
disabled:false, //資料庫是否有電梯數量資料
elevators:[], //機種、載重、人乘、樓停、樓層、速度、緯度、經度、開門方式、保養別、廠牌、竣檢日、許可證日期
>>>>>>> yan
},
},
customize:false,
customize:false,
step:1,
step:1,
@ -78,6 +88,14 @@ $facilityno = $createFacilityNo->makeTFacilityNo("T", 'X', 5);
this.isLoading = true
this.isLoading = true
this.getContractDate();
this.getContractDate();
}else if(this.step == 2){
}else if(this.step == 2){
< < < < < < < HEAD
=======
if(this.data.num < = 0) return alert('請填寫電梯數量!')
if(!this.data.disabled){
this.createElevator();
}
>>>>>>> yan
this.step = 3
this.step = 3
}
}
},
},
@ -91,8 +109,37 @@ $facilityno = $createFacilityNo->makeTFacilityNo("T", 'X', 5);
this.step = 3
this.step = 3
}
}
},
},
< < < < < < < HEAD
getContractDate(){
getContractDate(){
axios.get('./api/getContractData.php?contractno=' + this.data.contractno).then(res=>{
axios.get('./api/getContractData.php?contractno=' + this.data.contractno).then(res=>{
=======
createElevator(){
for(let i=0;i< this.data.num ; i + + ) {
this.data.elevators.push({
spec:'', //規格
weight:'', //載重
speed:'', //速度
persons:'', //人乘
stop:'', //樓停
floors:'', //樓層
latitude:'', //緯度
longitude:'', //經度
brand:'', //廠牌
opendoor:'', //開門方式
maintainance:'', //保養別
takecertificatedate:'', //竣檢日
licensedate:'', //許可證有效日期
})
}
},
getContractDate(){
axios.get('./api/getContractData.php?contractno=' + this.data.contractno).then(res=>{
if(!res.data){
this.step = 2
this.isLoading = false
return
}
>>>>>>> yan
if(!this.customize){
if(!this.customize){
console.log(res.data);
console.log(res.data);
this.data.total_price = res.data.sold_price
this.data.total_price = res.data.sold_price
@ -110,7 +157,14 @@ $facilityno = $createFacilityNo->makeTFacilityNo("T", 'X', 5);
this.data.numberoffloor = res.data.floors
this.data.numberoffloor = res.data.floors
this.data.speed = res.data.speed
this.data.speed = res.data.speed
this.data.takecertificatedate = res.data.contract_begin_date
this.data.takecertificatedate = res.data.contract_begin_date
this.data.num = res.data.num
this.data.disabled = (res.data.num > 0) ? true : false;
this.data.elevators = res.data.elevators
let cityIndex = this.data.address.indexOf('市');
let cityIndex = this.data.address.indexOf('市');
console.log(cityIndex);
if(cityIndex == -1) {
cityIndex = this.data.address.indexOf('縣');
}
if (cityIndex > 1) {
if (cityIndex > 1) {
// 獲取''市''前面的兩個字
// 獲取''市''前面的兩個字
let city = this.data.address.substring(cityIndex - 2, cityIndex + 1);
let city = this.data.address.substring(cityIndex - 2, cityIndex + 1);
@ -128,7 +182,11 @@ $facilityno = $createFacilityNo->makeTFacilityNo("T", 'X', 5);
},
},
preStepFn(){
preStepFn(){
if(this.step==2){
if(this.step==2){
< < < < < < < HEAD
if(confirm('回到上一頁會將本頁資料清空,確定返回嗎?')){
if(confirm('回到上一頁會將本頁資料清空,確定返回嗎?')){
=======
if(confirm('回到上一頁會將會初始化資料,確定返回嗎?')){
>>>>>>> yan
this.step = 1
this.step = 1
this.data.total_price = ''
this.data.total_price = ''
this.data.salesman = ''
this.data.salesman = ''
@ -146,6 +204,12 @@ $facilityno = $createFacilityNo->makeTFacilityNo("T", 'X', 5);
this.data.speed = ''
this.data.speed = ''
this.data.takecertificatedate = ''
this.data.takecertificatedate = ''
this.step = 1
this.step = 1
< < < < < < < HEAD
=======
this.data.num = ''
this.data.disabled = false
this.data.elevators = []
>>>>>>> yan
return;
return;
}
}
}else if(this.step == 3){
}else if(this.step == 3){
@ -159,7 +223,6 @@ $facilityno = $createFacilityNo->makeTFacilityNo("T", 'X', 5);
form.append('total_price', this.data.total_price);
form.append('total_price', this.data.total_price);
form.append('vat', this.data.vat);
form.append('vat', this.data.vat);
form.append('mtype', this.data.mtype);
form.append('mtype', this.data.mtype);
form.append('opendoor', this.data.opendoor);
form.append('phone', this.data.phone);
form.append('phone', this.data.phone);
form.append('email', this.data.email);
form.append('email', this.data.email);
form.append('mworker', this.data.mworker);
form.append('mworker', this.data.mworker);
@ -174,20 +237,14 @@ $facilityno = $createFacilityNo->makeTFacilityNo("T", 'X', 5);
form.append('partyAaddress', this.data.partyAaddress);
form.append('partyAaddress', this.data.partyAaddress);
form.append('partyAphone', this.data.partyAphone);
form.append('partyAphone', this.data.partyAphone);
form.append('partyAemail', this.data.partyAemail);
form.append('partyAemail', this.data.partyAemail);
form.append('spec', this.data.spec);
form.append('weight', this.data.weight);
form.append('numberofpassenger', this.data.numberofpassenger);
form.append('numberofstop', this.data.numberofstop);
form.append('numberoffloor', this.data.numberoffloor);
form.append('speed', this.data.speed);
form.append('takecertificatedate', this.data.takecertificatedate);
form.append('maintainance', this.data.maintainance);
form.append('licensedate', this.data.licensedate);
form.append('latitude', this.data.latitude);
form.append('longitude', this.data.longitude);
form.append('user_id', '<?php echo $user_id ; ?> ');
form.append('user_id', '<?php echo $user_id ; ?> ');
form.append('user_name', '<?php echo $user_name ; ?> ');
form.append('user_name', '<?php echo $user_name ; ?> ');
form.append('num', this.data.num);
form.append('num', this.data.num);
< < < < < < < HEAD
=======
console.log(this.data.elevators);
form.append('elevators', JSON.stringify(this.data.elevators));
>>>>>>> yan
// 如果有附件檔案,可以逐一加入
// 如果有附件檔案,可以逐一加入
for (var i = 0; i < this.data.files.length ; i + + ) {
for (var i = 0; i < this.data.files.length ; i + + ) {
@ -260,7 +317,11 @@ $facilityno = $createFacilityNo->makeTFacilityNo("T", 'X', 5);
< td style = "vertical-align: middle" > 立約人< / td >
< td style = "vertical-align: middle" > 立約人< / td >
< td >
< td >
< input type = "text" x-model = "data.customer" / >
< input type = "text" x-model = "data.customer" / >
< < < < < < < HEAD
< p class = "alerttext" x-show = "data.customer==''" > 未填寫< / p >
< p class = "alerttext" x-show = "data.customer==''" > 未填寫< / p >
=======
< p class = "alerttext" x-show = "data.customer==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
>>>>>>> yan
< / td >
< / td >
< td style = "vertical-align: middle" > 營業員< / td >
< td style = "vertical-align: middle" > 營業員< / td >
< td >
< td >
@ -270,30 +331,52 @@ $facilityno = $createFacilityNo->makeTFacilityNo("T", 'X', 5);
< option value = " <?php echo $person [ 'accountid' ] ?> " > <?php echo $person [ 'name' ] ?> </ option >
< option value = " <?php echo $person [ 'accountid' ] ?> " > <?php echo $person [ 'name' ] ?> </ option >
<?php } ?>
<?php } ?>
< / select >
< / select >
< < < < < < < HEAD
< p class = "alerttext" x-show = "data.salesman==''" > 未填寫< / p >
< p class = "alerttext" x-show = "data.salesman==''" > 未填寫< / p >
=======
< p class = "alerttext" x-show = "data.salesman==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
>>>>>>> yan
< / td >
< / td >
< td style = "vertical-align: middle" > 合約開始時間< / td >
< td style = "vertical-align: middle" > 合約開始時間< / td >
< td >
< td >
< input class = "form-control disabled_select" type = "date" name = "start_date" x-model = "data.contract_begin_date" >
< input class = "form-control disabled_select" type = "date" name = "start_date" x-model = "data.contract_begin_date" >
< < < < < < < HEAD
< p class = "alerttext" x-show = "data.contract_begin_date==''" > 未填寫< / p >
< p class = "alerttext" x-show = "data.contract_begin_date==''" > 未填寫< / p >
=======
< p class = "alerttext" x-show = "data.contract_begin_date==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
>>>>>>> yan
< / td >
< / td >
< td style = "vertical-align: middle" > 合約終止時間< / td >
< td style = "vertical-align: middle" > 合約終止時間< / td >
< td >
< td >
< input class = "form-control disabled_select" type = "date" name = "end_date" x-model = "data.contract_end_date" >
< input class = "form-control disabled_select" type = "date" name = "end_date" x-model = "data.contract_end_date" >
< < < < < < < HEAD
< p class = "alerttext" x-show = "data.contract_end_date==''" > 未填寫< / p >
< p class = "alerttext" x-show = "data.contract_end_date==''" > 未填寫< / p >
=======
< p class = "alerttext" x-show = "data.contract_end_date==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
>>>>>>> yan
< / td >
< / td >
< / tr >
< / tr >
< tr >
< tr >
< td style = "vertical-align: middle" > 電梯台數< / td >
< td style = "vertical-align: middle" > 電梯台數< / td >
< td >
< td >
< < < < < < < HEAD
< input class = "form-control disabled_select" type = "number" x-model = "data.num" >
< input class = "form-control disabled_select" type = "number" x-model = "data.num" >
< p class = "alerttext" x-show = "data.num==''" > 未填寫< / p >
< p class = "alerttext" x-show = "data.num==''" > 未填寫< / p >
=======
< input class = "form-control disabled_select" type = "number" x-model = "data.num" :disabled = "data.disabled" >
< p class = "alerttext" x-show = "data.num==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
< p class = "alerttext" x-show = "data.num==0 && data.num!=''" > < i class = "fa-solid fa-circle-xmark" > < / i > 電梯數量需大於0< / p >
>>>>>>> yan
< / td >
< / td >
< td style = "vertical-align: middle" > 統一編號/身分證< / td >
< td style = "vertical-align: middle" > 統一編號/身分證< / td >
< td >
< td >
< input class = "form-control disabled_select" type = "text" name = "uscc" x-model = "data.vat" >
< input class = "form-control disabled_select" type = "text" name = "uscc" x-model = "data.vat" >
< < < < < < < HEAD
< p class = "alerttext" x-show = "data.vat==''" > 未填寫< / p >
< p class = "alerttext" x-show = "data.vat==''" > 未填寫< / p >
=======
< p class = "alerttext" x-show = "data.vat==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
>>>>>>> yan
< / td >
< / td >
< td style = "vertical-align: middle" > 維修型態< / td >
< td style = "vertical-align: middle" > 維修型態< / td >
< td style = "vertical-align: middle" >
< td style = "vertical-align: middle" >
@ -301,6 +384,7 @@ $facilityno = $createFacilityNo->makeTFacilityNo("T", 'X', 5);
< option value = "" > 選擇維修型態< / option >
< option value = "" > 選擇維修型態< / option >
< option value = "A" > 定期保養< / option >
< option value = "A" > 定期保養< / option >
< / select >
< / select >
< < < < < < < HEAD
< p class = "alerttext" x-show = "data.mtype==''" > 未填寫< / p >
< p class = "alerttext" x-show = "data.mtype==''" > 未填寫< / p >
< / td >
< / td >
< td style = "vertical-align: middle" >
< td style = "vertical-align: middle" >
@ -321,17 +405,31 @@ $facilityno = $createFacilityNo->makeTFacilityNo("T", 'X', 5);
< / select >
< / select >
< p class = "alerttext" x-show = "data.opendoor==''" > 未填寫< / p >
< p class = "alerttext" x-show = "data.opendoor==''" > 未填寫< / p >
< / td >
< / td >
=======
< p class = "alerttext" x-show = "data.mtype==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
< / td >
< td > < / td >
< td > < / td >
>>>>>>> yan
< / tr >
< / tr >
< tr >
< tr >
< td style = "vertical-align: middle" > 客戶電話< / td >
< td style = "vertical-align: middle" > 客戶電話< / td >
< td >
< td >
< input class = "form-control disabled_select" type = "text" name = "tel" x-model = "data.phone" >
< input class = "form-control disabled_select" type = "text" name = "tel" x-model = "data.phone" >
< < < < < < < HEAD
< p class = "alerttext" x-show = "data.phone==''" > 未填寫< / p >
< p class = "alerttext" x-show = "data.phone==''" > 未填寫< / p >
=======
< p class = "alerttext" x-show = "data.phone==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
>>>>>>> yan
< / td >
< / td >
< td style = "vertical-align: middle" > Email< / td >
< td style = "vertical-align: middle" > Email< / td >
< td style = "vertical-align: middle" >
< td style = "vertical-align: middle" >
< input class = "form-control disabled_select" type = "text" name = "email" x-model = "data.email" >
< input class = "form-control disabled_select" type = "text" name = "email" x-model = "data.email" >
< < < < < < < HEAD
< p class = "alerttext" x-show = "data.email==''" > 未填寫< / p >
< p class = "alerttext" x-show = "data.email==''" > 未填寫< / p >
=======
< p class = "alerttext" x-show = "data.email==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
>>>>>>> yan
< / td >
< / td >
< td style = "vertical-align: middle" > 保養員< / td >
< td style = "vertical-align: middle" > 保養員< / td >
< td >
< td >
@ -341,7 +439,11 @@ $facilityno = $createFacilityNo->makeTFacilityNo("T", 'X', 5);
< option value = " <?php echo $worker [ 'accountid' ]; ?> " > <?php echo $worker [ 'name' ] ?> </ option >
< option value = " <?php echo $worker [ 'accountid' ]; ?> " > <?php echo $worker [ 'name' ] ?> </ option >
<?php } ?>
<?php } ?>
< / select >
< / select >
< < < < < < < HEAD
< p class = "alerttext" x-show = "data.mworker==''" > 未填寫< / p >
< p class = "alerttext" x-show = "data.mworker==''" > 未填寫< / p >
=======
< p class = "alerttext" x-show = "data.mworker==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
>>>>>>> yan
< / td >
< / td >
< td style = "vertical-align: middle" > 保養頻率< / td >
< td style = "vertical-align: middle" > 保養頻率< / td >
< td >
< td >
@ -350,28 +452,45 @@ $facilityno = $createFacilityNo->makeTFacilityNo("T", 'X', 5);
< option value = "bw" > 雙週保< / option >
< option value = "bw" > 雙週保< / option >
< option value = "em" > 月保< / option >
< option value = "em" > 月保< / option >
< / select >
< / select >
< < < < < < < HEAD
< p class = "alerttext" x-show = "data.mcycle==''" > 未填寫< / p >
< p class = "alerttext" x-show = "data.mcycle==''" > 未填寫< / p >
=======
< p class = "alerttext" x-show = "data.mcycle==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
>>>>>>> yan
< / td >
< / td >
< / tr >
< / tr >
< tr >
< tr >
< td style = "vertical-align: middle" > 業務聯繫人< / td >
< td style = "vertical-align: middle" > 業務聯繫人< / td >
< td >
< td >
< input type = "text" x-model = "data.partyA" name = "partyA" / >
< input type = "text" x-model = "data.partyA" name = "partyA" / >
< < < < < < < HEAD
< p class = "alerttext" x-show = "data.partyA==''" > 未填寫< / p >
< p class = "alerttext" x-show = "data.partyA==''" > 未填寫< / p >
=======
< p class = "alerttext" x-show = "data.partyA==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
>>>>>>> yan
< / td >
< / td >
< td style = "vertical-align: middle" > 業務聯繫人地址< / td >
< td style = "vertical-align: middle" > 業務聯繫人地址< / td >
< td >
< td >
< input class = "form-control disabled_select" x-model = "data.partyAaddress" type = "text" name = "contractaddress" value = "" >
< input class = "form-control disabled_select" x-model = "data.partyAaddress" type = "text" name = "contractaddress" value = "" >
< < < < < < < HEAD
< p class = "alerttext" x-show = "data.partyAaddress==''" > 未填寫< / p >
< p class = "alerttext" x-show = "data.partyAaddress==''" > 未填寫< / p >
=======
< p class = "alerttext" x-show = "data.partyAaddress==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
>>>>>>> yan
< / td >
< / td >
< td style = "vertical-align: middle" > 業務聯繫人電話< / td >
< td style = "vertical-align: middle" > 業務聯繫人電話< / td >
< td >
< td >
< input class = "form-control disabled_select" type = "text" name = "contracttel" x-model = "data.partyAphone" >
< input class = "form-control disabled_select" type = "text" name = "contracttel" x-model = "data.partyAphone" >
< < < < < < < HEAD
< p class = "alerttext" x-show = "data.partyAphone==''" > 未填寫< / p >
< p class = "alerttext" x-show = "data.partyAphone==''" > 未填寫< / p >
=======
< p class = "alerttext" x-show = "data.partyAphone==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
>>>>>>> yan
< / td >
< / td >
< td style = "vertical-align: middle" > 業務聯繫人Email< / td >
< td style = "vertical-align: middle" > 業務聯繫人Email< / td >
< td >
< td >
< input class = "form-control disabled_select" type = "text" name = "contracttel" x-model = "data.partyAemail" >
< input class = "form-control disabled_select" type = "text" name = "contracttel" x-model = "data.partyAemail" >
< < < < < < < HEAD
< p class = "alerttext" x-show = "data.partyAemail==''" > 未填寫< / p >
< p class = "alerttext" x-show = "data.partyAemail==''" > 未填寫< / p >
< / td >
< / td >
< / tr >
< / tr >
@ -486,6 +605,157 @@ $facilityno = $createFacilityNo->makeTFacilityNo("T", 'X', 5);
< / td >
< / td >
< / tr >
< / tr >
< / tbody >
< / tbody >
=======
< p class = "alerttext" x-show = "data.partyAemail==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
< / td >
< / tr >
< tr >
< td style = "vertical-align: middle" > 區域< / td >
< td >
< select class = "ui search dropdown" x-model = "data.area" >
< option value = "" > 選擇區域< / option >
< template x-for = "city in cities" :key = "city.code" >
< option x-bind:selected = "city.name === data.area" x-text = "city.name" :value = "city.name" > < / option >
< / template >
< / select >
< p class = "alerttext" x-show = "data.area==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
< / td >
< td style = "vertical-align: middle" > 詳細地址< / td >
< td colspan = "3" >
< input type = "text" x-model = "data.address" / >
< p class = "alerttext" x-show = "data.address==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
< / td >
< td style = "vertical-align: middle" > 附件< / td >
< td >
< input type = "file" name = "file[]" multiple draggable = "true" @ change = "uploadFiles($event)" / >
< p class = "alerttext" x-show = "data.files==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
< / td >
< / tr >
< tr >
< / tr >
< / tbody >
>>>>>>> yan
< / template >
< template x-if = "step==3" >
< template x-for = "(elevator, idx) in data.elevators" :key = "elevator.apply_key + elevator.register_code" >
< tbody style = "font-weight: bolder;margin-bottom: 20px" x-show = "step==3" >
< tr >
< td colspan = 8 > < p x-text = "'電梯' + Number(idx+1)" > < / p > < / td >
< / tr >
< tr >
< td style = "vertical-align: middle" > 機種< / td >
< td >
< select class = "ui search dropdown" name = "spec" x-model = "data.elevators[idx].spec" >
< option value = "" > 選擇規格< / option >
< option value = "MAE100" > MAE100< / option >
< option value = "MAM200" > MAM200< / option >
< option value = "MAH100" > MAH100< / option >
< option value = "MAQ100" > MAQ100< / option >
< option value = "MAF100" > MAF100< / option >
< option value = "MAZ100" > MAZ100< / option >
< / select >
< p class = "alerttext" x-show = "!(data.elevators[idx].spec=='MAE100' || data.elevators[idx].spec=='MAM200' || data.elevators[idx].spec=='MAH100' || data.elevators[idx].spec=='MAQ100' || data.elevators[idx].spec=='MAF100' || data.elevators[idx].spec=='MAZ100')" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
< / td >
< td style = "vertical-align: middle" > 載重< / td >
< td >
< input type = "text" x-model = "data.elevators[idx].weight" / >
< p class = "alerttext" x-show = "data.elevators[idx].weight==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
< / td >
< td style = "vertical-align: middle" > 速度< / td >
< td >
< input type = "text" x-model = "data.elevators[idx].speed" / >
< p class = "alerttext" x-show = "data.elevators[idx].speed==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
< / td >
< td style = "vertical-align: middle" > 人乘< / td >
< td >
< input type = "text" x-model = "data.elevators[idx].persons" / >
< p class = "alerttext" x-show = "data.elevators[idx].persons==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
< / td >
< / tr >
< tr >
< td style = "vertical-align: middle" > 樓停< / td >
< td >
< input type = "number" class = "form-control" x-model = "data.elevators[idx].stop" / >
< p class = "alerttext" x-show = "data.elevators[idx].stop==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
< / td >
< td style = "vertical-align: middle" > 樓層< / td >
< td >
< input type = "text" x-model = "data.elevators[idx].floors" / >
< p class = "alerttext" x-show = "data.elevators[idx].floors==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
< / td >
< td style = "vertical-align: middle" > 緯度< / td >
< td >
< input type = "text" x-model = "data.elevators[idx].latitude" / >
< p class = "alerttext" x-show = "data.elevators[idx].latitude=='' || !data.elevators[idx].latitude" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
< / td >
< td style = "vertical-align: middle" > 經度< / td >
< td >
< input type = "text" x-model = "data.elevators[idx].longitude" / >
< p class = "alerttext" x-show = "data.elevators[idx].longitude=='' || !data.elevators[idx].longitude" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
< / td >
< / tr >
< tr >
< td style = "vertical-align: middle" > 廠牌< / td >
< td >
< input type = "text" x-model = "data.elevators[idx].brand" class = "form-control" / >
< p class = "alerttext" x-show = "data.elevators[idx].brand==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
< / td >
< td style = "vertical-align: middle" >
開門方式
< / td >
< td style = "vertical-align: middle" >
< select class = "ui search dropdown" name = "repairtype" x-model = "data.elevators[idx].opendoor" >
< option value = "" > 選擇開門方式< / option >
< option value = "2PCO" > 2PCO< / option >
< option value = "2S" > 2S< / option >
< option value = "2SL" > 2SL< / option >
< option value = "2SR" > 2SR< / option >
< option value = "2U" > 2U< / option >
< option value = "3S" > 3S< / option >
< option value = "4PCO" > 4PCO< / option >
< option value = "6PCO" > 6PCO< / option >
< option value = "CO" > CO< / option >
< / select >
< p class = "alerttext" x-show = "data.elevators[idx].opendoor==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
< / td >
< td style = "vertical-align: middle" > 保養別< / td >
< td >
< select class = "ui search dropdown" x-model = "data.elevators[idx].maintainance" >
< option value = "" > 選擇保養別< / option >
< option value = "A" > 全包< / option >
< option value = "B" > 半包< / option >
< option value = "C" > 清包< / option >
< / select >
< p class = "alerttext" x-show = "data.elevators[idx].maintainance==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
< / td >
< td style = "vertical-align: middle" > 竣檢日< / td >
< td >
< input class = "form-control disabled_select" type = "date" x-model = "data.elevators[idx].takecertificatedate" >
< p class = "alerttext" x-show = "data.elevators[idx].takecertificatedate==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
< / td >
< / tr >
< tr >
< td style = "vertical-align: middle" > 許可證有效時間< / td >
< td >
< input class = "form-control disabled_select" type = "date" x-model = "data.elevators[idx].licensedate" >
< p class = "alerttext" x-show = "data.elevators[idx].licensedate==''" > < i class = "fa-solid fa-circle-xmark" > < / i > 未填寫< / p >
< / td >
< / tr >
< tr > < td > < / td >
< td > < / td >
< td > < / td >
< td > < / td >
< td > < / td >
< td > < / td >
< td > < / td >
< td > < / td > < / tr >
< / tbody >
< / template >
< / template >
< / template >
< / table >
< / table >