-
zhangwei
2024-10-11 a1a7c2aed860d1a1bb1ac377a69cdeacb7609cb9
src/pages/order/order.vue
@@ -1,5 +1,5 @@
<template>
   <scroll-view class="full-page" scroll-y using-sticky>
   <view class="full-page" scroll-y using-sticky>
      <up-sticky bgColor="#fff">
         <view class="coreshop-ff content c-p-10">
            <!-- <up-search placeholder="请点击选择日期" @clear='clear' @clickIcon='clickTime' @custom='search'
@@ -26,7 +26,8 @@
                        </text> -->
                           <!-- <up-tag class='c-m-r-10' :text="item.orderStatusName" shape="circle" type="success"
                              plain plainFill size='mini'></up-tag> -->
                           <up-text :type="item.orderStatus==0?'primary':'success'" :text="item.orderStatusName" size='12'></up-text>
                           <up-text :type="item.orderStatus==0?'primary':'success'"
                              :text="item.orderStatusName" size='12'></up-text>
                           <!-- <up-button class='c-m-r-10' :text="item.isEn?'下架':'上架'" disabled shape="circle"
                              v-if="item.orderStatus==0" :type="item.isEn?'error':'primary'" size='mini'
                              @click.stop="manageOrder(item)"></up-button> -->
@@ -49,11 +50,21 @@
                              </text>
                           </view>
                           <view class="chuany-width50">
                              工价:{{item.workPrice}}{{item.workerType==0?'元/小时':'元/件'}}
                              <text></text>
                              已招人数:{{item.worderCounted}} 人
                           </view>
                           <view class="chuany-width50">
                              <text>
                                 待审核人数:{{item.workerDaiCount}} 人
                              </text>
                           </view>
                           <view class="chuany-width50">
                              工价:{{item.workPrice}}<template
                                 v-if="item.workPriceMax">~{{item.workPriceMax}}</template>
                              {{item.workerType==0?'元/小时':'元/件'}}
                           </view>
                           <view class="">
                              <up-button hoverStopPropagation :text="item.isEn?'下架':'上架'" shape="circle" :loading='item.isLoading' :loadingText="item.isEn?'下架中':'上架中'"
                              <up-button hoverStopPropagation :text="item.isEn?'下架':'上架'" shape="circle"
                                 :loading='item.isLoading' :loadingText="item.isEn?'下架中':'上架中'"
                                 v-if="item.orderStatus==0" :type="item.isEn?'error':'primary'" size='mini'
                                 @tap.stop="manageOrder(item)"></up-button>
                           </view>
@@ -72,7 +83,7 @@
      </view>
      <fui-date-picker range :show="datePickerShow" type="5" @change="changePicker"
         @cancel="cancel"></fui-date-picker>
   </scroll-view>
   </view>
</template>
<script setup>
@@ -192,6 +203,9 @@
            isEn.value = false
            break;
      }
      state.pageIndex = 1
      state.pageSize = 20
      loadStatus.value = 'loadmore'
      PostMyListPageCompany()
   }
   const manageOrder = (item) => {