master
zxf 2023-11-10 00:29:59 +08:00
parent 10505350a3
commit 071a7420f5
16 changed files with 243 additions and 14 deletions

View File

@ -28,7 +28,8 @@
<input widget="edit" name="mlevel" label="等级" maxValue="100" minValue="-9999" style="width:400px;margin-top:5px"/> <input widget="edit" name="mlevel" label="等级" maxValue="100" minValue="-9999" style="width:400px;margin-top:5px"/>
<br/> <br/>
<input widget="num" 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"/>
<br/>
<input widget="textarea" name="remark" label="更新备注" emptyText=" 请输入更新描述!" width="400px" height="100px"/>
</body> </body>
<script type="text/javascript"> <script type="text/javascript">
@ -57,6 +58,11 @@
data['state']=aos.get('state').getValue(); data['state']=aos.get('state').getValue();
data['mlevel']=aos.get('mlevel').getValue(); data['mlevel']=aos.get('mlevel').getValue();
data['mprice']=aos.get('mprice').getValue(); data['mprice']=aos.get('mprice').getValue();
data['remark']=aos.get('remark').getValue();
if(aos.get('remark').getValue()==''||aos.get('remark').getValue()==null){
aos.alert('更新备注不能为空!');
return ;
}
aos.post({ aos.post({
url:"rush/hot/update", url:"rush/hot/update",
data:data, data:data,

View File

@ -32,7 +32,7 @@
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/hot/getlist" onrowdblclick="pay()"> <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="khid"></div>
<div field="custname" width="60" header="客户名称" align="center"></div> <div field="custname" width="60" header="客户名称" align="center"></div>
<div field="custtaxno" 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="createdate" width="60" header="创建日期" align="center"></div>
@ -42,6 +42,8 @@
<div field="state" width="30" header="状态" renderer="statetype" 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="mlevel" width="30" header="等级" align="center"></div>
<div field="mprice" width="40" header="金额" align="center"></div> <div field="mprice" width="40" header="金额" align="center"></div>
<div field="caozuojilu" width="45" align="center" renderer="onRendererCZ" header="操作记录"></div>
<div field="jiaofeijilu" width="45" align="center" renderer="onRendererJF" header="缴费详情"></div>
<div field="caozuo" width="45" align="center" renderer="onRenderer" header="操作"></div> <div field="caozuo" width="45" align="center" renderer="onRenderer" header="操作"></div>
</div> </div>
</div> </div>
@ -70,7 +72,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)' onclick='rekp(\"" + e.row.id + "\")'>" + "删除(状态==>无效)"; return "<a href='javascript:void(0)' onclick='pay()'>" + "更新";
} }
return "暂无操作"; return "暂无操作";
@ -88,6 +90,40 @@
}); });
} }
function onRendererJF(e) {
return "<a href='javascript:void(0)' onclick='latestrecord(\"" + e.row.khid + "\")'>" + "缴费记录";
}
function onRendererCZ(e) {
return "<a href='javascript:void(0)' onclick='logrecord(\"" + e.row.id + "\")'>" + "日志";
}
function latestrecord(khid){
var param = {};
param['customer_id'] = khid;
aos.showWindow( 'canvas/rush/oldpaylist', param, '600px','400px','缴费记录',
function(params, rtnData){
}
);}
function logrecord(id){
var param = {};
param['id'] = id;
aos.showWindow( 'canvas/bureau/hotlog', param, '1000px','700px','缴费记录',
function(params, rtnData){
}
);}
function huifu(id) { function huifu(id) {
aos.post({ aos.post({
url: 'rush/hot/huifu', url: 'rush/hot/huifu',

View File

@ -203,9 +203,12 @@
} }
function exportExl(){ function exportExl(){
var base = document.getElementsByTagName("base")[0].href; var base = document.getElementsByTagName("base")[0].href;
window.location.href=base+"rush/bureau/exportRecoding?empno="+aos.get('empno').getValue()+"&searchbegindate="+aos.get('start_time').getFormValue()+"&searchenddate="+aos.get('end_time').getFormValue()+"&phone="+aos.get('phone').getValue()+"&calltype="+ encodeURI(encodeURI(aos.get('calltype').getValue()))+"&manyi="+ encodeURI(encodeURI(aos.get('manyidu').getValue()))+"&company="+ encodeURI(encodeURI(aos.get('company').getValue())); window.location.href=base+"rush/bureau/exportRecoding?empno="+aos.get('empno').getValue()+"&searchbegindate="+aos.get('start_time').getFormValue()+"&searchenddate="+aos.get('end_time').getFormValue()+"&phone="+aos.get('phone').getValue()+"&calltype="+ encodeURI(encodeURI(aos.get('calltype').getValue()))+"&manyi="+ encodeURI(encodeURI(aos.get('manyidu').getValue()))+"&company="+ encodeURI(encodeURI(aos.get('company').getValue()))+"&custname="+ encodeURI(encodeURI(aos.get('custname').getValue()))+"&diqu="+ encodeURI(encodeURI(aos.get('diqu').getValue()))+"&problem="+ encodeURI(encodeURI(aos.get('problem').getValue()))+"&callstate="+ encodeURI(encodeURI(aos.get('callstate').getValue()));
} }
</script> </script>

View File

@ -28,7 +28,8 @@
<input widget="edit" name="mlevel" label="等级" maxValue="100" minValue="-9999" style="width:400px;margin-top:5px"/> <input widget="edit" name="mlevel" label="等级" maxValue="100" minValue="-9999" style="width:400px;margin-top:5px"/>
<br/> <br/>
<input widget="num" 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"/>
<br/>
<input widget="textarea" name="remark" label="更新备注" emptyText=" 请输入更新描述!" width="400px" height="100px"/>
</body> </body>
<script type="text/javascript"> <script type="text/javascript">
@ -57,6 +58,11 @@
data['state']=aos.get('state').getValue(); data['state']=aos.get('state').getValue();
data['mlevel']=aos.get('mlevel').getValue(); data['mlevel']=aos.get('mlevel').getValue();
data['mprice']=aos.get('mprice').getValue(); data['mprice']=aos.get('mprice').getValue();
data['remark']=aos.get('remark').getValue();
if(aos.get('remark').getValue()==''||aos.get('remark').getValue()==null){
aos.alert('更新备注不能为空!');
return ;
}
aos.post({ aos.post({
url:"rush/hot/update", url:"rush/hot/update",
data:data, data:data,

View File

@ -32,7 +32,7 @@
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/hot/getlist" onrowdblclick="pay()"> <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="khid"></div>
<div field="custname" width="60" header="客户名称" align="center"></div> <div field="custname" width="60" header="客户名称" align="center"></div>
<div field="custtaxno" 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="createdate" width="60" header="创建日期" align="center"></div>
@ -42,6 +42,8 @@
<div field="state" width="30" header="状态" renderer="statetype" 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="mlevel" width="30" header="等级" align="center"></div>
<div field="mprice" width="40" header="金额" align="center"></div> <div field="mprice" width="40" header="金额" align="center"></div>
<div field="caozuojilu" width="45" align="center" renderer="onRendererCZ" header="操作记录"></div>
<div field="jiaofeijilu" width="45" align="center" renderer="onRendererJF" header="缴费详情"></div>
<div field="caozuo" width="45" align="center" renderer="onRenderer" header="操作"></div> <div field="caozuo" width="45" align="center" renderer="onRenderer" header="操作"></div>
</div> </div>
</div> </div>
@ -70,7 +72,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)' onclick='rekp(\"" + e.row.id + "\")'>" + "删除(状态==>无效)"; return "<a href='javascript:void(0)' onclick='pay()'>" + "更新";
} }
return "暂无操作"; return "暂无操作";
@ -88,6 +90,40 @@
}); });
} }
function onRendererJF(e) {
return "<a href='javascript:void(0)' onclick='latestrecord(\"" + e.row.khid + "\")'>" + "缴费记录";
}
function onRendererCZ(e) {
return "<a href='javascript:void(0)' onclick='logrecord(\"" + e.row.id + "\")'>" + "日志";
}
function latestrecord(khid){
var param = {};
param['customer_id'] = khid;
aos.showWindow( 'canvas/rush/oldpaylist', param, '600px','400px','缴费记录',
function(params, rtnData){
}
);}
function logrecord(id){
var param = {};
param['id'] = id;
aos.showWindow( 'canvas/bureau/hotlog', param, '1000px','700px','缴费记录',
function(params, rtnData){
}
);}
function huifu(id) { function huifu(id) {
aos.post({ aos.post({
url: 'rush/hot/huifu', url: 'rush/hot/huifu',

View File

@ -203,9 +203,12 @@
} }
function exportExl(){ function exportExl(){
var base = document.getElementsByTagName("base")[0].href; var base = document.getElementsByTagName("base")[0].href;
window.location.href=base+"rush/bureau/exportRecoding?empno="+aos.get('empno').getValue()+"&searchbegindate="+aos.get('start_time').getFormValue()+"&searchenddate="+aos.get('end_time').getFormValue()+"&phone="+aos.get('phone').getValue()+"&calltype="+ encodeURI(encodeURI(aos.get('calltype').getValue()))+"&manyi="+ encodeURI(encodeURI(aos.get('manyidu').getValue()))+"&company="+ encodeURI(encodeURI(aos.get('company').getValue())); window.location.href=base+"rush/bureau/exportRecoding?empno="+aos.get('empno').getValue()+"&searchbegindate="+aos.get('start_time').getFormValue()+"&searchenddate="+aos.get('end_time').getFormValue()+"&phone="+aos.get('phone').getValue()+"&calltype="+ encodeURI(encodeURI(aos.get('calltype').getValue()))+"&manyi="+ encodeURI(encodeURI(aos.get('manyidu').getValue()))+"&company="+ encodeURI(encodeURI(aos.get('company').getValue()))+"&custname="+ encodeURI(encodeURI(aos.get('custname').getValue()))+"&diqu="+ encodeURI(encodeURI(aos.get('diqu').getValue()))+"&problem="+ encodeURI(encodeURI(aos.get('problem').getValue()))+"&callstate="+ encodeURI(encodeURI(aos.get('callstate').getValue()));
} }
</script> </script>

View File

@ -1,3 +1,3 @@
#save ini #save ini
#Mon Sep 25 23:35:49 CST 2023 #Wed Nov 08 00:36:33 CST 2023
deploystamp=1612237236000 deploystamp=1612237236000

View File

@ -0,0 +1,31 @@
<html login="false" auth="false">
<head>
<meta charset="UTF-8">
<title>催缴记录</title>
</head>
<body>
<div widget="autosize">
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/hot/gethotloglist" multiSelect="true" >
<div type="indexcolumn" width="5" header="序号"></div>
<div field="create_name" width="20" align="center" header="操作人"></div>
<div field="create_time" width="13" align="center" header="更新日期"></div>
<div field="the_level" width="10" header="更新前等级"></div>
<div field="now_level" width="10" align="center" header="更改后等级"></div>
<div field="remark" width="80" align="center" header="描述"></div>
</div>
</div>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
function init(param){
var grid = aos.get('grid');
grid.load(param);
}
</script>
</html>

View File

@ -28,7 +28,8 @@
<input widget="edit" name="mlevel" label="等级" maxValue="100" minValue="-9999" style="width:400px;margin-top:5px"/> <input widget="edit" name="mlevel" label="等级" maxValue="100" minValue="-9999" style="width:400px;margin-top:5px"/>
<br/> <br/>
<input widget="num" 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"/>
<br/>
<input widget="textarea" name="remark" label="更新备注" emptyText=" 请输入更新描述!" width="400px" height="100px"/>
</body> </body>
<script type="text/javascript"> <script type="text/javascript">
@ -57,6 +58,11 @@
data['state']=aos.get('state').getValue(); data['state']=aos.get('state').getValue();
data['mlevel']=aos.get('mlevel').getValue(); data['mlevel']=aos.get('mlevel').getValue();
data['mprice']=aos.get('mprice').getValue(); data['mprice']=aos.get('mprice').getValue();
data['remark']=aos.get('remark').getValue();
if(aos.get('remark').getValue()==''||aos.get('remark').getValue()==null){
aos.alert('更新备注不能为空!');
return ;
}
aos.post({ aos.post({
url:"rush/hot/update", url:"rush/hot/update",
data:data, data:data,

View File

@ -32,7 +32,7 @@
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/hot/getlist" onrowdblclick="pay()"> <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="khid"></div>
<div field="custname" width="60" header="客户名称" align="center"></div> <div field="custname" width="60" header="客户名称" align="center"></div>
<div field="custtaxno" 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="createdate" width="60" header="创建日期" align="center"></div>
@ -42,6 +42,8 @@
<div field="state" width="30" header="状态" renderer="statetype" 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="mlevel" width="30" header="等级" align="center"></div>
<div field="mprice" width="40" header="金额" align="center"></div> <div field="mprice" width="40" header="金额" align="center"></div>
<div field="caozuojilu" width="45" align="center" renderer="onRendererCZ" header="操作记录"></div>
<div field="jiaofeijilu" width="45" align="center" renderer="onRendererJF" header="缴费详情"></div>
<div field="caozuo" width="45" align="center" renderer="onRenderer" header="操作"></div> <div field="caozuo" width="45" align="center" renderer="onRenderer" header="操作"></div>
</div> </div>
</div> </div>
@ -70,7 +72,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)' onclick='rekp(\"" + e.row.id + "\")'>" + "删除(状态==>无效)"; return "<a href='javascript:void(0)' onclick='pay()'>" + "更新";
} }
return "暂无操作"; return "暂无操作";
@ -88,6 +90,40 @@
}); });
} }
function onRendererJF(e) {
return "<a href='javascript:void(0)' onclick='latestrecord(\"" + e.row.khid + "\")'>" + "缴费记录";
}
function onRendererCZ(e) {
return "<a href='javascript:void(0)' onclick='logrecord(\"" + e.row.id + "\")'>" + "日志";
}
function latestrecord(khid){
var param = {};
param['customer_id'] = khid;
aos.showWindow( 'canvas/rush/oldpaylist', param, '600px','400px','缴费记录',
function(params, rtnData){
}
);}
function logrecord(id){
var param = {};
param['id'] = id;
aos.showWindow( 'canvas/bureau/hotlog', param, '1000px','700px','缴费记录',
function(params, rtnData){
}
);}
function huifu(id) { function huifu(id) {
aos.post({ aos.post({
url: 'rush/hot/huifu', url: 'rush/hot/huifu',

View File

@ -0,0 +1,20 @@
package rush;
import com.aisino.aosplus.core.mvc.annotation.Action;
import com.aisino.aosplus.core.mvc.annotation.Request;
import com.aisino.aosplus.core.mvc.bean.Params;
import org.apache.log4j.Logger;
import java.util.Map;
@Action("rush/bureaureport")
public class BureauReportAction {
private static Logger logger = Logger.getLogger(BureauAction.class);
/*
@Request.Post("getlist")
public Map getlist(Params params) {
//展示报表
}*/
}

View File

@ -4,7 +4,12 @@ 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.text.SimpleDateFormat;
import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -157,17 +162,58 @@ sb.append("update T_CALLCENTER_MEMBER set MLEVEL="+updatemlevel );
@Request.Post("update") @Request.Post("update")
@Request.Get("update") @Request.Get("update")
public int update(Params params){ public int update(Params params){
int r = 0;
SimpleDateFormat sdf= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date create_Date = new Date();
String create_date=sdf.format(create_Date); //鍒涘缓鏃堕棿
String create_name = SessionHelper.getCurrentUserRealName();
Map<String,Object> hotone= DbHelper.getDbService("call_center").queryMap("select * from T_CALLCENTER_MEMBER where id=?",params.getString("id"));
try{ try{
String sqlString="update T_CALLCENTER_MEMBER set khid=?, custname=?,custtaxno=?,mobile=?,enddate=? ,state=?,mlevel=?,mprice=? where id=?"; 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")); 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()); logger.info("热线更新日志--------------"+sqlString+"-----------"+params.toString());
return 1; r=1;
return r;
} }
catch(Exception e){ catch(Exception e){
return 0; return r;
} }
finally {
if(r==1){
Map<String,Object> nowtone= DbHelper.getDbService("call_center").queryMap("select * from T_CALLCENTER_MEMBER where id=?",params.getString("id"));
String id= Guid.g();
String remark=create_name+"与"+create_date+" 将信息"+hotone.toString() +"修改为"+ nowtone.toString();
Params paramslog= new Params();
paramslog.put("id",id);
paramslog.put("create_time",create_date);
paramslog.put("create_name",create_name);
paramslog.put("the_level",hotone.get("mlevel").toString());
paramslog.put("now_level",params.getString("mlevel"));
paramslog.put("obj_id",params.getString("id"));
paramslog.put("remark",params.getString("remark"));
paramslog.put("info",remark);
String sqlString="INSERT INTO hot_log(ID, CREATE_TIME,CREATE_NAME,THE_LEVEL,NOW_LEVEL,OBJ_ID,REMARK,INFO) "+
" VALUES ({id},{create_time},{create_name},{the_level},{now_level},{obj_id},{remark},{info})";
DbHelper.getDbService().update(sqlString,paramslog);
}
}
}
@Request.Post("gethotloglist")
public Map gethotloglist(Params params) {
Map map = DbHelper.getDbService().queryPageMapList("select * from hot_log where obj_id='"+params.getString("id")+"' order by create_time desc ", params);
return map;
} }
} }