<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE html
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
xmlns:ui="http://java.sun.com/jsf/facelets"
|
xmlns:p="http://primefaces.org/ui"
|
xmlns:h="http://java.sun.com/jsf/html"
|
xmlns:f="http://java.sun.com/jsf/core"
|
xmlns:c="http://java.sun.com/jsp/jstl/core">
|
<head></head>
|
<ui:composition>
|
<h:form id="applyMngForm">
|
<p:panel styleClass="center-header">
|
<p:outputLabel styleClass="title" value="申购管理"></p:outputLabel>
|
|
<p:panelGrid styleClass="filter" columns="16">
|
<p:outputLabel value="申购产品:"></p:outputLabel>
|
<p:inputText value="#{applyMngController.reagentName}"></p:inputText>
|
|
<p:outputLabel value="CAS:"></p:outputLabel>
|
<p:inputText value="#{applyMngController.queryCAS}"></p:inputText>
|
<p:outputLabel value="申购人:"></p:outputLabel>
|
<p:inputText value="#{applyMngController.applyUserName}"></p:inputText>
|
<p:outputLabel value="货期:"></p:outputLabel>
|
<p:calendar value="#{applyMngController.startDeadline}" converter="timestampConvert"
|
pattern="yyyy-MM-dd" locale="zh_CN"></p:calendar>
|
<p:outputLabel value=" ~ " style="margin-left: 10px;margin-right: 10px"></p:outputLabel>
|
<p:calendar value="#{applyMngController.endDeadline}" converter="timestampConvert"
|
pattern="yyyy-MM-dd" locale="zh_CN"></p:calendar>
|
<p:outputLabel value="状态:"></p:outputLabel>
|
|
<p:selectOneMenu value="#{applyMngController.status}">
|
<f:selectItem itemLabel="全部" itemValue="#{null}" noSelectionOption="true"></f:selectItem>
|
<f:selectItems value="#{applyMngController.statusSelectList}" var="item"
|
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:panelGrid>
|
</p:panel>
|
<p:panel styleClass="center-body">
|
<p:panelGrid columns="7" styleClass="btn">
|
<p:commandButton value="申购" styleClass="new-btn"
|
process="@this"
|
actionListener="#{applyMngController.onNewBtnClick}"
|
update=":centerRootPanel"></p:commandButton>
|
<p:commandButton value="修改" styleClass="edit-btn"
|
process="@form"
|
actionListener="#{applyMngController.onEditBtnClick}"
|
update=":centerRootPanel"></p:commandButton>
|
<p:commandButton value="删除" styleClass="del-btn"
|
process="@form"
|
actionListener="#{applyMngController.onDeleteBtnClick}"
|
update="@form">
|
<p:confirm header="确认" message="确认操作?"></p:confirm>
|
</p:commandButton>
|
<p:commandButton value="取消" styleClass="del-btn"
|
process="@form"
|
actionListener="#{applyMngController.handleCancel}"
|
update="@form">
|
<p:confirm header="确认" message="确认操作?"></p:confirm>
|
</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"
|
lazy="true" value="#{applyMngController.dataModel}" var="row" rowKey="#{row.id}"
|
emptyMessage="无数据" selection="#{applyMngController.selectedList}"
|
rows="30" pageLinks="5">
|
<p:column selectionMode="multiple" style="width: 30px;text-align: center;"/>
|
<p:column headerText="订单状态" width="50px;" style="text-align: center;white-space: nowrap;">
|
<h:outputText value="#{row.status!=null?row.status.text:''}"></h:outputText>
|
</p:column>
|
<p:column headerText="申购编号" width="118px;">
|
<h:outputText value="#{row.applyCode}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="产品编号" width="94px;" >
|
<h:outputText value="#{row.reagent!=null?row.reagent.productSn:''}" style="white-space: normal;"></h:outputText>
|
</p:column>
|
|
<p:column headerText="试剂名称" width="129px;">
|
<h:outputText value="#{row.reagent!=null?row.reagent.name:''}" style="white-space: normal;font-size: 13px;"></h:outputText>
|
</p:column>
|
|
<p:column headerText="管制品">
|
<h:outputText value="#{row.reagent!=null?baseMetaService.getBaseMetaValue(row.reagent.controlProducts):''}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="规格型号">
|
<h:outputText value="#{row.reagent!=null?baseMetaService.getBaseMetaValue(row.reagent.reagentFormat):''}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="包装">
|
<h:outputText value="#{row.reagent!=null?(''.concat(row.reagent.mainMetering).concat(baseMetaService.getBaseMetaValue(row.reagent.reagentUnit))):''}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="含税售价" width="50px;">
|
<h:outputText value="#{row.applyPrice}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="CAS号">
|
<h:outputText value="#{row.reagent!=null?row.reagent.cas:''}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="危险性质" width="79px;">
|
<h:outputText value="#{baseMetaService.getBaseMetaValue(row.reagent.reagentCharacter)}" style="white-space: normal;font-size: 13px;"></h:outputText>
|
</p:column>
|
<p:column headerText="厂家">
|
<h:outputText value="#{row.reagent!=null?row.reagent.productHomeName:''}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="试剂类型" width="38px;" style="text-align: center;white-space: normal">
|
<h:outputText value="#{baseMetaService.getBaseMetaValue(row.reagent.reagentType)}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="申购数量" width="38px;" style="white-space: normal">
|
<h:outputText value="#{row.num}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="申购人" style="text-align: center">
|
<h:outputText value="#{row.applyUserName}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="申购日期" width="71px;">
|
<h:outputText value="#{row.createTime}">
|
<f:convertDateTime pattern="yyyy-MM-dd" locale="zh_CN"></f:convertDateTime>
|
</h:outputText>
|
</p:column>
|
<!-- <p:column headerText="审批者">
|
<h:outputText value="#{approvalMngController.getUserName(row.approveUserId)}"></h:outputText>
|
</p:column>-->
|
<p:column headerText="一级审批者" style="text-align: center">
|
<h:outputText value="#{row.first}"></h:outputText>
|
</p:column>
|
<p:column headerText="二级审批者" style="text-align: center;white-space: nowrap;">
|
<h:outputText value="#{row.second}"></h:outputText>
|
</p:column>
|
<p:column headerText="审批批注">
|
<h:outputText value="#{row.memo}"></h:outputText>
|
</p:column>
|
</p:dataTable>
|
</p:panel>
|
</h:form>
|
</ui:composition>
|
</html>
|