Commit 19738905 by 吴善钰

网侦预警业务调整

parent 7b233cfe
......@@ -6,58 +6,60 @@ import java.util.Date;
* Created by wangyang on 2019/1/15.
*/
public class TbStDxzp extends BaseModel {
//信息主键编号
private String zjbh;
//诈骗方微信id
private String zpfWxid;
//诈骗方qq
private String zpfQq;
//诈骗方手机号码
private String zpfSjhm;
//被骗方微信
private String bpfWxid;
//被骗方qq
private String bpfQq;
//被骗方手机号码
private String bpfSjhm;
//预警强度
private String yjqd;
//入库时间
private Date rksj;
//信息操作人姓名
private String xxczrXm;
// 警号
private String xxczrJh;
//单位
private String xxczrDw;
// 处置状态:是否被处置 0:已处置 1:处置
private String czzt;
private String hcjg;
private String bp_flag;
private String hcqk;
//接收时间
private String jssj;
//警情是否有效
private String jqzt_flag;
//付款金额
private String fkje;
//诈骗类型
private String zplx;
//已预警次数
private String yyjcs;
//最后活动地
private String zhhdd;
private String zjbh;//信息主键编号
private String zpfWxid;//诈骗方微信id
private String zpfQq;//诈骗方qq
private String zpfSjhm;//诈骗方手机号码
private String bpfWxid;//被骗方微信
private String bpfQq;//被骗方qq
private String bpfSjhm;//被骗方手机号码
private String yjqd;//预警强度
private Date rksj;//入库时间
private String xxczrXm;//信息操作人姓名
private String xxczrJh;// 警号
private String xxczrDw;//单位
private String czzt;// 处置状态:是否被处置 0:已处置 1:处置
private String hcjg;//核查结果
private String bp_flag;//是否被骗
private String hcqk;//核查情况
private String jssj;//接收时间
private String jqzt_flag;//警情是否有效
private String fkje;//付款金额
private String zplx;//诈骗类型
private String yyjcs;//已预警次数
private String zhhdd;//最后活动地
private String sprSfcr;//受骗人是否被骗
private String sprSffk;//受骗人是否付款
private String sprSfba;//受骗人是否报案
private String sfgzrhjcpj;//是否告知如何揭穿骗局
private String sfxyzcyj;//是否需要再次预警
//分页查询用
//查询分页开始结束
......@@ -259,4 +261,44 @@ public class TbStDxzp extends BaseModel {
public void setJssj(String 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;
import com.founder.model.EasyUIPage;
import com.founder.model.TbStDxzp;
import com.founder.model.User;
import com.founder.util.ExportExcelUtil;
import com.founder.wzyj.service.IWzyjService;
import net.sf.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -11,6 +13,8 @@ import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
......@@ -93,7 +97,14 @@ public class WzyjController {
*/
@RequestMapping("/savewzyj")
@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";
//预警处置
boolean result = wzyjService.savewzyj(tbStDxzp);
......@@ -107,4 +118,25 @@ public class WzyjController {
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.mvc.view.prefix=/WEB-INF/jsp/
......
......@@ -20,20 +20,15 @@
FKJE fkje,
YYJCS yyjcs,
ZHHDD zhhdd,
SPR_SFCR sprSfcr,
SPR_SFFK sprSffk,
SPR_SFBA sprSfba,
SFGZRHJCPJ sfgzrhjcpj,
SFXYZCYJ sfxyzcyj,
to_char(JSSJ, 'yyyy-MM-dd') as jssj
from TB_ST_DXZP where XXSC_PDBZ = '0'
<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=#{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
<include refid="wzyj-public-where"/>
ORDER BY gxsj desc nulls last,JSSJ DESC,YJQD DESC,RKSJ DESC) t
WHERE ROWNUM <![CDATA[<=]]> #{end}
) WHERE RN > #{begin}
</select>
......@@ -41,17 +36,7 @@
<select id="getWzyjListCount" parameterType="com.founder.model.TbStDxzp" resultType="java.lang.Integer">
select count(*)
from TB_ST_DXZP where XXSC_PDBZ = '0'
<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=#{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>
<include refid="wzyj-public-where"/>
</select>
<select id="getWzyjXxById" parameterType="java.lang.String" resultType="com.founder.model.TbStDxzp">
......@@ -72,6 +57,11 @@
FKJE fkje,
YYJCS yyjcs,
ZHHDD zhhdd,
SPR_SFCR sprSfcr,
SPR_SFFK sprSffk,
SPR_SFBA sprSfba,
SFGZRHJCPJ sfgzrhjcpj,
SFXYZCYJ sfxyzcyj,
XXCZR_XM xxczrXm,
XXCZR_JH xxczrJh,
XXCZR_DW xxczrDw
......@@ -80,32 +70,77 @@
</select>
<update id="savewzyj" parameterType="com.founder.model.TbStDxzp" >
UPDATE TB_ST_DXZP SET
<if test="jqzt_flag != null and jqzt_flag=='1'.toString()">
JQYX_FLAG = #{jqzt_flag},
<if test="hcjg != null ">
HCJG = #{hcjg},
<if test="jqzt_flag != null and jqzt_flag!='' and jqzt_flag=='是'.toString()">
JQYX_FLAG = #{jqzt_flag, jdbcType=VARCHAR},
<if test="hcjg != null and hcjg!=''">
HCJG = #{hcjg, jdbcType=VARCHAR},
</if>
<if test="bp_flag != null and hcjg!=''">
BP_FLAG = #{bp_flag, jdbcType=VARCHAR},
</if>
<if test="bp_flag != null ">
BP_FLAG = #{bp_flag},
<if test="hcqk != null and hcjg!=''">
HCQK = #{hcqk, jdbcType=VARCHAR},
</if>
<if test="hcqk != null ">
HCQK = #{hcqk},
<if test="sprSfcr != null and sprSfcr!=''">
SPR_SFCR = #{sprSfcr, jdbcType=VARCHAR},
</if>
<if test="sprSffk != null and sprSffk!=''">
SPR_SFFK = #{sprSffk, jdbcType=VARCHAR},
</if>
<if test="jqzt_flag != null and jqzt_flag=='0'.toString()">
JQYX_FLAG = #{jqzt_flag},
<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 test="jqzt_flag != null and jqzt_flag!=''and jqzt_flag!='是'.toString()">
JQYX_FLAG = #{jqzt_flag, jdbcType=VARCHAR},
HCJG = null,
BP_FLAG = 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>
gxsj=sysdate
where xxsc_pdbz='0' and ID = #{id}
where xxsc_pdbz='0' and ID = #{id, jdbcType=VARCHAR}
</update>
<update id="updateCzzt" parameterType="java.lang.String" >
UPDATE TB_ST_DXZP SET
CZZT = '1',
gxsj=sysdate
where xxsc_pdbz='0' and ID = #{id}
where xxsc_pdbz='0' and ID = #{id, jdbcType=VARCHAR}
</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>
\ No newline at end of file
......@@ -35,7 +35,7 @@ function yjcz(id) {
scrollbar: false,
shadeClose: true, //点击遮罩关闭层
skin: '',
area : ['700px' , '700px'],
area : ['700px' , '550px'],
content: url,
success: function(layero, index){
var t=layer.getChildFrame('body', index).find('.toindex');
......@@ -45,7 +45,6 @@ function yjcz(id) {
$('#wzyjtable').datagrid("reload",serializeObject($("form[name='wzyjForm']")));
}
});
}
function getCz(row) {
var str = ""
......@@ -60,7 +59,7 @@ function doQuery() {
if (zpfSjhm != null && zpfSjhm != '') {
if (!(/^1[34578]\d{9}$/.test(zpfSjhm))) {
jAlert("诈骗方手机号码有误,请重填");
$("#zpfSjhm").textbox('setValue', "")
$("#zpfSjhm").textbox('setValue', "");
return false;
}
}
......@@ -73,6 +72,7 @@ function doQuery() {
return false;
}
}
//加载表格
$('#wzyjtable').datagrid({
url: "/getWzyjList",
columns: [table_title],
......
......@@ -43,6 +43,13 @@
width: 100% !important;
margin: -20px auto 0 auto !important;
}
.message{
width: 184px;
margin-top: 3px;
}
input::-webkit-input-placeholder {
color: red;
}
</style>
</head>
<body>
......@@ -126,41 +133,115 @@
<tr>
<td class="ar" width="13.3%">警情是否有效:</td>
<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>
<input type="radio" name="jqzt_flag" id="jqyx_n" onclick="jqyx()" value="1" ><label for="jqyx_n" style='cursor:pointer;background:none;'></label></input>
<select id="jqzt_flag" class="easyui-combobox" name="jqzt_flag" 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="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>
</tr>
</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">
<tr>
<td style="text-align:right; width:16%;"><i class="fa fa-asterisk"
style="color:red; margin-right:4px;"></i><span
class="zfzhssyh">核查结果:</span></td>
<td width="34%">
<span class="textbox" style="height:26px;width:184px;">
<input style="height:26px;width:184px;" type="text" value="${tbStDxzp.hcjg}"
id="hcjg" name="hcjg" class="val easyui-combotree"
data-options="panelHeight:'auto',url: '/queryTypeCode?type=CODE_HCJG',method:'get',fit:true,textField : 'text', valueField : 'id'"/>
</span>
<td style="text-align:right; width:29%;">
<i class="fa fa-asterisk" style="color:red; margin-right:4px;"></i>
<span class="zfzhssyh">核查结果:</span>
</td>
<td style="text-align:right; width:16%;"><i class="fa fa-asterisk"
style="color:red; margin-right:4px;"></i><span
class="zfzhssyh">是否被骗:</span></td>
<td style="text-align:left; width:34%;">
<td style="text-align:left; width:23%;">
<select id="hcjg" class="easyui-combobox" name="hcjg" 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="hcjgQtStr" class="message" style="display: none" placeholder="请填写其他情况的相关描述"/>
</td>
<td style="text-align:right; width:20%;">
<i class="fa fa-asterisk" style="color:red; margin-right:4px;"></i>
<span class="zfzhssyh">是否被骗:</span>
</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'">
<option value="">--请选择--</option>
<option value=""></option>
<option value="0">未被骗</option>
<option value="1">已被骗</option>
</select>
</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:right; width:18%;">
<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">
<textarea maxlength="1000" rows="2" class="text_ch" name="hcqk" id="hcqk"
style="height: 100px;width:100%;resize:none;">${tbStDxzp.hcqk}</textarea></td>
<textarea maxlength="1000" rows="2" class="text_ch" name="hcqk" id="hcqk" style="height: 60px;width:100%;resize:none;">${tbStDxzp.hcqk}</textarea>
</td>
</tr>
</table>
</div>
......@@ -191,39 +272,91 @@
<script type="text/javascript" src="/common/datepicker/calendar.js"></script>
<script src="/js/jquery.position.select.js" type="text/javascript"></script>
<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() {
if(jqzt_flag == '1'){
$("#bp_flag").combobox("setValue","${tbStDxzp.bp_flag}");
$("#hcqk").val("${tbStDxzp.hcqk}")
if (jqzt_flag != "是" && jqzt_flag != "受骗人手机错误" && jqzt_flag != "受骗人地域错误" && jqzt_flag != null && jqzt_flag != "") {
if (jqzt_flag != "其他") {
$("#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;
if(jqzt_flag == '1'){
$("#jqyx_n").attr("checked",'checked');
if(jqzt_flag == '是'){
$("#yhkzf").css("visibility","visible");
}
function jqyx() {
//监听警情有效的方法
$('#jqzt_flag').combobox({
onChange: function (newValue, oldValue) {
if(newValue == '是'){
$("#yhkzf").css("visibility","visible");
$("#hcjg").combobox("setValue","${tbStDxzp.hcjg}");
$("#bp_flag").combobox("setValue","${tbStDxzp.bp_flag}");
$("#hcqk").val("${tbStDxzp.hcqk}")
}
function jqwx() {
} else {
$("#yhkzf").css("visibility","collapse");
$("#hcjg").combobox("setValue","");
$("#bp_flag").combobox("setValue","");
$("#hcqk").val("")
}
if (newValue == "其他"){
$("#jqyxQtStr").css("display","block");
}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() {
var a = $("input[name='jqzt_flag']:checked").val();
if(a == '1'){
var hcjg = $("#hcjg").combobox("getValue");
var jqyxStr = $("#jqzt_flag").combobox("getValue");
var hcjgStr = $("#hcjg").combobox("getValue");
var sfcrStr = $("#sprSfcr").combobox("getValue");
if(jqyxStr == '是'){
var bp_flag = $("#bp_flag").combobox("getValue");
var hcqk = $("#hcqk").val()
if(hcjg ==null || hcjg==''){
var hcqk = $("#hcqk").val();
var sfxyzcyj = $("#sfxyzcyj").combobox("getValue");
if(hcjgStr ==null || hcjgStr==''){
jAlert("请选择核查结果")
return;
}
......@@ -231,11 +364,36 @@
jAlert("请选择是否被骗")
return;
}
if(sfxyzcyj ==null || sfxyzcyj==''){
jAlert("请选择是否需要再次预警")
return;
}
if(hcqk ==null || hcqk==''){
jAlert("请输入核查情况")
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("数据提交中,请稍等!");
$.ajax({
url: "/savewzyj",
......@@ -258,6 +416,7 @@
}
});
}
//加载层
function loading(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