优化单据中商品选择框的提示文字的样式
This commit is contained in:
parent
2bbec2c91c
commit
654dd4f689
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<a-input-group v-if="kind === 'material'" compact style="width:100%">
|
||||
<a-select placeholder="条码|名称" :dropdownMatchSelectWidth="false" showSearch :showArrow="false"
|
||||
<a-select placeholder="输入条码或名称" :dropdownMatchSelectWidth="false" showSearch :showArrow="false"
|
||||
v-model="names" optionFilterProp="children" :style="searchWidth"
|
||||
@search="handleSearch" @change="handleChange">
|
||||
<a-select-option v-for="item in materialData" :key="item.barCode">
|
||||
@ -83,11 +83,7 @@
|
||||
},
|
||||
methods: {
|
||||
initComp(name) {
|
||||
if(this.kind === 'material') {
|
||||
this.names = name?name:'输入条码或名称'
|
||||
} else {
|
||||
this.names = name
|
||||
}
|
||||
this.names = name ? name : undefined
|
||||
},
|
||||
onSearch() {
|
||||
this.$refs.selectModal.showModal()
|
||||
@ -113,7 +109,6 @@
|
||||
if (!rows) {
|
||||
this.ids = ''
|
||||
} else {
|
||||
this.names = idstr
|
||||
this.ids = idstr
|
||||
}
|
||||
this.$emit("change", this.ids)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user