|
|
|
@ -272,7 +272,7 @@ |
|
|
|
:class="{hide:hideUploadIn}" |
|
|
|
list-type="picture-card" |
|
|
|
:file-list="postDataForm.handleImagesPC" |
|
|
|
|
|
|
|
|
|
|
|
:limit=3 |
|
|
|
:on-preview="handlePictureCardPreviewIn" |
|
|
|
:on-remove="handleRemoveIn" |
|
|
|
@ -285,7 +285,6 @@ |
|
|
|
<div><font color="gray">1~3张图</font></div> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="满意度评价:" |
|
|
|
prop="evaluateDeptDTOS" |
|
|
|
v-if="evaluateDeptDTOSVisible"> |
|
|
|
@ -549,68 +548,15 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
return { |
|
|
|
handleAdvice: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: this.$t('validate.required'), |
|
|
|
trigger: 'blur' |
|
|
|
} |
|
|
|
], |
|
|
|
handleAdviceRadios: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: this.$t('validate.required'), |
|
|
|
trigger: 'blur' |
|
|
|
} |
|
|
|
], |
|
|
|
outHandleAdvice: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: this.$t('validate.required'), |
|
|
|
trigger: 'blur' |
|
|
|
} |
|
|
|
], |
|
|
|
handleCategoryShow: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: this.$t('validate.required'), |
|
|
|
trigger: 'blur' |
|
|
|
} |
|
|
|
], |
|
|
|
deptResultDTOS: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: this.$t('validate.required'), |
|
|
|
trigger: 'blur' |
|
|
|
} |
|
|
|
], |
|
|
|
evaluateDeptDTOS: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: this.$t('validate.required'), |
|
|
|
trigger: 'blur' |
|
|
|
} |
|
|
|
], |
|
|
|
handlerDeptIdRule: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: this.$t('validate.required'), |
|
|
|
trigger: 'blur' |
|
|
|
} |
|
|
|
], |
|
|
|
handlePeopleName: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: '请输入办理人姓名', |
|
|
|
trigger: 'blur' |
|
|
|
} |
|
|
|
], |
|
|
|
handlePeopleMobile: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: '请输入办公电话', |
|
|
|
trigger: 'blur' |
|
|
|
}, |
|
|
|
handleAdvice: [{ required: true, message: this.$t('validate.required'), trigger: 'blur' }], |
|
|
|
handleAdviceRadios: [ { required: true, message: this.$t('validate.required'), trigger: 'blur' } ], |
|
|
|
outHandleAdvice: [ { required: true, message: this.$t('validate.required'), trigger: 'blur' } ], |
|
|
|
handleCategoryShow: [ { required: true, message: this.$t('validate.required'), trigger: 'blur' } ], |
|
|
|
deptResultDTOS: [ { required: true, message: this.$t('validate.required'), trigger: 'blur' } ], |
|
|
|
evaluateDeptDTOS: [ { required: true, message: this.$t('validate.required'), trigger: 'blur' } ], |
|
|
|
handlerDeptIdRule: [ { required: true, message: this.$t('validate.required'), trigger: 'blur' } ], |
|
|
|
handlePeopleName: [ { required: true, message: '请输入办理人姓名', trigger: 'blur' } ], |
|
|
|
handlePeopleMobile: [ { required: true, message: '请输入办公电话', trigger: 'blur' }, |
|
|
|
{ validator: checkPhone, trigger: 'blur' } |
|
|
|
], |
|
|
|
categoryIds: [ |
|
|
|
@ -624,29 +570,24 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
'typeKey':function(val){ |
|
|
|
this.isAble = true; |
|
|
|
if(val == 'grid_party'){ |
|
|
|
this.isAble = false; |
|
|
|
this.uploadUrl = `${ |
|
|
|
window.SITE_CONFIG['apiURL'] |
|
|
|
}/oss/file/uploadImg/1?token=${Cookies.get('token')}`; |
|
|
|
|
|
|
|
}else if(val == 'community_party'){ |
|
|
|
this.isAble = false; |
|
|
|
this.uploadUrl = `${ |
|
|
|
window.SITE_CONFIG['apiURL'] |
|
|
|
}/oss/file/uploadImg/2?token=${Cookies.get('token')}` |
|
|
|
} |
|
|
|
|
|
|
|
this.postDataForm.handleImagesPC = []; |
|
|
|
'typeKey': function (val) { |
|
|
|
this.isAble = true |
|
|
|
if (val == 'grid_party') { |
|
|
|
this.isAble = false |
|
|
|
this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/oss/file/uploadImg/1?token=${Cookies.get('token')}` |
|
|
|
} else if (val == 'community_party') { |
|
|
|
this.isAble = false |
|
|
|
this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/oss/file/uploadImg/2?token=${Cookies.get('token')}` |
|
|
|
} |
|
|
|
|
|
|
|
this.postDataForm.handleImagesPC = [] |
|
|
|
}, |
|
|
|
'postDataForm.handleAdvice': function (val) { |
|
|
|
this.dataForm.handleAdvice = val |
|
|
|
}, |
|
|
|
'postDataForm.handleAdviceRadios': function (val) { |
|
|
|
this.postDataForm.handleAdvice = val |
|
|
|
this.dataForm.handleAdviceRadios = val; |
|
|
|
this.dataForm.handleAdviceRadios = val |
|
|
|
}, |
|
|
|
|
|
|
|
'postDataForm.outHandleAdvice': function (val) { |
|
|
|
@ -676,11 +617,7 @@ export default { |
|
|
|
if (val === 1) { |
|
|
|
this.deptResultDTOSVisible = false |
|
|
|
this.evaluateDeptDTOSVisible = false |
|
|
|
for ( |
|
|
|
let index = 0; |
|
|
|
index < this.dataForm.deptResultDTOS.length; |
|
|
|
index++ |
|
|
|
) { |
|
|
|
for (let index = 0; index < this.dataForm.deptResultDTOS.length; index++) { |
|
|
|
const deptResultDTO = this.dataForm.deptResultDTOS[index] |
|
|
|
if (deptResultDTO.selected === true) { |
|
|
|
// this.postDataForm.deptResultDTOS.push(deptResultDTO) |
|
|
|
@ -745,31 +682,27 @@ export default { |
|
|
|
}, |
|
|
|
refreshProgress () { |
|
|
|
this.timeloading = true |
|
|
|
this.$http |
|
|
|
.get(`/events/platform/item/get/${this.dataForm.id}`) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.getInfo() |
|
|
|
// console.log(res) |
|
|
|
}) |
|
|
|
this.$http.get(`/events/platform/item/get/${this.dataForm.id}`).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.getInfo() |
|
|
|
// console.log(res) |
|
|
|
}) |
|
|
|
.catch(() => {}) |
|
|
|
}, |
|
|
|
getCategoryList () { |
|
|
|
this.disabledCategory = true |
|
|
|
return this.$http |
|
|
|
.get('/events/category/list') |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
var data = res.data |
|
|
|
return this.$http.get('/events/category/list').then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
var data = res.data |
|
|
|
|
|
|
|
this.getSelectedNode(data, data) |
|
|
|
this.categoryOptions = data |
|
|
|
this.disabledCategory = false |
|
|
|
}) |
|
|
|
this.getSelectedNode(data, data) |
|
|
|
this.categoryOptions = data |
|
|
|
this.disabledCategory = false |
|
|
|
}) |
|
|
|
.catch(() => {}) |
|
|
|
}, |
|
|
|
getSelectedNode (nodeData, parent) { |
|
|
|
@ -889,14 +822,12 @@ export default { |
|
|
|
this.$parent.selectComponent = 'ItemDeal' |
|
|
|
}, |
|
|
|
getOptions () { |
|
|
|
this.$http |
|
|
|
.get(`/sys/user/deptOptions/getDeptAuthByUser`) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.options = res.data.options |
|
|
|
}) |
|
|
|
this.$http.get(`/sys/user/deptOptions/getDeptAuthByUser`).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.options = res.data.options |
|
|
|
}) |
|
|
|
.catch(() => {}) |
|
|
|
}, |
|
|
|
visibleChange (val) { |
|
|
|
@ -917,15 +848,8 @@ export default { |
|
|
|
// } |
|
|
|
}, |
|
|
|
changeHandle (value, selectedData) { |
|
|
|
let node = this.$refs.name.getCheckedNodes()[0] |
|
|
|
|
|
|
|
console.log(node) |
|
|
|
this.postDataForm.handlerDept = this.$refs[ |
|
|
|
'name' |
|
|
|
].getCheckedNodes()[0].label |
|
|
|
this.postDataForm.handlerDeptId = this.$refs[ |
|
|
|
'name' |
|
|
|
].getCheckedNodes()[0].value |
|
|
|
this.postDataForm.handlerDept = this.$refs['name'].getCheckedNodes()[0].label |
|
|
|
this.postDataForm.handlerDeptId = this.$refs['name'].getCheckedNodes()[0].value |
|
|
|
this.getHandleResultDTOS() |
|
|
|
}, |
|
|
|
// 获取处理项 |
|
|
|
@ -937,33 +861,31 @@ export default { |
|
|
|
this.postDataForm.deptResultDTOS = [] |
|
|
|
this.postDataForm.evaluateDeptDTOS = [] |
|
|
|
this.deptResult = [] |
|
|
|
this.$http |
|
|
|
.post(`/events/item/getHandleResultDTOS`, { |
|
|
|
itemId: this.dataForm.id, |
|
|
|
deptId: this.postDataForm.handlerDeptId |
|
|
|
}) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.checkParentName = res.data.parentDeptName |
|
|
|
this.$http.post(`/events/item/getHandleResultDTOS`, { |
|
|
|
itemId: this.dataForm.id, |
|
|
|
deptId: this.postDataForm.handlerDeptId |
|
|
|
}).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.checkParentName = res.data.parentDeptName |
|
|
|
|
|
|
|
if (res.data.typeKey == 'grid_party') { |
|
|
|
// this.postDataForm.outHandleAdvice = '您的诉求, ' + res.data.parentDeptName + '正在全力办理' |
|
|
|
this.postDataForm.outHandleAdvice = '您的诉求, 社区正在全力办理' |
|
|
|
} else if (res.data.typeKey == 'community_party') { |
|
|
|
// this.postDataForm.outHandleAdvice = '您的诉求, ' + res.data.parentDeptName + '正在协调办理,请您耐心等待' |
|
|
|
this.postDataForm.outHandleAdvice = '您的诉求, 街道正在协调办理,请您耐心等待' |
|
|
|
} |
|
|
|
this.dataForm.handleResultDTOS = res.data.handleResultDTOS |
|
|
|
this.typeKey = res.data.typeKey |
|
|
|
if (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.evaluateDeptDTOS = res.data.evaluateDeptDTOS |
|
|
|
}) |
|
|
|
if (res.data.typeKey == 'grid_party') { |
|
|
|
// this.postDataForm.outHandleAdvice = '您的诉求, ' + res.data.parentDeptName + '正在全力办理' |
|
|
|
this.postDataForm.outHandleAdvice = '您的诉求, 社区正在全力办理。' |
|
|
|
} else if (res.data.typeKey == 'community_party') { |
|
|
|
// this.postDataForm.outHandleAdvice = '您的诉求, ' + res.data.parentDeptName + '正在协调办理,请您耐心等待' |
|
|
|
this.postDataForm.outHandleAdvice = '您的诉求, 街道正在协调办理,请您耐心等待。' |
|
|
|
} |
|
|
|
this.dataForm.handleResultDTOS = res.data.handleResultDTOS |
|
|
|
this.typeKey = res.data.typeKey |
|
|
|
if (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.evaluateDeptDTOS = res.data.evaluateDeptDTOS |
|
|
|
}) |
|
|
|
.catch(() => {}) |
|
|
|
}, |
|
|
|
initBmap (latitude, longitude) { |
|
|
|
@ -975,7 +897,7 @@ export default { |
|
|
|
this.map.enableScrollWheelZoom(true) |
|
|
|
}, |
|
|
|
init () { |
|
|
|
this.isAble = true; |
|
|
|
this.isAble = true |
|
|
|
this.$nextTick(() => { |
|
|
|
if (this.dataForm.id) { |
|
|
|
this.postDataForm.handleAdvice = '' |
|
|
|
|