From 03c046189b4c4cdf59043990b3a21d0908eb8032 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期日, 28 四月 2024 17:18:46 +0800
Subject: [PATCH] 采购订单模块 判断供应商和产品是否匹配的数据来源对应的接口修改和联调+供应商列表 搜索功能的问题修改
---
src/components/makepager/SearchCommonView.vue | 34 ++++++++++++++++++++++------------
1 files changed, 22 insertions(+), 12 deletions(-)
diff --git a/src/components/makepager/SearchCommonView.vue b/src/components/makepager/SearchCommonView.vue
index 98a11d2..51003ab 100644
--- a/src/components/makepager/SearchCommonView.vue
+++ b/src/components/makepager/SearchCommonView.vue
@@ -2,11 +2,13 @@
<div class="search-list">
<div class="search-top">
<div class="search">
- <el-input placeholder="璇疯緭鍏ュ唴瀹�" v-model="searchInput" class="input-with-select" clearable>
- <el-select v-model="searchSelValue" slot="prepend" placeholder="璇烽�夋嫨" class="search-sel">
+ <el-input v-if="inputSelect" :placeholder="placeholder" v-model="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"> </el-option>
- </el-select>
+ </el-select> -->
<!-- <i slot="suffix" class="el-icon-search" style="cursor: pointer" @click="searchClick"></i> -->
+ </el-input>
+ <el-input v-else :placeholder="placeholder" v-model="searchInput" class="input-with-select" clearable>
</el-input>
</div>
<div class="btn">
@@ -24,6 +26,14 @@
name: "SearchCommonView",
components: {},
props: {
+ placeholder:{
+ type:String,
+ default:'璇疯緭鍏ュ唴瀹�',
+ },
+ inputSelect:{
+ type:Boolean,
+ default:true,
+ },
queryClass: {
type: String,
default: "1"
@@ -84,7 +94,7 @@
},
methods: {
searchClick() {
- this.$emit("searchClick", this.searchSelValue, this.searchInput)
+ this.$emit("searchClick", this.searchInput)
},
resetClick() {
this.searchSelValue = this.searchSel
@@ -164,7 +174,7 @@
}
.el-input__prefix,
.el-input__suffix {
- height: 30px;
+ // height: 30px;
}
.el-input__icon {
line-height: 30px;
@@ -178,13 +188,13 @@
}
.el-input__suffix {
// 澶勭悊鍓嶇紑鍥炬爣涓嶅瀭鐩村眳涓殑闂
- height: auto;
- font-size: 15px;
- &-inner {
- flex-direction: row-reverse;
- -webkit-flex-direction: row-reverse;
- display: flex;
- }
+ // height: auto;
+ // font-size: 15px;
+ // &-inner {
+ // flex-direction: row-reverse;
+ // -webkit-flex-direction: row-reverse;
+ // display: flex;
+ // }
}
.el-input--suffix .el-input__inner {
padding-right: 45px;
--
Gitblit v1.8.0