From b95bdc2199e991c4643814663a005c5e0e7d5048 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期二, 18 二月 2025 12:43:59 +0800
Subject: [PATCH] Merge branch 'master' of http://bore.pub:10439/r/ERP_override

---
 north-glass-erp/northglass-erp/src/views/sd/order/CreateOrder.vue |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/sd/order/CreateOrder.vue b/north-glass-erp/northglass-erp/src/views/sd/order/CreateOrder.vue
index 6b688cc..a03281e 100644
--- a/north-glass-erp/northglass-erp/src/views/sd/order/CreateOrder.vue
+++ b/north-glass-erp/northglass-erp/src/views/sd/order/CreateOrder.vue
@@ -1135,15 +1135,15 @@
 }
 
 const changeCustomer =  () => {
-  const customer = titleUploadData.value.customerId
-  titleUploadData.value.customerId = customer['id']
-  titleUploadData.value.customerName = customer['customerName']
-  titleUploadData.value.project = customer['project']
-  titleUploadData.value.salesmanId = customer['salesmanId']
-  titleUploadData.value.salesman = customer['salesman']
-  titleUploadData.value.contacts = customer['contacts']
-  titleUploadData.value.contactNumber = customer['contactNumber']
-  projects.value = customer['projectList']
+  const changedCustomerId = titleUploadData.value.customerId
+  const customer = titleSelectJson.value.customer.filter(item => item.id === changedCustomerId)
+  titleUploadData.value.customerName = customer[0].customerName
+  titleUploadData.value.project = customer[0].project
+  titleUploadData.value.salesmanId = customer[0].salesmanId
+  titleUploadData.value.salesman = customer[0].salesman
+  titleUploadData.value.contacts = customer[0].contacts
+  titleUploadData.value.contactNumber = customer[0].contactNumber
+  projects.value = customer[0].projectList
 }
 
 const changeSaleMan = () => {
@@ -1526,7 +1526,7 @@
             <el-option v-for="item in titleSelectJson['customer']"
                        :key="item.id"
                        :label="item.id+' '+item.customerName"
-                       :value="item"
+                       :value="item.id"
                        />
             <template #footer>
               <el-button @click="createCustomerVisible=true"  text bg size="small" >

--
Gitblit v1.8.0