82 lines
1.9 KiB
HTML
82 lines
1.9 KiB
HTML
<html login="false">
|
|
<head>
|
|
<title>反馈资料</title>
|
|
</head>
|
|
<body>
|
|
<div widget="toolbar">
|
|
|
|
|
|
<a widget="button" iconCls="icon-save" onclick="save" linkToState="editold,editnew">保存</a>
|
|
|
|
<a widget="button" iconCls="icon-exit" onclick="CloseWindow()">退出</a>
|
|
</div>
|
|
|
|
|
|
<input widget="hidden" name="id" label="id" readonly="true" style="margin-top:5px"/> <br/>
|
|
<input widget="num" name="account" label="鸿联电话" required="true" allowInput="false" style="margin-top:5px" />
|
|
<br/>
|
|
<input widget="combox" name="accountname" label="员工姓名" url="rush/telaccount/getuserList"
|
|
emptyText="请选择" textField="cname" valueField="cguid" allowInput="false"
|
|
showNullItem="true" onvaluechanged="getRevenue" />
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
<script type="text/javascript">
|
|
var grid = aos.get('grid');
|
|
grid.load();
|
|
function init(param){
|
|
aos.post({
|
|
url:"rush/telaccount/getone",
|
|
data:param,
|
|
success:function(rtnData){
|
|
|
|
if(null!=rtnData){
|
|
aos.get('account').setValue(rtnData.account);
|
|
|
|
}
|
|
else{
|
|
|
|
aos.tip('没有可分配的鸿联账号!!!');
|
|
}
|
|
|
|
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
function save(){
|
|
if(aos.get('accountname').getValue()=="")
|
|
{aos.tip('请选择职员');
|
|
return;
|
|
}
|
|
if(aos.get('account').getValue()=="")
|
|
{aos.tip('没有可分配的鸿联账号');
|
|
return;
|
|
}
|
|
var one = {};
|
|
one['accountname']=aos.get('accountname').getValue();
|
|
one['account']=aos.get('account').getValue();
|
|
aos.post({
|
|
url:"rush/telaccount/save",
|
|
data:one,
|
|
success:function(data, textStatus, jqXHR){
|
|
if(data==1){
|
|
aos.tip('保存成功');
|
|
CloseWindow();
|
|
}
|
|
else{
|
|
aos.tip('已被占用已存在');
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
}
|
|
|
|
</script>
|
|
</html> |