-
-
-
- 检测结果
-
-
-
-
-
-
-
-
-
+
+
+
+
+ 案件信息
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
- 案件信息
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ 案件文档
+
+
+
+
+
+
-
-
-
-
- 案件文档
-
-
-
-
-
审批流程
@@ -1124,7 +1443,23 @@ import {
getExecuteByCaseId ,
getEndingByCaseId ,
progressList ,
- getOnrecordByCaseId
+ getOnrecordByCaseId,
+ getDeptName,
+ addSurvey,
+ updateSurvey,
+ addProgress,
+ updateCase,
+ addOnrecord,
+ commonUpload,
+ updatePutrecord,
+ updateSampling,
+ addSampling,
+ addPutrecord,
+ updateEvidence,
+ addEvidence,
+ caseHandlerList,
+ enforceLockinCount,
+ getCaseNum
} from "@/api/lawEnforcement/index";
import law from "@/components/common/law_footer";
import request from "@/utils/request";
@@ -1135,6 +1470,10 @@ export default {
},
data() {
return {
+ activeNames: ['1'],
+ activeNames1: ['1'],
+ activeNames2: ['1'],
+
showBankType:false,
showPayeeType:false,
showPicker:false,
@@ -1146,6 +1485,8 @@ export default {
payeeType:'',
value:'',
type:'',
+ surveyResult:'',
+ conclusion:'',
progressLength:0,
zhenchaShow:true,
@@ -1165,6 +1506,9 @@ export default {
qualityStatusOptions:[],
samplingSceneOptions:[],
conclusionOptions:[],
+ surveyResultOptions:[],
+ surveyResultOptionsY:[],
+ surveyResultOptionsN:[],
minDate: new Date(2020, 0, 1),
maxDate: new Date(2025, 10, 1),
currentDate: new Date(2021, 0, 17),
@@ -1456,6 +1800,7 @@ export default {
historyList: [],
evidencHistoryList: [],
treatHistoryList: [],
+ putRecordHistoryList: [],
// 检测结果数据
detectResults: [],
decisionEnforcers: [],
@@ -1529,6 +1874,19 @@ export default {
this.getDicts("aging_status").then(response => {
this.agingStatusOptions = response.data;
});
+ this.getDicts("team_category").then(response => {
+ this.belongTeamOptions = response.data;
+ });
+ this.getDicts("approve_type").then(response => {
+ response.data.map(res=>{
+ if (res.dictValue == '1'||res.dictValue == '3'||res.dictValue == '4'){
+ this.surveyResultOptionsY.push(res);
+ }
+ if (res.dictValue == '1'||res.dictValue == '2'){
+ this.surveyResultOptionsN.push(res);
+ }
+ })
+ });
// 关联方案下拉框
var schemeQueryParam = {
applyStatus: "1"
@@ -1538,9 +1896,6 @@ export default {
this.schemeOptions = response.data;
this.getInformation();
});
-
-
-
// treeselect().then((response) => {
// this.deptOptions = response.data;
// });
@@ -1627,17 +1982,24 @@ export default {
},
getInformation(){
getCase(this.$route.query.id).then(response => {
- console.log(response)
- response.data.caseSource = this.selectDictLabel(this.caseSourceOptions, response.data.caseSource);
- response.data.schemeId = this.selectDictScheme(this.schemeOptions, response.data.schemeId);
- response.data.typeLable = this.selectDictLabel(this.typeOptions, response.data.type);
- response.data.sex = this.selectDictLabel(this.sexOptions, response.data.sex);
- response.data.nation = this.selectDictLabel(this.nationOptions, response.data.nation);
+ response.data.schemeId = response.data.schemeId == '' ? '' : this.selectDictScheme(this.schemeOptions, response.data.schemeId);
+ response.data.typeLable = response.data.typeLable == '' ? '' : this.selectDictLabel(this.typeOptions, response.data.type);
+ response.data.nation = response.data.nation == '' ? '' : this.selectDictLabel(this.nationOptions, response.data.nation);
+
+ response.data.caseSource = response.data.caseSource == '' ? '' : this.selectDictLabel(this.caseSourceOptions, response.data.caseSource);
+ response.data.belongTeam = response.data.belongTeam == '' ? '' : this.selectDictLabel(this.belongTeamOptions, response.data.belongTeam);
+ response.data.type = response.data.type == '' ? '' : this.selectDictLabel(this.typeOptions, response.data.type);
+ response.data.sex = response.data.sex == '' ? '' : this.selectDictLabel(this.sexOptions, response.data.sex);
+ getDeptName(response.data.deptId).then(res => {
+ response.data.deptId = res.data.deptName
+ });
if (response.data.attachement){
var attachement = response.data.attachement.split( "," );
+ response.data.attachementList = []
attachement.forEach(res=>{
- this.attachementOption.push({
- url:res
+ response.data.attachementList.push({
+ url:'/api'+res,
+ isImage: true
});
})
}
@@ -1690,22 +2052,38 @@ export default {
if (this.form.id != null && this.form.id != "") {
this.surveyForm.caseId = this.form.id;
getSurveyByCaseId(this.form.id).then(responseSurvey => {
- console.log(responseSurvey)
if (responseSurvey.data != undefined) {
_this.surveyForm = responseSurvey.data;
_this.instanceId = responseSurvey.data.instanceId;
- _this.tEnforceCaseHandlerList = responseSurvey.data.tEnforceCaseHandlerList;
+ if (responseSurvey.data.tEnforceCaseHandlerList){
+ _this.tEnforceCaseHandlerList = responseSurvey.data.tEnforceCaseHandlerList;
+ responseSurvey.data.tEnforceCaseHandlerList.map((responseEnforce,index)=>{
+ responseEnforce.enforcerLeader = responseEnforce.enforcerLeader=='Y'? true:false
+ let data = {
+ enforcerId : responseEnforce.enforcerId,
+ caseId:this.form.id,
+ relationType: "2"
+ }
+ enforceLockinCount(data).then(resEnforceLockin => {
+ _this.$set(_this.tEnforceCaseHandlerList[index],"num",resEnforceLockin.data)
+ });
+ });
+ }
+ }else{
+
}
if (responseSurvey.data.attachement){
var attachement = responseSurvey.data.attachement.split( "," );
attachement.forEach(response=>{
this.surveyOption.push({
- url:response
+ url:'/api'+response,
+ isImage: true
});
+ this.openPic2.push(response)
})
}
- _this.surveyForm.gender = this.selectDictLabel(this.sexOptions, _this.surveyForm.gender);
- _this.surveyForm.surveyResult = this.selectDictLabel(this.surveyResultOptions, _this.surveyForm.surveyResult);
+ // _this.surveyForm.gender = this.selectDictLabel(this.sexOptions, _this.surveyForm.gender);
+ _this.surveyResult = this.selectDictLabel(this.surveyResultOptions, _this.surveyForm.surveyResult);
_this.surveyForm.caseName = this.form.caseName;
_this.surveyForm.schemeId = this.form.schemeId;
// 查询审批历史记录
@@ -1722,37 +2100,94 @@ export default {
getputRecordByCaseId(_this.form.id).then(responsePutRecord => {
getSamplingByCaseId(_this.form.id).then(responseSampling => {
if(responsePutRecord.data != undefined){
+ if (responsePutRecord.data.attachement){
+ var attachement = responsePutRecord.data.attachement.split( "," );
+ attachement.forEach(response=>{
+ this.samplingOption.push({
+ url:'/api' + response,
+ isImage: true
+ });
+ })
+ // process.env.VUE_APP_BASE_ROUTING_URL + process.env.VUE_APP_BASE_API
+ }
_this.putRecordForm = responsePutRecord.data;
- _this.tEnforcePutRecordHandlerList = responsePutRecord.data.tEnforceCaseHandlerList;
- _this.tEnforceDetainHandlerList = responsePutRecord.data.tEnforceDetainHandlerList;
+ _this.tEnforceDetainHandlerList = responsePutRecord.data.tEnforceDetainHandlerList == null ? [] : responsePutRecord.data.tEnforceDetainHandlerList;
+ if (responsePutRecord.data.id == ''){
+
+ // 立案表单没有保存之前,办理人员默认获取上一节点勘察的办理人员列表
+ const queryEnforcerParams = {
+ relationType: "2",
+ caseId: this.form.id
+ };
+ caseHandlerList(queryEnforcerParams).then(responseHandlerList => {
+ responseHandlerList.data.relationType = "3";
+ _this.tEnforcePutRecordHandlerList = responseHandlerList.data;
+ if (responseHandlerList.data){
+ responseHandlerList.data.map((responseEnforce,index)=>{
+ responseEnforce.enforcerLeader = responseEnforce.enforcerLeader=='Y'? true:false
+
+ let data = {
+ enforcerId : responseEnforce.enforcerId,
+ caseId:this.form.id,
+ relationType: "3"
+ }
+ enforceLockinCount(data).then(resEnforceLockin => {
+ _this.$set(_this.tEnforcePutRecordHandlerList[index],"num",resEnforceLockin.data)
+ });
+
+ });
+ }
+ });
+ }else{
+ _this.tEnforcePutRecordHandlerList = responsePutRecord.data.tEnforceCaseHandlerList;
+ if (responsePutRecord.data.tEnforceCaseHandlerList){
+ console.log(responsePutRecord.data.tEnforceCaseHandlerList)
+ responsePutRecord.data.tEnforceCaseHandlerList.map((responseEnforce,index)=>{
+ responseEnforce.enforcerLeader = responseEnforce.enforcerLeader=='Y'? true:false
+ let data = {
+ enforcerId : responseEnforce.enforcerId,
+ caseId:this.form.id,
+ relationType: "3"
+ }
+ enforceLockinCount(data).then(resEnforceLockin => {
+ _this.$set(_this.tEnforcePutRecordHandlerList[index],"num",resEnforceLockin.data)
+ });
+ });
+ }
+ console.log(_this.tEnforcePutRecordHandlerList)
+ }
+
+ }else{
+ _this.putRecordForm.attachement = [];
+ _this.putRecordForm.attachementList = [];
}
if(responseSampling.data != undefined) {
_this.samplingForm = responseSampling.data;
_this.tEnforceSamplingGoodsList = responseSampling.data.tEnforceSamplingGoodsList;
for (var i = 0 ; i < responseSampling.data.tEnforceSamplingGoodsList.length ; i++){
- if (responseSampling.data.tEnforceSamplingGoodsList[i].attachement){
+ responseSampling.data.tEnforceSamplingGoodsList[i].showTimeliness = false;
+ if (responseSampling.data.tEnforceSamplingGoodsList[i].attachement != null){
responseSampling.data.tEnforceSamplingGoodsList[i].attachementList = [];
var Sampling = responseSampling.data.tEnforceSamplingGoodsList[i].attachement.split( "," );
Sampling.forEach(response=>{
responseSampling.data.tEnforceSamplingGoodsList[i].attachementList.push({
- url:process.env.VUE_APP_BASE_ROUTING_URL + process.env.VUE_APP_BASE_API + response,
+ url:'/api' + response,
+ isImage: true
});
+ // process.env.VUE_APP_BASE_ROUTING_URL + process.env.VUE_APP_BASE_API
})
+ }else{
+ responseSampling.data.tEnforceSamplingGoodsList[i].attachement = [];
}
}
console.log(responseSampling.data.tEnforceSamplingGoodsList)
}
- if (responsePutRecord.data.attachement){
- var attachement = responsePutRecord.data.attachement.split( "," );
- attachement.forEach(response=>{
- this.samplingOption.push({
- url:process.env.VUE_APP_BASE_ROUTING_URL + process.env.VUE_APP_BASE_API + response,
- });
- })
- }
+
_this.putRecordForm.caseName = this.form.caseName;
_this.putRecordForm.schemeId = this.form.schemeId;
+ // 查询审批历史记录
+ _this.getHistoryList(_this.putRecordForm,'putRecord');
});
});
}
@@ -1774,47 +2209,110 @@ export default {
responseReport.data.goodsId = goodsId;
responseReport.data.goodsName = goodsName;
responseReport.data.attachementList = [];
-
+ if (responseReport.data.attachement){
+ var Evidence = responseReport.data.attachement.split( "," );
+ console.log(Evidence)
+ Evidence.forEach(response=>{
+ responseReport.data.attachementList.push({
+ url:'/api' + response,
+ });
+ })
+ }else{
+ responseReport.data.attachement = [];
+ responseReport.data.attachementList = [];
+ }
_this.detectResults.push(responseReport.data);
} else {
var goodsObj = {
"goodsId": goodsId,
- "goodsName": goodsName
+ "goodsName": goodsName,
+ attachement:[]
};
_this.detectResults.push(goodsObj);
}
});
+ // if (responseSampling.data.tEnforceSamplingGoodsList[i].attachement){
+ // responseSampling.data.tEnforceSamplingGoodsList[i].attachementList = [];
+ // var Sampling = responseSampling.data.tEnforceSamplingGoodsList[i].attachement.split( "," );
+ // Sampling.forEach(response=>{
+ // responseSampling.data.tEnforceSamplingGoodsList[i].attachementList.push({
+ // url: '/api' + response,
+ // });
+ // // process.env.VUE_APP_BASE_ROUTING_URL + process.env.VUE_APP_BASE_API
+ // })
+ // }else{
+ // responseSampling.data.tEnforceSamplingGoodsList[i].attachement = [];
+ // responseSampling.data.tEnforceSamplingGoodsList[i].attachementList = [];
+ // }
}
+
+
+
if (responseEvidence.data != undefined) {
responseEvidence.data.attachementList = [];
+ _this.tEnforceEvidenceHandlerList = responseEvidence.data.tEnforceCaseHandlerList;
+ if (responseEvidence.data.tEnforceCaseHandlerList){
+ responseEvidence.data.tEnforceCaseHandlerList.map((responseEnforce,index)=>{
+ responseEnforce.enforcerLeader = responseEnforce.enforcerLeader=='Y'? true:false
+ let data = {
+ enforcerId : responseEnforce.enforcerId,
+ caseId:this.form.id,
+ relationType: "4"
+ }
+ enforceLockinCount(data).then(resEnforceLockin => {
+ _this.$set(_this.tEnforceEvidenceHandlerList[index],"num",resEnforceLockin.data)
+ });
+
+ });
+ }
responseEvidence.data.conclusion = this.selectDictLabel(this.conclusionOptions,responseEvidence.data.conclusion)
_this.evidenceForm = responseEvidence.data;
- _this.tEnforceEvidenceHandlerList = responseEvidence.data.tEnforceCaseHandlerList;
- console.log(responseEvidence.data)
+
+
if (responseEvidence.data.attachement){
var Evidence = responseEvidence.data.attachement.split( "," );
Evidence.forEach(response=>{
responseEvidence.data.attachementList.push({
- url:process.env.VUE_APP_BASE_ROUTING_URL + process.env.VUE_APP_BASE_API + response,
+ url:'/api' + response,
});
})
+ // process.env.VUE_APP_BASE_ROUTING_URL + process.env.VUE_APP_BASE_API
+ }else{
+ responseEvidence.data.attachement = [];
}
- }
- setTimeout(function () {
- for (var i = 0 ; i < responseSampling.data.tEnforceSamplingGoodsList.length ; i++){
- console.log(_this.detectResults[0])
- if (responseSampling.data.tEnforceSamplingGoodsList[i].attachement){
- var Sampling = responseSampling.data.tEnforceSamplingGoodsList[i].attachement.split( "," );
- Sampling.forEach(response=>{
- _this.detectResults[i].attachementList.push({
- url:process.env.VUE_APP_BASE_ROUTING_URL + process.env.VUE_APP_BASE_API + response,
+ }else{
+ _this.evidenceForm.attachement = [];
+
+
+ // 取证表单没有保存之前,办理人员默认获取上一节点立案的办理人员列表
+ const queryEnforcerParams = {
+ relationType: "3",
+ caseId: this.form.id
+ };
+ caseHandlerList(queryEnforcerParams).then(responseHandlerList => {
+ responseHandlerList.data.relationType = "4";
+ _this.tEnforceEvidenceHandlerList = responseHandlerList.data;
+
+ if (responseHandlerList.data){
+ responseHandlerList.data.map((responseEnforce,index)=>{
+ responseEnforce.enforcerLeader = responseEnforce.enforcerLeader=='Y'? true:false
+ let data = {
+ enforcerId : responseEnforce.enforcerId,
+ caseId:this.form.id,
+ relationType: "4"
+ }
+ enforceLockinCount(data).then(resEnforceLockin => {
+ _this.$set(_this.tEnforceEvidenceHandlerList[index],"num",resEnforceLockin.data)
});
- })
+
+ });
}
- }
- },1000)
+ });
+
+ }
+
_this.evidenceForm.caseName = this.form.caseName;
_this.evidenceForm.schemeId = this.form.schemeId;
// 查询审批历史记录
@@ -2165,6 +2663,15 @@ export default {
row.durationInMillis / 1000
);
});
+ }else if (type == 'putRecord'){
+ this.putRecordHistoryList = response.rows;
+ this.putRecordHistoryList.forEach((row) => {
+ row.startTime = this.format(row.startTime, "yyyy-MM-dd HH:mm:ss");
+ row.endTime = this.format(row.endTime, "yyyy-MM-dd HH:mm:ss");
+ row.durationInMillis = this.formatTotalDateSub(
+ row.durationInMillis / 1000
+ );
+ });
}else{
this.historyList = response.rows;
this.historyList.forEach((row) => {
@@ -2273,6 +2780,9 @@ export default {
top: 36px;
}
}
+/deep/ .van-collapse-item__content{
+ padding: 0;
+}
.van-row{
display: flex;
flex-wrap: wrap;
@@ -2413,6 +2923,7 @@ export default {
.peopleList{
padding: 0 3%;
margin-top: 10PX;
+ text-align: center;
.van-row{
margin-bottom: 10PX;
.van-col{
@@ -2425,6 +2936,13 @@ export default {
}
}
}
+ .icon_box{
+ display: flex;
+ justify-content: space-around;
+ /deep/ .van-checkbox{
+ justify-content: center;
+ }
+ }
}
.cf{
padding: 0 3%;
diff --git a/src/views/lawEnforcement/caseAllocation/caseDistribution.vue b/src/views/lawEnforcement/caseAllocation/caseDistribution.vue
index 174c908c..f4319abd 100644
--- a/src/views/lawEnforcement/caseAllocation/caseDistribution.vue
+++ b/src/views/lawEnforcement/caseAllocation/caseDistribution.vue
@@ -179,8 +179,6 @@
next('/url') //放行到指定的路由
*/
next(vm => {
- console.log(from.path)
- console.log(to.path)
if (from.path === '/lawEnforcement/caseAllocation'){
location.reload()
}
@@ -282,6 +280,7 @@
$route (to, from ) {
// 监听路由变化, 实现类似 小程序的 onShow 事件
if (to.path === '/lawEnforcement/caseDistribution') {
+ console.log('aaaa')
// do anything you want
if (Cookies.get('enforcer')){
getSurveyByCaseId(this.$route.query.id).then((response) => {
@@ -295,7 +294,10 @@
})
}else {
JSON.parse(Cookies.get('enforcer')).map((res,index)=>{
+ let array1 = this.tEnforceCaseHandlerList.filter(function (e) { return e.enforcerName == res.enforcerName; });
+ if ( array1.length < 1 ){
this.tEnforceCaseHandlerList.push(res)
+ }
})
}
});
diff --git a/src/views/lawEnforcement/caseAllocation/caseListNew.vue b/src/views/lawEnforcement/caseAllocation/caseListNew.vue
index 12995861..e5f60d28 100644
--- a/src/views/lawEnforcement/caseAllocation/caseListNew.vue
+++ b/src/views/lawEnforcement/caseAllocation/caseListNew.vue
@@ -153,8 +153,8 @@
this.loading = false;
this.finished = false;
this.queryApplyParams.pageNum = 1 ;
- this.getList();
this.$notify({ type: 'success', message: '提交成功' });
+ location.reload();
}).catch(() => {});
}
},
diff --git a/src/views/lawEnforcement/supervise/enterprise.vue b/src/views/lawEnforcement/supervise/enterprise.vue
index bd84d177..afe5f2fd 100644
--- a/src/views/lawEnforcement/supervise/enterprise.vue
+++ b/src/views/lawEnforcement/supervise/enterprise.vue
@@ -99,6 +99,9 @@
if (this.searchInput == ''){
location.reload()
}
+ if (this.searchInput == this.queryParams.companyName){
+ return;
+ }
this.list = [];
this.loading = false;
this.finished = false;
diff --git a/src/views/lawEnforcement/supervise/enterpriseDetail.vue b/src/views/lawEnforcement/supervise/enterpriseDetail.vue
index 61126875..c7577c4f 100644
--- a/src/views/lawEnforcement/supervise/enterpriseDetail.vue
+++ b/src/views/lawEnforcement/supervise/enterpriseDetail.vue
@@ -18,7 +18,7 @@
-
关联案件
+
关联案件
diff --git a/src/views/lawEnforcement/task/taskDetail.vue b/src/views/lawEnforcement/task/taskDetail.vue
index e22c6315..60daf9db 100644
--- a/src/views/lawEnforcement/task/taskDetail.vue
+++ b/src/views/lawEnforcement/task/taskDetail.vue
@@ -13,13 +13,13 @@