rushfee/resource/html/tick/updatecontact.html

60 lines
1.5 KiB
HTML

<html login="false">
<head>
<title>预约回访</title>
</head>
<body >
<div widget="toolbar" >
<a widget="button" iconCls="icon-save" id="savebtn" onclick="save" linkToState="editold,editnew">删除</a>
<a widget="button" iconCls="icon-save" id="updatebtn" onclick="update" linkToState="editold,editnew">修改</a>
</div>
<input widget="edit" name="deletecontact" label="原联系电话" readonly="true" />
<br/>
<input widget="edit" name="updateontact" label="现联系电话" />
<br/>
<input widget="edit" name="name" label="联系人" />
<br/>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
var info;
function init(param){
aos.get("deletecontact").setValue(param.mobile);
}
function save(){
var params ={}
var deletecontact = aos.get('deletecontact').getValue();
if(deletecontact==null || deletecontact==''){
aos.alert('需选择约定回访时间!');
return ;
}
params['deletecontact']=deletecontact;
params['state']=0;
CloseWindow(params);
}
function update(){
var params ={}
var deletecontact = aos.get('deletecontact').getValue();
var updateontact = aos.get('updateontact').getValue();
var name = aos.get('name').getValue();
if(updateontact==null || updateontact==''){
aos.alert('更新联系电话不能为空!');
return ;
}
params['deletecontact']=deletecontact;
params['updateontact']=updateontact;
params['name']=name;
params['state']=1;
CloseWindow(params);
}
</script>
</html>