From ade0c4ca14d6f704a7e904aa708f6b8d5575e3bb Mon Sep 17 00:00:00 2001 From: 13507605001 Date: Fri, 6 Jan 2023 09:24:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9F=9C=E4=BD=93=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E5=8C=B9=E9=85=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 ++-- .env.production | 4 ++-- .env.staging | 4 ++-- src/views/reagent/client/index.vue | 33 +++++++++++++++++++++++++++--- 4 files changed, 36 insertions(+), 9 deletions(-) diff --git a/.env.development b/.env.development index 3d68d25..fc8a16d 100644 --- a/.env.development +++ b/.env.development @@ -2,5 +2,5 @@ ENV = 'development' # base api -VUE_APP_BASE_API = 'http://192.168.1.115:9001' -VUE_APP_FACE_API = 'http://192.168.1.115:5000' +VUE_APP_BASE_API = 'http://192.168.1.124:9001' +VUE_APP_FACE_API = 'http://192.168.1.124:5000' diff --git a/.env.production b/.env.production index f0253ad..9de1a8b 100644 --- a/.env.production +++ b/.env.production @@ -2,6 +2,6 @@ ENV = 'production' # base api -VUE_APP_BASE_API = 'http://192.168.1.115:9001' -VUE_APP_FACE_API ='http://192.168.1.115:5000' +VUE_APP_BASE_API = 'http://192.168.1.124:9001' +VUE_APP_FACE_API ='http://192.168.1.124:5000' diff --git a/.env.staging b/.env.staging index 4f8f853..47b1798 100644 --- a/.env.staging +++ b/.env.staging @@ -4,6 +4,6 @@ NODE_ENV = production ENV = 'staging' # base api -VUE_APP_BASE_API = 'http://192.168.1.115:9001' -VUE_APP_FACE_API='http://192.168.1.115:5000' +VUE_APP_BASE_API = 'http://192.168.1.124:9001' +VUE_APP_FACE_API='http://192.168.1.124:5000' diff --git a/src/views/reagent/client/index.vue b/src/views/reagent/client/index.vue index bdeac98..6e79899 100644 --- a/src/views/reagent/client/index.vue +++ b/src/views/reagent/client/index.vue @@ -134,7 +134,16 @@ - + @@ -444,6 +453,23 @@ export default { this.get_client_list() }, methods: { + querySearchAsync(queryString, cb) { + var restaurants = this.options + var results = queryString ? restaurants.filter(this.createStateFilter(queryString)) : restaurants + + clearTimeout(this.timeout) + cb(results) + }, + createStateFilter(queryString) { + return (state) => { + return (state.value.toLowerCase().indexOf(queryString.toLowerCase()) >= 1) + } + }, + handleSelect(item) { + console.log(item) + this.formData = item + this.formData.place = item.value + }, handelLayerfirm(){ console.log(this.layer) var dirctionary = {} @@ -455,7 +481,7 @@ export default { return }else{ let key =item.id - let value =item.storage_quantity + let value =item.storage_quantity dirctionary[key] = value; } }) @@ -671,6 +697,7 @@ export default { this.$message.success(res.msg) this.onClose() this.getList() + this.getclientplace() } ) })