<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('任务列表新增')" />
    <th:block th:include="include :: ztree-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form id="form-SDtpRwglBusinesstask-add" class="customize-search-form">
        <div class="customize-form-group-container">
            <div class="customize-form-group">
                <label>业务归属:</label>
                <select name="businessBelonging"  class="styled-input">
                    <option value="常规回访">常规回访</option>
                    <option value="脱落召回">脱落召回</option>
                </select>

            </div>
            <div class="customize-form-group">
                <label>任务类型:</label>
                <select name="taskType"  class="styled-input">
                    <option value="表单任务">表单任务</option>
                    <option value="触达任务">触达任务</option>
                    <option value="外呼任务">外呼任务</option>
                </select>
            </div>
            <div class="customize-form-group">
                <label>患者姓名:</label>
                <input name="patientName" placeholder="患者姓名"  id="patientName" class="styled-input" type="text" required>
            </div>
            <div class="customize-form-group select-time">
                <label>创建时间:</label>
                <input name="createTime" placeholder="创建时间"  id="createTime" class="time-input time-input2" type="text">
            </div>
            <div class="customize-form-group select-time">
                <label>完成时间:</label>
                <input name="completeTime" placeholder="完成时间"  id="completeTime" class="time-input time-input2" type="text">
            </div>
            <div class="customize-form-group">
                <label>跟进人:</label>
                <input name="follower" placeholder="跟进人"  id="follower" class="styled-input" type="text" required>
            </div>
            <div class="customize-form-group">
                <label>门店:</label>
                <input name="store" placeholder="门店"  id="store" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>连锁:</label>
                <input name="chain" placeholder="连锁"  id="chain" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>状态:</label>
                <select name="status"  class="styled-input">
                    <option value="已创建">已创建</option>
                    <option value="待执行">待执行</option>
                    <option value="已完成">已完成</option>
                    <option value="已取消">已取消</option>
                    <option value="未完成">未完成</option>
                </select>

            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: ztree-js" />
<script type="text/javascript">

    function submitHandler() {
        if ($.validate.form()) {
            add();
        }
    }

    function add() {
        var data = $("#form-SDtpRwglBusinesstask-add").serializeArray();
        $.ajax({
            cache : true,
            type : "POST",
            url : ctx + "dtp/sdtprwglbusinesstask/sDtpRwglBusinesstaskAdd",
            data : data,
            async : false,
            error : function(request) {
                $.modal.alertError("系统错误");
            },
            success : function(data) {
                $.operate.successCallback(data);
            }
        });
    }
</script>
</body>
</html>
