From 6c01ab2761ffbfeb71acea02d741d9a24588e4d6 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 09 二月 2026 13:39:19 +0800
Subject: [PATCH] 公司 1.商机管理附件删除修改 2.商机管理添加新状态
---
src/views/salesManagement/opportunityManagement/index.vue | 44 ++++++++++++++++++++++++++++++++++++++------
1 files changed, 38 insertions(+), 6 deletions(-)
diff --git a/src/views/salesManagement/opportunityManagement/index.vue b/src/views/salesManagement/opportunityManagement/index.vue
index 405cd8a..2408ac1 100644
--- a/src/views/salesManagement/opportunityManagement/index.vue
+++ b/src/views/salesManagement/opportunityManagement/index.vue
@@ -9,8 +9,18 @@
placeholder="璇疯緭鍏ュ鎴峰悕绉�"
clearable
prefix-icon="Search"
- style="width: 200px"
+ style="width: 200px;"
@change="handleQuery"
+ />
+ </el-form-item>
+ <el-form-item label="鍩庡競">
+ <el-input
+ v-model="searchForm.city"
+ placeholder="璇疯緭鍏ュ煄甯傚悕绉�"
+ clearable
+ prefix-icon="Search"
+ style="width: 200px"
+ @change="handleQuery"
/>
</el-form-item>
<el-form-item label="褰曞叆鏃ユ湡锛�">
@@ -266,7 +276,7 @@
</el-dialog>
<!-- 闄勪欢鍒楄〃瀵硅瘽妗� -->
- <FileList ref="fileListRef" />
+ <FileList ref="fileListRef" @refresh="handleFileListRefresh" />
</div>
</template>
@@ -309,6 +319,7 @@
// 鎼滅储琛ㄥ崟
const searchForm = reactive({
customerName: '',
+ city: '',
entryDate: [],
entryDateStart: '',
entryDateEnd: ''
@@ -338,6 +349,7 @@
// FileList缁勪欢寮曠敤
const fileListRef = ref(null)
+const currentAttachmentRow = ref(null)
// 涓婁紶閰嶇疆
const upload = reactive({
@@ -376,6 +388,7 @@
{ value: '鏂板缓', label: '鏂板缓' },
{ value: '椤圭洰璺熻釜', label: '椤圭洰璺熻釜' },
{ value: '鍚堝悓绛剧害', label: '鍚堝悓绛剧害' },
+ { value: '澶囨鐢虫姤', label: '澶囨鐢虫姤' },
{ value: '椤圭洰浜や粯', label: '椤圭洰浜や粯' },
{ value: '椤圭洰楠屾敹', label: '椤圭洰楠屾敹' }
]
@@ -390,7 +403,8 @@
'鏂板缓': 'info',
'椤圭洰璺熻釜': 'primary',
'鍚堝悓绛剧害': 'warning',
- '椤圭洰浜や粯': 'success',
+ '澶囨鐢虫姤': 'primary',
+ '椤圭洰浜や粯': 'success',
'椤圭洰楠屾敹': 'success'
}
return typeMap[status] || 'info'
@@ -402,7 +416,8 @@
'鏂板缓': '鏂板缓',
'椤圭洰璺熻釜': '椤圭洰璺熻釜',
'鍚堝悓绛剧害': '鍚堝悓绛剧害',
- '椤圭洰浜や粯': '椤圭洰浜や粯',
+ '澶囨鐢虫姤': '澶囨鐢虫姤',
+ '椤圭洰浜や粯': '椤圭洰浜や粯',
'椤圭洰楠屾敹': '椤圭洰楠屾敹'
}
return textMap[status] || '鏈煡'
@@ -734,7 +749,7 @@
const resetForm = () => {
Object.assign(form, {
id: undefined,
- status: '鏂板缓',
+ status: '',
province: '',
customerName: '',
businessSource: '',
@@ -791,7 +806,24 @@
// 鏌ョ湅闄勪欢
function handleAttachment(row) {
- fileListRef.value.open(row.businessCommonFiles)
+ currentAttachmentRow.value = row
+ fileListRef.value.open(row.businessCommonFiles, row.id)
+}
+
+// 闄勪欢鍒楄〃鍒锋柊
+function handleFileListRefresh(rowId) {
+ // 閲嶆柊鑾峰彇鍒楄〃鏁版嵁
+ getList()
+ // 绛夊緟鍒楄〃鏁版嵁鏇存柊鍚庯紝鎵惧埌瀵瑰簲鐨勮骞舵洿鏂伴檮浠跺垪琛�
+ setTimeout(() => {
+ if (currentAttachmentRow.value && tableData.value) {
+ const updatedRow = tableData.value.find(item => item.id === currentAttachmentRow.value.id)
+ if (updatedRow && updatedRow.businessCommonFiles) {
+ currentAttachmentRow.value = updatedRow
+ fileListRef.value.open(updatedRow.businessCommonFiles, updatedRow.id)
+ }
+ }
+ }, 300)
}
onMounted(() => {
--
Gitblit v1.9.3