This commit is contained in:
parent
87357dd5cc
commit
528a9fecce
|
|
@ -50,7 +50,7 @@ function initTable() {
|
|||
headers: {
|
||||
authorization: sessionStorage.getItem("gz-token"),
|
||||
},
|
||||
height: "full-140",
|
||||
// height: "full-140",
|
||||
url: dataUrl + "backstage/planOut/getPorInfoDetail2",
|
||||
where: {
|
||||
encryptedData: JSON.stringify({
|
||||
|
|
@ -252,17 +252,18 @@ function schedule(d) {
|
|||
|
||||
// 导出
|
||||
function exportExcel() {
|
||||
let encryptedData = JSON.stringify({
|
||||
'proName': $('#proName').val(),
|
||||
'status': $('#status').val()
|
||||
});
|
||||
let url = dataUrl + "backstage/planOut/exportExcel?encryptedData=" + encryptedData;
|
||||
exportExcelUtil(url, '机具公司发货数据');
|
||||
let params = {
|
||||
'name': $('#name').val(),
|
||||
'module': $('#module').val(),
|
||||
'proId': objParam.proId
|
||||
}
|
||||
let url = dataUrl + "backstage/export/exportAllFhList";
|
||||
exportExcelUtil(url, '发货详情-全部', JSON.stringify(params));
|
||||
}
|
||||
|
||||
// 打印
|
||||
function print() {
|
||||
Print('#body', {
|
||||
Print('#table-box', {
|
||||
onStart: function () {
|
||||
console.log('onStart', new Date())
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
let objParam = JSON.parse(JSON.parse(decodeURIComponent(getUrlParam('obj'))));
|
||||
let id = getUrlParam('id'); // 批次ID
|
||||
let time = getUrlParam('time'); // 批次日期
|
||||
let form, table, element, tableIns, layer;
|
||||
let pageNum = 1;
|
||||
layui.use(["form", "table", 'element', 'layer'], function () {
|
||||
|
|
@ -256,12 +257,14 @@ function setNumColor(value, type) { // 1.需要量 2.本次发货量 3.不发货
|
|||
|
||||
// 导出
|
||||
function exportExcel() {
|
||||
let encryptedData = JSON.stringify({
|
||||
'proName': $('#proName').val(),
|
||||
'status': $('#status').val()
|
||||
});
|
||||
let url = dataUrl + "backstage/planOut/exportExcel?encryptedData=" + encryptedData;
|
||||
exportExcelUtil(url, '机具公司发货数据');
|
||||
let params = {
|
||||
'name': $('#name').val(),
|
||||
'module': $('#module').val(),
|
||||
'proId': objParam.proId,
|
||||
'id': id
|
||||
}
|
||||
let url = dataUrl + "backstage/export/exportPcList";
|
||||
exportExcelUtil(url, '发货详情-批次-' + time, JSON.stringify(params));
|
||||
}
|
||||
|
||||
// 打印
|
||||
|
|
|
|||
|
|
@ -10,11 +10,13 @@ function setParams(obj) {
|
|||
element = layui.element;
|
||||
// tab 切换事件
|
||||
element.on('tab(demo-filter-tab)', function (data) {
|
||||
console.log(data);
|
||||
let value = $(this).attr('value');
|
||||
if (value === '') { // 全部
|
||||
$('#indexIframe').attr('src', 'delivery_all_list.html?obj=' + encodeURIComponent(JSON.stringify(obj)));
|
||||
} else if (value !== '0') {
|
||||
$('#indexIframe').attr('src', 'delivery_batch_list.html?obj=' + encodeURIComponent(JSON.stringify(obj)) + '&id=' + value);
|
||||
let time = $(this).attr('tiem');
|
||||
$('#indexIframe').attr('src', 'delivery_batch_list.html?obj=' + encodeURIComponent(JSON.stringify(obj)) + '&id=' + value + '&time=' + time);
|
||||
} else if (value === '0') {
|
||||
$('#indexIframe').attr('src', 'delivery_not_send_list.html?obj=' + encodeURIComponent(JSON.stringify(obj)));
|
||||
}
|
||||
|
|
@ -43,7 +45,7 @@ function getShipmentBatch(list) {
|
|||
} else if (item.name === '全部') {
|
||||
html += '<li value="' + this.id + '"><span class="li-span">' + this.name + '</span></li>';
|
||||
} else {
|
||||
html += '<li value="' + this.id + '"><span>' + item.name + '</span><span>' + item.tiem + '</span></li>';
|
||||
html += '<li value="' + this.id + '" tiem="'+item.tiem+'"><span>' + item.name + '</span><span>' + item.tiem + '</span></li>';
|
||||
}
|
||||
})
|
||||
$('.layui-tab-title').empty().append(html);
|
||||
|
|
|
|||
|
|
@ -177,12 +177,13 @@ function setNumColor(value, type) { // 1.需要量 2.本次发货量 3.不发货
|
|||
|
||||
// 导出
|
||||
function exportExcel() {
|
||||
let encryptedData = JSON.stringify({
|
||||
'proName': $('#proName').val(),
|
||||
'status': $('#status').val()
|
||||
});
|
||||
let url = dataUrl + "backstage/planOut/exportExcel?encryptedData=" + encryptedData;
|
||||
exportExcelUtil(url, '机具公司发货数据');
|
||||
let params = {
|
||||
'name': $('#name').val(),
|
||||
'module': $('#module').val(),
|
||||
'proId': objParam.proId
|
||||
}
|
||||
let url = dataUrl + "backstage/export/exportDfhList";
|
||||
exportExcelUtil(url, '发货详情-待发货', JSON.stringify(params));
|
||||
}
|
||||
|
||||
// 打印
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ function exportExcelUtil(url, fileName,params) {
|
|||
var a = document.createElement("a");
|
||||
var url = window.URL.createObjectURL(blob);
|
||||
a.href = url;
|
||||
a.download = fileName + getNowDate() + ".xlsx"; // 文件名
|
||||
a.download = fileName + ".xlsx"; // 文件名
|
||||
} else {
|
||||
layer.msg("数据发生异常,请稍后重试", { icon: 16, scrollbar: false, time: 2000 });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,10 +15,14 @@
|
|||
padding: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.layuimini-container {
|
||||
height: auto;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body>
|
||||
<div class="layuimini-container">
|
||||
<div class="layuimini-container" id="layuimini-container">
|
||||
<div class="layuimini-main">
|
||||
<fieldset class="table-search-fieldset">
|
||||
<legend>搜索信息</legend>
|
||||
|
|
@ -27,14 +31,14 @@
|
|||
<div class="layui-form-item">
|
||||
<div class="layui-inline">
|
||||
<div class="layui-input-inline" style="width: 300px;">
|
||||
<input type="text" name="name" id="name" autocomplete="off"
|
||||
class="layui-input" lay-affix="clear" placeholder="输入物机名称" maxlength="30">
|
||||
<input type="text" name="name" id="name" autocomplete="off" class="layui-input"
|
||||
lay-affix="clear" placeholder="输入物机名称" maxlength="30">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<div class="layui-input-inline" style="width: 300px;">
|
||||
<input type="text" name="module" id="module" autocomplete="off"
|
||||
class="layui-input" lay-affix="clear" placeholder="输入规格" maxlength="30">
|
||||
<input type="text" name="module" id="module" autocomplete="off" class="layui-input"
|
||||
lay-affix="clear" placeholder="输入规格" maxlength="30">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
|
|
@ -51,7 +55,7 @@
|
|||
</form>
|
||||
</div>
|
||||
</fieldset>
|
||||
<div class="table-box" table-responsive style="z-index: 1;">
|
||||
<div class="table-box" id="table-box" table-responsive style="z-index: 1;">
|
||||
<table class="layui-hide" id="currentTableId" lay-filter="currentTableId2"></table>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue