You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
159 lines
6.6 KiB
159 lines
6.6 KiB
<?php
|
|
include "header.php";
|
|
?>
|
|
<div class="container">
|
|
<?php
|
|
include "facility-record-submit.php";
|
|
?>
|
|
<form class="form-horizontal" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" enctype="multipart/form-data">
|
|
|
|
<div class="form-group">
|
|
<div class="col-md-3">
|
|
<label for="maintance_contract_id">價審單編號</label>
|
|
<input type="text" name="maintance_contract_id" id="maintance_contract_id" maxlength="20" value="<?=$_GET['id'] ?>">
|
|
</div>
|
|
<div class="col-md-3">
|
|
<label for="facilityno">電梯編號</label>
|
|
<input type="text" name="facilityno" id="facilityno">
|
|
</div>
|
|
<div class="col-md-3">
|
|
<label for="brand">品牌</label>
|
|
|
|
<select name="brand" id="brand" style="margin-top: 10px" >
|
|
<option value="三菱">三菱</option>
|
|
<option value="日立">日立</option>
|
|
<option value="迅達">迅達</option>
|
|
<option value="永大">永大</option>
|
|
|
|
<option value="奧的斯機電">奧的斯機電</option>
|
|
<option value="通力">通力</option>
|
|
<option value="杭州西奧">杭州西奧</option>
|
|
<option value="康力">康力</option>
|
|
|
|
<option value="帝奧">帝奧</option>
|
|
<option value="帝森">帝森</option>
|
|
<option value="東芝">東芝</option>
|
|
<option value="廣日">廣日</option>
|
|
|
|
<option value="富士達">富士達</option>
|
|
<option value="富士">富士</option>
|
|
<option value="江南嘉捷">江南嘉捷</option>
|
|
<option value="巨人通力">巨人通力</option>
|
|
|
|
<option value="許繼迅達">許繼迅達</option>
|
|
<option value="快速">快速</option>
|
|
<option value="現代">現代</option>
|
|
<option value="其他">其他</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
<div class="col-md-3">
|
|
<label for="type">型號</label>
|
|
<input type="text" name="type" id="type">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<div class="col-md-3">
|
|
<label for="speed">速度</label>
|
|
<input type="text" name="speed" id="speed" >
|
|
</div>
|
|
<div class="col-md-3">
|
|
<label for="weight">載重</label>
|
|
<input type="text" name="weight" id="weight">
|
|
</div>
|
|
<div class="col-md-3">
|
|
<label for="address">電梯使用性質</label>
|
|
<select name="usednature" id="usednature" style="margin-top: 10px" >
|
|
|
|
<option value="住宅">住宅</option>
|
|
<option value="工廠">工廠</option>
|
|
<option value="酒店">酒店</option>
|
|
<option value="商務樓">商務樓</option>
|
|
|
|
<option value="公共交通">公共交通</option>
|
|
<option value="政府辦公">政府辦公</option>
|
|
<option value="學校">學校</option>
|
|
<option value="醫院">醫院</option>
|
|
|
|
<option value="商場">商場</option>
|
|
<option value="個人">個人</option>
|
|
<option value="其他">其他</option>
|
|
|
|
</select>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<label for="address">使用年限</label>
|
|
<input type="text" name="usedage" id="usedage">
|
|
</div>
|
|
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-md-3">
|
|
<label for="speed">層站門-層</label>
|
|
<input type="text" name="numberoffloor" id="numberoffloor" >
|
|
</div>
|
|
<div class="col-md-3">
|
|
<label for="weight">層站門-站</label>
|
|
<input type="text" name="numberofstop" id="numberofstop">
|
|
</div>
|
|
<div class="col-md-3">
|
|
<label for="address">層站門-門</label>
|
|
<input type="text" name="numberofdoor" id="numberofdoor">
|
|
</div>
|
|
<div class="col-md-3">
|
|
<label for="address">台數</label>
|
|
<input type="text" name="tai_count" id="tai_count">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-md-2">
|
|
<label for="yearlyinspectiondate">年檢日期</label>
|
|
<input type="date" name="yearlyinspectiondate" id="yearlyinspectiondate" >
|
|
</div>
|
|
<div class="col-md-2">
|
|
<label for="standardprice">標準價</label>
|
|
<input type="text" name="standardprice" id="standardprice">
|
|
</div>
|
|
<div class="col-md-2">
|
|
<label for="address">議定價</label>
|
|
<input type="text" name="discusspricing" id="discusspricing" value="0" onchange="sumfeemethod()">
|
|
</div>
|
|
<div class="col-md-2">
|
|
<label for="address">校驗費</label>
|
|
<input type="text" name="calibrationfee" id="calibrationfee" value="0" onchange="sumfeemethod()">
|
|
</div>
|
|
<div class="col-md-2">
|
|
<label for="compete">年檢費</label>
|
|
<input type="text" name="yearlyinspectionfee" id="yearlyinspectionfee" value="0" onchange="sumfeemethod()">
|
|
</div>
|
|
<div class="col-md-2">
|
|
<label for="price_total_broken">小計</label>
|
|
<input type="text" name="sumfee" id="sumfee">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<div class="col-md-12 ">
|
|
<button type="submit" class="btn btn-primary btn-lg" >點擊後提交電梯資料</button>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
<script>
|
|
|
|
function sumfeemethod(){
|
|
var discusspricing=$('#discusspricing').val(); //議定價
|
|
var calibrationfee=$('#calibrationfee').val();//校驗費
|
|
var yearlyinspectionfee=$('#yearlyinspectionfee').val();//年檢費
|
|
var sumfee=parseInt(discusspricing)-parseInt(calibrationfee)-parseInt(yearlyinspectionfee);
|
|
console.log('獲取的值');
|
|
console.log(discusspricing);
|
|
console.log(calibrationfee);
|
|
console.log(yearlyinspectionfee);
|
|
$('#sumfee').val(sumfee);
|
|
}
|
|
|
|
</script>
|