<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="https://www.thymeleaf.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="https://www.thymeleaf.org ">
<head>
    <title>采美365网-中国美业全方位线上交易服务互动平台，做美业，上采美</title>
    <template th:replace="components/head-link"></template>
    <link th:href="@{/css/user-center/repair/list.css(v=${version})}" rel="stylesheet" type="text/css">
</head>
<body>
<!-- 引用头部 -->
<template th:replace="components/header"></template>
<!-- 我的维修 -->
<div id="orderPage" v-cloak>
    <div class="navLayout" th:object="${pageInfo}">
        <div class="crumbs">
            <span>我的交易</span>
            <span>&gt;</span>
            <span>我的维修</span>
            <a class="link" href="/user/repair/addform.html">申请维修</a>
        </div>
        <div class="wrap clear mf">
            <!--左侧面包屑-->
            <template th:replace="user-center/components/tableft"></template>
            <div class="right">
                <div class="order-header">
                    <div class="header-bt">
                        <div class="header-search">
                            <div class="search">
                                <span class="label">关键词:</span>
                                <input type="text" v-model="listQuery.searchNo" placeholder="输入订单编号进行搜索" class="search-input">
                            </div>
                            <div class="search-time">
                                <span class="label">提交日期:</span>
                                <div class="search-main">
                                    <div class="search-input">
                                        <input type="text" v-model="listQuery.beginTime" placeholder="订单开始时间" class="input">
                                        <i class="icon mIcon"></i>
                                    </div>
                                    <span class="line">至</span>
                                    <div class="search-input">
                                        <input type="text" v-model="listQuery.endTime" placeholder="订单结束时间" class="input">
                                        <i class="icon mIcon"></i>
                                    </div>
                                </div>
                            </div>
                            <div class="search">
                                <span class="label">维修进度:</span>
                                <select class="select" name="provinceID" @change="selectStatusFn">
                                    <option value="" >请选择</option>
                                    <option v-for="(item ,index) in StatusList" :key="index" :value='item.provinceID' >{{item.name}}</option>
                                </select>
                            </div>
                        </div>
                        <div class="header-button">
                            <a class="btn-server" href="javascript: void(0);" target="_blank">搜索</a>
                        </div>
                    </div>
                </div>
                <!--loading-->
                <div v-if="isRequset" class="loading">
                    <img src="/img/base/loading.gif">
                </div>
                <div class="container clear" v-else>
                    <!--数据为空-->
                    <div class="section" v-if="orderList.length > 0">
                        <div class="title">
                            <div class="td td-1">订单编号</div>
                            <div class="td td-2">仪器名称</div>
                            <div class="td td-3">生产厂家</div>
                            <div class="td td-4">提交时间</div>
                            <div class="td td-5">维修商</div>
                            <div class="td td-6">维修商联系方式</div>
                            <div class="td td-7">进度</div>
                            <div class="td td-8">操作</div>
                        </div>
                        <div class="content">
                            <div class="list" v-for="(item, index) in orderList" :key="index">
                                <div class="td td-1">2020090901</div>
                                <div class="td td-2">{{item.clauseName}}</div>
                                <div class="td td-3">{{item.clauseName}}</div>
                                <div class="td td-4">{{item.confirmTime}}</div>
                                <div class="td td-5">{{item.clauseName}}</div>
                                <div class="td td-6">15817887258</div>
                                <div class="td td-7">{{item.clauseName}}</div>
                                <div class="td td-8">{{item.clauseName}}</div>
                            </div>
                        </div>
                    </div>
                    <div v-else class="empty">
                        <img src="/img/common/empty.png">
                        <div class="msg"><p>暂无数据</p></div>
                    </div>
                </div>
                <!--分页-->
                <div v-if="(!isPC) && noMore" class="noMore">---- 没有更多了 ----</div>
                <div v-if="isPC && pageTotal>1" class="pageWrap clear">
                    <a v-if="listQuery.pageNum>1" class="prev" @click="toPagination(listQuery.pageNum*1-1)" href="javascript:void(0);"></a>
                    <template v-for="n in showPageBtn">
                        <a v-if="n" :class="{'on':(n==listQuery.pageNum)}" @click="toPagination(n)" href="javascript:void(0);" v-text="n"></a>
                        <span v-else>···</span>
                    </template>
                    <a v-if="listQuery.pageNum<pageTotal" class="next" @click="toPagination(listQuery.pageNum*1+1)" href="javascript:void(0);"></a>
                    <span>共<b v-text="pageTotal>1?pageTotal:1"></b>页</span>
                    <span>跳至</span>
                    <input v-model="pageInput" @blur="checkNum()"/>
                    <span>页</span>&nbsp;
                    <a class="btn" href="javascript:void(0);" @click="toPagination(pageInput)">点击跳转</a>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 引入底部 -->
<template th:replace="components/footer"></template>
<template th:replace="components/foot-link"></template>
<script charset="utf-8" type="text/javascript" th:src="@{/js/common/serviceapi/repair.service.js(v=${version})}"></script>
<script charset="utf-8" type="text/javascript" th:src="@{/js/user-center/repair/list.js(v=${version})}"></script>
</body>
</html>
