puzhibing
2024-03-04 7e7f901b2172281dc294dfbc67e6ad00625f09f4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
@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>&nbsp;&nbsp;&nbsp;&nbsp;
                        @}
                        @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">
                        起步价为&nbsp;<input type="text" oninput="checkIsYuan(this)" name="num1" id="num1"
                                             value="${json1.num1}" class="form-control newWidth" disabled="true"
                                             placeholder="最多3位数"/>&nbsp;Rp,
                        起步包含&nbsp;<input type="text" oninput="checkIsGongLi(this)" name="num2" id="num2"
                                             value="${json1.num2}" class="form-control newWidth" disabled="true"
                                             placeholder="最多3位数"/>&nbsp;公里,
                        &nbsp;<input type="text" oninput="checkIsMinute(this)" name="num3" id="num3"
                                     value="${json1.num3}" class="form-control newWidth" disabled="true"
                                     placeholder="最多3位数"/>&nbsp;分钟
                        <br/>
                    </div>
                </div>
 
                <div class="form-group">
                    <label class="col-sm-2 control-label">里程费设置:</label>
                    <div class="col-sm-10">
                        超过起步里程后每公里&nbsp;<input type="text" oninput="checkIsYuan(this)" name="num4" id="num4"
                                                         value="${json2.num1}" class="form-control newWidth" disabled="true"
                                                         placeholder="最多3位数"/>&nbsp;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="选择时间"/>&nbsp;点为夜间行驶时间,
                        起步价变为&nbsp;<input type="text" oninput="checkIsYuan(this)" name="num6" id="num6"
                                               value="${json3.num2}" class="form-control newWidth" disabled="true"
                                               placeholder="最多3位数"/>&nbsp;Rp
                        <br>
                        <br>
                        里程费为每公里&nbsp;<input type="text" oninput="checkIsYuan(this)" name="num7" id="num7"
                                                   value="${json3.num3}" class="form-control newWidth" disabled="true"
                                                   placeholder="最多3位数"/>&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;
                @}
                @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&nbsp;<input type="text" oninput="checkIsYuan(this)" name="num1" id="num1"
                                     value="${json1.num1}" class="form-control newWidth" disabled="true"
                                     placeholder="Sehingga 3 digit"/>&nbsp;Rp,
                dan waktu mulai termasuk .&nbsp;<input type="text" oninput="checkIsGongLi(this)" name="num2" id="num2"
                                     value="${json1.num2}" class="form-control newWidth" disabled="true"
                                     placeholder="Sehingga 3 digit"/>&nbsp;kilometer,
                &nbsp;<input type="text" oninput="checkIsMinute(this)" name="num3" id="num3"
                             value="${json1.num3}" class="form-control newWidth" disabled="true"
                             placeholder="Sehingga 3 digit"/>&nbsp;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&nbsp;<input type="text" oninput="checkIsYuan(this)" name="num4" id="num4"
                                                 value="${json2.num1}" class="form-control newWidth" disabled="true"
                                                 placeholder="Sehingga 3 digit"/>&nbsp;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"/>&nbsp;adalah waktu mengemudi malam,
                dan harga awal akan&nbsp;<input type="text" oninput="checkIsYuan(this)" name="num6" id="num6"
                                       value="${json3.num2}" class="form-control newWidth" disabled="true"
                                       placeholder="Sehingga 3 digit"/>&nbsp;Rp
                <br>
                <br>
                Biaya jarak tempuh adalah&nbsp;<input type="text" oninput="checkIsYuan(this)" name="num7" id="num7"
                                           value="${json3.num3}" class="form-control newWidth" disabled="true"
                                           placeholder="Sehingga 3 digit"/>&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;
                @}
                @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&nbsp;<input type="text" oninput="checkIsYuan(this)" name="num1" id="num1"
                                     value="${json1.num1}" class="form-control newWidth" disabled="true"
                                     placeholder="Up to 3 digits"/>&nbsp;Rp,
                and the starting time includes.&nbsp;<input type="text" oninput="checkIsGongLi(this)" name="num2" id="num2"
                                     value="${json1.num2}" class="form-control newWidth" disabled="true"
                                     placeholder="Up to 3 digits"/>&nbsp;kilometers,
                &nbsp;<input type="text" oninput="checkIsMinute(this)" name="num3" id="num3"
                             value="${json1.num3}" class="form-control newWidth" disabled="true"
                             placeholder="Up to 3 digits"/>&nbsp;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&nbsp;<input type="text" oninput="checkIsYuan(this)" name="num4" id="num4"
                                                 value="${json2.num1}" class="form-control newWidth" disabled="true"
                                                 placeholder="Up to 3 digits"/>&nbsp;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"/>&nbsp;is the night driving time,
                and the starting price will be.&nbsp;<input type="text" oninput="checkIsYuan(this)" name="num6" id="num6"
                                       value="${json3.num2}" class="form-control newWidth" disabled="true"
                                       placeholder="Up to 3 digits"/>&nbsp;Rp
                <br>
                <br>
                The mileage fee is &nbsp;<input type="text" oninput="checkIsYuan(this)" name="num7" id="num7"
                                           value="${json3.num3}" class="form-control newWidth" disabled="true"
                                           placeholder="Up to 3 digits"/>&nbsp;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>
@}