Commit 23b65fba6e20d4064c13ef70353823ab11bbe45d

Authored by guzijian
1 parent 84666772

feat: 增加显示信息

garbage-removal/src/pages/order/detail/index.vue
@@ -47,7 +47,7 @@ @@ -47,7 +47,7 @@
47 <view class="order-detail-container-header-item"> 47 <view class="order-detail-container-header-item">
48 <text class="order-detail-container-header-title">车辆类型:</text> 48 <text class="order-detail-container-header-title">车辆类型:</text>
49 <view class="order-detail-container-header-content"> 49 <view class="order-detail-container-header-content">
50 - {{ dataGram.garOrderCarType }} 50 + {{ dataGram.garOrderCarType }}({{ dataGram.garOrderCarNumber }}辆)
51 </view> 51 </view>
52 </view> 52 </view>
53 <view class="order-detail-container-header-item"> 53 <view class="order-detail-container-header-item">
@@ -161,10 +161,12 @@ @@ -161,10 +161,12 @@
161 <u-button @click="handleUploadImage(orderId, 'putDownImages')" 161 <u-button @click="handleUploadImage(orderId, 'putDownImages')"
162 v-else-if="dataGram.garOrderHandlerStatus === 1 && dataGram.putDownImages.length === 0 && dataGram.handleFlag && dataGram.garCancelFlag === 0" 162 v-else-if="dataGram.garOrderHandlerStatus === 1 && dataGram.putDownImages.length === 0 && dataGram.handleFlag && dataGram.garCancelFlag === 0"
163 shape="circle" color="#a9e08f" text="卸车照片"></u-button> 163 shape="circle" color="#a9e08f" text="卸车照片"></u-button>
164 - <u-button @click="handleEvaluate(orderId, userType)" v-if="dataGram.garEvaluateFlag === 0" shape="circle"  
165 - color="#a9e08f" text="去评价"></u-button>  
166 - <u-button @click="handleEvaluate(orderId, userType)" v-if="dataGram.garHandlerEvaluateFlag === 0" shape="circle"  
167 - color="#a9e08f" text="去评价"></u-button> 164 + <u-button @click="handleEvaluate(orderId, userType)"
  165 + v-if="dataGram.garEvaluateFlag === 0 && userType === '居民用户'" shape="circle" color="#a9e08f"
  166 + text="去评价"></u-button>
  167 + <u-button @click="handleEvaluate(orderId, userType)"
  168 + v-if="dataGram.garHandlerEvaluateFlag === 0 && userType === '管理负责人'" shape="circle" color="#a9e08f"
  169 + text="去评价"></u-button>
168 <u-button 170 <u-button
169 v-if="dataGram.garOrderHandlerStatus === 1 && dataGram.putOnImages.length != 0 && dataGram.putDownImages.length != 0 && dataGram.garCancelFlag === 0" 171 v-if="dataGram.garOrderHandlerStatus === 1 && dataGram.putOnImages.length != 0 && dataGram.putDownImages.length != 0 && dataGram.garCancelFlag === 0"
170 @click="handleSubmitSuccess(orderId)" shape="circle" color="#a9e08f" text="完成派单"></u-button> 172 @click="handleSubmitSuccess(orderId)" shape="circle" color="#a9e08f" text="完成派单"></u-button>
@@ -342,6 +344,11 @@ const currentStep = (step) =&gt; { @@ -342,6 +344,11 @@ const currentStep = (step) =&gt; {
342 return step; 344 return step;
343 } 345 }
344 346
  347 +/**
  348 + * 上传图片
  349 + * @param {string} orderId
  350 + * @param {string} putType
  351 + */
345 const handleUploadImage = (orderId, putType) => { 352 const handleUploadImage = (orderId, putType) => {
346 uni.$u.route(`pages/order/upload/index?orderId=${orderId}&putType=${putType}`) 353 uni.$u.route(`pages/order/upload/index?orderId=${orderId}&putType=${putType}`)
347 } 354 }