rushfee/resource/html/bureau/hotupdate.html

77 lines
2.3 KiB
HTML
Raw Normal View History

2023-09-25 10:43:17 +00:00
<html login="false">
<head>
<title>客户信息明细</title>
</head>
<body >
<div widget="toolbar" >
<a widget="button" iconCls="icon-admin" id="savebtn" onclick="save">保存</a>
<a widget="button" iconCls="icon-exit" onclick="CloseWindow()">退出</a>
</div>
<input name="id" widget="hidden" />
<input widget="edit" name="khid" label="客户id" style="width:400px;margin-top:5px"/>
<br/>
<input widget="edit" name="custname" label="客户名称" style="width:400px;margin-top:5px"/>
<br/>
<input widget="edit" name="custtaxno" label="客户税号" style="width:400px;margin-top:5px"/>
<br/>
<input widget="edit" name="mobile" label="联系电话" style="width:400px;margin-top:5px"/>
<br/>
<input name="enddate" widget=datechooser allowinput="ture" label="到期日期" style="width:400px;margin-top:5px">
<br/>
<div name="state" required label="状态" widget="radiobuttonlist"
repeatitems="2" repeatlayout="table" textfield="text" valuefield="id"
data="[{id:0,text:'无效'},{id:1,text:'有效'}]" style="width:400px;margin-top:5px">
</div>
<br/>
2023-09-26 00:20:25 +00:00
<input widget="edit" name="mlevel" label="等级" maxValue="100" minValue="-9999" style="width:400px;margin-top:5px"/>
2023-09-25 10:43:17 +00:00
<br/>
<input widget="num" name="mprice" label="金额" maxValue="100000" style="width:400px;margin-top:5px"/>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
function init(params) {
aos.getForm().setData(params);
2023-09-26 00:20:25 +00:00
aos.get('mlevel').setValue(params.mlevel);
2023-09-25 10:43:17 +00:00
}
function save(){
var data = aos.getForm().getData();
data['id']=aos.get('id').getValue();
data['khid']=aos.get('khid').getValue();
data['custname']=aos.get('custname').getValue();
data['custtaxno']=aos.get('custtaxno').getValue();
data['mobile']=aos.get('mobile').getValue();
data['enddate']=aos.get('enddate').getValue();
data['state']=aos.get('state').getValue();
data['mlevel']=aos.get('mlevel').getValue();
data['mprice']=aos.get('mprice').getValue();
aos.post({
url:"rush/hot/update",
data:data,
success:function(data){
if(data=1){
CloseWindow();}
else{
aos.tip('服务错误联系管理员!');
}
}
});
}
</script>
</html>