gjy 3 年之前
父节点
当前提交
acaa0b5734
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 2 0
      pages/erpbusiness/add_quality_testing.vue
  2. 3 3
      pages/erpbusiness/customer.vue

+ 2 - 0
pages/erpbusiness/add_quality_testing.vue

@@ -305,6 +305,8 @@
 					//点击登记客户
 					this.gridList.customerName = _customerInfo.shipperName
 					this.gridList.customerPhone = _customerInfo.shipperPhone
+					console.log(uni.getStorageSync('carNo'))
+					this.gridList.carNumber=uni.getStorageSync('carNo')
 				} else {
 					//点击搜索客户
 					this.gridList.customerName = _customerInfo.customerName

+ 3 - 3
pages/erpbusiness/customer.vue

@@ -32,7 +32,7 @@
 			<view style='padding-left:20px;color:#AFB3BF;font-size:14px;' v-if='show==false'>登记客户</view>
 
 			<view v-for='item in registeredCustomer'>
-				<view class="dj-customer" @click="registeredCustomerClick(item)" v-for="(item1,index) in item.carList">
+				<view class="dj-customer" v-for="(item1,index) in item.carList" @click="registeredCustomerClick(item,item1)">
 					<view class="left">{{item1}}</view>
 					<view class="right">
 						<view class="span1">{{item.shipperName}}(货)</view>
@@ -191,8 +191,8 @@
 				}
 
 			},
-			registeredCustomerClick(item){
-			
+			registeredCustomerClick(item,item1){
+			uni.setStorageSync('carNo', item1)
 			uni.setStorageSync('checkcustomer', item)
 				if (this.recentCustomers.length == 0) {
 					this.recentCustomers.push(item)