master
zxf 2023-09-25 18:43:17 +08:00
parent ebb02da88b
commit c5d2879cd6
13 changed files with 428 additions and 17 deletions

View File

@ -32,9 +32,9 @@
emptyText="请选择" textField="text" valueField="text" allowInput="false" emptyText="请选择" textField="text" valueField="text" allowInput="false"
showNullItem="true"/> showNullItem="true"/>
<br/> <br/>
<input widget="int" name="mlevel" label="等级" maxValue="100" style="width:400px;margin-top:5px"/> <input widget="num" name="mlevel" label="等级" maxValue="100" minValue="0" style="width:400px;margin-top:5px"/>
<br/> <br/>
<input widget="int" name="mprice" label="金额" maxValue="100000" style="width:400px;margin-top:5px"/> <input widget="num" name="mprice" label="金额" maxValue="100000" style="width:400px;margin-top:5px"/>
</body> </body>

View File

@ -17,9 +17,10 @@
data="[{id:'0',text:'无效'},{id:'1',text:'有效'}]" emptyText="请选择" label="状态"> data="[{id:'0',text:'无效'},{id:'1',text:'有效'}]" emptyText="请选择" label="状态">
<a widget="button" iconCls="icon-search" onclick="search()">查询</a> <a widget="button" iconCls="icon-search" onclick="search()">查询</a>
<a widget="button" iconCls="icon-add" onclick="add">新增</a> <a widget="button" iconCls="icon-add" onclick="add">新增</a>
<a widget="button" iconCls="icon-save" onclick="weihu">维护</a>
</div> </div>
<div widget="autosize"> <div widget="autosize">
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/hot/getlist"> <div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/hot/getlist" onrowdblclick="pay()">
<div type="indexcolumn" width="35" header="序号"></div> <div type="indexcolumn" width="35" header="序号"></div>
<div field="id" visible="id"></div> <div field="id" visible="id"></div>
<div field="khid" visible="id"></div> <div field="khid" visible="id"></div>
@ -58,7 +59,7 @@
return "<a href='javascript:void(0)' style='text-decoration:none' onclick='huifu(\"" + e.row.id + "\")'>" + "恢复"; return "<a href='javascript:void(0)' style='text-decoration:none' onclick='huifu(\"" + e.row.id + "\")'>" + "恢复";
} }
if (e.row.state=='1') { if (e.row.state=='1') {
return "<a href='javascript:void(0)' style='text-decoration:none' onclick='rekp(\"" + e.row.id + "\")'>" + "删除"; return "<a href='javascript:void(0)' onclick='rekp(\"" + e.row.id + "\")'>" + "删除(状态==>无效)";
} }
return "暂无操作"; return "暂无操作";
@ -109,5 +110,45 @@
}); });
} }
function weihu() {
var param = {};
aos.showWindow('canvas/bureau/weihu', param, '600px', '800px', '热线维护', function(rtnValue){
grid.reload();
});
}
function pay(){
var data = grid.getSelected();
if(!data){
aos.alert('请选择一条数据!');
return;
}
var param = {};
param['pageState'] = 'editold';
param['id'] = data.id ;
param['khid'] = data.khid;
param['custname'] = data.custname;
param['custtaxno'] = data.custtaxno;
param['mobile'] = data.mobile;
param['enddate'] = data.enddate;
param['orgname'] = data.orgname;
param['state'] = data.state;
param['mlevel'] = data.mlevel;
param['mprice'] = data.mprice;
dakai(param);
}
function dakai(param){
aos.showWindow('canvas/bureau/hotupdate', param, '600', '590px', '热线等级更新', function(rtnValue){
grid.reload();
});
}
</script> </script>
</html> </html>

View File

