<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('中药代煎需求单表修改')" />
</head>
<style>

</style>
<script>

</script>
<body>
<div class="ui-layout-center">
    <form class="form-horizontal" id="form-SYpdgChineseDecoctionst-edit" th:object="${user}">
        <h4 class="form-header h4">基本信息</h4>
        <input type="hidden" id="id" name="id" th:value="${id}">
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <!--is-required 增加星号 显示为必填-->
                    <label class="col-sm-1 control-label">创建人:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="createdBy" placeholder="创建人" th:value="${createdBy}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">创建日期:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="createdDate" placeholder="创建日期" th:value="${createdDate}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">需求单号:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="demandOrderNumber" placeholder="需求单号" th:value="${demandOrderNumber}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">第三方订单ID:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="thirdOrderId" placeholder="第三方订单ID" th:value="${thirdOrderId}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">平台用户ID:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="platformUserId" placeholder="平台用户ID" th:value="${platformUserId}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">业务ID:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="businessId" placeholder="业务ID" th:value="${businessId}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">下单人:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="orderer" placeholder="下单人" th:value="${orderer}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">下单人手机号:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="ordererPhone" placeholder="下单人手机号" th:value="${ordererPhone}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">收货人:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="consignee" placeholder="收货人" th:value="${consignee}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">加密收货人:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="encryptedConsignee" placeholder="加密收货人" th:value="${encryptedConsignee}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">加密收货人手机号:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="encryptedConsigneePhone" placeholder="加密收货人手机号" th:value="${encryptedConsigneePhone}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">收货人手机号:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="consigneePhone" placeholder="收货人手机号" th:value="${consigneePhone}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">连锁公司名称:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="chainCompanyName" placeholder="连锁公司名称" th:value="${chainCompanyName}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">存储ID:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="storageId" placeholder="存储ID" th:value="${storageId}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">是否保存:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="isSaved" placeholder="是否保存" th:value="${isSaved}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">处方图片:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="prescriptionImage" placeholder="处方图片" th:value="${prescriptionImage}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">药品剂量:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="medicineDosage" placeholder="药品剂量" th:value="${medicineDosage}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">煎药方式:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="decoctionMethod" placeholder="煎药方式" th:value="${decoctionMethod}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">下单门店:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="orderStore" placeholder="下单门店" th:value="${orderStore}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">提交时间:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="submitTime" placeholder="提交时间" th:value="${submitTime}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">取消时间:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="cancelTime" placeholder="取消时间" th:value="${cancelTime}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">支付时间:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="paymentTime" placeholder="支付时间" th:value="${paymentTime}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">订单状态：1待录方，2待付款，3已完成，4已取消:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="orderStatus" placeholder="订单状态：1待录方，2待付款，3已完成，4已取消" th:value="${orderStatus}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">备注:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="remarks" placeholder="备注" th:value="${remarks}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </form>
</div>
<div class="main-content">
    <div class="col-sm-offset-5 col-sm-10">
        <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
        <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
    </div>
</div>
<th:block th:include="include :: footer" />
</body>
</html>

<script>
    function submitHandler() {
        var prefix = ctx + "ypdg/sypdgchinesedecoctionst";
        if ($.validate.form()) {
            var data = $("#form-SYpdgChineseDecoctionst-edit").serializeArray();
            /*var status = $("input[id='status']").is(':checked') == true ? 0 : 1;
            var roleIds = $.form.selectCheckeds("role");
            var postIds = $.form.selectSelects("post");
            data.push({"name": "status", "value": status});
            data.push({"name": "roleIds", "value": roleIds});
            data.push({"name": "postIds", "value": postIds});*/
            $.operate.saveTab(prefix + "/sYpdgChineseDecoctionstEdit", data);
        }
    }
</script>
