This commit is contained in:
parent
719243bf62
commit
e1d796d16c
|
|
@ -143,6 +143,10 @@ body {
|
||||||
float: right !important;
|
float: right !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#layui-table-page2 {
|
||||||
|
float: right !important;
|
||||||
|
}
|
||||||
|
|
||||||
.layui-laypage .layui-laypage-curr .layui-laypage-em {
|
.layui-laypage .layui-laypage-curr .layui-laypage-em {
|
||||||
background-color: #1890FF;
|
background-color: #1890FF;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,20 +4,22 @@ let pageNum = 1;
|
||||||
|
|
||||||
function setParams(params) {
|
function setParams(params) {
|
||||||
objParam = JSON.parse(params);
|
objParam = JSON.parse(params);
|
||||||
|
console.log(objParam);
|
||||||
|
|
||||||
$('#code').html(objParam.code);
|
$('#code').html(objParam.code);
|
||||||
$('#titleName').html(objParam.inputDay + '配件退料入库记录');
|
$('#titleName').html(objParam.backDay + '配件退料入库记录');
|
||||||
layui.use(["form", "table", 'upload', 'layer'], function () {
|
layui.use(["form", "table", 'upload', 'layer'], function () {
|
||||||
form = layui.form;
|
form = layui.form;
|
||||||
table = layui.table;
|
table = layui.table;
|
||||||
upload = layui.upload;
|
upload = layui.upload;
|
||||||
layer = layui.layer;
|
layer = layui.layer;
|
||||||
getInputDetails();
|
getInfoDetails();
|
||||||
initTable();
|
initTable();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取配件退料入库记录详情
|
// 获取配件退料入库记录详情
|
||||||
function getInputDetails() {
|
function getInfoDetails() {
|
||||||
let params = {
|
let params = {
|
||||||
encryptedData: JSON.stringify({
|
encryptedData: JSON.stringify({
|
||||||
'id': objParam.id
|
'id': objParam.id
|
||||||
|
|
@ -37,10 +39,9 @@ function getInputDetails() {
|
||||||
// 基本数据表格赋值
|
// 基本数据表格赋值
|
||||||
function setTableData(obj) {
|
function setTableData(obj) {
|
||||||
$('#codeValue').html(obj.code + '<a style="margin:0 5px;color:#409EFF;cursor: pointer;" onclick=\'viewGs(' + JSON.stringify(obj) + ')\'>查看概述</a>');
|
$('#codeValue').html(obj.code + '<a style="margin:0 5px;color:#409EFF;cursor: pointer;" onclick=\'viewGs(' + JSON.stringify(obj) + ')\'>查看概述</a>');
|
||||||
$('#inputNum').html(obj.inputNum);
|
$('#backNum').html(obj.backNum);
|
||||||
$('#allPrice').html(obj.allPrice);
|
$('#userName').html(obj.userName);
|
||||||
$('#inputUser').html(obj.inputUser);
|
$('#backDay').html(obj.backDay);
|
||||||
$('#inputDay').html(obj.inputDay);
|
|
||||||
$('#remark').html(obj.remark);
|
$('#remark').html(obj.remark);
|
||||||
setFileTable(obj.fileList);
|
setFileTable(obj.fileList);
|
||||||
}
|
}
|
||||||
|
|
@ -54,7 +55,7 @@ function setFileTable(fileList) {
|
||||||
$.each(fileList, function (index, item) {
|
$.each(fileList, function (index, item) {
|
||||||
html += '<tr>' +
|
html += '<tr>' +
|
||||||
'<td>' + handleFileType(item.fileName) + item.fileName + '</td>' +
|
'<td>' + handleFileType(item.fileName) + item.fileName + '</td>' +
|
||||||
'<td>' + (item.suffix.replace('.', '')) + '</td>' +
|
'<td>' + item.type + '</td>' +
|
||||||
'<td><img src="../../../images/user_head_icon.png" width="20px" height="20px">' + item.createName + '</td>' +
|
'<td><img src="../../../images/user_head_icon.png" width="20px" height="20px">' + item.createName + '</td>' +
|
||||||
'<td>' + item.createTime + '</td>' +
|
'<td>' + item.createTime + '</td>' +
|
||||||
'<td><a style="margin:0 5px;color:#409EFF;cursor: pointer;" onclick=\'viewFile(' + JSON.stringify(item) + ')\'>预览</a>' +
|
'<td><a style="margin:0 5px;color:#409EFF;cursor: pointer;" onclick=\'viewFile(' + JSON.stringify(item) + ')\'>预览</a>' +
|
||||||
|
|
@ -89,9 +90,9 @@ function queryTable(type) {
|
||||||
if (type === 1) {
|
if (type === 1) {
|
||||||
reloadTable(1);
|
reloadTable(1);
|
||||||
} else if (type === 2) {
|
} else if (type === 2) {
|
||||||
$('#type').val('');
|
$('#partType').val('');
|
||||||
$('#name').val('');
|
$('#partName').val('');
|
||||||
$('#model').val('');
|
$('#partModel').val('');
|
||||||
layui.form.render();
|
layui.form.render();
|
||||||
reloadTable(1);
|
reloadTable(1);
|
||||||
}
|
}
|
||||||
|
|
@ -110,9 +111,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
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
|
@ -209,7 +210,6 @@ function initTable() {
|
||||||
page: true,
|
page: true,
|
||||||
done: function (res, curr, count) {
|
done: function (res, curr, count) {
|
||||||
pageNum = tableIns.config.page.curr;
|
pageNum = tableIns.config.page.curr;
|
||||||
element.render();
|
|
||||||
table.resize("currentTableId");
|
table.resize("currentTableId");
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
@ -225,21 +225,21 @@ function exportExcel() {
|
||||||
'id': objParam.id
|
'id': objParam.id
|
||||||
}
|
}
|
||||||
let url = dataUrl + "backstage/partBack/exportDetail";
|
let url = dataUrl + "backstage/partBack/exportDetail";
|
||||||
exportExcelUtil(url, '配件入库明细', JSON.stringify(params));
|
exportExcelUtil(url, '配件退回明细', JSON.stringify(params));
|
||||||
}
|
}
|
||||||
// 查看概述
|
// 查看概述
|
||||||
function viewGs(obj) {
|
function viewGs(obj) {
|
||||||
layer.open({
|
layer.open({
|
||||||
type: 1,
|
type: 1,
|
||||||
shade: false, // 不显示遮罩
|
shade: false, // 不显示遮罩
|
||||||
content: '<div style="padding: 1%;">' + obj.info + '</div>',
|
content: '<div style="padding: 1%;">' + obj.infoMsg + '</div>',
|
||||||
title: '<h3 style="color: #F56C6C;">' + obj.inputDay + '入库概述:</h3>',
|
title: '<h3 style="color: #F56C6C;">' + obj.backDay + '退料入库概述:</h3>',
|
||||||
btn: ['复制文字', '关闭'],
|
btn: ['复制文字', '关闭'],
|
||||||
area: ['60%', '50%'],
|
area: ['60%', '50%'],
|
||||||
move: false,
|
move: false,
|
||||||
btnAlign: 'c', // 按钮居中显示
|
btnAlign: 'c', // 按钮居中显示
|
||||||
btn1: function () {
|
btn1: function () {
|
||||||
exeCommandCopyText(obj.info);
|
exeCommandCopyText(obj.infoMsg);
|
||||||
},
|
},
|
||||||
btn2: function () {
|
btn2: function () {
|
||||||
layer.close();
|
layer.close();
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ function initFileTable() {
|
||||||
cols: [
|
cols: [
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
width: '10%',
|
width: '9.9%',
|
||||||
title: "序号",
|
title: "序号",
|
||||||
align: "center",
|
align: "center",
|
||||||
templet: function (d) {
|
templet: function (d) {
|
||||||
|
|
@ -97,7 +97,7 @@ function initFileTable() {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "fileName",
|
field: "fileName",
|
||||||
width: '20%',
|
width: '30%',
|
||||||
title: "文件名",
|
title: "文件名",
|
||||||
unresize: true,
|
unresize: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
|
|
@ -115,7 +115,7 @@ function initFileTable() {
|
||||||
{
|
{
|
||||||
field: "createName",
|
field: "createName",
|
||||||
title: "上传人员",
|
title: "上传人员",
|
||||||
width: '20%',
|
width: '10%',
|
||||||
unresize: true,
|
unresize: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
templet: function (d) {
|
templet: function (d) {
|
||||||
|
|
@ -160,9 +160,9 @@ function queryTable(type) {
|
||||||
if (type === 1) {
|
if (type === 1) {
|
||||||
reloadTable(1);
|
reloadTable(1);
|
||||||
} else if (type === 2) {
|
} else if (type === 2) {
|
||||||
$('#type').val('');
|
$('#partType').val('');
|
||||||
$('#name').val('');
|
$('#partName').val('');
|
||||||
$('#model').val('');
|
$('#partModel').val('');
|
||||||
layui.form.render();
|
layui.form.render();
|
||||||
reloadTable(1);
|
reloadTable(1);
|
||||||
}
|
}
|
||||||
|
|
@ -181,9 +181,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(),
|
||||||
'proId': objParam.proId
|
'proId': objParam.proId
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
|
@ -203,9 +203,9 @@ function initTable() {
|
||||||
url: dataUrl + "backstage/statistic/getProDetailsPage",
|
url: dataUrl + "backstage/statistic/getProDetailsPage",
|
||||||
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(),
|
||||||
'proId': objParam.proId
|
'proId': objParam.proId
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
|
@ -224,7 +224,7 @@ function initTable() {
|
||||||
cols: [
|
cols: [
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
width: '7.9%',
|
width: '9.9%',
|
||||||
title: "序号",
|
title: "序号",
|
||||||
align: "center",
|
align: "center",
|
||||||
templet: function (d) {
|
templet: function (d) {
|
||||||
|
|
@ -233,14 +233,14 @@ function initTable() {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "partType",
|
field: "partType",
|
||||||
width: '12%',
|
width: '15%',
|
||||||
title: "配件类型",
|
title: "配件类型",
|
||||||
unresize: true,
|
unresize: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "partName",
|
field: "partName",
|
||||||
width: '12%',
|
width: '15%',
|
||||||
title: "配件名称",
|
title: "配件名称",
|
||||||
unresize: true,
|
unresize: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
|
|
@ -248,56 +248,36 @@ function initTable() {
|
||||||
{
|
{
|
||||||
field: "partModel",
|
field: "partModel",
|
||||||
title: "规格型号",
|
title: "规格型号",
|
||||||
width: '12%',
|
width: '15%',
|
||||||
unresize: true,
|
unresize: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "partUnit",
|
field: "partUnit",
|
||||||
title: "单位",
|
title: "单位",
|
||||||
width: '8%',
|
width: '10%',
|
||||||
unresize: true,
|
unresize: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
field: "inputNum",
|
field: "applyNum",
|
||||||
title: "使用量",
|
width: '10%',
|
||||||
width: '8%',
|
|
||||||
unresize: true,
|
|
||||||
align: "center",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
field: "partPrice",
|
|
||||||
width: '8%',
|
|
||||||
title: "金额(元)",
|
|
||||||
unresize: true,
|
|
||||||
align: "center",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
field: "vendName",
|
|
||||||
width: '8%',
|
|
||||||
title: "领用量",
|
title: "领用量",
|
||||||
unresize: true,
|
unresize: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "vendName",
|
field: "money",
|
||||||
width: '8%',
|
width: '10%',
|
||||||
title: "金额(元)",
|
title: "金额(元)",
|
||||||
unresize: true,
|
unresize: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "remark",
|
field: "remark",
|
||||||
title: "退回量",
|
title: "备注",
|
||||||
width: '8%',
|
width: '15%',
|
||||||
align: "center",
|
|
||||||
unresize: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
field: "remark",
|
|
||||||
title: "金额(元)",
|
|
||||||
width: '8%',
|
|
||||||
align: "center",
|
align: "center",
|
||||||
unresize: true,
|
unresize: true,
|
||||||
},
|
},
|
||||||
|
|
@ -317,9 +297,9 @@ function initTable() {
|
||||||
// 导出
|
// 导出
|
||||||
function exportExcel() {
|
function exportExcel() {
|
||||||
let params = {
|
let params = {
|
||||||
'type': $('#type').val(),
|
'partType': $('#partType').val(),
|
||||||
'name': $('#name').val(),
|
'partName': $('#partName').val(),
|
||||||
'module': $('#module').val(),
|
'partModel': $('#partModel').val(),
|
||||||
'proId': objParam.proId,
|
'proId': objParam.proId,
|
||||||
}
|
}
|
||||||
let url = dataUrl + "backstage/statistic/exportProDetailsPage";
|
let url = dataUrl + "backstage/statistic/exportProDetailsPage";
|
||||||
|
|
|
||||||
|
|
@ -44,8 +44,8 @@
|
||||||
class="layui-icon"></i> 搜 索</button>
|
class="layui-icon"></i> 搜 索</button>
|
||||||
<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="accessoryScrap({})"><i
|
<button class="layui-btn layui-bg-blue" onclick="accessoryScrap({})"><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>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>配件入库记录</title>
|
<title>配件退回记录</title>
|
||||||
<link rel="stylesheet" href="../../../lib/layui-v2.9.18/layui/css/layui.css" media="all">
|
<link rel="stylesheet" href="../../../lib/layui-v2.9.18/layui/css/layui.css" media="all">
|
||||||
<link rel="stylesheet" href="../../../css/font.css" media="all">
|
<link rel="stylesheet" href="../../../css/font.css" media="all">
|
||||||
<link rel="stylesheet" href="../../../css/public.css" media="all">
|
<link rel="stylesheet" href="../../../css/public.css" media="all">
|
||||||
|
|
@ -60,9 +60,9 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td id="codeValue"></td>
|
<td id="codeValue"></td>
|
||||||
<td id="inputNum"></td>
|
<td id="backNum"></td>
|
||||||
<td id="allPrice"></td>
|
<td id="userName"></td>
|
||||||
<td id="inputUser"></td>
|
<td id="backDay"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="4">备注</th>
|
<th colspan="4">备注</th>
|
||||||
|
|
|
||||||
|
|
@ -55,18 +55,18 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th>领用数量</span></th>
|
<th>领用数量</span></th>
|
||||||
<th>领用成本价格(元)</th>
|
<th>领用成本价格(元)</th>
|
||||||
<th>退回数量</th>
|
<!-- <th>退回数量</th>
|
||||||
<th>退回成本价格(元)</th>
|
<th>退回成本价格(元)</th>
|
||||||
<th>使用数量</th>
|
<th>使用数量</th>
|
||||||
<th>使用成本价格(元)</th>
|
<th>使用成本价格(元)</th> -->
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td id="lyNum"></td>
|
<td id="lyNum"></td>
|
||||||
<td id="lyMoney"></td>
|
<td id="lyMoney"></td>
|
||||||
<td id="allPrice"></td>
|
<!-- <td id="allPrice"></td>
|
||||||
<td id="inputUser"></td>
|
<td id="inputUser"></td>
|
||||||
<td id="inputUser2"></td>
|
<td id="inputUser2"></td>
|
||||||
<td id="inputUser3"></td>
|
<td id="inputUser3"></td> -->
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -76,19 +76,8 @@
|
||||||
<span style="font-weight:700;text-decoration:none;color:#409EFF;">▋</span>
|
<span style="font-weight:700;text-decoration:none;color:#409EFF;">▋</span>
|
||||||
<p>附件文档</p>
|
<p>附件文档</p>
|
||||||
</div>
|
</div>
|
||||||
<div id="file-table-box">
|
<div class="table-box" table-responsive style="z-index: 1;width: 98%;margin: 0 1%;">
|
||||||
<div class="table-box" table-responsive style="z-index: 1;" id="table-box">
|
<table class="layui-hide" id="currentTableIdByFile" lay-filter="currentTableIdByFile2"></table>
|
||||||
<table class="layui-hide" id="currentTableIdByFile" lay-filter="currentTableIdByFile2"></table>
|
|
||||||
</div>
|
|
||||||
<!-- <table class="classTable" id="file-table">
|
|
||||||
<tr>
|
|
||||||
<th style="width: 30%;">文件名</th>
|
|
||||||
<th style="width: 10%;">文件类型</th>
|
|
||||||
<th>上传人员</th>
|
|
||||||
<th>上传时间</th>
|
|
||||||
<th>操作</th>
|
|
||||||
</tr>
|
|
||||||
</table> -->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="fhjj-box">
|
<div id="fhjj-box">
|
||||||
|
|
@ -105,20 +94,20 @@
|
||||||
<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="输入配件名称" maxlength="30">
|
class="layui-input" lay-affix="clear" placeholder="输入配件名称" 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="输入规格型号" maxlength="30">
|
class="layui-input" lay-affix="clear" placeholder="输入规格型号" maxlength="30">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue