From 2fa578a18ed9055f8cb9863a8a0f02977cfa8350 Mon Sep 17 00:00:00 2001 From: 王震 <10952869+daywangzhen@user.noreply.gitee.com> Date: 星期二, 19 十二月 2023 17:33:53 +0800 Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/mes-ocea-before --- src/views/basic/warehouse/index.vue | 24 +++++++++++++++--------- 1 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/views/basic/warehouse/index.vue b/src/views/basic/warehouse/index.vue index df19356..65c2b6f 100644 --- a/src/views/basic/warehouse/index.vue +++ b/src/views/basic/warehouse/index.vue @@ -11,7 +11,10 @@ :ajaxFun="ajaxFun" ref="wareHouseTable" > - <template #toolbar></template> + <template #toolbar> + <el-button type="primary" @click="addOrUpdateHandle" + v-if="permissions.basic_warehouse_add">鏂板</el-button> + </template> </ttable> <!-- 寮圭獥, 鏂板 / 淇敼 --> <table-form @@ -39,7 +42,7 @@ isShowQuery: false, uploadInfo: { // 鏄惁灞曠ず涓婁紶EXCEL浠ュ強瀵瑰簲鐨剈rl - isShow: true, + isShow: false, url: '/mes/warehouse/uploadExcel' }, prelang: 'operation', @@ -54,6 +57,7 @@ seqNo: true, isShowHide: true, // 鏄惁鏄剧ず鏄惧奖鎸夐挳 isSearch: true, // 楂樼骇鏌ヨ鎸夐挳 + isRefresh: true, // 鏄惁鏄剧ず鍒锋柊鎸夐挳 defaultOrderBy: { column: 'createTime', direction: 'desc' } }, table: { @@ -176,13 +180,7 @@ searchInfoType: 'datetimerange' } ], - toolbar: [ - { - text: '鏂板', - type: 'primary', - fun: this.addOrUpdateHandle - } - ], + toolbar: [], operator: [ { text: '鍒犻櫎', @@ -258,6 +256,10 @@ }, // 鏂板 / 淇敼 addOrUpdateHandle(row) { + if(!this.permissions.basic_warehouse_edit && row.id!=null){ + this.$message.error("璇ヨ鑹叉病鏈夋搷浣滄潈闄�") + return + } this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(row == null ? null : row.id) @@ -265,6 +267,10 @@ }, // 鍒犻櫎 deleteHandle(row) { + if(!this.permissions.basic_warehouse_del){ + this.$message.error("璇ヨ鑹叉病鏈夋搷浣滄潈闄�") + return + } this.$confirm('鏄惁纭鍒犻櫎浠撳簱鍚嶇О涓�' + row.warehouseName, '鎻愮ず', { confirmButtonText: '纭畾', cancelButtonText: '鍙栨秷', -- Gitblit v1.9.3