From e1869c67a48da088650b0a1238ff718e5fc4138c Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 29 九月 2026 09:15:21 +0800
Subject: [PATCH] refactor(data): 优化参数维护和报表数据显示格式

---
 src/views/salesManagement/salesQuotation/index.vue |   36 ++----------------------------------
 1 files changed, 2 insertions(+), 34 deletions(-)

diff --git a/src/views/salesManagement/salesQuotation/index.vue b/src/views/salesManagement/salesQuotation/index.vue
index edd0102..a87d34d 100644
--- a/src/views/salesManagement/salesQuotation/index.vue
+++ b/src/views/salesManagement/salesQuotation/index.vue
@@ -33,11 +33,6 @@
 <!--          </el-select>-->
 <!--        </el-col>-->
         <el-col :span="6">
-          <el-select v-model="searchForm.projectId" placeholder="璇烽�夋嫨椤圭洰鍚嶇О" clearable filterable>
-            <el-option v-for="item in projectOptions" :key="item.id" :label="item.no + ' - ' + item.title" :value="item.id" />
-          </el-select>
-        </el-col>
-        <el-col :span="6">
           <el-button type="primary" @click="handleSearch">鎼滅储</el-button>
           <el-button @click="resetSearch">閲嶇疆</el-button>
           <el-button style="float: right;" type="primary" @click="handleAdd">
@@ -57,7 +52,6 @@
       >
 				<el-table-column align="center" label="搴忓彿" type="index" width="60" />
         <el-table-column prop="quotationNo" label="鎶ヤ环鍗曞彿" />
-        <el-table-column prop="projectName" label="椤圭洰鍚嶇О" />
         <el-table-column prop="customer" label="瀹㈡埛鍚嶇О" />
         <el-table-column prop="salesperson" label="涓氬姟鍛�" width="100" />
         <el-table-column prop="quotationDate" label="鎶ヤ环鏃ユ湡" width="120" />
@@ -155,13 +149,6 @@
               <el-col :span="12">
                 <el-form-item label="浠樻鏂瑰紡" prop="paymentMethod">
                   <el-input v-model="form.paymentMethod" placeholder="璇疯緭鍏ヤ粯娆炬柟寮�" clearable />
-                </el-form-item>
-              </el-col>
-              <el-col :span="12">
-                <el-form-item label="椤圭洰鍚嶇О" prop="projectId">
-                  <el-select v-model="form.projectId" placeholder="璇烽�夋嫨椤圭洰鍚嶇О" style="width: 100%" clearable filterable>
-                    <el-option v-for="item in projectOptions" :key="item.id" :label="item.no + ' - ' + item.title" :value="item.id" />
-                  </el-select>
                 </el-form-item>
               </el-col>
             </el-row>
@@ -271,7 +258,6 @@
     <el-dialog v-model="viewDialogVisible" title="鎶ヤ环璇︽儏" width="800px">
       <el-descriptions :column="2" border>
         <el-descriptions-item label="鎶ヤ环鍗曞彿">{{ currentQuotation.quotationNo }}</el-descriptions-item>
-        <el-descriptions-item label="椤圭洰鍚嶇О">{{ currentQuotation.projectName }}</el-descriptions-item>
         <el-descriptions-item label="瀹㈡埛鍚嶇О">{{ currentQuotation.customer }}</el-descriptions-item>
         <el-descriptions-item label="涓氬姟鍛�">{{ currentQuotation.salesperson }}</el-descriptions-item>
         <el-descriptions-item label="鎶ヤ环鏃ユ湡">{{ currentQuotation.quotationDate }}</el-descriptions-item>
@@ -317,22 +303,19 @@
 import {modelList, productTreeList} from "@/api/basicData/product.js";
 import {listCustomer} from "@/api/basicData/customer.js";
 import { userListNoPage } from "@/api/system/user.js";
-import { listProject } from "@/api/projectManagement/project.js";
 
 // 鍝嶅簲寮忔暟鎹�
 const loading = ref(false)
 const searchForm = reactive({
   quotationNo: '',
   customerId: '',
-  status: '',
-  projectId: undefined
+  status: ''
 })
 
 const quotationList = ref([])
 const userList = ref([])
 const productOptions = ref([]);
 const modelOptions  = ref([]);
-const projectOptions = ref([]);
 const pagination = reactive({
   total: 3,
   currentPage: 1,
@@ -345,7 +328,6 @@
 const form = reactive({
   quotationNo: '',
   customerId: undefined,
-  projectId: undefined,
   customer: '',
   salesperson: '',
   quotationDate: '',
@@ -414,7 +396,6 @@
   searchForm.quotationNo = ''
   searchForm.customer = ''
   searchForm.status = ''
-  searchForm.projectId = undefined
   // 閲嶇疆鍒扮涓�椤靛苟閲嶆柊鏌ヨ
   pagination.currentPage = 1
   handleSearch()
@@ -427,14 +408,6 @@
   dialogVisible.value = true
   getProductOptions();
   fetchCustomerOptions();
-  fetchProjectOptions();
-}
-
-const fetchProjectOptions = () => {
-  if (projectOptions.value.length > 0) return
-  listProject({current: -1,size:-1}).then((res) => {
-    projectOptions.value = res.data.records;
-  });
 }
 
 const fetchCustomerOptions = () => {
@@ -557,8 +530,7 @@
       unitPrice: product.unitPrice || 0,
       amount: product.amount || 0
     })) : [],
-    totalAmount: row.totalAmount || 0,
-    projectName: row.projectName || ''
+    totalAmount: row.totalAmount || 0
   }
   viewDialogVisible.value = true
 }
@@ -571,13 +543,11 @@
   // 鍏堝姞杞戒骇鍝佹爲鏁版嵁锛屽惁鍒� el-tree-select 鏃犳硶鍙嶆樉浜у搧鍚嶇О
   await getProductOptions()
   await fetchCustomerOptions()
-  await fetchProjectOptions()
 
   // 鍙鍒堕渶瑕佺殑瀛楁锛岄伩鍏嶅皢缁勪欢寮曠敤鏀惧叆鍝嶅簲寮忓璞�
   form.quotationNo = row.quotationNo || ''
   form.customer = row.customer || ''
   form.customerId = row.customerId || undefined
-  form.projectId = row.projectId || undefined
   form.salesperson = row.salesperson || ''
   form.quotationDate = row.quotationDate || ''
   form.validDate = row.validDate || ''
@@ -660,7 +630,6 @@
 const resetForm = () => {
   form.customer = ''
   form.customerId = undefined
-  form.projectId = undefined
   form.salesperson = ''
   form.quotationDate = ''
   form.validDate = ''
@@ -822,7 +791,6 @@
   getUserList()
   handleSearch()
   fetchCustomerOptions()
-  fetchProjectOptions()
 })
 </script>
 

--
Gitblit v1.9.3