优化单据中商品选择框的提示文字的样式

This commit is contained in:
季圣华
2023-04-10 22:42:52 +08:00
parent 2bbec2c91c
commit 654dd4f689

View File

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