Browse Source

fix:需求订单详情预付类型字段解析

snow 1 year ago
parent
commit
46cbf6161b

+ 2 - 2
src/views/customerService/demandOrder/columns.js

@@ -9,8 +9,8 @@ const statusList = [
 
 //*  预付类型选项 **/ 
 const prepaymentTypeOptions =  [
-  { value:1, label:"客户垫付"},
-  { value:2, label:"平台垫付"},
+  { value: "1", label:"客户垫付"},
+  { value :"2", label:"平台垫付"},
 ]
 
 const listCol = [

+ 3 - 3
src/views/customerService/demandOrder/components/demandDetail/index.vue

@@ -9,9 +9,9 @@
     >
       <template #prepaymentType>
         <div class="flex-between align-center" style="height:18px;padding-top:5px">
-          <p style="margin-left:5px">
-            {{sitem.prepay_type}}
-          </p>
+        <el-tag size="mini" style="margin-left:5px">{{
+            (prepaymentTypeOptions.find(({value}) => value === String(sitem.prepay_type)) || {}).label || '--'
+            }}</el-tag>
           <el-button 
              v-if="Number(sitem.status) === 6"
             style="margin-right:5px;line-height:8px"