From 81805eb1249693619efc9fa4a3efcea26444f8cb Mon Sep 17 00:00:00 2001
From: yxj <yxj@hz-kingdee.com>
Date: 星期三, 27 十二月 2023 17:03:56 +0800
Subject: [PATCH] 安东尼奥发货看板显示数据定时刷新,列字段间距修改、每页显示15条数据
---
Delivery.html | 56 ++++++++++++++++++++++++++++++++++++--------------------
1 files changed, 36 insertions(+), 20 deletions(-)
diff --git a/Delivery.html b/Delivery.html
index d92983d..80cb5ca 100644
--- a/Delivery.html
+++ b/Delivery.html
@@ -30,6 +30,7 @@
.layui-table td {
font-weight: bold;
}
+
.clock {
font-family: 'BebasNeueRegular', Arial, Helvetica, sans-serif;
font-size: 20px;
@@ -380,7 +381,10 @@
}, 20000);
interval1 = setInterval(function () {
$("#tb_order").bootstrapTable('refresh');
- }, 1000);
+ DataTable();
+ DataTable2();
+ DataTable3();
+ }, 30000);
//鏍规嵁娴忚鍣ㄥぇ灏忔敼鍙樺ぇ灏�
//window.onresize = () => {
// mychart1.resize();
@@ -710,7 +714,7 @@
type: "GET",
url: GetWEBURL() + '/loaddata/DeliveryTableData',
contentType: "application/json;charset=utf-8",
- data: { "limit": "10", "offset": num },
+ data: { "limit": "15", "offset": num },
async: false,
dataType: "json",
json: 'callback',
@@ -726,13 +730,16 @@
if (result.columnNameList[key].ColmType == "Decimal") {
col.push({
- field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 100, formatter: function (value, row, index) {
+ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 120, formatter: function (value, row, index) {
return parseFloat(value).toFixed(2);
}
});
}
- else if (result.columnNameList[key].ColmCols == '鏃ユ湡' || result.columnNameList[key].ColmCols == '瀹㈡埛鍚嶇О') {
+ else if (result.columnNameList[key].ColmCols == '鏃ユ湡' || result.columnNameList[key].ColmCols == '瀹㈡埛鍚嶇О' || result.columnNameList[key].ColmCols == '鍙告満鐢佃瘽') {
col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 120 });
+ }
+ else if (result.columnNameList[key].ColmCols == '瑁呰溅鏃堕棿' || result.columnNameList[key].ColmCols == '杩涘巶鏃堕棿' || result.columnNameList[key].ColmCols == '鍑哄巶鏃堕棿') {
+ col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 170 });
}
else if (result.columnNameList[key].ColmCols == '鐗╂枡鍚嶇О') {
col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 150 });
@@ -740,12 +747,12 @@
else if (result.columnNameList[key].ColmCols == '瑙勬牸鍨嬪彿') {
col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 250 });
} else {
- col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 100 });
+ col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 110 });
}
}
- var num_total = (result.total) / 10;
+ var num_total = (result.total) / 15;
if (num >= num_total) {
num = 0;
}
@@ -755,7 +762,8 @@
, toolbar: '#toolbarDemo'
, data: result.rows
, page: true // 寮�鍚垎椤�
- , limit: 10
+ , limit: 15
+ , limits: [15, 30, 45, 60, 75, 100, 115, 130, 145, 160, 175, 200]
, cols: [col]
, done: function (res, curr, count) {
res.data.forEach(function (item, index) {
@@ -861,7 +869,7 @@
type: "GET",
url: GetWEBURL() + '/loaddata/DeliveryTableData2',
contentType: "application/json;charset=utf-8",
- data: { "limit": "10", "offset": num2 },
+ data: { "limit": "15", "offset": num2 },
async: false,
dataType: "json",
json: 'callback',
@@ -876,13 +884,16 @@
if (result.columnNameList[key].ColmType == "Decimal") {
col.push({
- field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 100, formatter: function (value, row, index) {
+ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 120, formatter: function (value, row, index) {
return parseFloat(value).toFixed(2);
}
});
}
- else if (result.columnNameList[key].ColmCols == '鏃ユ湡' || result.columnNameList[key].ColmCols == '瀹㈡埛鍚嶇О') {
+ else if (result.columnNameList[key].ColmCols == '鏃ユ湡' || result.columnNameList[key].ColmCols == '瀹㈡埛鍚嶇О' || result.columnNameList[key].ColmCols == '鍙告満鐢佃瘽') {
col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 120 });
+ }
+ else if (result.columnNameList[key].ColmCols == '瑁呰溅鏃堕棿' || result.columnNameList[key].ColmCols == '杩涘巶鏃堕棿' || result.columnNameList[key].ColmCols == '鍑哄巶鏃堕棿') {
+ col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 170 });
}
else if (result.columnNameList[key].ColmCols == '鐗╂枡鍚嶇О') {
col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 150 });
@@ -890,12 +901,12 @@
else if (result.columnNameList[key].ColmCols == '瑙勬牸鍨嬪彿') {
col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 250 });
} else {
- col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 100 });
+ col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 110 });
}
}
- var num_total2 = (result.total) / 10;
+ var num_total2 = (result.total) / 15;
if (num2 >= num_total2) {
num2 = 0;
}
@@ -905,7 +916,8 @@
, toolbar: '#toolbarDemo2'
, data: result.rows
, page: true // 寮�鍚垎椤�
- , limit: 10
+ , limit: 15
+ , limits: [15, 30, 45, 60, 75, 100, 115, 130, 145, 160, 175, 200]
, cols: [col]
, done: function (res, curr, count) {
res.data.forEach(function (item, index) {
@@ -996,7 +1008,7 @@
type: "GET",
url: GetWEBURL() + '/loaddata/DeliveryTableData3',
contentType: "application/json;charset=utf-8",
- data: { "limit": "10", "offset": num3 },
+ data: { "limit": "15", "offset": num3 },
async: false,
dataType: "json",
json: 'callback',
@@ -1011,13 +1023,16 @@
if (result.columnNameList[key].ColmType == "Decimal") {
col.push({
- field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 100, formatter: function (value, row, index) {
+ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 120, formatter: function (value, row, index) {
return parseFloat(value).toFixed(2);
}
});
}
- else if (result.columnNameList[key].ColmCols == '鏃ユ湡' || result.columnNameList[key].ColmCols == '瀹㈡埛鍚嶇О') {
+ else if (result.columnNameList[key].ColmCols == '鏃ユ湡' || result.columnNameList[key].ColmCols == '瀹㈡埛鍚嶇О' || result.columnNameList[key].ColmCols == '鍙告満鐢佃瘽') {
col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 120 });
+ }
+ else if (result.columnNameList[key].ColmCols == '瑁呰溅鏃堕棿' || result.columnNameList[key].ColmCols == '杩涘巶鏃堕棿' || result.columnNameList[key].ColmCols == '鍑哄巶鏃堕棿') {
+ col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 170 });
}
else if (result.columnNameList[key].ColmCols == '鐗╂枡鍚嶇О') {
col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 150 });
@@ -1025,12 +1040,12 @@
else if (result.columnNameList[key].ColmCols == '瑙勬牸鍨嬪彿') {
col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 250 });
} else {
- col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 100 });
+ col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 110 });
}
}
- var num_total3 = (result.total) / 10;
+ var num_total3 = (result.total) / 15;
if (num3 >= num_total3) {
num3 = 0;
}
@@ -1040,7 +1055,8 @@
, toolbar: '#toolbarDemo3'
, data: result.rows
, page: true // 寮�鍚垎椤�
- , limit: 10
+ , limit: 15
+ , limits: [15, 30, 45, 60, 75, 100, 115, 130, 145, 160, 175, 200]
, cols: [col]
, done: function (res, curr, count) {
res.data.forEach(function (item, index) {
@@ -1170,7 +1186,7 @@
<button type="button" class="layui-btn layui-btn-sm" lay-event="OutFactory1">鍑哄巶</button>
<button type="button" class="layui-btn layui-btn-sm" lay-event="DOutFactory1">鎾ら攢鍑哄巶</button>
</div>
- </script>S
+ </script>
</div>
</div>
<!--鍩烘湰淇℃伅-->
--
Gitblit v1.9.1