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
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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>选择供应商</title>
<!--(start) public flies-->
 
</head>
[#include "/business/pages/include/static.html" /]
<body class="search_list_body">
<div class="search_list">
    <div class="event_fill sa_event_fill">
        <table style="width: 95%">
         <tr>
          <th width="80%">
            <div class="fill_item">
               <label>供应商名称:</label><input class="general" type="text" id="supplier_name" name="supplier_name" />
            </div>
            <div class="fill_item">
              <label>联系人:</label><input class="general" type="text" id="contacts" name="contacts"/>
            </div>
        </th>
        <td  width="20%">
            <a class="retrievebtn" href="javascript:window.location.reload(true);">重置</a><a class="retrievebtn focus" href="javascript:query();">查询</a>
        </td>
       
       </tr>
      </table>
    </div>
    <table class="display_form" id="main">
       
       
    </table>
</div>
 
<script type="text/javascript">
    function query() {
        var supplier_name = $.trim($("#supplier_name").val());
        var contacts = $.trim($("#contacts").val());
        $.post("${base}/business/pages/bpbj/stockApply/subSupplierData.html",{"supplier_name":supplier_name,"contacts":contacts},function(data,textStatus) {
            $("#main").html(data);
        })
        
    }
 
    
    function subCus() {
        
        var sub_customer_id = $("#sub_customer_id").val();
        
        var url = "${base}/business/pages/servicelist/slaproject/subCus.html?type=3&customerId="+customerid+"&subCustomerId="+sub_customer_id;
        window.top.openDialog("selectSubCus","操作",
                             {},
                             {"width":80,"height":80},
                             [{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],url);
    }
    
    function showCus(labelId,labelName) {
        $("#sub_customer_name").val(labelName);
        $("#sub_customer_id").val(labelId);
    }
    
    $(function() {
        query();
    })
    
    function onDialogBtnClick(btnID, dialogID, config){
    
                if(btnID == "btnSure"){
                    var deivceId = $(".deivceId:checked");
                    var labelId = deivceId.attr("value");
                    var labelName = deivceId.attr("supplier_name");
                    window.top.hideDialog(dialogID);
                    if('${RequestParameters.flag}'==101){
                        window.top.document.getElementById('dialogIframe0').contentWindow.showSupplier(labelId,labelName);
                    }else{
                        window.top.document.getElementById('dialogIframe2').contentWindow.showSupplier(labelId,labelName);
                    }
                }
            }
            
     function detail(id) {
        var url = "${base}/business/pages/supplier/supplierDetail.html?id=" + id;
        window.top.openDialog("3", "详情",
                {},
                {"width": 60, "height": 80},
                [], url);
    }
</script>
</body>
</html>