@ -32,9 +32,9 @@
emptyText="请选择" textField="text" valueField="text" allowInput="false" emptyText="请选择" textField="text" valueField="text" allowInput="false"
showNullItem="true"/> showNullItem="true"/>
<br/> <br/>
<input widget="int" name="mlevel" label="等级" maxValue="100" style="width:400px;margin-top:5px"/> <input widget="num" name="mlevel" label="等级" maxValue="100" minValue="0" style="width:400px;margin-top:5px"/>
<br/> <br/>
<input widget="int" name="mprice" label="金额" maxValue="100000" style="width:400px;margin-top:5px"/> <input widget="num" name="mprice" label="金额" maxValue="100000" style="width:400px;margin-top:5px"/>
</body> </body>

View File

@ -17,9 +17,10 @@
data="[{id:'0',text:'无效'},{id:'1',text:'有效'}]" emptyText="请选择" label="状态"> data="[{id:'0',text:'无效'},{id:'1',text:'有效'}]" emptyText="请选择" label="状态">
<a widget="button" iconCls="icon-search" onclick="search()">查询</a> <a widget="button" iconCls="icon-search" onclick="search()">查询</a>
<a widget="button" iconCls="icon-add" onclick="add">新增</a> <a widget="button" iconCls="icon-add" onclick="add">新增</a>
<a widget="button" iconCls="icon-save" onclick="weihu">维护</a>
</div> </div>
<div widget="autosize"> <div widget="autosize">
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/hot/getlist"> <div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/hot/getlist" onrowdblclick="pay()">
<div type="indexcolumn" width="35" header="序号"></div> <div type="indexcolumn" width="35" header="序号"></div>
<div field="id" visible="id"></div> <div field="id" visible="id"></div>
<div field="khid" visible="id"></div> <div field="khid" visible="id"></div>
@ -58,7 +59,7 @@
return "<a href='javascript:void(0)' style='text-decoration:none' onclick='huifu(\"" + e.row.id + "\")'>" + "恢复"; return "<a href='javascript:void(0)' style='text-decoration:none' onclick='huifu(\"" + e.row.id + "\")'>" + "恢复";
} }
if (e.row.state=='1') { if (e.row.state=='1') {
return "<a href='javascript:void(0)' style='text-decoration:none' onclick='rekp(\"" + e.row.id + "\")'>" + "删除"; return "<a href='javascript:void(0)' onclick='rekp(\"" + e.row.id + "\")'>" + "删除(状态==>无效)";
} }
return "暂无操作"; return "暂无操作";
@ -109,5 +110,45 @@
}); });
} }
function weihu() {
var param = {};
aos.showWindow('canvas/bureau/weihu', param, '600px', '800px', '热线维护', function(rtnValue){
grid.reload();
});
}
function pay(){
var data = grid.getSelected();
if(!data){
aos.alert('请选择一条数据!');
return;
}
var param = {};
param['pageState'] = 'editold';
param['id'] = data.id ;
param['khid'] = data.khid;
param['custname'] = data.custname;
param['custtaxno'] = data.custtaxno;
param['mobile'] = data.mobile;
param['enddate'] = data.enddate;
param['orgname'] = data.orgname;
param['state'] = data.state;
param['mlevel'] = data.mlevel;
param['mprice'] = data.mprice;
dakai(param);
}
function dakai(param){
aos.showWindow('canvas/bureau/hotupdate', param, '600', '590px', '热线等级更新', function(rtnValue){
grid.reload();
});
}
</script> </script>
</html> </html>

View File

@ -1,3 +1,3 @@
#save ini #save ini
#Fri Sep 22 02:24:51 CST 2023 #Mon Sep 25 00:19:40 CST 2023
deploystamp=1612237236000 deploystamp=1612237236000

View File

@ -32,9 +32,9 @@
emptyText="请选择" textField="text" valueField="text" allowInput="false" emptyText="请选择" textField="text" valueField="text" allowInput="false"
showNullItem="true"/> showNullItem="true"/>
<br/> <br/>
<input widget="int" name="mlevel" label="等级" maxValue="100" style="width:400px;margin-top:5px"/> <input widget="num" name="mlevel" label="等级" maxValue="100" minValue="0" style="width:400px;margin-top:5px"/>
<br/> <br/>
<input widget="int" name="mprice" label="金额" maxValue="100000" style="width:400px;margin-top:5px"/> <input widget="num" name="mprice" label="金额" maxValue="100000" style="width:400px;margin-top:5px"/>
</body> </body>

