Browse Source

增加微信端,未评价工单数显示

seimin 3 years ago
parent
commit
7057dec75b
2 changed files with 43 additions and 7 deletions
  1. 29 3
      pages/my_list/my_list.vue
  2. 14 4
      pages/mypage/mypage.vue

+ 29 - 3
pages/my_list/my_list.vue

@@ -73,9 +73,12 @@
73 73
               <text class="L_iocn" v-if="infoDATA.taskType.associationType.value == 'other'">其他</text>
74 74
             </view>
75 75
             <view class="page_item_top_R">
76
-              <view class="num">
76
+              <view class="num" v-if="infoDATA.gdState.value != 6">
77 77
                 {{infoDATA.grade?(infoDATA.grade.gradeTotal>=0?'+'+infoDATA.grade.gradeTotal:'-'+infoDATA.grade.gradeTotal):''}}
78 78
               </view>
79
+              <view class="num" v-if="infoDATA.gdState.value == 6">
80
+                未评价
81
+              </view>
79 82
             </view>
80 83
             <view class="L"> </view>
81 84
             <view class="R"> </view>
@@ -116,6 +119,9 @@
116 119
     <!-- 弹窗 -->
117 120
     <showIntegralModel :disjunctor="models.disjunctor" :operate="models.operate" :timestamp="models.timestamp"
118 121
       :orderId="models.orderId" @know="know()"></showIntegralModel>
122
+    <!-- 未评价弹窗提示 -->
123
+    <showModel :title="models6.title" :icon="models6.icon" :disjunctor="models6.disjunctor" :content="models6.content"
124
+      @know="know6" :operate="models6.operate"></showModel>
119 125
   </scroll-view>
120 126
 </template>
121 127
 <script>
@@ -125,9 +131,14 @@
125 131
     webHandle
126 132
   } from "../../http/http.js";
127 133
   import showIntegralModel from "../../components/showIntegralModel/showIntegralModel.vue";
