MHNC
Minh Hùng Nguyễn Cửu

Search Harmony Copy this Tailwind EnhancedSearchBarto Your Project

@using BusinessLogic.Constants.Authorize @using BusinessLogic.Dtos.Function @using Newtonsoft.Json @using Microsoft.AspNetCore.Http @using static BusinessLogic.Enums.StatusEnums @model BusinessLogic.Dtos.WarehouseCard.WarehouseCardViewModel @inject Microsoft.AspNetCore.Http.IHttpContextAccessor HttpContextAccessor @{ ViewData["Title"] = "Danh sách đơn hàng"; List<FunctionResponse> permissions = null; FunctionResponse permissionOfFunction = null; var permissionsString = HttpContextAccessor.HttpContext.Session.GetString("PERMISSIONS"); if (string.IsNullOrEmpty(permissionsString)) { } else { } { permissions = JsonConvert.DeserializeObject<List<FunctionResponse>>(permissionsString); permissionOfFunction = permissions != null ? permissions.FirstOrDefault(x => x.FunctionId == FunctionConstants.ORDER_LIST) : null; } } @section Styles { <link href="~/assets/admin/css/responsive.css" rel="stylesheet" /> <link href="~/assets/admin/css/sort-common.css" rel="stylesheet" /> <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <link href="~/assets/admin/css/icons.min.css" rel="stylesheet" /> <link href="~/assets/admin/libs/multiselect/multi-select.css" rel="stylesheet" /> <link href="~/assets/admin/libs/select2/select2.min.css" rel="stylesheet" /> <link href="~/assets/admin/libs/bootstrap-select/bootstrap-select.min.css" rel="stylesheet" /> <link href="~/assets/admin/css/app.min.css" rel="stylesheet" /> <link href="~/assets/admin/css/table-mobile.css" rel="stylesheet" /> <!-- jQuery Timepicker Addon CSS --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-ui-timepicker-addon/1.6.3/jquery-ui-timepicker-addon.min.css"> <style> .table thead th { color: #000; } .name-col { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; max-width: 160px; } .scroll-table { overflow-y: auto; } .top-panel { font-size: 13.5px; } .top-panel .card-box { position: relative; text-align: right; padding: 10px; } .top-panel i { position: absolute; top: 15px; left: 10px; } .select2-container--open { z-index: 1070; } .modal-body-overlay { position: relative; } .modal-body-overlay::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; display: block; cursor: no-drop; } .modal-body-overlay .modal-body-content { position: relative; z-index: 2; } #spinnerRow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; } .loader { border: 4px solid #f3f3f3; border-radius: 50%; border-top: 4px solid #3498db; width: 30px; height: 30px; animation: spin 1s linear infinite; margin: 10px auto; } .select2-results__group { color: #007bff; /* Change text color */ font-weight: bold; /* Make the label bold */ font-size: 14px; /* Adjust font size */ background-color: #f8f9fa; /* Light background for group label */ padding: 5px 10px; /* Add some padding */ } <style > /* Add these styles to the existing <style> section in Index.cshtml */ .payment-qr-section { border-top: 1px solid #eee; padding-top: 20px; margin-top: 20px; } .qr-code-container { display: inline-block; } .qr-code-image { border: 1px solid #ddd; padding: 5px; background-color: #fff; } .bank-info { text-align: center; } .bank-name { font-size: 16px; font-weight: bold; } .account-number, .account-holder { font-size: 14px; } .table thead tr { position: sticky; top: -1px; background: #f1f5f7; z-index: 2; } #btnSearch { background: #00c3ff; color: #fff; border-radius: 4px; padding: 6px 18px; } #warehouseFilter { min-width: 120px; } .select2-container .select2-selection--multiple { background-color: #fff !important; border: 1px solid #ced4da; border-radius: 4px; min-height: 38px; } .select2-selection__choice { background-color: #00c3ff; border: none; color: white; padding: 2px 8px; margin-top: 4px; } </style> } @section Scripts { <script src="~/assets/admin/libs/jquery-ui/jquery-ui.min.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-ui-timepicker-addon/1.6.3/jquery-ui-timepicker-addon.min.js"></script> <script src="~/assets/admin/libs/multiselect/jquery.multi-select.js"></script> <script src="~/assets/admin/libs/select2/select2.min.js"></script> <script src="~/assets/admin/libs/bootstrap-select/bootstrap-select.min.js"></script> @* <script src="~/assets/admin/js/app.min.js"></script> *@ <script src="~/admin-app/controllers/order/index.js" asp-append-version="true"></script> <script src="~/admin-app/controllers/transaction/transaction.js" asp-append-version="true"></script> <script src="~/admin-app/shared/base.js"></script> <script> var orderObj = new OrderController(); orderObj.initialize(); </script> <script> // $(document).ready(function() { // Kích hoạt Select2 cho Dropdown Kho // $('#ddlWarehouse').select2({ // placeholder: "-- Chọn kho --", // allowClear: true, // width: '100%' // }); // Kích hoạt Datepicker cho "Từ ngày" và "Đến ngày" // $('#fromDate, #toDate').datepicker({ // dateFormat: 'dd/mm/yy', // changeMonth: true, // changeYear: true // }); // $(document).ready(function () { // $('#ddlWarehouse').select2({ placeholder: "-- Chọn kho --", allowClear: true, width: '100%' }); // $('#fromDate, #toDate').datepicker({ dateFormat: 'dd/mm/yy', changeMonth: true, changeYear: true }); // $('#btn-search').click(function () { // Get the values from the filter fields // var keyword = $('#txtKeyword').val(); // var warehouseId = $('#ddlWarehouse').val(); // var fromDate = $('#fromDate').val(); // var toDate = $('#toDate').val(); // Send AJAX request with the filter parameters // $.ajax({ // url: '/Admin/Order/GetAllPaging', Adjust to the correct URL // type: 'GET', // data: { // Keyword: keyword, // WarehouseId: warehouseId, // FromDate: fromDate, // ToDate: toDate // }, // success: function (response) { // Check if data is returned // if (response && response.data && response.data.length > 0) { // var template = $('#table-template').html(); // var html = ''; // Loop through the data and render the table rows // $.each(response.data, function (i, order) { // html += Mustache.render(template, { // Id: order.id, // OrderNumber: order.orderNumber, // CustomerName: order.customerName, // WarehouseName: order.warehouseName, // OrderDate: formatDate(order.orderDate), Nếu muốn định dạng lại ngày // Status: getOrderStatus(order.status), Nếu muốn chuyển trạng thái thành text // TotalAmount: formatMoney(order.totalAmount), // TotalFinal: formatMoney(order.totalFinal), // TotalPaid: formatMoney(order.totalPaid), // CompanyId: order.companyId, // RecordCompanyId: order.recordCompanyId, // IsViewTotal: order.isViewTotal, // Dropdown: '', hoặc các nút thao tác nếu cần // Thêm các trường khác nếu template dùng! // }); // }); // Inject the rendered HTML into the table body // $('#tbl-content').html(html); // } else { // $('#tbl-content').html('<tr><td colspan="12">Không có dữ liệu.</td></tr>'); // } // }, // error: function () { // alert('Lỗi trong quá trình tìm kiếm.'); // } // }); // }); // }); // }); </script> } </script> } <input id="permissionOfFunction" type="hidden" value="@JsonConvert.SerializeObject(permissionOfFunction)" /> <input id="functionId" type="hidden" value="@FunctionConstants.ORDER_LIST" /> <!-- start page title --> <div class="row"> <div class="col-12"> <div class="page-title-box"> <div class="page-title-right"> <ol class="breadcrumb m-0"> <li class="breadcrumb-item"><a href="javascript: void(0);">Trang chủ</a></li> <li class="breadcrumb-item active">Danh sách đơn hàng</li> </ol> </div> <h4 class="page-title">Danh sách đơn hàng</h4> </div> </div> </div> <!-- end page title --> <div class="row"> <div class="col-12"> <form class="form-horizontal" role="form" id="formMaintainance"> <!-- start general information --> <div class="card"> <div class="card-body" id="information"> <div class="row top-panel zoom-top-panel"> <div class="col-lg-3 col-md-6 col-xl col-sm-6"> <div class="card-box box box-selected" data-status="0"> <div> <i class="remixicon-bill-line font-24"></i> </div> <div class="total-orders "> <h3 class="mb-1 no--margin" style="text-align: right;"></h3> <p class="text-muted mb-1 no--margin" style="min-width: 125px;"> Tống số đơn hàng </p> </div> </div> </div> <div class="col-lg-3 col-md-6 col-xl col-sm-6"> <div class="card-box box" data-status="@((short)StatusOrder.Processing)"> <div> <i class="remixicon-customer-service-2-fill font-24"></i> </div> <div class="total-order-processing"> <h3 class="mb-1 no--margin" style="text-align: right;"></h3> <p class="text-muted mb-1 no--margin">Đang xử lý</p> </div> </div> </div> <div class="col-lg-3 col-md-6 col-xl col-sm-6"> <div class="card-box box" data-status="@((short)StatusOrder.Shipping)"> <div> <i class="remixicon-car-washing-line font font-24"></i> </div> <div class="total-order-shipping"> <h3 class="mb-1 no--margin" style="text-align: right;"></h3> <p class="text-muted mb-1 no--margin">Đang giao</p> </div> </div> </div> <div class="col-lg-3 col-md-6 col-xl col-sm-6"> <div class="card-box box" data-status="@((short)StatusOrder.Delivered)"> <div> <i class="remixicon-checkbox-circle-line font-24"></i> </div> <div class="total-order-delivered"> <h3 class="mb-1 no--margin" style="text-align: right;"></h3> <p class="text-muted mb-1 no--margin">Đã giao</p> </div> </div> </div> <div class="col-lg-3 col-md-6 col-xl col-sm-6"> <div class="card-box box" data-status="@((short)StatusOrder.PartialDelivered)"> <div> <i class="remixicon-truck-line font-24"></i> </div> <div class="total-order-partial-delivered"> <h3 class="mb-1 no--margin" style="text-align: right;"></h3> <p class="text-muted mb-1 no--margin">Đã giao một phần</p> </div> </div> </div> <div class="col-lg-3 col-md-6 col-xl col-sm-6"> <div class="card-box box" data-status="@((short)StatusOrder.NotDelivered)"> <div> <i class="remixicon-close-circle-line font-24"></i> </div> <div class="total-order-not-delivered"> <h3 class="mb-1 no--margin" style="text-align: right;"></h3> <p class="text-muted mb-1 no--margin">Chưa giao</p> </div> </div> </div> <div class="col-lg-3 col-md-6 col-xl col-sm-6"> <div class="card-box box" data-status="@((short)StatusOrder.Cancelled)"> <div> <i class="remixicon-delete-bin-6-line font-24"></i> </div> <div class="total-order-canceled"> <h3 class="mb-1 no--margin" style="text-align: right;"></h3> <p class="text-muted mb-1 no--margin">Đã hủy</p> </div> </div> </div> </div> </div> </div> <div class="card"> <div class="card-body"> @* // <div class="col-3"> <select id="ddlWarehouse" class="form-control select2" style="width:100%"> <option value="">-- Chọn kho --</option> @foreach (var item in Model.Warehouses) { <option value="@item.Id">@item.Code - @item.Name</option> } </select> </div> *@ <div class="col-12"> <div class="row"> <div class="col-12 col-lg-6 col-md-6 col-sm-12 form-group d-flex flex-wrap align-items-center"> <label class="col-sm-auto col-12 col-form-label" for="txtKeyword">Tìm kiếm</label> <div class="col-sm-8 col-lg-8 col-12"> <input type="text" id="txtKeyword" class="form-control" placeholder="Mã đơn hàng, Khách hàng,.."> </div> <!-- FILTER: Chọn kho và ngày --> <div class="row align-items-center mb-2"> <div class="col-md-3 mb-2"> <input type="text" id="txtKeyword" class="form-control" placeholder="Tìm kiếm..."> </div> <div class="col-md-3 mb-2"> <select id="ddlWarehouse" class="form-control select2" multiple="multiple" style="width:100%"> @foreach (var item in Model.Warehouses) { <option value="@item.Id">@item.Code - @item.Name</option> } </select> </div> <div class="col-md-2 mb-2"> <input type="text" id="fromDate" class="form-control" placeholder="dd/mm/yyyy"> </div> <div class="col-md-2 mb-2"> <input type="text" id="toDate" class="form-control" placeholder="dd/mm/yyyy"> </div> <div class="col-md-2 mb-2"> <button type="button" id="btn-search" class="btn btn-info w-100"> <i class="fe-search"></i> Tìm kiếm </button> </div> </div> <div class="col-12 col-lg-6 col-md-6 col-sm-12 text-lg-right text-md-center text-sm-left list-btn"> @if (permissionOfFunction != null && permissionOfFunction.CanCreate) { <button type="button" class="btn btn-primary mr-2" id="btn-create-direct"> <i class="fe-plus-circle"></i> Bán trực tiếp </button> <button type="button" class="btn btn-primary mr-2" id="btn-create"> <i class="fe-plus-circle"></i> Thêm mới </button> @* <button type="button" class="btn btn-primary mr-2" id="importExcelButton" data-toggle="modal" data-target="#importExcelModal"> <i class="fe-upload"></i> Nhập Excel </button> *@ } @* <button type="button" class="btn btn-primary" id="btn-exportExcel"> <i class="fe-download"></i> Xuất Excel </button> *@ </div> </div> <div class="scroll-table"> <table id="datatable-buttons" class="table table-striped dt-responsive nowrap"> <thead> <tr class="font-weight-bold text-dark"> <th class="responsive-150" data-column="OrderNumber"> <b>Mã đơn hàng</b> <i class="mdi mdi-arrow-up"></i> <i class="mdi mdi-arrow-down"></i> </th> <th class="responsive-150" data-column="CustomerName"> <b>Khách hàng</b> <i class="mdi mdi-arrow-up"></i> <i class="mdi mdi-arrow-down"></i> </th> <th class="responsive-150" data-column="WarehouseName"> <b>Kho hàng</b> <i class="mdi mdi-arrow-up"></i> <i class="mdi mdi-arrow-down"></i> </th> <th class="responsive-150" data-column="OrderDate"> <b>Ngày đặt hàng</b> <i class="mdi mdi-arrow-up"></i> <i class="mdi mdi-arrow-down"></i> </th> @* <th style="min-width: 188px; " data-column="EmployeeId"> <b>Nhân viên bán hàng</b> <i class="mdi mdi-arrow-up"></i> <i class="mdi mdi-arrow-down"></i> </th> *@ <th class="responsive-175" data-column="Status"> <b>Trạng thái</b> <i class="mdi mdi-arrow-up"></i> <i class="mdi mdi-arrow-down"></i> </th> @* <th style="min-width: 197px; " data-column="StatusPayment"> <b>Trạng thái thanh toán</b> <i class="mdi mdi-arrow-up"></i> <i class="mdi mdi-arrow-down"></i> </th> *@ <th style="min-width: 197px;" class="text-center" data-column="TotalPrice"> <b>Tổng đơn hàng</b> <i class="mdi mdi-arrow-up"></i> <i class="mdi mdi-arrow-down"></i> </th> <th style="min-width: 197px;" class="text-center" data-column="TotalPriceReal"> <b>Tổng mua trả trừ trả</b> <i class="mdi mdi-arrow-up"></i> <i class="mdi mdi-arrow-down"></i> </th> <th style="min-width: 197px;" class="text-center" data-column="TotalPriceReal"> <b>Đã thanh toán</b> <i class="mdi mdi-arrow-up"></i> <i class="mdi mdi-arrow-down"></i> </th> @* <th style="min-width: 197px;" class="text-center"> <b>Mô tả</b> </th> *@ <th class="responsive-150 text-center"><b>Thao tác</b></th> </tr> </thead> <tbody id="tbl-content" class="orderTransaction"> <tr id="spinnerRow"> <td colspan="12" style="text-align: center;"> <div id="spinner" class="spinner-border text-primary" role="status"> <span class="sr-only">Loading...</span> </div> </td> </tr> </tbody> </table> </div> <div class="table-mobile-list"> </div> <partial name="_PaginationPartial" /> </div> </div> </div> </form> </div> </div> <div class="modal fade" id="detailModalMobile" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog modal-lg" role="document" style="max-width: 95%;"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title">Lịch sử thanh toán</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Đóng"> <span aria-hidden="true">&times;</span> </button> </div> <div class="modal-body" id="modalContentMobile"> <tr class="detail-row" style="display: none;"> <td colspan="12"> </td> </tr> </div> </div> </div> </div> <script id="table-template" type="x-tmpl-mustache"> <tr class="table-row" data-id="{{Id}}" data-record-companyid="{{RecordCompanyId}}" data-orderNumber="{{OrderNumber}}" data-customerId="{{CustomerId}}" data-view="{{IsViewTotal}}"> <td class="vertical-align-middle">{{OrderNumber}}</td> <td class="vertical-align-middle" title="{{CustomerName}}">{{{CustomerName}}}</td> <td class="name-col vertical-align-middle">{{{WarehouseName}}}</td> <td class="vertical-align-middle">{{{OrderDate}}}</td> @* <td class="name-col vertical-align-middle">{{{EmployeeId}}}</td> *@ <td class="vertical-align-middle"> <input type="hidden" class="company-id" value="{{CompanyId}}" /> {{{Status}}} </td> @* <td class="vertical-align-middle">{{{BtnChangeStatusPayment}}}</td> *@ <td class="text-right vertical-align-middle">{{{TotalAmount}}} VNĐ</td> <td class="text-right vertical-align-middle">{{{TotalFinal}}} VNĐ</td> <td class="text-right vertical-align-middle">{{{TotalPaid}}} VNĐ</td> @* <td class="text-right vertical-align-middle">{{{Description}}}</td> *@ <td style="text-align: center"> @* {{#IsViewTotal}} {{{BtnPrint}}} {{/IsViewTotal}} {{#CanRead}} {{{BtnView}}} {{/CanRead}} *@ @* {{#CanUpdate}} {{{BtnEdit}}} {{/CanUpdate}} *@ @* {{#CanDelete}} {{{BtnDelete}}} {{/CanDelete}} *@ {{{Dropdown}}} </td> </tr> <tr class="detail-row" style="display: none;"> <td colspan="12"> <div class="detail-content loading"> <ul class="nav nav-tabs detail-tabs"> <li class="nav-item"> <a class="nav-link detail-tab-link active" data-toggle="tab" href="#order-detail-{{Id}}">Chi tiết đơn hàng</a> </li> <li class="nav-item"> <a class="nav-link detail-tab-link" data-toggle="tab" href="#transaction-{{Id}}">Lịch sử thanh toán</a> </li> </ul> <div class="tab-content detail-tab-content"> <!-- Order Detail Tab --> <div class="tab-pane fade show active" id="order-detail-{{Id}}"> <div class="compact-order-detail"> <!-- General Information --> <div class="row"> <div class="col-md-3"> <label>Mã đơn hàng:</label> <span class="order-number form-control-static"></span> </div> <div class="col-md-3"> <label>Khách hàng:</label> <span class="customer-name form-control-static"></span> </div> <div class="col-md-3"> <label>Ngày đặt hàng:</label> <span class="order-date form-control-static"></span> </div> <div class="col-md-3"> <label>Ngày giao hàng dự kiến:</label> <span class="delivery-date form-control-static"></span> </div> </div> <div class="row mt-2"> <div class="col-md-3"> <label>Trạng thái:</label> <span class="order-status form-control-static"></span> </div> <div class="col-md-3"> <label>Thanh toán:</label> <span class="payment-status form-control-static"></span> </div> <div class="col-md-3"> <label>Loại đơn hàng:</label> <span class="order-type form-control-static"></span> </div> <div class="col-md-3"> <label>Ngày tạo:</label> <span class="created-date form-control-static"></span> </div> </div> <div class="row mt-2"> <div class="col-md-3"> <label>Nhân viên bán hàng:</label> <span class="sales-employee form-control-static"></span> </div> <div class="col-md-3"> <label>Tên kho hàng:</label> <span class="warehouse-name form-control-static"></span> </div> <div class="col-md-3"> <label>Chiết khấu:</label> <span class="discount form-control-static"></span> </div> <div class="col-md-3"> <label>Thuế (%):</label> <span class="tax form-control-static"></span> </div> </div> <div class="row mt-2"> <div class="col-md-3"> <label>Tiền mặt (VND):</label> <span class="cash-amount form-control-static"></span> </div> <div class="col-md-3"> <label>Chuyển khoản (VND):</label> <span class="transfer-amount form-control-static"></span> </div> <div class="col-md-3"> <label>Đơn vị vận chuyển:</label> <span class="supplier-shipping-name form-control-static"></span> </div> <div class="col-md-3"> <label>Chi phí vận chuyển (VND):</label> <span class="shipping-cost form-control-static"></span> </div> </div> <div class="row mt-2"> <div class="col-md-3"> <label>Số hóa đơn:</label> <span class="invoice-number form-control-static"></span> </div> <div class="col-md-3"> <label>Có xuất hóa đơn:</label> <span class="is-invoice-issued form-control-static"></span> </div> <div class="col-md-3"> <label>Người sửa cuối:</label> <span class="last-modified-by form-control-static"></span> </div> <div class="col-md-3"> <label>Ngày sửa cuối:</label> <span class="last-modified-on form-control-static"></span> </div> </div> <!-- Product Details and Summary Section --> <div class="row mt-3"> <!-- Product Details Table - Left Column --> <div class="col-md-9"> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>Tên sản phẩm</th> <th>SL mua</th> <th>SL xuất kho</th> <th>SL đã giao</th> <th>SL trả</th> <th>SL thực tế</th> <th>Đơn giá (VND)</th> <th>Giảm giá (%)</th> <th>Giảm giá (VND)</th> <th class="text-right">Tổng (VND)</th> <th>Ghi chú</th> </tr> </thead> <tbody class="tbl-content-order-detail"> <tr> <td colspan="11" style="text-align: center;">Không có dữ liệu.</td> </tr> </tbody> </table> </div> </div> <!-- Summary Section - Right Column --> <div class="col-md-3"> <div class="card mb-3"> <div class="card-body"> <h5 class="card-title">Tổng kết đơn hàng</h5> <div class="row mb-2"> <div class="col-6"><strong>Tổng tiền hàng:</strong></div> <div class="col-6 text-right"><span class="total-product-amount form-control-static"></span></div> </div> <div class="row mb-2"> <div class="col-6"><strong>Tổng tiền thuế:</strong></div> <div class="col-6 text-right"><span class="total-tax-amount form-control-static"></span></div> </div> <div class="row mb-2"> <div class="col-6"><strong>Tổng tiền chiết khấu:</strong></div> <div class="col-6 text-right"><span class="total-discount-amount form-control-static"></span></div> </div> <div class="row mb-2"> <div class="col-6"><strong>Chi phí vận chuyển:</strong></div> <div class="col-6 text-right"><span class="total-shipping-cost form-control-static"></span></div> </div> <hr/> <div class="row mb-2"> <div class="col-6"><strong>Tổng đơn hàng:</strong></div> <div class="col-6 text-right"><span class="total-order-amount form-control-static font-weight-bold"></span></div> </div> <div class="row mb-2"> <div class="col-6"><strong>Khách đã trả:</strong></div> <div class="col-6 text-right"><span class="total-paid-amount form-control-static"></span></div> </div> <div class="row mb-2"> <div class="col-6"><strong>Khách cần trả:</strong></div> <div class="col-6 text-right"><span class="total-due-amount form-control-static text-danger font-weight-bold"></span></div> </div> </div> </div> <div class="row mt-3"> <div class="col-12"> <div class="card"> <div class="card-body"> <h5 class="card-title">Mô tả đơn hàng</h5> <div class="order-description-text"> <!-- This will be populated with JavaScript --> </div> </div> </div> </div> </div> <div class="col-12 mt-4 payment-qr-section"> <h5 class="mb-2">Thanh toán bằng mã QR</h5> <div class="qr-code-container"> <img src="" alt="QR Code" class="qr-code-image img-fluid" style="max-width: 200px;"> <div class="bank-info mt-2"> <p class="mb-1 bank-name"><strong></strong></p> <p class="mb-1 account-number"></p> <p class="mb-0 account-holder"></p> </div> </div> </div> </div> </div> <!-- QR Code Payment Section - As a separate row below the product details --> </div> </div> <!-- Transaction History Tab --> <div class="tab-pane fade" id="transaction-{{Id}}"> <div class="table-responsive"> <table class="table" style="width: 100%"> <thead> <tr class="font-weight-bold text-dark" style="background-color: #ecf9ff;"> <th><b>Phương thức</b></th> <th style="min-width: 90px;"><b>Mã phiếu</b></th> <th><b>Thời gian</b></th> <th><b>Nhân viên</b></th> <th><b>Loại thu chi</b></th> <th><b>Người nộp/nhận</b></th> <th class="text-right"><b>Giá trị (VND)</b></th> <th><b></b></th> </tr> </thead> <tbody class="tbl-content-transaction"> <tr> <td colspan="8" style="text-align: center;"> <div class="loader"></div> </td> </tr> </tbody> </table> </div> <div class="row mt-2"> <div class="col-12 col-lg-6 col-md-6 col-sm-12 list-btn"> <button type="button" class="btn btn-primary btn-add-transaction" data-record-companyid="{{CompanyId}}"> <i class="fe-plus-circle"></i> Thanh toán </button> </div> </div> </div> </div> </div> </td> </tr> </script> <script id="table-template-mobile" type="x-tmpl-mustache"> <div class="table-mobile-item"> <div class="table-mobile-header"> <div class="table-mobile-customer-name"> <span>{{OrderNumber}}</span> </div> <a href="#" class="table-mobile-toggle order-toggle" aria-label="Toggle chi tiết đơn hàng"></a> </div> <div class="table-mobile-info"> <div class="table-mobile-info-item"><b>Khách hàng</b> <span>{{CustomerName}}</span> </div> <div class="table-mobile-info-item"><b>Kho hàng</b> <span>{{WarehouseName}}</span></div> <div class="table-mobile-info-item"><b>Ngày đặt hàng</b> <span>{{OrderDate}}</span> </div> <div class="table-mobile-info-item"><b class="text-full">Nhân viên bán hàng</b> <b class="text-short">Nhân viên </b> <span>{{EmployeeId}}</span></div> <div class="table-mobile-info-item"><b>Trạng thái</b> <span>{{{Status}}}</span> </div> @* <div class="table-mobile-info-item"><b class="text-full">Trạng thái thanh toán</b> <b class="text-short">TT thanh toán</b> <span>{{{BtnChangeStatusPayment}}}</span> </div> *@ <div class="table-mobile-info-item"><b class="text-full">Tổng đơn hàng (VND)</b> <b class="text-short">Tổng đơn </b> <span>{{{TotalAmount}}}</span> </div> <div class="table-mobile-info-item"><b class="text-full">Tổng thực thu (VND)</b> <b class="text-short">Thực thu </b> <span>{{{TotalPaid}}}</span> </div> <div class="table-mobile-info-item "> <div class="buttons-wrapper"> {{#CanRead}} {{{BtnView}}} {{/CanRead}} {{#CanDelete}} {{{BtnDelete}}} {{/CanDelete}} </div> </div> <button type="button" class="btn btn-sm btn-warning btnShowDetailMobile" data-toggle="modal" data-target="#detailModalMobile" data-ordernumber="{{OrderNumber}}" data-customerid="{{CustomerId}}"> Lịch sử thanh toán </button> </div> </div> <div class="detail-row" style="display: none;"> </div> </script> <partial name="Components/_ImportExcelModal" /> <partial name="Order/_UpdateStatusPayment" /> <partial name="Order/_ChangeStatus" /> <input id="create-receipt-type" type="hidden" value="0" /> <partial name="_ReceiptPartial" /> <partial name="_TransactionCategoryPartial" /> <partial name="_BankPartial" /> <script> function closeSecondModal() { $('#modal-add-category').modal('hide'); } function closeBankModal() { $('#modal-add-bank').modal('hide'); } function formatDate(dateStr){ if(!dateStr) return ''; var d = new Date(dateStr); return d.toLocaleDateString('vi-VN'); } function formatMoney(amount){ if(!amount) return '0'; return Number(amount).toLocaleString('vi-VN'); } function getOrderStatus(status){ switch(status){ case 1: return 'Đang xử lý'; case 3: return 'Đang giao'; case 5: return 'Đã giao'; default: return 'Khác'; } } </script> <script id="table-template" type="x-tmpl-mustache"> <tr> <td>{{orderNumber}}</td> <td>{{customerName}}</td> <td>{{warehouseName}}</td> <td>{{orderDate}}</td> <td>{{statusName}}</td> <td>{{totalPrice}}</td> <td>{{totalAmount}}</td> <td>{{totalPaid}}</td> <td>{{statusPaymentName}}</td> <td> <button class="btn btn-info">Xem chi tiết</button> </td> </tr> </script> @* } @* <script src="~/assets/admin/js/pages/table-mobile.js" asp-append-version="true"></script> *@

Prompt

About

Tailwind EnhancedSearchBar - Build a clean and responsive search bar using Tailwind CSS. Perfect for your projects. Click to get the code now!

Share

Last updated 1 month ago