seimin преди 1 година
родител
ревизия
4b0a811566
променени са 3 файла, в които са добавени 14 реда и са изтрити 11 реда
  1. 12 9
      pages/otherCompleteOrder/otherCompleteOrder.vue
  2. 1 1
      pages/receipt_infopage/receipt_infopage.vue
  3. 1 1
      pages/receiptpage/receiptpage.vue

+ 12 - 9
pages/otherCompleteOrder/otherCompleteOrder.vue

@@ -2,9 +2,9 @@
2 2
   <view class="HomeItem">
3 3
     <view class="goWorkAll">
4 4
       <view class="goWorkSelect combination" v-if="actionConfirmSwitch">
5
-        <view class="goWorkSelect-head" v-if="actionConfirmType == 1">您需要完成以下所有动作,才可完成工单。如完成请勾选对应项!</view>
6
-        <view class="goWorkSelect-head" v-if="actionConfirmType == 2">您需要完成以下至少一个动作,才可完成工单。如完成请勾选对应项!</view>
7
-        <view class="goWorkSelect-head" v-if="actionConfirmType == 3">您需要完成以下一个动作,才可完成工单。如完成请勾选对应项!</view>
5
+        <view class="goWorkSelect-head" v-if="actionConfirmType == 1">请选择以下选项可选择多项,必须所有都选择后选择{{tips}}</view>
6
+        <view class="goWorkSelect-head" v-if="actionConfirmType == 2">请选择以下选项可选择多项,至少选择一项后选择{{tips}}</view>
7
+        <view class="goWorkSelect-head" v-if="actionConfirmType == 3">请选择以下选项,至少单选一项{{tips}}</view>
8 8
         <view class="goWorkSelect-list scroll">
9 9
           <checkbox-group @change="checkboxChange" v-if="actionConfirmType == 1 || actionConfirmType == 2">
10 10
             <label class="goWorkSelect-item relative" v-for="action in actions" :key="action.value">
@@ -25,7 +25,7 @@
25 25
         </view>
26 26
       </view>
27 27
       <view class="goWorkSelect history" v-if="actionPhotoSwitch">
28
-        <view class="goWorkSelect-head">您需要拍摄现场照片才可完成工单!</view>
28
+        <view class="goWorkSelect-head">您需要拍摄现场照片才可{{tips}}!</view>
29 29
         <view class="goWorkSelect-list">
30 30
           <uni-file-picker :auto-upload="false" :limit="3" title="最多选择3张图片" v-model="imageValue" fileMediatype="image"
31 31
             mode="grid" @select="selectFile" @delete="deleteFile"></uni-file-picker>
@@ -33,7 +33,7 @@
33 33
       </view>
34 34
     </view>
35 35
     <view class="foot_btn_spe">
36
-      <view class="btn1" @click="photographToOther(order)">完成工单</view>
36
+      <view class="btn1" @click="photographToOther(order)">{{tips}}</view>
37 37
       <view class="btn3" @click="goBack">返回</view>
38 38
     </view>
39 39
     <!-- 填写交接人账号弹窗 -->
@@ -60,6 +60,7 @@
60 60
     },
61 61
     data() {
62 62
       return {
63
+        tips: '',
63 64
         currentIndex: undefined,
64 65
         // 填写交接人账号弹窗model
65 66
         hosModels: {
@@ -176,11 +177,11 @@
176 177
         ){
177 178
           let title = '';
178 179
           if(this.actionConfirmType == 1){
179
-            title = '您需要完成以下所有动作,才可完成工单!';
180
+            title = '请选择以下选项可选择多项,必须所有都选择后选择' + this.tips;
180 181
           }else if(this.actionConfirmType == 2){
181
-            title = '您需要完成以下至少一个动作,才可完成工单!';
182
+            title = '请选择以下选项可选择多项,至少选择一项后选择' + this.tips;
182 183
           }else if(this.actionConfirmType == 3){
183
-            title = '您需要完成以下一个动作,才可完成工单!';
184
+            title = '请选择以下选项,至少单选一项' + this.tips;
184 185
           }
185 186
           uni.showToast({
186 187
             icon: "none",
@@ -192,7 +193,7 @@
192 193
         if(this.actionPhotoSwitch && !imageValue.length){
193 194
           uni.showToast({
194 195
             icon: "none",
195
-          	title: '您需要完成拍照,才可完成工单!',
196
+          	title: '您需要完成拍照,才可' + this.tips,
196 197
           	duration: 2000
197 198
           });
198 199
           return;
@@ -289,8 +290,10 @@
289 290
         this.order = options.order;
290 291
         if(this.order.gdState.value == 4){
291 292
           this.currentIndex = 0;
293
+          this.tips = '确认到达';
292 294
         }else if(this.order.gdState.value == 5){
293 295
           this.currentIndex = 1;
296
+          this.tips = '完成工单';
294 297
         }
295 298
       }
296 299
       if(options.orderId){

+ 1 - 1
pages/receipt_infopage/receipt_infopage.vue

@@ -355,7 +355,7 @@
355 355
           <smallScreen :sData="infoDATA" :sType="1">扫码</smallScreen>
356 356
         </view>
357 357
         <!-- 其他临床服务-完成工单-待到达 -->
358
-        <view v-if="infoDATA.taskType.associationType.value == 'other' && infoDATA.gdState.value == 4 && infoDATA.taskType.carryingCourses[0].actionsSwitch" class="btn2 page_item_btn" @click="otherCompleteOrder(infoDATA)" hover-class="seimin-btn-hover">完成工单</view>
358
+        <view v-if="infoDATA.taskType.associationType.value == 'other' && infoDATA.gdState.value == 4 && infoDATA.taskType.carryingCourses[0].actionsSwitch" class="btn2 page_item_btn" @click="otherCompleteOrder(infoDATA)" hover-class="seimin-btn-hover">确认到达</view>
359 359
         <!-- 其他临床服务-完成工单-待送达 -->
360 360
         <view v-if="infoDATA.taskType.associationType.value == 'other' && infoDATA.gdState.value == 5 && infoDATA.taskType.carryingCourses[1].actionsSwitch" class="btn2 page_item_btn" @click="otherCompleteOrder(infoDATA)" hover-class="seimin-btn-hover">完成工单</view>
361 361
         <!-- 其他临床服务-拍照 -->

+ 1 - 1
pages/receiptpage/receiptpage.vue

@@ -268,7 +268,7 @@
268 268
                 <smallScreen :sData="item" :sType="1">扫码</smallScreen>
269 269
               </view>
270 270
               <!-- 其他临床服务-完成工单-待到达 -->
271
-              <view v-if="item.taskType.associationType.value == 'other' && item.gdState.value == 4 && item.taskType.carryingCourses[0].actionsSwitch" class="page_item_btn" @click="otherCompleteOrder(item)" hover-class="seimin-btn-hover">完成工单</view>
271
+              <view v-if="item.taskType.associationType.value == 'other' && item.gdState.value == 4 && item.taskType.carryingCourses[0].actionsSwitch" class="page_item_btn" @click="otherCompleteOrder(item)" hover-class="seimin-btn-hover">确认到达</view>
272 272
               <!-- 其他临床服务-完成工单-待送达 -->
273 273
               <view v-if="item.taskType.associationType.value == 'other' && item.gdState.value == 5 && item.taskType.carryingCourses[1].actionsSwitch" class="page_item_btn" @click="otherCompleteOrder(item)" hover-class="seimin-btn-hover">完成工单</view>
274 274
               <!-- 其他临床服务-拍照 -->