73 lines
2.7 KiB
HTML
73 lines
2.7 KiB
HTML
<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 widget="autocomplete" name="custname" label="查询客户" url="rush/search/gettaskpeople"
|
|
popupEmptyText="请选择" textfield="cname" valuefield="cguid"
|
|
|
|
style="margin-left:-16px;width: 500px;" showClose="true" oncloseclick ="conCloseClick"/>-->
|
|
<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="combox" name="orgname" label="分公司" url="rush/hot/getOrgList" style="width:400px;margin-top:5px"
|
|
emptyText="请选择" textField="text" valueField="text" allowInput="false"
|
|
showNullItem="true"/>
|
|
<br/>
|
|
<input widget="num" name="mlevel" label="等级" maxValue="100" minValue="0" style="width:400px;margin-top:5px"/>
|
|
<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');
|
|
aos.get('state').setValue(1);
|
|
|
|
function save(){
|
|
var data = aos.getForm().getData();
|
|
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['orgname']=aos.get('orgname').getValue();
|
|
data['mlevel']=aos.get('mlevel').getValue();
|
|
data['mprice']=aos.get('mprice').getValue();
|
|
aos.post({
|
|
url:"rush/hot/save",
|
|
data:data,
|
|
success:function(data){
|
|
if(data=1){
|
|
CloseWindow();}
|
|
else{
|
|
aos.tip('服务错误联系管理员!');
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
|
|
|
|
</script>
|
|
</html> |