linwenxin 10 місяців тому
батько
коміт
c4180d58d8
1 змінених файлів з 3 додано та 2 видалено
  1. 3 2
      src/views/mallManagement/order/order_list/index.vue

+ 3 - 2
src/views/mallManagement/order/order_list/index.vue

@@ -354,7 +354,8 @@
                           v-if="
                             ['NO_PAID', 'PART_PAID'].includes(order.payStatus) &&
                             !['DQR', 'CLOSE', 'TIMEOUT', 'CANCEL'].includes(order.orderStatus) &&
-                            !['WECHAT'].includes(order.payTypeId)
+                            !['WECHAT'].includes(order.payTypeId) &&
+                            $restrict('collection')
                           "
                         >
                           <el-button slot="reference" type="text" size="small">收款</el-button>
@@ -444,7 +445,7 @@
                         <el-button
                           type="text"
                           size="small"
-                          v-if="['OVER', 'DFH', 'YFH', 'SPTG'].includes(order.orderStatus)"
+                          v-if="['OVER', 'DFH', 'YFH', 'SPTG'].includes(order.orderStatus) && $restrict('print')"
                           @click="toPrint(order)"
                         >
                           打印{{ order.printRecordCount ? `(${order.printRecordCount}次)` : '' }}