123
chenjingwu
2024-04-12 f1bb6af7ec8ea81ba1b40eef0dabeeef3eee4bbb
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
<template>
<apex:page id="Page"  extensions="SearchProductController" sidebar="false"  lightningstylesheets="true" >
    <apex:outputPanel id="all">
        <apex:outputPanel id="message1">
            <!-- <apex:messages styleClass="editListError"></apex:messages> -->
        </apex:outputPanel>
        <apex:form id="mainForm">
            <apex:pageBlock id="idSearchSetProduct" title={Label.Product_Search}>
                <!-- <apex:inputHidden id="Trade" value="{!Trade}"/> -->
                <lightning-input type="hidden" ></lightning-input>
                <table width="900" border="0" style="background-color:#DCDCDC">
                    <colgroup>
                        <col width="12" />
                        <col width="20" />
                        <col width="20" />
                        <col width="200" />
                        <col width="20" />
                        <col width="428" />
                    </colgroup>
                    <tr>
                        <td>&nbsp;</td>
                        <th>{Label.Search_Condition}</th>
                        <td>&nbsp;</td>
                        <th>{Label.Asset_No}</th>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td><lightning-input id="searchName"  onchange={getInput} >
                            </lightning-input></td></td>
                        <td><lightning-button class="slds-m-left_x-small" label="搜索"   onclick={serContact} variant="brand-outline" ></lightning-button></td>
                        <td>&nbsp;<lightning-button class="slds-m-left_x-small" title="Selected Records" label="追加"  variant="brand-outline"   onclick={setProductList}></lightning-button></td>
                    </tr>
                    <tr>
                        <td style="border-bottom: 1px solid #888;" colspan="15">&nbsp;</td>
                    </tr>
                </table>
                <table width="900" border="0" style="background-color:#DCDCDC">
                    <tr>
                        <td width="12">&nbsp;</td>
                        <th valign="top">{Label.Search_Result}</th>
                        <td width="20">&nbsp;</td>
                        <td>
                            <table border="0">
                                <tr>
                                    <td>
                                    <div style="height: 300px;">
                                    <lightning-datatable 
                                            key-field="id"
                                            data={data}
                                            columns={columns}
                                            onrowaction={handleRowAction} >
                                    </lightning-datatable>
                                    </div>
                                    </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </apex:pageBlock>
        </apex:form>
    </apex:outputPanel>
    
</apex:page>
</template>