From 1bcc45b241b13da792a52fe1bb1d489a8aa7c14b Mon Sep 17 00:00:00 2001
From: lyfO_o <764716047@qq.com>
Date: 星期四, 05 五月 2022 16:15:40 +0800
Subject: [PATCH] 邮箱转发 李向龙=>赵群
---
src/main/webapp/warehouse_stock_mng.xhtml | 181 ++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 170 insertions(+), 11 deletions(-)
diff --git a/src/main/webapp/warehouse_stock_mng.xhtml b/src/main/webapp/warehouse_stock_mng.xhtml
index f2adcf3..1be7e1a 100644
--- a/src/main/webapp/warehouse_stock_mng.xhtml
+++ b/src/main/webapp/warehouse_stock_mng.xhtml
@@ -15,7 +15,10 @@
<div id ="showTab" style="display: none">
<h:form id="tmp">
<p:panel styleClass="center-body">
- <p:panelGrid columns="3" styleClass="btn">
+ <p:panelGrid columns="4" styleClass="btn">
+ <p:commandButton value="返回" styleClass="import-btn" process="@form"
+ actionListener="#{warehouseStockMngController.hide}"
+ update="@(.tempTable)"/>
<p:commandButton value="删除" styleClass="del-btn" process="@form"
actionListener="#{warehouseStockMngController.cancel}"
update="@(.tempTable)"/>
@@ -79,7 +82,7 @@
<br/>
<h:form id="warehouseStockMngForm">
<p:panel styleClass="center-header">
- <p:panelGrid styleClass="filter" columns="7">
+ <p:panelGrid styleClass="filter" columns="9">
<p:outputLabel value="试剂名称:"></p:outputLabel>
<p:inputText value="#{warehouseStockMngController.reagentId}"></p:inputText>
@@ -91,10 +94,13 @@
var="item" itemLabel="#{item.name}" itemValue="#{item.id}"></f:selectItems>
</p:selectOneMenu>
+ <p:outputLabel value="仓库名:"></p:outputLabel>
+ <p:inputText value="#{warehouseStockMngController.warehouseName}"></p:inputText>
+
<p:outputLabel value="产品编号:"></p:outputLabel>
<p:inputText value="#{warehouseStockMngController.productSn}"></p:inputText>
- <p:commandLink styleClass="search" process="@form" update="@form"></p:commandLink>
+ <p:commandLink styleClass="search" process="@form" update="@form" id="first-search" ></p:commandLink>
</p:panelGrid>
</p:panel>
<p:panel styleClass="center-body">
@@ -114,7 +120,7 @@
<!--<p:commandButton value="导入" styleClass="import-btn" onclick="importStock()"
></p:commandButton>-->
- <script>
+ <script type="text/javascript">
function importStock(){
$("#warehouseStockMngForm\\:importStockBtn_input").click();
}
@@ -127,6 +133,20 @@
}
}
}
+
+ document.onkeydown = function (event) {
+ console.log("按键了")
+ if (event.keyCode === 13) {
+ var $tabView = $("#tabView\\:firstTab");
+ if ($tabView.css("display") !== "none") {
+ PrimeFaces.ab({s:"tabView:warehouseStockMngForm:first-search",p:"tabView:warehouseStockMngForm",u:"tabView:warehouseStockMngForm"});return false;
+ }else{
+ PrimeFaces.ab({s:"tabView:warehouseStockMngFormForPerson:second-search",p:"tabView:warehouseStockMngFormForPerson",u:"tabView:warehouseStockMngFormForPerson"});return false;
+ }
+ }
+ }
+
+
</script>
</p:panelGrid>
@@ -193,7 +213,11 @@
<div id ="showTabOrder" style="display: none">
<h:form id="tmpOrder" styleClass="tmpOrder">
<p:panel styleClass="center-body">
- <p:panelGrid columns="3" styleClass="btn">
+ <p:panelGrid columns="4" styleClass="btn">
+ <p:commandButton value="返回" styleClass="import-btn" process="@form"
+ actionListener="#{warehouseStockMngController.hideOrderTmp}"
+ update="@(.tmpOrder)"
+ />
<p:commandButton value="删除" styleClass="del-btn" process="@form"
actionListener="#{warehouseStockMngController.cancelOrderTmp}"
update="@(.tmpOrder)"
@@ -254,9 +278,111 @@
</p:panel>
</h:form>
</div>
+ <div id ="putInStorage" style="display: none">
+ <h:form id="putInStorageTmpOrder" styleClass="inputStorageTmp">
+ <p:panel styleClass="center-body">
+ <p:panelGrid columns="4" styleClass="btn">
+ <p:commandButton value="返回" styleClass="import-btn" process="@form"
+ actionListener="#{warehouseStockMngController.hideInputStorageTmp}"
+ update="@(.inputStorageTmp)"
+ />
+ <p:commandButton value="删除" styleClass="del-btn" process="@form"
+ actionListener="#{warehouseStockMngController.cancelInputStorageTmp}"
+ update="@(.inputStorageTmp)"
+ />
+ <p:commandButton value="清空" styleClass="del-btn" process="@form"
+ actionListener="#{warehouseStockMngController.clearInputStorageTmp}"
+ update="@(.inputStorageTmp)"
+ />
+ <p:commandButton value="提交" styleClass="edit-btn" process="@form"
+ actionListener="#{warehouseStockMngController.onUseBtnClickInputStorageTmp}"
+ update=":centerRootPanel"/>
+ </p:panelGrid>
+ <p:dataTable id="putInStorageTmpOrderTable" styleClass="data-table"
+ paginator="true" paginatorAlwaysVisible="false" paginatorPosition="bottom"
+ lazy="true" value="#{warehouseStockMngController.selectedInputStorageTmpOrderList}" var="row"
+ selection="#{warehouseStockMngController.trulyInputStorageTmpSelectedOrderList}"
+ rowKey="#{row.id}"
+ emptyMessage="无数据" rows="20" pageLinks="5">
+ <p:column selectionMode="multiple" style="width: 30px;text-align: center;" />
+
+ <p:column headerText="申购编号" width="170">
+ <h:outputText value="#{row.applyCode}"/>
+ </p:column>
+
+ <p:column headerText="产品编号">
+ <h:outputText value="#{row.reagent.productSn}"/>
+ </p:column>
+
+ <p:column headerText="试剂名称">
+ <h:outputText value="#{row.reagent.name}"/>
+ </p:column>
+
+ <p:column headerText="管制品">
+ <h:outputText value="#{row.reagent.controlProducts}"/>
+ </p:column>
+
+ <p:column headerText="规格">
+ <h:outputText value="#{row.reagent.reagentFormat}"/>
+ </p:column>
+
+ <p:column headerText="包装">
+ <h:outputText
+ value="#{''.concat(row.reagent.mainMetering).concat(baseMetaService.getBaseMetaValue(row.reagent.reagentUnit))}"/>
+ </p:column>
+
+ <p:column headerText="价格">
+ <h:outputText value="#{row.reagent.price}"/>
+ </p:column>
+
+ <p:column headerText="CAS">
+ <h:outputText value="#{row.reagent.cas}"/>
+ </p:column>
+
+ <p:column headerText="危险性质">
+ <h:outputText value="#{row.reagent.reagentCharacter}"/>
+ </p:column>
+
+ <p:column headerText="厂商">
+ <h:outputText
+ value="#{row.reagent.productHome}"/>
+ </p:column>
+
+ <p:column headerText="申请数量">
+ <h:outputText
+ value="#{row.num}"/>
+ </p:column>
+
+ <p:column headerText="已领用数量">
+ <h:outputText
+ value="#{row.used}"/>
+ </p:column>
+
+ <p:column headerText="申领人">
+ <h:outputText
+ value="#{row.applyUserId}"/>
+ </p:column>
+
+ <p:column headerText="订单状态">
+ <h:outputText value="#{row.status.getText()}"/>
+ </p:column>
+
+ </p:dataTable>
+ </p:panel>
+ </h:form>
+ </div>
+ <br/>
<h:form id="warehouseStockMngFormForPerson">
<p:panel styleClass="center-header" style="border-bottom:none;">
- <p:panelGrid styleClass="filter" columns="12">
+ <p:panelGrid styleClass="filter" columns="16">
+ <style type="text/css">
+ .ui-selectonemenu.ui-widget.ui-state-default.ui-corner-all{
+ min-width: 60px !important;
+ }
+ .ui-selectonemenu-items.ui-selectonemenu-list.ui-widget-content.ui-widget.ui-corner-all.ui-helper-reset{
+ width: 77px !important;
+ }
+ </style>
<p:outputLabel value="试剂名称:"></p:outputLabel>
<p:inputText value="#{warehouseStockMngController.reagentId}"></p:inputText>
@@ -267,25 +393,51 @@
<p:outputLabel value="产品编号:"></p:outputLabel>
<p:inputText value="#{warehouseStockMngController.productSn}"></p:inputText>
<p:outputLabel value="状态:"></p:outputLabel>
- <p:selectOneMenu value="#{warehouseStockMngController.status}">
+ <p:selectOneMenu value="#{warehouseStockMngController.status}" style="width: 60px;">
<f:selectItem itemLabel="全部" noSelectionOption="true"></f:selectItem>
<f:selectItems value="#{warehouseStockMngController.statusSelectList}" var="item"
itemLabel="#{item.text}" itemValue="#{item.key}"></f:selectItems>
</p:selectOneMenu>
+ <p:outputLabel value="过期:"></p:outputLabel>
+ <p:selectBooleanCheckbox value="#{warehouseStockMngController.isExpired}"
+ itemLabel=""/>
- <p:commandLink styleClass="search" process="@form" update="@form"></p:commandLink>
+ <p:outputLabel value="已领用:"></p:outputLabel>
+ <p:selectOneMenu value="#{warehouseStockMngController.isAllApply}" style="width: 60px;">
+ <f:selectItem itemLabel="否" itemValue="0"/>
+ <f:selectItem itemLabel="是" itemValue="1"/>
+ <f:selectItem itemLabel="全部" noSelectionOption="true"/>
+ </p:selectOneMenu>
+
+ <p:commandLink styleClass="search" process="@form" update="@form" id="second-search"></p:commandLink>
</p:panelGrid>
</p:panel>
<p:panel styleClass="center-body">
- <p:panelGrid columns="2" styleClass="btn" rendered="#{warehouseStockMngController.editFlag==1}">
-
+ <p:panelGrid columns="7" styleClass="btn" rendered="#{warehouseStockMngController.editFlag==1}">
+ <p:commandButton value="入库" styleClass="edit-btn" process="@form"
+ actionListener="#{warehouseStockMngController.addInputStorageOrder}"
+ disabled="#{warehouseStockMngController.editFlag==0}"
+ oncomplete="$('#putInStorage').css('display','block');$('#showTabOrder').css('display','none');"
+ update="@(.inputStorageTmp)"
+ ></p:commandButton>
<p:commandButton value="领用" styleClass="edit-btn" process="@form"
actionListener="#{warehouseStockMngController.addOrder}"
disabled="#{warehouseStockMngController.editFlag==0}"
- oncomplete="$('#showTabOrder').css('display','block');"
+ oncomplete="$('#showTabOrder').css('display','block');$('#putInStorage').css('display','none');"
update="@(.tmpOrder)"
+ ></p:commandButton>
+
+ <p:commandButton value="过期处理" styleClass="edit-btn" process="@form"
+ actionListener="#{warehouseStockMngController.expireOrder}"
+ disabled="#{warehouseStockMngController.editFlag==0}"
+ update=":centerRootPanel"
+ ></p:commandButton>
+ <p:commandButton value="恢复处理" styleClass="edit-btn" process="@form"
+ actionListener="#{warehouseStockMngController.recoverOrder}"
+ disabled="#{warehouseStockMngController.editFlag==0}"
+ update=":centerRootPanel"
></p:commandButton>
<p:commandButton update=":centerRootPanel" actionListener="#{warehouseStockMngController.onExportFileBtnClickOrder}"
ajax="false" value="导出" styleClass="new-btn" />
@@ -354,12 +506,19 @@
<p:column headerText="订单状态">
<h:outputText value="#{row.status!=null?row.status.text:''}"></h:outputText>
</p:column>
+
<p:column headerText="课题组">
<h:outputText value="#{row.project}" />
</p:column>
<p:column headerText="课题组负责人">
<h:outputText value="#{row.projectManage}" />
</p:column>
+
+ <p:column headerText="到货时间">
+ <h:outputText value="#{row.arrivalTime}">
+ <f:convertDateTime pattern="yyyy-MM-dd" locale="zh_CN"/>
+ </h:outputText>
+ </p:column>
</p:dataTable>
</p:panel>
</h:form>
--
Gitblit v1.9.2