From 7815d256ec9817bf80f552e9da26b22534144fc0 Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期三, 20 十二月 2023 15:15:51 +0800
Subject: [PATCH] modified: src/views/plan/manufacturingorder/index.vue modified: vue.config.js
---
src/views/basic/part/index.vue | 29 +++++++++++++++--------------
1 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/src/views/basic/part/index.vue b/src/views/basic/part/index.vue
index 3266ab8..ea71043 100644
--- a/src/views/basic/part/index.vue
+++ b/src/views/basic/part/index.vue
@@ -12,7 +12,12 @@
:ajaxFun="ajaxFun"
ref="partTable"
>
- <template #toolbar></template>
+ <template #toolbar>
+ <el-button type="primary" @click="addOrUpdateHandle"
+ v-if="permissions.basic_part_add">鏂板</el-button>
+ <el-button type="primary" @click="() => (this.syncDateVisible = true)"
+ v-if="permissions.basic_part_mdm">鍚屾MDM</el-button>
+ </template>
</ttable>
<!-- 寮圭獥, 鏂板 / 淇敼 -->
<table-form
@@ -392,17 +397,6 @@
} */
],
toolbar: [
- {
- text: '鏂板',
- type: 'primary',
- fun: this.addOrUpdateHandle
- },
- {
- text: '鍚屾MDM',
- type: 'primary',
- fun: () => (this.syncDateVisible = true),
- loading: false
- }
// {
// text: '澶ф爣绛�',
// type: 'primary',
@@ -447,6 +441,7 @@
PrintLabelForm
},
created() {
+ this.uploadInfo.isShow = this.permissions.basic_part_upload
this.table.column.find((e) => e.label === 'IFS鍚敤鎵规绠$悊').isTrue = false
this.table.column.find((e) => e.label === '璁″垝鏂规硶').isTrue = false
this.getCategoryType('category')
@@ -470,6 +465,10 @@
},
// 鏂板 / 淇敼
addOrUpdateHandle(row) {
+ if(!this.permissions.basic_part_edit && row.id!=null){
+ this.$message.error("璇ヨ鑹叉病鏈夋搷浣滄潈闄�")
+ return
+ }
this.addOrUpdateVisible = true
this.$nextTick(() => {
this.$refs.addOrUpdate.init(row == null ? null : row.id)
@@ -477,6 +476,10 @@
},
// 鍒犻櫎
deleteHandle(row) {
+ if(!this.permissions.basic_part_del){
+ this.$message.error("璇ヨ鑹叉病鏈夋搷浣滄潈闄�")
+ return
+ }
this.$confirm('鏄惁纭闆朵欢鍚嶄负:' + row.partName, '鎻愮ず', {
confirmButtonText: '纭畾',
cancelButtonText: '鍙栨秷',
@@ -504,9 +507,7 @@
})
},
getMaterialType(type) {
- console.log(type);
remote(type).then((response) => {
- console.log("绫诲瀷",response);
const code = response.data.code
if (code === 0) {
const _data = response.data.data
--
Gitblit v1.9.3