| | |
| | | <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"> |
| | |
| | | <!--<p:commandButton value="导入" styleClass="import-btn" onclick="importStock()" |
| | | ></p:commandButton>--> |
| | | |
| | | <script> |
| | | <script type="text/javascript"> |
| | | function importStock(){ |
| | | $("#warehouseStockMngForm\\:importStockBtn_input").click(); |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | 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> |
| | | |
| | |
| | | <f:selectItem itemLabel="全部" noSelectionOption="true"/> |
| | | </p:selectOneMenu> |
| | | |
| | | <p:commandLink styleClass="search" process="@form" update="@form"></p:commandLink> |
| | | <p:commandLink styleClass="search" process="@form" update="@form" id="second-search"></p:commandLink> |
| | | </p:panelGrid> |
| | | </p:panel> |
| | | |