<!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 class="form-horizontal m" id="form-role-add">
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <!--is-required 增加星号 显示为必填-->
                            <label class="col-sm-3 control-label">配送单单号:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="deliveryDocumentNumber" id="deliveryDocumentNumber" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">收货/验收状态:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="receiptAcceptanceStatus" id="receiptAcceptanceStatus" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">仓库发货时间:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="warehouseShipmentTime" id="warehouseShipmentTime" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">门店验收时间:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="storeAcceptanceTime" id="storeAcceptanceTime" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">收货人:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="receiver" id="receiver" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">验收人:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="acceptor" id="acceptor" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">收货单推送状态:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="receiptPushStatus" id="receiptPushStatus" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">验收单推送状态:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="acceptancePushStatus" id="acceptancePushStatus" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">电子签章状态:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="electronicSealStatus" id="electronicSealStatus" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">操作:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="operation" id="operation" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                </div>
            </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 deliveryDocumentNumber = $("input[name='deliveryDocumentNumber']").val();
           var receiptAcceptanceStatus = $("input[name='receiptAcceptanceStatus']").val();
           var warehouseShipmentTime = $("input[name='warehouseShipmentTime']").val();
           var storeAcceptanceTime = $("input[name='storeAcceptanceTime']").val();
           var receiver = $("input[name='receiver']").val();
           var acceptor = $("input[name='acceptor']").val();
           var receiptPushStatus = $("input[name='receiptPushStatus']").val();
           var acceptancePushStatus = $("input[name='acceptancePushStatus']").val();
           var electronicSealStatus = $("input[name='electronicSealStatus']").val();
           var operation = $("input[name='operation']").val();

        $.ajax({
            cache : true,
            type : "POST",
            url : ctx + "kc/skccrkdzysdeliveryorder/sKcCrkDzysDeliveryorderAdd",
            data : {
                "deliveryDocumentNumber": deliveryDocumentNumber,
                "receiptAcceptanceStatus": receiptAcceptanceStatus,
                "warehouseShipmentTime": warehouseShipmentTime,
                "storeAcceptanceTime": storeAcceptanceTime,
                "receiver": receiver,
                "acceptor": acceptor,
                "receiptPushStatus": receiptPushStatus,
                "acceptancePushStatus": acceptancePushStatus,
                "electronicSealStatus": electronicSealStatus,
                "operation": operation,
            },
            async : false,
            error : function(request) {
                $.modal.alertError("系统错误");
            },
            success : function(data) {
                $.operate.successCallback(data);
            }
        });
    }
</script>
</body>
</html>
