Browse Source

订单金额格式化

zuy 2 years ago
parent
commit
30e28007c5
1 changed files with 4 additions and 0 deletions
  1. 4 0
      admin-web/src/views/admin/finance/index.vue

+ 4 - 0
admin-web/src/views/admin/finance/index.vue

@@ -105,6 +105,9 @@
             <template v-if="field.prop==='expand'">
               <p style="padding-left: 2em;" v-html="row[field.prop]"></p>
             </template>
+            <template v-if="field.prop==='rechargeAmount'">
+              {{u.fmt.fmtMoney(row[field.prop])}}
+            </template>
             <template v-else>
               <div>{{row[field.prop]}}</div>
             </template>
@@ -122,6 +125,7 @@
 import {defineAsyncComponent, reactive, onMounted, onBeforeMount, ref, getCurrentInstance, nextTick, onBeforeUnmount} from 'vue';
 import {$body,$get} from "/@/utils/request";
 import {Msg} from "/@/utils/message";
+import u from "/@/utils/u"
 
 import {useRoute} from "vue-router";