Przeglądaj źródła

卡下订单国际化

wanghairong 5 miesięcy temu
rodzic
commit
4796890a55

+ 2 - 1
src/views/lotCard/cardList/index.vue

@@ -92,7 +92,8 @@ const intData = async () => {
     orderList({ current: 1, size: 999, ICCID: item.iccid }).then(res => {
 
       res.data.records?.forEach(async (orderItem, index) => {
-
+        // const dictList = JSON.parse(window.localStorage.getItem('dictList')) ?? []
+        // const orderType = dictList.filter((item) => item.type_key == enum_dict.SOURCE)
         const params = {
           iccid: orderItem.ICCID,
           childOrderId: orderItem.id,

+ 4 - 2
src/views/lotCard/cardList/list.vue

@@ -8,8 +8,8 @@
                 </div>
                 <div class="list_item_right">
                     <p>
-                        <span class="list_item_right_span">订单ID:{{ item.source_order_id }}</span>
-                        <span>订单状态:正常</span>
+                        <span class="list_item_right_span">{{ $t('lotCard.orderID') }}:{{ item.id }}</span>
+                        <span>{{ $t('lotCard.orderType') }}:{{ item.orderType }}</span>
                         <!-- <span>更新时间:{{ item.updated_at }}</span> -->
                     </p>
                     <template v-if="item.trafficList">
@@ -26,6 +26,8 @@
     </div>
 </template>
 <script setup>
+import lotCard from '@/i18n/zh/lotCard';
+
 const props = defineProps({
     data: Array
 });