Преглед изворни кода

订单审核-详情反显影像资料

祁鹏飞 пре 2 месеци
родитељ
комит
1e10346ee6
1 измењених фајлова са 31 додато и 11 уклоњено
  1. 31 11
      src/views/finance/modules/auditDetail.vue

+ 31 - 11
src/views/finance/modules/auditDetail.vue

@@ -248,12 +248,12 @@
           <el-col :span="6" class="carMsgItem">
             <span class="label">使用性质</span>
             <span class="value">{{ dictChange(optionObj['car_nature_code'], detailData?.carInfoVo?.carNatureCode)
-              }}</span>
+            }}</span>
           </el-col>
           <el-col :span="6" class="carMsgItem">
             <span class="label">车辆用途</span>
             <span class="value">{{ dictChange(optionObj['vehicle_use_code'], detailData?.carInfoVo?.vehicleUseCode)
-              }}</span>
+            }}</span>
           </el-col>
           <el-col :span="6" class="carMsgItem">
             <span class="label">车辆种类</span>
@@ -263,12 +263,12 @@
           <el-col :span="6" class="carMsgItem">
             <span class="label">车辆类型</span>
             <span class="value">{{ dictChange(optionObj['car_type_code'], detailData?.carInfoVo?.carTypeCode)
-              }}</span>
+            }}</span>
           </el-col>
           <el-col :span="6" class="carMsgItem">
             <span class="label">能源种类</span>
             <span class="value">{{ dictChange(optionObj['energy_type_code'], detailData?.carInfoVo?.energyTypeCode)
-              }}</span>
+            }}</span>
           </el-col>
           <el-col :span="6" class="carMsgItem">
             <span class="label">注册日期</span>
@@ -451,7 +451,7 @@
           <div class="taxList">
             <span class="taxItem" :class="{ 'active': item.bool }" v-for="(item, index) in tbList" :key="index">{{
               item.name
-              }}</span>
+            }}</span>
           </div>
         </div>
         <el-row :gutter="20" v-if="!tbList[0].bool">
@@ -515,7 +515,7 @@
           <div class="taxList">
             <span class="taxItem" :class="{ 'active': item.bool }" v-for="(item, index) in bbList" :key="index">{{
               item.name
-              }}</span>
+            }}</span>
           </div>
         </div>
         <el-row :gutter="20" v-if="!bbList[0].bool && !bbList[1].bool">
@@ -978,11 +978,15 @@
                 <div>-</div>
               </th>
               <th>
-                <div>¥{{ new Decimal(detailData?.insFeeOrders?.firstDistributionPremium || 0).plus(detailData?.insFeeOrders?.secondDistributionPremium || 0).plus(detailData?.insFeeOrders?.thirdDistributionPremium || 0).toFixed(2) }}</div>
+                <div>¥{{ new Decimal(detailData?.insFeeOrders?.firstDistributionPremium ||
+                  0).plus(detailData?.insFeeOrders?.secondDistributionPremium ||
+                    0).plus(detailData?.insFeeOrders?.thirdDistributionPremium || 0).toFixed(2) }}</div>
               </th>
 
               <th>
-                <div>{{ new Decimal(detailData?.insFeeOrders?.firstDistributionRatio || 0).plus(detailData?.insFeeOrders?.secondDistributionRatio || 0).plus(detailData?.insFeeOrders?.thirdDistributionRatio || 0).toFixed(2) }}%</div>
+                <div>{{ new Decimal(detailData?.insFeeOrders?.firstDistributionRatio ||
+                  0).plus(detailData?.insFeeOrders?.secondDistributionRatio ||
+                    0).plus(detailData?.insFeeOrders?.thirdDistributionRatio || 0).toFixed(2) }}%</div>
               </th>
             </tr>
           </tbody>
@@ -1063,7 +1067,8 @@
           <el-table-column prop="rightsCount" label="发放数量" align="center"></el-table-column>
           <el-table-column prop="packagePrice" label="总价" align="center">
             <template #default="scope">
-              <div>{{ scope.row.packagePrice * scope.row.rightsCount || scope.row.contractRate * scope.row.rightsCount }}
+              <div>{{ scope.row.packagePrice * scope.row.rightsCount || scope.row.contractRate * scope.row.rightsCount
+                }}
               </div>
             </template>
           </el-table-column>
@@ -1092,7 +1097,8 @@
       <el-button v-if="isShow === '1'" type="primary" @click="handleAudit(1)">审核通过</el-button>
       <el-popconfirm width="300" title="审核不通过">
         <template #reference>
-          <el-button v-if="isShow === '1'&&![3].includes(detailData?.order?.entryStatus)" type="primary">审核驳回</el-button>
+          <el-button v-if="isShow === '1' && ![3].includes(detailData?.order?.entryStatus)"
+            type="primary">审核驳回</el-button>
         </template>
         <template #actions="{ confirm, cancel }">
           <el-input placeholder="请填写" v-model="refuse" style="margin-bottom: 20px"></el-input>
@@ -1358,30 +1364,37 @@ let infoList = ref([
   {
     label: '车辆',
     name: 'car',
+    typeList: ['C01', 'D01'],
     list: []
   }, {
     label: '车主',
     name: 'ower',
+    typeList: ['C02', 'D02'],
     list: []
   }, {
     label: '投保人',
     name: 'insured',
+    typeList: ['C03', 'D03'],
     list: []
   }, {
     label: '被保人',
     name: 'person',
+    typeList: ['C04', 'D04'],
     list: []
   }, {
     label: '关系证明',
     name: 'relation',
+    typeList: ['GX00'],
     list: []
   }, {
     label: '验车照',
     name: 'photo',
+    typeList: ['C0500', 'C0501', 'C0502', 'C0503', 'C0504', 'C0506', 'C0507', 'C0505', 'C0508', 'C0509', 'C0510'],
     list: []
   }, {
     label: '上年商业险保单',
     name: 'policy',
+    typeList: ['LAST_INSURANCE_POLICY'],
     list: []
   },
 ])
@@ -1454,6 +1467,13 @@ const initDetail = () => {
         ...(res.data.insOrderRightsInfoVo?.insOrderRightsPackageList || [])
       ]
       vehicleAndVesselTaxVo.value = res.data?.vehicleAndVesselTaxVo || {};
+      if (res.data?.imageVoList?.length) {
+        for (let i = 0; i < infoList.value.length; i++) {
+          const element = infoList.value[i];
+          const arr = res.data?.imageVoList.filter(v => element.typeList.includes(v.imageCode))
+          element.list = arr.map(v => ({ previewUrl: v.imageBase64List[0].imageBase64Str, imageType: v.imageCode }))
+        }
+      }
       nextTick(() => jumpFn());
     }
   }).catch((err) => {
@@ -2144,4 +2164,4 @@ onUnmounted(() => {
     }
   }
 }
-</style>
+</style>