linwenxin před 5 měsíci
rodič
revize
af864a62d7

+ 9 - 2
src/views/workOrder/workOrderPool/detailModule/workOrderInfo/index.vue

@@ -68,9 +68,16 @@
         <!-- 4,加急  -->
         <urgent v-if="~btnRestrict.indexOf(4)" :orderInfo="orderInfo" :orderType="orderType" />
         <!-- 5,不加急  -->
-        <!-- <unurgent v-if="~btnRestrict.indexOf(5)" :orderInfo="orderInfo" :orderType="orderType" /> -->
+        <unurgent v-if="~btnRestrict.indexOf(5)" :orderInfo="orderInfo" :orderType="orderType" />
         <!-- 6,取消工单  -->
-        <cancelOrder v-if="~btnRestrict.indexOf(6)" :orderInfo="orderInfo" :orderType="orderType" />
+        <cancelOrder
+          v-if="
+            ~btnRestrict.indexOf(6) &&
+            (userInfo.type == 1 || `(${userInfo.userName})${userInfo.nickName}` == orderInfo.createBy)
+          "
+          :orderInfo="orderInfo"
+          :orderType="orderType"
+        />
         <!-- 7,回访  -->
         <processFeedback
           v-if="~btnRestrict.indexOf(7)"