linwenxin vor 5 Monaten
Ursprung
Commit
920f0d2b16

+ 6 - 1
src/packageWorkorder/pages/orderDetail.vue

@@ -632,7 +632,12 @@
                 v-if="detail.pgOrderFlags && detail.pgOrderFlags.some(o => o.tag == 'JIA_JI')"
               ></u-button>
               <u-button plain type="primary" text="加急" @tap="actionUrgent(true)" v-else></u-button>
-              <u-button type="primary" text="接单" @tap="actionReceive()"></u-button>
+              <u-button
+                v-if="userInfo.workerNumber == detail.workerNumber"
+                type="primary"
+                text="接单"
+                @tap="actionReceive()"
+              ></u-button>
             </block>
             <!-- 服务中 -->
             <block v-if="orderStatus_v == 'FWZ' || orderStatus_v == 'YCD'">

+ 6 - 1
src/packageWorkorder/pages/orderList.vue

@@ -142,7 +142,12 @@
                   v-if="item.orderFlags && item.orderFlags.some(o => o.tag == 'JIA_JI')"
                 ></u-button>
                 <u-button plain type="primary" text="加急" @tap="actionUrgent(item.id, true)" v-else></u-button>
-                <u-button type="primary" text="接单" @tap="actionReceive(item)"></u-button>
+                <u-button
+                  v-if="userInfo.workerNumber == item.workerNumber"
+                  type="primary"
+                  text="接单"
+                  @tap="actionReceive(item)"
+                ></u-button>
               </block>
               <!-- 服务中 -->
               <block v-if="orderStatus_v(item.orderStatus) == 'FWZ' || orderStatus_v(item.orderStatus) == 'YCD'">