Jelajahi Sumber

经销商盲票订单修改

DELL 3 tahun lalu
induk
melakukan
b93c2e7b91
1 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 4 4
      src/views/order/channel/index.vue

+ 4 - 4
src/views/order/channel/index.vue

@@ -143,7 +143,7 @@
               </div>
             </el-table-column>
             <el-table-column label="盲票组名称" prop="title" min-width="80" />
-            <el-table-column v-if="JSON.parse(row.type).value == 1 " label="采购单价(元/包)" min-width="100">
+            <el-table-column v-if="row.type && JSON.parse(row.type).value == 1 " label="采购单价(元/包)" min-width="100">
               <template slot-scope="{ row }">
                 <div>{{ $numberFormat(row.pkgSalePrice) }}</div>
               </template>
@@ -165,9 +165,9 @@
       <el-table-column label="订单类型" prop="orderId" min-width="80" align="center">
         <template slot-scope="{ row }">
           <div>
-            <div v-if="JSON.parse(row.type).value == 1">普通票</div>
-            <div v-if="JSON.parse(row.type).value == 2" style="color: red">线下预付票</div>
-            <div v-if="JSON.parse(row.type).value == 3">线上预付票</div>
+            <div v-if="row.type && JSON.parse(row.type).value == 1">普通票</div>
+            <div v-if="row.type && JSON.parse(row.type).value == 2" style="color: red">线下预付票</div>
+            <div v-if="row.type && JSON.parse(row.type).value == 3">线上预付票</div>
           </div>
         </template>
       </el-table-column>