From 8e9bc97e709f7e49586dffb9cc3d2dac4cfef4ca Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 26 三月 2026 10:13:02 +0800
Subject: [PATCH] 进销存升级 1.语法修改
---
src/views/salesManagement/receiptPayment/index.vue | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/views/salesManagement/receiptPayment/index.vue b/src/views/salesManagement/receiptPayment/index.vue
index 7b03d7d..25bd280 100644
--- a/src/views/salesManagement/receiptPayment/index.vue
+++ b/src/views/salesManagement/receiptPayment/index.vue
@@ -40,6 +40,7 @@
<el-table
:data="tableData"
border
+ ref="tableRef"
v-loading="tableLoading"
@selection-change="handleSelectionChange"
:row-key="(row) => row.id"
@@ -101,7 +102,6 @@
<el-button
link
type="primary"
- size="small"
@click="changeEditType(scope.row)"
v-if="!scope.row.editType"
>缂栬緫</el-button
@@ -109,7 +109,6 @@
<el-button
link
type="primary"
- size="small"
@click="saveReceiptPayment(scope.row)"
v-if="scope.row.editType"
>淇濆瓨</el-button
@@ -117,7 +116,6 @@
<el-button
link
type="primary"
- size="small"
@click="delReceiptRecord(scope.row)"
>鍒犻櫎</el-button
>
@@ -313,6 +311,7 @@
});
const total = ref(0);
const expandedRowKeys = ref([]);
+const tableRef = ref(null);
// 鐢ㄦ埛淇℃伅琛ㄥ崟寮规鏁版嵁
const dialogFormVisible = ref(false);
@@ -335,7 +334,7 @@
const getStatusTagType = (statusName = '') => {
const normalized = statusName.trim();
if (!normalized) return 'info';
- return normalized === '鏈畬鎴愬洖娆�' ? 'danger' : 'success';
+ return normalized === '鏈畬鎴愪粯娆�' ? 'danger' : 'success';
};
// 鏌ヨ鍒楄〃
/** 鎼滅储鎸夐挳鎿嶄綔 */
@@ -491,6 +490,7 @@
dialogFormVisible.value = false;
// 閬垮厤浜屾鎵撳紑寮圭獥鏃朵粛鎼哄甫涓婁竴娆$殑閫夋嫨瀵艰嚧鈥滃鍑轰竴琛�/鑴忔暟鎹��
selectedRows.value = [];
+ tableRef.value?.clearSelection();
};
// 鍒犻櫎鍥炴璁板綍
@@ -589,7 +589,7 @@
.table_list {
margin-top: unset;
}
-::v-deep(.el-checkbox__label) {
+:deep(.el-checkbox__label) {
font-weight: bold;
}
.actions {
--
Gitblit v1.9.3