<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@page language="java" contentType="text/html; charset=utf-8"
        pageEncoding="utf-8" %>
<%@ include file="header.jsp" %>
<script type="text/javascript" src="<%=webpath%>/js/business/cases.js"></script>
<script type="text/javascript" src="<%=webpath%>/js/DatePicker/WdatePicker.js"></script>
<style>
    .table input, .table button, .table select, .table textarea {
        font-family: inherit;
        font-size: inherit;
        line-height: inherit;
        margin-bottom: 15px;
        height: 32px;
        width: 80%;
        border-radius: 2px;

        text-indent: 0.5em;
    }

    .table input, .table textarea {
        border: 1px dashed #BABABA;
    }

    .table select, .table input.Wdate {
        border: 1px dashed #B7DBD1;
        background-color: #E3F1ED;
    }

    .infoTable td {
        height: 36px;
        line-height: 36px;
        border-bottom: 1px solid #ccc;
    }

    .infoTable td span {
        display: inline-block;
        width: 180px;
    }


    textarea {
        resize: none;
    }

    .Wdate {
        padding-left: 0;
    }
</style>
<div id="main" style="width:75%;margin:0 auto;">
    <div id="moduleCtId">
        <div class="ng-scope">
            <div ng-switch="v">
                <c:forEach items="${info.rows}" var="r">
                <div class="ng-scope"><h2 style="font-size:20px;margin-bottom:30px;">案件信息</h2>
                    <span class="ng-binding" style="color: red" id="caseInfoEdit20MsgCtBackMsg"></span>
                    <table class="infoTable">
                            <script>
                                $(document).ready(function () {
                                    $("#level ").val('${r.REASON}');
                                    $("#repair ").val('${r.REPAIR}');
                                    $("#choice ").val('${r.CHOICE}');
                                })
                                // 显示列表
                                function show() {
                                    $("#caseinfoEdit_windowContent").show();
                                    var caseInfoEdit20SelCtshow_ComponentInfoGroups =
                                        document.getElementById("caseInfoEdit20SelCtshow_ComponentInfoGroups");
                                    var listLen = caseInfoEdit20SelCtshow_ComponentInfoGroups.options.length;
                                    if (listLen == null || listLen == 0) {
                                        var params = {};
                                        params["flag"] = 1;
                                        var result = ajaxgetresultpost('<%=path%>/casesInfo/getTroubleCode.do', params);
                                        // 主系统
                                        var listfirst = result.listfirst;
                                        var idList = result.idList;
                                        //alert(idList);
                                        jsAddItemToSelect(caseInfoEdit20SelCtshow_ComponentInfoGroups, listfirst, idList);
                                    }
                                };
                                // 确定按钮
                                $(document).on('click', '#caseInfoEdit20SelCtshow_OK', function () {
                                    var trouble_code = '';
                                    if ($("#caseInfoEdit20SelCtshow_ComponentInfoGroups").val() != null && $("#caseInfoEdit20SelCtshow_ComponentInfoGroups").val() != 0) {
                                        trouble_code += '-' + $("#caseInfoEdit20SelCtshow_ComponentInfoGroups").find("option:selected").text();
                                    }

                                    if ($("#caseInfoEdit20SelCtshow_CLSubSystem").val() != null && $("#caseInfoEdit20SelCtshow_CLSubSystem").val() != 0) {
                                        trouble_code += '-' + $("#caseInfoEdit20SelCtshow_CLSubSystem").find("option:selected").text();
                                    }

                                    if ($("#caseInfoEdit20SelCtshow_CLElement").val() != null && $("#caseInfoEdit20SelCtshow_CLElement").val() != 0) {
                                        trouble_code += '-' + $("#caseInfoEdit20SelCtshow_CLElement").find("option:selected").text();
                                    }
                                    //alert(trouble_code.length);
                                    $("#troubleCodeValue").val(trouble_code.substring(1, trouble_code.length));
                                    $(".order_undo").hide();

                                });
                                //var tempList;
                                // 子系统
                                $(document).on('change', '#caseInfoEdit20SelCtshow_ComponentInfoGroups', function () {
                                    var caseInfoEdit20SelCtshow_CLSubSystem = document.getElementById("caseInfoEdit20SelCtshow_CLSubSystem");
                                    caseInfoEdit20SelCtshow_CLSubSystem.options.length = 0;
                                    // 元件
                                    var caseInfoEdit20SelCtshow_CLElement = document.getElementById("caseInfoEdit20SelCtshow_CLElement");
                                    caseInfoEdit20SelCtshow_CLElement.options.length = 0;
                                    var params = {};
                                    params["firstParam"] = $("#caseInfoEdit20SelCtshow_ComponentInfoGroups").val();
                                    params["flag"] = 2;
                                    result = ajaxgetresultpost('<%=path%>/casesInfo/getTroubleCode.do', params)
                                    var listSecond = result.listSecond;
                                    var idList = result.idList;
                                    jsAddItemToSelect(caseInfoEdit20SelCtshow_CLSubSystem, listSecond, idList);
                                });

                                // 元件
                                $(document).on('change', '#caseInfoEdit20SelCtshow_CLSubSystem', function () {
                                    var caseInfoEdit20SelCtshow_CLElement = document.getElementById("caseInfoEdit20SelCtshow_CLElement");
                                    //jsRemoveItemFromSelect(caseInfoEdit20SelCtshow_CLSubSystem);
                                    caseInfoEdit20SelCtshow_CLElement.options.length = 0;
                                    var params = {};
                                    params["firstParam"] = $("#caseInfoEdit20SelCtshow_CLSubSystem").val();
                                    params["flag"] = 3;
                                    result = ajaxgetresultpost('<%=path%>/casesInfo/getTroubleCode.do', params);
                                    var listSecond = result.listSecond;
                                    var idList = result.idList;
                                    jsAddItemToSelect(caseInfoEdit20SelCtshow_CLElement, listSecond, idList);
                                });

                                <%--//保存并提交反馈案件--%>
                                <%--function saveFeedBackData() {--%>
                                <%--var params = {};--%>
                                <%--params["orderKey"] =${orderKey};// 订单ID--%>
                                <%--var result = ajaxgetresultpost('<%=path%>/casesInfo/submitFeedback.do', params);--%>
                                <%--alert(result.msg);--%>
                                <%--}--%>

                                <%--//退回--%>
                                <%--function saveBack() {--%>
                                <%--var params = {};--%>
                                <%--params["orderKey"] =${orderKey};// 订单ID--%>
                                <%--var result = ajaxgetresultpost('<%=path%>/casesInfo/submitback.do', params);--%>
                                <%--alert(result.msg);--%>
                                <%--}--%>
                                function save() {
                                    var mileage = $("#mileage").val();
                                    var dphm = $("#dphm").val();
                                    var arriveTime = $("#arriveTime").val();
                                    var refTime = $("#refTime").val();
                                    var repairFinishTime = $("#repair_finish_time").val();
                                    var handTime = $("#handTime").val();
                                    var dmsCode = $("#dmsCode").val();
                                    var finalChoice = $("#choice").val();
                                    var useTime = $("#use_time").val();
                                    var troubleCodeValue = $("#troubleCodeValue").val();
                                    var troubleReasonValue = $("#level").val();
                                    var repair = $("#repair").val();
                                    var remark = $("#remark").val();
                                    var uid=$("#uid").val();
                                    var tid=$("#tid").val();
                                    var params = {};
                                    params["uid"] = uid;
                                    if(tid != null && tid != ''){
                                        params["tid"] = tid;
                                    }
                                    params["mileage"] = mileage;
                                    params["state"] = 0;
                                    params["dphm"] = dphm;
                                    params["arriveTime"] = arriveTime;
                                    params["refTime"] = refTime;
                                    params["repairFinishTime"] = repairFinishTime;
                                    params["handTime"] = handTime;
                                    params["dmsCode"] = dmsCode;
                                    params["finalChoice"] = finalChoice;
                                    params["useTime"] = useTime;
                                    params["troubleCodeValue"] = troubleCodeValue;
                                    params["repair"] = repair;
                                    params["remark"] = remark;
                                    params["troubleReasonValue"] = troubleReasonValue;
                                    var result = ajaxgetresultpost('<%=path%>/casesInfo/caseDetailSave.do', params);
                                    if (result.sign) {
                                        alert("保存成功");
                                    } else {
                                        alert("保存失败");
                                    }
                                }
                                function saveData() {
                                    var mileage = $("#mileage").val();
                                    var dphm = $("#dphm").val();
                                    var arriveTime = $("#arriveTime").val();
                                    var refTime = $("#refTime").val();
                                    var repairFinishTime = $("#repair_finish_time").val();
                                    var handTime = $("#handTime").val();
                                    var dmsCode = $("#dmsCode").val();
                                    var finalChoice = $("#choice").val();
                                    var useTime = $("#use_time").val();
                                    var troubleCodeValue = $("#troubleCodeValue").val();
                                    var troubleReasonValue = $("#level").val();
                                    var repair = $("#repair").val();
                                    var remark = $("#remark").val();
                                    var uid=$("#uid").val();
                                    var tid=$("#tid").val();
                                    var params = {};
                                    params["uid"] = uid;
                                    if(tid != null && tid != ''){
                                        params["tid"] = tid;
                                    }
                                    params["state"] = 1;
                                    params["mileage"] = mileage;
                                    params["dphm"] = dphm;
                                    params["arriveTime"] = arriveTime;
                                    params["refTime"] = refTime;
                                    params["repairFinishTime"] = repairFinishTime;
                                    params["handTime"] = handTime;
                                    params["dmsCode"] = dmsCode;
                                    params["finalChoice"] = finalChoice;
                                    params["useTime"] = useTime;
                                    params["troubleCodeValue"] = troubleCodeValue;
                                    params["repair"] = repair;
                                    params["remark"] = remark;
                                    params["troubleReasonValue"] = troubleReasonValue;
                                    var result = ajaxgetresultpost('<%=path%>/casesInfo/caseDetailSave.do', params);
                                    if (result.sign) {
                                        alert("保存成功");
                                    } else {
                                        alert("保存失败");
                                    }
                                }
                            </script>
                        <tr>
                                <input value="${r.UID}" id="uid" type="hidden"/>
                                <input value="${r.TID}" id="tid" type="hidden"/>
                            <td class="ng-binding" style="position:relative;"><span>案件号码:</span> ${r.ORDER_CODE} </td>
                            <td class="ng-binding" style="position:relative;"><span>车辆注册日期:</span>
                                <fmt:parseDate value="${r.STARTTIME}" pattern="yyyy-MM-dd HH:mm:ss" var="receiveDate"></fmt:parseDate>
                                <fmt:formatDate value="${receiveDate}" pattern="yyyy-MM-dd HH:mm:ss" ></fmt:formatDate>
                            </td>
                        </tr>
                        <tr>
                            <td class="ng-binding" style="position:relative;"><span>VIN码:</span> ${r.VIN_NO} </td>
                            <td class="ng-binding" style="position:relative;">
                                <span>车牌号码:</span>${r.PLATENUMBER}
                            </td>
                        </tr>

                        <tr>
                            <td class="ng-binding " style="position:relative;">
                                <span>车型:</span>
                                ${r.MODEL}
                            </td>
                            <td class="ng-binding" style="position:relative;"><span>服务类型:</span> ${r.SERVICE_NAME}
                            </td>


                        </tr>
                        <tr>
                            <td class="ng-binding" style="position:relative;"><span>开案时间:</span>
                                <fmt:parseDate value="${r.CREATE_TIME}" pattern="yyyy-MM-dd HH:mm:ss" var="receiveDate"></fmt:parseDate>
                                <fmt:formatDate value="${receiveDate}" pattern="yyyy-MM-dd HH:mm:ss" ></fmt:formatDate>
                            </td>
                            <td class="ng-binding" style="position:relative;"><span>救援完成时间:</span>
                                <fmt:parseDate value="${r.FINISHTIME}" pattern="yyyy-MM-dd HH:mm:ss" var="receiveDate"></fmt:parseDate>
                                <fmt:formatDate value="${receiveDate}" pattern="yyyy-MM-dd HH:mm:ss" ></fmt:formatDate>
                            </td>

                        </tr>
                        <tr>
                            <td class="ng-binding" style="position:relative;"><span>故障LEVEL1:</span> ${r.LEVELNAME1}
                            </td>
                            <td class="ng-binding" style="position:relative;"><span>故障LEVEL2:</span> ${r.LEVELNAME2}
                            </td>
                        </tr>
                        <tr>
                            <td class="ng-binding" style="position:relative;">
                                <span>维修经销商名称:</span> ${r.DNAME}
                            </td>
                            <td class="ng-binding" style="position:relative;">
                                <span>维修经销商代码:</span> ${r.BRANDNAME}
                            </td>

                        </tr>
                        <tr>
                            <td class="ng-binding" style="position:relative;"><span>服务商名称:</span> ${r.NAME}
                            </td>
                            <td class="ng-binding" style="position:relative;">
                                <span>后续利益:</span>
                            </td>
                        </tr>

                    </table>

                    <table class="table">
                        <tbody>

                        <tr>
                            <td colspan="6" style="height:30px;padding-top:30px;">
                                <hr/>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="6">
                                <h2 style="font-size:20px;margin-bottom:40px;margin-top:0">经销商必填信息</h2>
                            </td>
                        </tr>
                        <tr>
                            <th>DMS单号:</th>
                            <td class="ng-binding" style="position:relative;">
                                <!-- id="input43Wrap"> -->
                                <input type="text" id="dmsCode" placeholder="DMS单号"
                                       value="${r.DMS}"/>
                            </td>
                            <th>故障零件:</th>
                            <td class="ng-binding" style="position:relative;">
                                <input value="${r.PART}" id="troubleCodeValue"/>
                                    <a id="caseInfoEdit20SelCtshowWindowComponent" style="color:#428bca;text-decoration:
                                none" onclick="show();">显示列表</a>
                                <font style="color:red;">*</font>
                            </td>
                        </tr>
                        <tr>
                            <th>故障原因:</th>
                            <td class="ng-binding" style="position:relative;"><select id="level"
                                    name="faultInfoId" style="width:80%;height:38px;"
                                    class="js-example-basic-single select2-hidden-accessible" tabindex="-1"
                                    aria-hidden="true">
                                <option value="0">--请选择--</option>
                                <option value="57">安装不当</option>
                                <option value="53">安装了错误部件</option>
                                <option value="110">凹陷</option>
                                <option value="67">疤痕</option>
                                <option value="118">摆动</option>
                                <option value="45">保险丝熔断</option>
                                <option value="109">被剥离</option>
                                <option value="107">被盗</option>
                                <option value="5">被堵塞</option>
                                <option value="19">被腐蚀</option>
                                <option value="16">被碎屑污染</option>
                                <option value="117">被损坏</option>
                                <option value="98">被剪切</option>
                                <option value="30">变形</option>
                                <option value="42">波动</option>
                                <option value="78">不工作</option>
                                <option value="62">部件松动</option>
                                <option value="79">不受广播／发射支持</option>
                                <option value="86">不同步</option>
                                <option value="51">不准确</option>
                                <option value="10">擦伤</option>
                                <option value="59">颤动 / 震动</option>
                                <option value="50">电阻过高</option>
                                <option value="43">冻结（低温）</option>
                                <option value="24">断口</option>
                                <option value="7">断裂</option>
                                <option value="99">短路</option>
                                <option value="101">对地短路</option>
                                <option value="100">对蓄电池短路</option>
                                <option value="25">放气</option>
                                <option value="106">发硬</option>
                                <option value="26">分层</option>
                                <option value="33">工厂损坏</option>
                                <option value="95">刮擦</option>
                                <option value="37">固定件／紧固件 — 断裂</option>
                                <option value="40">固定件／紧固件 — 缺失</option>
                                <option value="38">固定件／紧固件 — 安装不正确</option>
                                <option value="39">固定件／紧固件 — 松脱</option>
                                <option value="55">规格错误</option>
                                <option value="88">过热</option>
                                <option value="36">火烧损坏</option>
                                <option value="9">校准</option>
                                <option value="63">接地线松动</option>
                                <option value="92">静态损耗</option>
                                <option value="23">挤压</option>
                                <option value="103">开裂</option>
                                <option value="85">开路</option>
                                <option value="96">卡滞</option>
                                <option value="58">卡住</option>
                                <option value="105">卡滞</option>
                                <option value="31">空</option>
                                <option value="11">溃缩</option>
                                <option value="108">拉抻</option>
                                <option value="120">类型错误</option>
                                <option value="13">冷凝</option>
                                <option value="15">冷却液污染</option>
                                <option value="14">连接器断开</option>
                                <option value="21">裂缝</option>
                                <option value="47">密封圈／密封胶 — 安装不正确</option>
                                <option value="48">密封圈／密封胶 — 泄漏</option>
                                <option value="46">密封圈／密封胶 — 零件不正确</option>
                                <option value="49">密封圈／密封胶 — 缺失</option>
                                <option value="71">模糊</option>
                                <option value="74">模块间无通信</option>
                                <option value="72">模块未改编</option>
                                <option value="73">模块未配置</option>
                                <option value="114">磨破</option>
                                <option value="119">磨损</option>
                                <option value="115">扭绞</option>
                                <option value="90">喷镀故障</option>
                                <option value="8">膨胀</option>
                                <option value="97">破碎</option>
                                <option value="4">起泡</option>
                                <option value="2">气锁</option>
                                <option value="64">缺失</option>
                                <option value="70">缺失</option>
                                <option value="68">熔化</option>
                                <option value="32">乳化</option>
                                <option value="41">闪烁</option>
                                <option value="94">撕裂</option>
                                <option value="18">水浸</option>
                                <option value="87">失去平衡</option>
                                <option value="93">受限制</option>
                                <option value="20">损坏</option>
                                <option value="111">表面损坏</option>
                                <option value="56">调整不当</option>
                                <option value="34">褪色</option>
                                <option value="27">脱离</option>
                                <option value="102">涂污</option>
                                <option value="3">弯曲</option>
                                <option value="28">完全放电</option>
                                <option value="77">未安装</option>
                                <option value="35">未能初始化</option>
                                <option value="116">无法编程</option>
                                <option value="104">污渍</option>
                                <option value="75">无诊断通信</option>
                                <option value="89">像素丢失或错误</option>
                                <option value="60">泄漏</option>
                                <option value="113">锈蚀</option>
                                <option value="65">压力过低</option>
                                <option value="52">颜色错误</option>
                                <option value="12">压缩</option>
                                <option value="61">液位过低</option>
                                <option value="29">已变色</option>
                                <option value="44">已满</option>
                                <option value="6">易碎</option>
                                <option value="80">异味</option>
                                <option value="82">油封／O 形圈 — 安装不正确</option>
                                <option value="81">油封／O 形圈 — 零件不正确</option>
                                <option value="84">油封／O 形圈 — 缺失</option>
                                <option value="83">油封／O 形圈 — 泄漏</option>
                                <option value="91">有孔</option>
                                <option value="17">油液污染</option>
                                <option value="1">游移</option>
                                <option value="22">有折痕</option>
                                <option value="54">语言错误</option>
                                <option value="76">噪音</option>
                                <option value="69">制造不当</option>
                                <option value="112">肿胀</option>
                                <option value="66">阻力低</option>
                            </select>
    <span class="select2 select2-container select2-container--default"
          dir="ltr" style="width: 204px;height:38px;"><span class="selection"><span
            class="select2-selection select2-selection--single" role="combobox"
            aria-haspopup="true" aria-expanded="false" tabindex="0"
            aria-labelledby="select2-caseInfoEdit20SelCtFaultInfo-container"><span
            class="select2-selection__rendered"
            id="select2-caseInfoEdit20SelCtFaultInfo-container"><span
            class="select2-selection__placeholder"></span></span><span
            class="select2-selection__arrow" role="presentation"><b
            role="presentation"></b></span></span></span><span class="dropdown-wrapper"
                                                               aria-hidden="true"></span></span><font
                                        color="red"> *</font></td>

                            <th>维修结果:</th>
                            <td class="ng-binding" style="position:relative;"><select
                                    id="repair" name="completionInfoId"
                                    style="width:80%;height:38px;"
                                    class="js-example-basic-single select2-hidden-accessible" tabindex="-1"
                                    aria-hidden="true">
                                <option value="0">--请选择--</option>
                                <option value="11">车辆无法使用</option>
                                <option value="6">重新标定</option>
                                <option value="1">调整</option>
                                <option value="4">提供的建议</option>
                                <option value="5">未发现故障</option>
                                <option value="2">已充电蓄电池</option>
                                <option value="10">已重新编程（软件上传）</option>
                                <option value="9">已更换零部件 — 问题未解决</option>
                                <option value="8">已更换部件</option>
                                <option value="3">已添加油液到正确液位</option>
                                <option value="7">已维修</option>
                            </select><span class="select2 select2-container select2-container--default"
                                           dir="ltr" style="width: 280px;"><span class="selection"><span
                                    class="select2-selection select2-selection--single" role="combobox"
                                    aria-haspopup="true" aria-expanded="false" tabindex="0"
                                    aria-labelledby="select2-caseInfoEdit20SelCtCompletionInfo-container"><span
                                    class="select2-selection__rendered"
                                    id="select2-caseInfoEdit20SelCtCompletionInfo-container"><span
                                    class="select2-selection__placeholder"></span></span><span
                                    class="select2-selection__arrow" role="presentation"><b
                                    role="presentation"></b></span></span></span><span class="dropdown-wrapper"
                                                                                       aria-hidden="true"></span></span><font
                                    color="red"> *</font></td>


                        </tr>


                        <tr>
                            <th>里程表读数:</th>
                            <td class="ng-binding" style="position:relative;"><input value="${r.MILEAGE}"
                                                                                     id="mileage" name="odometerReading"
                                                                                     style="ime-mode:Disabled"
                                                                                     class="mc-ipt-text"
                                                                                     type="text"></td>

                            <th>预计完成维修日期:</th>
                            <td class="ng-binding" style="position:relative;"><span
                                    id="input41Wrap">
                                <fmt:parseDate value="${r.REFTIME}" pattern="yyyy-MM-dd HH:mm:ss" var="receiveDate"></fmt:parseDate>
                                <fmt:formatDate value="${receiveDate}" pattern="yyyy/MM/dd" var="date" ></fmt:formatDate>
    <input type="text" id="refTime" placeholder="日期"
           value="${date}"
           class="Wdate" readonly="readonly"
           onfocus="WdatePicker({errDealMode:2,readOnly:true,startDate:'%y-%M-%d %H:%m:%s',dateFmt:'yyyy/MM/dd'})"
           style="cursor:pointer;"/>
    <span class="mc-tips">*</span><span class="mc-ipt"><span
                                    id="input41Tip" class="mc-ipt-tip-show"
                                    style="font-size: 11px; line-height: 17px; height: 17px;"></span></span><span
                                    id="input41Msg" class="mc-ipt-msg"></span></span>
                            </td>


                        </tr>
                        <tr>
                            <th>底盘号码:</th>
                            <td class="ng-binding" style="position:relative;">
    <span id="input38Wrap">
    <input id="dphm" type="text" value="${r.DNUMBER}" class="mc-ipt-text">

    <span class="mc-ipt"></span>
    <span id="input38Msg" class="mc-ipt-msg">
    </span>
    </span>
                            </td>
                            <th>维修结束日期:</th>
                            <td class="ng-binding" style="position:relative;"><span
                                    id="input42Wrap">
                                <fmt:parseDate value="${r.FINTIME}" pattern="yyyy-MM-dd HH:mm:ss" var="receiveDate"></fmt:parseDate>
                                <fmt:formatDate value="${receiveDate}" pattern="yyyy/MM/dd" var="FINTIME" ></fmt:formatDate>
    <input type="text" id="repair_finish_time" placeholder="日期"
           value="${FINTIME}"
           class="Wdate" readonly="readonly"
           onfocus="WdatePicker({errDealMode:2,readOnly:true,startDate:'%y-%M-%d %H:%m:%s',dateFmt:'yyyy/MM/dd'})"
           style="cursor:pointer;"/>
    <span
            class="mc-tips">*</span><span class="mc-ipt"><span
                                    id="input42Tip" class="mc-ipt-tip-show"
                                    style="font-size: 11px; line-height: 17px; height: 17px;"></span></span><span
                                    id="input42Msg" class="mc-ipt-msg"></span></span>
                            </td>
                        </tr>
                        <tr>
                            <th>被救车辆到店日期:</th>
                            <td class="ng-binding" style="position:relative;">
    <span id="input40Wrap">
                                <fmt:parseDate value="${r.ARRIVETIME}" pattern="yyyy-MM-dd HH:mm:ss" var="receiveDate"></fmt:parseDate>
                                <fmt:formatDate value="${receiveDate}" pattern="yyyy/MM/dd" var="ARRIVETIME" ></fmt:formatDate>
    <input type="text" id="arriveTime" placeholder="日期"
           value="${ARRIVETIME}"
           class="Wdate" readonly="readonly"
           onfocus="WdatePicker({errDealMode:2,readOnly:true,startDate:'%y-%M-%d %H:%m:%s',dateFmt:'yyyy/MM/dd'})"
           style="cursor:pointer;"/>
    <span class="mc-tips">*</span>
    <span class="mc-ipt">
    <span id="input40Tip" class="mc-ipt-tip-show"
          style="font-size: 11px; line-height: 17px; height: 17px;">
    </span>
    </span>
    <span id="input40Msg" class="mc-ipt-msg"></span>
    </span>
                            </td>
                            <th>交车日期:</th>
                            <td class="ng-binding" style="position:relative;"><span
                                    id="input43Wrap">
                                <fmt:parseDate value="${r.HANDTIME}" pattern="yyyy-MM-dd HH:mm:ss" var="receiveDate"></fmt:parseDate>
                                <fmt:formatDate value="${receiveDate}" pattern="yyyy/MM/dd" var="HANDTIME" ></fmt:formatDate>
    <input type="text" id="handTime" placeholder="日期"
           value="${HANDTIME}"
           class="Wdate" readonly="readonly"
           onfocus="WdatePicker({errDealMode:2,readOnly:true,startDate:'%y-%M-%d %H:%m:%s',dateFmt:'yyyy/MM/dd'})"
           style="cursor:pointer;"/>
    <span
            class="mc-tips">*</span><span class="mc-ipt"><span
                                    id="input43Tip" class="mc-ipt-tip-show"
                                    style="font-size: 11px; line-height: 17px; height: 17px;"></span></span><span
                                    id="input43Msg" class="mc-ipt-msg"></span></span>
                            </td>


                        </tr>
                        <tr>


                        </tr>

                        <tr>
                            <th>文字描述:</th>
                            <td class="ng-binding" style="position:relative;" colspan="3">
    <textarea id="remark" name="feedbackText" style="width:91%;height:50px;"
              class="mc-textarea">${r.REMARK}</textarea>
                                <!-- <font style="color:red;"> *<br><span id="feedbackText_counter"></span></font> -->
                            </td>
                        </tr>


                        <tr>
                            <td colspan="6" style="height:10px;">&nbsp;</td>
                        </tr>

                        <tr>
                            <th>客户交通出行选择:</th>
                            <td class="ng-binding" style="position:relative;"><select
                                    id="choice" name="storeSelection"
                                    style="width:80%;height:38px;"
                                    class="finalChoice" tabindex="-1"
                                    aria-hidden="true">
                                <option>--请选择--</option>
                                <option value="1">经销商代步车</option>
                                <option value="2">出租车</option>
                                <option value="3">上门取送车</option>
                                <option value="4">公共交通</option>
                            </select><span class="select2 select2-container select2-container--default"
                                           dir="ltr" style="width: 190px;"><span class="selection"><span
                                    class="select2-selection select2-selection--single" role="combobox"
                                    aria-haspopup="true" aria-expanded="false" tabindex="0"
                                    aria-labelledby="select2-caseInfoEdit20SelCtstoreSelection-container"><span
                                    class="select2-selection__rendered"
                                    id="select2-caseInfoEdit20SelCtstoreSelection-container"><span
                                    class="select2-selection__placeholder"></span></span><span
                                    class="select2-selection__arrow" role="presentation"><b
                                    role="presentation"></b></span></span></span><span class="dropdown-wrapper"
                                                                                       aria-hidden="true"></span></span>
                            </td>
                            <th>客户使用日期:</th>
                            <td class="ng-binding" style="position:relative;"><span id="input48Wrap">
    <!-- id="input43Wrap"> -->
                                <fmt:parseDate value="${r.USETIME}" pattern="yyyy-MM-dd HH:mm:ss" var="receiveDate"></fmt:parseDate>
                                <fmt:formatDate value="${receiveDate}" pattern="yyyy/MM/dd" var="USETIME" ></fmt:formatDate>
    <input type="text" id="use_time" placeholder="日期"
           value="${USETIME}"
           class="Wdate" readonly="readonly"
           onfocus="WdatePicker({errDealMode:2,readOnly:true,startDate:'%y-%M-%d %H:%m:%s',dateFmt:'yyyy/MM/dd'})"
           style="cursor:pointer;"/><span
                                    class="mc-tips"></span><span class="mc-ipt"><span id="input48Tip"
                                                                                      class="mc-ipt-tip-show"
                                                                                      style="font-size: 11px; line-height: 17px; height: 17px;"></span></span><span
                                    id="input48Msg" class="mc-ipt-msg"></span></span></td>
                        </tr>
                        <tr>
                            <td colspan="6" style="height:10px;"></td>
                        </tr>

                        </tbody>
                    </table>
                    <p style="text-align:center;">
                        <c:if test="${r.STATE != '1' && state == '1'}">
                            <button type="button" class="btn btn-danger_green"
                                    style="width:200px;color: #fff;background-color: #00CE9F;font-size: 14px;height: 50px;margin-right:25px;"
                                    id="caseInfoEdit20ActionsaveAndSubmit" onclick="saveData()">保存并提交反馈案件
                            </button>
                            <button type="button" class="btn btn-danger_green"
                                    style="width:200px;color: #fff;background-color: #00CE9F;font-size: 14px;height: 50px;margin-right:25px;"
                                    id="caseInfoEdit20ActionsaveAndSubmit" onclick="save()">保存
                            </button>
                        </c:if>
                        <button class="btn btn-link btn-xs" id="caseInfoEdit20ActionReturnList"
                                onclick="window.history.go(-1);">返回列表
                        </button>

                    </p>
                </div>
                </c:forEach>
            </div>

            <div id="caseinfoEdit_fade" class="caseinfoEdit_black_overlay"></div>
        </div>
    </div>
</div>


<div class="order_undo" id="caseinfoEdit_windowContent" style="display: none;">
    <div class="dialog_default">
        <div class="dialog_title">
            故障零件查询选择列表
        </div>
        <div class="dialog_con">
            <div class="result_input">
                <span class="line">&nbsp;</span>主系统：
            </div>
            <select id="caseInfoEdit20SelCtshow_ComponentInfoGroups" class="money_con"></select>

            <div class="result_input">
                <span class="line">&nbsp;</span>子系统：
            </div>
            <select id="caseInfoEdit20SelCtshow_CLSubSystem" class="money_con"></select>

            <div class="result_input">
                <span class="line">&nbsp;</span>元件：
            </div>
            <select id="caseInfoEdit20SelCtshow_CLElement" class="money_con"></select>

            <div class="confirm_cancel clearfix">
                <a href="javascript:void(0);" id="caseInfoEdit20SelCtshow_OK" class="btn2">确&nbsp;&nbsp;定</a>
                <a href="javascript:void(0);" id="caseInfoEdit20SelCtshow_Cancel"
                   class="btn1 cancel">取&nbsp;&nbsp;消</a>
            </div>
        </div>
    </div>
</div>
<%@ include file="footer.jsp" %>