From 8fca402ad743c884d106c0977cb792ca26bd5617 Mon Sep 17 00:00:00 2001
From: gdg <764716047@qq.com>
Date: 星期一, 25 一月 2021 11:11:43 +0800
Subject: [PATCH] add

---
 src/main/webapp/warehouse_reagent_use.xhtml |   33 ++++++++++++++++++++++++++++++---
 1 files changed, 30 insertions(+), 3 deletions(-)

diff --git a/src/main/webapp/warehouse_reagent_use.xhtml b/src/main/webapp/warehouse_reagent_use.xhtml
index 744234c..504a5eb 100644
--- a/src/main/webapp/warehouse_reagent_use.xhtml
+++ b/src/main/webapp/warehouse_reagent_use.xhtml
@@ -213,7 +213,10 @@
 				<div>
 					<div style="display: flex;flex-direction: row;justify-content: flex-end;">
 						<div style="width: 100px;">单据编号:</div>
-						<div style="width: 300px;"><input style="border: 0;" value=""/></div>
+						<div style="width: 300px;">
+							<p:inputText value="#{warehouseStockMngController.receiptNumber}" valueChangeListener="#{warehouseStockMngController.receiptNumberChange}">
+							<p:ajax event="valueChange" listener="#{warehouseStockMngController.receiptNumberChange()}"  />
+						</p:inputText></div>
 					</div>
 				</div>
 
@@ -288,8 +291,32 @@
 			</div>
 
 			<p:panel styleClass="btn  no-print">
-			<div class="div-btn cancel" id="cancel">关闭</div>
-			<div class="div-btn print" id="print">打印</div>
+				<p:commandButton value="关闭"
+								 process="@this"
+								 styleClass="yes-btn"
+								 actionListener="#{warehouseStockMngController.onCancelBtnClick}"
+								 style="position: relative;left: 20px;"
+								 update=":centerRootPanel"
+								 oncomplete="PF('printDialog').hide()">
+				</p:commandButton>
+				<div style="display: none" id="indirectPrint"></div>
+				<p:commandButton value="打印"
+								 styleClass="yes-btn"
+								 actionListener="#{warehouseStockMngController.associatedFlowReceiptNumber2()}"
+								 style="position: relative;left: 20px;"
+				>
+				</p:commandButton>
+
+				<script type="text/javascript" src="resources/js/print.js"/>
+				<script type="text/javascript">
+					$(function () {
+						$("#indirectPrint").on("click", function () {
+							jQuery.print('#printTarget')
+						})
+					})
+
+
+				</script>
 			</p:panel>
 		</h:form>
 			</div>

--
Gitblit v1.9.2