rushfee/build/classes/html/rush/accountadd.html

86 lines
2.2 KiB
HTML
Raw Normal View History

2022-05-16 15:07:40 +00:00
<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/>
2022-11-22 06:55:55 +00:00
<input widget="num" name="mobile1" label="测试电话1" required="true" style="margin-top:5px" />
<input widget="num" name="mobile2" label="测试电话2" required="true" style="margin-top:5px" />
2022-05-16 15:07:40 +00:00
</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();
2022-11-22 06:55:55 +00:00
one['mobile1']=aos.get('mobile1').getValue();
one['mobile2']=aos.get('mobile2').getValue();
2022-05-16 15:07:40 +00:00
aos.post({
url:"rush/telaccount/save",
data:one,
success:function(data, textStatus, jqXHR){
if(data==1){
aos.tip('保存成功');
CloseWindow();
}
else{
aos.tip('已被占用已存在');
}
}
});
}
</script>
</html>