|
@@ -235,11 +235,7 @@ |
|
@@ -235,11 +235,7 @@ |
|
235
|
>
|
235
|
>
|
|
236
|
<template #default="{ row }">
|
236
|
<template #default="{ row }">
|
|
237
|
<el-button
|
237
|
<el-button
|
|
238
|
- v-show="
|
|
|
|
239
|
- row.policyStatus === '已作废' ||
|
|
|
|
240
|
- row.policyStatus === '已办结' ||
|
|
|
|
241
|
- row.policyStatus === '已退回'
|
|
|
|
242
|
- "
|
238
|
+ v-show="isShowBtn(row)"
|
|
243
|
type="primary"
|
239
|
type="primary"
|
|
244
|
@click="queryRemark(row)"
|
240
|
@click="queryRemark(row)"
|
|
245
|
>查阅</el-button
|
241
|
>查阅</el-button
|
|
@@ -446,6 +442,10 @@ const queryParams = reactive({ |
|
@@ -446,6 +442,10 @@ const queryParams = reactive({ |
|
446
|
endTime: "",
|
442
|
endTime: "",
|
|
447
|
});
|
443
|
});
|
|
448
|
const timeFrame = ref(null);
|
444
|
const timeFrame = ref(null);
|
|
|
|
445
|
+const isShowBtn = computed(() => (row) => {
|
|
|
|
446
|
+ const arr = ["已作废", "已办结", "已退回", "问题件"];
|
|
|
|
447
|
+ return arr.includes(row.policyStatus);
|
|
|
|
448
|
+});
|
|
449
|
const statusOption = ref([
|
449
|
const statusOption = ref([
|
|
450
|
{
|
450
|
{
|
|
451
|
value: 0,
|
451
|
value: 0,
|
|
@@ -568,7 +568,6 @@ function reset() { |
|
@@ -568,7 +568,6 @@ function reset() { |
|
568
|
const queryRemark = async (row) => {
|
568
|
const queryRemark = async (row) => {
|
|
569
|
const { data } = await getCarDetail(row.businessKey);
|
569
|
const { data } = await getCarDetail(row.businessKey);
|
|
570
|
form.value = data;
|
570
|
form.value = data;
|
|
571
|
- isCustom.value = data.isCustomizeBrandAndModel == "0";
|
|
|
|
572
|
if (row.policyStatus === "已作废") {
|
571
|
if (row.policyStatus === "已作废") {
|
|
573
|
labelTitle.value = "作废备注";
|
572
|
labelTitle.value = "作废备注";
|
|
574
|
const { data } = await queryDefeatContent({
|
573
|
const { data } = await queryDefeatContent({
|
|
@@ -586,7 +585,7 @@ const queryRemark = async (row) => { |
|
@@ -586,7 +585,7 @@ const queryRemark = async (row) => { |
|
586
|
form.value.comment = res?.data?.message;
|
585
|
form.value.comment = res?.data?.message;
|
|
587
|
open.value = true;
|
586
|
open.value = true;
|
|
588
|
});
|
587
|
});
|
|
589
|
- } else {
|
588
|
+ } else if (row.policyStatus === "已退回") {
|
|
590
|
labelTitle.value = "退回原因";
|
589
|
labelTitle.value = "退回原因";
|
|
591
|
const { data } = await queryDefeatContent({
|
590
|
const { data } = await queryDefeatContent({
|
|
592
|
processInstanceId: row.processInstanceId,
|
591
|
processInstanceId: row.processInstanceId,
|
|
@@ -594,6 +593,14 @@ const queryRemark = async (row) => { |
|
@@ -594,6 +593,14 @@ const queryRemark = async (row) => { |
|
594
|
});
|
593
|
});
|
|
595
|
form.value.comment = data.message;
|
594
|
form.value.comment = data.message;
|
|
596
|
open.value = true;
|
595
|
open.value = true;
|
|
|
|
596
|
+ } else {
|
|
|
|
597
|
+ labelTitle.value = "问题件原因";
|
|
|
|
598
|
+ const { data } = await queryDefeatContent({
|
|
|
|
599
|
+ processInstanceId: row.processInstanceId,
|
|
|
|
600
|
+ type: 0,
|
|
|
|
601
|
+ });
|
|
|
|
602
|
+ form.value.comment = data.message;
|
|
|
|
603
|
+ open.value = true;
|
|
597
|
}
|
604
|
}
|
|
598
|
};
|
605
|
};
|
|
599
|
|
606
|
|