Browse Source

no message

linwenxin 2 months ago
parent
commit
710c9d64af
1 changed files with 19 additions and 18 deletions
  1. 19 18
      src/packageWorkorder/pages/orderDetail.vue

+ 19 - 18
src/packageWorkorder/pages/orderDetail.vue

@@ -264,24 +264,25 @@
             </view>
           </view>
 
-          <view class="mt30" v-if="!oldData">
-            <u-button plain type="primary" text="申请难度费用" @tap="toNandufysq('sub')"></u-button>
-          </view>
-
-          <view
-            class="mt30"
-            v-if="
-              oldData &&
-              oldData.workerInvolveApplyItems &&
-              oldData.workerInvolveApplyItems[0] &&
-              (oldData.workerInvolveApplyItems[0].status == 2 || oldData.workerInvolveApplyItems[0].websitStatus == 2)
-            "
-          >
-            <u-button plain type="primary" text="重新申请难度费用" @tap="toNandufysq('shenhe')"></u-button>
-          </view>
-          <view class="mt30" v-else-if="oldData">
-            <u-button plain type="primary" text="重新申请难度费用" @tap="toNandufysq('view')"></u-button>
-          </view>
+          <template v-if="[3, 42].includes(detail.saleType)">
+            <view class="mt30" v-if="!oldData">
+              <u-button plain type="primary" text="申请难度费用" @tap="toNandufysq('sub')"></u-button>
+            </view>
+            <view
+              class="mt30"
+              v-if="
+                oldData &&
+                oldData.workerInvolveApplyItems &&
+                oldData.workerInvolveApplyItems[0] &&
+                (oldData.workerInvolveApplyItems[0].status == 2 || oldData.workerInvolveApplyItems[0].websitStatus == 2)
+              "
+            >
+              <u-button plain type="primary" text="重新申请难度费用" @tap="toNandufysq('shenhe')"></u-button>
+            </view>
+            <view class="mt30" v-else-if="oldData">
+              <u-button plain type="primary" text="重新申请难度费用" @tap="toNandufysq('view')"></u-button>
+            </view>
+          </template>
 
           <!--  -->
           <!--  -->