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