This commit is contained in:
parent
45cf8ee7ba
commit
6aa406829c
|
|
@ -111,7 +111,7 @@ function initTable() {
|
||||||
[
|
[
|
||||||
{ type: 'checkbox', width: '5%' },
|
{ type: 'checkbox', width: '5%' },
|
||||||
{
|
{
|
||||||
width: '6%',
|
width: '5%',
|
||||||
title: "序号",
|
title: "序号",
|
||||||
align: "center",
|
align: "center",
|
||||||
templet: function (d) {
|
templet: function (d) {
|
||||||
|
|
@ -145,14 +145,20 @@ function initTable() {
|
||||||
{
|
{
|
||||||
field: "unitName",
|
field: "unitName",
|
||||||
title: "单位",
|
title: "单位",
|
||||||
width: '10%',
|
width: '5%',
|
||||||
|
unresize: true,
|
||||||
|
align: "center",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: "storageNum",
|
||||||
|
title: "库存",
|
||||||
|
width: '5%',
|
||||||
unresize: true,
|
unresize: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
sort:true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "needNum",
|
field: "needNum",
|
||||||
width: '15%',
|
width: '10%',
|
||||||
title: "<span style='color:red'> * </span>需用量",
|
title: "<span style='color:red'> * </span>需用量",
|
||||||
unresize: true,
|
unresize: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
|
|
|
||||||
|
|
@ -34,11 +34,11 @@ function getStatistics() {
|
||||||
// 查询/重置
|
// 查询/重置
|
||||||
function queryTable(type) {
|
function queryTable(type) {
|
||||||
if (type === 1) {
|
if (type === 1) {
|
||||||
let projectName = $('#projectName').val();
|
let keyWord = $('#keyWord').val();
|
||||||
let flag = checkValue(projectName);
|
let flag = checkValue(keyWord);
|
||||||
if (flag) {
|
if (flag) {
|
||||||
$('#projectName').val('');
|
$('#keyWord').val('');
|
||||||
return layer.msg('工程名称查询包含特殊字符,请重新输入', { icon: 2 });
|
return layer.msg('关键字查询包含特殊字符,请重新输入', { icon: 2 });
|
||||||
}
|
}
|
||||||
let useUnit = $('#useUnit').val();
|
let useUnit = $('#useUnit').val();
|
||||||
let flag2 = checkValue(useUnit);
|
let flag2 = checkValue(useUnit);
|
||||||
|
|
@ -48,7 +48,7 @@ function queryTable(type) {
|
||||||
}
|
}
|
||||||
reloadTable(1);
|
reloadTable(1);
|
||||||
} else if (type === 2) {
|
} else if (type === 2) {
|
||||||
$('#projectName').val('');
|
$('#keyWord').val('');
|
||||||
$('#useUnit').val('');
|
$('#useUnit').val('');
|
||||||
$('#isShortage').val('');
|
$('#isShortage').val('');
|
||||||
layui.form.render();
|
layui.form.render();
|
||||||
|
|
@ -67,7 +67,7 @@ function reloadTable(pageNum) {
|
||||||
table.reload("currentTableId", {
|
table.reload("currentTableId", {
|
||||||
where: {
|
where: {
|
||||||
encryptedData: JSON.stringify({
|
encryptedData: JSON.stringify({
|
||||||
'proName': $('#projectName').val(),
|
'keyWord': $('#keyWord').val(),
|
||||||
'isShortage': $('#isShortage').val()
|
'isShortage': $('#isShortage').val()
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
|
@ -87,7 +87,7 @@ function initTable() {
|
||||||
url: dataUrl + "backstage/inventoryCount/queryLedgerListByProjectAndModel",
|
url: dataUrl + "backstage/inventoryCount/queryLedgerListByProjectAndModel",
|
||||||
where: {
|
where: {
|
||||||
encryptedData: JSON.stringify({
|
encryptedData: JSON.stringify({
|
||||||
'proName': $('#projectName').val(),
|
'keyWord': $('#keyWord').val(),
|
||||||
'leaseUnit': $('#useUnit').val(),
|
'leaseUnit': $('#useUnit').val(),
|
||||||
'isShortage': $('#isShortage').val()
|
'isShortage': $('#isShortage').val()
|
||||||
}),
|
}),
|
||||||
|
|
@ -248,11 +248,11 @@ function viewDetail(id) {
|
||||||
|
|
||||||
// 导出Excel
|
// 导出Excel
|
||||||
function exportExcel() {
|
function exportExcel() {
|
||||||
let projectName = $('#projectName').val();
|
let keyWord = $('#keyWord').val();
|
||||||
let isShortage = $('#isShortage').val();
|
let isShortage = $('#isShortage').val();
|
||||||
|
|
||||||
let params = {
|
let params = {
|
||||||
'proName': projectName,
|
'keyWord': keyWord,
|
||||||
'isShortage': isShortage
|
'isShortage': isShortage
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,11 @@ function getPlanApplyPayDetails() {
|
||||||
}, null);
|
}, null);
|
||||||
// 基本数据表格赋值
|
// 基本数据表格赋值
|
||||||
function setTableData(obj) {
|
function setTableData(obj) {
|
||||||
|
if (obj.planCode) {
|
||||||
$('#planCode').html("<a style='color:#2F82FB;cursor: pointer;' onclick='openPlanDetail(" + JSON.stringify(objParam) + ")'>" + obj.planCode + "</a>");
|
$('#planCode').html("<a style='color:#2F82FB;cursor: pointer;' onclick='openPlanDetail(" + JSON.stringify(objParam) + ")'>" + obj.planCode + "</a>");
|
||||||
|
} else {
|
||||||
|
$('#planCode').html("");
|
||||||
|
}
|
||||||
$('#supName').html(obj.supName);
|
$('#supName').html(obj.supName);
|
||||||
$('#proName').html(objParam.proName);
|
$('#proName').html(objParam.proName);
|
||||||
$('#cgNum').html(obj.cgNum);
|
$('#cgNum').html(obj.cgNum);
|
||||||
|
|
@ -266,6 +270,9 @@ function initTable() {
|
||||||
unresize: true,
|
unresize: true,
|
||||||
sort:true,
|
sort:true,
|
||||||
templet: function (d) {
|
templet: function (d) {
|
||||||
|
if (!d.planCode) {
|
||||||
|
return ""; // 返回空字符串
|
||||||
|
}
|
||||||
let html = "";
|
let html = "";
|
||||||
html += "<a onclick='openPlanDetail(" + JSON.stringify(d) + ")'>" + d.planCode + "</a>";
|
html += "<a onclick='openPlanDetail(" + JSON.stringify(d) + ")'>" + d.planCode + "</a>";
|
||||||
return html;
|
return html;
|
||||||
|
|
|
||||||
|
|
@ -146,6 +146,9 @@ function initTable() {
|
||||||
align: "center",
|
align: "center",
|
||||||
sort:true,
|
sort:true,
|
||||||
templet: function (d) {
|
templet: function (d) {
|
||||||
|
if (!d.planCode) {
|
||||||
|
return ""; // 返回空字符串
|
||||||
|
}
|
||||||
let html = "";
|
let html = "";
|
||||||
html += "<a onclick='openPlanDetail(" + JSON.stringify(d) + ")'>" + d.planCode + "</a>";
|
html += "<a onclick='openPlanDetail(" + JSON.stringify(d) + ")'>" + d.planCode + "</a>";
|
||||||
return html;
|
return html;
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<div class="layui-input-inline" style="width: 350px;">
|
<div class="layui-input-inline" style="width: 350px;">
|
||||||
<input type="text" name="keyWord" id="keyWord" autocomplete="off"
|
<input type="text" name="keyWord" id="keyWord" 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" id="ID-laydate-rangeLinked">
|
<div class="layui-inline" id="ID-laydate-rangeLinked">
|
||||||
|
|
|
||||||
|
|
@ -51,9 +51,9 @@
|
||||||
<input type="text" value="1" id="auditStatus" name="auditStatus" hidden>
|
<input type="text" value="1" id="auditStatus" name="auditStatus" hidden>
|
||||||
<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: 370px;">
|
<div class="layui-input-inline" style="width: 400px;">
|
||||||
<input type="text" name="keyWord" id="keyWord" autocomplete="off"
|
<input type="text" name="keyWord" id="keyWord" 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">
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,9 @@
|
||||||
<form class="layui-form layui-form-pane" action="#" onsubmit="return false;">
|
<form class="layui-form layui-form-pane" action="#" onsubmit="return false;">
|
||||||
<div class="layui-form-item" style="display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap;">
|
<div class="layui-form-item" style="display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap;">
|
||||||
<div class="layui-inline" style="margin-right: 10px;">
|
<div class="layui-inline" style="margin-right: 10px;">
|
||||||
<div class="layui-input-inline" style="width: 310px;">
|
<div class="layui-input-inline" style="width: 350px;">
|
||||||
<input type="text" name="keyWord" id="keyWord" autocomplete="off"
|
<input type="text" name="keyWord" id="keyWord" 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">
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
<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="keyWord" id="keyWord" autocomplete="off"
|
<input type="text" name="keyWord" id="keyWord" 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">
|
||||||
|
|
|
||||||
|
|
@ -99,9 +99,9 @@
|
||||||
<form class="layui-form layui-form-pane" action="#" onsubmit="return false;">
|
<form class="layui-form layui-form-pane" action="#" onsubmit="return false;">
|
||||||
<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: 200px;">
|
<div class="layui-input-inline" style="width: 400px;">
|
||||||
<input type="text" name="projectName" id="projectName" autocomplete="off"
|
<input type="text" name="keyWord" id="keyWord" 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">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue