|
|
@ -49,6 +49,10 @@ |
|
|
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="quality:manufacturingProcess:add"> |
|
|
|
<i class="fa fa-plus"></i> 添加 |
|
|
|
</a> |
|
|
|
<a class="btn btn-success" onclick="exportExcel()" shiro:hasPermission="quality:manufacturingProcess:export"> |
|
|
|
<i class="fa fa-download"></i> 导出 |
|
|
|
</a> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div class="col-sm-12 select-table table-striped"> |
|
|
|
<table id="bootstrap-table"></table> |
|
|
@ -154,8 +158,33 @@ |
|
|
|
// 详情页面 |
|
|
|
function detail(manufacturingProcessAutoid){ |
|
|
|
var url = ctx+'quality/manufacturingProcess/detail/'+manufacturingProcessAutoid; |
|
|
|
$.modal.open("制程工序详情",url); |
|
|
|
$.modal.openFull("制程工序详情",url); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 导出 |
|
|
|
function exportExcel() { |
|
|
|
var ids = $.table.selectColumns("warehouseStorageCode"); |
|
|
|
var dataParam = $("#formId").serializeArray(); |
|
|
|
|
|
|
|
let tipMsg = "确定导出当前所有数据吗?"; |
|
|
|
if ($.common.isNotEmpty(ids)) { |
|
|
|
tipMsg = `确定导出 ${ids} 数据吗?`; |
|
|
|
dataParam.push({ "name": "ids", "value": ids }); |
|
|
|
} |
|
|
|
$.modal.confirm(tipMsg, function () { |
|
|
|
$.modal.loading("正在导出数据,请稍后..."); |
|
|
|
$.post( prefix + "/export", dataParam, function (result) { |
|
|
|
if (result.code === web_status.SUCCESS) { |
|
|
|
window.location.href = ctx + "common/download?fileName="+ encodeURI(result.msg) + "&delete=" + true; |
|
|
|
} else { |
|
|
|
$.modal.alertError(result.msg); |
|
|
|
} |
|
|
|
$.modal.closeLoading(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
</script> |
|
|
|
</body> |
|
|
|
</html> |