WebHost/Views/Order/OrderDetail.cshtml

(开头部分) 8KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

@model  ViewModel.UserOrderDetailView
@using Common;
@{
    ViewBag.Title = "订单详情";
    Layout = null;
}

<script src="~/Scripts/ext.common.js"></script>
<style type="text/css">
    .modal-title { margin: 0; line-height: 1.42857143; text-align: center; }
</style>
<script type="text/javascript">

    var oid = '@Model.ID';
    var $tablesDetail, $tabled;

    $(function () {
        
        InitTableDetailList();
        // GetPayMent();
        $("#btnPrintCash").click(function () {
            PrintCash(oid)
        });
        $("#btnPrintKitchen").click(function () {
            PrintKitchen(oid)
        });
        $("#btnPrintBar").click(function () {
            PrintBar(oid)
        });
    });
    function PrintCash(oid) {
        PrintOrderTicket(oid, 10)
    }
    function PrintKitchen(oid) {
        PrintOrderTicket(oid, 11)
    }
    function PrintBar(oid) {
        PrintOrderTicket(oid, 13)
    }

    function InitTableDetailList() {
     
        $tablesDetail = $('#oreder_table').bootstrapTable({
            method: 'post',
            url: '/Order/GetMenuOrderDetail/' + oid,
            cache: false,
            striped: true,
            pagination: false,
            pageList: [100, 100],
            pageSize: 100,
            pageNumber: 1,
            sidePagination: 'server',
            clickToSelect: true,
            smartDisplay: true,
            columns: [
                {
                    field: 'DishName', title: '菜品名', formatter: function (value, row, index) {
                        return "<span color='red'>" + row.DishName + "</span>";
                    }
                },
后面还有 131 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。