From 4872a9409f4428d55c896a4f53d42500f6c805a2 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期四, 25 四月 2024 12:01:47 +0800
Subject: [PATCH] 销售订单隶属品牌必填校验
---
src/views/basic/part/index.vue | 20 +++++++++++++++-----
1 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/src/views/basic/part/index.vue b/src/views/basic/part/index.vue
index 82fb10b..f4b3331 100644
--- a/src/views/basic/part/index.vue
+++ b/src/views/basic/part/index.vue
@@ -13,10 +13,10 @@
ref="partTable"
>
<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>
+ <!-- <el-button type="primary" @click="addOrUpdateHandle"
+ v-if="permissions.basic_part_add">鏂板</el-button> -->
+ <!-- <el-button text="鍚屾MDM" type="primary" @click=""
+ v-if="permissions.basic_part_mdm">鍚屾MDM</el-button> -->
</template>
</ttable>
<!-- 寮圭獥, 鏂板 / 淇敼 -->
@@ -235,7 +235,7 @@
optList: () => {
return this.getThreeLevelClassification()
}
- },
+ },
// 瑙勬牸
{
minWidth: '140',
@@ -436,6 +436,16 @@
PrintLabelForm
},
created() {
+if(this.permissions.basic_part_mdm){
+ this.table.toolbar.push(
+ {
+ text: '鍚屾MDM',
+ type: 'primary',
+ fun: () => this.syncDateVisible = true,
+ loading: false
+ }
+ )
+ }
if(this.permissions.basic_part_del){
this.table.operator = [
{
--
Gitblit v1.9.3