修改柜体位置匹配问题

duizhaopin_ui
13507605001 2 years ago
parent 2973a0b958
commit ade0c4ca14

@ -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'

@ -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'

@ -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'

@ -134,7 +134,16 @@
</el-col>
<el-col :span="12">
<el-form-item label="柜体位置" prop="place">
<el-select
<el-autocomplete
v-model="formData.place"
class="inline-input"
:style="{width: '100%'}"
:fetch-suggestions="querySearchAsync"
clearable
placeholder="请输入柜体位置"
@select="handleSelect"
/>
<!-- <el-select
v-model="formData.place"
filterable
allow-create
@ -146,7 +155,7 @@
:label="item.value"
:value="item.value">
</el-option>
</el-select>
</el-select> -->
<!-- <el-input v-model="formData.place" placeholder="请输入柜体位置" clearable :style="{width: '100%'}" /> -->
</el-form-item>
</el-col>
@ -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()
}
)
})

Loading…
Cancel
Save