导入弹框初步编写

master
rdpnr_hemingxia 2025-04-11 16:35:17 +08:00
parent 7ad3874d09
commit 69b8d1d8ab
2 changed files with 49 additions and 6 deletions

View File

@ -84,7 +84,6 @@
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
importUrl: prefix + "/import",
modalName: "发货记录",
columns: [{
checkbox: true
@ -125,7 +124,7 @@
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + listFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-list"></i>发货清单</a> ');
actions.push('<a class="btn btn-success btn-xs ' + listFlag + '" href="javascript:void(0)" onclick="openList(\'' + row.id + '\')"><i class="fa fa-list"></i>发货清单</a> ');
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
@ -134,6 +133,9 @@
};
$.table.init(options);
});
function openList(id){
$.modal.open('发货清单', prefix + `/import/${id}`)
}
</script>
</body>
</html>

View File

@ -1,10 +1,51 @@
<!DOCTYPE html>
<html lang="en">
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<meta charset="UTF-8">
<title>Title</title>
<th:block th:include="include :: header('发货清单列表')" />
</head>
<body>
<script>
$(function() {
var options = {
url: prefix + "/list",
columns: [{
checkbox: true
},
{
field: 'id',
title: '主键,自增',
visible: false
},
{
field: 'orderId',
title: '关联合同id'
},
{
field: 'deliveryCode',
title: '发货单号'
},
{
field: 'deliveryDate',
title: '发货日期'
},
{
field: 'deliveryType',
title: '发货方式',
formatter: function(value, row, index) {
return $.table.selectDictLabel(deliveryTypeDatas, value);
}
},
{
field: 'deliveryStatus',
title: '发货状态',
formatter: function(value, row, index) {
return $.table.selectDictLabel(deliveryStatusDatas, value);
}
},
]
};
$.table.init(options);
});
</script>
</body>
</html>