linwenxin 5 ماه پیش
والد
کامیت
688afbdcce
2فایلهای تغییر یافته به همراه16 افزوده شده و 6 حذف شده
  1. 8 3
      src/packageWorkorder/pages/orderDetail.vue
  2. 8 3
      src/packageWorkorder/pages/orderList.vue

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

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

+ 8 - 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="userInfo.workerNumber == item.workerNumber"
+                  v-if="item.orderType == 'INSTALL' ? userInfo.workerNumber == item.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="userInfo.workerNumber == item.workerNumber"
+                  v-if="item.orderType == 'INSTALL' ? userInfo.workerNumber == item.workerNumber : true"
                   plain
                   type="primary"
                   text="变更小工"
@@ -184,7 +184,12 @@
                 <u-button plain type="primary" text="配件收费" @tap="toCharge(item.id, 'P')" v-else></u-button>
               </block>
               <!-- 待抢单 -->
-              <block v-if="orderStatus_v(item.orderStatus) == 'DQD'">
+              <block
+                v-if="
+                  orderStatus_v(item.orderStatus) == 'DQD' &&
+                  (item.orderType == 'INSTALL' ? userInfo.workerNumber == item.workerNumber : true)
+                "
+              >
                 <u-button type="primary" text="抢单" @tap="qdOrder(item)"></u-button>
               </block>
             </view>