|
|
|
@ -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()
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|