📄 packorder.ftl
字号:
<a href="javascript:document.singlePackForm.submit();" class="buttontext">Pack Item</a> </td> <td> </td> </tr> </table> </form> <div> </div> </#if> <!-- auto grid form --> <#if showInput != "N" && hideGrid != "Y" && itemInfos?has_content> <hr class="sepbar"/> <div> </div> <form name="multiPackForm" method="post" action="<@ofbizUrl>ProcessBulkPackOrder</@ofbizUrl>" style='margin: 0;'> <input type="hidden" name="facilityId" value="${facilityId?if_exists}"> <input type="hidden" name="orderId" value="${orderId?if_exists}"> <input type="hidden" name="shipGroupSeqId" value="${shipGroupSeqId?if_exists}"> <input type="hidden" name="originFacilityId" value="${facilityId?if_exists}"> <input type="hidden" name="hideGrid" value="${hideGrid}"/> <table border='0' width="100%" cellpadding='2' cellspacing='0'> <tr> <td> </td> <td><div class="tableheadtext">Item #</td> <td><div class="tableheadtext">Sku</td> <td><div class="tableheadtext">Desciption</td> <td align="right"><div class="tableheadtext">Ordered Qty</td> <td align="right"><div class="tableheadtext">Packed Qty</td> <td> </td> <td align="center"><div class="tableheadtext">Pack Qty</td> <td align="center"><div class="tableheadtext">Package</td> </tr> <tr> <td colspan="9"> <hr class="sepbar"/> </td> </tr> <#list itemInfos as orderItem> <#if orderItem.cancelQuantity?exists> <#assign orderItemQuantity = orderItem.quantity - orderItem.cancelQuantity> <#else> <#assign orderItemQuantity = orderItem.quantity> </#if> <tr> <td><input type="checkbox" name="sel_${orderItem.orderItemSeqId}" value="Y" checked=""/></td> <td><div class="tabletext">${orderItem.orderItemSeqId}</td> <td><div class="tabletext">${orderItem.productId?default("N/A")}</td> <td><div class="tabletext">${orderItem.itemDescription?if_exists}</td> <td align="right"><div class="tabletext">${orderItemQuantity}</td> <td align="right"><div class="tabletext">${packingSession.getPackedQuantity(orderId, orderItem.orderItemSeqId, shipGroupSeqId)}</td> <td> </td> <td align="center"> <#assign inputQty = (orderItemQuantity - packingSession.getPackedQuantity(orderId, orderItem.orderItemSeqId, shipGroupSeqId))> <input type="text" class="inputBox" size="7" name="qty_${orderItem.orderItemSeqId}" value="${inputQty}"> </td> <td align="center"> <select name="pkg_${orderItem.orderItemSeqId}"> <option value="1">Package 1</option> <option value="2">Package 2</option> <option value="3">Package 3</option> <option value="4">Package 4</option> <option value="5">Package 5</option> </select> </td> <input type="hidden" name="prd_${orderItem.orderItemSeqId}" value="${orderItem.productId?if_exists}"> </tr> </#list> <tr><td colspan="9"> </td></tr> <tr> <td colspan="9" align="right"> <input type="submit" value="Pack Items"> <input type="button" value="Clear" onclick="javascript:document.clearPackForm.submit();"/> </td> </tr> </table> </form> <div> </div> </#if> <!-- complete form --> <#if showInput != "N"> <form name="completePackForm" method="post" action="<@ofbizUrl>CompletePack</@ofbizUrl>" style='margin: 0;'> <input type="hidden" name="orderId" value="${orderId?if_exists}"/> <input type="hidden" name="shipGroupSeqId" value="${shipGroupSeqId?if_exists}"/> <input type="hidden" name="facilityId" value="${facilityId?if_exists}"/> <input type="hidden" name="forceComplete" value="${forceComplete?default('false')}"/> <input type="hidden" name="showInput" value="N"/> <hr class="sepbar"> <div> </div> <table border='0' cellpadding='2' cellspacing='0' width="100%"> <tr> <td> <div class="tableheadtext">Handling Instructions:</div> <div> <textarea name="handlingInstructions" class="inputBox" rows="2" cols="30">${packingSession.getHandlingInstructions()?if_exists}</textarea> </div> </td> <td align="right"> <div> <#assign buttonName = "Complete"> <#if forceComplete?default("false") == "true"> <#assign buttonName = "Force Complete"> </#if> <input type="button" value="${buttonName}" onclick="javascript:document.completePackForm.submit();"/> </div> </td> </tr> </table> <div> </div> </form> </#if> <!-- packed items display --> <#assign packedLines = packingSession.getLines()?if_exists> <#if packedLines?has_content> <hr class="sepbar"/> <div> </div> <table border='0' width="100%" cellpadding='2' cellspacing='0'> <tr> <td><div class="tableheadtext">Item #</td> <td><div class="tableheadtext">Sku</td> <td><div class="tableheadtext">Desciption</td> <td><div class="tableheadtext">Inv Item #</td> <td align="right"><div class="tableheadtext">Packed Qty</td> <td align="right"><div class="tableheadtext">Package #</td> <td> </td> </tr> <tr> <td colspan="7"> <hr class="sepbar"/> </td> </tr> <#list packedLines as line> <#assign orderItem = orderReadHelper.getOrderItem(line.getOrderItemSeqId())?if_exists> <tr> <td><div class="tabletext">${line.getOrderItemSeqId()}</td> <td><div class="tabletext">${line.getProductId()?default("N/A")}</td> <td><div class="tabletext">${(orderItem.itemDescription)?default("[N/A]")}</td> <td><div class="tabletext">${line.getInventoryItemId()}</td> <td align="right"><div class="tabletext">${line.getQuantity()}</td> <td align="right"><div class="tabletext">${line.getPackageSeq()}</td> <td align="right"><a href="<@ofbizUrl>ClearPackLine?facilityId=${facilityId}&orderId=${line.getOrderId()}&orderItemSeqId=${line.getOrderItemSeqId()}&shipGroupSeqId=${line.getShipGroupSeqId()}&inventoryItemId=${line.getInventoryItemId()}&packageSeqId=${line.getPackageSeq()}</@ofbizUrl>" class="buttontext">Clear</a></td> </tr> </#list> </table> </#if> </#if> <#if orderId?has_content> <script language="javascript"> document.singlePackForm.productId.focus(); </script> <#else> <script language="javascript"> document.selectOrderForm.orderId.focus(); </script> </#if><#else> <h3>${uiLabelMap.ProductFacilityViewPermissionError}</h3></#if>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -