From c8018f2e55a147bef3b9118c0cec66227295772f Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期一, 16 十月 2023 16:48:42 +0800
Subject: [PATCH] fix: 修复添加销售子单时 更换客户名称,销售总单并未更换的问题
---
src/components/makepager/SearchCommonView.vue | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/src/components/makepager/SearchCommonView.vue b/src/components/makepager/SearchCommonView.vue
index ed2292d..856afb5 100644
--- a/src/components/makepager/SearchCommonView.vue
+++ b/src/components/makepager/SearchCommonView.vue
@@ -12,10 +12,9 @@
</div>
</div> -->
<div class="search">
- <el-input placeholder="璇疯緭鍏ュ唴瀹�" v-model="searchInput" class="input-with-select" clearable>
+ <el-input placeholder="璇疯緭鍏ュ唴瀹�" v-model.trim="searchInput" class="input-with-select" clearable>
<el-select v-model="searchSelValue" slot="prepend" placeholder="璇烽�夋嫨" class="search-sel">
- <el-option v-for="item in searchOptions" :key="item.value" :label="item.label" :value="item.value">
- </el-option>
+ <el-option v-for="item in searchOptions" :key="item.value" :label="item.label" :value="item"> </el-option>
</el-select>
<!-- <i slot="suffix" class="el-icon-search" style="cursor: pointer" @click="searchClick"></i> -->
</el-input>
@@ -110,8 +109,13 @@
default: () => []
},
searchSel: {
- type: String,
- default: "name"
+ type: Object,
+ default: () => {
+ return {
+ value: "name",
+ label: ""
+ }
+ }
},
searchOptions: {
type: Array,
@@ -301,7 +305,7 @@
}
.search {
.el-select .el-input {
- width: 115px;
+ width: 130px;
}
.input-with-select .el-input-group__prepend {
background-color: #fff;
--
Gitblit v1.8.0