<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改线索')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-clew-edit" th:object="${clew}">
        <input name="id" th:field="*{id}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">下次跟进日期：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input name="nextTime" th:value="${#dates.format(clew.nextTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">微信昵称：</label>
            <div class="col-sm-8">
                <input name="wxName" th:field="*{wxName}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">姓名：</label>
            <div class="col-sm-8">
                <input name="customerName" th:field="*{customerName}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">手机号：</label>
            <div class="col-sm-8">
                <input name="phone" th:field="*{phone}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">债务金额：</label>
            <div class="col-sm-8">
                <input name="debtMoney" th:field="*{debtMoney}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">客户评级 01.无 02.无效 03.一般 04.重要 05.关键：</label>
            <div class="col-sm-8">
                <input name="customerLevel" th:field="*{customerLevel}" class="form-control" type="text">
            </div>
        </div><div class="form-group">
            <label class="col-sm-3 control-label">跟进次数：</label>
            <div class="col-sm-8">
                <input name="contactNumber" th:field="*{contactNumber}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">加微：</label>
            <div class="col-sm-8">
                <div class="radio-box" th:each="dict : ${@dict.getType('is_add_wx')}">
                    <input type="radio" th:id="${dict.dictCode}" name="isAddWx" th:value="${dict.dictValue}" th:field="*{isAddWx}">
                    <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">是否有效：</label>
            <div class="col-sm-8">
                <div class="radio-box" th:each="dict : ${@dict.getType('is_effective')}">
                    <input type="radio" th:id="${dict.dictCode}" name="isEffective" th:value="${dict.dictValue}" th:field="*{isEffective}">
                    <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">意向：</label>
            <div class="col-sm-8">
                <div class="radio-box" th:each="dict : ${@dict.getType('is_plan')}">
                    <input type="radio" th:id="${dict.dictCode}" name="isPlan" th:value="${dict.dictValue}" th:field="*{isPlan}">
                    <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">成交状态：</label>
            <div class="col-sm-8">
                <div class="radio-box" th:each="dict : ${@dict.getType('is_deal')}">
                    <input type="radio" th:id="${dict.dictCode}" name="isDeal" th:value="${dict.dictValue}" th:field="*{isDeal}">
                    <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">成交金额：</label>
            <div class="col-sm-8">
                <input name="wxAccount" th:field="*{wxAccount}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">省份：</label>
            <div class="col-sm-8">
                <input name="provinceName" th:field="*{provinceName}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">城市：</label>
            <div class="col-sm-8">
                <input name="cityName" th:field="*{cityName}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">方便接电话时间：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input name="contactTime" th:value="${#dates.format(clew.contactTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">其他联系方式：</label>
            <div class="col-sm-8">
                <input name="otherPhone" th:field="*{otherPhone}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">客户情况备注：</label>
            <div class="col-sm-8">
                <input name="remark" th:field="*{customerRemark}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">客户二次情况备注：</label>
            <div class="col-sm-8">
                <input name="twoCustomerRemark" th:field="*{twoCustomerRemark}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">备注：</label>
            <div class="col-sm-8">
                <input name="remark" readonly th:field="*{remark}" class="form-control" type="text">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
    var prefix = ctx + "system/clew";
    $("#form-clew-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-clew-edit').serialize());
        }
    }

    $("input[name='nextTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='contactTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });
</script>
</body>
</html>