作者 xiaoqiu

已完成接口内容,待处理需筛选

... ... @@ -136,6 +136,6 @@ export function getCompanyTip() {
export function getCount() {
return request({
url: `/system/rule/getCounting`,
method: 'post'
method: 'get'
})
}
... ...
<template>
<div class="app-container">
<!-- 筛选条件 -->
<el-form
:model="queryParams"
ref="queryRef"
v-show="showSearch"
:inline="true"
label-width="68px"
>
<el-form-item label="车主姓名" prop="name">
<el-input
v-model="queryParams.name"
placeholder="请输入名称"
clearable
style="width: 200px"
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item label="车牌号" prop="licensePlate">
<el-input
v-model="queryParams.licensePlate"
placeholder="请输入车牌号"
clearable
style="width: 200px"
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item label="操作人员" prop="association">
<el-input
v-model="queryParams.association"
placeholder="填写操作人员"
clearable
style="width: 200px"
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="Search" @click="handleQuery"
>查询</el-button
>
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<!-- 表格数据 -->
<el-table v-loading="loading" :data="policyList" @row-click="handleUpdate">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="序号" type="index" width="55" align="center" />
<el-table-column
label="登记时间"
prop="createTime"
width="160"
align="center"
/>
<el-table-column
label="车牌号"
prop="licensePlateNumber"
width="150"
align="center"
/>
<el-table-column
label="车架号"
prop="frameNumber"
align="center"
:show-overflow-tooltip="true"
/>
<el-table-column
label="企业名称"
prop="businessName"
width="100"
align="center"
/>
<el-table-column
label="统一信用代码"
prop="uniformCreditCode"
width="180"
align="center"
/>
<el-table-column
label="联系电话"
prop="businessPhone"
width="150"
align="center"
/>
<el-table-column
label="作废时间"
align="center"
prop="distributionTime"
width="160"
/>
<el-table-column
label="操作人员"
align="center"
prop="associationEmployeeUserName"
width="120"
/>
<el-table-column label="作废备注" width="120" fixed="right" prop="remark">
<template #default>
<el-button type="primary">查阅</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
v-model:page="queryParams.pageNum"
v-model:limit="queryParams.pageSize"
@pagination="getList"
/>
<el-dialog v-model="open" title="保单信息" width="700" append-to-body>
<el-form :model="form" ref="policyRef" label-width="100px">
<el-row>
<el-col :span="12">
<el-form-item label="车牌号" prop="licensePlateNumber">
<el-input
v-model="form.licensePlateNumber"
placeholder="请输入车牌号"
disabled
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="车架号" prop="frameNumber">
<el-input
v-model="form.frameNumber"
disabled
placeholder="请输入车架号"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="企业名称" prop="businessName">
<el-input
v-model="form.businessName"
:disabled="!hasRole"
placeholder="请输入企业名称"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="联系电话" prop="businessPhone">
<el-input
v-model="form.businessPhone"
:disabled="!hasRole"
placeholder="请输入联系电话"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="发动机号" prop="engineNumber">
<el-input v-model="form.engineNumber" placeholder="无" disabled />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="上年承保公司" prop="sysDeptName">
<el-input
v-model="form.sysDeptName"
disabled
placeholder="请输入上年承保公司"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="信用代码" prop="uniformCreditCode">
<el-input
v-model="form.uniformCreditCode"
:disabled="!hasRole"
placeholder="请输入信用代码"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="保险需求" prop="requirements">
<el-input v-model="form.requirements" disabled placeholder="无" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="使用性质" prop="vehicleNature">
<el-input
v-model="form.vehicleNature"
disabled
placeholder="无"
/>
</el-form-item>
</el-col>
</el-row>
<el-form-item label="作废原因" prop="progress">
<QuillEditor :value="form.deprecatedReason" @updateValue="getMsg" />
</el-form-item>
</el-form>
</el-dialog>
</div>
</template>
<script setup>
import { queryDeprecatedList, queryDefeatContent } from "@/api/policy";
const { proxy } = getCurrentInstance();
const loading = ref(false);
const total = ref(5);
const open = ref(false);
const form = ref({});
const showSearch = ref(true);
const queryParams = reactive({
pageNum: 1,
pageSize: 10,
name: "",
type: 1,
licensePlate: "",
association: "",
});
const policyList = ref([]);
/** 重置操作表单 */
function reset() {
proxy.resetForm("policyRef");
}
/** 查阅操作 */
const handleUpdate = async (row) => {
reset();
form.value = row;
const { data } = await queryDefeatContent({
processInstanceId: row.processInstanceId,
type: 2,
});
form.value.deprecatedReason = data.message;
open.value = true;
};
const getList = async () => {
loading.value = true;
const res = await queryDeprecatedList(queryParams);
policyList.value = res.rows;
total.value = res.total;
loading.value = false;
};
/** 搜索按钮操作 */
function handleQuery() {
queryParams.pageNum = 1;
getList();
}
/** 重置按钮操作 */
function resetQuery() {
proxy.resetForm("queryRef");
handleQuery();
}
const getMsg = (val) => {
console.log(val);
};
getList();
</script>
<style></style>
... ...
<template>
<div class="app-container">
<!-- 筛选条件 -->
<el-form
:model="queryParams"
ref="queryRef"
v-show="showSearch"
:inline="true"
label-width="68px"
>
<el-form-item label="用户姓名" prop="name">
<el-input
v-model="queryParams.name"
placeholder="请输入名称"
clearable
style="width: 200px"
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item label="车牌号" prop="licensePlate">
<el-input
v-model="queryParams.licensePlate"
placeholder="请输入车牌号"
clearable
style="width: 200px"
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item label="操作人员" prop="association">
<el-input
v-model="queryParams.association"
placeholder="填写操作人员"
clearable
style="width: 200px"
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item label="分配机制" prop="associationapprovetype">
<el-select
v-model="queryParams.associationapprovetype"
placeholder="系统分配"
clearable
style="width: 200px"
>
<el-option
v-for="dict in options"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="Search" @click="handleQuery"
>查询</el-button
>
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<!-- 表格数据 -->
<el-table v-loading="loading" :data="policyList">
<el-table-column label="登记时间" width="160" align="center">
<template #default="{ row }">
<span>{{ row.initialRegistration || row.createTime }}</span>
</template>
</el-table-column>
<el-table-column
label="车牌号"
prop="licensePlateNumber"
width="150"
align="center"
/>
<el-table-column
label="车架号"
prop="frameNumber"
width="240"
align="center"
/>
<el-table-column
label="企业名称"
prop="businessName"
width="100"
align="center"
/>
<el-table-column
label="统一信用代码"
prop="uniformCreditCode"
width="180"
align="center"
/>
<el-table-column
label="联系电话"
prop="businessPhone"
width="150"
align="center"
/>
<el-table-column
label="分配机制"
width="120"
prop="distributionMechanism"
align="center"
/>
<el-table-column
label="承保公司"
prop="companyName"
width="150"
align="center"
/>
<el-table-column label="操作人员" width="150" align="center">
<template #default="{ row }">
<span>{{
row.associationEmployeeUserName || row.companyEmployeeUserName
}}</span>
</template>
</el-table-column>
<el-table-column
label="办结时间"
prop="policyTime"
width="160"
align="center"
/>
<el-table-column
label="办理人"
prop="companyEmployeeUserName"
width="150"
align="center"
/>
<el-table-column
label="保单状态"
width="100"
prop="statue"
align="center"
>
<template #default="{ row }">
<span
:style="{ color: row.status === '进行中' ? '#409EFF' : '#67C23A' }"
>{{ row.policyStatus }}</span
>
</template>
</el-table-column>
<el-table-column
label="保单回馈"
fixed="right"
width="100"
show-overflow-tooltip
prop="Feedback"
>
<template #default="{ row }">
<el-button type="primary" @click="lookRemark(row)">查阅</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
v-model:page="queryParams.pageNum"
v-model:limit="queryParams.pageSize"
@pagination="getList"
/>
<!-- 查看回馈弹出框 -->
<el-dialog v-model="open" title="保单信息" width="700" append-to-body>
<el-form :model="form" ref="policyRef" label-width="100px">
<el-row>
<el-col :span="12">
<el-form-item label="车牌号" prop="licensePlateNumber">
<el-input
v-model="form.licensePlateNumber"
placeholder="请输入车牌号"
disabled
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="车架号" prop="frameNumber">
<el-input
v-model="form.frameNumber"
disabled
placeholder="请输入车架号"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="企业名称" prop="businessName">
<el-input
v-model="form.businessName"
:disabled="!hasRole"
placeholder="请输入企业名称"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="联系电话" prop="businessPhone">
<el-input
v-model="form.businessPhone"
:disabled="!hasRole"
placeholder="请输入联系电话"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="发动机号" prop="engineNumber">
<el-input v-model="form.engineNumber" placeholder="无" disabled />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="上年承保公司" prop="sysDeptName">
<el-input
v-model="form.sysDeptName"
disabled
placeholder="请输入上年承保公司"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="分配机制" prop="distributionMechanism">
<el-input
v-model="form.distributionMechanism"
disabled
placeholder="无"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="信用代码" prop="uniformCreditCode">
<el-input
v-model="form.uniformCreditCode"
:disabled="!hasRole"
placeholder="请输入信用代码"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="保险需求" prop="requirements">
<el-input
v-model="form.requirements"
disabled
placeholder="请输入办理人"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="使用性质" prop="vehicleNature">
<el-input
v-model="form.vehicleNature"
disabled
placeholder="无"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="强险单号" prop="strongInsurancePolicyNumber">
<el-input
v-model="form.strongInsurancePolicyNumber"
disabled
placeholder="请输入承保单号"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item
label="商险单号"
prop="commercialInsurancePolicyNumber"
>
<el-input
v-model="form.commercialInsurancePolicyNumber"
disabled
placeholder="请输入承保单号"
/>
</el-form-item>
</el-col>
</el-row>
<el-form-item label="保单回馈" prop="progress">
<QuillEditor :value="form.message" @updateValue="getMsg" />
</el-form-item>
</el-form>
</el-dialog>
</div>
</template>
<script setup>
import { queryEndedList, queryResult } from "@/api/policy";
const { proxy } = getCurrentInstance();
const loading = ref(false);
const total = ref(5);
const open = ref(false);
const form = ref({});
const timer = ref(null);
const showSearch = ref(true);
const hasRole = computed(() => {
return !proxy.$auth.hasRole("associationemployee");
});
const queryParams = reactive({
pageNum: 1,
pageSize: 10,
name: "",
type: 1,
licensePlate: "",
association: "",
associationapprovetype: "",
});
const options = [
{
value: 0,
label: "系统分配",
},
{
value: 1,
label: "人工分配",
},
];
const policyList = ref([]);
/** 多选框选中数据 */
function handleSelectionChange(selection) {
// ids.value = selection.map(item => item.roleId);
// single.value = selection.length != 1;
// multiple.value = !selection.length;
console.log(selection);
}
/** 重置操作表单 */
function reset() {
proxy.resetForm("policyRef");
}
/**查看保单回馈 */
function lookRemark(row) {
reset();
queryResult({ processInstanceId: row.processInstanceId }).then((res) => {
form.value = row;
form.value.strongInsurancePolicyNumber =
res?.data?.strongInsurancePolicyNumber;
form.value.commercialInsurancePolicyNumber =
res?.data?.commercialInsurancePolicyNumber;
form.value.message = res?.data?.message;
open.value = true;
});
}
const getList = async () => {
loading.value = true;
const res = await queryEndedList(queryParams);
policyList.value = res.rows;
total.value = res.total;
loading.value = false;
};
/** 搜索按钮操作 */
function handleQuery() {
queryParams.pageNum = 1;
getList();
}
/** 重置按钮操作 */
function resetQuery() {
proxy.resetForm("queryRef");
handleQuery();
}
const getMsg = (val) => {
clearTimeout(timer.value);
timer.value = setTimeout(() => {
form.value.message = val;
}, 1000);
};
getList();
</script>
<style></style>
... ...
<template>
<div class="app-container">
<!-- 表格数据 -->
<el-table v-loading="loading" :data="policyList" @row-click="handleUpdate">
<el-table-column label="序号" width="55" type="index" />
<el-table-column
label="登记时间"
width="160"
prop="createTime"
align="center"
/>
<el-table-column
label="车牌号"
prop="licensePlateNumber"
align="center"
/>
<el-table-column
label="车架号"
prop="frameNumber"
align="center"
:show-overflow-tooltip="true"
/>
<el-table-column
label="发动机号"
prop="engineNumber"
align="center"
:show-overflow-tooltip="true"
/>
<el-table-column label="车主姓名" prop="name" align="center" />
<el-table-column label="联系电话" prop="phone" align="center" />
<el-table-column label="是否新能源" prop="isNewEnergy" align="center" />
<el-table-column label="上年承保公司" prop="sysDeptName" align="center" />
<el-table-column label="保单进度" prop="orderProgress" align="center" />
<el-table-column label="保单状态" prop="policyStatus" align="center" />
</el-table>
<pagination
v-show="total > 0"
:total="total"
v-model:page="queryParams.pageNum"
v-model:limit="queryParams.pageSize"
@pagination="getList"
/>
<!-- 转办分配对话框 -->
<el-dialog
v-model="transferShow"
title="请选择人员:"
width="500"
append-to-body
>
<div class="company_box">
<el-radio-group v-model="transferForm.username">
<el-radio
v-for="item in transferOptions"
:key="item.userName"
:label="item.userName"
>{{ item.userName }}</el-radio
>
</el-radio-group>
<div v-show="transferOptions.length === 0">暂无其他员工</div>
</div>
<template #footer>
<div class="dialog-footer">
<el-button @click="companyShow = false">取消</el-button>
<el-button type="primary" @click="submitTransfer">确定</el-button>
</div>
</template>
</el-dialog>
<!-- 编辑对话框 -->
<el-dialog v-model="open" :title="title" width="700" append-to-body>
<el-form :model="form" ref="policyRef" label-width="100px">
<el-row>
<el-col :span="12">
<el-form-item label="车牌号" prop="licensePlateNumber">
<el-input
v-model="form.licensePlateNumber"
placeholder="请输入车牌号"
disabled
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="车架号" prop="frameNumber">
<el-input
v-model="form.frameNumber"
disabled
placeholder="请输入车架号"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="车主姓名" prop="name">
<el-input
v-model="form.name"
disabled
placeholder="请输入车主姓名"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="联系电话" prop="phone">
<el-input
v-model="form.phone"
disabled
placeholder="请输入联系电话"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="发动机号" prop="engineNumber">
<el-input v-model="form.engineNumber" placeholder="无" disabled />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="上年承保公司" prop="sysDeptName">
<el-input
v-model="form.sysDeptName"
disabled
placeholder="请输入上年承保公司"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="保险需求" prop="requirements">
<el-input v-model="form.requirements" disabled placeholder="无" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="使用性质" prop="vehicleNature">
<el-input
v-model="form.vehicleNature"
disabled
placeholder="无"
/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-dialog>
</div>
</template>
<script setup>
import { queryPengdingList, getUserList } from "@/api/policy/index";
const loading = ref(false);
const { proxy } = getCurrentInstance();
const total = ref(0);
const title = ref("保单信息");
const open = ref(false);
const transferShow = ref(false);
const form = ref({});
const transferForm = ref({});
const transferOptions = ref([]);
const rules = ref({
carNum: [{ required: true, message: "车牌号不能为空", trigger: "blur" }],
frameNum: [{ required: true, message: "车架号不能为空", trigger: "blur" }],
name: [{ required: true, message: "车主姓名不能为空", trigger: "blur" }],
createTime: [{ required: true, message: "日期不能为空", trigger: "blur" }],
phone: [
{
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
message: "请输入正确的手机号码",
trigger: "blur",
},
],
});
const companyShow = ref(false);
const queryParams = reactive({
pageNum: 1,
pageSize: 10,
type: 1,
});
const policyList = ref([]);
/** 重置操作表单 */
function reset() {
proxy.resetForm("policyRef");
}
// 获取处理的列表
const getList = async () => {
loading.value = true;
const { rows, total: all } = await queryPengdingList(queryParams);
policyList.value = rows;
total.value = all;
loading.value = false;
};
// 转办或分配
const handleSharing = (id) => {
transferForm.value.taskId = id;
getUser();
transferShow.value = true;
};
// 获取人员列表
const getUser = async () => {
const { data } = await getUserList();
transferOptions.value = data;
};
/** 提交通过分配转办人员 */
function submitTransfer() {
const data = {
username: transferForm.value.username,
};
const taskId = transferForm.value.taskId;
transfer(data, taskId).then((res) => {
transferShow.value = false;
getList();
proxy.$modal.msgSuccess("保单已分配成功");
});
}
const handleUpdate = (row) => {
reset();
form.value = row;
// isCustom.value = data.isCustomizeBrandAndModel == "0";
open.value = true;
};
getList();
</script>
<style lang="scss" scoped>
::v-deep(.el-radio-group) {
align-items: start;
flex-direction: column;
}
.header_top {
display: flex;
align-items: center;
gap: 30px;
margin-bottom: 20px;
}
</style>
... ...
<template>
<div class="app-container">
<!-- 筛选条件 -->
<el-form
:model="queryParams"
ref="queryRef"
v-show="showSearch"
:inline="true"
label-width="68px"
>
<el-form-item label="用户姓名" prop="name">
<el-input
v-model="queryParams.name"
placeholder="请输入名称"
clearable
style="width: 200px"
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item label="车牌号" prop="licensePlate">
<el-input
v-model="queryParams.licensePlate"
placeholder="请输入车牌号"
clearable
style="width: 200px"
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item label="操作人员" prop="association">
<el-input
v-model="queryParams.association"
placeholder="填写操作人员"
clearable
style="width: 200px"
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item label="分配机制" prop="associationapprovetype">
<el-select
v-model="queryParams.associationapprovetype"
placeholder="系统分配"
clearable
style="width: 200px"
>
<el-option
v-for="dict in options"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="保单进度" prop="orderprogress">
<el-select
v-model="queryParams.orderprogress"
placeholder="选择进度"
clearable
style="width: 200px"
>
<el-option
v-for="dict in progressOption"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="保单状态" prop="status">
<el-select
v-model="queryParams.status"
placeholder="选择进度"
clearable
style="width: 200px"
>
<el-option
v-for="dict in statusOption"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="Search" @click="handleQuery"
>查询</el-button
>
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<!-- 表格数据 -->
<el-table v-loading="loading" :data="policyList" @row-click="handleUpdate">
<el-table-column label="序号" type="index" width="55" />
<el-table-column
label="登记时间"
prop="createTime"
width="160"
align="center"
/>
<el-table-column
label="车牌号"
prop="licensePlateNumber"
width="150"
align="center"
/>
<el-table-column
label="车架号"
prop="frameNumber"
width="240"
align="center"
/>
<el-table-column
label="企业名称"
prop="businessName"
width="100"
align="center"
/>
<el-table-column
label="统一信用代码"
prop="uniformCreditCode"
width="180"
align="center"
/>
<el-table-column
label="联系电话"
prop="businessPhone"
width="150"
align="center"
/>
<el-table-column
label="分配机制"
width="120"
prop="distributionMechanism"
align="center"
/>
<el-table-column
label="承保公司"
prop="companyName"
width="180"
align="center"
/>
<el-table-column label="操作人员" width="150" align="center">
<template #default="{ row }">
<span>{{
row.associationEmployeeUserName || row.companyEmployeeUserName
}}</span>
</template>
</el-table-column>
<el-table-column label="操作时间" width="160" align="center">
<template #default="{ row }">
<span>{{
row.companyEmployeeUndertakeTime || row.distributionTime
}}</span>
</template>
</el-table-column>
<el-table-column
label="办理人"
prop="companyEmployeeUserName"
width="150"
align="center"
/>
<el-table-column
label="保单进度"
width="100"
prop="orderProgress"
align="center"
/>
<el-table-column
label="操作"
v-hasRole="['companyadmin']"
align="center"
min-width="120"
fixed="right"
>
<template #default="{ row }">
<el-button
type="primary"
v-show="row.orderProgress !== '已承接'"
@click.stop="handleTransfer(row.taskId)"
>分配/转办</el-button
>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
v-model:page="queryParams.pageNum"
v-model:limit="queryParams.pageSize"
@pagination="getList"
/>
<!-- 转办分配对话框 -->
<el-dialog
v-model="transferShow"
title="请选择人员:"
width="500"
append-to-body
>
<div class="company_box">
<el-radio-group v-model="transferForm.username">
<el-radio
v-for="item in transferOptions"
:key="item.userName"
:label="item.userName"
>{{ item.nickName }}</el-radio
>
</el-radio-group>
<div v-show="transferOptions.length === 0">暂无其他员工</div>
</div>
<template #footer>
<div class="dialog-footer">
<el-button @click="transferShow = false">取消</el-button>
<el-button type="primary" @click="submitTransfer">确定</el-button>
</div>
</template>
</el-dialog>
<!-- 编辑对话框 -->
<el-dialog v-model="open" title="保单信息" width="700" append-to-body>
<el-form :model="form" ref="policyRef" label-width="100px">
<el-row>
<el-col :span="12">
<el-form-item label="车牌号" prop="licensePlateNumber">
<el-input
v-model="form.licensePlateNumber"
placeholder="请输入车牌号"
disabled
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="车架号" prop="frameNumber">
<el-input
v-model="form.frameNumber"
disabled
placeholder="请输入车架号"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="企业名称" prop="businessName">
<el-input
v-model="form.businessName"
:disabled="!hasRole"
placeholder="请输入企业名称"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="联系电话" prop="businessPhone">
<el-input
v-model="form.businessPhone"
:disabled="!hasRole"
placeholder="请输入联系电话"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="发动机号" prop="engineNumber">
<el-input v-model="form.engineNumber" placeholder="无" disabled />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="上年承保公司" prop="sysDeptName">
<el-input
v-model="form.sysDeptName"
disabled
placeholder="请输入上年承保公司"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="分配机制" prop="distributionMechanism">
<el-input
v-model="form.distributionMechanism"
disabled
placeholder="无"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="信用代码" prop="uniformCreditCode">
<el-input
v-model="form.uniformCreditCode"
:disabled="!hasRole"
placeholder="请输入信用代码"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="保险需求" prop="requirements">
<el-input v-model="form.requirements" disabled placeholder="无" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="使用性质" prop="vehicleNature">
<el-input
v-model="form.vehicleNature"
disabled
placeholder="无"
/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-dialog>
</div>
</template>
<script setup>
import { queryOngoingList, getUserList, transfer } from "@/api/policy";
const { proxy } = getCurrentInstance();
const loading = ref(false);
const total = ref(5);
const open = ref(false);
const form = ref({});
const transferForm = ref({});
const transferShow = ref(false);
const transferOptions = ref([]);
const showSearch = ref(true);
const queryParams = reactive({
pageNum: 1,
pageSize: 10,
name: "",
licensePlate: "",
association: "",
associationapprovetype: "",
orderprogress: "",
policystatus: "",
type: 1,
});
const progressOption = ref([
{
value: 0,
label: "待承接",
},
{
value: 1,
label: "已承接",
},
]);
const options = [
{
value: 0,
label: "系统分配",
},
{
value: 1,
label: "人工分配",
},
];
const statusOption = ref([
{
value: 0,
label: "进行中",
},
{
value: 1,
label: "疑难件",
},
{
value: 2,
label: "已办结",
},
]);
const policyList = ref([]);
// 获取人员列表
const getUser = async () => {
const { data } = await getUserList();
transferOptions.value = data;
};
// 分配人员
const handleTransfer = (id) => {
transferForm.value.taskId = id;
getUser();
transferShow.value = true;
};
// 获取进行中列表
const getList = async () => {
loading.value = true;
const res = await queryOngoingList(queryParams);
policyList.value = res.rows;
total.value = res.total;
loading.value = false;
};
/** 重置操作表单 */
function reset() {
proxy.resetForm("policyRef");
}
/** 修改按钮操作 */
function handleUpdate(row) {
reset();
form.value = row;
open.value = true;
}
/** 搜索按钮操作 */
function handleQuery() {
queryParams.value.pageNum = 1;
getList();
}
/** 重置按钮操作 */
function resetQuery() {
proxy.resetForm("queryRef");
handleQuery();
}
/** 提交通过分配转办人员 */
function submitTransfer() {
const data = {
username: transferForm.value.username,
};
const taskId = transferForm.value.taskId;
transfer(data, taskId).then((res) => {
transferShow.value = false;
getList();
proxy.$modal.msgSuccess("保单已分配成功");
});
}
getList();
</script>
<style></style>
... ...
<template>
<div class="app-container">
<!-- 表格数据 -->
<el-table v-loading="loading" :data="policyList" @row-click="handleTask">
<el-table-column label="序号" width="55" type="index" />
<el-table-column
label="登记时间"
prop="createTime"
width="160"
align="center"
/>
<el-table-column
label="车牌号"
prop="licensePlateNumber"
width="150"
align="center"
/>
<el-table-column
label="车辆识别代号"
width="180"
prop="frameNumber"
align="center"
:show-overflow-tooltip="true"
/>
<el-table-column
label="发动机号"
width="180"
prop="engineNumber"
align="center"
:show-overflow-tooltip="true"
/>
<el-table-column
label="是否新能源"
prop="isNewEnergy"
width="150"
align="center"
/>
<el-table-column
label="企业名称"
prop="businessName"
width="100"
align="center"
/>
<el-table-column
label="统一信用代码"
prop="uniformCreditCode"
width="180"
align="center"
/>
<el-table-column
label="联系电话"
prop="businessPhone"
width="150"
align="center"
/>
<el-table-column
label="上年承保公司"
prop="sysDeptName"
width="150"
align="center"
/>
<el-table-column
v-hasRole="['associationemployee']"
label="保单状态"
width="100"
prop="statue"
>
<template #default="{ row }">
{{ row.policyStatus || "待处理" }}
</template>
</el-table-column>
<el-table-column
label="操作"
align="center"
min-width="280"
fixed="right"
>
<template #default="{ row }">
<el-button
type="primary"
v-hasPermi="['policy:pending:continue']"
@click="handleContinue(row)"
>{{
row.orderProgress === "已承接" ? "承接回馈" : "承接"
}}</el-button
>
<el-button
type="primary"
v-show="
row.policyStatus !== '问题件' && row.orderProgress === '已承接'
"
v-hasPermi="['policy:pending:troubleshooting']"
@click="handleTroubleshooting(row.taskId)"
>问题件</el-button
>
<el-button
type="primary"
v-hasRole="['companyadmin']"
@click="handleSharing(row.taskId)"
>分配</el-button
>
<el-button
type="primary"
v-show="row.orderProgress !== '已承接'"
v-hasPermi="['policy:pending:transfer']"
@click="handleSharing(row.taskId)"
>转办</el-button
>
<el-button
type="primary"
v-show="
row.policyStatus !== '问题件' &&
checkRole(['associationemployee'])
"
@click="handleUpdate(row)"
>审核</el-button
>
<el-button
type="primary"
v-show="
row.policyStatus === '问题件' &&
checkRole(['associationemployee'])
"
@click="lookReason(row)"
>查询</el-button
>
<el-button
type="primary"
v-show="
row.policyStatus === '问题件' &&
checkRole(['associationemployee'])
"
@click="handleVoid('2')"
>作废</el-button
>
<el-button
type="primary"
v-show="
row.policyStatus === '问题件' &&
checkRole(['associationemployee'])
"
@click="handleAuthCompany('0')"
>分配</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 页码 -->
<pagination
v-show="total > 0"
:total="total"
v-model:page="queryParams.pageNum"
v-model:limit="queryParams.pageSize"
@pagination="getList"
/>
<!-- 表单作废,退回。问题件对话框 -->
<el-dialog
v-model="deprecatedShow"
:title="activeTitle"
width="500"
append-to-body
>
<QuillEditor
:value="deprecatedForm.deprecatedReason"
@updateValue="getReason"
/>
<template #footer>
<div class="dialog-footer">
<el-button @click="deprecatedShow = false">取消</el-button>
<el-button type="primary" @click="sunmitDeprecated">确定</el-button>
</div>
</template>
</el-dialog>
<!-- 分配承保公司对话框 -->
<el-dialog
v-model="companyShow"
title="分配承保公司:"
width="500"
append-to-body
>
<div class="company_box">
<div class="header_top">
<el-input
v-model="companyQueryParams.deptName"
style="width: 380px"
placeholder="请输入承保公司名称(支持模糊查询)"
prefix-icon="Search"
/>
<el-button type="primary" @click="getDeptList">查询</el-button>
</div>
<div class="company_content">
<el-radio-group v-model="companyForm.deptId">
<el-radio
v-for="item in deptOptions"
:key="item.deptId"
:label="item.deptId"
>{{ item.deptName }}</el-radio
>
</el-radio-group>
</div>
</div>
<template #footer>
<div class="dialog-footer">
<el-button @click="companyShow = false">取消</el-button>
<el-button type="primary" @click="submitForm">确定</el-button>
</div>
</template>
</el-dialog>
<!-- 转办分配对话框 -->
<el-dialog
v-model="transferShow"
title="请选择人员:"
width="500"
append-to-body
>
<div class="company_box">
<el-radio-group v-model="transferForm.username">
<el-radio
v-for="item in transferOptions"
:key="item.userName"
:label="item.userName"
>{{ item.nickName }}</el-radio
>
</el-radio-group>
<div v-show="transferOptions.length === 0">暂无其他员工</div>
</div>
<template #footer>
<div class="dialog-footer">
<el-button @click="transferShow = false">取消</el-button>
<el-button type="primary" @click="submitTransfer">确定</el-button>
</div>
</template>
</el-dialog>
<!-- 承接回馈对话框 -->
<el-dialog
v-model="showFeedback"
title="填写承接回馈"
width="500"
append-to-body
>
<el-form :model="FeedbackForm" ref="policyRef" label-width="100px">
<el-form-item label="商险单号" prop="progress">
<el-input
v-model="FeedbackForm.commercialinsurancepolicynumber"
placeholder="请输入保单号"
:disabled="hasRole"
/>
</el-form-item>
<el-form-item label="强险单号" prop="progress">
<el-input
v-model="FeedbackForm.stronginsurancepolicynumber"
placeholder="请输入保单号"
:disabled="hasRole"
/>
</el-form-item>
<el-form-item label="保单回馈" prop="progress">
<QuillEditor :value="FeedbackForm.message" @updateValue="getMsg" />
</el-form-item>
</el-form>
<template #footer>
<div class="dialog-footer">
<el-button @click="showFeedback = false">取消</el-button>
<el-button type="primary" @click="submit">提交回馈</el-button>
</div>
</template>
</el-dialog>
<!-- 查询问题件弹出框 -->
<el-dialog v-model="showIssue" title="保单信息" width="700" append-to-body>
<el-form :model="IssueForm" ref="policyRef" label-width="100px">
<el-form-item label="问题件原因" prop="progress">
<QuillEditor :value="IssueForm.deprecatedReason" />
</el-form-item>
</el-form>
</el-dialog>
<!-- 编辑对话框 -->
<el-dialog v-model="open" title="保单信息" width="700" append-to-body>
<el-form :model="form" ref="policyRef" label-width="100px">
<el-row>
<el-col :span="12">
<el-form-item label="车牌号" prop="licensePlateNumber">
<el-input
v-model="form.licensePlateNumber"
placeholder="请输入车牌号"
:disabled="!hasRole"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="车辆识别号" prop="frameNumber">
<el-input
v-model="form.frameNumber"
:disabled="!hasRole"
placeholder="请输入车架号"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="企业名称" prop="businessName">
<el-input
v-model="form.businessName"
:disabled="!hasRole"
placeholder="请输入企业名称"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="联系电话" prop="businessPhone">
<el-input
v-model="form.businessPhone"
:disabled="!hasRole"
placeholder="请输入联系电话"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="上年承保公司" prop="sysDeptId">
<el-select
v-model="form.sysDeptId"
:disabled="!hasRole"
style="width: 230px"
>
<el-option
v-for="item in deptOptions"
:key="item.deptId"
:label="item.deptName"
:value="item.deptId"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="车辆使用性质" prop="vehicleNature">
<el-select
v-model="form.vehicleNatureId"
:disabled="!hasRole"
style="width: 230px"
>
<el-option
v-for="item in carNatureOption"
:key="item.id"
:label="item.name"
:value="item.id"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="发动机号" prop="engineNumber">
<el-input
v-model="form.engineNumber"
:disabled="!hasRole"
placeholder="请输入发动机号"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="是否新能源" prop="isNewEnergy">
<el-select
v-model="form.isNewEnergy"
:disabled="!hasRole"
style="width: 230px"
>
<el-option
v-for="item in NewEnergyOption"
:key="item.id"
:label="item.name"
:value="item.id"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="信用代码" prop="uniformCreditCode">
<el-input
v-model="form.uniformCreditCode"
:disabled="!hasRole"
placeholder="请输入信用代码"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="保险需求" prop="requirements">
<el-select
v-model="form.requirementsId"
:disabled="!hasRole"
style="width: 230px"
>
<el-option
v-for="item in needOption"
:key="item.id"
:label="item.name"
:value="item.id"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<!-- 流转提示 -->
<div class="transferTip">
<span>本次订单流转:{{ transferTip }}</span>
<el-button :loading="loadingBtn" @click="getTransferTip"
>刷新</el-button
>
</div>
</el-form>
<template #footer>
<div
class="dialog-footer"
style="
display: flex;
justify-content: space-around;
width: 65%;
margin-left: auto;
"
>
<el-button
type="primary"
v-hasRole="['associationemployee']"
@click.stop="handleSuccess('0')"
>
通过
</el-button>
<el-button
type="primary"
v-hasRole="['associationemployee']"
@click="submitUpdate"
>保存</el-button
>
<el-button
type="primary"
v-hasRole="['associationemployee']"
@click="handleVoid('2')"
>作废</el-button
>
<el-button
type="primary"
v-hasRole="['associationemployee']"
@click="handleFallback('1')"
>退回</el-button
>
<el-button
type="primary"
v-hasRole="['associationemployee']"
@click.stop="handleAuthCompany('0')"
>分配</el-button
>
</div>
</template>
</el-dialog>
</div>
</template>
<script setup>
import {
queryMyList,
disposeUser,
transfer,
getUserList,
updateCarInfo,
getCarDetail,
getCompanyTip,
queryDefeatContent,
} from "@/api/policy/index";
import { checkRole } from "@/utils/permission"; // 权限判断函数
import { queryCarType } from "@/api/configurationCenter/carType.js";
import { queryCarNature } from "@/api/configurationCenter/carNature.js";
import { queryNeed } from "@/api/configurationCenter/need.js";
import { listDept } from "@/api/system/dept";
const { proxy } = getCurrentInstance();
const loading = ref(false);
const activeTitle = ref("");
const loadingBtn = ref(false);
const showIssue = ref(false);
const total = ref(0);
const typeId = ref(0); // 判断类型 0 问题件 1 退回 2 作废
const transferTip = ref(""); //流转下一家名称
const transferDeptId = ref(""); // 流转的部门公司ID
const open = ref(false);
const timer = ref(null);
const timerReason = ref(null);
const form = ref({});
const showFeedback = ref(false);
const transferShow = ref(false);
const transferForm = ref({});
const taskId = ref("");
const IssueForm = ref({
deprecatedReason: "",
});
const FeedbackForm = ref({
stronginsurancepolicynumber: "",
commercialinsurancepolicynumber: "",
message: "",
});
const getParams = reactive({
pageNum: 1,
pageSize: 100,
});
const companyShow = ref(false);
const deptOptions = ref([]);
const transferOptions = ref([]);
const deprecatedShow = ref(false);
const deprecatedForm = ref({
deprecatedReason: "",
associationapprove: "",
});
const companyForm = ref({});
const queryParams = reactive({
pageNum: 1,
pageSize: 10,
type: 1,
});
const companyQueryParams = reactive({
deptName: undefined,
status: undefined,
});
const policyList = ref([]);
// 判断是否有权限
const hasRole = computed(() => {
return proxy.$auth.hasRole("associationemployee");
});
// 新能源
const NewEnergyOption = ref([
{
id: "0",
name: "否",
},
{
id: "1",
name: "是",
},
]);
// 车辆类型
const carTypeOption = ref([]);
const getCarTypeOption = async () => {
const { data } = await queryCarType(getParams);
carTypeOption.value = data.records;
};
getCarTypeOption();
// 车辆使用性质
const carNatureOption = ref([]);
const getcarNatureOption = async () => {
const { data } = await queryCarNature(getParams);
carNatureOption.value = data.records;
};
getcarNatureOption();
// 保险需求
const needOption = ref([]);
const getNeedOption = async () => {
const { data } = await queryNeed(getParams);
needOption.value = data.records;
};
getNeedOption();
// 赋值taskId
const handleTask = (row) => {
taskId.value = row.taskId;
};
const getList = async () => {
loading.value = true;
const { data } = await queryMyList(queryParams);
policyList.value = data.rows;
total.value = data.total;
loading.value = false;
};
// 承接
const handleContinue = (row) => {
if (row.orderProgress === "待承接") {
proxy.$modal
.confirm("是否要承接该保单")
.then(function () {})
.then(() => {
disposeUser({}, row.taskId).then((res) => {
proxy.$modal.msgSuccess("承接成功");
getList();
});
})
.catch(() => {
proxy.$modal.msg("已取消");
});
} else {
reset();
FeedbackForm.value.taskId = row.taskId;
showFeedback.value = true;
}
};
// 问题件
const handleTroubleshooting = (taskId) => {
deprecatedForm.value.taskId = taskId;
activeTitle.value = "问题件退回至协会";
typeId.value = 0;
deprecatedShow.value = true;
};
// 通过保单
const handleSuccess = (associationapprove) => {
proxy.$modal
.confirm("是否通过该保单")
.then(function () {})
.then(async () => {
await updateCarInfo(form.value);
await disposeUser(
{
associationapprove,
associationapprovetype: "0",
deptid: transferDeptId.value,
},
taskId.value
);
proxy.$modal.msgSuccess("保单已通过");
open.value = false;
getList();
})
.catch(() => {
proxy.$modal.msg("取消通过");
});
};
// 退回保单
const handleFallback = (associationapprove) => {
clearTimeout(timerReason.value);
deprecatedForm.value = {
associationapprove,
taskId: taskId.value,
};
deprecatedForm.value.deprecatedReason = "";
typeId.value = 1;
activeTitle.value = "退回后用户需修改后重新提交";
deprecatedShow.value = true;
};
// 作废保单
const handleVoid = (associationapprove) => {
clearTimeout(timerReason.value);
deprecatedForm.value = {
associationapprove,
taskId: taskId.value,
};
deprecatedForm.value.deprecatedReason = "";
typeId.value = 2;
activeTitle.value =
"温馨提示:该保单作废后车牌号、车架号在本自然年度无法重新提交";
deprecatedShow.value = true;
};
// 提交方法
// 查询问题件原因
const lookReason = async (row) => {
const { data } = await queryDefeatContent({
processInstanceId: row.processInstanceId,
type: 0,
});
IssueForm.value.deprecatedReason = data.message;
showIssue.value = true;
};
// 提交作废,退回,问题件表单
const sunmitDeprecated = () => {
let data = {};
if (typeId.value === 0) {
data = {
policystatus: "1",
comment: deprecatedForm.value.deprecatedReason,
};
} else {
data = {
associationapprove: deprecatedForm.value.associationapprove,
comment: deprecatedForm.value.deprecatedReason,
};
}
const taskId = deprecatedForm.value.taskId;
disposeUser(data, taskId).then((res) => {
getList();
deprecatedShow.value = false;
proxy.$modal.msgSuccess("操作成功");
});
};
// 分配承保公司
const handleAuthCompany = (associationapprove) => {
companyForm.value = {
associationapprove,
taskId: taskId.value,
};
companyShow.value = true;
};
// 获取人员列表
const getUser = async () => {
const { data } = await getUserList();
transferOptions.value = data;
};
// 转办或分配
const handleSharing = (id) => {
transferForm.value.taskId = id;
getUser();
transferShow.value = true;
};
/** 查询部门列表 */
const getDeptList = () => {
loading.value = true;
listDept(companyQueryParams).then((response) => {
let newArr = [];
newArr = response.data.filter((item) => item.parentId === 100);
deptOptions.value = newArr.map((child) => {
return {
deptId: child.deptId.toString(),
deptName: child.deptName,
};
});
loading.value = false;
});
};
/** 重置操作表单 */
function reset() {
proxy.resetForm("policyRef");
}
/** 修改按钮操作 */
const handleUpdate = async (row) => {
reset();
const { data } = await getCarDetail(row.businessKey);
getTransferTip();
form.value = data;
open.value = true;
};
/** 提交通过分配承保公司 */
function submitForm() {
const data = {
associationapprove: companyForm.value.associationapprove,
associationapprovetype: "1",
deptid: companyForm.value.deptId.toString(),
};
const taskId = companyForm.value.taskId;
disposeUser(data, taskId).then((res) => {
companyShow.value = false;
getList();
proxy.$modal.msgSuccess("保单已分配成功");
});
}
/** 提交通过分配转办人员 */
function submitTransfer() {
const data = {
username: transferForm.value.username,
};
const taskId = transferForm.value.taskId;
transfer(data, taskId).then((res) => {
transferShow.value = false;
getList();
proxy.$modal.msgSuccess("保单已分配成功");
});
}
// 提交承接回馈
const submit = () => {
const data = {
policystatus: "2",
message: FeedbackForm.value.comment,
commercialinsurancepolicynumber:
FeedbackForm.value.commercialinsurancepolicynumber,
stronginsurancepolicynumber: FeedbackForm.value.stronginsurancepolicynumber,
};
disposeUser(data, FeedbackForm.value.taskId).then((res) => {
getList();
proxy.$modal.msgSuccess("回馈成功");
showFeedback.value = false;
});
};
const getMsg = (val) => {
clearTimeout(timer.value);
timer.value = setTimeout(() => {
FeedbackForm.value.comment = val;
}, 1000);
};
// 获取流转下一家分配公司
const getTransferTip = async () => {
loadingBtn.value = true;
const { data } = await getCompanyTip();
transferTip.value = data.deptName;
transferDeptId.value = data.deptId;
loadingBtn.value = false;
};
// 填写作废原因
const getReason = (val) => {
clearTimeout(timerReason.value);
timerReason.value = setTimeout(() => {
deprecatedForm.value.deprecatedReason = val;
}, 1000);
};
// 提交修改
const submitUpdate = () => {
updateCarInfo(form.value).then((response) => {
proxy.$modal.msgSuccess("修改成功");
open.value = false;
getList();
});
};
getList();
if (checkRole(["associationemployee"])) {
getDeptList();
}
</script>
<style lang="scss" scoped>
::v-deep(.el-radio-group) {
align-items: start;
flex-direction: column;
}
.header_top {
display: flex;
align-items: center;
gap: 30px;
margin-bottom: 20px;
}
.transferTip {
display: flex;
align-items: center;
gap: 20px;
font-size: 14px;
color: #666;
}
.company_content {
width: 100%;
height: 200px;
overflow-y: scroll;
}
</style>
... ...
<template>
<div class="app-container">
<!-- 筛选条件 -->
<el-form
:model="queryParams"
ref="queryRef"
v-show="showSearch"
:inline="true"
label-width="68px"
>
<el-form-item label="用户姓名" prop="name">
<el-input
v-model="queryParams.name"
placeholder="请输入名称"
clearable
style="width: 200px"
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item label="车牌号" prop="licensePlate">
<el-input
v-model="queryParams.licensePlate"
placeholder="请输入车牌号"
clearable
style="width: 200px"
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item label="操作人员" prop="association">
<el-input
v-model="queryParams.association"
placeholder="填写操作人员"
clearable
style="width: 200px"
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item label="分配机制" prop="associationapprovetype">
<el-select
v-model="queryParams.associationapprovetype"
placeholder="选择分配机制"
clearable
style="width: 200px"
>
<el-option
v-for="dict in options"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="处理状态" prop="associationapprove">
<el-select
v-model="queryParams.associationapprove"
placeholder="选择处理状态"
clearable
style="width: 200px"
>
<el-option
v-for="dict in associationapproveOptions"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="Search"
v-hasPermi="['system:registrationmonitor:listProcessed']"
@click="handleQuery"
>查询</el-button
>
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<!-- 表格数据 -->
<el-table v-loading="loading" :data="policyList" @row-click="handleUpdate">
<el-table-column label="序号" type="index" width="55" align="center" />
<el-table-column
label="登记时间"
prop="createTime"
width="160"
align="center"
/>
<el-table-column
label="车牌号"
prop="licensePlateNumber"
width="150"
align="center"
/>
<el-table-column
label="车架号"
prop="frameNumber"
width="240"
align="center"
/>
<el-table-column
label="企业名称"
prop="businessName"
width="100"
align="center"
/>
<el-table-column
label="统一信用代码"
prop="uniformCreditCode"
width="180"
align="center"
/>
<el-table-column
label="联系电话"
prop="businessPhone"
width="150"
align="center"
/>
<el-table-column
label="处理状态"
prop="policyStatus"
show-overflow-tooltip
width="150"
/>
<el-table-column
label="上年承保公司"
prop="sysDeptName"
width="150"
align="center"
/>
<el-table-column label="操作人员" width="150" align="center">
<template #default="{ row }">
<span>{{
row.associationEmployeeUserName || row.companyEmployeeUserName
}}</span>
</template>
</el-table-column>
<el-table-column label="操作时间" width="160">
<template #default="{ row }">
<span>{{
row.companyEmployeeUndertakeTime || row.distributionTime
}}</span>
</template>
</el-table-column>
<el-table-column
label="分配机制"
width="120"
prop="distributionMechanism"
align="center"
/>
<el-table-column
label="承保公司"
prop="companyName"
show-overflow-tooltip
width="150"
align="center"
>
<template #default="{ row }">
<span>{{ row.companyName || "无" }}</span>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
v-model:page="queryParams.pageNum"
v-model:limit="queryParams.pageSize"
@pagination="getList"
/>
<!-- 查阅对话框 -->
<el-dialog v-model="open" title="保单信息" width="700" append-to-body>
<el-form :model="form" ref="policyRef" label-width="100px">
<el-row>
<el-col :span="12">
<el-form-item label="车牌号" prop="licensePlateNumber">
<el-input
v-model="form.licensePlateNumber"
placeholder="请输入车牌号"
disabled
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="车架号" prop="frameNumber">
<el-input
v-model="form.frameNumber"
disabled
placeholder="请输入车架号"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="企业名称" prop="businessName">
<el-input
v-model="form.businessName"
:disabled="!hasRole"
placeholder="请输入企业名称"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="联系电话" prop="businessPhone">
<el-input
v-model="form.businessPhone"
:disabled="!hasRole"
placeholder="请输入联系电话"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="发动机号" prop="engineNumber">
<el-input v-model="form.engineNumber" placeholder="无" disabled />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="上年承保公司" prop="sysDeptName">
<el-input
v-model="form.sysDeptName"
disabled
placeholder="请输入上年承保公司"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="分配机制" prop="distributionMechanism">
<el-input
v-model="form.distributionMechanism"
disabled
placeholder="无"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="信用代码" prop="uniformCreditCode">
<el-input
v-model="form.uniformCreditCode"
:disabled="!hasRole"
placeholder="请输入信用代码"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="保险需求" prop="requirements">
<el-input v-model="form.requirements" disabled placeholder="无" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="使用性质" prop="vehicleNature">
<el-input
v-model="form.vehicleNature"
disabled
placeholder="无"
/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-dialog>
</div>
</template>
<script setup>
import { queryProcessedList } from "@/api/policy/index";
const { proxy } = getCurrentInstance();
const loading = ref(false);
const total = ref(0);
const open = ref(false);
const form = ref({});
const showSearch = ref(true);
const queryParams = reactive({
pageNum: 1,
pageSize: 10,
name: "",
type: 1,
licensePlate: "",
association: "",
associationapprovetype: "",
associationapprove: "",
});
const options = [
{
value: 0,
label: "系统分配",
},
{
value: 1,
label: "人工分配",
},
];
const associationapproveOptions = [
{
value: 0,
label: "通过",
},
{
value: 1,
label: "退回",
},
];
const policyList = ref([]);
const getList = async () => {
loading.value = true;
const res = await queryProcessedList(queryParams);
policyList.value = res.rows;
total.value = res.total;
loading.value = false;
};
/** 重置操作表单 */
function reset() {
proxy.resetForm("policyRef");
}
/** 修改按钮操作 */
function handleUpdate(row) {
reset();
form.value = row;
open.value = true;
}
/** 搜索按钮操作 */
function handleQuery() {
queryParams.pageNum = 1;
getList();
}
/** 重置按钮操作 */
function resetQuery() {
proxy.resetForm("queryRef");
handleQuery();
}
getList();
</script>
<style></style>
... ...
<template>
<div class="app-container">
<div class="tip">
提示:订单分配不以保险公司顺序进行分配,系统随机分配;重新添加或修改订单后,系统重新开始计算;分配颜度满了以后,系统重新计算
<p>
提示:订单分配不以保险公司顺序进行分配,系统随机分配;重新添加或修改订单后,系统重新开始计算;分配颜度满了以后,系统重新计算
</p>
<p style="display: flex; align-items: center; gap: 20px">
<span>轮次:{{ countData.rounds }}</span>
<span>笔数:{{ countData.strokesNum }}</span>
<span>每轮总数:{{ countData.countRounds }}</span>
<span>实际总笔数:{{ countData.actualStrokesNum }}</span>
</p>
</div>
<el-row :gutter="10" class="mb8">
... ... @@ -112,12 +120,14 @@ import {
queryRules,
delRules,
} from "@/api/configurationCenter/rules.js";
import { getCount } from "@/api/policy/index";
import { listDept } from "@/api/system/dept";
const { proxy } = getCurrentInstance();
const loading = ref(false);
const multiple = ref(true);
const ids = ref([]);
const total = ref(0);
const countData = ref({});
const deptOptions = ref([]);
const title = ref("添加分配规则");
const open = ref(false);
... ... @@ -136,6 +146,7 @@ const rulesList = ref([]);
onMounted(() => {
getList();
getDeptList();
getNumber();
});
// 获取规则列表
... ... @@ -179,6 +190,12 @@ function handleDelete(row) {
});
}
// 获取轮次轮数
const getNumber = async () => {
const { data } = await getCount();
countData.value = data[0];
};
/** 重置操作表单 */
function reset() {
form.value = {
... ...
... ... @@ -198,6 +198,7 @@ const queryParams = reactive({
pageNum: 1,
pageSize: 10,
name: "",
type: 0,
licensePlate: "",
association: "",
});
... ...
... ... @@ -259,6 +259,7 @@ const queryParams = reactive({
pageNum: 1,
pageSize: 10,
name: "",
type: 0,
licensePlate: "",
association: "",
associationapprovetype: "",
... ...
... ... @@ -176,6 +176,7 @@ const companyShow = ref(false);
const queryParams = reactive({
pageNum: 1,
pageSize: 10,
type: 0,
});
const policyList = ref([]);
... ...
... ... @@ -327,6 +327,7 @@ const queryParams = reactive({
associationapprovetype: "",
orderprogress: "",
policystatus: "",
type: 0,
});
const progressOption = ref([
... ...
... ... @@ -507,6 +507,7 @@ const companyForm = ref({});
const queryParams = reactive({
pageNum: 1,
pageSize: 10,
type: 0,
});
const companyQueryParams = reactive({
deptName: undefined,
... ...
... ... @@ -239,6 +239,7 @@ const queryParams = reactive({
pageNum: 1,
pageSize: 10,
name: "",
type: 0,
licensePlate: "",
association: "",
associationapprovetype: "",
... ...
<template>
<div class="app-container">
<!-- 筛选条件 -->
<el-form
:model="queryParams"
ref="queryRef"
v-show="showSearch"
:inline="true"
label-width="68px"
>
<el-form-item label="分配机制" prop="associationapprovetype">
<el-select
v-model="queryParams.associationapprovetype"
placeholder="系统分配"
clearable
style="width: 220px"
>
<el-option
v-for="dict in options"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="操作人员" prop="association">
<el-input
v-model="queryParams.association"
placeholder="填写操作人员"
clearable
style="width: 220px"
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item label="承保公司" prop="company">
<el-input
v-model="queryParams.company"
placeholder="请输入承保公司"
clearable
style="width: 220px"
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item label="承接人" prop="companyEmployeeUserName">
<el-input
v-model="queryParams.companyEmployeeUserName"
placeholder="请输入承接人"
clearable
style="width: 220px"
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item label="保单状态" prop="policystatus">
<el-select
v-model="queryParams.policystatus"
placeholder="选择进度"
clearable
style="width: 220px"
>
<el-option
v-for="dict in statusOption"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="保单进度" prop="orderprogress">
<el-select
v-model="queryParams.orderprogress"
placeholder="选择进度"
clearable
style="width: 220px"
>
<el-option
v-for="dict in progressOption"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="车主" prop="name">
<el-input
v-model="queryParams.name"
placeholder="请输入车主"
clearable
style="width: 220px"
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item label="车牌号" prop="licensePlate">
<el-input
v-model="queryParams.licensePlate"
placeholder="请输入车牌号"
clearable
style="width: 220px"
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item label="时间范围" prop="timeFrame">
<el-date-picker
v-model="timeFrame"
type="datetimerange"
range-separator="To"
start-placeholder="开始时间"
end-placeholder="结束时间"
@change="handleTime"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="Search" @click="handleQuery"
>查询</el-button
>
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="Download"
@click="handleExport"
v-hasPermi="['system:registrationmonitor:export']"
>导出</el-button
>
</el-col>
</el-row>
<!-- 表格数据 -->
<el-table v-loading="loading" :data="policyList">
<el-table-column label="序号" width="55" type="index" />
<el-table-column
label="登记时间"
prop="createTime"
width="160"
align="center"
/>
<el-table-column
label="车牌号"
prop="licensePlateNumber"
width="150"
align="center"
/>
<el-table-column
label="车架号"
prop="frameNumber"
width="240"
align="center"
/>
<el-table-column
label="发动机号"
width="180"
prop="engineNumber"
align="center"
:show-overflow-tooltip="true"
/>
<el-table-column label="是否新能源" width="150" align="center">
<template #default="{ row }">
{{ row.isNewEnergy === "1" ? "是" : "否" }}
</template>
</el-table-column>
<el-table-column
label="企业名称"
prop="businessName"
width="100"
align="center"
/>
<el-table-column
label="统一信用代码"
prop="uniformCreditCode"
width="180"
align="center"
/>
<el-table-column
label="联系电话"
prop="businessPhone"
width="150"
align="center"
/>
<el-table-column
align="center"
label="分配机制"
width="120"
prop="distributionMechanism"
/>
<el-table-column
align="center"
label="操作人"
width="120"
prop="distributionMechanism"
>
<template #default="{ row }">
<span>{{
row.companyEmployeeUserName || row.associationEmployeeUserName
}}</span>
</template>
</el-table-column>
<el-table-column
align="center"
label="操作时间"
width="160"
prop="distributionTime"
/>
<el-table-column
label="承保公司"
prop="companyName"
width="150"
align="center"
/>
<el-table-column label="保单进度" width="100" prop="orderProgress" />
<el-table-column
label="保单状态"
width="100"
prop="policyStatus"
:show-overflow-tooltip="true"
/>
<el-table-column label="时效" width="100">
<template #default="{ row }">
<span>{{
row.policyStatus === "已作废" ||
row.policyStatus === "退回后用户取消登记"
? "无"
: timeDifference(row)
}}</span>
</template>
</el-table-column>
<el-table-column
label="查询回馈"
fixed="right"
width="100"
prop="Feedback"
>
<template #default="{ row }">
<el-button
v-show="
row.policyStatus === '已作废' || row.policyStatus === '已办结'
"
type="primary"
@click="queryRemark(row)"
>查阅</el-button
>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
v-model:page="queryParams.pageNum"
v-model:limit="queryParams.pageSize"
@pagination="getList"
/>
<!-- 查阅信息弹出框 -->
<el-dialog v-model="open" title="保单信息" width="700" append-to-body>
<el-form :model="form" ref="policyRef" label-width="100px">
<el-row>
<el-col :span="12">
<el-form-item label="车牌号" prop="licensePlateNumber">
<el-input
v-model="form.licensePlateNumber"
placeholder="请输入车牌号"
disabled
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="车架号" prop="frameNumber">
<el-input
v-model="form.frameNumber"
disabled
placeholder="请输入车架号"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="企业名称" prop="businessName">
<el-input
v-model="form.businessName"
:disabled="!hasRole"
placeholder="请输入企业名称"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="联系电话" prop="businessPhone">
<el-input
v-model="form.businessPhone"
:disabled="!hasRole"
placeholder="请输入联系电话"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="车辆使用性质" prop="vehicleNature">
<el-select
v-model="form.vehicleNatureId"
disabled
style="width: 230px"
>
<el-option
v-for="item in carNatureOption"
:key="item.id"
:label="item.name"
:value="item.id"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="保险需求" prop="requirements">
<el-select
v-model="form.requirementsId"
disabled
style="width: 230px"
>
<el-option
v-for="item in needOption"
:key="item.id"
:label="item.name"
:value="item.id"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row
v-if="
form.commercialInsurancePolicyNumber ||
form.strongInsurancePolicyNumber
"
>
<el-col :span="12">
<el-form-item
label="商险单号"
prop="commercialInsurancePolicyNumber"
>
<el-input
v-model="form.commercialInsurancePolicyNumber"
disabled
placeholder="请输入承保单号"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="强险单号" prop="strongInsurancePolicyNumber">
<el-input
v-model="form.strongInsurancePolicyNumber"
disabled
placeholder="请输入承保单号"
/>
</el-form-item>
</el-col>
</el-row>
<el-form-item :label="labelTitle" prop="progress">
<QuillEditor :value="form.comment" @updateValue="getMsg" />
</el-form-item>
</el-form>
<template #footer>
<div class="dialog-footer">
<el-button @click="open = false">取消</el-button>
<el-button
type="primary"
v-hasPermi="['policy:info:edit']"
@click="open = false"
>确认</el-button
>
</div>
</template>
</el-dialog>
</div>
</template>
<script setup>
import {
queryList,
queryResult,
queryDefeatContent,
getCarDetail,
} from "@/api/policy";
import { queryCarNature } from "@/api/configurationCenter/carNature.js";
import { queryNeed } from "@/api/configurationCenter/need.js";
import { computed, reactive } from "vue";
import { intervalTime } from "@/utils/intervalTime";
const { proxy } = getCurrentInstance();
const loading = ref(false);
const total = ref(0);
const open = ref(false);
const isCustom = ref(false);
const labelTitle = ref("保单回馈");
// 表单
const form = ref({
name: "",
identificationNumber: "",
sysDeptId: "",
customizeVehicleBrand: "",
customizeVehicleModel: "",
licensePlateNumber: "",
lincensePlateTypeId: "",
isCustomizeBrandAndModel: "1",
frameNumber: "",
engineNumber: "",
vehicleTypeId: "",
vehicleNatureId: "",
passengersNumber: "",
passengerCapacity: "",
emissions: "",
vehicleModelId: "",
vehicleBrandId: "",
tractionMass: "",
requirementsId: "",
});
const showSearch = ref(true);
// 请求选项参数
const getParams = reactive({
pageNum: 1,
pageSize: 100,
});
// 查询参数
const queryParams = reactive({
pageNum: 1,
pageSize: 10,
name: "",
licensePlate: "",
association: "",
company: "",
type: 1,
associationapprovetype: "",
companyEmployeeUserName: "",
orderprogress: "",
policystatus: "",
startTime: "",
endTime: "",
});
const timeFrame = ref(null);
const statusOption = ref([
{
value: 0,
label: "进行中",
},
{
value: 1,
label: "疑难件",
},
{
value: 2,
label: "已办结",
},
{
value: 6,
label: "协会退回",
},
{
value: 7,
label: "放弃登记",
},
]);
const progressOption = ref([
{
value: 0,
label: "待承接",
},
{
value: 1,
label: "已承接",
},
]);
const options = [
{
value: 0,
label: "系统分配",
},
{
value: 1,
label: "人工分配",
},
];
// 保单列表
const policyList = ref([]);
// 计算时效
const timeDifference = computed(() => (row) => {
let startTime = "";
let endTime = "";
// 判断协会是否处理了,如果没有则不计算时效
if (row.distributionTime !== null) {
startTime = new Date(row.distributionTime);
} else {
return "无";
}
// 判断结束时间,已办结时间为最后时间,如果没有则使用员工承接时间
if (row.policyTime !== null) {
endTime = new Date(row.policyTime);
} else if (row.companyEmployeeUndertakeTime !== null) {
endTime = new Date(row.companyEmployeeUndertakeTime);
} else {
endTime = Date.now();
}
return intervalTime(startTime, endTime);
});
// 车辆使用性质
const carNatureOption = ref([]);
const getcarNatureOption = async () => {
const { data } = await queryCarNature(getParams);
carNatureOption.value = data.records;
};
getcarNatureOption();
// 保险需求
const needOption = ref([]);
const getNeedOption = async () => {
const { data } = await queryNeed(getParams);
needOption.value = data.records;
};
getNeedOption();
/** 导出按钮操作 */
function handleExport() {
proxy.download(
"registration/monitor/export",
{
...queryParams,
},
`user_${new Date().getTime()}.xlsx`
);
}
// 选择时间范围
const handleTime = (valu) => {
queryParams.startTime = proxy.parseTime(valu[0]);
queryParams.endTime = proxy.parseTime(valu[1]);
};
// 获取保单列表
const getList = async () => {
loading.value = true;
const res = await queryList(queryParams);
policyList.value = res.rows;
total.value = res.total;
loading.value = false;
};
/** 重置操作表单 */
function reset() {
proxy.resetForm("policyRef");
}
/** 查询备注或回馈 */
const queryRemark = async (row) => {
const { data } = await getCarDetail(row.businessKey);
form.value = data;
isCustom.value = data.isCustomizeBrandAndModel == "0";
if (row.policyStatus === "已作废") {
labelTitle.value = "作废备注";
const { data } = await queryDefeatContent({
processInstanceId: row.processInstanceId,
type: 2,
});
form.value.comment = data.message;
open.value = true;
} else {
queryResult({ processInstanceId: row.processInstanceId }).then((res) => {
form.value.commercialInsurancePolicyNumber =
res?.data?.commercialInsurancePolicyNumber;
form.value.strongInsurancePolicyNumber =
res?.data?.strongInsurancePolicyNumber;
form.value.comment = res?.data?.message;
open.value = true;
});
}
};
const getMsg = (val) => {
form.value.comment = val;
};
/** 搜索按钮操作 */
function handleQuery() {
queryParams.pageNum = 1;
getList();
}
/** 重置按钮操作 */
function resetQuery() {
proxy.resetForm("queryRef");
queryParams.startTime = "";
queryParams.endTime = "";
handleQuery();
}
getList();
</script>
<style>
.total_line {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 20px;
font-size: 14px;
color: #666;
}
</style>
... ...
... ... @@ -325,11 +325,28 @@
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col v-if="form.policyNumber" :span="12">
<el-form-item label="承保单号" prop="policyNumber">
<el-row
v-if="
form.commercialInsurancePolicyNumber ||
form.strongInsurancePolicyNumber
"
>
<el-col :span="12">
<el-form-item
label="商险单号"
prop="commercialInsurancePolicyNumber"
>
<el-input
v-model="form.policyNumber"
v-model="form.commercialInsurancePolicyNumber"
disabled
placeholder="请输入承保单号"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="强险单号" prop="strongInsurancePolicyNumber">
<el-input
v-model="form.strongInsurancePolicyNumber"
disabled
placeholder="请输入承保单号"
/>
... ... @@ -359,7 +376,6 @@
import {
queryList,
queryResult,
updateCarInfo,
queryDefeatContent,
getCarDetail,
} from "@/api/policy";
... ... @@ -409,6 +425,7 @@ const queryParams = reactive({
licensePlate: "",
association: "",
company: "",
type: 0,
associationapprovetype: "",
companyEmployeeUserName: "",
orderprogress: "",
... ... @@ -545,7 +562,10 @@ const queryRemark = async (row) => {
open.value = true;
} else {
queryResult({ processInstanceId: row.processInstanceId }).then((res) => {
form.value.policyNumber = res?.data?.policyNumber;
form.value.commercialInsurancePolicyNumber =
res?.data?.commercialInsurancePolicyNumber;
form.value.strongInsurancePolicyNumber =
res?.data?.strongInsurancePolicyNumber;
form.value.comment = res?.data?.message;
open.value = true;
});
... ... @@ -568,13 +588,6 @@ function resetQuery() {
queryParams.endTime = "";
handleQuery();
}
const submit = async () => {
updateCarInfo(form.value).then((response) => {
proxy.$modal.msgSuccess("修改成功");
open.value = false;
getList();
});
};
getList();
</script>
... ...