From f39ab142a99fe58b942dee749d1c6a20ac0d4ee6 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 04 十二月 2025 16:57:14 +0800
Subject: [PATCH] 1.操作按钮权限放开

---
 src/views/salesManagement/receiptPayment/index.vue |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/src/views/salesManagement/receiptPayment/index.vue b/src/views/salesManagement/receiptPayment/index.vue
index e8b8b3b..26f089b 100644
--- a/src/views/salesManagement/receiptPayment/index.vue
+++ b/src/views/salesManagement/receiptPayment/index.vue
@@ -122,7 +122,6 @@
                     size="small"
                     @click="changeEditType(scope.row)"
                     v-if="!scope.row.editType"
-										:disabled="scope.row.registrant !== userStore.nickName"
                     >缂栬緫</el-button
                   >
                   <el-button
@@ -131,7 +130,6 @@
                     size="small"
                     @click="saveReceiptPayment(scope.row)"
                     v-if="scope.row.editType"
-										:disabled="scope.row.registrant !== userStore.nickName"
                     >淇濆瓨</el-button
                   >
                   <el-button
@@ -139,7 +137,6 @@
                     type="primary"
                     size="small"
                     @click="delReceiptRecord(scope.row)"
-										:disabled="scope.row.registrant !== userStore.nickName"
                     >鍒犻櫎</el-button
                   >
                 </template>
@@ -173,6 +170,17 @@
           show-overflow-tooltip
           width="340"
         />
+        <el-table-column
+          label="鍥炴鐘舵��"
+          prop="statusName"
+          width="120"
+        >
+          <template #default="{ row }">
+            <el-tag :type="getStatusTagType(row.statusName)" disable-transitions>
+              {{ row.statusName || "--" }}
+            </el-tag>
+          </template>
+        </el-table-column>
         <el-table-column
           label="浜у搧澶х被"
           prop="productCategory"
@@ -426,6 +434,12 @@
 const formattedNumber = (row, column, cellValue) => {
   return parseFloat(cellValue).toFixed(2);
 };
+
+const getStatusTagType = (statusName = '') => {
+  const normalized = statusName.trim();
+  if (!normalized) return 'info';
+  return normalized === '鏈畬鎴愬洖娆�' ? 'danger' : 'success';
+};
 // 鏌ヨ鍒楄〃
 /** 鎼滅储鎸夐挳鎿嶄綔 */
 const handleQuery = () => {

--
Gitblit v1.9.3