View File

@ -0,0 +1,77 @@
<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="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');
function init(params) {
aos.getForm().setData(params);
grid.load(params);
}
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>

View File

@ -17,9 +17,10 @@
data="[{id:'0',text:'无效'},{id:'1',text:'有效'}]" emptyText="请选择" label="状态"> data="[{id:'0',text:'无效'},{id:'1',text:'有效'}]" emptyText="请选择" label="状态">
<a widget="button" iconCls="icon-search" onclick="search()">查询</a> <a widget="button" iconCls="icon-search" onclick="search()">查询</a>
<a widget="button" iconCls="icon-add" onclick="add">新增</a> <a widget="button" iconCls="icon-add" onclick="add">新增</a>
<a widget="button" iconCls="icon-save" onclick="weihu">维护</a>
</div> </div>
<div widget="autosize"> <div widget="autosize">
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/hot/getlist"> <div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/hot/getlist" onrowdblclick="pay()">
<div type="indexcolumn" width="35" header="序号"></div> <div type="indexcolumn" width="35" header="序号"></div>
<div field="id" visible="id"></div> <div field="id" visible="id"></div>
<div field="khid" visible="id"></div> <div field="khid" visible="id"></div>
@ -58,7 +59,7 @@
return "<a href='javascript:void(0)' style='text-decoration:none' onclick='huifu(\"" + e.row.id + "\")'>" + "恢复"; return "<a href='javascript:void(0)' style='text-decoration:none' onclick='huifu(\"" + e.row.id + "\")'>" + "恢复";
} }
if (e.row.state=='1') { if (e.row.state=='1') {
return "<a href='javascript:void(0)' style='text-decoration:none' onclick='rekp(\"" + e.row.id + "\")'>" + "删除"; return "<a href='javascript:void(0)' onclick='rekp(\"" + e.row.id + "\")'>" + "删除(状态==>无效)";
} }
return "暂无操作"; return "暂无操作";
@ -109,5 +110,45 @@
}); });
} }
function weihu() {
var param = {};
aos.showWindow('canvas/bureau/weihu', param, '600px', '800px', '热线维护', function(rtnValue){
grid.reload();
});
}
function pay(){
var data = grid.getSelected();
if(!data){
aos.alert('请选择一条数据!');
return;
}
var param = {};
param['pageState'] = 'editold';
param['id'] = data.id ;
param['khid'] = data.khid;
param['custname'] = data.custname;
param['custtaxno'] = data.custtaxno;
param['mobile'] = data.mobile;
param['enddate'] = data.enddate;
param['orgname'] = data.orgname;
param['state'] = data.state;
param['mlevel'] = data.mlevel;
param['mprice'] = data.mprice;
dakai(param);
}
function dakai(param){
aos.showWindow('canvas/bureau/hotupdate', param, '600', '590px', '热线等级更新', function(rtnValue){
grid.reload();
});
}
</script> </script>
</html> </html>

View File

@ -0,0 +1,103 @@
<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>

View File

@ -0,0 +1,57 @@
<html login="false" auth="false">
<head>
<meta charset="UTF-8">
<title>热线等级</title>
</head>
<body>
<div widget="toolbar" style="padding:5px;border:0;">
</div>
<div widget="autosize">
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/hot/getlist">
<div type="indexcolumn" width="35" header="序号"></div>
<div field="id" visible="id"></div>
<div field="khid" visible="id"></div>
<div field="custname" width="60" header="客户名称" align="center"></div>
<div field="custtaxno" width="60" header="客户税号" align="center"></div>
<div field="createdate" width="60" header="创建日期" align="center"></div>
<div field="mobile" width="50" header="联系电话" align="center"></div>
<div field="enddate" width="35" header="到期日期" align="center"></div>
<div field="orgname" width="50" header="分公司" align="center"></div>
<div field="state" width="30" header="状态" renderer="statetype" align="center"></div>
<div field="mlevel" width="30" header="等级" align="center"></div>
<div field="mprice" width="40" header="金额" align="center"></div>
</div>
</div>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
function init(params) {
var grid = aos.get('grid');
grid.load(params);
}
function statetype(e) {
var row = e.row;
var value = row.state;
if (value == '0') {
return '<p style="color:red;">无效</p>';
}
if (value == '1') {
return '<p style="color:green;">有效</p>';
} else {
return value;
}
}
</script>
</html>

