<!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-add">
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">广告主：</label>
            <div class="col-sm-8">
                <input name="company" class="form-control" type="text" value="1" readonly>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">销售：</label>
            <div class="col-sm-8">
                <input name="saleId" class="form-control" type="text" value="1" readonly>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">信息流：</label>
            <div class="col-sm-8">
                <input name="infoFlow" class="form-control" type="text" value="0" readonly>
            </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="nextTime" 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" 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" 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" 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" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">App来源：</label>
            <div class="col-sm-8">
                <input name="sourceApp" class="form-control" value="8" type="text" readonly>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">微信号：</label>
            <div class="col-sm-8">
                <input name="wxAccount" 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" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">是否长按识别二维码 0.否 1.是：</label>
            <div class="col-sm-8">
                <input name="touchQrcode" 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" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">是否触达 0.否 1.是：</label>
            <div class="col-sm-8">
                <input name="isTouch" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">是否加微 0.否 1.是：</label>
            <div class="col-sm-8">
                <input name="isAddWx" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">是否有效 0.否 1.是：</label>
            <div class="col-sm-8">
                <input name="isEffective" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">是否意向 0.否 1.是：</label>
            <div class="col-sm-8">
                <input name="isPlan" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">成交状态 0.未成交 1.已成交：</label>
            <div class="col-sm-8">
                <input name="isDeal" 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" 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" 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" 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" 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" class="form-control" value="baidu" type="text" readonly>
            </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-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-clew-add').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>