ProductProfitEdit.html 2.32 KB
<!DOCTYPE html>
<div id="tt" class="easyui-layout" fit="true" style="overflow-y: scroll">
    <form name="productProfitEditForm" id="productProfitEditForm" method="post" enctype="multipart/form-data">
        <input type="hidden" name="id" id="id"/>
        <div style="margin-top: 20px;margin-left: 30px">
            <table border="0" style="width:95%;margin-top:5px;line-height:30px;" id="tab">
                <tr style="height: 60px">
                    <td width="12%">商品编码<span class="requriedInput">*</span></td>
                    <td width="50%">
                        <input id="productId" name="productId" class="easyui-numberbox"  style="width: 200px"/>
                    </td>
                </tr>

                <tr style="height: 60px" >
                    <td width="12%">平台服务费<span class="requriedInput">*</span></td>
                    <td width="20%">
                        <input id="profitRate" name="profitRate" class="easyui-numberbox" precision="2" max="100" style="width: 200px;" required="required"/>%
                    </td>
                </tr>

                <tr style="height: 60px" >
                    <td width="12%">平台服务费下限<span class="requriedInput">*</span></td>
                    <td width="20%">
                        <input id="profitMinPrice" name="profitMinPrice" class="easyui-numberbox" precision="2" min="0" style="width: 200px;" required="required"/>
                    </td>
                </tr>

                <tr style="height: 60px" >
                    <td width="12%">平台服务费上限<span class="requriedInput">*</span></td>
                    <td width="20%">
                        <input id="profitMaxPrice" name="profitMaxPrice" class="easyui-numberbox" precision="2" min="0" style="width: 200px;" required="required"/>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</div>
<script>
    $(function () {
        $('#productProfitEditForm #id').val(editId);
        if (editId > 0) {
            $.post(contextPath + "/productProfit/detail", {
                id: editId
            }, function (data) {
                $("#productProfitEditForm #productId").numberbox('readonly', true);
                $("#productProfitEditForm").form("load", data.data);
            });
        }
    });

</script>