|
...
|
...
|
@@ -53,7 +53,7 @@ |
|
|
|
</el-form>
|
|
|
|
|
|
|
|
<!-- 表格数据 -->
|
|
|
|
<el-table v-loading="loading" :data="policyList" @row-click="handleTask">
|
|
|
|
<el-table v-loading="loading" :data="policyList">
|
|
|
|
<el-table-column label="序号" width="55" type="index" />
|
|
|
|
<el-table-column
|
|
|
|
label="登记时间"
|
|
...
|
...
|
@@ -130,7 +130,7 @@ |
|
|
|
<el-table-column
|
|
|
|
label="操作"
|
|
|
|
align="center"
|
|
|
|
min-width="280"
|
|
|
|
min-width="300"
|
|
|
|
fixed="right"
|
|
|
|
>
|
|
|
|
<template #default="{ row }">
|
|
...
|
...
|
@@ -144,6 +144,12 @@ |
|
|
|
>
|
|
|
|
<el-button
|
|
|
|
type="primary"
|
|
|
|
v-hasRole="['companyemployee']"
|
|
|
|
@click="lookRemark(row)"
|
|
|
|
>查询备注</el-button
|
|
|
|
>
|
|
|
|
<el-button
|
|
|
|
type="primary"
|
|
|
|
v-show="
|
|
|
|
row.policyStatus !== '问题件' && row.orderProgress === '已承接'
|
|
|
|
"
|
|
...
|
...
|
@@ -188,7 +194,7 @@ |
|
|
|
row.policyStatus === '问题件' &&
|
|
|
|
checkRole(['associationemployee'])
|
|
|
|
"
|
|
|
|
@click="handleVoid('2')"
|
|
|
|
@click="handleVoid('2', row.taskId)"
|
|
|
|
>作废</el-button
|
|
|
|
>
|
|
|
|
<el-button
|
|
...
|
...
|
@@ -197,7 +203,7 @@ |
|
|
|
row.policyStatus === '问题件' &&
|
|
|
|
checkRole(['associationemployee'])
|
|
|
|
"
|
|
|
|
@click="handleAuthCompany('0')"
|
|
|
|
@click="handleAuthCompany('0', row.taskId)"
|
|
|
|
>分配</el-button
|
|
|
|
>
|
|
|
|
</template>
|
|
...
|
...
|
@@ -232,6 +238,38 @@ |
|
|
|
</template>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
<!-- 通过备注对话框 -->
|
|
|
|
<el-dialog
|
|
|
|
v-model="successShow"
|
|
|
|
title="通过备注"
|
|
|
|
width="500"
|
|
|
|
append-to-body
|
|
|
|
>
|
|
|
|
<QuillEditor v-model="successMsg" :min-height="192" />
|
|
|
|
<template #footer>
|
|
|
|
<div class="dialog-footer">
|
|
|
|
<el-button @click="successShow = false">取消</el-button>
|
|
|
|
<el-button type="primary" @click="handleSuccess">确定</el-button>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
<!-- 分配备注对话框 -->
|
|
|
|
<el-dialog
|
|
|
|
v-model="sharingShow"
|
|
|
|
title="分配备注"
|
|
|
|
width="500"
|
|
|
|
append-to-body
|
|
|
|
>
|
|
|
|
<QuillEditor v-model="sharingMsg" :min-height="192" />
|
|
|
|
<template #footer>
|
|
|
|
<div class="dialog-footer">
|
|
|
|
<el-button @click="sharingShow = false">取消</el-button>
|
|
|
|
<el-button type="primary" @click="submitForm">确定</el-button>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
<!-- 分配承保公司对话框 -->
|
|
|
|
<el-dialog
|
|
|
|
v-model="companyShow"
|
|
...
|
...
|
@@ -255,6 +293,7 @@ |
|
|
|
v-for="item in deptOptions"
|
|
|
|
:key="item.deptId"
|
|
|
|
:label="item.deptId"
|
|
|
|
v-show="item.deptName !== '无'"
|
|
|
|
>{{ item.deptName }}</el-radio
|
|
|
|
>
|
|
|
|
</el-radio-group>
|
|
...
|
...
|
@@ -263,7 +302,7 @@ |
|
|
|
<template #footer>
|
|
|
|
<div class="dialog-footer">
|
|
|
|
<el-button @click="companyShow = false">取消</el-button>
|
|
|
|
<el-button type="primary" @click="submitForm">确定</el-button>
|
|
|
|
<el-button type="primary" @click="sharingShow = true">确定</el-button>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</el-dialog>
|
|
...
|
...
|
@@ -362,6 +401,20 @@ |
|
|
|
</el-form>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
<!-- 查询通过备注弹出框 -->
|
|
|
|
<el-dialog
|
|
|
|
v-model="lookSuccessShow"
|
|
|
|
title="通过备注"
|
|
|
|
width="700"
|
|
|
|
append-to-body
|
|
|
|
>
|
|
|
|
<QuillEditor
|
|
|
|
v-model="lookSuccessMsg"
|
|
|
|
:readOnly="true"
|
|
|
|
:min-height="192"
|
|
|
|
/>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
<!-- 编辑对话框 -->
|
|
|
|
<el-dialog v-model="open" title="保单信息" width="700" append-to-body>
|
|
|
|
<el-form :model="form" ref="policyRef" label-width="100px">
|
|
...
|
...
|
@@ -514,7 +567,7 @@ |
|
|
|
<el-button
|
|
|
|
type="primary"
|
|
|
|
v-hasRole="['associationemployee']"
|
|
|
|
@click.stop="handleSuccess('0')"
|
|
|
|
@click.stop="successShow = true"
|
|
|
|
>
|
|
|
|
通过
|
|
|
|
</el-button>
|
|
...
|
...
|
@@ -527,7 +580,7 @@ |
|
|
|
<el-button
|
|
|
|
type="primary"
|
|
|
|
v-hasRole="['associationemployee']"
|
|
|
|
@click="handleVoid('2')"
|
|
|
|
@click="handleVoid('2', taskId)"
|
|
|
|
>作废</el-button
|
|
|
|
>
|
|
|
|
<el-button
|
|
...
|
...
|
@@ -539,8 +592,8 @@ |
|
|
|
<el-button
|
|
|
|
type="primary"
|
|
|
|
v-hasRole="['associationemployee']"
|
|
|
|
@click.stop="handleAuthCompany('0')"
|
|
|
|
>分配</el-button
|
|
|
|
@click.stop="handleAuthCompany('0', taskId)"
|
|
|
|
>人工分配</el-button
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
...
|
...
|
@@ -582,6 +635,16 @@ const transferShow = ref(false); |
|
|
|
const transferForm = ref({});
|
|
|
|
const taskId = ref("");
|
|
|
|
const issueReturenCompany = ref("");
|
|
|
|
|
|
|
|
const successShow = ref(false); // 通过备注显示变量
|
|
|
|
const successMsg = ref(""); // 通过备注
|
|
|
|
|
|
|
|
const sharingShow = ref(false); // 分配备注显示变量
|
|
|
|
const sharingMsg = ref(""); // 分配备注
|
|
|
|
|
|
|
|
const lookSuccessShow = ref(false); // 查看通过备注显示变量
|
|
|
|
const lookSuccessMsg = ref(""); // 查看通过备注
|
|
|
|
|
|
|
|
const IssueForm = ref({
|
|
|
|
deprecatedReason: "",
|
|
|
|
});
|
|
...
|
...
|
@@ -595,7 +658,12 @@ const getParams = reactive({ |
|
|
|
pageSize: 100,
|
|
|
|
});
|
|
|
|
const companyShow = ref(false);
|
|
|
|
const deptOptions = ref([]);
|
|
|
|
const deptOptions = ref([
|
|
|
|
{
|
|
|
|
deptId: "0",
|
|
|
|
deptName: "无",
|
|
|
|
},
|
|
|
|
]);
|
|
|
|
const transferOptions = ref([]);
|
|
|
|
const deprecatedShow = ref(false);
|
|
|
|
const deprecatedForm = ref({
|
|
...
|
...
|
@@ -660,11 +728,6 @@ const getNeedOption = async () => { |
|
|
|
};
|
|
|
|
getNeedOption();
|
|
|
|
|
|
|
|
// 赋值taskId
|
|
|
|
const handleTask = (row) => {
|
|
|
|
taskId.value = row.taskId;
|
|
|
|
};
|
|
|
|
|
|
|
|
const getList = async () => {
|
|
|
|
loading.value = true;
|
|
|
|
const { data } = await queryMyList(queryParams);
|
|
...
|
...
|
@@ -701,27 +764,20 @@ const handleTroubleshooting = (taskId) => { |
|
|
|
deprecatedShow.value = true;
|
|
|
|
};
|
|
|
|
// 通过保单
|
|
|
|
const handleSuccess = (associationapprove) => {
|
|
|
|
proxy.$modal
|
|
|
|
.confirm("是否通过该保单")
|
|
|
|
.then(function () {})
|
|
|
|
.then(async () => {
|
|
|
|
await updateCarInfo(form.value);
|
|
|
|
const handleSuccess = async () => {
|
|
|
|
await disposeUser(
|
|
|
|
{
|
|
|
|
associationapprove,
|
|
|
|
associationapprove: "0",
|
|
|
|
associationapprovetype: "0",
|
|
|
|
deptid: transferDeptId.value,
|
|
|
|
comment: successMsg.value,
|
|
|
|
},
|
|
|
|
taskId.value
|
|
|
|
);
|
|
|
|
proxy.$modal.msgSuccess("保单已通过");
|
|
|
|
open.value = false;
|
|
|
|
successShow.value = false;
|
|
|
|
getList();
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
proxy.$modal.msg("取消通过");
|
|
|
|
});
|
|
|
|
};
|
|
|
|
// 退回保单
|
|
|
|
const handleFallback = (associationapprove) => {
|
|
...
|
...
|
@@ -735,10 +791,10 @@ const handleFallback = (associationapprove) => { |
|
|
|
deprecatedShow.value = true;
|
|
|
|
};
|
|
|
|
// 作废保单
|
|
|
|
const handleVoid = (associationapprove) => {
|
|
|
|
const handleVoid = (associationapprove, taskId) => {
|
|
|
|
deprecatedForm.value = {
|
|
|
|
associationapprove,
|
|
|
|
taskId: taskId.value,
|
|
|
|
taskId,
|
|
|
|
};
|
|
|
|
deprecatedForm.value.deprecatedReason = "";
|
|
|
|
typeId.value = 2;
|
|
...
|
...
|
@@ -758,6 +814,16 @@ const lookReason = async (row) => { |
|
|
|
showIssue.value = true;
|
|
|
|
issueReturenCompany.value = row.companyName;
|
|
|
|
};
|
|
|
|
|
|
|
|
// 查阅通过备注
|
|
|
|
const lookRemark = async (row) => {
|
|
|
|
const { data } = await queryDefeatContent({
|
|
|
|
processInstanceId: row.processInstanceId,
|
|
|
|
type: 3,
|
|
|
|
});
|
|
|
|
lookSuccessMsg.value = data.message;
|
|
|
|
lookSuccessShow.value = true;
|
|
|
|
};
|
|
|
|
// 提交作废,退回,问题件表单
|
|
|
|
const sunmitDeprecated = () => {
|
|
|
|
let data = {};
|
|
...
|
...
|
@@ -781,10 +847,10 @@ const sunmitDeprecated = () => { |
|
|
|
});
|
|
|
|
};
|
|
|
|
// 分配承保公司
|
|
|
|
const handleAuthCompany = (associationapprove) => {
|
|
|
|
const handleAuthCompany = (associationapprove, taskId) => {
|
|
|
|
companyForm.value = {
|
|
|
|
associationapprove,
|
|
|
|
taskId: taskId.value,
|
|
|
|
taskId: taskId,
|
|
|
|
};
|
|
|
|
companyShow.value = true;
|
|
|
|
};
|
|
...
|
...
|
@@ -805,12 +871,13 @@ const getDeptList = () => { |
|
|
|
listDept(companyQueryParams).then((response) => {
|
|
|
|
let newArr = [];
|
|
|
|
newArr = response.data.filter((item) => item.parentId === 100);
|
|
|
|
deptOptions.value = newArr.map((child) => {
|
|
|
|
let arrNew = newArr.map((child) => {
|
|
|
|
return {
|
|
|
|
deptId: child.deptId.toString(),
|
|
|
|
deptName: child.deptName,
|
|
|
|
};
|
|
|
|
});
|
|
|
|
deptOptions.value.push(...arrNew);
|
|
|
|
});
|
|
|
|
};
|
|
|
|
/** 重置操作表单 */
|
|
...
|
...
|
@@ -825,6 +892,7 @@ const handleUpdate = async (row) => { |
|
|
|
getTransferTip();
|
|
|
|
form.value = data;
|
|
|
|
open.value = true;
|
|
|
|
taskId.value = row.taskId;
|
|
|
|
};
|
|
|
|
/** 提交通过分配承保公司 */
|
|
|
|
function submitForm() {
|
|
...
|
...
|
@@ -832,10 +900,12 @@ function submitForm() { |
|
|
|
associationapprove: companyForm.value.associationapprove,
|
|
|
|
associationapprovetype: "1",
|
|
|
|
deptid: companyForm.value.deptId.toString(),
|
|
|
|
comment: sharingMsg.value,
|
|
|
|
};
|
|
|
|
const taskId = companyForm.value.taskId;
|
|
|
|
disposeUser(data, taskId).then((res) => {
|
|
|
|
companyShow.value = false;
|
|
|
|
sharingShow.value = false;
|
|
|
|
getList();
|
|
|
|
proxy.$modal.msgSuccess("保单已分配成功");
|
|
|
|
});
|
...
|
...
|
|