| | |
| | | <div class="form-group" id="floatDiv" style="display: none;"> |
| | | <label class="col-sm-2 control-label">浮动计价:</label> |
| | | <div class="col-sm-10"> |
| | | 参考价格: <input type="text" oninput="checkIsYuan(this)" name="num11" id="num11" class="form-control newWidth" /> 元; |
| | | 参考费用: <input type="text" oninput="checkIsYuan(this)" name="num11" id="num11" class="form-control newWidth" /> 元; |
| | | 参考里程: <input type="text" oninput="checkIsYuan(this)" name="num12" id="num12" class="form-control newWidth" /> 公里;<br><br> |
| | | 保底价: <input type="text" oninput="checkIsYuan(this)" name="num13" id="num13" class="form-control newWidth" /> 元; |
| | | 超出参考里程优惠系数: <input type="text" oninput="checkIsXiShu1(this)" name="num14" id="num14" class="form-control newWidth" /> ;<br><br> |
| | | 低于参考里程优惠系数: <input type="text" oninput="checkIsXiShu(this)" name="num15" id="num15" class="form-control newWidth" /> ; |
| | | 包车系数: <input type="text" oninput="checkIsXiShu(this)" name="num16" id="num16" class="form-control newWidth" /> ;<br><br> |
| | | 五座系数: <input type="text" oninput="checkIsXiShu(this)" name="num17" id="num17" class="form-control newWidth" /> ; |
| | | 七座系数: <input type="text" oninput="checkIsXiShu(this)" name="num18" id="num18" class="form-control newWidth" /> ;<br><br> |
| | | 基础单价: <input type="text" oninput="checkIsYuan(this)" name="num13" id="num13" class="form-control newWidth" /> 元; |
| | | 优惠系数: <input type="text" oninput="checkIsXiShu(this)" name="num14" id="num14" class="form-control newWidth" /> ;<br><br> |
| | | 包车系数: <input type="text" oninput="checkIsXiShu(this)" name="num15" id="num15" class="form-control newWidth" /> ; |
| | | 五座系数: <input type="text" oninput="checkIsXiShu(this)" name="num16" id="num16" class="form-control newWidth" /> ;<br><br> |
| | | 七座系数: <input type="text" oninput="checkIsXiShu(this)" name="num17" id="num17" class="form-control newWidth" /> ; |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | ,format: 'HH:mm' |
| | | }); |
| | | var regDouble = /^(([1-9]{1}\d*)|(0{1}))(\.\d{0,2})?$/; |
| | | var regXiShu = /^(0(\.\d{1,2})?)$/; |
| | | var regXiShu1 = /^([1-9]{1,})(\.\d{1,2})?$/; |
| | | var regXiShu = /^(0(\.\d{1,2})?|1(\.0{1,2})?)$/; |
| | | var regBiLi = /^([0-9]{1,2}$)|(^[0-9]{1,2}\.[0-9]{1,2}$)|100$/; |
| | | var regInt = /^[0-9]{0,3}$/; |
| | | function checkIsYuan(obj){ |
| | | var num = $(obj).val(); |
| | | if(!regDouble.test(num)){ |
| | | layer.msg("【元】输入框不能超过3位数,保留两位小数"); |
| | | } |
| | | } |
| | | function checkIsXiShu1(obj){ |
| | | var num = $(obj).val(); |
| | | if(!regXiShu1.test(num)){ |
| | | layer.msg("【系数】输入框大于1,保留两位小数"); |
| | | } |
| | | } |
| | | function checkIsXiShu(obj){ |