库存盘点

This commit is contained in:
cwchen 2024-11-14 10:55:06 +08:00
parent bcab945a68
commit 58ac5e52e8
9 changed files with 31 additions and 21 deletions

View File

@ -15,20 +15,6 @@
"href": "",
"target": "_self",
"child": [
{
"title": "首页",
"href": "",
"icon": "fa fa-home",
"target": "_self",
"child": [
{
"title": "首页1",
"href": "page/welcome-1.html",
"icon": "fa fa-tachometer",
"target": "_self"
}
]
},
{
"title": "机具需求计划",
"href": "",

View File

@ -1,6 +1,6 @@
.table-box {
width: 100%;
height: calc(100% - 330px);
height: calc(100% - 280px);
}
.layout {
@ -11,7 +11,7 @@
#data-overview {
width: 100%;
height: 130px;
height: 80px;
justify-content: space-around;
}

1
images/svg/u702.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

@ -3,6 +3,7 @@ let objParam;
function setParams(obj) {
objParam = JSON.parse(obj);
$('#proName').html(objParam.proName);
$('#status').html(setStatusColor(objParam.status));
$('#planNum').html(objParam.planNum);
setStatusColor(objParam.status);
layui.use(["layer", 'element'], function () {
@ -163,3 +164,21 @@ function numToChinese(num) {
function openDetail() {
openIframeByParamObj("view_plan", "需求计划", "../../../page/demandPlan/child/demand_plan_detail_list.html", "92%", "95%", objParam);
}
// 发货状态颜色
function setStatusColor(value) {
value = value ? parseInt(value) : 0;
let color = "#409Eff";
let name = ''
if (value === 0) {
color = "#f56c6c";
name = '未发货';
} else if (value === 1) {
color = "#ff9900";
name = '部分发货'
} else if (value === 2) {
color = "#19be6b";
name = '全部发货'
}
return '<span style="color:' + color + '">' + name + "</span>";
}

View File

@ -53,7 +53,7 @@ function initTable() {
headers: {
authorization: sessionStorage.getItem("gz-token"),
},
height: "full-180",
height: "full-200",
url: dataUrl + "backstage/planOut/getProPlanListByProId",
where: {
encryptedData: JSON.stringify({

View File

@ -109,7 +109,7 @@ function initTable() {
headers: {
authorization: sessionStorage.getItem("gz-token"),
},
height: "full-350",
height: "full-300",
url: dataUrl + "backstage/planOut/getProPlanPage",
where: {
encryptedData: JSON.stringify({

View File

@ -18,6 +18,7 @@
<body>
<div id="main-box">
<div id="detail-box" class="layout">
<img src="../../../images/svg/u702.svg" width="40px" height="40px" style="margin-left: 10px;">
<div class="layout detail" style="margin: 0 20px;">
<p style="font-size: 18px;font-weight: bold;" id="proName"></p>
<p id="status"></p>

View File

@ -24,7 +24,7 @@
.title {
width: 100%;
height: 30px;
height: 50px;
justify-content: start;
padding: 0 0 0 20px;
box-sizing: border-box;
@ -37,7 +37,7 @@
}
.layuimini-main {
height: calc(100% - 30px);
height: calc(100% - 50px);
margin: 10px 10px 10px 10px;
}
</style>
@ -45,6 +45,7 @@
<body>
<div class="layuimini-container">
<div class="title layout">
<img src="../../../images/svg/u702.svg" width="40px" height="40px" style="margin-right: 20px;">
<p id="proName"></p>
</div>
<div class="layuimini-main">

View File

@ -16,10 +16,12 @@
<div id="main-box">
<div id="basic-box">
<div class="layout" style="justify-content: start;">
<img src="../../../images/svg/u702.svg" width="40px" height="40px" style="margin-right: 20px;">
<p style="font-size: 18px;font-weight: bold;" id="proName"></p>
<p onclick="openDetail()" style="margin-left: 5%;cursor: pointer;">计划数量:<span
style="font-weight: bold;color: #409eff;" id="planNum">0</span></p>
</div>
<hr>
<form class="layui-form layuimini-form" onclick="return false;">
<div class="title layout">
<span style="font-weight:700;text-decoration:none;color:#409EFF;"></span>