Browse Source

fix(order): 优化售后申请按钮显示条件

- 移除订单完成状态(OrderCompleted)时售后申请按钮的显示逻辑
- 修正子包xsb的订单详情页中售后申请按钮显示条件
- 清理xsb-orderList组件未使用的handleTime函数
- 调整部分代码注释和格式,修复多处小的格式问题
zhangtao 1 ngày trước cách đây
mục cha
commit
de613f8c05

+ 1 - 0
src/api/api.type.d.ts

@@ -558,6 +558,7 @@ namespace Api {
     [property: string]: any
   }
   interface xsbOrderList {
+
     /**
      * 售后状态
      * 2退款已完成

+ 1 - 1
src/config/index.ts

@@ -20,7 +20,7 @@ const mapEnvVersion = {
   // trial: "http://192.168.1.166:8080/jeecg-boot",
   // trial: 'http://192.168.0.157:8080',
   trial: 'http://47.109.84.152:8081',
-  // trial: 'http://192.168.1.166:8080',
+  // trial: 'http://192.168.1.166:8080,
   // trial: 'https://smqjh.api.zswlgz.com',
   /**
    * 正式版

+ 1 - 3
src/subPack-smqjh/components/xsb-orderList/xsb-orderList.vue

@@ -48,9 +48,7 @@ async function handleAfterSale(item: Api.xsbOrderList) {
   }
   await useSysStore().getRefunOrder(item.orderNumber as string)
 }
-function handleTime(_order: Api.xsbOrderList) {
 
-}
 async function handleLogistics(_order: Api.xsbOrderList) {
   // router.push({ name: 'xsb-logistics', params: { id: order.orderNumber } })
   if (_order.dvyType === 3) {
@@ -169,7 +167,7 @@ async function handleLogistics(_order: Api.xsbOrderList) {
           </wd-button>
         </view>
       </template>
-      <template v-if="order.refundStatus != 2 && [OrderStatus.OrderCompleted, OrderStatus.OrderWaitDelivery, OrderStatus.OrderAccepted].includes(order.hbOrderStatus) && handleTime(order)">
+      <template v-if="order.refundStatus != 2 && [OrderStatus.OrderWaitDelivery, OrderStatus.OrderAccepted].includes(order.hbOrderStatus) ">
         <view class="mr-20rpx">
           <wd-button size="small" plain type="info" @click.stop="() => handleAfterSale(order)">
             申请售后

+ 1 - 1
src/subPack-xsb/orderDetaile/index.vue

@@ -376,7 +376,7 @@ function handleRefundDetail(item: any) {
             </Zcontact>
           </view>
           <view
-            v-if="orderInfo.refundStatus != 2 && [OrderStatus.OrderCompleted, OrderStatus.OrderWaitDelivery, OrderStatus.OrderAccepted].includes(orderInfo.hbOrderStatus)"
+            v-if="orderInfo.refundStatus != 2 && [OrderStatus.OrderWaitDelivery, OrderStatus.OrderAccepted].includes(orderInfo.hbOrderStatus)"
             class="flex flex-col items-center" @click="handleAfterSale"
           >
             <image :src="`${StaticUrl}/orderDetaile-shou.png`" class="h-40rpx w-40rpx" />