<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page language="java" contentType="text/html; charset=utf-8"
        pageEncoding="utf-8" %>
<%@ include file="header.jsp" %>
<script type="text/javascript" src="<%=webpath%>/js/business/orderCheckHIs.js"></script>
<script type="text/javascript" src="<%=webpath%>/js/DatePicker/WdatePicker.js"></script>
<style>
    .infoTable td {
	    width: 33.3%;
	    height: 30px;
	}
	
</style>
<script type="text/javascript">
    function query() {
        var queryParams = {};
        var code = $("#code").val();
        var orderCode = $("#orderCode").val();
        var checkState = $("#checkState").val();
        var queryDate1 = $("#queryDate1").val();
        var queryDate2 = $("#queryDate2").val();
        var rescueCompanyName = $("#rescueCompanyName").val();

//        if ((license == null || license == '') && (frame_code == null || frame_code == '') && (userPhone == null || userPhone == '') &&
//                (finishTime == null || finishTime == '') && (createTime == null || createTime == '') && (companyName == null || companyName == '')) {
//            alert("查询条件不能为空");
//            return;
//        }
//
//        // 比较时间
//        if ((!(finishTime == null || finishTime == '') && !(createTime == null || createTime == '')) && !toCompairTime(createTime, finishTime)) {
//            alert('开始时间大于离开时间，请检查');
//            return;
//        }
        queryParams['code'] = code;
        queryParams['orderCode'] = orderCode;
        queryParams['checkState'] = checkState;
        queryParams['queryDate1'] = queryDate1;
        queryParams['queryDate2'] = queryDate2;
        queryParams['rescueCompanyName'] = rescueCompanyName;
        queryOrderCheckList("<%=path%>/orderCheck/query.do?state_unit=1", queryParams);

    }

    function clearValState1() {
        $$("#code").val("");
        $("#orderCode").val("");
        $("#queryDate1").val("");
        $("#queryDate2").val("");
        $("#rescueCompanyName").val("");
    }

    $(function () {
        var queryParams = {};
        queryParams['checkState'] = -1;
        queryOrderCheckList("<%=path%>/orderCheck/query.do?state_unit=1", queryParams);
    })

