<?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="laboratoryStockMngForm">
|
<p:panel styleClass="center-header">
|
<p:outputLabel styleClass="title" value="供应商订单管理 -> 查看订单"></p:outputLabel>
|
</p:panel>
|
<p:panel styleClass="center-body">
|
<p:panelGrid columns="5" styleClass="btn">
|
<p:commandButton value="修改价格" styleClass="edit-btn"
|
process="@form"
|
actionListener="#{supplierOrderMngController.onUpdatePrice}"
|
update=":dialog,:dialogForm">
|
|
</p:commandButton>
|
<p:commandButton value="缺货" styleClass="edit-btn"
|
process="@form"
|
actionListener="#{supplierOrderMngController.onUpdateStockClick}"
|
update=":dialogStock,:dialogFormStock">
|
</p:commandButton>
|
<p:commandButton value="打印二维码" styleClass="edit-btn"
|
process="@form"
|
actionListener="#{supplierOrderMngController.onPrintBarcodeClick}"
|
update=":dialogReagentCode,:dialogReagentCodeForm">
|
</p:commandButton>
|
</p:panelGrid>
|
<p:dataTable id="confirmOrderMngDataTable" styleClass="data-table"
|
paginator="true" paginatorAlwaysVisible="false"
|
paginatorPosition="bottom" lazy="true"
|
value="#{supplierOrderMngController.opeApplyList}"
|
var="row" rowKey="#{row.id}" emptyMessage="无数据" rows="20"
|
selection="#{supplierOrderMngController.selectedViewList}"
|
pageLinks="5">
|
<p:column selectionMode="multiple" style="width: 30px;text-align: center;"/>
|
<p:column headerText="申购编号">
|
<h:outputText value="#{row.applyCode}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="产品编号">
|
<h:outputText value="#{row.reagent.productSn}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="试剂名称">
|
<h:outputText value="#{row.reagent.name}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="管制品">
|
<h:outputText value="#{row.reagent.controlProducts}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="规格型号">
|
<h:outputText
|
value="#{row.reagent.reagentFormat}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="包装">
|
<h:outputText
|
value="#{''.concat(row.reagent.mainMetering).concat(row.reagent.reagentUnit)}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="含税售价">
|
<h:outputText value="#{row.reagent.price}"></h:outputText>
|
</p:column>
|
<p:column headerText="实际售价">
|
<h:outputText value="#{row.applyPrice}"></h:outputText>
|
</p:column>
|
<p:column headerText="数量">
|
<h:outputText value="#{row.num}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="CAS号">
|
<h:outputText value="#{row.reagent.cas}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="危险性质">
|
<h:outputText value="#{row.reagent.reagentCharacter}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="厂家">
|
<h:outputText value="#{row.reagent.productHome}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="试剂类型">
|
<h:outputText value="#{row.reagent.reagentType}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="申购人">
|
<h:outputText value="#{row.applyUserName}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="申购日期">
|
<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="#{row.stockFlagValue}"></h:outputText>
|
</p:column>
|
</p:dataTable>
|
<p:panelGrid columns="3" styleClass="btn">
|
<p:commandButton value="返回" styleClass="cancel-btn"
|
process="@form"
|
actionListener="#{supplierOrderMngController.onBackBtnClick}"
|
update=":centerRootPanel">
|
</p:commandButton>
|
</p:panelGrid>
|
</p:panel>
|
</h:form>
|
|
<p:dialog modal="true" header="修改实际售价" appendTo="@(body)"
|
id="dialog" widgetVar="dialog"
|
resizable="false" width="1000">
|
<h:outputScript>
|
window.onload=function(){
|
var test = document.getElementById("dialogForm:j_idt182");
|
if(test!=null){
|
alert(test.innerHTML);
|
}
|
}
|
|
</h:outputScript>
|
<h:form id="dialogForm">
|
<p:panelGrid styleClass="content2 grid-padding-bottom2">
|
<p:row>
|
<p:column>
|
<p:outputLabel value="申购编号"></p:outputLabel>
|
</p:column>
|
<p:column>
|
<p:inputText value="#{supplierOrderMngController.viewOpeApply.applyCode}" maxlength="100"
|
disabled="true"></p:inputText>
|
</p:column>
|
<p:column>
|
<p:outputLabel value="产品编号"></p:outputLabel>
|
</p:column>
|
<p:column>
|
<p:inputText value="#{supplierOrderMngController.viewOpeApply.reagent.productSn}" maxlength="100"
|
disabled="true"></p:inputText>
|
</p:column>
|
</p:row>
|
<p:row>
|
<p:column>
|
<p:outputLabel value="试剂名称"></p:outputLabel>
|
</p:column>
|
<p:column>
|
<p:inputText value="#{supplierOrderMngController.viewOpeApply.reagent.name}" maxlength="100"
|
disabled="true" ></p:inputText>
|
</p:column>
|
<p:column>
|
<p:outputLabel value="CAS"></p:outputLabel>
|
</p:column>
|
<p:column>
|
<p:inputText value="#{supplierOrderMngController.viewOpeApply.reagent.cas}" maxlength="100"
|
disabled="true"></p:inputText>
|
</p:column>
|
</p:row>
|
<p:row>
|
<p:column>
|
<p:outputLabel value="含税售价"></p:outputLabel>
|
</p:column>
|
<p:column>
|
<p:inputText value="#{supplierOrderMngController.viewOpeApply.reagent.price}" maxlength="100"
|
disabled="true"></p:inputText>
|
</p:column>
|
<p:column>
|
<p:outputLabel value="实际售价"></p:outputLabel>
|
</p:column>
|
<p:column>
|
<p:inputText value="#{supplierOrderMngController.viewOpeApply.applyPrice}" maxlength="100"
|
required="true" requiredMessage="请输入实际售价" ></p:inputText>
|
</p:column>
|
</p:row>
|
</p:panelGrid>
|
<p:panel styleClass="btn">
|
<p:commandButton value="保存" actionListener="#{supplierOrderMngController.onSavePrice}"
|
process="@form" update=":laboratoryStockMngForm:confirmOrderMngDataTable">
|
<p:confirm header="确认" message="确认操作?"></p:confirm>
|
</p:commandButton>
|
</p:panel>
|
</h:form>
|
</p:dialog>
|
|
<p:dialog modal="true" header="是否缺货" appendTo="@(body)"
|
id="dialogStock" widgetVar="dialogStock"
|
resizable="false" width="1000">
|
<h:form id="dialogFormStock">
|
<p:panelGrid styleClass="content2 grid-padding-bottom2">
|
<p:row>
|
<p:column>
|
<p:outputLabel value="申购编号"></p:outputLabel>
|
</p:column>
|
<p:column>
|
<p:inputText value="#{supplierOrderMngController.viewOpeApply.applyCode}" maxlength="100"
|
disabled="true"></p:inputText>
|
</p:column>
|
<p:column>
|
<p:outputLabel value="产品编号"></p:outputLabel>
|
</p:column>
|
<p:column>
|
<p:inputText value="#{supplierOrderMngController.viewOpeApply.reagent.productSn}" maxlength="100"
|
disabled="true"></p:inputText>
|
</p:column>
|
</p:row>
|
<p:row>
|
<p:column>
|
<p:outputLabel value="试剂名称"></p:outputLabel>
|
</p:column>
|
<p:column>
|
<p:inputText value="#{supplierOrderMngController.viewOpeApply.reagent.name}" maxlength="100"
|
disabled="true" ></p:inputText>
|
</p:column>
|
<p:column>
|
<p:outputLabel value="CAS"></p:outputLabel>
|
</p:column>
|
<p:column>
|
<p:inputText value="#{supplierOrderMngController.viewOpeApply.reagent.cas}" maxlength="100"
|
disabled="true"></p:inputText>
|
</p:column>
|
</p:row>
|
<p:row>
|
<p:column>
|
<p:outputLabel value="是否缺货"></p:outputLabel>
|
</p:column>
|
<p:column>
|
<p:selectOneMenu id="console" value="#{supplierOrderMngController.viewOpeApply.stockFlag}" maxlength="100">
|
<f:selectItem itemLabel="缺货" itemValue="0" />
|
<f:selectItem itemLabel="不缺货" itemValue="1" />
|
</p:selectOneMenu>
|
</p:column>
|
</p:row>
|
</p:panelGrid>
|
<p:panel styleClass="btn">
|
<p:commandButton value="保存" actionListener="#{supplierOrderMngController.onOutOfStock}"
|
process="@form" update=":laboratoryStockMngForm:confirmOrderMngDataTable">
|
<p:confirm header="确认" message="确认操作?"></p:confirm>
|
</p:commandButton>
|
</p:panel>
|
</h:form>
|
</p:dialog>
|
|
<p:dialog modal="true" header="打印条码" appendTo="@(body)"
|
id="dialogReagentCode" widgetVar="dialogReagentCode"
|
resizable="false" width="500">
|
<h:form id="dialogReagentCodeForm">
|
<!--80*60 label尺寸 -->
|
<p:panel styleClass="center-body">
|
<div style="max-height: 800px;overflow: auto;height: 500px;width: 100%;">
|
<div id="reagentCodeContent" style="width: 300px;">
|
<c:if test="#{supplierOrderMngController.reagentCodeList!=null and supplierOrderMngController.reagentCodeList.size()>0}">
|
<c:forEach items="#{supplierOrderMngController.reagentCodeList[0].reagentCodes}" var="reagentCode">
|
<table style="height: 210px;width: 100%;text-align: center;border:1px solid #000;margin-bottom: 5px;margin-top: 5px;" cellspacing="0" cellpadding="0">
|
<tbody>
|
<tr>
|
<td colspan="2" style="border:1px solid #000;">
|
<div><h:outputText value="#{supplierOrderMngController.reagentCodeList[0].reagent.name}" style="font-size:14px;font-weight: bold;"></h:outputText></div>
|
<div><h:graphicImage value="data:image/png;base64,#{supplierOrderMngController.getQrcode(reagentCode)}" style="width: 80px; height: 80px;" dataURI="true"/></div>
|
<div><h:outputText value="#{reagentCode}" style="font-size:10px;"></h:outputText></div>
|
</td>
|
</tr>
|
<tr><td style="border:1px solid #000;">【CAS号】</td><td style="border:1px solid #000;"><h:outputText value="#{supplierOrderMngController.reagentCodeList[0].reagent.cas}"></h:outputText></td></tr>
|
<tr><td style="border:1px solid #000;">【危险性质】</td><td style="border:1px solid #000;"><h:outputText value="#{supplierOrderMngController.reagentCodeList[0].reagent.reagentCharacter}"></h:outputText></td></tr>
|
</tbody>
|
</table>
|
</c:forEach>
|
</c:if>
|
</div>
|
</div>
|
</p:panel>
|
<p:panel styleClass="btn no-print">
|
<div class="div-btn cancel" id="codeCancel">关闭</div>
|
<div class="div-btn print" id="codePrint">打印</div>
|
<script type="text/javascript" src="resources/js/print.js"/>
|
<script type="text/javascript">
|
$(function () {
|
$("#codePrint").on("click", function () {
|
jQuery.print('#reagentCodeContent')
|
})
|
$("#codeCancel").on("click", function () {
|
$("#dialogReagentCode a").click();
|
})
|
})
|
</script>
|
</p:panel>
|
</h:form>
|
</p:dialog>
|
</ui:composition>
|
</html>
|