作者 xiaoqiu

报表中心添加了查询问题件

... ... @@ -235,11 +235,7 @@
>
<template #default="{ row }">
<el-button
v-show="
row.policyStatus === '已作废' ||
row.policyStatus === '已办结' ||
row.policyStatus === '已退回'
"
v-show="isShowBtn(row)"
type="primary"
@click="queryRemark(row)"
>查阅</el-button
... ... @@ -446,6 +442,10 @@ const queryParams = reactive({
endTime: "",
});
const timeFrame = ref(null);
const isShowBtn = computed(() => (row) => {
const arr = ["已作废", "已办结", "已退回", "问题件"];
return arr.includes(row.policyStatus);
});
const statusOption = ref([
{
value: 0,
... ... @@ -568,7 +568,6 @@ function reset() {
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({
... ... @@ -586,7 +585,7 @@ const queryRemark = async (row) => {
form.value.comment = res?.data?.message;
open.value = true;
});
} else {
} else if (row.policyStatus === "已退回") {
labelTitle.value = "退回原因";
const { data } = await queryDefeatContent({
processInstanceId: row.processInstanceId,
... ... @@ -594,6 +593,14 @@ const queryRemark = async (row) => {
});
form.value.comment = data.message;
open.value = true;
} else {
labelTitle.value = "问题件原因";
const { data } = await queryDefeatContent({
processInstanceId: row.processInstanceId,
type: 0,
});
form.value.comment = data.message;
open.value = true;
}
};
... ...
... ... @@ -229,11 +229,7 @@
>
<template #default="{ row }">
<el-button
v-show="
row.policyStatus === '已作废' ||
row.policyStatus === '已办结' ||
row.policyStatus === '已退回'
"
v-show="isShowBtn(row)"
type="primary"
@click="queryRemark(row)"
>查阅</el-button
... ... @@ -417,6 +413,11 @@ const form = ref({
tractionMass: "",
requirementsId: "",
});
const isShowBtn = computed(() => (row) => {
const arr = ["已作废", "已办结", "已退回", "问题件"];
return arr.includes(row.policyStatus);
});
const showSearch = ref(true);
// 请求选项参数
const getParams = reactive({
... ... @@ -579,7 +580,7 @@ const queryRemark = async (row) => {
form.value.comment = res?.data?.message;
open.value = true;
});
} else {
} else if (row.policyStatus === "已退回") {
labelTitle.value = "退回原因";
const { data } = await queryDefeatContent({
processInstanceId: row.processInstanceId,
... ... @@ -587,6 +588,14 @@ const queryRemark = async (row) => {
});
form.value.comment = data.message;
open.value = true;
} else {
labelTitle.value = "问题件原因";
const { data } = await queryDefeatContent({
processInstanceId: row.processInstanceId,
type: 0,
});
form.value.comment = data.message;
open.value = true;
}
};
... ...