View File

@ -4,11 +4,7 @@ import com.aisino.aosplus.core.dao.DbHelper;
import com.aisino.aosplus.core.mvc.annotation.Action; import com.aisino.aosplus.core.mvc.annotation.Action;
import com.aisino.aosplus.core.mvc.annotation.Request; import com.aisino.aosplus.core.mvc.annotation.Request;
import com.aisino.aosplus.core.mvc.bean.Params; import com.aisino.aosplus.core.mvc.bean.Params;
import com.aisino.aosplus.core.util.Guid;
import com.aisino.aosplus.session.SessionHelper;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -24,6 +20,8 @@ public class HotWireClass {
String custtaxno=params.getString("custtaxno"); String custtaxno=params.getString("custtaxno");
String orgname=params.getString("orgname"); String orgname=params.getString("orgname");
String state=params.getString("state"); String state=params.getString("state");
String mlevel=params.getString("mlevel");
String mprice=params.getString("mprice");
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
if(custname!=null){ if(custname!=null){
sb.append(" and custname like '%" + custname + "%'"); sb.append(" and custname like '%" + custname + "%'");
@ -40,6 +38,12 @@ public class HotWireClass {
if(custtaxno!=null){ if(custtaxno!=null){
sb.append(" and custtaxno like '%" + custtaxno + "%'"); sb.append(" and custtaxno like '%" + custtaxno + "%'");
} }
if(mlevel!=null){
sb.append(" and mlevel = "+mlevel);
}
if(mprice!=null){
sb.append(" and mprice = "+mprice);
}
sb.append("order by createdate desc"); sb.append("order by createdate desc");
Map map = DbHelper.getDbService("call_center").queryPageMapList("select * from T_CALLCENTER_MEMBER where 1=1 "+sb ,params); Map map = DbHelper.getDbService("call_center").queryPageMapList("select * from T_CALLCENTER_MEMBER where 1=1 "+sb ,params);
return map; return map;
@ -82,5 +86,52 @@ public class HotWireClass {
} }
@Request.Post("updatedengji")
@Request.Get("updatedengji")
public int updatedengji(Params params){
try{
String mlevel= params.getString("mlevel");
String mobile = params.getString("mobile");
String mprice = params.getString("mprice");
String updatemlevel = params.getString("updatemlevel");
StringBuilder sb = new StringBuilder();
sb.append("update T_CALLCENTER_MEMBER set MLEVEL="+updatemlevel );
sb.append(" where 1=1");
if(mlevel!=null){
sb.append(" and mlevel = "+mlevel);
}
if(mprice!=null){
sb.append(" and mprice = "+mprice);
}
if(mobile!=null){
sb.append(" and mobile = '"+mobile+"'");
}
DbHelper.getDbService("call_center").update(sb.toString(),params);
logger.info("热线日志---------------------"+sb.toString());
return 1;
}
catch(Exception e){
return 0;
}
}
@Request.Post("update")
@Request.Get("update")
public int update(Params params){
try{
String sqlString="update T_CALLCENTER_MEMBER set khid=?, custname=?,custtaxno=?,mobile=?,enddate=? ,state=?,mlevel=?,mprice=? where id=?";
DbHelper.getDbService("call_center").update(sqlString,params.getString("khid"),params.getString("custname"),params.getString("custtaxno"),params.getString("mobile"),params.getString("enddate"),params.getString("state"),params.getString("mlevel"),params.getString("mprice"),params.getString("id"));
logger.info("热线更新日志--------------"+sqlString+"-----------"+params.toString());
return 1;
}
catch(Exception e){
return 0;
}
}
} }