liujun před 2 roky
rodič
revize
08737c8551
1 změnil soubory, kde provedl 7 přidání a 1 odebrání
  1. 7 1
      pages/sales/chooseShelf.vue

+ 7 - 1
pages/sales/chooseShelf.vue

@@ -55,8 +55,12 @@
 				noDataText: '暂无客户',
 				status: 'loading',
 				vinstatus: 'loading',
-				checkedSn: null
+				checkedSn: null,
+				customer:{
+					queryWord:''
+				}
 			}
+
 		},
 		onLoad(opts) {
 			this.checkedSn = opts.customerSn
@@ -75,6 +79,7 @@
 			search(){
 				this.pageNo = 1
 				this.shelfList = []
+				this.customer.queryWord = this.customerName;
 				this.getShelfList()
 			},
 			// 获取客户列表
@@ -85,6 +90,7 @@
 				    pageSize: this.pageSize,
 					allCustomerFlag: 1
 				}
+				params.customer = _this.customer
 				_this.status = 'loading'
 				queryCustomerPage(params).then(res => {
 					uni.hideLoading()