Browse Source

9.8 吹哨更新

fengyu 3 years ago
parent
commit
78d40ebfb6
  1. 130
      src/views/modules/events/item-deal-detail-view.vue

130
src/views/modules/events/item-deal-detail-view.vue

@ -190,9 +190,24 @@
type="textarea" type="textarea"
maxlength="100" maxlength="100"
show-word-limit show-word-limit
placeholder="请您填写项目的实际办理情况(自己处理、吹哨报道、内部协调),便于相关部门了解项目的实际情况"></el-input> placeholder="请您填写项目的实际办理情况(自己处理、吹哨报到、内部协调),便于相关部门了解项目的实际情况"></el-input>
</el-form-item>
<el-form-item label="当前办理情况:" prop="handleAdvice" v-if="!isShowDeal" >
<span>网格层面无法办理请点击吹哨报到写明当前办理情况及无法办理的原因
网格层面已办理完成请上传照片点击结案申请写明答复依据办理结果等要素态度要真诚容易接受语言要朴实简练杜绝出现错字别字表述不清等现象此内容经区级平台核查后反馈给诉求人
</span>
</el-form-item>
<el-form-item label="当前办理情况:" prop="handleAdvice" v-if="isShowDeal" >
<span>您反映的诉求属于{{postDataForm.handleAdvice}}情形不属于平台受理范围感谢您对北尚诉办台的持
</span>
</el-form-item>
<el-form-item label="办理人:" prop="handlePeopleName" >
<el-input v-model="postDataForm.handlePeopleName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="办理人办公电话:" prop="handlePeopleMobile" >
<el-input v-model="postDataForm.handlePeopleName"></el-input>
</el-form-item>
<el-form-item label="不予受理原因:" prop="handleAdvice" v-if="isShowDeal"> <el-form-item label="不予受理原因:" prop="handleAdvice" v-if="isShowDeal">
<el-radio-group v-model="postDataForm.handleAdvice" class="handleAdvice"> <el-radio-group v-model="postDataForm.handleAdvice" class="handleAdvice">
<el-radio label="历史遗留暂不具备解决条件的事项">1. 历史遗留暂不具备解决条件的事项</el-radio> <el-radio label="历史遗留暂不具备解决条件的事项">1. 历史遗留暂不具备解决条件的事项</el-radio>
@ -339,7 +354,7 @@ export default {
map: "", map: "",
innerVisible: false, innerVisible: false,
showAdvice: true, showAdvice: true,
typeKey:'', // typeKey: "", //
dataForm: { dataForm: {
id: "", id: "",
nickName: "", nickName: "",
@ -369,6 +384,8 @@ export default {
total: null, total: null,
postDataForm: { postDataForm: {
id: "", id: "",
handlePeopleName: "",
handlePeopleMobile: "",
handleAdvice: "", handleAdvice: "",
outHandleAdvice: "", outHandleAdvice: "",
handleCategory: "", handleCategory: "",
@ -525,6 +542,20 @@ export default {
trigger: "blur", trigger: "blur",
}, },
], ],
// handlePeopleName: [
// {
// required: true,
// message: "",
// trigger: "blur",
// },
// ],
// handlePeopleMobile: [
// {
// required: true,
// message: "",
// trigger: "blur",
// },
// ],
categoryIds: [ categoryIds: [
{ {
required: true, required: true,
@ -536,7 +567,6 @@ export default {
}, },
}, },
watch: { watch: {
"postDataForm.handleAdvice": function(val) { "postDataForm.handleAdvice": function(val) {
this.dataForm.handleAdvice = val; this.dataForm.handleAdvice = val;
}, },
@ -544,15 +574,17 @@ export default {
this.dataForm.outHandleAdvice = val; this.dataForm.outHandleAdvice = val;
}, },
"postDataForm.handleCategoryShow": function(val) { "postDataForm.handleCategoryShow": function(val) {
if(this.typeKey == 'community_party'){ if (this.typeKey == "community_party") {
if (val == 6) { if (val == 6) {
this.isShowDeal = true; this.isShowDeal = true;
this.showAdvice = false; this.showAdvice = false;
this.isWhistle = false; this.isWhistle = false;
this.postDataForm.handleAdvice = '历史遗留暂不具备解决条件的事项'
} else { } else {
this.isShowDeal = false; this.isShowDeal = false;
this.showAdvice = true; this.showAdvice = true;
this.isWhistle = true; this.isWhistle = true;
this.postDataForm.handleAdvice = ''
} }
} }
if (val === 1) { if (val === 1) {
@ -621,7 +653,6 @@ export default {
}/oss/file/uploadImg?token=${Cookies.get("token")}`; }/oss/file/uploadImg?token=${Cookies.get("token")}`;
}, },
methods: { methods: {
refreshProgress() { refreshProgress() {
this.timeloading = true; this.timeloading = true;
this.$http this.$http
@ -776,7 +807,7 @@ export default {
.catch(() => {}); .catch(() => {});
}, },
visibleChange(val) { visibleChange(val) {
console.log(1111) console.log(1111);
if ( if (
this.dataForm.handleResultDTOS.length === 0 && this.dataForm.handleResultDTOS.length === 0 &&
this.dataForm.handlerDeptIdRule === "" && this.dataForm.handlerDeptIdRule === "" &&
@ -794,7 +825,7 @@ export default {
changeHandle(value, selectedData) { changeHandle(value, selectedData) {
let node = this.$refs.name.getCheckedNodes()[0]; let node = this.$refs.name.getCheckedNodes()[0];
console.log(node) console.log(node);
this.postDataForm.handlerDept = this.$refs[ this.postDataForm.handlerDept = this.$refs[
"name" "name"
].getCheckedNodes()[0].label; ].getCheckedNodes()[0].label;
@ -822,11 +853,22 @@ export default {
return this.$message.error(res.msg); return this.$message.error(res.msg);
} }
this.checkParentName = res.data.parentDeptName; this.checkParentName = res.data.parentDeptName;
this.postDataForm.outHandleAdvice = res.data.parentDeptName+"正在处理"
if(res.data.typeKey == 'grid_party'){
this.postDataForm.outHandleAdvice ="您的诉求, "+ res.data.parentDeptName + "社区正在全力办理";
}else{
this.postDataForm.outHandleAdvice =
"您的诉求, "+res.data.parentDeptName + "街道正在协调办理,请您耐心等待";
}
this.dataForm.handleResultDTOS = res.data.handleResultDTOS; this.dataForm.handleResultDTOS = res.data.handleResultDTOS;
this.typeKey = res.data.typeKey; this.typeKey = res.data.typeKey;
if(res.data.handleResultDTOS && res.data.handleResultDTOS.length>0 && res.data.typeKey == 'grid_party'){ if (
this.postDataForm.handleCategoryShow = res.data.handleResultDTOS[0].processResult; res.data.handleResultDTOS &&
res.data.handleResultDTOS.length > 0 &&
res.data.typeKey == "grid_party"
) {
this.postDataForm.handleCategoryShow =
res.data.handleResultDTOS[0].processResult;
} }
this.dataForm.deptResultDTOS = res.data.deptResultDTOS; this.dataForm.deptResultDTOS = res.data.deptResultDTOS;
this.dataForm.evaluateDeptDTOS = res.data.evaluateDeptDTOS; this.dataForm.evaluateDeptDTOS = res.data.evaluateDeptDTOS;
@ -981,7 +1023,8 @@ export default {
) { ) {
const handleResultDTO = res.data.handleResultDTOS[index]; const handleResultDTO = res.data.handleResultDTOS[index];
if (handleResultDTO.select === true) { if (handleResultDTO.select === true) {
this.dataForm.handleCategoryShow = handleResultDTO.processResult; this.dataForm.handleCategoryShow =
handleResultDTO.processResult;
} }
} }
}) })
@ -1049,7 +1092,7 @@ export default {
// //
dataFormSubmitHandle: debounce( dataFormSubmitHandle: debounce(
function(type='') { function(type = "") {
this.postDataForm.categoryId = this.categoryIds[ this.postDataForm.categoryId = this.categoryIds[
this.categoryIds.length - 1 this.categoryIds.length - 1
]; ];
@ -1068,6 +1111,14 @@ export default {
if (this.postDataForm.handleCategoryShow === "") { if (this.postDataForm.handleCategoryShow === "") {
return this.$message.error("请选择处理选项"); return this.$message.error("请选择处理选项");
} }
if(type == 11){
if (this.postDataForm.handlePeopleName === "") {
return this.$message.error("请输入办理人姓名!");
}
if (this.postDataForm.handlePeopleMobile === "") {
return this.$message.error("请输入办理人办公电话!");
}
}
if (this.deptResultDTOSVisible) { if (this.deptResultDTOSVisible) {
if ( if (
this.postDataForm.deptResultDTOS === undefined || this.postDataForm.deptResultDTOS === undefined ||
@ -1135,25 +1186,35 @@ export default {
himg himg
] = this.postDataForm.handleImagesPC[himg].url; ] = this.postDataForm.handleImagesPC[himg].url;
} }
let messageTitle = "";
if (type == 1) { if (type == 1) {
// //
if(this.typeKey == 'community_party'){ if (this.typeKey == "community_party") {
messageTitle = "此案件尚未办结,确定吹哨给街道办理"
this.postDataForm.handleCategory = 15; this.postDataForm.handleCategory = 15;
}else if(this.typeKey == 'grid_party'){ } else if (this.typeKey == "grid_party") {
messageTitle = "此案件尚未办结,确定吹哨给社区办理"
this.postDataForm.handleCategory = 1; this.postDataForm.handleCategory = 1;
} }
} else { } else {
messageTitle = "此案件已办结,确定申请结案"
this.postDataForm.handleCategory = 11; this.postDataForm.handleCategory = 11;
} }
let imagesAttr = this.postDataForm.handleImagesPC; let imagesAttr = this.postDataForm.handleImagesPC;
imagesAttr.forEach((item) => { imagesAttr.forEach((item) => {
item.uid = item.uid+'77000' item.uid = item.uid + "77000";
}) });
this.postDataForm.outHandleImagesPC = imagesAttr; this.postDataForm.outHandleImagesPC = imagesAttr;
this.postDataForm.outHandleImages = this.postDataForm.handleImages; this.postDataForm.outHandleImages = this.postDataForm.handleImages;
console.log(this.postDataForm) console.log(this.postDataForm);
this.$confirm(messageTitle, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}).then(() => {
this.$http["post"]("/events/item/itemHandleSubmit", this.postDataForm) this.$http["post"]("/events/item/itemHandleSubmit", this.postDataForm)
.then(({ data: res }) => { .then(({ data: res }) => {
@ -1173,6 +1234,8 @@ export default {
this.$parent.selectComponent = "ItemDeal"; this.$parent.selectComponent = "ItemDeal";
}) })
.catch(() => {}); .catch(() => {});
});
}, },
1000, 1000,
{ leading: true, trailing: false } { leading: true, trailing: false }
@ -1188,6 +1251,7 @@ export default {
</style> </style>
<style lang="scss"> <style lang="scss">
.project-handle { .project-handle {
.el-timeline { .el-timeline {
padding-left: 9px; padding-left: 9px;
@ -1203,6 +1267,36 @@ export default {
.el-form-item__label { .el-form-item__label {
font-weight: bold; font-weight: bold;
} }
.userInfo{
display: flex;
.el-input {
width: 300px !important;
}
.el-form-item:nth-child(1){
.el-form-item__label{
text-align: left;
width: 80px !important;
}
.el-form-item__content{
width: 300px !important;
margin-left: 80px !important;
}
}
.el-form-item:nth-child(2){
.el-form-item__label{
text-align: left;
width: 140px !important;
}
.el-form-item__content{
width: 300px !important;
margin-left: 140px !important;
}
}
}
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>

Loading…
Cancel
Save