Files
SIPAIIS_WMS_JSSW/WebRoot/jsp/process/libraryProcessAdjustment4Tree.jsp

125 lines
4.5 KiB
Plaintext
Raw Permalink Normal View History

2026-01-16 14:13:44 +08:00
<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ page import="com.sipai.entity.base.ServerObject" %>
<%@ taglib uri="http://www.springsecurity.org/jsp" prefix="security" %>
<!DOCTYPE html>
<!-- <html lang="zh-CN"> -->
<!-- BEGIN HEAD -->
<head>
<title><%= ServerObject.atttable.get("TOPTITLE")%>
</title>
<!-- 引用页头及CSS页-->
<jsp:include page="/jsp/inc.jsp"></jsp:include>
<!-- 文件上传-->
<link rel="stylesheet" href="<%=request.getContextPath()%>/node_modules/bootstrap-fileinput/css/fileinput.min.css"/>
<script type="text/javascript"
src="<%=request.getContextPath()%>/node_modules/bootstrap-fileinput/js/fileinput.min.js"
charset="utf-8"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/node_modules/bootstrap-fileinput/js/locales/zh.js"
charset="utf-8"></script>
<style type="text/css">
.buttonDiv {
float: left;
}
</style>
<script type="text/javascript">
var unitId = "";
var choiceFun = function (id) {
$.post(ext.contextPath + '/process/libraryProcessAdjustment/showList.do', {classId: id}, function (data) {
$("#contentListTable").html(data);
});
};
var initTreeView = function () {
$.post(ext.contextPath + '/process/processAdjustmentType/getTreeJson.do', {unitId: unitId}, function (data) {
var treeData = data.result;
$('#tree').treeview({data: treeData, levels: 1});
$('#tree').on('nodeSelected', function (event, treeData) {
choiceFun(treeData.id);
});
}, 'json');
$("#contentListTable").html("");
};
function importExcelFun2() {
$.post(ext.contextPath + '/process/libraryProcessAdjustment/importExcelFun.do', {unitId: unitId}, function (data) {
$("#fileInputDiv").html(data);
openModal('subfileInputModal');
});
}
function outExcelFun() {
window.open(ext.contextPath + "/process/libraryProcessAdjustment/outExcelFun.do?unitId=" + unitId);
}
$(function () {
unitId = unitId;
initTreeView();
});
</script>
</head>
<body onload="initMenu()" class="hold-transition ${cu.themeclass} sidebar-mini">
<!-- 搜索状态 0为隐藏 1为显示 -->
<input type="hidden" id="searchStatus" name="searchStatus" value="0">
<div class="wrapper">
<div class="content-wrapper">
<section class="content-header">
<h1 id="head_title"></h1>
<ol class="breadcrumb">
<li><a id='head_firstlevel' href="#"><i class="fa fa-dashboard"></i> </a></li>
</ol>
</section>
<section class="content container-fluid">
<div id="mainAlertdiv"></div>
<div id="subDiv"></div>
<div id="fileInputDiv"></div>
<div id="docFileRelationDiv"></div>
<div style="width:100%;height:10px;background-color:#ECF0F5;">
</div>
<div class="row">
<div class="col-md-3">
<div class="box box-solid">
<div class="box-header with-border">
<h3 class="box-title">工艺调整分类</h3>
<div class="box-tools">
<button type="button" class="btn btn-box-tool" onclick="importExcelFun2();"><i
class="fa fa-cloud-download"></i>
导入
</button>
<button type="button" class="btn btn-box-tool" onclick="outExcelFun();"><i
class="fa fa-cloud-upload"></i>
导出
</button>
</div>
</div>
<div class="box-body no-padding">
<div id="tree" style="height:700px;overflow:auto; "></div>
</div>
</div>
</div>
<div class="col-md-9" id="contentListTable"></div>
</div>
</section>
</div>
</div>
</body>
</html>