79 lines
2.6 KiB
HTML
79 lines
2.6 KiB
HTML
<html login="false" auth="false">
|
|
<head>
|
|
<title>派工单列表</title>
|
|
<style>
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div widget="toolbar" style="padding:4px;border:0;">
|
|
<input name="searchbegindate" widget=datechooser allowinput="f" label="创建日期"> 至<input name="searchenddate" widget=datechooser allowinput="f" >
|
|
<input widget="edit" name="cust_name" label="客户名称" />
|
|
<input widget="edit" name="user_name" label="申请人" />
|
|
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>
|
|
</div>
|
|
<div widget="autosize">
|
|
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/pai/getpailist" >
|
|
<div type="indexcolumn" width="25" header="序号"></div>
|
|
<div field="id" visible="false" ></div>
|
|
<div field="customer_id" visible="false" ></div>
|
|
<div field="customer_name" width="100" header="客户名称"></div>
|
|
<div field="type" width="45" header="申请类型" ></div>
|
|
<div field="service_date" width="40" header="服务时间" ></div>
|
|
<div field="user_name" width="80" header="申请人姓名"></div>
|
|
<div field="create_time" width="60" header="创建时间"></div>
|
|
<div field="syn_time" width="60" header="同步时间"></div>
|
|
<div field="syn_info" width="40" header="同步状态"></div>
|
|
<div field="remark" width="60" header="描述"></div>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
<script type="text/javascript">
|
|
var grid = aos.get('grid');
|
|
var url="rush/org/getRevenueByOrgId?companyid=";
|
|
function search() {
|
|
var begindate = aos.get('searchbegindate').getValue();
|
|
var enddate = aos.get('searchenddate').getValue();
|
|
|
|
if (begindate != "") {
|
|
if (enddate == "") {
|
|
aos.alert('请选择结束时间!');
|
|
return;
|
|
} else {
|
|
if (begindate > enddate) {
|
|
aos.alert('开始日期必须早于结束日期!');
|
|
} else {
|
|
var begindate = begindate + " " + "00:00:00";
|
|
var enddate = enddate + " " + "23:59:59";
|
|
var params = {
|
|
searchbegindate: begindate,
|
|
searchenddate: enddate,
|
|
cust_name: aos.get('cust_name').value,
|
|
user_name: aos.get('user_name').value
|
|
}
|
|
grid.load(params);
|
|
}
|
|
}
|
|
} else if (enddate != "") {
|
|
aos.alert('请选择开始时间!');
|
|
return;
|
|
} else {
|
|
var params = {
|
|
cust_name: aos.get('cust_name').value,
|
|
user_name: aos.get('user_name').value
|
|
}
|
|
grid.load(params);
|
|
}
|
|
|
|
}
|
|
|
|
function getRevenue(e){
|
|
var company = aos.get('company');
|
|
var revenue = aos.get('revenue');
|
|
revenue_url = url+company.getValue();
|
|
revenue.load(revenue_url)
|
|
}
|
|
|
|
|
|
</script>
|
|
</html> |