From f011af757d1fa898742f69211f02139ab3847869 Mon Sep 17 00:00:00 2001
From: admin <qiutairan163@163.com>
Date: 星期二, 02 十二月 2025 17:02:47 +0800
Subject: [PATCH] 修改表格内容溢出破坏页面布局
---
HTML/views/ASNSetting/ArrivalNoticeDetail.html | 53 ++++++++++++++++++++++++++++++++++++++++++++---------
1 files changed, 44 insertions(+), 9 deletions(-)
diff --git a/HTML/views/ASNSetting/ArrivalNoticeDetail.html b/HTML/views/ASNSetting/ArrivalNoticeDetail.html
index ccbd5b2..7ba846b 100644
--- a/HTML/views/ASNSetting/ArrivalNoticeDetail.html
+++ b/HTML/views/ASNSetting/ArrivalNoticeDetail.html
@@ -13,7 +13,7 @@
<style type="text/css">
.layui-table-cell,
.layui-table-box {
- overflow: visible;
+ overflow: hidden;
}
td .layui-form-select {
@@ -99,11 +99,11 @@
<table id="LAY-app-content-list" name="LAY-app-content-list" lay-filter="LAY-app-content-list">
</table>
<!-- #region 鑷畾涔夎〃澶� -->
- <div class="headerSetIcon">
+ <!-- <div class="headerSetIcon">
<button class="layui-btn layui-btn-primary layui-btn-sm" data-type="customCols">
<i class="layui-icon"></i>
</button>
- </div>
+ </div> -->
<!-- #endregion -->
<!-- #region 鑷畾涔夎〃澶�-->
@@ -120,6 +120,22 @@
}
}}
{{ GetBtn(d) }}
+ </script>
+
+ <script type="text/html" id="templetProductionTime">
+ {{# function GetBtn12(d){
+ return formatDate2(d.Lot1);
+ }
+ }}
+ {{ GetBtn12(d) }}
+ </script>
+
+ <script type="text/html" id="templetExpirationTime">
+ {{# function GetBtn13(d){
+ return formatDate2(d.Lot2);
+ }
+ }}
+ {{ GetBtn13(d) }}
</script>
@@ -161,11 +177,11 @@
var $ = layui.$, form = layui.form, laydate = layui.laydate,
table = layui.table, layer = layui.layer;
laydate.render({
- elem: '#ProductionDate'
+ elem: '#Lot1'
, format: 'yyyy-MM-dd' //鍙换鎰忕粍鍚�
});
laydate.render({
- elem: '#ExpirationDate'
+ elem: '#Lot2'
, format: 'yyyy-MM-dd' //鍙换鎰忕粍鍚�
});
var arr = [];
@@ -187,9 +203,9 @@
{ field: 'UnitName', title: '璁¢噺鍗曚綅', align: 'center', width: 70 },
{ field: 'Standard', title: '瑙勬牸', width: 160, align: 'center' },
{ field: 'LotText', title: '鎵规鎻忚堪', align: 'center', edit: 'text', width: 160 },
- { field: 'PackagNo', title: '鍖呰鍚嶇О', width: 160, templet: "#table-content-Packlist" },
- { field: 'Lot1', title: '鐢熶骇鏃ユ湡', align: 'center', edit: 'text', width: 140 },
- { field: 'Lot2', title: '杩囨湡鏃ユ湡', align: 'center', edit: 'text', width: 140 },
+ { field: 'PackagNo', title: '鍖呰鍚嶇О', templet: "#table-content-Packlist" },
+ { field: 'Lot1', title: '鐢熶骇鏃ユ湡', align: 'center', event: 'DateC', edit: 'text', width: 140, templet: '#templetProductionTime' },
+ { field: 'Lot2', title: '杩囨湡鏃ユ湡', align: 'center', event: 'DateC', edit: 'text', width: 140, templet: '#templetExpirationTime' },
// { field: 'Price', title: '鍗曚环', align: 'center', width: 80 },
// { field: 'Money', title: '閲戦', align: 'center', width: 100 },
@@ -239,7 +255,7 @@
});
form.render();
//鑷畾涔夊垪瀹�
- SetTableColW('LAY-app-content-list', 'BllAsn/GetArrivalNoticeDetailList2', TotalColsSysArr);
+ //SetTableColW('LAY-app-content-list', 'BllAsn/GetArrivalNoticeDetailList2', TotalColsSysArr);
},
cols: colsJson
};
@@ -405,6 +421,23 @@
}
});
}
+
+ //鐢熶骇鏃ユ湡鍜屽埌鏈熸棩鏈�
+ var data = obj.data;
+ if (obj.event == "DateC") {
+ var field = $(this).data('field');
+ laydate.render({
+ elem: this.firstChild,
+ show: true,
+ //type:'datetime',
+ format: 'yyyy-MM-dd',
+ closeStop: this,
+ done: function (value, date) {
+ data[field] = value;
+ obj.update(data);
+ }
+ })
+ }
});
// 淇濆瓨鍏ュ簱鍗�
@@ -553,6 +586,8 @@
if (isHave) {
continue;
}
+ data[i].Lot1='';
+ data[i].Lot2='';
arr.push(data[i]); //灞炴��
}
--
Gitblit v1.8.0