cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
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
<table class="display_form common_list_table leftTable" id="over_table">
    <tr class="title">
        <td width="10%"><input type="checkbox" id="selAll">全选</td>
        <td width="10%">备件分类</td>
        <td width="10%">实物编码</td>
        <td width="10%">备件名称</td>
        <td width="10%">资产编码</td>
        <td width="10%">型号</td>
        <td width="10%">货位</td>    
        <td width="10%">报损原因</td>    
        <td width="20%">操作</td>
    </tr>
    [#if pageInfo?? && pageInfo.datas?? && pageInfo.datas?size>0]
    [#list pageInfo.datas as item]
    <tr>
        <td>${pageInfo.rowNum+item_index+1}<input type="checkbox" name="ids" class="ids" value="${item.id}"></td>
        <td>${item.LV1_NAME}-${item.LV2_NAME}-${item.LV3_NAME}</td>
        <td>${item.ENTITY_NO}</td>
        <td>${item.NAME}</td>
        <td>${item.ASSET_NO}</td>
        <td>${item.MODEL_NO}</td>
        <td>${item.LOCATION}</td>
        <td>${item.REASON}</td>
        <td class="list_btnmore_wrap" nowrap>
           [#if RequestParameters.type == 1]
             <a class="blue_txt" href="javascript:sparePartDetail('${item.PATHID}');"><span>详情</span></a>
           [#else]
            <a class="blue_txt lb_button" href="javascript:sparePartDetail('${item.PATHID}','${item.ID}','${item.ORDER_ID}');"><span>修改</span></a> 
            <a class="blue_txt" href="javascript:del('${item.PATHID}');"><span>删除</span></a> 
            [/#if]
        </td>
    </tr>
    [/#list]
    [#else]
        <tr><td colspan="8"><div class="loadpos"><span class="nodata"></span></div></td></tr>
    [/#if]
</table>
 
<script type="text/javascript">
 
    $(function (){
         $("#selAll").click(function () {
                if($(this).prop("checked")==true){
                    $(".ids:checkbox").prop("checked",true);
                }else{
                    $(".ids:checkbox").prop("checked",false);
                }
            });
    })
 
 
</script>