This commit is contained in:
parent
4bcde81402
commit
7fe7f5fe4c
|
|
@ -189,7 +189,7 @@ function initTable() {
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "vendName",
|
field: "backNum",
|
||||||
width: '15%',
|
width: '15%',
|
||||||
title: "退回入库量",
|
title: "退回入库量",
|
||||||
unresize: true,
|
unresize: true,
|
||||||
|
|
|
||||||
|
|
@ -11,19 +11,19 @@ function setParams(params) {
|
||||||
table = layui.table;
|
table = layui.table;
|
||||||
upload = layui.upload;
|
upload = layui.upload;
|
||||||
layer = layui.layer;
|
layer = layui.layer;
|
||||||
getInputDetails();
|
getDetailsById();
|
||||||
initTable();
|
initTable();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取配件到货入库详情
|
// 获取库存盘点详情
|
||||||
function getInputDetails() {
|
function getDetailsById() {
|
||||||
let params = {
|
let params = {
|
||||||
encryptedData: JSON.stringify({
|
encryptedData: JSON.stringify({
|
||||||
'id': objParam.id
|
'id': objParam.id
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
let url = dataUrl + 'backstage/partInput/getInputDetails';
|
let url = dataUrl + 'backstage/partCheck/getDetailsById';
|
||||||
ajaxRequest(url, "POST", params, true, function () {
|
ajaxRequest(url, "POST", params, true, function () {
|
||||||
}, function (result) {
|
}, function (result) {
|
||||||
console.error(result);
|
console.error(result);
|
||||||
|
|
@ -110,9 +110,9 @@ function reloadTable(pageNum) {
|
||||||
},
|
},
|
||||||
where: {
|
where: {
|
||||||
encryptedData: JSON.stringify({
|
encryptedData: JSON.stringify({
|
||||||
'type': $('#type').val(),
|
'partType': $('#partType').val(),
|
||||||
'name': $('#name').val(),
|
'partName': $('#partName').val(),
|
||||||
'model': $('#model').val(),
|
'partModel': $('#partModel').val(),
|
||||||
'id': objParam.id
|
'id': objParam.id
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
|
@ -129,12 +129,12 @@ function initTable() {
|
||||||
authorization: sessionStorage.getItem("gz-token"),
|
authorization: sessionStorage.getItem("gz-token"),
|
||||||
},
|
},
|
||||||
height: "full",
|
height: "full",
|
||||||
url: dataUrl + "backstage/partInput/getInputDetailListByPage",
|
url: dataUrl + "backstage/partCheck/getDetailsByIdList",
|
||||||
where: {
|
where: {
|
||||||
encryptedData: JSON.stringify({
|
encryptedData: JSON.stringify({
|
||||||
'type': $('#type').val(),
|
'partType': $('#partType').val(),
|
||||||
'name': $('#name').val(),
|
'partName': $('#partName').val(),
|
||||||
'model': $('#model').val(),
|
'partModel': $('#partModel').val(),
|
||||||
'id': objParam.id
|
'id': objParam.id
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
|
@ -182,7 +182,7 @@ function initTable() {
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "partUnit",
|
field: "price",
|
||||||
title: "平均单价(元)",
|
title: "平均单价(元)",
|
||||||
width: '10%',
|
width: '10%',
|
||||||
unresize: true,
|
unresize: true,
|
||||||
|
|
@ -196,44 +196,44 @@ function initTable() {
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "vendName",
|
field: "num",
|
||||||
width: '10%',
|
width: '10%',
|
||||||
title: "库存量",
|
title: "库存量",
|
||||||
unresize: true,
|
unresize: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
templet: function (d) {
|
templet: function (d) {
|
||||||
return setNumColor(1,1);
|
return setNumColor(d.num, 1);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "vendName",
|
field: "checkNum",
|
||||||
width: '10%',
|
width: '10%',
|
||||||
title: "本次盘点量",
|
title: "本次盘点量",
|
||||||
unresize: true,
|
unresize: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
templet: function (d) {
|
templet: function (d) {
|
||||||
return setNumColor(2,2);
|
return setNumColor(d.checkNum, 2);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "vendName",
|
field: "addNum",
|
||||||
width: '10%',
|
width: '10%',
|
||||||
title: "盘盈量",
|
title: "盘盈量",
|
||||||
unresize: true,
|
unresize: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
templet: function (d) {
|
templet: function (d) {
|
||||||
return setNumColor(3,3);
|
return setNumColor(d.addNum, 3);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "vendName",
|
field: "subNum",
|
||||||
width: '10%',
|
width: '10%',
|
||||||
title: "盘亏量",
|
title: "盘亏量",
|
||||||
unresize: true,
|
unresize: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
templet: function (d) {
|
templet: function (d) {
|
||||||
return setNumColor(4,4);
|
return setNumColor(d.subNum, 4);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "remark",
|
field: "remark",
|
||||||
|
|
@ -274,26 +274,13 @@ function setNumColor(value, type) {
|
||||||
// 导出
|
// 导出
|
||||||
function exportExcel() {
|
function exportExcel() {
|
||||||
let params = {
|
let params = {
|
||||||
'name': $('#name').val(),
|
'partType': $('#partType').val(),
|
||||||
'module': $('#module').val(),
|
'partName': $('#partName').val(),
|
||||||
'proId': objParam.proId,
|
'partModel': $('#partModel').val(),
|
||||||
'id': id,
|
'id': objParam.id
|
||||||
'curryDay': time
|
|
||||||
}
|
}
|
||||||
let url = dataUrl + "backstage/export/exportPcList";
|
let url = dataUrl + "backstage/partCheck/exportDetail";
|
||||||
exportExcelUtil(url, '发货详情-批次-' + time, JSON.stringify(params));
|
exportExcelUtil(url, '盘点明细', JSON.stringify(params));
|
||||||
}
|
|
||||||
|
|
||||||
// 打印
|
|
||||||
function print() {
|
|
||||||
Print('#table-box', {
|
|
||||||
onStart: function () {
|
|
||||||
console.log('onStart', new Date())
|
|
||||||
},
|
|
||||||
onEnd: function () {
|
|
||||||
console.log('onEnd', new Date())
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查看概述
|
// 查看概述
|
||||||
|
|
|
||||||
|
|
@ -106,21 +106,21 @@
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<div class="layui-input-inline" style="width: 300px;">
|
<div class="layui-input-inline" style="width: 300px;">
|
||||||
<input type="text" name="type" id="type" autocomplete="off"
|
<input type="text" name="partType" id="partType" autocomplete="off"
|
||||||
class="layui-input" lay-affix="clear" placeholder="输入配件类型"
|
class="layui-input" lay-affix="clear" placeholder="输入配件类型"
|
||||||
maxlength="30">
|
maxlength="30">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<div class="layui-input-inline" style="width: 300px;">
|
<div class="layui-input-inline" style="width: 300px;">
|
||||||
<input type="text" name="name" id="name" autocomplete="off"
|
<input type="text" name="partName" id="partName" autocomplete="off"
|
||||||
class="layui-input" lay-affix="clear" placeholder="输入配件名称"
|
class="layui-input" lay-affix="clear" placeholder="输入配件名称"
|
||||||
maxlength="30">
|
maxlength="30">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<div class="layui-input-inline" style="width: 300px;">
|
<div class="layui-input-inline" style="width: 300px;">
|
||||||
<input type="text" name="model" id="model" autocomplete="off"
|
<input type="text" name="partModel" id="partModel" autocomplete="off"
|
||||||
class="layui-input" lay-affix="clear" placeholder="输入规格型号"
|
class="layui-input" lay-affix="clear" placeholder="输入规格型号"
|
||||||
maxlength="30">
|
maxlength="30">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue