buli
2023-04-11 e3984fbbf370bf5925250a75bfb6154b4a16685c
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
175
176
<template>
    <div style="border: 1px solid #D4D4D4;border-radius:5px;">
        <div style="border-top: 3px solid #51606E;;border-bottom: 1px solid #D4D4D4;padding:3px;">
            <p style="font-size: 19px;"><strong>库存管理</strong></p>
        </div>
        <div style="padding:10px;">
            <div style="border: 1px solid #D4D4D4;border-radius:5px;margin-bottom:7px;">
                <div style="border-top: 3px solid #51606E;border-bottom: 1px solid #D4D4D4;padding:3px;">
                    <table>
                        <colgroup>
                            <col width="160px"/>
                            <col width="100px"/>
                            <col width="10px"/>
                            <col width="70px"/>
                            <col width="100px"/>
                            <col width="10px"/>
                            <col width="90px"/>
                            <col width="100px"/>
                            <col width="10px"/>
                            <col width="85px"/>
                            <col width="100px"/>
                            <col width="10px"/>
                            <col width="70px"/>
                            <col width="100px"/>
                        </colgroup>
                        <tbody>
                            <tr>
                                <td></td>
                                <td><lightning-button label="库存盘点" title="库存盘点" onclick={inventoryCount} ></lightning-button></td>
                                <td></td>
                                <td></td>
                                <td style="width:100px;"><lightning-button label="过期库存销存"  title="过期库存销存" onclick={handleClick} ></lightning-button></td>
                                <td></td>
                                <td></td>
                                <td style="width:100px;"><lightning-button label="拆盒" title="拆盒" onclick={handleClick} ></lightning-button></td>
                                <td></td>
                                <td></td>
                                <td style="width:100px;"><lightning-button label="取消拆盒" title="取消拆盒" onclick={handleClick}></lightning-button></td>
        
                            </tr>
                        </tbody>  
                </table>
                </div>
            </div>
 
                <div style="border: 1px solid #D4D4D4;border-radius:5px;margin-bottom:7px;">
                    <div style="border-top: 3px solid #51606E;border-bottom: 1px solid #D4D4D4;padding:3px;">
                        <table>
                            <colgroup>
                                <col width="160px"/>
                                <col width="100px"/>
                                <col width="10px"/>
                                <col width="70px"/>
                                <col width="100px"/>
                                <col width="10px"/>
                                <col width="70px"/>
                                <col width="100px"/>
                                <col width="10px"/>
                                <col width="90px"/>
                                <col width="100px"/>
                                <col width="85px"/>
                                <col width="100px"/>
                                <col width="10px"/>
                                <col width="70px"/>
                                <col width="100px"/>
                            </colgroup>
                            <tbody>
                                <tr>
                                    <td style="width: 21%;">
                                        <lightning-input type="text" name="Name" label="消耗品名称"  value={Name}  variant="label-inline" onchange={handleChange} data-field ="Name" ></lightning-input>
                                    </td>
                                    <td style="width: 21%;">
                                        <lightning-combobox   name="CategoryThree" label="第3分类" value={value} placeholder="请选择..." options={optionscatone} variant="label-inline" onchange={handleChange}></lightning-combobox>
                                    </td>
                                    <td style="width: 21%;">
                                        <lightning-combobox  name="CategoryFour" label="第4分类" value={value} placeholder="请选择..." options={options2} variant="label-inline" onchange={handleChange}></lightning-combobox>
                                    </td>
                                    <td style="width: 21%;">
                                        <lightning-combobox  name="CategoryFive" label="第5分类" value={value} placeholder="请选择..." options={options3} variant="label-inline" onchange={handleChange}></lightning-combobox>
                                    </td>
                                    <td style="width: 3%;"></td>
                                    <td style="width: 8%;">
                                        <lightning-button label="消耗品搜索" onclick={searchOrderDetail}></lightning-button>
                                    </td>
                                    <td style="width: 8%;">
                                        <lightning-button label="清空" onclick={clearAll}></lightning-button>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            <div style="border: 1px solid #D4D4D4;border-radius:5px;margin-bottom:7px;">
                <div style="border-top: 3px solid #51606E;border-bottom: 1px solid #D4D4D4;padding:3px;">
                    <p style="font-size: 16px;"><strong>库存详情</strong></p>
                </div>
                <div style="padding:10px;">
                    <template if:true={showTable}>
                        <c-lwc-datatable-utility 
                            records={data} 
                            total-records={data.length} 
                            columns = {columns}
                            key-field="Id"
                            show-search-box="true"            
                            max-row-selection={data.length}
                            onpaginatorchange={handlePaginatorChange}>
                        </c-lwc-datatable-utility>
                    </template>
                  
 
                    <!-- <table class="list" border="0" cellpadding="0" cellspacing="0" id="example">
                        <thead>
                            <tr class="headerRow">
                                <th>消耗品名称</th>
                                <th>第3分类</th>
                                <th>第4分类</th>
                                <th>第5分类</th>
                                <th>规格</th>
                                <th>单位</th>
                                <th>注册证编码号</th>
                                <th>注册证效期</th>
                                <th>CFDA状态</th>
                                <th>使用期限</th>
                                <th>有效期内库存</th>
                                <th>过期库存</th>
                              
                                <template if:true={hasHos}>
                                    <th>医院特价</th>
                                </template>
                            </tr>
                        </thead>
                        <tbody>
                            <template for:each={pageRecords} for:item="m">
                                <tr key={m.Prod.Name__c}>
                                    <td align="center">{m.Prod.Name__c}</td>
                                    <td align="center">{m.Prod.Category3__c}</td>
                                    <td align="center">{m.Prod.Category4__c}</td>
                                    <td align="center">{m.Prod.Category5__c}</td>
                                    <td align="center">{m.packing_list}</td>
                                    <td align="center">{m.BoxPiece}</td>
                                    <td align="center">{m.approbation_No}</td>
                                    <td align="center">{m.expiration_Date}</td>
                                    <td align="center">{m.Prod.SFDA_Status__c}</td>
                                    <td align="center">{m.guaranteeperiod}</td>
                                    <td align="center">{m.limitCount}</td>
                                    <td align="center">{m.overlimitCount}</td>
                                    <template if:true={hasHos}>
                                        <td>
                                            <template if:true={m.hospitalSpecialOffer}>
                                                √
                                            </template>
                                        </td>
                                    </template>
                                </tr>
                            </template>
                        </tbody>
                    </table> -->
                    <!-- <div style="height: 300px;">
                        <lightning-datatable
                                key-field="id"
                                data={data}
                                columns={columns}
                                hide-checkbox-column
                                default-sort-direction={defaultSortDirection}
                                sorted-direction={sortDirection}
                                sorted-by={sortedBy}
                                onsort={onHandleSort}>
                        </lightning-datatable>
                    </div> -->
                </div>
            </div>
        </div>
 
 
    </div>
</template>