新增人员信息如果人员信息存在,跳转到修改页面

This commit is contained in:
wans 2020-11-24 17:55:09 +08:00
parent b20a70e804
commit 53ce773663
21 changed files with 382 additions and 176 deletions

View File

@ -79,6 +79,14 @@ public class AddictsController extends AbstractController {
return addictsService.getAddictsById(addictsId); return addictsService.getAddictsById(addictsId);
} }
@ApiOperation(value = "特殊人群-吸毒人员详情", notes = "特殊人群-吸毒人员详情接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("getaddictsinfo")
public AddictsDTO getAddictsInfo() throws SearchException {
Map<String, Object> params = requestParams();
return addictsService.getAddictsInfo(params);
}
@ApiOperation(value = "特殊人群-吸毒人员列表", notes = "特殊人群-吸毒人员列表接口") @ApiOperation(value = "特殊人群-吸毒人员列表", notes = "特殊人群-吸毒人员列表接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listaddicts") @GetMapping("listaddicts")

View File

@ -79,6 +79,14 @@ public class AidsController extends AbstractController {
return aidsService.getAidsById(aidsId); return aidsService.getAidsById(aidsId);
} }
@ApiOperation(value = "特殊人群-艾滋病危险人员详情", notes = "特殊人群-艾滋病危险人员详情接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("getaidsinfo")
public AidsDTO getAidsInfo() throws SearchException {
Map<String, Object> params = requestParams();
return aidsService.getAidsInfo(params);
}
@ApiOperation(value = "特殊人群-艾滋病危险人员列表", notes = "特殊人群-艾滋病危险人员列表接口") @ApiOperation(value = "特殊人群-艾滋病危险人员列表", notes = "特殊人群-艾滋病危险人员列表接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listaids") @GetMapping("listaids")

View File

@ -79,6 +79,14 @@ public class CommunityCorrectionController extends AbstractController {
return communityCorrectionService.getCommunityCorrectionById(communityCorrectionId); return communityCorrectionService.getCommunityCorrectionById(communityCorrectionId);
} }
@ApiOperation(value = "特殊人群-社区矫正人员详情", notes = "特殊人群-社区矫正人员详情接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("getcommunitycorrectioninfo")
public CommunityCorrectionDTO getCommunityCorrectionInfo() throws SearchException {
Map<String, Object> params = requestParams();
return communityCorrectionService.getCommunityCorrectionInfo(params);
}
@ApiOperation(value = "特殊人群-社区矫正人员列表", notes = "特殊人群-社区矫正人员列表接口") @ApiOperation(value = "特殊人群-社区矫正人员列表", notes = "特殊人群-社区矫正人员列表接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listcommunitycorrection") @GetMapping("listcommunitycorrection")

View File

@ -78,6 +78,14 @@ public class MentalDisordersController extends AbstractController {
return mentalDisordersService.getMentalDisordersById(mentalDisordersId); return mentalDisordersService.getMentalDisordersById(mentalDisordersId);
} }
@ApiOperation(value = "肇事肇祸等严重精神障碍患者详情", notes = "肇事肇祸等严重精神障碍患者详情接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("getmentaldisordersinfo")
public MentalDisordersDTO getMentalDisordersInfo() throws SearchException {
Map<String, Object> params = requestParams();
return mentalDisordersService.getMentalDisordersInfo(params);
}
@ApiOperation(value = "肇事肇祸等严重精神障碍患者列表", notes = "肇事肇祸等严重精神障碍患者列表接口") @ApiOperation(value = "肇事肇祸等严重精神障碍患者列表", notes = "肇事肇祸等严重精神障碍患者列表接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listmentaldisorders") @GetMapping("listmentaldisorders")

View File

@ -69,6 +69,14 @@ public class ReleaseAfterSentenceController extends AbstractController {
return releaseAfterSentenceService.updateReleaseAfterSentence(releaseAfterSentenceId, releaseAfterSentenceVO); return releaseAfterSentenceService.updateReleaseAfterSentence(releaseAfterSentenceId, releaseAfterSentenceVO);
} }
@ApiOperation(value = "特殊人群-刑满释放人员详情", notes = "特殊人群-刑满释放人员详情接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("getreleaseaftersentenceinfo")
public ReleaseAfterSentenceDTO getReleaseAfterSentenceInfo() throws SearchException {
Map<String, Object> params = requestParams();
return releaseAfterSentenceService.getReleaseAfterSentenceInfo(params);
}
@ApiOperation(value = "特殊人群-刑满释放人员详情(通过ID)", notes = "特殊人群-刑满释放人员详情(通过ID)接口") @ApiOperation(value = "特殊人群-刑满释放人员详情(通过ID)", notes = "特殊人群-刑满释放人员详情(通过ID)接口")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name = "releaseAfterSentenceId", value = "特殊人群-刑满释放人员ID", paramType = "path") @ApiImplicitParam(name = "releaseAfterSentenceId", value = "特殊人群-刑满释放人员ID", paramType = "path")

