103 lines
3.7 KiB
HTML
103 lines
3.7 KiB
HTML
<html login="false">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>CRM流向不一致处理</title>
|
|
</head>
|
|
<body>
|
|
<div widget="toolbar">
|
|
</div>
|
|
|
|
<p style ="color:red;text-align:center;">注意:以下为批量维护等级,输入条件 更新等级 可以预览!确认无误执行!</p>
|
|
|
|
<p style ="color:#2a20ff;text-align:center;">-------------------------------查询选项-------------------------------</p>
|
|
<input widget="edit" name="mobile" label="电话" required="false" style="margin-top:5px"/>
|
|
<br/>
|
|
<input widget="edit" name="mprice" label="金额" required="false" style="margin-top:5px"/>
|
|
<br/>
|
|
<input widget="edit" name="mlevel" label="等级" required="false" style="margin-top:5px"/>
|
|
<a widget="button" iconCls="icon-search" onclick="yulan" linkToState="editold,editnew">预览</a>
|
|
<p style ="color:#2a20ff;text-align:center;">-------------------------------更新选项-------------------------------</p>
|
|
<input widget="edit" name="updatemlevel" label="等级" required="true" style="margin-top:5px"/>
|
|
<a widget="button" iconCls="icon-save" onclick="save" linkToState="editold,editnew">执行</a>
|
|
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
<p style ="color:red;text-align:center;">注意:以下为批量更新电话,按照模板进行导入!(开发中)</p>
|
|
|
|
<br/>
|
|
<input id="fileupload1" widget="fileupload" limitType="*.xlsx" label="批量导入"
|
|
flashUrl="www/lib/uploader/swfupload/swfupload.swf"
|
|
uploadUrl="crm_sku/importExlfile" buttonText="浏览" width="120px"
|
|
uploadOnSelect="false" onuploadsuccess="onUploadSuccess"
|
|
onuploaderror="onUploadError" onfileselect="onFileSelect" />
|
|
<a widget="button" iconCls="icon-import" onclick="startUpload()">批量执行</a>
|
|
<script type="text/javascript">
|
|
var isSaving = false;
|
|
function save(){
|
|
if(isSaving){
|
|
aos.tip('正在处理中...');
|
|
return;
|
|
}else{
|
|
isSaving=true;
|
|
}
|
|
if(!FORM.validate())
|
|
{
|
|
isSaving = false;
|
|
return;
|
|
}
|
|
aos.post({
|
|
url:"rush/hot/updatedengji",
|
|
data:aos.getForm().getData(),
|
|
success:function(data, textStatus, jqXHR){
|
|
if(data == 1){
|
|
aos.get("updatemlevel").setValue("");
|
|
aos.tip("已按照条件维护成功!");
|
|
isSaving=false;
|
|
}
|
|
else{
|
|
aos.tip("维护失败!");
|
|
isSaving=false;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
function startUpload() {
|
|
|
|
var fileupload = aos.get("fileupload1");
|
|
var param = {state:aos.get("state2").getValue()};
|
|
fileupload.setPostParam(param);
|
|
fileupload.startUpload();
|
|
}
|
|
function onFileSelect(e) {//file,sender,source,type[fileselect]
|
|
var file=e.file;//size,modificationdate,creationdate,post,type[.txt],id,name,filestatus,index[0]
|
|
//alert(file.name);
|
|
}
|
|
function onUploadSuccess(e) {
|
|
var result=aos.decode(e.serverData);
|
|
aos.alert(result.data.info);
|
|
this.setText("");
|
|
}
|
|
|
|
|
|
function yulan() {
|
|
var params = {
|
|
mobile: aos.get('mobile').getValue(),
|
|
mlevel: aos.get('mlevel').getValue(),
|
|
mprice: aos.get('mprice').getValue()
|
|
};
|
|
aos.showWindow('canvas/bureau/yulan', params, '1000px', '800px', '维护预览', function(rtnValue){
|
|
|
|
});
|
|
}
|
|
|
|
</script>
|
|
</body>
|
|
</html> |