Commit 19738905 by 吴善钰

网侦预警业务调整

parent 7b233cfe
...@@ -6,58 +6,60 @@ import java.util.Date; ...@@ -6,58 +6,60 @@ import java.util.Date;
* Created by wangyang on 2019/1/15. * Created by wangyang on 2019/1/15.
*/ */
public class TbStDxzp extends BaseModel { public class TbStDxzp extends BaseModel {
//信息主键编号
private String zjbh; private String zjbh;//信息主键编号
//诈骗方微信id
private String zpfWxid; private String zpfWxid;//诈骗方微信id
//诈骗方qq
private String zpfQq; private String zpfQq;//诈骗方qq
//诈骗方手机号码
private String zpfSjhm; private String zpfSjhm;//诈骗方手机号码
//被骗方微信
private String bpfWxid; private String bpfWxid;//被骗方微信
//被骗方qq private String bpfQq;//被骗方qq
private String bpfQq;
//被骗方手机号码 private String bpfSjhm;//被骗方手机号码
private String bpfSjhm;
//预警强度 private String yjqd;//预警强度
private String yjqd;
private Date rksj;//入库时间
//入库时间
private Date rksj; private String xxczrXm;//信息操作人姓名
//信息操作人姓名
private String xxczrXm; private String xxczrJh;// 警号
// 警号
private String xxczrJh; private String xxczrDw;//单位
//单位
private String xxczrDw; private String czzt;// 处置状态:是否被处置 0:已处置 1:处置
// 处置状态:是否被处置 0:已处置 1:处置
private String czzt; private String hcjg;//核查结果
private String hcjg; private String bp_flag;//是否被骗
private String bp_flag; private String hcqk;//核查情况
private String hcqk; private String jssj;//接收时间
//接收时间 private String jqzt_flag;//警情是否有效
private String jssj;
private String fkje;//付款金额
//警情是否有效
private String jqzt_flag; private String zplx;//诈骗类型
//付款金额 private String yyjcs;//已预警次数
private String fkje;
private String zhhdd;//最后活动地
//诈骗类型
private String zplx; private String sprSfcr;//受骗人是否被骗
//已预警次数 private String sprSffk;//受骗人是否付款
private String yyjcs;
private String sprSfba;//受骗人是否报案
//最后活动地
private String zhhdd; private String sfgzrhjcpj;//是否告知如何揭穿骗局
private String sfxyzcyj;//是否需要再次预警
//分页查询用 //分页查询用
//查询分页开始结束 //查询分页开始结束
...@@ -259,4 +261,44 @@ public class TbStDxzp extends BaseModel { ...@@ -259,4 +261,44 @@ public class TbStDxzp extends BaseModel {
public void setJssj(String jssj) { public void setJssj(String jssj) {
this.jssj = jssj; this.jssj = jssj;
} }
public String getSprSfcr() {
return sprSfcr;
}
public void setSprSfcr(String sprSfcr) {
this.sprSfcr = sprSfcr;
}
public String getSprSffk() {
return sprSffk;
}
public void setSprSffk(String sprSffk) {
this.sprSffk = sprSffk;
}
public String getSprSfba() {
return sprSfba;
}
public void setSprSfba(String sprSfba) {
this.sprSfba = sprSfba;
}
public String getSfgzrhjcpj() {
return sfgzrhjcpj;
}
public void setSfgzrhjcpj(String sfgzrhjcpj) {
this.sfgzrhjcpj = sfgzrhjcpj;
}
public String getSfxyzcyj() {
return sfxyzcyj;
}
public void setSfxyzcyj(String sfxyzcyj) {
this.sfxyzcyj = sfxyzcyj;
}
} }
...@@ -2,6 +2,8 @@ package com.founder.wzyj.controller; ...@@ -2,6 +2,8 @@ package com.founder.wzyj.controller;
import com.founder.model.EasyUIPage; import com.founder.model.EasyUIPage;
import com.founder.model.TbStDxzp; import com.founder.model.TbStDxzp;
import com.founder.model.User;
import com.founder.util.ExportExcelUtil;
import com.founder.wzyj.service.IWzyjService; import com.founder.wzyj.service.IWzyjService;
import net.sf.json.JSONObject; import net.sf.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -11,6 +13,8 @@ import org.springframework.web.bind.annotation.RequestParam; ...@@ -11,6 +13,8 @@ import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List; import java.util.List;
/** /**
...@@ -93,7 +97,14 @@ public class WzyjController { ...@@ -93,7 +97,14 @@ public class WzyjController {
*/ */
@RequestMapping("/savewzyj") @RequestMapping("/savewzyj")
@ResponseBody @ResponseBody
public String savewzyj(TbStDxzp tbStDxzp){ public String savewzyj(TbStDxzp tbStDxzp, HttpServletRequest request){
//获取操作人信息
User user = (User) request.getSession().getAttribute("user");
if (null != user){
tbStDxzp.setXxczryXm(user.getTrueName());
tbStDxzp.setXxczrDw(user.getUnitcode());
tbStDxzp.setXxczrJh(user.getPolicemanid());
}
String message = "fail"; String message = "fail";
//预警处置 //预警处置
boolean result = wzyjService.savewzyj(tbStDxzp); boolean result = wzyjService.savewzyj(tbStDxzp);
...@@ -107,4 +118,25 @@ public class WzyjController { ...@@ -107,4 +118,25 @@ public class WzyjController {
return message; return message;
} }
/**
* 根据查询条件导出网安预警excel数据
* @param response
* @param tbStDxzp 网安预警对象
* @throws Exception
* todo 目前没有引用,还没有想好那些字段适合导出,其他功能完善后处理
*/
@RequestMapping("/exportWzyjExcel")
@ResponseBody
public void exportWzyjExcel(HttpServletResponse response,TbStDxzp tbStDxzp)throws Exception{
//查询网综预警数据
List<TbStDxzp> list = wzyjService.toQueryWzyjList(tbStDxzp);
//创建对象
ExportExcelUtil<TbStDxzp> exportExcelUtil = new ExportExcelUtil<>();
//设置表格表头
String[] headersName = {"标识号","标识号类型","类型","号码","姓名","性别","出生日期"};
//添加对应的属性
String[] headersField = {"objectValue","objectTypeName","zjlx","zjhm","name","sex","birthday"};
//获取并下载相应的表格
exportExcelUtil.exportExcel("网综预警统计表", headersName, headersField, list, response);
}
} }
#开发环境使用dev,正式环境使用prod #开发环境使用dev,正式环境使用pro
spring.profiles.active=pro spring.profiles.active=pro
# 页面默认前缀目录 # 页面默认前缀目录
spring.mvc.view.prefix=/WEB-INF/jsp/ spring.mvc.view.prefix=/WEB-INF/jsp/
......
...@@ -20,20 +20,15 @@ ...@@ -20,20 +20,15 @@
FKJE fkje, FKJE fkje,
YYJCS yyjcs, YYJCS yyjcs,
ZHHDD zhhdd, ZHHDD zhhdd,
SPR_SFCR sprSfcr,
SPR_SFFK sprSffk,
SPR_SFBA sprSfba,
SFGZRHJCPJ sfgzrhjcpj,
SFXYZCYJ sfxyzcyj,
to_char(JSSJ, 'yyyy-MM-dd') as jssj to_char(JSSJ, 'yyyy-MM-dd') as jssj
from TB_ST_DXZP where XXSC_PDBZ = '0' from TB_ST_DXZP where XXSC_PDBZ = '0'
<if test="czzt!=null and czzt!=''">and CZZT=#{czzt}</if> <include refid="wzyj-public-where"/>
<if test="zpfWxid!=null and zpfWxid!=''">and ZPF_WXID=#{zpfWxid}</if> ORDER BY gxsj desc nulls last,JSSJ DESC,YJQD DESC,RKSJ DESC) t
<if test="zpfQq!=null and zpfQq!=''">and ZPF_QQ=#{zpfQq}</if>
<if test="zpfSjhm!=null and zpfSjhm!=''">and ZPF_SJHM=#{zpfSjhm}</if>
<if test="bpfWxid!=null and bpfWxid!=''">and BPF_WXID=#{bpfWxid}</if>
<if test="bpfQq!=null and bpfQq!=''">and BPF_QQ=#{bpfQq}</if>
<if test="bpfSjhm!=null and bpfSjhm!=''">and BPF_SJHM=#{bpfSjhm}</if>
<if test="yjqd!=null and yjqd!=''">and YJQD=#{yjqd}</if>
<if test="zplx!=null and zplx!=''">and ZPLX=#{zplx}</if>
<if test="fkje!=null and fkje!=''">and FKJE=#{fkje}</if>
<if test="zhhdd!=null and zhhdd!=''">and zhhdd like '%' || #{zhhdd} || '%'</if>
ORDER BY JSSJ DESC,YJQD DESC,RKSJ DESC) t
WHERE ROWNUM <![CDATA[<=]]> #{end} WHERE ROWNUM <![CDATA[<=]]> #{end}
) WHERE RN > #{begin} ) WHERE RN > #{begin}
</select> </select>
...@@ -41,17 +36,7 @@ ...@@ -41,17 +36,7 @@
<select id="getWzyjListCount" parameterType="com.founder.model.TbStDxzp" resultType="java.lang.Integer"> <select id="getWzyjListCount" parameterType="com.founder.model.TbStDxzp" resultType="java.lang.Integer">
select count(*) select count(*)
from TB_ST_DXZP where XXSC_PDBZ = '0' from TB_ST_DXZP where XXSC_PDBZ = '0'
<if test="czzt!=null and czzt!=''">and CZZT=#{czzt}</if> <include refid="wzyj-public-where"/>
<if test="zpfWxid!=null and zpfWxid!=''">and ZPF_WXID=#{zpfWxid}</if>
<if test="zpfQq!=null and zpfQq!=''">and ZPF_QQ=#{zpfQq}</if>
<if test="zpfSjhm!=null and zpfSjhm!=''">and ZPF_SJHM=#{zpfSjhm}</if>
<if test="bpfWxid!=null and bpfWxid!=''">and BPF_WXID=#{bpfWxid}</if>
<if test="bpfQq!=null and bpfQq!=''">and BPF_QQ=#{bpfQq}</if>
<if test="bpfSjhm!=null and bpfSjhm!=''">and BPF_SJHM=#{bpfSjhm}</if>
<if test="yjqd!=null and yjqd!=''">and YJQD=#{yjqd}</if>
<if test="zplx!=null and zplx!=''">and ZPLX=#{zplx}</if>
<if test="fkje!=null and fkje!=''">and FKJE=#{fkje}</if>
<if test="zhhdd!=null and zhhdd!=''">and zhhdd like '%' || #{zhhdd} || '%'</if>
</select> </select>
<select id="getWzyjXxById" parameterType="java.lang.String" resultType="com.founder.model.TbStDxzp"> <select id="getWzyjXxById" parameterType="java.lang.String" resultType="com.founder.model.TbStDxzp">
...@@ -72,6 +57,11 @@ ...@@ -72,6 +57,11 @@
FKJE fkje, FKJE fkje,
YYJCS yyjcs, YYJCS yyjcs,
ZHHDD zhhdd, ZHHDD zhhdd,
SPR_SFCR sprSfcr,
SPR_SFFK sprSffk,
SPR_SFBA sprSfba,
SFGZRHJCPJ sfgzrhjcpj,
SFXYZCYJ sfxyzcyj,
XXCZR_XM xxczrXm, XXCZR_XM xxczrXm,
XXCZR_JH xxczrJh, XXCZR_JH xxczrJh,
XXCZR_DW xxczrDw XXCZR_DW xxczrDw
...@@ -80,32 +70,77 @@ ...@@ -80,32 +70,77 @@
</select> </select>
<update id="savewzyj" parameterType="com.founder.model.TbStDxzp" > <update id="savewzyj" parameterType="com.founder.model.TbStDxzp" >
UPDATE TB_ST_DXZP SET UPDATE TB_ST_DXZP SET
<if test="jqzt_flag != null and jqzt_flag=='1'.toString()"> <if test="jqzt_flag != null and jqzt_flag!='' and jqzt_flag=='是'.toString()">
JQYX_FLAG = #{jqzt_flag}, JQYX_FLAG = #{jqzt_flag, jdbcType=VARCHAR},
<if test="hcjg != null "> <if test="hcjg != null and hcjg!=''">
HCJG = #{hcjg}, HCJG = #{hcjg, jdbcType=VARCHAR},
</if>
<if test="bp_flag != null and hcjg!=''">
BP_FLAG = #{bp_flag, jdbcType=VARCHAR},
</if> </if>
<if test="bp_flag != null "> <if test="hcqk != null and hcjg!=''">
BP_FLAG = #{bp_flag}, HCQK = #{hcqk, jdbcType=VARCHAR},
</if> </if>
<if test="hcqk != null "> <if test="sprSfcr != null and sprSfcr!=''">
HCQK = #{hcqk}, SPR_SFCR = #{sprSfcr, jdbcType=VARCHAR},
</if>
<if test="sprSffk != null and sprSffk!=''">
SPR_SFFK = #{sprSffk, jdbcType=VARCHAR},
</if>
<if test="sprSfba != null and sprSfba!=''">
SPR_SFBA = #{sprSfba, jdbcType=VARCHAR},
</if>
<if test="sfgzrhjcpj != null and sfgzrhjcpj!=''">
SFGZRHJCPJ = #{sfgzrhjcpj, jdbcType=VARCHAR},
</if>
<if test="sfxyzcyj != null and sfxyzcyj!=''">
SFXYZCYJ = #{sfxyzcyj, jdbcType=VARCHAR},
</if> </if>
</if> </if>
<if test="jqzt_flag != null and jqzt_flag=='0'.toString()"> <if test="jqzt_flag != null and jqzt_flag!=''and jqzt_flag!='是'.toString()">
JQYX_FLAG = #{jqzt_flag}, JQYX_FLAG = #{jqzt_flag, jdbcType=VARCHAR},
HCJG = null, HCJG = null,
BP_FLAG = null, BP_FLAG = null,
HCQK = null, HCQK = null,
SPR_SFCR = null,
SPR_SFFK = null,
SPR_SFBA = null,
SFGZRHJCPJ = null,
SFXYZCYJ = null,
</if>
/*更新操作人相关信息 wushanyu*/
<if test="xxczrXm!=null and xxczrXm!=''">
XXCZR_XM = #{xxczrXm, jdbcType=VARCHAR},
</if>
<if test="xxczrJh!=null and xxczrJh!=''">
XXCZR_JH = #{xxczrJh, jdbcType=VARCHAR},
</if>
<if test="xxczrDw!=null and xxczrDw!=''">
XXCZR_DW = #{xxczrDw, jdbcType=VARCHAR},
</if> </if>
gxsj=sysdate gxsj=sysdate
where xxsc_pdbz='0' and ID = #{id} where xxsc_pdbz='0' and ID = #{id, jdbcType=VARCHAR}
</update> </update>
<update id="updateCzzt" parameterType="java.lang.String" > <update id="updateCzzt" parameterType="java.lang.String" >
UPDATE TB_ST_DXZP SET UPDATE TB_ST_DXZP SET
CZZT = '1', CZZT = '1',
gxsj=sysdate gxsj=sysdate
where xxsc_pdbz='0' and ID = #{id} where xxsc_pdbz='0' and ID = #{id, jdbcType=VARCHAR}
</update> </update>
<!-- 查询公共查询条件 -->
<sql id="wzyj-public-where">
<if test="czzt!=null and czzt!=''">and CZZT=#{czzt}</if>
<if test="zpfWxid!=null and zpfWxid!=''">and ZPF_WXID=#{zpfWxid}</if>
<if test="zpfQq!=null and zpfQq!=''">and ZPF_QQ=#{zpfQq}</if>
<if test="zpfSjhm!=null and zpfSjhm!=''">and ZPF_SJHM like '%' || #{zpfSjhm} || '%'</if>
<if test="bpfWxid!=null and bpfWxid!=''">and BPF_WXID=#{bpfWxid}</if>
<if test="bpfQq!=null and bpfQq!=''">and BPF_QQ=#{bpfQq}</if>
<if test="bpfSjhm!=null and bpfSjhm!=''">and BPF_SJHM like '%' || #{bpfSjhm} || '%'</if>
<if test="yjqd!=null and yjqd!=''">and YJQD=#{yjqd}</if>
<if test="zplx!=null and zplx!=''">and ZPLX like '%' || #{zplx} || '%'</if>
<if test="fkje!=null and fkje!=''">and FKJE=#{fkje}</if>
<if test="zhhdd!=null and zhhdd!=''">and zhhdd like '%' || #{zhhdd} || '%'</if>
</sql>
</mapper> </mapper>
\ No newline at end of file
...@@ -35,7 +35,7 @@ function yjcz(id) { ...@@ -35,7 +35,7 @@ function yjcz(id) {
scrollbar: false, scrollbar: false,
shadeClose: true, //点击遮罩关闭层 shadeClose: true, //点击遮罩关闭层
skin: '', skin: '',
area : ['700px' , '700px'], area : ['700px' , '550px'],
content: url, content: url,
success: function(layero, index){ success: function(layero, index){
var t=layer.getChildFrame('body', index).find('.toindex'); var t=layer.getChildFrame('body', index).find('.toindex');
...@@ -45,7 +45,6 @@ function yjcz(id) { ...@@ -45,7 +45,6 @@ function yjcz(id) {
$('#wzyjtable').datagrid("reload",serializeObject($("form[name='wzyjForm']"))); $('#wzyjtable').datagrid("reload",serializeObject($("form[name='wzyjForm']")));
} }
}); });
} }
function getCz(row) { function getCz(row) {
var str = "" var str = ""
...@@ -60,7 +59,7 @@ function doQuery() { ...@@ -60,7 +59,7 @@ function doQuery() {
if (zpfSjhm != null && zpfSjhm != '') { if (zpfSjhm != null && zpfSjhm != '') {
if (!(/^1[34578]\d{9}$/.test(zpfSjhm))) { if (!(/^1[34578]\d{9}$/.test(zpfSjhm))) {
jAlert("诈骗方手机号码有误,请重填"); jAlert("诈骗方手机号码有误,请重填");
$("#zpfSjhm").textbox('setValue', "") $("#zpfSjhm").textbox('setValue', "");
return false; return false;
} }
} }
...@@ -73,6 +72,7 @@ function doQuery() { ...@@ -73,6 +72,7 @@ function doQuery() {
return false; return false;
} }
} }
//加载表格
$('#wzyjtable').datagrid({ $('#wzyjtable').datagrid({
url: "/getWzyjList", url: "/getWzyjList",
columns: [table_title], columns: [table_title],
......
...@@ -43,6 +43,13 @@ ...@@ -43,6 +43,13 @@
width: 100% !important; width: 100% !important;
margin: -20px auto 0 auto !important; margin: -20px auto 0 auto !important;
} }
.message{
width: 184px;
margin-top: 3px;
}
input::-webkit-input-placeholder {
color: red;
}
</style> </style>
</head> </head>
<body> <body>
...@@ -126,41 +133,115 @@ ...@@ -126,41 +133,115 @@
<tr> <tr>
<td class="ar" width="13.3%">警情是否有效:</td> <td class="ar" width="13.3%">警情是否有效:</td>
<td width="20%"> <td width="20%">
<input type="radio" name="jqzt_flag" id="jqyx_y" onclick="jqwx()" value="0" checked="checked"><label for="jqyx_y" style='cursor:pointer;background:none;'>&nbsp;&nbsp;&nbsp;</label></input> <select id="jqzt_flag" class="easyui-combobox" name="jqzt_flag" style="height:26px;width:184px;" data-options="panelHeight:'auto'">
<input type="radio" name="jqzt_flag" id="jqyx_n" onclick="jqyx()" value="1" ><label for="jqyx_n" style='cursor:pointer;background:none;'></label></input> <option value=""></option>
<option value="是"></option>
<option value="受骗人手机错误">受骗人手机错误</option>
<option value="受骗人地域错误">受骗人地域错误</option>
<option value="其他">其他</option>
</select>
<input id="jqyxQtStr" class="message" style="display: none" placeholder="请填写其他情况的相关描述"/>
<%--<input type="radio" name="jqzt_flag" id="jqyx_y" onclick="jqwx()" value="0" checked="checked"><label for="jqyx_y" style='cursor:pointer;background:none;'>&nbsp;&nbsp;&nbsp;</label></input>
<input type="radio" name="jqzt_flag" id="jqyx_n" onclick="jqyx()" value="1" ><label for="jqyx_n" style='cursor:pointer;background:none;'></label></input>--%>
</td> </td>
</tr> </tr>
</table> </table>
<div class="yhkzf total_g" id="yhkzf" style="visibility: visible;width: calc(100% - 10px);margin: 0 5px;"> <div class="yhkzf total_g" id="yhkzf" style="visibility:collapse;display:inline;width: calc(100% - 10px);margin: 0 5px;">
<table class="table-cx-th disanfang"> <table class="table-cx-th disanfang">
<tr> <tr>
<td style="text-align:right; width:16%;"><i class="fa fa-asterisk" <td style="text-align:right; width:29%;">
style="color:red; margin-right:4px;"></i><span <i class="fa fa-asterisk" style="color:red; margin-right:4px;"></i>
class="zfzhssyh">核查结果:</span></td> <span class="zfzhssyh">核查结果:</span>
<td width="34%"> </td>
<span class="textbox" style="height:26px;width:184px;"> <td style="text-align:left; width:23%;">
<input style="height:26px;width:184px;" type="text" value="${tbStDxzp.hcjg}" <select id="hcjg" class="easyui-combobox" name="hcjg" style="height:26px;width:184px;" data-options="panelHeight:'auto'">
id="hcjg" name="hcjg" class="val easyui-combotree" <option value=""></option>
data-options="panelHeight:'auto',url: '/queryTypeCode?type=CODE_HCJG',method:'get',fit:true,textField : 'text', valueField : 'id'"/> <option value="当面劝阻">当面劝阻</option>
</span> <option value="短信劝阻">短信劝阻</option>
<option value="电话劝阻">电话劝阻</option>
<option value="其他">其他</option>
</select>
<input id="hcjgQtStr" class="message" style="display: none" placeholder="请填写其他情况的相关描述"/>
</td> </td>
<td style="text-align:right; width:16%;"><i class="fa fa-asterisk" <td style="text-align:right; width:20%;">
style="color:red; margin-right:4px;"></i><span <i class="fa fa-asterisk" style="color:red; margin-right:4px;"></i>
class="zfzhssyh">是否被骗:</span></td> <span class="zfzhssyh">是否被骗:</span>
<td style="text-align:left; width:34%;"> </td>
<td style="text-align:left; width:28%;">
<select id="bp_flag" class="easyui-combobox" name="bp_flag" style="height:26px;width:184px;" data-options="panelHeight:'auto'"> <select id="bp_flag" class="easyui-combobox" name="bp_flag" style="height:26px;width:184px;" data-options="panelHeight:'auto'">
<option value="">--请选择--</option> <option value=""></option>
<option value="0">未被骗</option> <option value="0">未被骗</option>
<option value="1">已被骗</option> <option value="1">已被骗</option>
</select> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td style="text-align:right; width:14%;"><i class="fa fa-asterisk" <td style="text-align:right; width:18%;">
style="color:red; margin-right:4px;"></i>核查情况:</td> <span class="zfzhssyh">受骗人是否承认:</span>
</td>
<td width="23%">
<select id="sprSfcr" class="easyui-combobox" name="sprSfcr" style="height:26px;width:184px;" data-options="panelHeight:'auto'">
<option value=""></option>
<option value="承认">承认</option>
<option value="否认">否认</option>
<option value="账号非本人使用">账号非本人使用</option>
<option value="其他">其他</option>
</select>
<input id="sfcrQtStr" class="message" style="display: none" placeholder="请填写其他情况的相关描述"/>
</td>
<td style="text-align:right; width:18%;">
<span class="zfzhssyh">受骗人是否付款:</span>
</td>
<td style="text-align:left; width:32%;">
<span class="textbox" style="height:26px;width:184px;">
<input style="height:26px;width:184px;" type="text" value="${tbStDxzp.sprSffk}"
id="sprSffk" name="sprSffk" class="val easyui-combotree"
data-options="panelHeight:'auto',url: '/queryTypeCode?type=CODE_IF',method:'get',fit:true,textField : 'text', valueField : 'id'"/>
</span>
</td>
</tr>
<tr>
<td style="text-align:right; width:20%;">
<span class="zfzhssyh">是否告知如何揭穿骗局:</span>
</td>
<td width="32%">
<span class="textbox" style="height:26px;width:184px;">
<input style="height:26px;width:184px;" type="text" value="${tbStDxzp.sfgzrhjcpj}"
id="sfgzrhjcpj" name="sfgzrhjcpj" class="val easyui-combotree"
data-options="panelHeight:'auto',url: '/queryTypeCode?type=CODE_IF',method:'get',fit:true,textField : 'text', valueField : 'id'"/>
</span>
</td>
<td style="text-align:right; width:18%;">
<span class="zfzhssyh">受骗人是否报案:</span>
</td>
<td width="32%">
<span class="textbox" style="height:26px;width:184px;">
<input style="height:26px;width:184px;" type="text" value="${tbStDxzp.sprSfba}"
id="sprSfba" name="sprSfba" class="val easyui-combotree"
data-options="panelHeight:'auto',url: '/queryTypeCode?type=CODE_IF',method:'get',fit:true,textField : 'text', valueField : 'id'"/>
</span>
</td>
</tr>
<tr>
<td style="text-align:right; width:18%;">
<i class="fa fa-asterisk" style="color:red; margin-right:4px;"></i>
<span class="zfzhssyh">是否需要再次预警:</span>
</td>
<td style="text-align:left; width:32%;" colspan="3">
<span class="textbox" style="height:26px;width:184px;">
<input style="height:26px;width:184px;" type="text" value="${tbStDxzp.sfxyzcyj}"
id="sfxyzcyj" name="sfxyzcyj" class="val easyui-combotree"
data-options="panelHeight:'auto',url: '/queryTypeCode?type=CODE_IF',method:'get',fit:true,textField : 'text', valueField : 'id'"/>
</span>
</td>
</tr>
<tr>
<td style="text-align:right; width:14%;">
<i class="fa fa-asterisk" style="color:red; margin-right:4px;"></i>核查情况:
</td>
<td style="text-align:left;" colspan="3"> <td style="text-align:left;" colspan="3">
<textarea maxlength="1000" rows="2" class="text_ch" name="hcqk" id="hcqk" <textarea maxlength="1000" rows="2" class="text_ch" name="hcqk" id="hcqk" style="height: 60px;width:100%;resize:none;">${tbStDxzp.hcqk}</textarea>
style="height: 100px;width:100%;resize:none;">${tbStDxzp.hcqk}</textarea></td> </td>
</tr> </tr>
</table> </table>
</div> </div>
...@@ -191,39 +272,91 @@ ...@@ -191,39 +272,91 @@
<script type="text/javascript" src="/common/datepicker/calendar.js"></script> <script type="text/javascript" src="/common/datepicker/calendar.js"></script>
<script src="/js/jquery.position.select.js" type="text/javascript"></script> <script src="/js/jquery.position.select.js" type="text/javascript"></script>
<script type="text/javascript"> <script type="text/javascript">
var jqzt_flag = "${tbStDxzp.jqzt_flag}" //初始化页面信息
var jqzt_flag = "${tbStDxzp.jqzt_flag}";
var hcjg = "${tbStDxzp.hcjg}";
var sfcr = "${tbStDxzp.sprSfcr}";
function setValue() { function setValue() {
if(jqzt_flag == '1'){ if (jqzt_flag != "是" && jqzt_flag != "受骗人手机错误" && jqzt_flag != "受骗人地域错误" && jqzt_flag != null && jqzt_flag != "") {
$("#bp_flag").combobox("setValue","${tbStDxzp.bp_flag}"); if (jqzt_flag != "其他") {
$("#hcqk").val("${tbStDxzp.hcqk}") $("#jqyxQtStr").val(jqzt_flag);
}
$("#jqzt_flag").combobox("setValue","其他");
} else {
$("#jqzt_flag").combobox("setValue",jqzt_flag);
} }
if (hcjg != "当面劝阻" && hcjg != "短信劝阻" && hcjg != "电话劝阻" && hcjg != null && hcjg != "") {
if (hcjg != "其他") {
$("#hcjgQtStr").val(hcjg);
}
$("#hcjg").combobox("setValue","其他");
} else {
$("#hcjg").combobox("setValue",hcjg);
}
if (sfcr != "承认" && sfcr != "否认" && sfcr != "账号非本人使用" && sfcr != null && sfcr != "") {
if (sfcr != "其他") {
$("#sfcrQtStr").val(sfcr);
}
$("#sprSfcr").combobox("setValue","其他");
} else {
$("#sprSfcr").combobox("setValue",sfcr);
}
$("#bp_flag").combobox("setValue","${tbStDxzp.bp_flag}");
} }
window.onload=setValue; window.onload=setValue;
if(jqzt_flag == '1'){ if(jqzt_flag == '是'){
$("#jqyx_n").attr("checked",'checked');
$("#yhkzf").css("visibility","visible"); $("#yhkzf").css("visibility","visible");
} }
function jqyx() { //监听警情有效的方法
$("#yhkzf").css("visibility","visible"); $('#jqzt_flag').combobox({
$("#hcjg").combobox("setValue","${tbStDxzp.hcjg}"); onChange: function (newValue, oldValue) {
$("#bp_flag").combobox("setValue","${tbStDxzp.bp_flag}"); if(newValue == '是'){
$("#hcqk").val("${tbStDxzp.hcqk}") $("#yhkzf").css("visibility","visible");
} } else {
function jqwx() { $("#yhkzf").css("visibility","collapse");
$("#yhkzf").css("visibility","collapse"); }
$("#hcjg").combobox("setValue",""); if (newValue == "其他"){
$("#bp_flag").combobox("setValue",""); $("#jqyxQtStr").css("display","block");
$("#hcqk").val("") }else{
} $("#jqyxQtStr").css("display","none");
}
}
});
//监听核查结果的方法
$('#hcjg').combobox({
onChange: function (newValue, oldValue) {
if (newValue == "其他"){
$("#hcjgQtStr").css("display","block");
}else{
$("#hcjgQtStr").css("display","none");
}
}
});
//监听是否承认的方法
$('#sprSfcr').combobox({
onChange: function (newValue, oldValue) {
if (newValue == "其他"){
$("#sfcrQtStr").css("display","block");
}else{
$("#sfcrQtStr").css("display","none");
}
}
});
//保存方法
function savewzyj() { function savewzyj() {
var a = $("input[name='jqzt_flag']:checked").val(); var jqyxStr = $("#jqzt_flag").combobox("getValue");
if(a == '1'){ var hcjgStr = $("#hcjg").combobox("getValue");
var hcjg = $("#hcjg").combobox("getValue"); var sfcrStr = $("#sprSfcr").combobox("getValue");
if(jqyxStr == '是'){
var bp_flag = $("#bp_flag").combobox("getValue"); var bp_flag = $("#bp_flag").combobox("getValue");
var hcqk = $("#hcqk").val() var hcqk = $("#hcqk").val();
if(hcjg ==null || hcjg==''){ var sfxyzcyj = $("#sfxyzcyj").combobox("getValue");
if(hcjgStr ==null || hcjgStr==''){
jAlert("请选择核查结果") jAlert("请选择核查结果")
return; return;
} }
...@@ -231,11 +364,36 @@ ...@@ -231,11 +364,36 @@
jAlert("请选择是否被骗") jAlert("请选择是否被骗")
return; return;
} }
if(sfxyzcyj ==null || sfxyzcyj==''){
jAlert("请选择是否需要再次预警")
return;
}
if(hcqk ==null || hcqk==''){ if(hcqk ==null || hcqk==''){
jAlert("请输入核查情况") jAlert("请输入核查情况")
return; return;
} }
} }
if (jqyxStr == '其他') {
var jqyxQtStr = $("#jqyxQtStr").val();
if (jqyxQtStr == "" ||jqyxQtStr == undefined) {
jqyxQtStr = '其他';
}
$("#jqzt_flag").combobox("setValue",jqyxQtStr);
}
if (hcjgStr == '其他') {
var hcjgQtStr = $("#hcjgQtStr").val();
if (hcjgQtStr == "" ||hcjgQtStr == undefined) {
hcjgQtStr = '其他';
}
$("#hcjg").combobox("setValue",hcjgQtStr);
}
if (sfcrStr == '其他') {
var sfcrQtStr = $("#sfcrQtStr").val();
if (sfcrQtStr == "" ||sfcrQtStr == undefined) {
sfcrQtStr = '其他';
}
$("#sprSfcr").combobox("setValue",sfcrQtStr);
}
loading("数据提交中,请稍等!"); loading("数据提交中,请稍等!");
$.ajax({ $.ajax({
url: "/savewzyj", url: "/savewzyj",
...@@ -258,6 +416,7 @@ ...@@ -258,6 +416,7 @@
} }
}); });
} }
//加载层 //加载层
function loading(msg) { function loading(msg) {
layer.msg(msg, { layer.msg(msg, {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment