@layout("/common/_container.html"){
|
<style>
|
.newWidth, .single-line {
|
max-width: 200px !important;
|
display: initial !important;
|
}
|
.form-control{
|
width: 200px;
|
}
|
|
</style>
|
<div class="ibox float-e-margins">
|
<div class="ibox-content">
|
|
@if(language==1){
|
<div class="form-horizontal">
|
<input hidden id="code" value="${code}">
|
<div class="row">
|
<div class="col-sm-11">
|
|
<div class="ibox-title">
|
<h3>同城快送价格设置:</h3>
|
</div>
|
<input type="hidden" id="tcId" name="tcId"
|
@if(isNotEmpty(tcId)){
|
value="${tcId}"
|
@}else{
|
value=""
|
@}
|
>
|
|
|
<div class="">
|
@if(userType==1){
|
<button name="SupendButton-one" style="width: 200px;height: 100px;border-color: #0e9aef;background-color:#0e9aef ;">司机</button>
|
@}
|
@if(userType==2){
|
<button name="SupendButton-two" style="width: 200px;height: 100px;border-color: #0e9aef;background-color: #0e9aef; " onclick="changeColor(this)">用户</button>
|
@}
|
</div>
|
|
<div class="col-sm-3" style="display: flex;width: 200%;">
|
<#SelectCon id="cityId" name="选择城市:" >
|
<option style="width: 200px" value="">${city.cityName}</option>
|
</#SelectCon>
|
</div>
|
|
|
<div class="form-group">
|
<label class="col-sm-1 control-label"></label>
|
<div class="col-sm-10">
|
(根据起点终点距离收费):<br/>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">起步价设置:</label>
|
<div class="col-sm-10">
|
起步价为 <input type="text" oninput="checkIsYuan(this)" name="num1" id="num1"
|
value="${json1.num1}" class="form-control newWidth" disabled="true"
|
placeholder="最多3位数"/> Rp,
|
起步包含 <input type="text" oninput="checkIsGongLi(this)" name="num2" id="num2"
|
value="${json1.num2}" class="form-control newWidth" disabled="true"
|
placeholder="最多3位数"/> 公里,
|
<input type="text" oninput="checkIsMinute(this)" name="num3" id="num3"
|
value="${json1.num3}" class="form-control newWidth" disabled="true"
|
placeholder="最多3位数"/> 分钟
|
<br/>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">里程费设置:</label>
|
<div class="col-sm-10">
|
超过起步里程后每公里 <input type="text" oninput="checkIsYuan(this)" name="num4" id="num4"
|
value="${json2.num1}" class="form-control newWidth" disabled="true"
|
placeholder="最多3位数"/> Rp
|
<br/>
|
</div>
|
</div>
|
|
|
@for(json3 in json3a){
|
<div class="form-group">
|
<label class="col-sm-2 control-label">夜间行驶费用设置:</label>
|
<div class="col-sm-10">
|
<input type="text" name="num5" id="num5" value="${json3.num1}" class="form-control newWidth"
|
disabled="true" placeholder="选择时间"/> 点为夜间行驶时间,
|
起步价变为 <input type="text" oninput="checkIsYuan(this)" name="num6" id="num6"
|
value="${json3.num2}" class="form-control newWidth" disabled="true"
|
placeholder="最多3位数"/> Rp
|
<br>
|
<br>
|
里程费为每公里 <input type="text" oninput="checkIsYuan(this)" name="num7" id="num7"
|
value="${json3.num3}" class="form-control newWidth" disabled="true"
|
placeholder="最多3位数"/> Rp
|
</div>
|
</div>
|
@}
|
|
|
|
|
@if(sub==1){
|
<div class="form-group">
|
<div class="col-sm-2 col-sm-offset-1">
|
<#SelectCon id="check" name="审核结果:" >
|
<option value="2">审核通过</option>
|
<option value="3">驳回</option>
|
</#SelectCon>
|
</div>
|
</div>
|
<#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="TSystemPriceInfoDlg.submit()"/>
|
<#button btnCss="danger" name="返回" id="ensure" icon="fa-check" clickFun="TSystemPriceInfoDlg.close()"/>
|
@}
|
@if(sub==2){
|
<#button btnCss="danger" name="返回" id="ensure" icon="fa-check" clickFun="TSystemPriceInfoDlg.close()"/>
|
@}
|
</div>
|
</div>
|
</div>
|
@}
|
@if(language==3){
|
<div class="form-horizontal">
|
<input hidden id="code" value="${code}">
|
<div class="row">
|
<div class="col-sm-11">
|
<div class="ibox-title">
|
<h3>Pengaturan Harga Pengiriman Ekspres Intra-City:</h3>
|
</div>
|
<input type="hidden" id="tcId" name="tcId"
|
@if(isNotEmpty(tcId)){
|
value="${tcId}"
|
@}else{
|
value=""
|
@}
|
>
|
|
|
<div class="">
|
@if(userType==1){
|
<button name="SupendButton-one" style="width: 200px;height: 100px;border-color: #0e9aef;background-color:#0e9aef ;">Pengemudi</button>
|
@}
|
@if(userType==2){
|
<button name="SupendButton-two" style="width: 200px;height: 100px;border-color: #0e9aef;background-color: #0e9aef; " onclick="changeColor(this)">Pengguna</button>
|
@}
|
</div>
|
|
<div class="col-sm-3" style="display: flex;width: 200%;">
|
<#SelectCon id="cityId" name="Pilih Kota:" >
|
<option style="width: 200px" >${city.cityName}</option>
|
</#SelectCon>
|
</div>
|
|
|
<div class="form-group">
|
<label class="col-sm-1 control-label"></label>
|
<div class="col-sm-10">
|
(Mengisi sesuai dengan jarak dari titik awal ke titik tujuan):<br/>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">Pengaturan harga mulai:</label>
|
<div class="col-sm-10">
|
Harga awal adalah <input type="text" oninput="checkIsYuan(this)" name="num1" id="num1"
|
value="${json1.num1}" class="form-control newWidth" disabled="true"
|
placeholder="Sehingga 3 digit"/> Rp,
|
dan waktu mulai termasuk . <input type="text" oninput="checkIsGongLi(this)" name="num2" id="num2"
|
value="${json1.num2}" class="form-control newWidth" disabled="true"
|
placeholder="Sehingga 3 digit"/> kilometer,
|
<input type="text" oninput="checkIsMinute(this)" name="num3" id="num3"
|
value="${json1.num3}" class="form-control newWidth" disabled="true"
|
placeholder="Sehingga 3 digit"/> menit
|
<br/>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">Pengaturan biaya jarak tempuh:</label>
|
<div class="col-sm-10">
|
Rp per kilometer setelah melebihi jarak tempuh awal <input type="text" oninput="checkIsYuan(this)" name="num4" id="num4"
|
value="${json2.num1}" class="form-control newWidth" disabled="true"
|
placeholder="Sehingga 3 digit"/> Rp
|
<br/>
|
</div>
|
</div>
|
|
|
@for(json3 in json3a){
|
<div class="form-group">
|
<label class="col-sm-2 control-label">Pengaturan biaya mengemudi malam:</label>
|
<div class="col-sm-10">
|
<input type="text" name="num5" id="num5" value="${json3.num1}" class="form-control newWidth"
|
disabled="true" placeholder="Time"/> adalah waktu mengemudi malam,
|
dan harga awal akan <input type="text" oninput="checkIsYuan(this)" name="num6" id="num6"
|
value="${json3.num2}" class="form-control newWidth" disabled="true"
|
placeholder="Sehingga 3 digit"/> Rp
|
<br>
|
<br>
|
Biaya jarak tempuh adalah <input type="text" oninput="checkIsYuan(this)" name="num7" id="num7"
|
value="${json3.num3}" class="form-control newWidth" disabled="true"
|
placeholder="Sehingga 3 digit"/> Rp
|
</div>
|
</div>
|
@}
|
|
|
|
|
@if(sub==1){
|
<div class="form-group">
|
<div class="col-sm-2 col-sm-offset-1">
|
<#SelectCon id="check" name="Hasil aaudit:" >
|
<option value="2">Lulus adiit</option>
|
<option value="3">Telah ditolak</option>
|
</#SelectCon>
|
</div>
|
</div>
|
<#button btnCss="info" name="Kirim" id="ensure" icon="fa-check" clickFun="TSystemPriceInfoDlg.submit()"/>
|
<#button btnCss="danger" name="Kembali" id="ensure" icon="fa-check" clickFun="TSystemPriceInfoDlg.close()"/>
|
@}
|
@if(sub==2){
|
<#button btnCss="danger" name="Kembali" id="ensure" icon="fa-check" clickFun="TSystemPriceInfoDlg.close()"/>
|
@}
|
</div>
|
</div>
|
</div>
|
@}
|
@if(language==2){
|
<div class="form-horizontal">
|
<input hidden id="code" value="${code}">
|
<div class="row">
|
<div class="col-sm-11">
|
<div class="ibox-title">
|
<h3>Intra-city express delivery price setting:</h3>
|
</div>
|
<input type="hidden" id="tcId" name="tcId"
|
@if(isNotEmpty(tcId)){
|
value="${tcId}"
|
@}else{
|
value=""
|
@}
|
>
|
|
|
<div class="">
|
@if(userType==1){
|
<button name="SupendButton-one" style="width: 200px;height: 100px;border-color: #0e9aef;background-color:#0e9aef ;">Driver</button>
|
@}
|
@if(userType==2){
|
<button name="SupendButton-two" style="width: 200px;height: 100px;border-color: #0e9aef;background-color: #0e9aef; " onclick="changeColor(this)">User</button>
|
@}
|
</div>
|
|
|
<div class="col-sm-3" style="display: flex;width: 200%;">
|
<#SelectCon id="cityId" name="Select city:" >
|
<option style="width: 200px" >${city.cityName}</option>
|
</#SelectCon>
|
</div>
|
|
|
<div class="form-group">
|
<label class="col-sm-1 control-label"></label>
|
<div class="col-sm-10">
|
(Charge according to the distance from the starting point to the destination point):<br/>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">Setting of starting price:</label>
|
<div class="col-sm-10">
|
The starting price is <input type="text" oninput="checkIsYuan(this)" name="num1" id="num1"
|
value="${json1.num1}" class="form-control newWidth" disabled="true"
|
placeholder="Up to 3 digits"/> Rp,
|
and the starting time includes. <input type="text" oninput="checkIsGongLi(this)" name="num2" id="num2"
|
value="${json1.num2}" class="form-control newWidth" disabled="true"
|
placeholder="Up to 3 digits"/> kilometers,
|
<input type="text" oninput="checkIsMinute(this)" name="num3" id="num3"
|
value="${json1.num3}" class="form-control newWidth" disabled="true"
|
placeholder="Up to 3 digits"/> minutes
|
<br/>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">Mileage fee setting:</label>
|
<div class="col-sm-10">
|
Rp per kilometer after exceeding the starting mileage <input type="text" oninput="checkIsYuan(this)" name="num4" id="num4"
|
value="${json2.num1}" class="form-control newWidth" disabled="true"
|
placeholder="Up to 3 digits"/> Rp
|
<br/>
|
</div>
|
</div>
|
|
|
@for(json3 in json3a){
|
<div class="form-group">
|
<label class="col-sm-2 control-label">Night driving cost setting:</label>
|
<div class="col-sm-10">
|
<input type="text" name="num5" id="num5" value="${json3.num1}" class="form-control newWidth"
|
disabled="true" placeholder="Please select a time"/> is the night driving time,
|
and the starting price will be. <input type="text" oninput="checkIsYuan(this)" name="num6" id="num6"
|
value="${json3.num2}" class="form-control newWidth" disabled="true"
|
placeholder="Up to 3 digits"/> Rp
|
<br>
|
<br>
|
The mileage fee is <input type="text" oninput="checkIsYuan(this)" name="num7" id="num7"
|
value="${json3.num3}" class="form-control newWidth" disabled="true"
|
placeholder="Up to 3 digits"/> Rp
|
</div>
|
</div>
|
@}
|
|
|
|
|
@if(sub==1){
|
<div class="form-group">
|
<div class="col-sm-2 col-sm-offset-1">
|
<#SelectCon id="check" name="Aaudit result:" >
|
<option value="2">Pass the aduit</option>
|
<option value="3">Reject</option>
|
</#SelectCon>
|
</div>
|
</div>
|
<#button btnCss="info" name="Submit" id="ensure" icon="fa-check" clickFun="TSystemPriceInfoDlg.submit()"/>
|
<#button btnCss="danger" name="return" id="ensure" icon="fa-check" clickFun="TSystemPriceInfoDlg.close()"/>
|
@}
|
@if(sub==2){
|
<#button btnCss="danger" name="return" id="ensure" icon="fa-check" clickFun="TSystemPriceInfoDlg.close()"/>
|
@}
|
</div>
|
</div>
|
</div>
|
@}
|
|
</div>
|
</div>
|
|
|
|
<script src="${ctxPath}/modular/system/tSystemPrice/tSystemPrice_info.js"></script>
|
<script type="text/javascript">
|
|
window.onload=function () {
|
document.getElementById("cityId").style.width="220px"
|
}
|
//提交数据
|
function addSubmit() {
|
let id = $("#id").val()
|
let check = $("#check").val()
|
|
//提交信息
|
var ajax = new $ax(Feng.ctxPath + "/tSystemPrice/smallCheckSubmit", function (data) {
|
if(language==1){
|
Feng.success("操作成功!");
|
}else if(language==2){
|
Feng.success("Operate successfully!");
|
}else {
|
Feng.success("Operasi berhasil!");
|
}
|
location.reload();
|
}, function (data) {
|
if(language==1){
|
Feng.error("操作失败!" + data.responseJSON.message + "!");
|
}else if(language==2){
|
Feng.error("Fail!" + data.responseJSON.message + "!");
|
}else {
|
Feng.error("Gagal!" + data.responseJSON.message + "!");
|
}
|
});
|
ajax.set("id", id);
|
ajax.set("check", check);
|
ajax.start();
|
}
|
</script>
|
@}
|