Browse Source

feat(api): 旧系统 order pagesize and felid

gemercheung 3 years ago
parent
commit
93440ac95a
1 changed files with 53 additions and 6 deletions
  1. 53 6
      src/views/dashboard/order/list.vue

+ 53 - 6
src/views/dashboard/order/list.vue

@@ -1,3 +1,45 @@
+<!-- 
+actualPrice: 50
+addTime: 1631094304000
+address: "港湾一号港11"
+brandId: 1046508
+brandName: "一楼展厅-多点位"
+callbackStatus: null
+city: "珠海市"
+confirmTime: null
+consignee: "cy"
+country: null
+couponId: ""
+couponPrice: 0
+district: "香洲区"
+freightPrice: 0
+goodsList: null
+goodsPrice: 50
+id: 676
+integral: 0
+integralMoney: 0
+logistics: null
+mobile: "15975119071"
+newId: "6761046508"
+nickName: "sousya"
+orderPrice: 50
+orderSn: "20210908174503807397842"
+orderStatus: 0
+orderType: "4"
+parentId: null
+payId: "wx0817450412422539ab24fc31729b920000"
+payName: null
+payStatus: 0
+payTime: null
+postscript: null
+province: "广东省"
+shippingFee: 0
+shippingId: 0
+shippingName: null
+shippingNo: null
+shippingStatus: 0
+userId: 17
+userName: "微信用户q0zj95zuo4pv" -->
 <template>
 <template>
   <div class="p-4">
   <div class="p-4">
     <BasicTable @register="registerTable">
     <BasicTable @register="registerTable">
@@ -15,6 +57,9 @@
       <template #paymentStatus="{ record }">
       <template #paymentStatus="{ record }">
         {{ renderPaymentStatusLabel(record.paymentStatus) }}
         {{ renderPaymentStatusLabel(record.paymentStatus) }}
       </template>
       </template>
+      <template #addTime="{ record }">
+        <Time :value="record.addTime" mode="datetime" />
+      </template>
       <template #action="{ record }">
       <template #action="{ record }">
         <TableAction
         <TableAction
           :actions="[
           :actions="[
@@ -57,9 +102,10 @@
   import { useI18n } from '/@/hooks/web/useI18n';
   import { useI18n } from '/@/hooks/web/useI18n';
   // import { useCopyToClipboard } from '/@/hooks/web/useCopyToClipboard';
   // import { useCopyToClipboard } from '/@/hooks/web/useCopyToClipboard';
   import { useGo } from '/@/hooks/web/usePage';
   import { useGo } from '/@/hooks/web/usePage';
+  import { Time } from '/@/components/Time';
 
 
   export default defineComponent({
   export default defineComponent({
-    components: { BasicTable, TableAction, TableImg },
+    components: { BasicTable, TableAction, TableImg, Time },
     setup() {
     setup() {
       const { createMessage } = useMessage();
       const { createMessage } = useMessage();
       const go = useGo();
       const go = useGo();
@@ -73,13 +119,13 @@
         },
         },
         {
         {
           title: '订单号',
           title: '订单号',
-          dataIndex: 'orderNo',
+          dataIndex: 'orderSn',
 
 
           width: 160,
           width: 160,
         },
         },
         {
         {
           title: '会员昵称',
           title: '会员昵称',
-          dataIndex: 'name',
+          dataIndex: 'nickName',
           width: 80,
           width: 80,
         },
         },
         {
         {
@@ -116,7 +162,7 @@
         },
         },
         {
         {
           title: '快递公司',
           title: '快递公司',
-          dataIndex: 'shipingCompany',
+          dataIndex: 'shipingName',
           width: 60,
           width: 60,
         },
         },
         {
         {
@@ -126,13 +172,14 @@
         },
         },
         {
         {
           title: '实际支付金额',
           title: '实际支付金额',
-          dataIndex: 'shipingAmount',
+          dataIndex: 'actualPrice',
           width: 80,
           width: 80,
         },
         },
         {
         {
           title: '下单时间',
           title: '下单时间',
-          dataIndex: 'createTime',
+          dataIndex: 'addTime',
           width: 120,
           width: 120,
+          slots: { customRender: 'addTime' },
         },
         },
         {
         {
           title: '操作',
           title: '操作',