134
+  import showModel from "../../components/showModel/showModel.vue";
128 135
   export default {
129 136
     data() {
130 137
       return {
138
+        // 弹窗model
139
+        models6: {
140
+          disjunctor: false,
141
+        },
131 142
         //滚动距离
132 143
         scroll_t: 0,
133 144
         scroll_t_old: 0,
@@ -155,6 +166,7 @@
155 166
     },
156 167
     components: {
157 168
       showIntegralModel,
169
+      showModel,
158 170
     },
159 171
     methods: {
160 172
       //滚动距离
@@ -166,8 +178,23 @@
166 178
         this.scroll_t = this.scroll_t_old;
167 179
         this.models.disjunctor = false;
168 180
       },
181
+      //未评价弹窗知道了
182
+      know6() {
183
+        this.models6.disjunctor = false;
184
+      },
169 185
       //积分详情
170 186
       detailIt(infoDATA) {
187
+        if (infoDATA.gdState.value == 6) {
188
+          this.models6 = {
189
+            disjunctor: true,
190
+            content: "暂未评价,无法查看积分详情",
191
+            icon: "warn",
192
+            operate: {
193
+              know: "知道了"
194
+            },
195
+          };
196
+          return;
197
+        }
171 198
         this.models.disjunctor = true;
172 199
         this.models.orderId = infoDATA.id;
173 200
         this.models.timestamp = Date.now();
@@ -588,6 +615,7 @@
588 615
                 color: #fff;
589 616
                 display: inline-block;
590 617
                 font-size: 28rpx;
618
+                margin-left: 16rpx;
591 619
               }
592 620
 
593 621
               .L_time {
@@ -632,7 +660,6 @@
632 660
 
633 661
           .page_item_cont {
634 662
             min-height: 180rpx;
635
-            max-height: 424rpx;
636 663
             padding: 0 16rpx;
637 664
             text-align: left;
638 665
             position: relative;
@@ -700,7 +727,6 @@
700 727
 
701 728
           .page_item_foot {
702 729
             border-top: 2rpx dashed #e5e9ed;
703
-            border-bottom: 2rpx dashed #e5e9ed;
704 730
             padding: 28rpx 16rpx;
705 731
             text-align: left;
706 732
 

+ 14 - 4
pages/mypage/mypage.vue

@@ -10,7 +10,8 @@
10 10
       <view class="topText">
11 11
         <view class="topTextHeader">
12 12
           <text>您好,{{ userData.name }}</text>
13
-          <button v-show="!userData.online" class="changeHospital" size="mini" type="default" @click="changeHospital">切换院区</button>
13
+          <button v-show="!userData.online" class="changeHospital" size="mini" type="default"
14
+            @click="changeHospital">切换院区</button>
14 15
         </view>
15 16
         <view>当前积分 : {{ tabNum.score }}</view>
16 17
       </view>
@@ -36,7 +37,7 @@
36 37
               align-items: center;
37 38
               justify-content: space-between;
38 39
             ">
39
-            <view class="tbTitle"> {{ types }}已完成{{ tabNums }}单,共计{{tabScores}}分 </view>
40
+            <view class="tbTitle"> {{ types }}已完成工单{{ tabComplete }}单,未评价工单{{tabEvaluate}}单,共计得分{{tabScores}}分 </view>
40 41
             <view class="tbText" @click="my_list(tabType)"> 查看明细>> </view>
41 42
           </view>
42 43
           <view class="canvasRing_wrap">
@@ -45,7 +46,7 @@
45 46
           </view>
46 47
         </view>
47 48
         <view class="TB1" v-show="tabNums == 0 && !TBLoading">
48
-          <view class="title"> {{ types }}已完成{{ tabNums }}单,共计{{tabScores}}分 </view>
49
+          <view class="title"> {{ types }}已完成工单{{ tabComplete }}单,未评价工单{{tabEvaluate}}单,共计得分{{tabScores}}分 </view>
49 50
           <view class="cont"> 暂无数据 </view>
50 51
         </view>
51 52
         <view class="TB_list" v-show="!TBLoading">
@@ -98,7 +99,9 @@
98 99
         tabNum: {},
99 100
         BtData: [],
100 101
         types: "今日",
101
-        tabNums: "", //数量
102
+        tabNums: "", //总数量
103
+        tabComplete: "", //已完成工单数量
104
+        tabEvaluate: "", //未评价工单数量
102 105
         tabScores: "", //积分
103 106
         sxbType: false,
104 107
         userData: {},
@@ -423,14 +426,20 @@
423 426
           this.tabNum = res;
424 427
           if (this.tabType == "day") {
425 428
             this.tabNums = this.tabNum.day;
429
+            this.tabComplete = this.tabNum.dayComplete;
430
+            this.tabEvaluate = this.tabNum.dayEvaluate;
426 431
             this.tabScores = this.tabNum.dayTotal;
427 432
           }
428 433
           if (this.tabType == "week") {
429 434
             this.tabNums = this.tabNum.week;
435
+            this.tabComplete = this.tabNum.weekComplete;
436
+            this.tabEvaluate = this.tabNum.weekEvaluate;
430 437
             this.tabScores = this.tabNum.weekTotal;
431 438
           }
432 439
           if (this.tabType == "month") {
433 440
             this.tabNums = this.tabNum.month;
441
+            this.tabComplete = this.tabNum.monthComplete;
442
+            this.tabEvaluate = this.tabNum.monthEvaluate;
434 443
             this.tabScores = this.tabNum.monthTotal;
435 444
           }
436 445
           this.getBtData();
@@ -615,6 +624,7 @@
615 624
             margin-top: 26rpx;
616 625
 
617 626
             .tbTitle {
627
+              width: 70%;
618 628
               font-size: 32rpx;
619 629
               color: rgb(72, 113, 127);
620 630
               font-weight: 500;