<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('任务列表修改')" />
</head>
<body>
<div class="ui-layout-center">
    <form id="form-SDtpRwglBusinesstask-edit" class="customize-search-form">

        <div class="customize-form-group-container">
            <input type="hidden" id="id" name="id" th:value="${id}">
            <div class="customize-form-group">
                <label>业务归属:</label>
                <input name="businessBelonging" placeholder="业务归属" th:value="${businessBelonging}" class="styled-input" type="text" disabled="true">
            </div>
            <div class="customize-form-group">
                <label>任务类型:</label>
                <input name="taskType" placeholder="任务类型" th:value="${taskType}" class="styled-input" type="text" disabled="true">
            </div>
            <div class="customize-form-group">
                <label>患者姓名:</label>
                <input name="patientName" placeholder="患者姓名" th:value="${patientName}" class="styled-input" type="text" required>
            </div>
            <div class="customize-form-group">
                <label>创建时间:</label>
                <input name="createTime" placeholder="创建时间" th:value="${createTime}" class="styled-input" type="text" disabled="true">
            </div>
            <div class="customize-form-group select-time">
                <label>完成时间:</label>
                <input name="completeTime" placeholder="完成时间" th:value="${completeTime}" class="time-input time-input2" type="text">
            </div>
            <div class="customize-form-group">
                <label>跟进人:</label>
                <input name="follower" placeholder="跟进人" th:value="${follower}" class="styled-input" type="text" required>
            </div>
            <div class="customize-form-group">
                <label>门店:</label>
                <input name="store" placeholder="门店" th:value="${store}" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>连锁:</label>
                <input name="chain" placeholder="连锁" th:value="${chain}" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>状态:</label>
                <input name="status" placeholder="状态" th:value="${status}" class="styled-input" type="text" disabled="true">
            </div>
        </div>
    </form>
</div>
<div class="main-content">
    <div class="col-sm-offset-5 col-sm-10">
    </div>
</div>
<th:block th:include="include :: footer" />
</body>
</html>
<script>
    function edit() {
        var data = $("#form-SDtpRwglBusinesstask-edit").serializeArray();
        $.ajax({
            cache : true,
            type : "POST",
            url : ctx + "dtp/sdtprwglbusinesstask/sDtpRwglBusinesstaskEdit",
            data : data,
            async : false,
            error : function(request) {
                $.modal.alertError("系统错误");
            },
            success : function(data) {
                $.operate.successCallback(data);
            }
        });
    }

    function submitHandler() {
        if ($.validate.form()) {
            edit();
        }
    }
</script>
