kongzy
2024-07-01 47a751cb301d05276ae5d75145d57b2d090fe4e1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
<head></head>
<ui:composition>
    <h:form id="orderMngRukuForm">
        <p:panel styleClass="center-header">
            <p:outputLabel styleClass="title" value="订单入库"/>
        </p:panel>
        <p:panel styleClass="center-body">
            <p:panel styleClass="apply-mng-new-body">
                <p:panelGrid styleClass="info grid-padding-bottom2" columns="2">
                    <p:outputLabel value="到货时间:"/>
                    <p:calendar value="#{warehouseStockMngController.arrivalTime}"
                                converter="timestampConvert"
                                pattern="yyyy-MM-dd"
                                locale="zh_CN"
                                required="true"
                                requiredMessage="请选择到货时间"/>
 
                    <p:outputLabel value="收货人:"/>
                    <p:selectOneMenu value="#{warehouseStockMngController.consigneeId}"
                                     filter="true"
                                     filterMatchMode="startsWith"
                                     required="true"
                                     requiredMessage="请选择收货人">
                        <f:selectItems value="#{warehouseStockMngController.getConsignee()}"
                                       var="item"
                                       itemValue="#{item.id}"
                                       itemLabel="#{item.name}"/>
                    </p:selectOneMenu>
                </p:panelGrid>
 
                <p:panel styleClass="btn">
                    <p:commandButton value="取消"
                                     process="@this"
                                     update=":centerRootPanel"
                                     actionListener="#{warehouseStockMngController.onCancelBtnClick}"
                                     styleClass="cancel-btn"/>
 
                    <p:commandButton value="保存"
                                     process="@form"
                                     update=":centerRootPanel"
                                     actionListener="#{warehouseStockMngController.onSaveInputWarehouseClick}"
                                     styleClass="save-btn">
                        <p:confirm header="确认" message="确认操作?"/>
                    </p:commandButton>
                </p:panel>
            </p:panel>
 
            <p:dataTable styleClass="data-table"
                         paginator="true" paginatorAlwaysVisible="false"
                         paginatorPosition="bottom"
                         value="#{warehouseStockMngController.opeApplyList}"
                         var="row" rowKey="#{row.id}"
                         emptyMessage="无数据"
                         editable="true"
                         rows="20"
                         pageLinks="5">
 
                <p:column width="100">
                    <p:rowEditor/>
                </p:column>
 
                <p:column headerText="申购编号" width="120">
                    <h:outputText value="#{row.applyCode}"/>
                </p:column>
 
                <p:column headerText="试剂名称" width="120">
                    <h:outputText value="#{row.reagent!=null?row.reagent.name:''}"/>
                </p:column>
 
                <p:column headerText="包装" width="80">
                    <h:outputText value="#{row.reagent!=null?(''.concat(row.reagent.mainMetering).concat(row.reagent.reagentUnit)):''}"/>
                </p:column>
 
                <p:column headerText="CAS" width="80">
                    <h:outputText value="#{row.reagent!=null?row.reagent.cas:''}"/>
                </p:column>
 
                <p:column headerText="厂家" width="80">
                    <h:outputText value="#{row.reagent.productHome}"/>
                </p:column>
 
                <p:column headerText="申购数量" width="80">
                    <h:outputText value="#{row.num}"/>
                </p:column>
 
                <p:column headerText="申购人" width="80">
                    <h:outputText value="#{sysUserService.getSysUser(row.applyUserId).getName()}"/>
                </p:column>
 
                <p:column headerText="条形码开始" width="120">
                    <h:outputText value="#{row.startReagentCode}"></h:outputText>
                </p:column>
 
                <p:column headerText="条形码结束" width="120">
                    <h:outputText value="#{row.endReagentCode}"></h:outputText>
                </p:column>
 
                <p:column headerText="到货数量" width="80">
                    <p:cellEditor>
                        <f:facet name="output">
                            <h:outputText value="#{row.arrivalNum}" />
                        </f:facet>
                        <f:facet name="input">
                            <p:inputNumber value="#{row.arrivalNum}"
                                           minValue="0" decimalPlaces="0" style="width: 100%"
                                           required="true" requiredMessage="请输入到货数量"/>
                        </f:facet>
                    </p:cellEditor>
                </p:column>
 
                <p:column headerText="批号" width="100">
                    <p:cellEditor>
                        <f:facet name="output">
                            <h:outputText value="#{row.articleNumber}" />
                        </f:facet>
                        <f:facet name="input">
                            <p:inputText value="#{row.articleNumber}" maxlength="32" style="width: 100%" required="true"
                                         requiredMessage="请输入到批号"/>
                        </f:facet>
                    </p:cellEditor>
                </p:column>
 
 
 
                <p:column headerText="仓库名" width="120">
                    <p:cellEditor>
                        <f:facet name="output">
                            <h:outputText value="#{warehouseStockMngController.formatWarehouseName(row.houseId)}"/>
                        </f:facet>
                        <f:facet name="input">
                            <p:selectOneMenu value="#{row.houseId}" style="width: 110px" required="true" requiredMessage="请选择仓库">
                                <p:ajax event="change" process="@this"
                                        listener="#{warehouseStockMngController.onWarehouseSelectChange(row.houseId)}"
                                        update="containerSelect"/>
                                <f:selectItems value="#{warehouseStockMngController.warehouseList}" var="item"
                                               itemValue="#{item.id}" itemLabel="#{item.name}"/>
                            </p:selectOneMenu>
                        </f:facet>
                    </p:cellEditor>
                </p:column>
 
                <p:column headerText="货柜名" width="120">
                    <p:cellEditor>
                        <f:facet name="output">
                            <h:outputText value="#{warehouseStockMngController.formatWarehouseContainerName(row.containerId)}" />
                        </f:facet>
                        <f:facet name="input">
                            <p:selectOneMenu id="containerSelect" value="#{row.containerId}" style="width: 110px" required="true" requiredMessage="请选择货柜">
                                <f:selectItems value="#{warehouseStockMngController.warehouseContainerList}" var="item"
                                               itemValue="#{item.id}" itemLabel="#{item.containerCode}"/>
                            </p:selectOneMenu>
                        </f:facet>
                    </p:cellEditor>
                </p:column>
 
            </p:dataTable>
 
 
 
        </p:panel>
    </h:form>
</ui:composition>
</html>