Commit d936e6e4 authored by zhangjianqian's avatar zhangjianqian

应急处置功能

parent fff2f8c5
......@@ -86,8 +86,26 @@
<el-table-column label="指派人" align="center" prop="complainAssignMan" />
<el-table-column label="任务状态" align="center" prop="complainStatus" :formatter="taskStateFormat" />
<el-table-column label="备注" align="center" prop="remarks" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
<template slot-scope="scope" >
<el-button
size="mini"
v-if="scope.row.complainStatus==1"
style="color: red"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['complainDeal:complainDeal:edit']"
>反馈</el-button>
<el-button
size="mini"
v-if="scope.row.complainStatus==2"
style="color: #30B46B"
type="text"
icon="el-icon-edit"
@click="handlegui(scope.row)"
v-hasPermi="['complainDeal:complainDeal:edit']"
>归档</el-button>
<el-button
size="mini"
type="text"
......@@ -144,7 +162,7 @@
:label = "dict.enterpriseName"
:value = "dict.enterpriseId"
/>
/>
</el-select>
</el-form-item>
<el-form-item label="指派人" prop="complainAssignManId">
......@@ -168,7 +186,7 @@
<el-input v-model="form.transferRecord" type="textarea" placeholder="请输入转办记录" :disabled="readonly"/>
</el-form-item>
<el-form-item label="任务状态">
<el-select v-model="form.complainStatus" placeholder="请选择任务状态" size="small" :disabled="readonly">
<el-select v-model="form.complainStatus" placeholder="请选择任务状态" :disabled="readonly">
<el-option
v-for="dict in taskStateOptions"
:key="dict.dictValue"
......@@ -242,10 +260,22 @@ export default {
},
// 表单参数
form: {
peopleList:[]
peopleList:[],
},
// 表单校验
rules: {
complainName: [
{ required: true, message: "投诉人不能为空", trigger: "blur" }
],
complainPhone: [
{ required: true, message: "投诉人电话不能为空", trigger: "blur" }
],
complainMatter: [
{ required: true, message: "投诉事项不能为空", trigger: "blur" }
],
complainAssignEnterproseId: [
{ required: true, message: "指派单位不能为空", trigger: "blur" }
],
}
};
},
......@@ -314,7 +344,7 @@ export default {
complainAssignEnterproseId: null,
complainAssignManId: null,
complainAssignMan: null,
complainStatus: "0",
complainStatus: "1",
createBy: null,
createTime: null,
updateBy: null,
......@@ -344,10 +374,10 @@ export default {
var status = this.selectDictLabel(this.taskStateOptions, row.complainStatus);
if(status=='派发中'){
return <p style='color: #ff4949'>派发中</p>
}else if("反馈"){
return <p style='color: #1890ff'>派发中</p>
}else if(status=="反馈"){
return <p style='color: #1890ff'>已反馈</p>
}else{
return <p style='color: #30B46B'>派发中</p>
return <p style='color: #30B46B'>已归档</p>
}
return this.selectDictLabel(this.taskStateOptions, row.complainStatus);
},
......@@ -404,7 +434,7 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const complainDealIds = row.complainDealId || this.ids;
this.$confirm('是否确认删除投诉处置编号为"' + complainDealIds + '"的数据项?', "警告", {
this.$confirm('是否确认删除选中的投诉处置数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
......@@ -415,6 +445,20 @@ export default {
this.msgSuccess("删除成功");
}).catch(() => {});
},
handlegui(row) {
const complainDealIds = row.complainDealId || this.ids;
this.$confirm('是否确认归档选中的投诉处置数据项?', "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "success"
}).then(() => {
var a = {"complainDealId":complainDealIds,"complainStatus":3}
return updateComplainDeal(a);
}).then(() => {
this.msgSuccess("归档成功");
this.getList();
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
......
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