lilei 11 meses atrás
pai
commit
e1fa2631dc

+ 1 - 1
src/views/expenseManagement/expenseReimbursement/detail.vue

@@ -15,7 +15,7 @@
         </template>
         <!-- 操作区,位于 title 行的行尾 -->
         <template slot="extra">
-          <a-checkbox v-model="printRemark" id="print-remark">打印备注</a-checkbox>
+          <a-checkbox v-model="printRemark" v-if="$hasPermissions('B_eRPrint')" id="print-remark">打印备注</a-checkbox>
           <a-button
             :disabled="detailData==null"
             key="1"

+ 3 - 3
src/views/expenseManagement/expenseReimbursement/list.vue

@@ -95,9 +95,9 @@
         <!-- 操作按钮 -->
         <div class="table-operator">
           <a-button type="primary" v-if="$hasPermissions('B_eRNew')" @click="handleEdit()">新增</a-button>
-          <a-button type="primary" :loading="spinning" @click="handlePlPrint()" ghost>批量打印</a-button>
-          <a-checkbox v-model="printRemark" id="print-remark">打印备注</a-checkbox>
-          <span style="margin-left: 8px">
+          <a-button type="primary" v-if="$hasPermissions('B_eRPrint')" :loading="spinning" @click="handlePlPrint()" ghost>批量打印</a-button>
+          <a-checkbox v-model="printRemark" v-if="$hasPermissions('B_eRPrint')" id="print-remark">打印备注</a-checkbox>
+          <span style="margin-left: 8px" v-if="$hasPermissions('B_eRPrint')">
             <template v-if="rowSelectionInfo && rowSelectionInfo.selectedRowKeys.length>0">{{ `已选 ${rowSelectionInfo.selectedRowKeys.length} 项` }}</template>
           </span>
         </div>