需求计划管理归还日期全部改为预计使用时间
This commit is contained in:
parent
9d549ccd38
commit
4df27b7405
|
|
@ -425,7 +425,7 @@ function updateTableWithImportedData(data) {
|
|||
const importedItem = data.find((item) => item.id === rowData.id)
|
||||
if (importedItem) {
|
||||
// 更新表格数据
|
||||
rowData.needNum = importedItem.needNum
|
||||
rowData.needNum = Number(importedItem.needNum)
|
||||
rowData.times = importedItem.times
|
||||
rowData.remarks = importedItem.remarks
|
||||
updated = true
|
||||
|
|
@ -433,7 +433,7 @@ function updateTableWithImportedData(data) {
|
|||
// 更新表格中对应单元格的显示
|
||||
const rowIndex = rowData.LAY_INDEX
|
||||
// 更新需用量单元格
|
||||
$(`tr[data-index="${rowIndex}"] td[data-field="needNum"] .layui-table-cell`).text(importedItem.needNum || "")
|
||||
$(`tr[data-index="${rowIndex}"] td[data-field="needNum"] .layui-table-cell`).text(Number(importedItem.needNum) || "")
|
||||
// 更新退还日期单元格
|
||||
$(`tr[data-index="${rowIndex}"] td[data-field="times"] .layui-table-cell`).text(importedItem.times || "")
|
||||
// 更新备注单元格
|
||||
|
|
|
|||
|
|
@ -263,7 +263,7 @@ function initTable() {
|
|||
],
|
||||
],
|
||||
limits: [10, 15, 20, 25, 50, 100],
|
||||
limit: 10,
|
||||
limit: 20,
|
||||
page: true,
|
||||
done: function (res, curr, count) {
|
||||
pageNum = tableIns.config.page.curr;
|
||||
|
|
|
|||
|
|
@ -285,7 +285,7 @@ function initTable() {
|
|||
],
|
||||
],
|
||||
limits: [10, 15, 20, 25, 50, 100],
|
||||
limit: 10,
|
||||
limit: 20,
|
||||
page: true,
|
||||
done: function (res, curr, count) {
|
||||
pageNum = tableIns.config.page.curr;
|
||||
|
|
|
|||
Loading…
Reference in New Issue