From bc365ef47ae4e01754aeadbae26170e11c9bb80e Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 22 六月 2026 16:56:12 +0800
Subject: [PATCH] 新疆马铃薯 1.删除按钮添加操作权限

---
 src/views/projectManagement/Management/components/formDia.vue |   21 ++++++++++++---------
 1 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/src/views/projectManagement/Management/components/formDia.vue b/src/views/projectManagement/Management/components/formDia.vue
index f29512b..2609166 100644
--- a/src/views/projectManagement/Management/components/formDia.vue
+++ b/src/views/projectManagement/Management/components/formDia.vue
@@ -174,7 +174,7 @@
           </div>
           <div class="section-actions" @click.stop>
             <el-button v-if="!isView" type="primary" @click="openProductForm('add')">娣诲姞</el-button>
-            <el-button v-if="!isView" plain type="danger" @click="deleteProduct">鍒犻櫎</el-button>
+            <el-button v-if="!isView" plain type="danger" @click="deleteProduct" v-hasPermi="['projectManagement:Management:remove']">鍒犻櫎</el-button>
             <el-icon class="toggle-icon" @click="toggleSection('product')">
               <ArrowDown v-if="sectionCollapsed.product" />
               <ArrowUp v-else />
@@ -272,7 +272,7 @@
               <el-input v-model="row.remark" placeholder="璇疯緭鍏�" clearable :disabled="isView" />
             </template>
             <template #teamAction="{ row, index }">
-              <el-button v-if="!isView" link type="danger" :icon="Delete" @click="removeTeamRow(index)">鍒犻櫎</el-button>
+              <el-button v-if="!isView" link type="danger" :icon="Delete" @click="removeTeamRow(index)" v-hasPermi="['projectManagement:Management:remove']">鍒犻櫎</el-button>
               <span v-else>鈥�</span>
             </template>
           </PIMTable>
@@ -414,7 +414,7 @@
               <el-input v-model="row.address" placeholder="璇疯緭鍏�" clearable :disabled="isView" />
             </template>
             <template #addressAction="{ row, index }">
-              <el-button v-if="!isView" link type="danger" :icon="Delete" @click="removeAddressRow(index)">鍒犻櫎</el-button>
+              <el-button v-if="!isView" link type="danger" :icon="Delete" @click="removeAddressRow(index)" v-hasPermi="['projectManagement:Management:remove']">鍒犻櫎</el-button>
               <span v-else>鈥�</span>
             </template>
           </PIMTable>
@@ -571,9 +571,12 @@
         <el-col :span="12">
           <el-form-item label="绋庣巼(%)锛�" prop="taxRate">
             <el-select v-model="productForm.taxRate" placeholder="璇烽�夋嫨" clearable @change="calculateFromTaxRate">
-              <el-option label="1" value="1" />
-              <el-option label="6" value="6" />
-              <el-option label="13" value="13" />
+              <el-option
+                v-for="dict in tax_rate"
+                :key="dict.value"
+                :label="dict.label"
+                :value="dict.value"
+              />
             </el-select>
           </el-form-item>
         </el-col>
@@ -650,7 +653,7 @@
 
 const emit = defineEmits(['completed'])
 const { proxy } = getCurrentInstance()
-const { bill_status, project_management, plan_status } = proxy.useDict('bill_status', 'project_management', 'plan_status')
+const { bill_status, project_management, plan_status, tax_rate } = proxy.useDict('bill_status', 'project_management', 'plan_status', 'tax_rate')
 
 const dialogVisible = ref(false)
 const operationType = ref('add')
@@ -1339,9 +1342,9 @@
 }
 
 function downloadAttachment(att) {
-  if (att?.name) {
+  if (att) {
     try {
-      proxy.$download.name(att.url);
+			proxy.$download.byUrl(att.url, att.originalFilename);
       return
     } catch (e) {}
   }

--
Gitblit v1.9.3