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