作者 xiaoqiu

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

@@ -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
@@ -229,11 +229,7 @@ @@ -229,11 +229,7 @@
229 > 229 >
230 <template #default="{ row }"> 230 <template #default="{ row }">
231 <el-button 231 <el-button
232 - v-show="  
233 - row.policyStatus === '已作废' ||  
234 - row.policyStatus === '已办结' ||  
235 - row.policyStatus === '已退回'  
236 - " 232 + v-show="isShowBtn(row)"
237 type="primary" 233 type="primary"
238 @click="queryRemark(row)" 234 @click="queryRemark(row)"
239 >查阅</el-button 235 >查阅</el-button
@@ -417,6 +413,11 @@ const form = ref({ @@ -417,6 +413,11 @@ const form = ref({
417 tractionMass: "", 413 tractionMass: "",
418 requirementsId: "", 414 requirementsId: "",
419 }); 415 });
  416 +const isShowBtn = computed(() => (row) => {
  417 + const arr = ["已作废", "已办结", "已退回", "问题件"];
  418 + return arr.includes(row.policyStatus);
  419 +});
  420 +
420 const showSearch = ref(true); 421 const showSearch = ref(true);
421 // 请求选项参数 422 // 请求选项参数
422 const getParams = reactive({ 423 const getParams = reactive({
@@ -579,7 +580,7 @@ const queryRemark = async (row) => { @@ -579,7 +580,7 @@ const queryRemark = async (row) => {
579 form.value.comment = res?.data?.message; 580 form.value.comment = res?.data?.message;
580 open.value = true; 581 open.value = true;
581 }); 582 });
582 - } else { 583 + } else if (row.policyStatus === "已退回") {
583 labelTitle.value = "退回原因"; 584 labelTitle.value = "退回原因";
584 const { data } = await queryDefeatContent({ 585 const { data } = await queryDefeatContent({
585 processInstanceId: row.processInstanceId, 586 processInstanceId: row.processInstanceId,
@@ -587,6 +588,14 @@ const queryRemark = async (row) => { @@ -587,6 +588,14 @@ const queryRemark = async (row) => {
587 }); 588 });
588 form.value.comment = data.message; 589 form.value.comment = data.message;
589 open.value = true; 590 open.value = true;
  591 + } else {
  592 + labelTitle.value = "问题件原因";
  593 + const { data } = await queryDefeatContent({
  594 + processInstanceId: row.processInstanceId,
  595 + type: 0,
  596 + });
  597 + form.value.comment = data.message;
  598 + open.value = true;
590 } 599 }
591 }; 600 };
592 601