View File

@ -153,4 +153,11 @@ public interface IAddictsService {
*/ */
SuccessResultData<Integer> countAddicts(Map<String, Object> params) throws SearchException; SuccessResultData<Integer> countAddicts(Map<String, Object> params) throws SearchException;
/**
* 特殊人群-吸毒人员详情
* @param params
* @return
* @throws SearchException
*/
AddictsDTO getAddictsInfo(Map<String, Object> params) throws SearchException;
} }

View File

@ -161,6 +161,12 @@ public class AddictsServiceImpl extends AbstractService implements IAddictsServi
return addictsDao.getAddicts(params); return addictsDao.getAddicts(params);
} }
@Override
public AddictsDTO getAddictsInfo(Map<String, Object> params) throws SearchException {
AddictsDTO dto = addictsDao.getAddicts(params);
return dto == null ? new AddictsDTO() : dto;
}
@Override @Override
public List<AddictsDTO> listAddicts(Map<String, Object> params) throws SearchException { public List<AddictsDTO> listAddicts(Map<String, Object> params) throws SearchException {
return addictsDao.listAddicts(params); return addictsDao.listAddicts(params);

View File

@ -153,4 +153,11 @@ public interface IAidsService {
*/ */
SuccessResultData<Integer> countAids(Map<String, Object> params) throws SearchException; SuccessResultData<Integer> countAids(Map<String, Object> params) throws SearchException;
/**
* 特殊人群-艾滋病危险人员详情
* @param params
* @return
* @throws SearchException
*/
AidsDTO getAidsInfo(Map<String, Object> params) throws SearchException;
} }

View File

@ -161,6 +161,12 @@ public class AidsServiceImpl extends AbstractService implements IAidsService {
return aidsDao.getAids(params); return aidsDao.getAids(params);
} }
@Override
public AidsDTO getAidsInfo(Map<String, Object> params) throws SearchException {
AidsDTO dto = aidsDao.getAids(params);
return dto == null ? new AidsDTO() : dto;
}
@Override @Override
public List<AidsDTO> listAids(Map<String, Object> params) throws SearchException { public List<AidsDTO> listAids(Map<String, Object> params) throws SearchException {
return aidsDao.listAids(params); return aidsDao.listAids(params);

View File

@ -153,4 +153,11 @@ public interface ICommunityCorrectionService {
*/ */
SuccessResultData<Integer> countCommunityCorrection(Map<String, Object> params) throws SearchException; SuccessResultData<Integer> countCommunityCorrection(Map<String, Object> params) throws SearchException;
/**
* 特殊人群-社区矫正人员详情
* @param params
* @return
* @throws SearchException
*/
CommunityCorrectionDTO getCommunityCorrectionInfo(Map<String, Object> params) throws SearchException;
} }

View File

@ -18,6 +18,7 @@ import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import java.util.*; import java.util.*;
@ -161,6 +162,12 @@ public class CommunityCorrectionServiceImpl extends AbstractService implements I
return communityCorrectionDao.getCommunityCorrection(params); return communityCorrectionDao.getCommunityCorrection(params);
} }
@Override
public CommunityCorrectionDTO getCommunityCorrectionInfo(Map<String, Object> params) throws SearchException {
CommunityCorrectionDTO dto = communityCorrectionDao.getCommunityCorrection(params);
return dto == null ? new CommunityCorrectionDTO(): dto;
}
@Override @Override
public List<CommunityCorrectionDTO> listCommunityCorrection(Map<String, Object> params) throws SearchException { public List<CommunityCorrectionDTO> listCommunityCorrection(Map<String, Object> params) throws SearchException {
return communityCorrectionDao.listCommunityCorrection(params); return communityCorrectionDao.listCommunityCorrection(params);

View File

@ -152,4 +152,11 @@ public interface IMentalDisordersService {
*/ */
SuccessResultData<Integer> countMentalDisorders(Map<String, Object> params) throws SearchException; SuccessResultData<Integer> countMentalDisorders(Map<String, Object> params) throws SearchException;
/**
* 肇事肇祸等严重精神障碍患者详情
* @param params
* @return
* @throws SearchException
*/
MentalDisordersDTO getMentalDisordersInfo(Map<String, Object> params) throws SearchException;
} }

View File

@ -162,6 +162,12 @@ public class MentalDisordersServiceImpl extends AbstractService implements IMent
return mentalDisordersDao.getMentalDisorders(params); return mentalDisordersDao.getMentalDisorders(params);
} }
@Override
public MentalDisordersDTO getMentalDisordersInfo(Map<String, Object> params) throws SearchException {
MentalDisordersDTO dto = mentalDisordersDao.getMentalDisorders(params);
return dto == null? new MentalDisordersDTO() : dto;
}
@Override @Override
public List<MentalDisordersDTO> listMentalDisorders(Map<String, Object> params) throws SearchException { public List<MentalDisordersDTO> listMentalDisorders(Map<String, Object> params) throws SearchException {
return mentalDisordersDao.listMentalDisorders(params); return mentalDisordersDao.listMentalDisorders(params);

View File

@ -153,4 +153,11 @@ public interface IReleaseAfterSentenceService {
*/ */
SuccessResultData<Integer> countReleaseAfterSentence(Map<String, Object> params) throws SearchException; SuccessResultData<Integer> countReleaseAfterSentence(Map<String, Object> params) throws SearchException;
/**
* 根据条件查询数据(单条)
* @param params
* @return
* @throws SearchException
*/
ReleaseAfterSentenceDTO getReleaseAfterSentenceInfo(Map<String, Object> params) throws SearchException;
} }

View File

@ -18,6 +18,7 @@ import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import java.util.*; import java.util.*;
@ -161,6 +162,12 @@ public class ReleaseAfterSentenceServiceImpl extends AbstractService implements
return releaseAfterSentenceDao.getReleaseAfterSentence(params); return releaseAfterSentenceDao.getReleaseAfterSentence(params);
} }
@Override
public ReleaseAfterSentenceDTO getReleaseAfterSentenceInfo(Map<String, Object> params) throws SearchException {
ReleaseAfterSentenceDTO dto = releaseAfterSentenceDao.getReleaseAfterSentence(params);
return dto == null ? new ReleaseAfterSentenceDTO() : dto;
}
@Override @Override
public List<ReleaseAfterSentenceDTO> listReleaseAfterSentence(Map<String, Object> params) throws SearchException { public List<ReleaseAfterSentenceDTO> listReleaseAfterSentence(Map<String, Object> params) throws SearchException {
return releaseAfterSentenceDao.listReleaseAfterSentence(params); return releaseAfterSentenceDao.listReleaseAfterSentence(params);

View File

@ -274,7 +274,7 @@
var loadIndex = layer.load(1); var loadIndex = layer.load(1);
top.restAjax.get(top.restAjax.path('api/basepopulationinfo/getbasepopulationinfo', []), top.restAjax.get(top.restAjax.path('api/basepopulationinfo/getbasepopulationinfo', []),
{idCardNumber:idCardNumber}, null, function(code, data) { {idCardNumber:idCardNumber}, null, function(code, data) {
if(typeof (data) == 'undefined' || data == ''){ if(typeof (data) == 'undefined' || data.basePopulationInfoId == ''){
layer.msg('未查询到人员基础信息'); layer.msg('未查询到人员基础信息');
$('.submit-btn').hide(); $('.submit-btn').hide();
$('.div-form-content').hide(); $('.div-form-content').hide();
@ -282,6 +282,7 @@
form.render(); form.render();
return false; return false;
} }
queryExistsData(idCardNumber);
var dataFormData = {}; var dataFormData = {};
for(var i in data) { for(var i in data) {
dataFormData[i] = data[i] +''; dataFormData[i] = data[i] +'';
@ -305,6 +306,18 @@
queryBasePopulationInfo($('#idCardNumber').val()); queryBasePopulationInfo($('#idCardNumber').val());
}); });
function queryExistsData(idCardNumber){
top.restAjax.get(top.restAjax.path('api/addicts/getaddictsinfo', []),
{idCardNumber:idCardNumber}, null, function(code, data) {
if(data.addictsId){
window.location.href = 'route/addicts/update-addicts.html?addictsId=' + data.addictsId;
}
}, function(code, data) {
console.log(data);
}
);
}
// 初始化发现日期日期 // 初始化发现日期日期
function initDiscoveryDateDate() { function initDiscoveryDateDate() {
laydate.render({ laydate.render({

View File

@ -245,7 +245,7 @@
var loadIndex = layer.load(1); var loadIndex = layer.load(1);
top.restAjax.get(top.restAjax.path('api/basepopulationinfo/getbasepopulationinfo', []), top.restAjax.get(top.restAjax.path('api/basepopulationinfo/getbasepopulationinfo', []),
{idCardNumber:idCardNumber}, null, function(code, data) { {idCardNumber:idCardNumber}, null, function(code, data) {
if(typeof (data) == 'undefined' || data == ''){ if(typeof (data) == 'undefined' || data.basePopulationInfoId == ''){
layer.msg('未查询到人员基础信息'); layer.msg('未查询到人员基础信息');
$('.submit-btn').hide(); $('.submit-btn').hide();
$('.div-form-content').hide(); $('.div-form-content').hide();
@ -253,6 +253,7 @@
form.render(); form.render();
return false; return false;
} }
queryExistsData(idCardNumber);
var dataFormData = {}; var dataFormData = {};
for(var i in data) { for(var i in data) {
dataFormData[i] = data[i] +''; dataFormData[i] = data[i] +'';
@ -276,6 +277,18 @@
queryBasePopulationInfo($('#idCardNumber').val()); queryBasePopulationInfo($('#idCardNumber').val());
}); });
function queryExistsData(idCardNumber){
top.restAjax.get(top.restAjax.path('api/aids/getaidsinfo', []),
{idCardNumber:idCardNumber}, null, function(code, data) {
if(data.aidsId){
window.location.href = 'route/aids/update-aids.html?aidsId=' + data.aidsId;
}
}, function(code, data) {
console.log(data);
}
);
}
function closeBox() { function closeBox() {
parent.layer.close(parent.layer.getFrameIndex(window.name)); parent.layer.close(parent.layer.getFrameIndex(window.name));
} }

View File

@ -22,6 +22,42 @@
</div> </div>
<div class="layui-card-body" style="padding: 15px;"> <div class="layui-card-body" style="padding: 15px;">
<form class="layui-form layui-form-pane" lay-filter="dataForm"> <form class="layui-form layui-form-pane" lay-filter="dataForm">
<blockquote class="layui-elem-quote">人员基础信息</blockquote>
<div class="layui-row">
<div class="layui-col-md3">
<div class="layui-form-item">
<label class="layui-form-label">姓名</label>
<div class="layui-input-block">
<input type="text" id="fullName" name="fullName" class="layui-input" value="" readonly="readonly">
</div>
</div>
</div>
<div class="layui-col-md3">
<div class="layui-form-item">
<label class="layui-form-label">性别</label>
<div class="layui-input-block">
<input type="text" id="gender" name="gender" class="layui-input" value="" readonly="readonly">
</div>
</div>
</div>
<div class="layui-col-md3">
<div class="layui-form-item">
<label class="layui-form-label">身份证号</label>
<div class="layui-input-block">
<input type="text" id="idCardNumber" name="idCardNumber" class="layui-input" value="" readonly="readonly">
</div>
</div>
</div>
<div class="layui-col-md3">
<div class="layui-form-item">
<label class="layui-form-label">联系方式</label>
<div class="layui-input-block">
<input type="text" id="telephone" name="telephone" class="layui-input" value="" readonly="readonly">
</div>
</div>
</div>
</div>
<blockquote class="layui-elem-quote">艾滋危险病人信息</blockquote> <blockquote class="layui-elem-quote">艾滋危险病人信息</blockquote>
<div class="layui-row"> <div class="layui-row">
<div class="layui-col-md4"> <div class="layui-col-md4">

View File

@ -436,7 +436,7 @@
var loadIndex = layer.load(1); var loadIndex = layer.load(1);
top.restAjax.get(top.restAjax.path('api/basepopulationinfo/getbasepopulationinfo', []), top.restAjax.get(top.restAjax.path('api/basepopulationinfo/getbasepopulationinfo', []),
{idCardNumber:idCardNumber}, null, function(code, data) { {idCardNumber:idCardNumber}, null, function(code, data) {
if(typeof (data) == 'undefined' || data == ''){ if(typeof (data) == 'undefined' || data.basePopulationInfoId == ''){
layer.msg('未查询到人员基础信息'); layer.msg('未查询到人员基础信息');
$('.submit-btn').hide(); $('.submit-btn').hide();
$('.div-form-content').hide(); $('.div-form-content').hide();
@ -444,6 +444,7 @@
form.render(); form.render();
return false; return false;
} }
queryExistsData(idCardNumber);
var dataFormData = {}; var dataFormData = {};
for(var i in data) { for(var i in data) {
dataFormData[i] = data[i] +''; dataFormData[i] = data[i] +'';
@ -467,6 +468,18 @@
queryBasePopulationInfo($('#idCardNumber').val()); queryBasePopulationInfo($('#idCardNumber').val());
}); });
function queryExistsData(idCardNumber){
top.restAjax.get(top.restAjax.path('api/communitycorrection/getcommunitycorrectioninfo', []),
{idCardNumber:idCardNumber}, null, function(code, data) {
if(data.communityCorrectionId){
window.location.href = 'route/communitycorrection/update-communitycorrection.html?communityCorrectionId=' + data.communityCorrectionId;
}
}, function(code, data) {
console.log(data);
}
);
}
// 初始化内容 // 初始化内容
function initData() { function initData() {
initCaseCategorySelect(); initCaseCategorySelect();

View File

@ -321,7 +321,7 @@
var loadIndex = layer.load(1); var loadIndex = layer.load(1);
top.restAjax.get(top.restAjax.path('api/basepopulationinfo/getbasepopulationinfo', []), top.restAjax.get(top.restAjax.path('api/basepopulationinfo/getbasepopulationinfo', []),
{idCardNumber:idCardNumber}, null, function(code, data) { {idCardNumber:idCardNumber}, null, function(code, data) {
if(typeof (data) == 'undefined' || data == ''){ if(typeof (data) == 'undefined' || data.basePopulationInfoId == ''){
layer.msg('未查询到人员基础信息'); layer.msg('未查询到人员基础信息');
$('.submit-btn').hide(); $('.submit-btn').hide();
$('.div-form-content').hide(); $('.div-form-content').hide();
@ -329,6 +329,7 @@
form.render(); form.render();
return false; return false;
} }
queryExistsData(idCardNumber);
var dataFormData = {}; var dataFormData = {};
for(var i in data) { for(var i in data) {
dataFormData[i] = data[i] +''; dataFormData[i] = data[i] +'';
@ -352,6 +353,18 @@
queryBasePopulationInfo($('#idCardNumber').val()); queryBasePopulationInfo($('#idCardNumber').val());
}); });
function queryExistsData(idCardNumber){
top.restAjax.get(top.restAjax.path('api/mentaldisorders/getmentaldisordersinfo', []),
{idCardNumber:idCardNumber}, null, function(code, data) {
if(data.mentalDisordersId){
window.location.href = 'route/mentaldisorders/update-mentaldisorders.html?mentalDisordersId=' + data.mentalDisordersId;
}
}, function(code, data) {
console.log(data);
}
);
}
function closeBox() { function closeBox() {
parent.layer.close(parent.layer.getFrameIndex(window.name)); parent.layer.close(parent.layer.getFrameIndex(window.name));
} }

View File

@ -21,7 +21,7 @@
</span> </span>
</div> </div>
<div class="layui-card-body" style="padding: 15px;"> <div class="layui-card-body" style="padding: 15px;">
<form class="layui-form layui-form-pane" lay-filter="dataForm"> <form id="dataForm" class="layui-form layui-form-pane" lay-filter="dataForm">
<div class="layui-row"> <div class="layui-row">
<div class="layui-col-md3"> <div class="layui-col-md3">
<div class="layui-form-item"> <div class="layui-form-item">
@ -39,7 +39,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="div-base-population-info" style="display: none"> <div class="div-base-population-info">
<blockquote class="layui-elem-quote">人员基础信息</blockquote> <blockquote class="layui-elem-quote">人员基础信息</blockquote>
<div class="layui-row"> <div class="layui-row">
<div class="layui-col-md3"> <div class="layui-col-md3">
@ -75,184 +75,177 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="div-form-content" style="display: none;">
<blockquote class="layui-elem-quote">刑满释放人员信息补充</blockquote>
<div class="layui-row">
<div class="layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">原罪名</label>
<div class="layui-input-block layui-form">
<select id="nameOfOriginalSin" name="nameOfOriginalSin" lay-verify="required">
<option value="">请选择原罪名</option>
<option value="危害国家安全罪">危害国家安全罪</option>
<option value="危害公共安全罪">危害公共安全罪</option>
<option value="破坏社会主义市场经济秩序罪">破坏社会主义市场经济秩序罪</option>
<option value="侵犯公民人身权利、民主权利罪">侵犯公民人身权利、民主权利罪</option>
<option value="侵犯财产罪">侵犯财产罪</option>
<option value="妨害社会管理秩序罪">妨害社会管理秩序罪</option>
<option value="危害国防利益罪">危害国防利益罪</option>
<option value="贪污贿赂罪">贪污贿赂罪</option>
<option value="渎职罪">渎职罪</option>
<option value="军人违反职责罪">军人违反职责罪</option>
</select>
</div>
</div>
</div>
<div class="layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">原判刑期</label>
<div class="layui-input-block">
<input type="text" id="originalSentenceData" name="originalSentenceData" class="layui-input" value="" placeholder="请输入原判刑期" lay-verify="required">
</div>
</div>
</div>
<div class="layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">是否累犯</label>
<div class="layui-input-block layui-form">
<select id="isCumulativeCrime" name="isCumulativeCrime">
<option value="0"></option>
<option value="1"></option>
</select>
</div>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">释放日期</label>
<div class="layui-input-block">
<input type="text" id="releaseDate" name="releaseDate" class="layui-input" value="" placeholder="请选择释放日期" readonly style="cursor: pointer;" lay-verify="required">
</div>
</div>
</div>
<div class="layui-col-md8">
<div class="layui-form-item">
<label class="layui-form-label">服刑场所</label>
<div class="layui-input-block">
<input type="text" id="servingSentencePlace" name="servingSentencePlace" class="layui-input" value="" placeholder="请输入服刑场所" lay-verify="required">
</div>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">衔接日期</label>
<div class="layui-input-block">
<input type="text" id="linkUpDate" name="linkUpDate" class="layui-input" value="" placeholder="请选择衔接日期" readonly style="cursor: pointer;" lay-verify="required">
</div>
</div>
</div>
<div class="layui-col-md8">
<div class="layui-form-item">
<label class="layui-form-label">衔接情况</label>
<div class="layui-input-block layui-form">
<select id="linkUpSituation" name="linkUpSituation" lay-verify="required">
<option value="">请选择衔接情况</option>
<option value="基层政府接回">基层政府接回</option>
<option value="监所送回原籍">监所送回原籍</option>
<option value="司法所接回">司法所接回</option>
<option value="公安机关落实管控措施">公安机关落实管控措施</option>
<option value="基层组织接回">基层组织接回</option>
<option value="人员自返">人员自返</option>
<option value="其他衔接情况">其他衔接情况</option>
</select>
</div>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">安置日期</label>
<div class="layui-input-block">
<input type="text" id="placementDate" name="placementDate" class="layui-input" value="" placeholder="请选择安置日期" readonly style="cursor: pointer;" lay-verify="required">
</div>
</div>
</div>
<div class="layui-col-md8">
<div class="layui-form-item">
<label class="layui-form-label">安置情况</label>
<div class="layui-input-block layui-form">
<select id="placementSituation" name="placementSituation" lay-verify="required">
<option value="">请选择安置情况</option>
<option value="落实责任田">落实责任田</option>
<option value="公益性岗位安置">公益性岗位安置</option>
<option value="企业认证为安置基地安置">企业认证为安置基地安置</option>
<option value="建设政府投入为主的安置基地安置">建设政府投入为主的安置基地安置</option>
<option value="从事个体经营">从事个体经营</option>
<option value="企业和经济实体吸纳就业">企业和经济实体吸纳就业</option>
<option value="自主创业">自主创业</option>
<option value="其他安置方式">其他安置方式</option>
</select>
</div>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label" style="width: 140px;">危险性评估类型</label>
<div class="layui-input-block layui-form" style="margin-left: 140px">
<select id="assessmentRiskType" name="assessmentRiskType" lay-verify="required">
<option value="">请选择危险性评估类型</option>
<option value="重点帮教人员">重点帮教人员</option>
<option value="一般帮教人员">一般帮教人员</option>
</select>
</div>
</div>
</div>
<div class="layui-col-md4">
<div class="layui-form-item" pane>
<label class="layui-form-label" style="width: 140px;">是否重新犯罪</label>
<div class="layui-input-block layui-form" style="margin-left: 140px">
<input type="radio" name="isCrimeAgain" value="0" title="否" checked>
<input type="radio" name="isCrimeAgain" value="1" title="是">
</div>
</div>
</div>
<div class="layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label" style="width: 140px;">重新犯罪罪名</label>
<div class="layui-input-block">
<input type="text" style="width: 93%" id="CrimeAgainCharge" name="CrimeAgainCharge" class="layui-input" value="" placeholder="请输入重新犯罪罪名" >
</div>
</div>
</div>
</div>
<div class="layui-row"> <div class="layui-row">
<div class="layui-col-md12"> <div class="layui-col-md12">
<div class="layui-form-item"> <div class="layui-form-item layui-form-text">
<label class="layui-form-label">现住地</label> <label class="layui-form-label">未安置原因</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="text" id="currentResidence" name="currentResidence" class="layui-input" value="" readonly="readonly"> <textarea id="unPlacementReason" name="unPlacementReason" class="layui-textarea" placeholder="请输入未安置原因"></textarea>
</div>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-md12">
<div class="layui-form-item layui-form-text">
<label class="layui-form-label">帮教情况</label>
<div class="layui-input-block">
<textarea id="helpAndEducate" name="helpAndEducate" class="layui-textarea" placeholder="请输入帮教情况"></textarea>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<blockquote class="layui-elem-quote">刑满释放人员信息补充</blockquote>
<div class="layui-row">
<div class="layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">原罪名</label>
<div class="layui-input-block layui-form">
<select id="nameOfOriginalSin" name="nameOfOriginalSin" lay-verify="required">
<option value="">请选择原罪名</option>
<option value="危害国家安全罪">危害国家安全罪</option>
<option value="危害公共安全罪">危害公共安全罪</option>
<option value="破坏社会主义市场经济秩序罪">破坏社会主义市场经济秩序罪</option>
<option value="侵犯公民人身权利、民主权利罪">侵犯公民人身权利、民主权利罪</option>
<option value="侵犯财产罪">侵犯财产罪</option>
<option value="妨害社会管理秩序罪">妨害社会管理秩序罪</option>
<option value="危害国防利益罪">危害国防利益罪</option>
<option value="贪污贿赂罪">贪污贿赂罪</option>
<option value="渎职罪">渎职罪</option>
<option value="军人违反职责罪">军人违反职责罪</option>
</select>
</div>
</div>
</div>
<div class="layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">原判刑期</label>
<div class="layui-input-block">
<input type="text" id="originalSentenceData" name="originalSentenceData" class="layui-input" value="" placeholder="请输入原判刑期" lay-verify="required">
</div>
</div>
</div>
<div class="layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">是否累犯</label>
<div class="layui-input-block layui-form">
<select id="isCumulativeCrime" name="isCumulativeCrime">
<option value="0"></option>
<option value="1"></option>
</select>
</div>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">释放日期</label>
<div class="layui-input-block">
<input type="text" id="releaseDate" name="releaseDate" class="layui-input" value="" placeholder="请选择释放日期" readonly style="cursor: pointer;" lay-verify="required">
</div>
</div>
</div>
<div class="layui-col-md8">
<div class="layui-form-item">
<label class="layui-form-label">服刑场所</label>
<div class="layui-input-block">
<input type="text" id="servingSentencePlace" name="servingSentencePlace" class="layui-input" value="" placeholder="请输入服刑场所" lay-verify="required">
</div>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">衔接日期</label>
<div class="layui-input-block">
<input type="text" id="linkUpDate" name="linkUpDate" class="layui-input" value="" placeholder="请选择衔接日期" readonly style="cursor: pointer;" lay-verify="required">
</div>
</div>
</div>
<div class="layui-col-md8">
<div class="layui-form-item">
<label class="layui-form-label">衔接情况</label>
<div class="layui-input-block layui-form">
<select id="linkUpSituation" name="linkUpSituation" lay-verify="required">
<option value="">请选择衔接情况</option>
<option value="基层政府接回">基层政府接回</option>
<option value="监所送回原籍">监所送回原籍</option>
<option value="司法所接回">司法所接回</option>
<option value="公安机关落实管控措施">公安机关落实管控措施</option>
<option value="基层组织接回">基层组织接回</option>
<option value="人员自返">人员自返</option>
<option value="其他衔接情况">其他衔接情况</option>
</select>
</div>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label">安置日期</label>
<div class="layui-input-block">
<input type="text" id="placementDate" name="placementDate" class="layui-input" value="" placeholder="请选择安置日期" readonly style="cursor: pointer;" lay-verify="required">
</div>
</div>
</div>
<div class="layui-col-md8">
<div class="layui-form-item">
<label class="layui-form-label">安置情况</label>
<div class="layui-input-block layui-form">
<select id="placementSituation" name="placementSituation" lay-verify="required">
<option value="">请选择安置情况</option>
<option value="落实责任田">落实责任田</option>
<option value="公益性岗位安置">公益性岗位安置</option>
<option value="企业认证为安置基地安置">企业认证为安置基地安置</option>
<option value="建设政府投入为主的安置基地安置">建设政府投入为主的安置基地安置</option>
<option value="从事个体经营">从事个体经营</option>
<option value="企业和经济实体吸纳就业">企业和经济实体吸纳就业</option>
<option value="自主创业">自主创业</option>
<option value="其他安置方式">其他安置方式</option>
</select>
</div>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label" style="width: 140px;">危险性评估类型</label>
<div class="layui-input-block layui-form" style="margin-left: 140px">
<select id="assessmentRiskType" name="assessmentRiskType" lay-verify="required">
<option value="">请选择危险性评估类型</option>
<option value="重点帮教人员">重点帮教人员</option>
<option value="一般帮教人员">一般帮教人员</option>
</select>
</div>
</div>
</div>
<div class="layui-col-md4">
<div class="layui-form-item" pane>
<label class="layui-form-label" style="width: 140px;">是否重新犯罪</label>
<div class="layui-input-block layui-form" style="margin-left: 140px">
<input type="radio" name="isCrimeAgain" value="0" title="否" checked>
<input type="radio" name="isCrimeAgain" value="1" title="是">
</div>
</div>
</div>
<div class="layui-col-md4">
<div class="layui-form-item">
<label class="layui-form-label" style="width: 140px;">重新犯罪罪名</label>
<div class="layui-input-block">
<input type="text" style="width: 93%" id="CrimeAgainCharge" name="CrimeAgainCharge" class="layui-input" value="" placeholder="请输入重新犯罪罪名" >
</div>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-md12">
<div class="layui-form-item layui-form-text">
<label class="layui-form-label">未安置原因</label>
<div class="layui-input-block">
<textarea id="unPlacementReason" name="unPlacementReason" class="layui-textarea" placeholder="请输入未安置原因"></textarea>
</div>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-col-md12">
<div class="layui-form-item layui-form-text">
<label class="layui-form-label">帮教情况</label>
<div class="layui-input-block">
<textarea id="helpAndEducate" name="helpAndEducate" class="layui-textarea" placeholder="请输入帮教情况"></textarea>
</div>
</div>
</div>
</div>
<div class="layui-form-item layui-layout-admin"> <div class="layui-form-item layui-layout-admin">
<div class="layui-input-block"> <div class="layui-input-block">
<div class="layui-footer" style="left: 0;"> <div class="layui-footer" style="left: 0;">
@ -295,10 +288,16 @@
var loadIndex = layer.load(1); var loadIndex = layer.load(1);
top.restAjax.get(top.restAjax.path('api/basepopulationinfo/getbasepopulationinfo', []), top.restAjax.get(top.restAjax.path('api/basepopulationinfo/getbasepopulationinfo', []),
{idCardNumber:idCardNumber}, null, function(code, data) { {idCardNumber:idCardNumber}, null, function(code, data) {
if(typeof (data) == 'undefined' || data == ''){ if(typeof (data) == 'undefined' || data.basePopulationInfoId == ''){
layer.msg('未查询到人员基础信息'); layer.msg('未查询到人员基础信息');
$('.submit-btn').hide();
$('.div-form-content').hide();
$('#dataForm')[0].reset();
form.render();
return false;
return false; return false;
} }
queryExistsData(idCardNumber);
var dataFormData = {}; var dataFormData = {};
for(var i in data) { for(var i in data) {
dataFormData[i] = data[i] +''; dataFormData[i] = data[i] +'';
@ -321,6 +320,18 @@
queryBasePopulationInfo($('#idCardNumber').val()); queryBasePopulationInfo($('#idCardNumber').val());
}); });
function queryExistsData(idCardNumber){
top.restAjax.get(top.restAjax.path('api/releaseaftersentence/getreleaseaftersentenceinfo', []),
{idCardNumber:idCardNumber}, null, function(code, data) {
if(data.releaseAfterSentenceId){
window.location.href = 'route/releaseaftersentence/update-releaseaftersentence.html?releaseAfterSentenceId=' + data.releaseAfterSentenceId;
}
}, function(code, data) {
console.log(data);
}
);
}
// 初始化释放日期日期 // 初始化释放日期日期
function initReleaseDateDate() { function initReleaseDateDate() {
laydate.render({ laydate.render({