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_person.xhtml |   25 ++++++++++++++-----------
 1 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/src/main/webapp/warehouse_reagent_use_person.xhtml b/src/main/webapp/warehouse_reagent_use_person.xhtml
index d4def34..5a86db5 100644
--- a/src/main/webapp/warehouse_reagent_use_person.xhtml
+++ b/src/main/webapp/warehouse_reagent_use_person.xhtml
@@ -45,6 +45,7 @@
 					<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>
@@ -57,7 +58,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.onSaveBtnClickForPerson}"
 						styleClass="save-btn">
 						<p:confirm header="确认" message="确认操作?"></p:confirm>
@@ -109,7 +111,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.onReagentCodeBtnClickForPerson(row)}"
 						update=":reagentCodeDialogForPerson,@(.startReagentCode),@(.endReagentCode)">
 					</p:commandButton>
@@ -126,7 +129,7 @@
 					<p:outputPanel style="text-align: center;font-size: 16px;margin: 20px;font-weight: 700;">#{warehouseStockMngController.printTable['title']}</p:outputPanel>
 					<div>
 						<div style="display: flex;flex-direction: row;justify-content: flex-end;width: 1081px;">
-							<div style="width: 98px;">单据编号:</div>
+							<div style="width: 98px;">单据编号:</div>
 							<div style="width: 183px;">
 <!--                                <input style="border: 0;" value="#{warehouseStockMngController.printTable['receiptNumber']}"/>-->
                                 <p:inputText value="#{warehouseStockMngController.receiptNumber}" valueChangeListener="#{warehouseStockMngController.receiptNumberChange}">
@@ -138,30 +141,30 @@
 
 					<div style="margin: 10px 0;">
 						<div style="display: inline-flex;">
-							<div style="width: 100px;margin-left: 10px;">部门:</div>
+							<div style="width: 100px;margin-left: 10px;">部门:</div>
 							<div style="width: 300px;">#{warehouseStockMngController.printTable['department']}</div>
 						</div>
 						<div style="display: inline-flex;">
-							<div style="width: 100px;">申购人:</div>
+							<div style="width: 100px;">申购人:</div>
 							<div style="width: 200px;padding-top: 1px;">#{warehouseStockMngController.printTable['applyPerson']}</div>
 						</div>
 						<div style="display: inline-flex;float: right;">
-							<div style="width: 100px;">日期:</div>
+							<div style="width: 100px;">日期:</div>
 							<div style="width: 200px;padding-top: 1px;"><input style="border: 0;" value="#{warehouseStockMngController.printTable['date']}"/></div>
 						</div>
 					</div>
 
 					<div style="margin-bottom: 20px;">
 						<div style="display: inline-flex;">
-							<div style="width: 100px;margin-left: 10px;">课题组</div>
+							<div style="width: 100px;margin-left: 10px;">课题组:</div>
 							<div style="width: 300px;">#{warehouseStockMngController.printTable['project']}</div>
 						</div>
 						<div style="display: inline-flex;">
-							<div style="width: 100px;">使用地点:</div>
+							<div style="width: 100px;">使用地点:</div>
 							<div style="width: 200px;padding-top: 1px;">#{warehouseStockMngController.printTable['lab']}</div>
 						</div>
 						<div style="display: inline-flex;float: right;">
-							<div style="width: 100px;">联系方式:</div>
+							<div style="width: 100px;">联系方式:</div>
 							<div style="width: 200px;">
 								<input style="border: 0;" value="#{warehouseStockMngController.printTable['phone']}"/></div>
 						</div>
@@ -202,14 +205,14 @@
 
 					<div style="margin-top: 20px;margin-right: 94px;">
 						<div style="display: flex;flex-direction: row;justify-content: flex-end;">
-							<div style="width: 100px">签收人:</div>
+							<div style="width: 100px">签收人:</div>
 							<div style="width: 100px"></div>
 						</div>
 					</div>
 
 					<div style="margin: 10px 94px 10px 0;">
 						<div style="display: flex;flex-direction: row;justify-content: flex-end;">
-							<div style="width: 100px">日期:</div>
+							<div style="width: 100px">日期:</div>
 							<div style="width: 100px"></div>
 						</div>
 					</div>

--
Gitblit v1.9.2