linwenxin 5 mesiacov pred
rodič
commit
0389295ec3

+ 3 - 8
src/packageWorkorder/pages/orderDetail.vue

@@ -610,12 +610,7 @@
         <view class="bottom-container">
           <view class="left" style="width: 100%" v-if="detail">
             <!-- 待抢单 -->
-            <block
-              v-if="
-                orderStatus_v == 'DQD' &&
-                (detail.orderType == 'INSTALL' ? userInfo.workerNumber == detail.workerNumber : true)
-              "
-            >
+            <block v-if="orderStatus_v == 'DQD' && (detail.orderType == 'INSTALL' ? !!userInfo.workerNumber : true)">
               <u-button type="primary" text="抢单" @tap="qdOrder(detail)"></u-button>
             </block>
           </view>
@@ -638,7 +633,7 @@
               ></u-button>
               <u-button plain type="primary" text="加急" @tap="actionUrgent(true)" v-else></u-button>
               <u-button
-                v-if="detail.orderType == 'INSTALL' ? userInfo.workerNumber == detail.workerNumber : true"
+                v-if="detail.orderType == 'INSTALL' ? !!userInfo.workerNumber  : true"
                 type="primary"
                 text="接单"
                 @tap="actionReceive()"
@@ -647,7 +642,7 @@
             <!-- 服务中 -->
             <block v-if="orderStatus_v == 'FWZ' || orderStatus_v == 'YCD'">
               <u-button
-                v-if="detail.orderType == 'INSTALL' ? userInfo.workerNumber == detail.workerNumber : true"
+                v-if="userInfo.workerNumber == detail.workerNumber"
                 plain
                 type="primary"
                 text="变更小工"

+ 3 - 3
src/packageWorkorder/pages/orderList.vue

@@ -143,7 +143,7 @@
                 ></u-button>
                 <u-button plain type="primary" text="加急" @tap="actionUrgent(item.id, true)" v-else></u-button>
                 <u-button
-                  v-if="item.orderType == 'INSTALL' ? userInfo.workerNumber == item.workerNumber : true"
+                  v-if="item.orderType == 'INSTALL' ? !!userInfo.workerNumber : true"
                   type="primary"
                   text="接单"
                   @tap="actionReceive(item)"
@@ -152,7 +152,7 @@
               <!-- 服务中 -->
               <block v-if="orderStatus_v(item.orderStatus) == 'FWZ' || orderStatus_v(item.orderStatus) == 'YCD'">
                 <u-button
-                  v-if="item.orderType == 'INSTALL' ? userInfo.workerNumber == item.workerNumber : true"
+                  v-if="userInfo.workerNumber == item.workerNumber"
                   plain
                   type="primary"
                   text="变更小工"
@@ -187,7 +187,7 @@
               <block
                 v-if="
                   orderStatus_v(item.orderStatus) == 'DQD' &&
-                  (item.orderType == 'INSTALL' ? userInfo.workerNumber == item.workerNumber : true)
+                  (item.orderType == 'INSTALL' ? !!userInfo.workerNumber : true)
                 "
               >
                 <u-button type="primary" text="抢单" @tap="qdOrder(item)"></u-button>