From 798aa9213a565c6c5ffb411e3cef40a10f99e9d1 Mon Sep 17 00:00:00 2001 From: lyfO_o <764716047@qq.com> Date: 星期五, 31 三月 2023 09:16:53 +0800 Subject: [PATCH] 新疆绿色智能综合研究所补充 --- src/main/webapp/apply_mng.xhtml | 44 ++++++++++++++++++++++++++++++++++++++------ 1 files changed, 38 insertions(+), 6 deletions(-) diff --git a/src/main/webapp/apply_mng.xhtml b/src/main/webapp/apply_mng.xhtml index 813cfd8..dbd9554 100644 --- a/src/main/webapp/apply_mng.xhtml +++ b/src/main/webapp/apply_mng.xhtml @@ -15,8 +15,7 @@ <p:panel styleClass="center-header"> <p:outputLabel styleClass="title" value="申购管理"></p:outputLabel> - <p:panelGrid styleClass="filter" columns="13"> - <p:row> + <p:panelGrid styleClass="filter" columns="16"> <p:outputLabel value="申购产品:"></p:outputLabel> <p:inputText value="#{applyMngController.reagentName}"></p:inputText> @@ -31,8 +30,6 @@ <p:calendar value="#{applyMngController.endDeadline}" converter="timestampConvert" pattern="yyyy-MM-dd" locale="zh_CN"></p:calendar> <p:outputLabel value="状态:"></p:outputLabel> - </p:row> - <p:row> <p:selectOneMenu value="#{applyMngController.status}"> <f:selectItem itemLabel="全部" itemValue="#{null}" noSelectionOption="true"></f:selectItem> @@ -40,13 +37,34 @@ itemLabel="#{item.text}" itemValue="#{item.key}"></f:selectItems> </p:selectOneMenu> + <p:outputLabel value="管制品:"></p:outputLabel> + <p:selectOneMenu value="#{applyMngController.controlProduct}"> + <f:selectItem itemLabel="全部" itemValue="#{null}" noSelectionOption="true"></f:selectItem> + <f:selectItem itemLabel="易制毒" itemValue="易制毒" ></f:selectItem> + <f:selectItem itemLabel="易制爆" itemValue="易制爆" ></f:selectItem> + <f:selectItem itemLabel="剧毒" itemValue="剧毒" ></f:selectItem> + </p:selectOneMenu> + + <style type="text/css"> + .ui-selectonemenu.ui-widget.ui-state-default.ui-corner-all{ + min-width: 30px !important; + } + #centerRootPanel .center-header .filter .ui-selectonemenu { + width: 73px !important; + } + #centerRootPanel .center-header .filter input { + height: 30px; + background-color: #eaeef7!important; + width: 120px !important; + } + </style> + <p:commandLink styleClass="search" process="@form" update="@form"></p:commandLink> - </p:row> </p:panelGrid> </p:panel> <p:panel styleClass="center-body"> - <p:panelGrid columns="5" styleClass="btn"> + <p:panelGrid columns="7" styleClass="btn"> <p:commandButton value="申购" styleClass="new-btn" process="@this" actionListener="#{applyMngController.onNewBtnClick}" @@ -69,7 +87,21 @@ </p:commandButton> <p:commandButton update=":centerRootPanel" actionListener="#{applyMngController.onExportFileBtnClickNew}" ajax="false" value="导出" styleClass="new-btn" /> + + <p:commandButton onclick="importApply()" value="导入" styleClass="import-btn" /> + <a href="resources/template/申购导入模板.xlsx" style="display: inline-block;"><img src="resources/images/xlsx.png" width="30px;" alt=""/></a> </p:panelGrid> + <script type="text/javascript"> + function importApply(){ + $("#applyMngForm\\:importApplyBtn_input").click(); + } + </script> + <div style="display: none" id='importDv'> + <p:fileUpload fileUploadListener="#{applyMngController.uploadApply}" + dragDropSupport="false" id="importApplyBtn" label="导入" + update="@form" auto="true" sizeLimit="5000000" + mode="advanced"/> + </div> <p:dataTable id="applyMngDataTable" styleClass="data-table" resizableColumns="true" paginator="true" paginatorAlwaysVisible="false" paginatorPosition="bottom" -- Gitblit v1.9.2