<!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>
|