</script>
<input type="hidden" id="paths" value="<%=path%>"/>
<div id="main">
    <div class="search">
        <table class="searchTable">
            <tbody>
            <tr>

                <td style="position:relative;">
                    <span class="inputTitle"> 案件编号: </span>
                    <span id="input34Wrap">
                    <input id="orderCode" name="endSubmitDate"
                           type="text" value=""
                           class="mc-ipt-text hasDatepicker"
                           style=""/><span class="mc-ipt"
                                           style="width:90%;"><span
                            id="input33Tip" class="mc-ipt-tip-query"
                            style="font-size: 11px; line-height: 40px; height: 40px;"></span></span></span></td>
                <td style="position:relative;">
                    <span class="inputTitle"> VIN:</span>
                    <span id="input34Wrap">
                    <input id="code" name="endSubmitDate"
                           type="text" value=""
                           class="mc-ipt-text hasDatepicker"
                           style=""/><span class="mc-ipt"
                                           style="width:90%;"><span
                            id="input33Tip" class="mc-ipt-tip-query"
                            style="font-size: 11px; line-height: 40px; height: 40px;"></span></span></span></td>

                <td style="position:relative;">
                    <span class="inputTitle"> 状态: </span>
                    <span id="input34Wrap" >
                   <select id="checkState"
                           style="width: 63%;height:30px;border-radius: 5px;
                           border: 1px solid #D2D2D2;
                           text-indent: 1em;color: #AFAFAF;"
                           class="finalChoice" tabindex="-1"
                           aria-hidden="true"
                           name="checkState">
                            <option
                                    value="-1">-未选择-
                            </option>
                            <option value="5">对账完成</option>
                            <option value="6">开票完成</option>
                        </select><span class="mc-ipt"
                                       style="width:90%;"><span
                            id="input33Tip" class="mc-ipt-tip-query"
                            style="font-size: 11px; line-height: 40px; height: 40px;"></span></span></span></td>

                <td>
                    <button class="t-button searchBtn" id="CaseInfoList2btnCtClear" type="button"
                            onclick="clearValState1();"><img class="searchIcon" src="../images/clear.png">清空
                    </button>
                    <button class="t-button searchBtn" style="margin-right:10px;" id="CaseInfoList2btnCtSearch"
                            type="button" onclick="query();"><img class="searchIcon" src="../images/search.png">搜索
                    </button>
                    <!--
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <button class="t-button" id="CaseInfoList2btnCtSearch" type="button" onclick="query();">
                            <font><font>
                                &nbsp;&nbsp;搜 索&nbsp;&nbsp;</font></font></button> -->
                </td>

            </tr>
            <tr>
                <td>
                    <span class="inputTitle"> 开始日期: </span>
                    <input type="text" id="queryDate1" class="Wdate" readonly="readonly"
                           onfocus="WdatePicker({errDealMode:2,readOnly:true,startDate:'%y-%M-%d %H:%m:%s',dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'queryDate1\')||\'%y-%M-%d\'}'})"
                           style="cursor:pointer;"/>
                </td>

                <td>
                    <span class="inputTitle"> 结束日期: </span>
                    <input type="text" id="queryDate2" class="Wdate" readonly="readonly"
                           onfocus="WdatePicker({errDealMode:2,readOnly:true,startDate:'%y-%M-%d %H:%m:%s',dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-%d',minDate:'#F{$dp.$D(\'queryDate2\')}'})"
                           style="cursor:pointer;"/>
                </td>

                <!-- <td><b><font><font>经销商名称</font></font></b></td> -->


            </tr>
            </tbody>
        </table>
    </div>
    <table id="datatable"></table>
    <div class="order_undo" id="checkInfoEdit_windowContent" style="display: none;">
        <div class="dialog_default" style="width: 1000px">
            <div class="dialog_title">
              中道服务结算明细
            </div>
            <div class="dialog_con">
                <div id="moduleCtId">
                    <div class="ng-scope">
                        <div ng-switch="v">
                            <div class="ng-scope" style="padding-top:30px;">
                                <span class="ng-binding" style="color: red" id="caseInfoEdit20MsgCtBackMsg"></span>
                                <table class="infoTable">
                                    <tr>
                                        <td class="ng-binding" style="position:relative;">案件号码: <span id="input21Wrap">
                                <span class="mc-ipt" id="i-orderCode"></span></span>
                                        </td>
                                        <td class="ng-binding" style="position:relative;">经销商: <span
                                                id="companyNameWrap">
                                <span class="mc-tips"></span><span
                                                class="mc-ipt" id="i-companyName"></span></span></span>
                                        </td>


                                    </tr>
                                    <tr>
                                        <td class="ng-binding" style="position:relative;">VIN码: <span
                                                id="frameCodeWrap">
                                <span class="mc-ipt" id="i-frameCode"></span></span>
                                        </td>
                                        <td class="ng-binding" style="position:relative;">救援类型: <span
                                                id="i-serviceNameWrap">
                                <span class="mc-tips"></span><span
                                                class="mc-ipt" id="i-serviceName"></span><span
                                                class="mc-ipt-msg"></span></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="ng-binding" style="position:relative;">案件状态: <span
                                                id="i-orderStateWrap">
                                <span class="mc-tips"></span><span
                                                class="mc-ipt" id="i-orderState"></span><span
                                                class="mc-ipt-msg"></span></span>
                                        </td>
                                        <td class="ng-binding" style="position:relative;">结算状态: <span
                                                id="i-checkStateWrap">
                                <span class="mc-tips"></span><span
                                                class="mc-ipt" id="i-checkState"></span></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="ng-binding" colspan="2" style="position:relative;">案件事发地: <span id="i-addressWrap">
                                <span class="mc-tips"></span><span
                                                class="mc-ipt" id="i-address"></span></span>
                                        </td>
                                    </tr>
                                    <tr class="i-destAddressTR">
                                        <td class="ng-binding" colspan="2"  style="position:relative;">拖车目的地: <span
                                                id="i-destAddressWrap">
                                <span class="mc-tips"></span><span
                                                class="mc-ipt" id="i-destAddress"></span><span
                                                class="mc-ipt-msg"></span></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <hr/>
                                        </td>
                                    </tr>

                                </table>
                                <table class="table" width="50%">
                                    <tr class="i-refMileageTR">
                                        <th class="ng-binding" id="i-refMileageTD" style="position:relative;">拖车里程:
                                        </th>
                                        <td>
                                            <span id="i-refMileage"  class="mc-ipt-msg" style="font-size: 18px"></span><sapn  class="mc-ipt">&nbsp;公里</sapn>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th class="ng-binding" style="position:relative;">结算金额:
                                        </th>
                                        <td>
                                            <span id="i-totalFee"
                                                  class="mc-ipt-msg" style="font-size: 18px"></span><sapn  class="mc-ipt">&nbsp;元</sapn>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="confirm_cancel clearfix">
                    <a onclick="$('#checkInfoEdit_windowContent').hide();" id="caseInfoEdit20SelCtshow_OK" class="btn2">确&nbsp;&nbsp;定</a>
                </div>
            </div>
        </div>
    </div>
</div>
<%@ include file="footer.jsp" %>