Browse Source

fix(env): 调整分页配置和测试环境服务地址

- 修改 `.env` 中的 `VITE_PAGE_SIZE` 配置,优化分页选项
- 更新 `.env.test` 中的服务基础 URL,启用服务器地址并注释掉其他配置
- 修复组件类型声明中 `NScrollbal` 的拼写错误,应为 `NScrollbar`

feat(ui): 调整售后订单页面列宽及样式细节

- 增加“商品”列宽度以改善显示效果
- 减少“订单类型”列宽度,提升表格紧凑性
- 增加“订单状态”列宽度,确保内容完整展示
- 移除模态框中不必要的 flex 属性,简化布局结构

chore(types): 删除拼写错误的组件声明

- 移除了 `components.d.ts` 中拼写错误的 `NScrollbal` 组件声明项
zhangtao 3 weeks ago
parent
commit
783370457a

+ 1 - 1
.env

@@ -63,4 +63,4 @@ VITE_DEVTOOLS_LAUNCH_EDITOR=code
 VITE_OSS_BASE_URL =  https://zswl-shop.oss-cn-chengdu.aliyuncs.com/
 
 #分页配置
-VITE_PAGE_SIZE=10, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000
+VITE_PAGE_SIZE=10,100,500,1000,1500

+ 2 - 2
.env.test

@@ -1,10 +1,10 @@
 # backend service base url, test environment
 # VITE_SERVICE_BASE_URL=http://74949mkfh190.vicp.fun
-VITE_SERVICE_BASE_URL=http://192.168.1.253:8114 #付
+# VITE_SERVICE_BASE_URL=http://192.168.1.253:8114 #付
 # VITE_SERVICE_BASE_URL=http://192.168.0.157:8114 #王
 # VITE_SERVICE_BASE_URL=http://192.168.1.166:8114 #张
 # VITE_SERVICE_BASE_URL=https://mock.apifox.cn/m1/3109515-0-default
-# VITE_SERVICE_BASE_URL=https://shop.platform.zswlgz.com #服务器
+VITE_SERVICE_BASE_URL=https://shop.platform.zswlgz.com #服务器
 
 
 # other backend service base url, test environment

+ 0 - 1
src/typings/components.d.ts

@@ -99,7 +99,6 @@ declare module 'vue' {
     NPopover: typeof import('naive-ui')['NPopover']
     NRadio: typeof import('naive-ui')['NRadio']
     NRadioGroup: typeof import('naive-ui')['NRadioGroup']
-    NScrollbal: typeof import('naive-ui')['NScrollbal']
     NScrollbar: typeof import('naive-ui')['NScrollbar']
     NSelect: typeof import('naive-ui')['NSelect']
     NSkeleton: typeof import('naive-ui')['NSkeleton']

+ 3 - 3
src/views/delivery/after-sales-order/index.vue

@@ -49,7 +49,7 @@ const { columns, data, loading, getData, mobilePagination } = useNaivePaginatedT
       key: 'orderItems',
       title: '商品',
       align: 'left',
-      width: 200,
+      width: 280,
       colSpan: (_rowData, _rowIndex) => 2,
       render: row => {
         const statusKey = row.returnMoneySts as keyof typeof refundStatus;
@@ -167,7 +167,7 @@ const { columns, data, loading, getData, mobilePagination } = useNaivePaginatedT
       key: 'dvyType',
       title: '订单类型',
       align: 'center',
-      width: 220,
+      width: 120,
       render: row => {
         return <NTag class={'mt7'}>{dvyStatus[row.dvyType as keyof typeof dvyStatus] || '未知类型'}</NTag>;
       }
@@ -176,7 +176,7 @@ const { columns, data, loading, getData, mobilePagination } = useNaivePaginatedT
       key: 'status',
       title: '订单状态',
       align: 'center',
-      width: 220,
+      width: 250,
       render: row => {
         const statusKey = row.hbOrderStatus as keyof typeof orderStatus;
         const statusText = orderStatus[statusKey] || '未知状态';

+ 1 - 1
src/views/delivery/after-sales-order/order-modal.vue

@@ -110,7 +110,7 @@ function getImgFils() {
               <SvgIcon icon="bxs:copy" class="ml2 cursor-pointer text-[#f97316]"></SvgIcon>
             </div>
           </div>
-          <div class="mt2 flex items-center">
+          <div class="mt2 flex">
             <div class="min-w-50px">凭证:</div>
             <NScrollbar x-scrollable>
               <div v-if="orderInfo.refundDelivery.imgs">

+ 1 - 1
src/views/delivery/normal-order/index.vue

@@ -48,7 +48,7 @@ const { columns, data, loading, getData, mobilePagination } = useNaivePaginatedT
       key: 'orderItems',
       title: '商品',
       align: 'left',
-      width: 200,
+      width: 260,
       colSpan: (_rowData, _rowIndex) => 2,
       render: row => {
         return (