Browse Source

涉访涉诉--强制终结

master
buaixuexideshitongxue 1 month ago
parent
commit
0b831c067f
  1. 12
      src/api/data/complaintCollection.ts
  2. 36
      src/views/data/ComplaintCollection.vue

12
src/api/data/complaintCollection.ts

@ -116,3 +116,15 @@ export function saveInvolveJson(body) {
body
});
}
/**
* --
*/
export function forceTermination(body) {
return request.post({
url: `/data/complaintCollection/forceTermination`,
body
});
}

36
src/views/data/ComplaintCollection.vue

@ -75,6 +75,7 @@
>
<el-option value="0" label="未办结"/>
<el-option value="1" label="已办结"/>
<el-option value="2" label="强制终结"/>
</el-select>
</el-form-item>
</el-col>
@ -331,8 +332,7 @@
<el-button type="primary" v-if="row.status === '0'" link @click="handleAction(row)">办理</el-button>
<el-button type="primary" v-if="row.status === '0'" link @click="handleUpdate(row)">修改</el-button>
<el-button type="danger" v-if="row.status === '0'" link @click="handleDel(row)">删除</el-button>
<el-button type="primary" v-if="row.status === '1'" link @click="handleWatchDetail(row)">查看详情
</el-button>
<el-button type="primary" v-if="row.status === '1' || row.status === '2'" link @click="handleWatchDetail(row)">查看详情</el-button>
</template>
</el-table-column>
</el-table>
@ -388,9 +388,8 @@
<el-button @click="negativeVerifySfssDailog = false">取消</el-button>
<el-button type="primary" @click="handleSubmit" :loading="submitLoading" :disabled="submitLoading">办结
</el-button>
<el-button type="primary" @click="handleSaveInvolve" :loading="saveLoading">
临时保存
</el-button>
<el-button type="primary" @click="handleSaveInvolve" :loading="saveLoading">临时保存</el-button>
<el-button type="danger" @click="forceTerminationFun" :loading="forceTerminationLoading">强制终结</el-button>
</div>
</template>
@ -412,7 +411,7 @@ import feedback from "@/utils/feedback";
import useCatchStore from "@/stores/modules/catch";
import {
addComplaintCollection, addComplaintCollectionBlame,
delComplaintCollection, exportData,
delComplaintCollection, exportData, forceTermination,
getComplaintCollectionPage, handlerData, saveInvolveJson,
updateComplaintCollection
} from "@/api/data/complaintCollection.ts";
@ -955,7 +954,32 @@ watch(negativeVerifySfssDailog, (open) => {
})
// endregion
// region
const forceTerminationLoading = ref(false);
const forceTerminationFun = async () => {
if (forceTerminationLoading.value) return
forceTerminationLoading.value = true
try {
await nextTick()
//
const formData = negativeVerifySfssRef.value.getData()
// + Proxy/
const plain = JSON.parse(JSON.stringify(toRaw(formData)))
await forceTermination({
complaintId: plain.complaintId,
})
feedback.msgSuccess("操作成功")
negativeVerifySfssDailog.value = false
getList()
} catch (e) {
console.error(e)
feedback.notifyError("操作失败")
} finally {
forceTerminationLoading.value = false
}
}
// endregion
// region
const detailShow = ref(false)

Loading…
Cancel
Save