rushfee/build/classes/html/rush/rushtaskcenterlist.html

133 lines
5.3 KiB
HTML
Raw Normal View History

2022-05-16 15:07:40 +00:00
<html login="false" auth="false">
<head>
<title>服务费催缴任务中心列表</title>
<style>
a {float:right;}
</style>
</head>
<body>
<div widget="toolbar" style="padding:4px;border:0;">
<input widget="combox" name="company" label="分公司" url="rush/org/getOrgList"
emptyText="请选择" textField="text" valueField="id" allowInput="false"
showNullItem="true" onvaluechanged="getRevenue" />
<input widget="combox" name="revenue" label="税务机关" style="width:300px;" emptyText="请选择" textField="text" valueField="id" allowInput="false" showNullItem="true"/>
<input widget="combox" name="expstate" label="到期情况" sqlid="rushfee_list.grouplist" showNullItem="true"/>
<input widget="datechooser" name="service_end_date" label="到期日期" />
<input widget="edit" name="cust_name" label="客户名称" />
<input name="nedagain" widget=combox allowinput="f" style="width: 150px;" showNullItem="true"
data="[{id:'Y',text:'是'},{id:'N',text:'否'}]" label="是否回访">
</br>
<input name="custtype" widget=combox allowinput="f" showNullItem="true"
data="[{id:'0',text:'服务费'},{id:'1',text:'托管'}]" label="客户类型">
<input name="injf" widget=combox allowinput="f" style="width: 150px;" showNullItem="true"
data="[{id:'0',text:'否'},{id:'1',text:'是'}]" label="是否在机柜">
<input name="ifmz" widget=combox allowinput="f" style="width: 150px;" showNullItem="true"
data="[{id:'0',text:'否'},{id:'1',text:'是'}]" label="是否免征">
<a widget="button" iconCls="icon-edit" onclick="pay()">催缴</a>
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>
</div>
<div widget="autosize">
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rushtaskcenter/post/rushList" onrowdblclick="pay()">
<div type="indexcolumn" width="35" header="序号"></div>
<div field="center_id" visible="false" ></div>
<div field="task_id" visible="false" ></div>
<div field="detail_id" visible="false" ></div>
<div field="task_user_id" visible="false" ></div>
<div field="user_id" visible="false" ></div>
<div field="customer_id" visible="false" ></div>
<div field="areacode" visible="false" ></div>
<div field="task_creator_name" width="80" header="任务创建人"></div>
<div field="expect_begin_date" width="80" header="预计开始时间"></div>
<div field="org_name" width="40" header="分公司"></div>
<div field="isservice" width="40" header="客户类型"></div>
<div field="customer_name" width="150" header="客户名称"></div>
<div field="cust_tax_code" width="80" header="客户税号"></div>
<div field="nedagain" width="60" header="是否需要回访"></div>
<div field="visit_remark" width="100" header="备注"></div>
<div field="againdate" width="80" header="约定回访时间"></div>
<div field="end_date" width="60" align="center" header="到期日期"></div>
</div>
</div>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
grid.load();
var url="rush/org/getRevenueByOrgId?companyid=";
function search(){
var params={cust_name:aos.get('cust_name').value,expstate:aos.get('expstate').value,company:aos.get('company').value,revenue:aos.get('revenue').value,service_end_date:aos.get('service_end_date').getValue(),nedagain:aos.get('nedagain').getValue(),custtype:aos.get('custtype').getValue(),injf:aos.get('injf').getValue(),ifmz:aos.get('ifmz').getValue()};
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)
}
function pay(){
var data = grid.getSelected();
if(!data){
aos.alert('请选择一条数据。');
return;
}
var param = {};
param['pageState'] = 'editold';
param['customer_id'] = data.customer_id;
param['task_id'] = data.task_id;
param['detail_id'] = data.detail_id;
param['task_user_id'] = data.task_user_id;
param['center_id'] = data.center_id;
param['user_id'] = data.user_id;
param['end_date'] = data.end_date;
param['areacode'] = data.areacode;
dakai(param);
}
function dakai(param){
aos.showWindow('canvas/rush/rushtasklistdetail', param, '1090', '590px', '任务中心客户信息明细', function(haha){
grid.reload();
if(haha=="close"){
}
else{jixu();}
});
}
// 随机取一条待催缴客户id
function jixu(){
var one = {};
one['expstate']=aos.get('expstate').value;
one['company']=aos.get('company').value;
one['cust_name']=aos.get('cust_name').value;
one['service_end_date']=aos.get('service_end_date').value;
one['revenue']=aos.get('revenue').value;
aos.post({
url:"rushtaskcenter/getone",
data:one,
success:function(rtnValue){
var two = {};
two['pageState'] = 'editold';
two['customer_id'] = rtnValue.customer_id;
two['task_id'] = rtnValue.task_id;
two['detail_id'] = rtnValue.detail_id;
two['task_user_id'] = rtnValue.task_user_id;
two['center_id'] = rtnValue.center_id;
two['user_id'] = rtnValue.user_id;
two['end_date'] = rtnValue.end_date;
two['areacode'] = rtnValue.areacode;
dakai(two);
}
});
}
</script>
</html>