rushfee/build/classes/html/bureau/hotupdate.html

83 lines
2.7 KiB
HTML
Raw Normal View History

2023-09-26 00:20:25 +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/>
<input widget="edit" name="mlevel" label="等级" maxValue="100" minValue="-9999" style="width:400px;margin-top:5px"/>
<br/>
<input widget="num" name="mprice" label="金额" maxValue="100000" style="width:400px;margin-top:5px"/>
2023-11-09 16:29:59 +00:00
<br/>
<input widget="textarea" name="remark" label="更新备注" emptyText=" 请输入更新描述!" width="400px" height="100px"/>
2023-09-26 00:20:25 +00:00
</body>
<script type="text/javascript">
var grid = aos.get('grid');
function init(params) {
aos.getForm().setData(params);
aos.get('mlevel').setValue(params.mlevel);
}
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();
2023-11-09 16:29:59 +00:00
data['remark']=aos.get('remark').getValue();
if(aos.get('remark').getValue()==''||aos.get('remark').getValue()==null){
aos.alert('更新备注不能为空!');
return ;
}
2023-09-26 00:20:25 +00:00
aos.post({
url:"rush/hot/update",
data:data,
success:function(data){
if(data=1){
CloseWindow();}
else{
aos.tip('服务错误联系管理员!');
}
}
});
}
</script>
</html>