1646 lines
88 KiB
Plaintext
1646 lines
88 KiB
Plaintext
|
|
<!DOCTYPE html>
|
|
<html dir="ltr" lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<!-- Tell the browser to be responsive to screen width -->
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="keywords"
|
|
content="wrappixel, admin dashboard, html css dashboard, web dashboard, bootstrap 5 admin, bootstrap 5, css3 dashboard, bootstrap 5 dashboard, Matrix lite admin bootstrap 5 dashboard, frontend, responsive bootstrap 5 admin template, Matrix admin lite design, Matrix admin lite dashboard bootstrap 5 dashboard template" />
|
|
<meta name="description"
|
|
content="Matrix Admin Lite Free Version is powerful and clean admin dashboard template, inpired from Bootstrap Framework" />
|
|
<meta name="robots" content="noindex,nofollow" />
|
|
<title>PSTW Centralize Web System</title>
|
|
<!-- Favicon icon -->
|
|
<link rel="icon"
|
|
type="image/png"
|
|
sizes="16x16"
|
|
href="/assets/images/favicon.png" />
|
|
|
|
|
|
<!-- Custom CSS -->
|
|
<link rel="stylesheet" href="/assets/libs/select2/dist/css/select2.min.css" />
|
|
<link rel="stylesheet" href="/assets/libs/jquery-minicolors/jquery.minicolors.css" />
|
|
<link rel="stylesheet" href="/assets/libs/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css" />
|
|
<link rel="stylesheet" href="/assets/libs/quill/dist/quill.snow.css" />
|
|
<link href="/dist/css/style.min.css" rel="stylesheet" />
|
|
<link href="/lib/printjs/print.min.css" rel="stylesheet" />
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
|
|
<!-- DataTables CSS-->
|
|
<link href="/lib/datatables/datatables.css" rel="stylesheet" />
|
|
<!-- Vue Js -->
|
|
<script src="/js/vue.global.js"></script>
|
|
<!-- QR Js -->
|
|
<script src="/lib/qrcode/qrcode.min.js"></script>
|
|
|
|
|
|
|
|
|
|
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
|
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
|
<!--[if lt IE 9]>
|
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
|
<![endif]-->
|
|
</head>
|
|
<body>
|
|
<style>
|
|
|
|
.btn-teal {
|
|
background-color: #20c997; /* Teal color */
|
|
color: #ffffff; /* White text */
|
|
border: none; /* Remove border */
|
|
}
|
|
|
|
.btn-teal:hover {
|
|
background-color: #17a589; /* Darker teal on hover */
|
|
color: #ffffff;
|
|
}
|
|
|
|
.btn-teal:focus,
|
|
.btn-teal.focus {
|
|
box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.5); /* Teal shadow on focus */
|
|
}
|
|
</style>
|
|
<!-- ============================================================== -->
|
|
<!-- Preloader - style you can find in spinners.css -->
|
|
<!-- ============================================================== -->
|
|
<div b-lhtx71ohus id="preloader" class="preloader">
|
|
<div b-lhtx71ohus class="lds-ripple">
|
|
<div b-lhtx71ohus class="lds-pos"></div>
|
|
<div b-lhtx71ohus class="lds-pos"></div>
|
|
</div>
|
|
</div>
|
|
<div b-lhtx71ohus class="modal fade" id="loadingModal" data-bs-backdrop="static" tabindex="-1" aria-hidden="true" style="z-index: 1051;">
|
|
<div b-lhtx71ohus class="modal-dialog modal-dialog-centered">
|
|
<div b-lhtx71ohus class="modal-content">
|
|
<div b-lhtx71ohus class="modal-header">
|
|
<button b-lhtx71ohus type="button" class="closeModal" data-dismiss="modal" aria-label="Close">
|
|
<span b-lhtx71ohus aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div b-lhtx71ohus class="modal-body text-center">
|
|
<div b-lhtx71ohus class="spinner-border text-primary" role="status">
|
|
<span b-lhtx71ohus class="visually-hidden">Loading...</span>
|
|
</div>
|
|
<p b-lhtx71ohus class="mt-3">Please wait while we process your request...</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- ============================================================== -->
|
|
<!-- Main wrapper - style you can find in pages.scss -->
|
|
<!-- ============================================================== -->
|
|
<div b-lhtx71ohus id="main-wrapper"
|
|
data-layout="vertical"
|
|
data-navbarbg="skin5"
|
|
data-sidebartype="full"
|
|
data-sidebar-position="absolute"
|
|
data-header-position="absolute"
|
|
data-boxed-layout="full">
|
|
<!-- ============================================================== -->
|
|
<!-- Topbar header - style you can find in pages.scss -->
|
|
<!-- ============================================================== -->
|
|
<header b-lhtx71ohus class="topbar" data-navbarbg="skin5">
|
|
<nav b-lhtx71ohus class="navbar top-navbar navbar-expand-md navbar-dark">
|
|
<div b-lhtx71ohus class="navbar-header" data-logobg="skin5">
|
|
<!-- ============================================================== -->
|
|
<!-- Logo -->
|
|
<!-- ============================================================== -->
|
|
<a class="navbar-brand" href="/">
|
|
<!-- Logo icon -->
|
|
<b b-lhtx71ohus class="logo-icon ps-2">
|
|
<!--You can put here icon as well // <i class="wi wi-sunset"></i> //-->
|
|
<!-- Dark Logo icon -->
|
|
<img b-lhtx71ohus src="/assets/images/logo-icon.png"
|
|
alt="homepage"
|
|
class="light-logo"
|
|
width="25" />
|
|
</b>
|
|
<!--End Logo icon -->
|
|
<!-- Logo text -->
|
|
<span b-lhtx71ohus class="logo-text ms-2">
|
|
<!-- dark Logo text -->
|
|
<img b-lhtx71ohus src="/assets/images/logo-text.png"
|
|
alt="homepage"
|
|
class="light-logo" />
|
|
</span>
|
|
<!-- Logo icon -->
|
|
<!-- <b class="logo-icon"> -->
|
|
<!--You can put here icon as well // <i class="wi wi-sunset"></i> //-->
|
|
<!-- Dark Logo icon -->
|
|
<!-- <img src="/assets/images/logo-text.png" alt="homepage" class="light-logo" /> -->
|
|
<!-- </b> -->
|
|
<!--End Logo icon -->
|
|
</a>
|
|
<!-- ============================================================== -->
|
|
<!-- End Logo -->
|
|
<!-- ============================================================== -->
|
|
<!-- ============================================================== -->
|
|
<!-- Toggle which is visible on mobile only -->
|
|
<!-- ============================================================== -->
|
|
<a b-lhtx71ohus class="nav-toggler waves-effect waves-light d-block d-md-none"
|
|
href="javascript:void(0)">
|
|
<i b-lhtx71ohus class="ti-menu ti-close"></i>
|
|
</a>
|
|
</div>
|
|
<!-- ============================================================== -->
|
|
<!-- End Logo -->
|
|
<!-- ============================================================== -->
|
|
<div b-lhtx71ohus class="navbar-collapse collapse"
|
|
id="navbarSupportedContent"
|
|
data-navbarbg="skin5">
|
|
<!-- ============================================================== -->
|
|
<!-- toggle and nav items -->
|
|
<!-- ============================================================== -->
|
|
<ul b-lhtx71ohus class="navbar-nav float-start me-auto">
|
|
<li b-lhtx71ohus class="nav-item d-none d-lg-block">
|
|
<a b-lhtx71ohus class="nav-link sidebartoggler waves-effect waves-light"
|
|
href="javascript:void(0)"
|
|
data-sidebartype="mini-sidebar">
|
|
<i b-lhtx71ohus class="mdi mdi-menu font-24"></i>
|
|
</a>
|
|
</li>
|
|
<li b-lhtx71ohus class="nav-item">
|
|
<a class="nav-link" href="/">Home</a>
|
|
</li>
|
|
<li b-lhtx71ohus class="nav-item">
|
|
<a class="nav-link" href="/Home/Privacy">Privacy</a>
|
|
</li>
|
|
<!-- ============================================================== -->
|
|
<!-- create new -->
|
|
<!-- ============================================================== -->
|
|
<!--<li class="nav-item dropdown">
|
|
<a class="nav-link dropdown-toggle"
|
|
href="#"
|
|
id="navbarDropdown"
|
|
role="button"
|
|
data-bs-toggle="dropdown"
|
|
aria-expanded="false">
|
|
<span class="d-none d-md-block">
|
|
Create New <i class="fa fa-angle-down"></i>
|
|
</span>
|
|
<span class="d-block d-md-none">
|
|
<i class="fa fa-plus"></i>
|
|
</span>
|
|
</a>
|
|
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
|
|
<li><a class="dropdown-item" href="#">Action</a></li>
|
|
<li><a class="dropdown-item" href="#">Another action</a></li>
|
|
<li><hr class="dropdown-divider" /></li>
|
|
<li>
|
|
<a class="dropdown-item" href="#">Something else here</a>
|
|
</li>
|
|
</ul>
|
|
</li> b-lhtx71ohus-->
|
|
<!-- ============================================================== -->
|
|
<!-- Search -->
|
|
<!-- ============================================================== -->
|
|
<!--<li class="nav-item search-box">
|
|
<a class="nav-link waves-effect waves-dark"
|
|
href="javascript:void(0)">
|
|
<i class="mdi mdi-magnify fs-4"></i>
|
|
</a>
|
|
<form class="app-search position-absolute">
|
|
<input type="text"
|
|
class="form-control"
|
|
placeholder="Search & enter" />
|
|
<a class="srh-btn"><i class="mdi mdi-window-close"></i></a>
|
|
</form>
|
|
</li> b-lhtx71ohus-->
|
|
</ul>
|
|
<!-- ============================================================== -->
|
|
<!-- Right side toggle and nav items -->
|
|
<!-- ============================================================== -->
|
|
<ul b-lhtx71ohus class="navbar-nav float-end">
|
|
<!-- ============================================================== -->
|
|
<!-- Comment -->
|
|
<!-- ============================================================== -->
|
|
|
|
|
|
<li class="nav-item d-inline">
|
|
<a id="manage" class="nav-link" title="Manage" href="/Identity/Account/Manage">
|
|
Hello core3user@pstw.com.my!
|
|
</a>
|
|
</li>
|
|
<li class="nav-item d-inline">
|
|
<a id="logout" class="nav-link" href="javascript:void(0);" onclick="logout()">Logout</a>
|
|
</li>
|
|
<input name="__RequestVerificationToken" type="hidden" value="CfDJ8N0yQF8b8n9Ln4B-pzXVXnJtOdSWlq4Svq6oeaiyGhXrl5j_t55zHAmxEabQxcEgLgFfhCcfQb_QJUzEbTC7fdiTcVkuj6U2HTPdCPzNhJYM_1jQkoqw6-WYeIOaenm34TfkoivpHQuXoSm3xNqvJciBIQZuVirQS4ibjAV-DUTGXnBsE0F1rWwIU_najXJulA" /> <script>
|
|
function logout() {
|
|
const returnUrl = '/';
|
|
fetch('/Identity/Account/Logout', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/x-www-form-urlencoded',
|
|
},
|
|
body: `__RequestVerificationToken=${document.querySelector('input[name="__RequestVerificationToken"]').value}&returnUrl=${encodeURIComponent(returnUrl)}`
|
|
}).then(response => {
|
|
if (response.ok) {
|
|
window.location.href = returnUrl;
|
|
} else {
|
|
alert('Logout failed.');
|
|
}
|
|
}).catch(error => {
|
|
console.error('Logout error:', error);
|
|
});
|
|
}
|
|
</script>
|
|
|
|
<!-- ============================================================== -->
|
|
<!-- End Comment -->
|
|
<!-- ============================================================== -->
|
|
<!-- ============================================================== -->
|
|
<!-- Messages -->
|
|
<!-- ============================================================== -->
|
|
<!-- ============================================================== -->
|
|
<!-- End Messages -->
|
|
<!-- ============================================================== -->
|
|
<!-- ============================================================== -->
|
|
<!-- User profile and search -->
|
|
<!-- ============================================================== -->
|
|
<!-- ============================================================== -->
|
|
<!-- User profile and search -->
|
|
<!-- ============================================================== -->
|
|
</ul>
|
|
</div>
|
|
</nav>
|
|
</header>
|
|
<!-- ============================================================== -->
|
|
<!-- End Topbar header -->
|
|
<!-- ============================================================== -->
|
|
<!-- ============================================================== -->
|
|
<!-- Left Sidebar - style you can find in sidebar.scss -->
|
|
<!-- ============================================================== -->
|
|
<aside b-lhtx71ohus class="left-sidebar" data-sidebarbg="skin5">
|
|
<!-- Sidebar scroll-->
|
|
<div b-lhtx71ohus class="scroll-sidebar">
|
|
<!-- Sidebar navigation-->
|
|
<nav b-lhtx71ohus class="sidebar-nav">
|
|
<ul b-lhtx71ohus id="sidebarnav" class="pt-4">
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a b-lhtx71ohus class="sidebar-link has-arrow waves-effect waves-dark"
|
|
href="javascript:void(0)"
|
|
aria-expanded="false">
|
|
<i b-lhtx71ohus class="mdi mdi-receipt"></i><span b-lhtx71ohus class="hide-menu">Administrator </span>
|
|
</a>
|
|
<ul b-lhtx71ohus aria-expanded="false" class="collapse first-level">
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link" aria-expanded="false" href="/Admin">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">Admin Dashboard</span>
|
|
</a>
|
|
</li>
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link" aria-expanded="false" href="/Admin/ModuleAdmin">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">Module Administration</span>
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</li>
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a b-lhtx71ohus class="sidebar-link waves-effect waves-dark sidebar-link"
|
|
href="#"
|
|
aria-expanded="false">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">Dashboard</span>
|
|
</a>
|
|
</li>
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a b-lhtx71ohus class="sidebar-link has-arrow waves-effect waves-dark"
|
|
href="javascript:void(0)"
|
|
aria-expanded="false">
|
|
<i b-lhtx71ohus class="mdi mdi-receipt"></i><span b-lhtx71ohus class="hide-menu">Inventory </span>
|
|
</a>
|
|
<ul b-lhtx71ohus aria-expanded="false" class="collapse first-level">
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link" aria-expanded="false" href="/Inventory/ItemMovement/UserDashboard">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">User Dashboard</span>
|
|
</a>
|
|
</li>
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link" aria-expanded="false" href="/Inventory/InventoryMaster/ProductRegistration">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">Product Registration</span>
|
|
</a>
|
|
</li>
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link" aria-expanded="false" href="/Inventory/InventoryMaster/ItemRegistration">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">Item Registration</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a b-lhtx71ohus class="sidebar-link has-arrow waves-effect waves-dark"
|
|
href="javascript:void(0)"
|
|
aria-expanded="false">
|
|
<i b-lhtx71ohus class="mdi mdi-receipt"></i><span b-lhtx71ohus class="hide-menu">Report</span>
|
|
</a>
|
|
<ul b-lhtx71ohus aria-expanded="false" class="collapse first-level">
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link" aria-expanded="false" href="/Report/Reporting">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">Admin Dashboard</span>
|
|
</a>
|
|
</li>
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link" aria-expanded="false" href="/Report/Reporting/InventoryReport">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">Inventory Report</span>
|
|
</a>
|
|
</li>
|
|
<!--MMS-->
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a b-lhtx71ohus class="sidebar-link has-arrow waves-effect waves-dark"
|
|
href="javascript:void(0)" aria-expanded="false">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">MMS</span>
|
|
</a>
|
|
<ul b-lhtx71ohus aria-expanded="false" class="collapse first-level">
|
|
<!-- Marine subsection -->
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a b-lhtx71ohus class="sidebar-link has-arrow waves-effect waves-dark"
|
|
href="javascript:void(0)" aria-expanded="false">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">Marine</span>
|
|
</a>
|
|
<ul b-lhtx71ohus aria-expanded="false" class="collapse second-level">
|
|
<!-- Tar Ball Sampling Form link -->
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark" aria-expanded="false" href="/MMS/Marine/TarBallForm">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">Tarball Report</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a b-lhtx71ohus class="sidebar-link has-arrow waves-effect waves-dark"
|
|
href="javascript:void(0)"
|
|
aria-expanded="false">
|
|
<i b-lhtx71ohus class="mdi mdi-receipt"></i><span b-lhtx71ohus class="hide-menu">User Overtime</span>
|
|
</a>
|
|
<ul b-lhtx71ohus aria-expanded="false" class="collapse first-level">
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link" aria-expanded="false" href="/OTcalculate/Overtime/OtRegister">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">OT Register</span>
|
|
</a>
|
|
</li>
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link" aria-expanded="false" href="/OTcalculate/Overtime/OtRecords">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">OT Records</span>
|
|
</a>
|
|
</li>
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link" aria-expanded="false" href="/OTcalculate/Overtime/OtStatus">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">OT Status</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a b-lhtx71ohus class="sidebar-link has-arrow waves-effect waves-dark"
|
|
href="javascript:void(0)"
|
|
aria-expanded="false">
|
|
<i b-lhtx71ohus class="mdi mdi-receipt"></i><span b-lhtx71ohus class="hide-menu">Overtime Approval</span>
|
|
</a>
|
|
<ul b-lhtx71ohus aria-expanded="false" class="collapse first-level">
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link" aria-expanded="false" href="/OTcalculate/ApprovalDashboard/Approval">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">Pending Approval</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a b-lhtx71ohus class="sidebar-link has-arrow waves-effect waves-dark"
|
|
href="javascript:void(0)"
|
|
aria-expanded="false">
|
|
<i b-lhtx71ohus class="mdi mdi-receipt"></i><span b-lhtx71ohus class="hide-menu">HR Dashboard</span>
|
|
</a>
|
|
<ul b-lhtx71ohus aria-expanded="false" class="collapse first-level">
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link" aria-expanded="false" href="/OTcalculate/HrDashboard/Settings">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">Settings</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a b-lhtx71ohus class="sidebar-link has-arrow waves-effect waves-dark"
|
|
href="javascript:void(0)"
|
|
aria-expanded="false">
|
|
<i b-lhtx71ohus class="mdi mdi-receipt"></i><span b-lhtx71ohus class="hide-menu">Rooms Booking</span>
|
|
</a>
|
|
<ul b-lhtx71ohus aria-expanded="false" class="collapse first-level">
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link" aria-expanded="false" href="/Bookings/Bookings/Managers">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">Assign</span>
|
|
</a>
|
|
</li>
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link" aria-expanded="false" href="/Bookings/Bookings">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">List</span>
|
|
</a>
|
|
</li>
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link" aria-expanded="false" href="/Bookings/Bookings/Calendar">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">Calendar</span>
|
|
</a>
|
|
</li>
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link" aria-expanded="false" href="/Bookings/Bookings/Room">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">Rooms</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a b-lhtx71ohus class="sidebar-link has-arrow waves-effect waves-dark"
|
|
href="javascript:void(0)"
|
|
aria-expanded="false">
|
|
<i b-lhtx71ohus class="mdi mdi-receipt"></i><span b-lhtx71ohus class="hide-menu">IT Request Form</span>
|
|
</a>
|
|
<ul b-lhtx71ohus aria-expanded="false" class="collapse first-level">
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link" aria-expanded="false" href="/IT/ApprovalDashboard/Admin">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">Assignings</span>
|
|
</a>
|
|
</li>
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link" aria-expanded="false" href="/IT/ApprovalDashboard/Create">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">Registeration</span>
|
|
</a>
|
|
</li>
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link" aria-expanded="false" href="/IT/ApprovalDashboard/MyRequests">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">My Requests</span>
|
|
</a>
|
|
</li>
|
|
<li b-lhtx71ohus class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link" aria-expanded="false" href="/IT/ApprovalDashboard/Approval">
|
|
<i b-lhtx71ohus class="mdi mdi-view-dashboard"></i><span b-lhtx71ohus class="hide-menu">Approval</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<!-- <li class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link"
|
|
href="charts.html"
|
|
aria-expanded="false">
|
|
<i class="mdi mdi-chart-bar"></i><span class="hide-menu">Charts</span>
|
|
</a>
|
|
</li>
|
|
<li class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link"
|
|
href="widgets.html"
|
|
aria-expanded="false">
|
|
<i class="mdi mdi-chart-bubble"></i><span class="hide-menu">Widgets</span>
|
|
</a>
|
|
</li>
|
|
<li class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link"
|
|
href="tables.html"
|
|
aria-expanded="false">
|
|
<i class="mdi mdi-border-inside"></i><span class="hide-menu">Tables</span>
|
|
</a>
|
|
</li>
|
|
<li class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link"
|
|
href="grid.html"
|
|
aria-expanded="false">
|
|
<i class="mdi mdi-blur-linear"></i><span class="hide-menu">Full Width</span>
|
|
</a>
|
|
</li>
|
|
<li class="sidebar-item">
|
|
<a class="sidebar-link has-arrow waves-effect waves-dark"
|
|
href="javascript:void(0)"
|
|
aria-expanded="false">
|
|
<i class="mdi mdi-receipt"></i><span class="hide-menu">Forms </span>
|
|
</a>
|
|
<ul aria-expanded="false" class="collapse first-level">
|
|
<li class="sidebar-item">
|
|
<a href="form-basic.html" class="sidebar-link">
|
|
<i class="mdi mdi-note-outline"></i><span class="hide-menu"> Form Basic </span>
|
|
</a>
|
|
</li>
|
|
<li class="sidebar-item">
|
|
<a href="form-wizard.html" class="sidebar-link">
|
|
<i class="mdi mdi-note-plus"></i><span class="hide-menu"> Form Wizard </span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link"
|
|
href="pages-buttons.html"
|
|
aria-expanded="false">
|
|
<i class="mdi mdi-relative-scale"></i><span class="hide-menu">Buttons</span>
|
|
</a>
|
|
</li>
|
|
<li class="sidebar-item">
|
|
<a class="sidebar-link has-arrow waves-effect waves-dark"
|
|
href="javascript:void(0)"
|
|
aria-expanded="false">
|
|
<i class="mdi mdi-face"></i><span class="hide-menu">Icons </span>
|
|
</a>
|
|
<ul aria-expanded="false" class="collapse first-level">
|
|
<li class="sidebar-item">
|
|
<a href="icon-material.html" class="sidebar-link">
|
|
<i class="mdi mdi-emoticon"></i><span class="hide-menu"> Material Icons </span>
|
|
</a>
|
|
</li>
|
|
<li class="sidebar-item">
|
|
<a href="icon-fontawesome.html" class="sidebar-link">
|
|
<i class="mdi mdi-emoticon-cool"></i><span class="hide-menu"> Font Awesome Icons </span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="sidebar-item">
|
|
<a class="sidebar-link waves-effect waves-dark sidebar-link"
|
|
href="pages-elements.html"
|
|
aria-expanded="false">
|
|
<i class="mdi mdi-pencil"></i><span class="hide-menu">Elements</span>
|
|
</a>
|
|
</li>
|
|
<li class="sidebar-item">
|
|
<a class="sidebar-link has-arrow waves-effect waves-dark"
|
|
href="javascript:void(0)"
|
|
aria-expanded="false">
|
|
<i class="mdi mdi-move-resize-variant"></i><span class="hide-menu">Addons </span>
|
|
</a>
|
|
<ul aria-expanded="false" class="collapse first-level">
|
|
<li class="sidebar-item">
|
|
<a href="index2.html" class="sidebar-link">
|
|
<i class="mdi mdi-view-dashboard"></i><span class="hide-menu"> Dashboard-2 </span>
|
|
</a>
|
|
</li>
|
|
<li class="sidebar-item">
|
|
<a href="pages-gallery.html" class="sidebar-link">
|
|
<i class="mdi mdi-multiplication-box"></i><span class="hide-menu"> Gallery </span>
|
|
</a>
|
|
</li>
|
|
<li class="sidebar-item">
|
|
<a href="pages-calendar.html" class="sidebar-link">
|
|
<i class="mdi mdi-calendar-check"></i><span class="hide-menu"> Calendar </span>
|
|
</a>
|
|
</li>
|
|
<li class="sidebar-item">
|
|
<a href="pages-invoice.html" class="sidebar-link">
|
|
<i class="mdi mdi-bulletin-board"></i><span class="hide-menu"> Invoice </span>
|
|
</a>
|
|
</li>
|
|
<li class="sidebar-item">
|
|
<a href="pages-chat.html" class="sidebar-link">
|
|
<i class="mdi mdi-message-outline"></i><span class="hide-menu"> Chat Option </span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="sidebar-item">
|
|
<a class="sidebar-link has-arrow waves-effect waves-dark"
|
|
href="javascript:void(0)"
|
|
aria-expanded="false">
|
|
<i class="mdi mdi-account-key"></i><span class="hide-menu">Authentication </span>
|
|
</a>
|
|
<ul aria-expanded="false" class="collapse first-level">
|
|
<li class="sidebar-item">
|
|
<a href="authentication-login.html" class="sidebar-link">
|
|
<i class="mdi mdi-all-inclusive"></i><span class="hide-menu"> Login </span>
|
|
</a>
|
|
</li>
|
|
<li class="sidebar-item">
|
|
<a href="authentication-register.html" class="sidebar-link">
|
|
<i class="mdi mdi-all-inclusive"></i><span class="hide-menu"> Register </span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="sidebar-item">
|
|
<a class="sidebar-link has-arrow waves-effect waves-dark"
|
|
href="javascript:void(0)"
|
|
aria-expanded="false">
|
|
<i class="mdi mdi-alert"></i><span class="hide-menu">Errors </span>
|
|
</a>
|
|
<ul aria-expanded="false" class="collapse first-level">
|
|
<li class="sidebar-item">
|
|
<a href="error-403.html" class="sidebar-link">
|
|
<i class="mdi mdi-alert-octagon"></i><span class="hide-menu"> Error 403 </span>
|
|
</a>
|
|
</li>
|
|
<li class="sidebar-item">
|
|
<a href="error-404.html" class="sidebar-link">
|
|
<i class="mdi mdi-alert-octagon"></i><span class="hide-menu"> Error 404 </span>
|
|
</a>
|
|
</li>
|
|
<li class="sidebar-item">
|
|
<a href="error-405.html" class="sidebar-link">
|
|
<i class="mdi mdi-alert-octagon"></i><span class="hide-menu"> Error 405 </span>
|
|
</a>
|
|
</li>
|
|
<li class="sidebar-item">
|
|
<a href="error-500.html" class="sidebar-link">
|
|
<i class="mdi mdi-alert-octagon"></i><span class="hide-menu"> Error 500 </span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="sidebar-item p-3">
|
|
<a href="https://github.com/wrappixel/matrix-admin-bt5"
|
|
target="_blank"
|
|
class="
|
|
w-100
|
|
btn btn-cyan
|
|
d-flex
|
|
align-items-center
|
|
text-white
|
|
">
|
|
<i class="mdi mdi-cloud-download font-20 me-2"></i>Download
|
|
Free
|
|
</a>
|
|
</li> -->
|
|
</ul>
|
|
</nav>
|
|
<!-- End Sidebar navigation -->
|
|
</div>
|
|
<!-- End Sidebar scroll-->
|
|
</aside>
|
|
<!-- ============================================================== -->
|
|
<!-- End Left Sidebar - style you can find in sidebar.scss -->
|
|
<!-- ============================================================== -->
|
|
<!-- ============================================================== -->
|
|
<!-- Page wrapper -->
|
|
<!-- ============================================================== -->
|
|
<div b-lhtx71ohus class="page-wrapper">
|
|
<!-- ============================================================== -->
|
|
<!-- Bread crumb and right sidebar toggle -->
|
|
<!-- ============================================================== -->
|
|
<div b-lhtx71ohus class="page-breadcrumb">
|
|
<div b-lhtx71ohus class="row">
|
|
<div b-lhtx71ohus class="col-12 d-flex no-block align-items-center">
|
|
<h1 b-lhtx71ohus class="m-0 page-title">QR Scanner</h1>
|
|
<div b-lhtx71ohus class="ms-auto text-end">
|
|
<nav b-lhtx71ohus aria-label="breadcrumb">
|
|
<ol b-lhtx71ohus class="breadcrumb">
|
|
<li b-lhtx71ohus class="breadcrumb-item"><a b-lhtx71ohus href="#">Home</a></li>
|
|
<li b-lhtx71ohus class="breadcrumb-item active" aria-current="page">
|
|
Library
|
|
</li>
|
|
</ol>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- ============================================================== -->
|
|
<!-- End Bread crumb and right sidebar toggle -->
|
|
<!-- ============================================================== -->
|
|
<!-- ============================================================== -->
|
|
<!-- Container fluid -->
|
|
<!-- ============================================================== -->
|
|
<div b-lhtx71ohus class="container-fluid">
|
|
<!-- ============================================================== -->
|
|
<!-- Start Page Content -->
|
|
<!-- ============================================================== -->
|
|
<div b-lhtx71ohus class="row my-1">
|
|
<style scoped>
|
|
.error {
|
|
font-weight: bold;
|
|
color: red;
|
|
}
|
|
|
|
.barcode-format-checkbox {
|
|
margin-right: 10px;
|
|
white-space: nowrap;
|
|
display: inline-block;
|
|
}
|
|
|
|
select {
|
|
width: 200px; /* Adjust width as needed */
|
|
padding: 5px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-6 col-md-6 col-lg-3">
|
|
<div class="card card-hover">
|
|
<a href="/Inventory/ItemMovement/ItemRequest">
|
|
<div class="box bg-info text-center">
|
|
<h1 class="font-light text-white">
|
|
<i class="mdi mdi-checkbox-multiple-blank"></i>
|
|
</h1>
|
|
<h6 class="text-white">Product Request</h6>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-6 col-md-6 col-lg-3">
|
|
<div class="card card-hover">
|
|
<a href="/Inventory/ItemMovement/QrUser">
|
|
<div class="box bg-success text-center">
|
|
<h1 class="font-light text-white">
|
|
<i class="mdi mdi-checkbox-multiple-blank-circle"></i>
|
|
</h1>
|
|
<h6 class="text-white">Scan Items</h6>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-6 col-md-6 col-lg-3">
|
|
<div class="card card-hover">
|
|
<a href="/Inventory/ItemMovement/ItemMovementUser">
|
|
<div class="box bg-warning text-center">
|
|
<h1 class="font-light text-white">
|
|
<i class="mdi mdi-factory"></i>
|
|
</h1>
|
|
<h6 class="text-white">Item Movement</h6>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="registerItem" class="row">
|
|
<div class="row card">
|
|
<div class="card-header">
|
|
<button v-if="displayStatus !== null" v-on:click="resetScanner" class="btn btn-secondary">
|
|
<i class="fas fa-arrow-left"></i> Back to Scanner
|
|
</button>
|
|
</div>
|
|
<div class="card-body">
|
|
|
|
<select v-if="displayStatus == null" class="form-select" v-model="selectedCameraId" v-on:change="updateCamera">
|
|
<option v-for="device in videoInputDevices" :key="device.deviceId" :value="device.deviceId">
|
|
{{ device.label || `Camera ${videoInputDevices.indexOf(device) + 1}` }}
|
|
</option>
|
|
</select>
|
|
|
|
<div id="registerItem" v-if="displayStatus == null" data-aos="fade-right">
|
|
<p style="text-align:center; padding:10px;">Scan QR Code Here:</p>
|
|
|
|
<qrcode-stream :constraints="selectedConstraints"
|
|
:formats="['qr_code']"
|
|
:track="trackFunctionSelected.value"
|
|
v-on:camera-on="onCameraReady"
|
|
v-on:detect="onDecode"
|
|
v-on:error="onError">
|
|
</qrcode-stream>
|
|
|
|
<p class="error">{{ error }}</p>
|
|
|
|
</div>
|
|
<!--RECEIVE OR RETURN INTERFACE -->
|
|
<div style="text-align: center; margin: 20px 0;" v-if="displayStatus === 'arrived' && thisItem.currentStationId != null">
|
|
<h2>Item Receive Information :</h2>
|
|
<h3>Station Assign</h3>
|
|
</div>
|
|
<div style="text-align: center; margin: 20px 0;" v-if="displayStatus === 'arrived' && thisItem.currentStationId == null">
|
|
<h2>Item Receive Information :</h2>
|
|
<h3>Self Assign</h3>
|
|
</div>
|
|
|
|
<div style="text-align: center; margin: 20px 0;" v-if="displayStatus === 'return' && thisItem.currentStationId != null">
|
|
<h2>Item Return Information :</h2>
|
|
<h3>Station</h3>
|
|
</div>
|
|
<div style="text-align: center; margin: 20px 0;" v-if="displayStatus === 'return' && thisItem.currentStationId == null">
|
|
<h2>Item Return Information :</h2>
|
|
<h3>Self Assign</h3>
|
|
</div>
|
|
|
|
<div v-if="displayStatus === 'arrived' || displayStatus === 'return'" style="display: flex; justify-content: center; align-items: center;">
|
|
|
|
<div class="col-lg-7 col-11 border rounded p-3 shadow-sm">
|
|
<div class="row m-3 d-flex align-items-center justify-content-center">
|
|
<div class="col-lg-7 col-11 border rounded p-3 shadow-sm">
|
|
<div class="col-12 text-center">
|
|
<img :src="thisItem.imageProduct" alt="Product Image" class="img-fluid rounded" data-toggle="modal" data-target="#imageModal" style="max-height: 300px;" />
|
|
</div>
|
|
<div class="col-12 text-center mt-3">
|
|
<p class="h4 fw-bold text-primary">{{ thisItem.uniqueID }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Item Name -->
|
|
<div class="col-12 mb-3">
|
|
<p class="h5 fw-bold">
|
|
<i class="fas fa-tag me-2 text-secondary"></i>Item Name:
|
|
<span class="text-muted">{{ thisItem.productName }}</span>
|
|
</p>
|
|
</div>
|
|
|
|
<!-- Part Number -->
|
|
<div class="col-12 mb-3">
|
|
<p class="h5 fw-bold">
|
|
<i class="fas fa-barcode me-2 text-secondary"></i>Part Number:
|
|
<span class="text-muted">{{ thisItem.partNumber }}</span>
|
|
</p>
|
|
</div>
|
|
|
|
<!-- Serial Number -->
|
|
<div class="col-12 mb-3">
|
|
<p class="h5 fw-bold">
|
|
<i class="fas fa-hashtag me-2 text-secondary"></i>Serial Number:
|
|
<span class="text-muted">{{ thisItem.serialNumber }}</span>
|
|
</p>
|
|
</div>
|
|
|
|
<!-- Station -->
|
|
<div class="col-12 mb-3">
|
|
<p class="h5 fw-bold">
|
|
<i class="fas fa-user-tie me-2 text-secondary"></i>PIC:
|
|
<span class="text-muted">{{thisItem.currentUserFullName}}</span>
|
|
</p>
|
|
</div>
|
|
|
|
<!-- Station -->
|
|
<div class="col-12 mb-3">
|
|
<p class="h5 fw-bold">
|
|
<i class="fas fa-user-tie me-2 text-secondary"></i>Station:
|
|
<span class="text-muted">{{thisItem.currentStation || 'No Station Deploy (Self Assign)' }}</span>
|
|
</p>
|
|
</div>
|
|
|
|
<!--RECIEVE INTERFACE -->
|
|
<div class="col-12" v-if="displayStatus === 'arrived'">
|
|
<div class="card shadow-sm border-0">
|
|
<div class="card-body">
|
|
<h5 class="card-title mb-4 text-primary">
|
|
<i class="fas fa-info-circle me-2"></i>Receiver Information
|
|
</h5>
|
|
<ul class="list-group list-group-flush">
|
|
<!-- User -->
|
|
<li class="list-group-item">
|
|
<div class="d-flex justify-content-between align-items-start">
|
|
<span class="fw-bold">
|
|
<i class="fas fa-user me-2 text-secondary"></i>User:
|
|
</span>
|
|
<span class="text-muted text-end" style="max-width: 70%; word-wrap: break-word;">
|
|
{{ thisItem.currentUser }}
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!--RETURN INTERFACE -->
|
|
<div class="col-12" v-if="displayStatus === 'return'">
|
|
<div class="card shadow-sm border-0">
|
|
<div class="card-body">
|
|
<h5 class="card-title mb-4 text-primary">
|
|
<i class="fas fa-info-circle me-2"></i>Sender Information
|
|
</h5>
|
|
<ul class="list-group list-group-flush">
|
|
<!-- User -->
|
|
<li class="list-group-item">
|
|
<div class="d-flex justify-content-between align-items-start">
|
|
<span class="fw-bold">
|
|
<i class="fas fa-user me-2 text-secondary"></i>User:
|
|
</span>
|
|
<span class="text-muted text-end" style="max-width: 70%; word-wrap: break-word;">
|
|
{{ thisItem.currentUser }}
|
|
</span>
|
|
</div>
|
|
</li>
|
|
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!--RECIEVE INTERFACE -->
|
|
<form v-on:submit.prevent="updateItemMovement" v-if="displayStatus === 'arrived'" data-aos="fade-right">
|
|
<div class=" register" data-aos="fade-right">
|
|
<div class="row" data-aos="fade-right">
|
|
|
|
<div class="col-md-12">
|
|
<div class="tab-content" id="myTabContent">
|
|
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
|
|
<br><br>
|
|
|
|
<div class="form-group row">
|
|
<div class="col-sm-8 offset-sm-5">
|
|
<button type="button" v-on:click="receiveReturnMessage" class="btn btn-secondary m-1">Return Item</button>
|
|
<button type="submit" class="btn btn-primary m-1">Receive Item</button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<!--RETURN INTERFACE -->
|
|
<form v-on:submit.prevent="" v-if="displayStatus === 'return'" data-aos="fade-right">
|
|
<div class=" register" data-aos="fade-right">
|
|
<div class="row" data-aos="fade-right">
|
|
|
|
<div class="col-md-12">
|
|
<div class="tab-content" id="myTabContent">
|
|
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
|
|
<br><br>
|
|
<div class="form-group row">
|
|
<div class="col-sm-8 offset-sm-5">
|
|
<button type="submit" v-on:click="ReturnMessage" class="btn btn-primary m-1">Return Item</button>
|
|
<button type="submit" v-on:click="StationMessage" class="btn btn-primary m-1">{{ thisItem?.currentStationId == null ? "Deploy Station" : "Change Station" }}</button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
<!--STATION DEPLOY MESSAGE BOX INTERFACE-->
|
|
<div class="modal fade" id="stationMessage" tabindex="-1" role="dialog" aria-labelledby="stationModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title" id="stationModalLabel">{{ thisItem?.currentStationId == null ? "Deploy Station" : "Change Station" }}</h5>
|
|
<button type="button" class="close" data-dismiss="modal" v-on:click="closeStationMessageModal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<form v-on:submit.prevent="updateStationItemMovement">
|
|
|
|
<div class="form-group row">
|
|
<label class="col-sm-4 col-form-label">Deploy Station : </label>
|
|
<div class="col-sm-8">
|
|
<select class="btn btn-primary dropdown-toggle col-md-10" v-model="selectedStation">
|
|
<option class="btn-light" value="" disabled selected>Select Station</option>
|
|
<option v-if="stationList.length === 0" class="btn-light" disabled>No Station Assigned to You</option>
|
|
<option class="btn-light" v-for="(station, index) in stationList" :key="index" :value="station.stationId">{{ station.stationName}}</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-4 col-form-label">Remark:</label>
|
|
<div class="col-sm-8">
|
|
<input type="text" class="form-control" v-model="remark" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="col-sm-4 col-form-label">Consignment Note:</label>
|
|
<div class="col-sm-8">
|
|
<input type="file" class="form-control-file" v-on:change="handleFileUpload" accept="image/png, image/jpeg, application/pdf" />
|
|
</div>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Deploy Station</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!--RETURN MESSAGE BOX INTERFACE-->
|
|
<div class="modal fade" id="returnMessage" tabindex="-1" role="dialog" aria-labelledby="returnModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title" id="returnModalLabel">Return Item</h5>
|
|
<button type="button" class="close" data-dismiss="modal" v-on:click="closeMessageModal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<form v-on:submit.prevent="returnItemMovement">
|
|
|
|
<div class="form-group row">
|
|
<label class="col-sm-4 col-form-label">Remark:</label>
|
|
<div class="col-sm-8">
|
|
<input type="text" class="form-control" v-model="remark" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="col-sm-4 col-form-label">Consignment Note:</label>
|
|
<div class="col-sm-8">
|
|
<input type="file" class="form-control-file" v-on:change="handleFileUpload" accept="image/png, image/jpeg, application/pdf" />
|
|
</div>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Return Item</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!--RECEIVE THEN RETURN INTERFACE -->
|
|
<div class="modal fade" id="returnModal" tabindex="-1" role="dialog" aria-labelledby="returnModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title" id="returnModalLabel">Return Item</h5>
|
|
<button type="button" class="close" data-dismiss="modal" v-on:click="closeModal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<form v-on:submit.prevent="receiveReturnAPI">
|
|
|
|
<div class="form-group row">
|
|
<label class="col-sm-4 col-form-label">Remark:</label>
|
|
<div class="col-sm-8">
|
|
<input type="text" class="form-control" v-model="remark" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="col-sm-4 col-form-label">Consignment Note:</label>
|
|
<div class="col-sm-8">
|
|
<input type="file" class="form-control-file" v-on:change="handleFileUpload" accept="image/png, image/jpeg, application/pdf" />
|
|
</div>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Return Item</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ALREADY RETURN ITEM INTERFACE -->
|
|
<div v-if="displayStatus === 'requestAgain'" class="d-flex justify-content-center align-items-center vh-100">
|
|
<div class="col-lg-10 col-11 border rounded p-5 shadow-lg text-center min-vh-50">
|
|
<h1 class="text-danger">The item has been register as returned.</h1>
|
|
<h3 class="text-muted">You need to request this item again to used it legally.</h3>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- NOT SIGN IN ITEM INTERFACE -->
|
|
<div v-if="displayStatus === 'differentUser'" class="d-flex justify-content-center align-items-center vh-100">
|
|
<div class="col-lg-10 col-11 border rounded p-5 shadow-lg text-center min-vh-50">
|
|
<h1 class="text-danger">The item is not assigned to you.</h1>
|
|
<h3 class="text-muted">You need to request this item to validly use it.</h3>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<!-- ============================================================== -->
|
|
<!-- End PAge Content -->
|
|
<!-- ============================================================== -->
|
|
<!-- ============================================================== -->
|
|
<!-- Right sidebar -->
|
|
<!-- ============================================================== -->
|
|
<!-- .right-sidebar -->
|
|
<!-- ============================================================== -->
|
|
<!-- End Right sidebar -->
|
|
<!-- ============================================================== -->
|
|
</div>
|
|
<!-- ============================================================== -->
|
|
<!-- End Container fluid -->
|
|
<!-- ============================================================== -->
|
|
<!-- ============================================================== -->
|
|
<!-- footer -->
|
|
<!-- ============================================================== -->
|
|
<footer b-lhtx71ohus class="footer text-center">
|
|
All Rights Reserved by PSTW. Designed and Developed by
|
|
<a b-lhtx71ohus href="https://www.wrappixel.com">WrapPixel</a>.
|
|
</footer>
|
|
<!-- ============================================================== -->
|
|
<!-- End footer -->
|
|
<!-- ============================================================== -->
|
|
</div>
|
|
<!-- ============================================================== -->
|
|
<!-- End Page wrapper -->
|
|
<!-- ============================================================== -->
|
|
</div>
|
|
<!-- ============================================================== -->
|
|
<!-- End Wrapper -->
|
|
<!-- ============================================================== -->
|
|
<!-- ============================================================== -->
|
|
<!-- All Jquery -->
|
|
<!-- ============================================================== -->
|
|
|
|
<script src="/assets/libs/jquery/dist/jquery.min.js"></script>
|
|
<script src="/dist/js/jquery-ui.min.js"></script>
|
|
<!-- VUE Multiselect-->
|
|
<script src="/lib/vue-multiselect/vue-multiselect.js"></script>
|
|
<link href="/lib/vue-multiselect/vue-multiselect.min.css" rel="stylesheet" />
|
|
<!-- VUE Date Picker-->
|
|
<link href="/lib/vue-datepicker/mainvuedate.css" rel="stylesheet" />
|
|
<script src="/lib/vue-datepicker/vue-datepicker.iife.js"></script>
|
|
<!-- Bootstrap tether Core JavaScript -->
|
|
<script src="/assets/libs/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
|
<!-- slimscrollbar scrollbar JavaScript -->
|
|
<script src="/assets/libs/perfect-scrollbar/dist/perfect-scrollbar.jquery.min.js"></script>
|
|
<script src="/assets/extra-libs/sparkline/sparkline.js"></script>
|
|
<!--Wave Effects -->
|
|
<script src="/dist/js/waves.js"></script>
|
|
<!--Menu sidebar -->
|
|
<script src="/dist/js/sidebarmenu.js"></script>
|
|
<!--Custom JavaScript -->
|
|
<script src="/dist/js/custom.min.js"></script>
|
|
<!--Form JS-->
|
|
<script src="/assets/libs/inputmask/dist/min/jquery.inputmask.bundle.min.js"></script>
|
|
<script src="/dist/js/pages/mask/mask.init.js"></script>
|
|
<script src="/assets/libs/select2/dist/js/select2.full.min.js"></script>
|
|
<script src="/assets/libs/jquery-asColor/dist/jquery-asColor.min.js"></script>
|
|
<script src="/assets/libs/jquery-asGradient/dist/jquery-asGradient.js"></script>
|
|
<script src="/assets/libs/jquery-asColorPicker/dist/jquery-asColorPicker.min.js"></script>
|
|
<script src="/assets/libs/jquery-minicolors/jquery.minicolors.min.js"></script>
|
|
<script src="/assets/libs/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
|
|
<script src="/assets/libs/quill/dist/quill.min.js"></script>
|
|
<script src="/lib/printjs/print.min.js"></script>
|
|
<script src="/lib/html2canvas/html2canvas.min.js"></script>
|
|
<script src="/lib/html2canvas/dom-to-image.min.js"></script>
|
|
<!-- Datatables JS-->
|
|
<script src="/lib/datatables/datatables.js"></script>
|
|
|
|
|
|
<script src="/lib/jquery-validation/dist/jquery.validate.min.js"></script>
|
|
<script src="/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>
|
|
<script src="/js/vue-qrcode-reader.umd.js"></script>
|
|
|
|
<script>
|
|
|
|
const app = Vue.createApp({
|
|
|
|
data() {
|
|
return {
|
|
thisItem: null,
|
|
selectedUser: "",
|
|
selectedStation: "",
|
|
stationList: [],
|
|
displayStatus: null,
|
|
debounceTime: 500,
|
|
currentUser: null,
|
|
movementId: null,
|
|
currentUserId: null,
|
|
remark: null,
|
|
consignmentNote: null,
|
|
receiveReturn: null,
|
|
UniqueID: null,
|
|
InventoryMasterId: null,
|
|
|
|
//QR VARIABLE
|
|
qrCodeResult: null,
|
|
debounceTimeout: null,
|
|
error: "",
|
|
selectedConstraints: { facingMode: "user" },
|
|
trackFunctionSelected: { text: 'outline', value: null },
|
|
barcodeFormats: {
|
|
qr_code: true, // Hanya mendukung QR Code
|
|
code_128: true,
|
|
ean_13: true
|
|
},
|
|
constraintOptions: [
|
|
{ label: "Rear Camera", constraints: { facingMode: "environment" } },
|
|
{ label: "Front Camera", constraints: { facingMode: "user" } }
|
|
],
|
|
videoInputDevices: [],
|
|
selectedCameraId: null,
|
|
scanStartTime: null,
|
|
scanTime: null
|
|
};
|
|
},
|
|
async mounted() {
|
|
this.trackFunctionSelected.value = this.paintOutline;
|
|
await this.fetchUser();
|
|
await Promise.all([
|
|
this.fetchStation(),
|
|
]);
|
|
},
|
|
methods: {
|
|
|
|
handleFileUpload(event) {
|
|
const file = event.target.files[0];
|
|
|
|
if (file) {
|
|
const reader = new FileReader();
|
|
reader.onload = (e) => {
|
|
this.consignmentNote = e.target.result.split(',')[1]; // Get Base64 string (remove metadata)
|
|
};
|
|
reader.readAsDataURL(file);
|
|
} else {
|
|
this.consignmentNote = null;
|
|
}
|
|
},
|
|
|
|
async updateStationItemMovement() {
|
|
const requiredFields = ['selectedStation'];
|
|
|
|
for (let field of requiredFields) {
|
|
if (!this[field]) {
|
|
alert(`Request Error: Please fill in required field ${field}.`, 'warning');
|
|
return;
|
|
}
|
|
}
|
|
|
|
try {
|
|
const now = new Date();
|
|
const formData = {
|
|
ItemId: this.thisItem.itemID,
|
|
ToStation: this.thisItem.currentStationId,
|
|
ToStore: this.thisItem.toStore,
|
|
ToUser: this.currentUserId,
|
|
ToOther: "Delivered",
|
|
SendDate: new Date(now.getTime() + 8 * 60 * 60 * 1000).toISOString(),
|
|
Action: "Assign",
|
|
Quantity: this.thisItem.quantity,
|
|
Remark: this.remark,
|
|
ConsignmentNote: this.consignmentNote,
|
|
Date: new Date(now.getTime() + 8 * 60 * 60 * 1000).toISOString(),
|
|
LastUser: this.currentUserId,
|
|
LastStore: this.thisItem.toStore,
|
|
LastStation: this.selectedStation,
|
|
LatestStatus: "Delivered",
|
|
ReceiveDate: new Date(now.getTime() + 8 * 60 * 60 * 1000).toISOString(),
|
|
MovementComplete: true,
|
|
};
|
|
|
|
const response = await fetch('/InvMainAPI/StationItemMovementUser', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
body: JSON.stringify(formData)
|
|
});
|
|
|
|
if (response.ok) {
|
|
this.thisItem = await response.json();
|
|
this.fetchItem(this.thisItem.uniqueID);
|
|
alert('Success! Item assign to the Station.');
|
|
$('#stationMessage').modal('hide');
|
|
this.displayStatus = "return";
|
|
} else {
|
|
throw new Error('Failed to submit form.');
|
|
}
|
|
} catch (error) {
|
|
console.error('Error:', error);
|
|
alert('Inventory PSTW Error: An error occurred.');
|
|
}
|
|
},
|
|
|
|
async updateItemMovement() {
|
|
|
|
if (this.receiveReturn == null) {
|
|
if (!confirm("Are you sure you already received this item?")) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
try {
|
|
const now = new Date();
|
|
const formData = {
|
|
Id: this.thisItem.id,
|
|
LastStore: this.thisItem.toStore,
|
|
LatestStatus: "Delivered",
|
|
ReceiveDate: new Date(now.getTime() + 8 * 60 * 60 * 1000).toISOString(),
|
|
MovementComplete: true,
|
|
};
|
|
|
|
const response = await fetch('/InvMainAPI/UpdateItemMovementUser', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
body: JSON.stringify(formData)
|
|
});
|
|
|
|
if (response.ok) {
|
|
if (this.receiveReturn == null) {
|
|
alert('Success! Item has been successfully received.');
|
|
this.thisItem = await response.json();
|
|
this.displayStatus = "return";
|
|
this.fetchItem(this.UniqueID);
|
|
this.resetForm();
|
|
} else {
|
|
this.returnItemMovement();
|
|
}
|
|
} else {
|
|
throw new Error('Failed to submit form.');
|
|
}
|
|
} catch (error) {
|
|
console.error('Error:', error);
|
|
alert('Inventory PSTW Error: An error occurred.');
|
|
}
|
|
},
|
|
|
|
async returnItemMovement() {
|
|
|
|
if (!confirm("Are you sure you want to return this item?")) {
|
|
return false;
|
|
}
|
|
|
|
try {
|
|
const now = new Date();
|
|
const formData = {
|
|
ItemId: this.thisItem.itemID,
|
|
ToStation: this.thisItem.currentStationId,
|
|
ToStore: this.thisItem.currentStoreId,
|
|
ToUser: this.currentUserId,
|
|
ToOther: "Return",
|
|
SendDate: new Date(now.getTime() + 8 * 60 * 60 * 1000).toISOString(),
|
|
Action: "StockIn",
|
|
Quantity: this.thisItem.quantity,
|
|
Remark: this.remark,
|
|
ConsignmentNote: this.consignmentNote,
|
|
Date: new Date(now.getTime() + 8 * 60 * 60 * 1000).toISOString(),
|
|
LastUser: this.InventoryMasterId,
|
|
LastStore: this.thisItem.toStore,
|
|
LastStation: this.thisItem.toStation,
|
|
LatestStatus: null,
|
|
ReceiveDate: null,
|
|
MovementComplete: false,
|
|
};
|
|
|
|
const response = await fetch('/InvMainAPI/ReturnItemMovementUser', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
body: JSON.stringify(formData)
|
|
});
|
|
|
|
if (response.ok) {
|
|
alert('Success! Item is on the delivery to return to Inventory Master.');
|
|
this.thisItem = await response.json();
|
|
$('#returnModal').modal('hide');
|
|
$('#returnMessage').modal('hide');
|
|
this.displayStatus = "requestAgain";
|
|
this.resetForm();
|
|
} else {
|
|
throw new Error('Failed to submit form.');
|
|
}
|
|
} catch (error) {
|
|
console.error('Error:', error);
|
|
alert('Inventory PSTW Error: An error occurred.');
|
|
}
|
|
},
|
|
async fetchItem(itemid) {
|
|
try {
|
|
const response = await fetch('/InvMainAPI/GetItem/' + itemid, {
|
|
method: 'POST',
|
|
}
|
|
);
|
|
|
|
if (response.ok) {
|
|
|
|
this.thisItem = await response.json();
|
|
this.fetchStore(this.thisItem.toStore);
|
|
|
|
if (this.thisItem.movementId != null && this.thisItem.toOther === "On Delivery" && this.thisItem.latestStatus == null && this.thisItem.currentUserId == this.currentUserId && this.thisItem.movementComplete == 0) {
|
|
this.displayStatus = "arrived";
|
|
} else if (this.thisItem.movementId != null && this.thisItem.latestStatus != null && this.thisItem.currentUserId == this.currentUserId && this.thisItem.latestStatus != "Ready To Deploy") {
|
|
this.displayStatus = "return";
|
|
} else if (this.thisItem.movementId != null && this.thisItem.toOther === "Return" && this.thisItem.latestStatus == null && this.thisItem.toUser == this.currentUserId) {
|
|
this.displayStatus = "requestAgain";
|
|
} else {
|
|
this.displayStatus = "differentUser";
|
|
this.thisItem = null;
|
|
}
|
|
} else {
|
|
this.error = 'Qr Code Not Register to the system';
|
|
}
|
|
} catch (error) {
|
|
console.error('Error fetching item information:', error);
|
|
}
|
|
},
|
|
|
|
async fetchStation() {
|
|
try {
|
|
const response = await fetch('/InvMainAPI/StationList', {
|
|
method: 'POST', // Specify the HTTP method
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
});
|
|
if (!response.ok) {
|
|
throw new Error('Failed to fetch suppliers');
|
|
}
|
|
|
|
const data = await response.json();
|
|
this.stationList = data.filter(station => station.stationPicID === this.currentUserId);
|
|
} catch (error) {
|
|
console.error('Error fetching suppliers:', error);
|
|
}
|
|
},
|
|
|
|
async fetchStore(storeId) {
|
|
try {
|
|
const response = await fetch('/InvMainAPI/StoreSpecificMaster/' + storeId, {
|
|
method: 'POST', // Specify the HTTP method
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
});
|
|
if (!response.ok) {
|
|
throw new Error('Failed to fetch Store');
|
|
}
|
|
|
|
const data = await response.json();
|
|
this.InventoryMasterId = data.userId;
|
|
|
|
} catch (error) {
|
|
console.error('Error fetching suppliers:', error);
|
|
}
|
|
},
|
|
|
|
async fetchUser() {
|
|
try {
|
|
const response = await fetch(`/IdentityAPI/GetUserInformation/`, {
|
|
method: 'POST',
|
|
});
|
|
if (response.ok) {
|
|
const data = await response.json();
|
|
this.currentUser = data?.userInfo || null;
|
|
this.currentUserId = this.currentUser.id;
|
|
}
|
|
else {
|
|
console.error('Failed to fetch user');
|
|
}
|
|
}
|
|
catch (error) {
|
|
console.error('There was a problem with the fetch operation:', error);
|
|
}
|
|
},
|
|
|
|
resetScanner() {
|
|
this.displayStatus = null;
|
|
this.qrCodeResult = null;
|
|
this.thisItem = null;
|
|
},
|
|
|
|
resetForm() {
|
|
this.selectedStation = null;
|
|
},
|
|
|
|
async receiveReturnAPI() {
|
|
this.receiveReturn = 1;
|
|
this.updateItemMovement();
|
|
},
|
|
|
|
// Split Url dapatkan unique ID Je
|
|
onDecode(detectedCodes) {
|
|
if (detectedCodes.length > 0) {
|
|
this.qrCodeResult = detectedCodes[0].rawValue; // Ambil URL dari rawValue
|
|
this.UniqueID = this.qrCodeResult.split('/').pop(); // Ambil UniqueID dari URL
|
|
this.fetchItem(this.UniqueID);
|
|
}
|
|
},
|
|
|
|
//Showing Qr Error
|
|
onError(err) {
|
|
let message = `[${err.name}]: `;
|
|
if (err.name === "NotAllowedError") {
|
|
message += "You have to allow camera accecss.";
|
|
} else if (err.name === "NotFoundError") {
|
|
message += "There's no camera detect.";
|
|
} else if (err.name === "NotReadableError") {
|
|
message += "You are using camera on the other application.";
|
|
} else {
|
|
message += err.message;
|
|
}
|
|
this.error = message;
|
|
},
|
|
|
|
//Setting Camera to know that camera are turn on or not
|
|
async onCameraReady(videoElement) {
|
|
|
|
const video = document.querySelector("video");
|
|
|
|
const track = video.srcObject.getVideoTracks()[0];
|
|
|
|
if (track && track.getCapabilities) {
|
|
const capabilities = track.getCapabilities(); // Get camera capabilities
|
|
|
|
if (capabilities.sharpness) {
|
|
track.applyConstraints({
|
|
advanced: [{ width: 1280, height: 720 }]
|
|
}).then(() => {
|
|
|
|
// Step 2: Apply sharpness separately
|
|
return track.applyConstraints({ advanced: [{ sharpness: 10 }] });
|
|
}).then(() => {
|
|
|
|
return track.applyConstraints({ advanced: [{ exposureMode: 'continuous' }] });
|
|
})
|
|
.then(() => {
|
|
}).catch(err => console.error("Failed to apply constraints:", err));
|
|
|
|
} else {
|
|
console.warn("⚠️ Sharpness not supported on this camera");
|
|
}
|
|
}
|
|
|
|
|
|
try {
|
|
const devices = await navigator.mediaDevices.enumerateDevices();
|
|
this.videoInputDevices = devices.filter(device => device.kind === 'videoinput');
|
|
|
|
if (this.videoInputDevices.length > 0) {
|
|
// Keep the selected camera if already chosen
|
|
if (!this.selectedCameraId) {
|
|
this.selectedCameraId = this.videoInputDevices[0].deviceId;
|
|
}
|
|
|
|
this.selectedConstraints = { deviceId: { exact: this.selectedCameraId } };
|
|
} else {
|
|
this.error = "No camera detected.";
|
|
}
|
|
} catch (err) {
|
|
this.error = "Error accessing camera: " + err.message;
|
|
}
|
|
},
|
|
|
|
//Update Camera Category
|
|
updateCamera() {
|
|
this.selectedConstraints = { deviceId: { exact: this.selectedCameraId } };
|
|
},
|
|
|
|
//Red box if QR Detect
|
|
paintOutline(detectedCodes, ctx) {
|
|
for (const detectedCode of detectedCodes) {
|
|
const [firstPoint, ...otherPoints] = detectedCode.cornerPoints;
|
|
|
|
ctx.strokeStyle = 'red'; // Warna garis merah
|
|
ctx.lineWidth = 3;
|
|
|
|
ctx.beginPath();
|
|
ctx.moveTo(firstPoint.x, firstPoint.y);
|
|
for (const { x, y } of otherPoints) {
|
|
ctx.lineTo(x, y);
|
|
}
|
|
ctx.lineTo(firstPoint.x, firstPoint.y);
|
|
ctx.closePath();
|
|
ctx.stroke();
|
|
}
|
|
},
|
|
|
|
//Ni return message
|
|
receiveReturnMessage() {
|
|
$("#returnModal").modal("show");
|
|
},
|
|
|
|
closeModal() {
|
|
$('#returnModal').modal('hide'); // Manually hide the modal
|
|
},
|
|
|
|
ReturnMessage() {
|
|
$("#returnMessage").modal("show");
|
|
},
|
|
|
|
closeMessageModal() {
|
|
$('#returnMessage').modal('hide'); // Manually hide the modal
|
|
},
|
|
|
|
StationMessage() {
|
|
$("#stationMessage").modal("show");
|
|
},
|
|
|
|
closeStationMessageModal() {
|
|
$('#stationMessage').modal('hide'); // Manually hide the modal
|
|
},
|
|
},
|
|
});
|
|
app.component("qrcode-stream", VueQrcodeReader.QrcodeStream);
|
|
|
|
app.mount('#registerItem');
|
|
|
|
$(function () {
|
|
// Attach event listener to show modal
|
|
$('#addItemBtn').on('click', function () {
|
|
$('#registerItemModal').modal('show');
|
|
});
|
|
|
|
// Close modals
|
|
$('.closeModal').on('click', function () {
|
|
$('.modal').modal('hide');
|
|
});
|
|
});
|
|
</script>
|
|
|
|
|
|
</body>
|
|
</html>
|
|
|
|
|