From 44d8520e82869cd1e95b86e9d4207143f43a0e78 Mon Sep 17 00:00:00 2001
From: lyfO_o <764716047@qq.com>
Date: 星期五, 23 四月 2021 13:21:48 +0800
Subject: [PATCH] 实验室 柜子 级联问题

---
 src/main/webapp/warehouse_reagent_use.xhtml |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/main/webapp/warehouse_reagent_use.xhtml b/src/main/webapp/warehouse_reagent_use.xhtml
index 1e1f563..ece0848 100644
--- a/src/main/webapp/warehouse_reagent_use.xhtml
+++ b/src/main/webapp/warehouse_reagent_use.xhtml
@@ -24,7 +24,7 @@
 									var="item"
 									dropdown="true"
 									styleClass="apply-user-autocomplete"
-									itemLabel="#{!empty warehouseStockMngController.userId ?warehouseStockMngController.getSelectedUserById(warehouseStockMngController.userId).name : null}"
+									itemLabel="#{!empty warehouseStockMngController.userId ?warehouseStockMngController.getSelectedUserById(warehouseStockMngController.userId).name : ' '}"
 									itemValue="#{item.id}" forceSelection="true">
 						<p:ajax event="itemSelect" listener="#{warehouseStockMngController.resetLaboratory()}" process="@this" update="@this,experments,stacks" />
 						<p:column>
@@ -43,11 +43,12 @@
 						 id="experments">
 						<f:selectItems value="#{warehouseStockMngController.laboratory}"
 							var="item" itemLabel="#{item.name}" itemValue="#{item.id}"></f:selectItems>
-						<f:ajax listener="#{warehouseStockMngController.resetLaboratoryContainers}" update="stacks"/>
+						<f:ajax listener="#{warehouseStockMngController.resetLaboratoryContainers}" render="stacks"/>
 					</p:selectOneMenu>
 					<p:outputLabel value="实验室试剂柜:"></p:outputLabel>
 					<p:selectOneMenu value="#{warehouseStockMngController.laboratoryContainerId}" id="stacks"
 						>
+						<f:ajax listener="#{warehouseStockMngController.setContainerId}"/>
 						<f:selectItems value="#{warehouseStockMngController.laboratoryContainers}"
 							var="item" itemLabel="#{item.name}" itemValue="#{item.id}"></f:selectItems>
 					</p:selectOneMenu>
@@ -63,7 +64,8 @@
 					<p:commandButton value="重置" process="@this" update="@form"
 						actionListener="#{warehouseStockMngController.onResetBtnClick}"
 						styleClass="reset-btn"></p:commandButton>
-					<p:commandButton value="保存" process="@form" update=":centerRootPanel"
+					<p:commandButton value="保存" process="@this" update=":centerRootPanel"
+									 immediate="true"
 						actionListener="#{warehouseStockMngController.onSaveBtnClick}"
 						styleClass="save-btn">
 						<p:confirm header="确认" message="确认操作?"></p:confirm>
@@ -193,7 +195,8 @@
 				</p:column>
 
 				<p:column headerText="条形码">
-					<p:commandButton value="操作" styleClass="edit-btn" process="@form"
+					<p:commandButton value="操作" styleClass="edit-btn" process="@this"
+									 immediate="true"
 						actionListener="#{warehouseStockMngController.onReagentCodeBtnClick(row)}"
 						update=":reagentCodeDialog">
 					</p:commandButton>

--
Gitblit v1.9.2