From b3fedd4221b807a07058be9d5d5d8ba8998adbcb Mon Sep 17 00:00:00 2001
From: Bang Hu <hu_bang@hotmail.com>
Date: 星期四, 11 九月 2025 21:35:31 +0800
Subject: [PATCH] Bug修改代码提交

---
 src/views/approveManage/tradeApproval/list.vue |   33 +++++++++++++++++++--------------
 1 files changed, 19 insertions(+), 14 deletions(-)

diff --git a/src/views/approveManage/tradeApproval/list.vue b/src/views/approveManage/tradeApproval/list.vue
index 1ba6586..389e960 100644
--- a/src/views/approveManage/tradeApproval/list.vue
+++ b/src/views/approveManage/tradeApproval/list.vue
@@ -199,9 +199,9 @@
             </el-table-column>
           </el-table-column>
           
-          <!-- 鎬讳环 -->
-          <el-table-column label="鎬讳环" align="center">
-            <el-table-column label="鍗曚环" prop="unitPrice" width="90">
+          <!-- 鍗曚环锛堜笌鈥滄湡闄�(骞�)鈥濅繚鎸佺浉鍚岀殑鐖跺瓙琛ㄥご缁撴瀯锛� -->
+          <el-table-column label="鍗曚环" align="center" width="80">
+            <el-table-column label="" prop="unitPrice" width="80">
               <template #default="{ row }">
                 <div v-if="row.isSpacer" class="spacer-cell"></div>
                 <div v-else-if="!row.isMainOrder" class="price-info">
@@ -220,7 +220,11 @@
                 </div>
               </template>
             </el-table-column>
-            <el-table-column label="鏁伴噺" prop="quantity" width="50">
+          </el-table-column>
+
+          <!-- 鏁伴噺锛堜笌鈥滄湡闄�(骞�)鈥濅繚鎸佺浉鍚岀殑鐖跺瓙琛ㄥご缁撴瀯锛� -->
+          <el-table-column label="鏁伴噺" align="center" width="80">
+            <el-table-column label="" prop="quantity" width="80" align="center">
               <template #default="{ row }">
                 <div v-if="row.isSpacer" class="spacer-cell"></div>
                 <div v-else-if="!row.isMainOrder" class="quantity">{{ row.quantity }}</div>
@@ -230,7 +234,7 @@
           
           <!-- 鏈熼檺(骞�) -->
           <el-table-column label="鏈熼檺(骞�)" align="center" width="80">
-            <el-table-column label="" prop="period" width="80">
+            <el-table-column label="" prop="period" width="80" align="center">
               <template #default="{ row }">
                 <div v-if="row.isSpacer" class="spacer-cell"></div>
                 <div v-else-if="!row.isMainOrder" class="period-info">
@@ -333,7 +337,7 @@
 
 const router = useRouter()
 const userStore = useUserInfo()
-const areaIdTreeRef=ref()
+const areaIdTreeRef=ref<any>()
 
 // 鐘舵�侀�夐」锛堟洿鏂颁负鏂扮殑宸ヤ綔娴佺▼鐘舵�侊級
 const statusOptions = [
@@ -356,13 +360,13 @@
 const query = reactive({
   productName: '',
   industry: '',
-  unitProject: [],
+  unitProject: [] as string[],
   productType: '',
   productSubType: '',
-  importantDistrictIdList: [],
+  importantDistrictIdList: [] as string[],
   orderNo: '',
   status: '',
-  dateRange: [],
+  dateRange: [] as string[],
 })
 
 // 鍒嗛〉淇℃伅
@@ -417,7 +421,7 @@
 const importantAreaCh=()=>{
   let checkedKeys = areaIdTreeRef.value!.getCheckedNodes(false, true)
   if(checkedKeys&&checkedKeys.length>0&& query.unitProject.length>0){
-    query.importantDistrictIdList=[]
+    query.importantDistrictIdList=[] as string[]
     checkedKeys.forEach((item:any)=>{
       if(item.children&&item.children.length>0){
         query.importantDistrictIdList.push(item.value)
@@ -427,8 +431,8 @@
 }
 
 const importantAreaClear=()=>{
-  query.unitProject = []
-  query.importantDistrictIdList = []
+  query.unitProject = [] as string[]
+  query.importantDistrictIdList = [] as string[]
   areaIdTreeRef.value.setCheckedKeys([])
 }
 
@@ -531,7 +535,7 @@
 // 澶勭悊琛屼笟棰嗗煙鍙樺寲
 const handleIndustryChange = async (value: string) => {
   // 娓呯┖鍗曚綅宸ョ▼閫夋嫨
-  query.unitProject = ''
+  query.unitProject = [] as string[]
   // 鑾峰彇瀵瑰簲鐨勫崟浣嶅伐绋嬮�夐」
   await getUnitProjectOptions(value)
 }
@@ -731,7 +735,7 @@
   Object.assign(query, {
     productName: '',
     industry: '',
-    unitProject: '',
+    unitProject: [],
     productType: '',
     productSubType: '',
     orderNo: '',
@@ -1018,6 +1022,7 @@
 .period-info {
   display: flex;
   align-items: center;
+  justify-content: center;
   gap: 8px;
   font-size: 12px;
   

--
Gitblit v1.8.0