配件管理

This commit is contained in:
cwchen 2024-11-14 16:41:41 +08:00
parent 0857849d3f
commit 0a5f299058
4 changed files with 13 additions and 22 deletions

View File

@ -4,7 +4,7 @@
"href": "page/welcome-1.html?t=1" "href": "page/welcome-1.html?t=1"
}, },
"logoInfo": { "logoInfo": {
"title": "LAYUI MINI", "title": "黔送固定资产",
"image": "images/logo.png", "image": "images/logo.png",
"href": "" "href": ""
}, },

View File

@ -57,7 +57,7 @@ function initTable() {
authorization: sessionStorage.getItem("gz-token"), authorization: sessionStorage.getItem("gz-token"),
}, },
height: "full-170", height: "full-170",
url: dataUrl + "backstage/partInput/findByPage", url: dataUrl + "backstage/partScrap/findByPage",
where: { where: {
encryptedData: JSON.stringify({ encryptedData: JSON.stringify({
'keyWord': $('#keyWord').val(), 'keyWord': $('#keyWord').val(),
@ -95,21 +95,21 @@ function initTable() {
align: "center", align: "center",
}, },
{ {
field: "inputUser", field: "userName",
width: '15%', width: '15%',
title: "报废人", title: "报废人",
unresize: true, unresize: true,
align: "center", align: "center",
}, },
{ {
field: "inputNum", field: "bfNum",
width: '15%', width: '15%',
title: "报废数量", title: "报废数量",
unresize: true, unresize: true,
align: "center", align: "center",
}, },
{ {
field: "allPrice", field: "scrapDay",
width: '15%', width: '15%',
title: "报废时间", title: "报废时间",
unresize: true, unresize: true,
@ -145,18 +145,6 @@ function initTable() {
}); });
} }
//审核状态
function setCheckStatus(status) {
if (status === '1') {
return "<span style='color:#FF9900;margin:0 5px 0 5px;font-size:16px'>●</span>待审核";
} else if (status === '2') {
return "<span style='color:#19BE6B;margin:0 5px 0 5px;font-size:16px;'>●</span>审核通过";
} else if (status === '3') {
return "<span style='color:#F56C6C;margin:0 5px 0 5px;font-size:16px'>●</span>审核驳回";
}
return "<span style='color:#FF9900;margin:0 5px 0 5px;font-size:16px'>●</span>待审核";
}
// 导出 // 导出
function exportExcel() { function exportExcel() {
let params = { let params = {

View File

@ -57,7 +57,7 @@ function initTable() {
authorization: sessionStorage.getItem("gz-token"), authorization: sessionStorage.getItem("gz-token"),
}, },
height: "full-170", height: "full-170",
url: dataUrl + "backstage/partInput/findByPage", url: dataUrl + "backstage/partCheck/findByPage",
where: { where: {
encryptedData: JSON.stringify({ encryptedData: JSON.stringify({
'keyWord': $('#keyWord').val(), 'keyWord': $('#keyWord').val(),
@ -95,7 +95,7 @@ function initTable() {
align: "center", align: "center",
}, },
{ {
field: "inputUser", field: "userName",
width: '15%', width: '15%',
title: "盘点人", title: "盘点人",
unresize: true, unresize: true,
@ -107,6 +107,9 @@ function initTable() {
title: "盘点起止时间", title: "盘点起止时间",
unresize: true, unresize: true,
align: "center", align: "center",
templet: function (d) {
return '<span>'+d.startTime+'</span> ~ <span>'+d.endTime+'</span>';
},
}, },
{ {
field: "allPrice", field: "allPrice",
@ -115,7 +118,7 @@ function initTable() {
unresize: true, unresize: true,
align: "center", align: "center",
templet: function (d) { templet: function (d) {
return setInventory(100,200); return setInventory(d.addNum,d.subNum);
}, },
}, },
{ {
@ -150,7 +153,7 @@ function initTable() {
// 设置盘点数量变化 // 设置盘点数量变化
function setInventory(value, value2) { function setInventory(value, value2) {
if (value === 0 || value2 === 0) { if (value === 0 && value2 === 0) {
return '<span style="color:#409EFF">0</span>'; return '<span style="color:#409EFF">0</span>';
}else if (value > 0 && value2 > 0) { }else if (value > 0 && value2 > 0) {
return '<span style="color:#19BE6B">盘盈:' + value + '</span><br><span style="color:#f56c6c">盘亏:' + value2 + '</span>'; return '<span style="color:#19BE6B">盘盈:' + value + '</span><br><span style="color:#f56c6c">盘亏:' + value2 + '</span>';

View File

@ -45,7 +45,7 @@
<button class="layui-btn layui-btn-primary" onclick="queryTable(2)"><i <button class="layui-btn layui-btn-primary" onclick="queryTable(2)"><i
class="layui-icon layui-icon-refresh"></i> 重 置</button> class="layui-icon layui-icon-refresh"></i> 重 置</button>
<button class="layui-btn layui-bg-blue" onclick="inventoryCount({})"><i <button class="layui-btn layui-bg-blue" onclick="inventoryCount({})"><i
class="layui-icon layui-icon-file"></i> 配 件 入 库</button> class="layui-icon layui-icon-file"></i> 库 存 盘 点</button>
<button class="layui-btn layui-btn-primary" onclick="exportExcel()"><i <button class="layui-btn layui-btn-primary" onclick="exportExcel()"><i
class="layui-icon layui-icon-download-circle"></i> 导 出</button> class="layui-icon layui-icon-download-circle"></i> 导 出</button>
</div> </div>