From c1f28d2184e8d76165f6e4ba4e2f9875662c0d61 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 2 Jan 2025 11:18:21 +0800 Subject: [PATCH] =?UTF-8?q?feat(pageQuota):=20=E9=87=87=E8=B4=AD=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E9=A1=B5=E9=9D=A2=E5=A2=9E=E5=8A=A0=E4=BE=9B=E5=BA=94?= =?UTF-8?q?=E5=95=86=E6=90=9C=E7=B4=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在采购产品页面添加供应商搜索组件 - 更新 API 调用以支持供应商名称搜索 - 优化供应商列表展示逻辑 - 调整每页显示数量为 50 条 - 更新本地测试环境 URL --- config/app.js | 2 +- multipleShop/index/index.vue | 2 +- pageQuota/purchase_product_offer/index.vue | 27 +- uni_modules/next-search-select/changelog.md | 18 + .../next-search-select/next-search-select.vue | 557 ++++++++++++++++++ .../next-search-select/right_icon.png | Bin 0 -> 673 bytes uni_modules/next-search-select/package.json | 80 +++ uni_modules/next-search-select/readme.md | 155 +++++ 8 files changed, 833 insertions(+), 8 deletions(-) create mode 100644 uni_modules/next-search-select/changelog.md create mode 100644 uni_modules/next-search-select/components/next-search-select/next-search-select.vue create mode 100644 uni_modules/next-search-select/components/next-search-select/right_icon.png create mode 100644 uni_modules/next-search-select/package.json create mode 100644 uni_modules/next-search-select/readme.md diff --git a/config/app.js b/config/app.js index 313fd1e..d8d8126 100644 --- a/config/app.js +++ b/config/app.js @@ -17,7 +17,7 @@ switch (env) { WSS_URL = 'wss://ceshi-multi-store.lihaink.cn/pull' break; case 'local': - BASE_URL = 'http://192.168.1.7:8545'; + BASE_URL = 'http://192.168.1.22:8545'; WSS_URL = 'wss://ceshi-multi-store.lihaink.cn/pull' break; default: diff --git a/multipleShop/index/index.vue b/multipleShop/index/index.vue index 97f3843..a8d5bfe 100644 --- a/multipleShop/index/index.vue +++ b/multipleShop/index/index.vue @@ -79,7 +79,7 @@ name: '', cart_id: "", page_no: 1, - page_size: 6 + page_size: 50 }) // 初始化 diff --git a/pageQuota/purchase_product_offer/index.vue b/pageQuota/purchase_product_offer/index.vue index 5f62ef6..67b63fc 100644 --- a/pageQuota/purchase_product_offer/index.vue +++ b/pageQuota/purchase_product_offer/index.vue @@ -48,11 +48,23 @@ - + + @@ -162,17 +174,20 @@ goodsList1.value = res.data.lists } const supplierList = ref([]) - const getSupplierList = () => { - supplierListApi().then(res => { - supplierList.value = [res.data.lists] + const getSupplierList = (val='') => { + supplierListApi({mer_name:val}).then(res => { + supplierList.value =res.data.lists }) } + function changeCallback(item) { + console.log("选中的item:", item) + } const supplierConfirm = (e) => { showSupplier.value = false supplierText.value = e.value[0].mer_name formData.value.supplier_id = e.value[0].id } - const cancleOrder = (item) => { + const cancleOrder = (item) => { columns.value[0].forEach(e => { if (e['name_b'] == item['category_name']) { pickerText.value = e['name'] diff --git a/uni_modules/next-search-select/changelog.md b/uni_modules/next-search-select/changelog.md new file mode 100644 index 0000000..7e0e49a --- /dev/null +++ b/uni_modules/next-search-select/changelog.md @@ -0,0 +1,18 @@ +## 1.0.8(2024-09-14) +更新说明 +## 1.0.7(2023-12-14) +修复icon +## 1.0.6(2023-09-25) +增加多选,多次搜索默认值选项回显功能 +## 1.0.5(2023-08-15) +修复小程序端兼容性问题 +## 1.0.4(2023-08-15) +增加props配置disabledKey +## 1.0.3(2023-08-14) +增加visibleChange +## 1.0.2(2023-06-06) +增加按需加载说明 +## 1.0.1(2023-05-31) +增加没有搜索到数据的提示 +## 1.0.0(2023-05-31) +发布next-search-select diff --git a/uni_modules/next-search-select/components/next-search-select/next-search-select.vue b/uni_modules/next-search-select/components/next-search-select/next-search-select.vue new file mode 100644 index 0000000..85d4503 --- /dev/null +++ b/uni_modules/next-search-select/components/next-search-select/next-search-select.vue @@ -0,0 +1,557 @@ + + + + + diff --git a/uni_modules/next-search-select/components/next-search-select/right_icon.png b/uni_modules/next-search-select/components/next-search-select/right_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..7a5f4eb6c17f2dd6281615a492109f7e12da99dd GIT binary patch literal 673 zcmV;S0$%-zP)Px%TS-JgR9Hvt*RiY9KpY3~@1kNg=-~2DdH;Z@le#{m zt8P#6FHpf%mqMFM46h&-aT0WJ5Jz<>4%Re3Ik`xOr@18ee2ZC1A>sSsce&s1!mz^^ z+u?j@0g@y+ETN9$d@v0z1dPYyu4P$~47Mz5&2`4R2uS_5c0Wu_tq7y_E0@$NMKR27rUa!}CR~MlLkReHu z^wTtb4q%u3PedOXW2ZUipXwmA0Wu_x>6w1N|D`IT6hJM9jeU&7J`mZWsZ`P$9$t#@Hqi9m?kh zfK#0FH-D>yF@V~h7l}wVs{FdiInM{#mJVY8A;eMHv6qKdqtWO%j`M!oDQ*F31KnSq`p!OiD1PH@$oiS!)6qg1> zQDpQmQVI};;VNUy=y6ONuw4gIEkKeaM;434l!)4@9~e85YXO81HvrsKv)<@Oi7w!{ z8Zz?!^PF>IpJiGAdDCPv*(-m$-R{>qt$V9yYs~@^nE!yEnS=>6VNr|w00000NkvXX Hu0mjf&xJ9F literal 0 HcmV?d00001 diff --git a/uni_modules/next-search-select/package.json b/uni_modules/next-search-select/package.json new file mode 100644 index 0000000..d289892 --- /dev/null +++ b/uni_modules/next-search-select/package.json @@ -0,0 +1,80 @@ +{ + "id": "next-search-select", + "displayName": "next-search-select-搜索框组件全端可用", + "version": "1.0.8", + "description": "简单好用的带搜索功能select组件,支持多种展示形式,可自定义placeholder,远程搜索,多选,单选", + "keywords": [ + "远程搜索", + "多选", + "单选", + "search", + "api搜索" +], + "repository": "", + "engines": { + "HBuilderX": "^3.1.1" + }, +"dcloudext": { + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "插件不采集任何数据", + "permissions": "无" + }, + "npmurl": "", + "type": "component-vue" + }, + "uni_modules": { + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y", + "alipay": "n" + }, + "client": { + "App": { + "app-vue": "n", + "app-nvue": "n" + }, + "H5-mobile": { + "Safari": "n", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "n", + "Edge": "n", + "Firefox": "n", + "Safari": "n" + }, + "小程序": { + "微信": "y", + "阿里": "u", + "百度": "u", + "字节跳动": "u", + "QQ": "u" + }, + "快应用": { + "华为": "n", + "联盟": "n" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} \ No newline at end of file diff --git a/uni_modules/next-search-select/readme.md b/uni_modules/next-search-select/readme.md new file mode 100644 index 0000000..bbc37e4 --- /dev/null +++ b/uni_modules/next-search-select/readme.md @@ -0,0 +1,155 @@ + +## next-search-select --下拉多选,单选,搜索 + +> 遇到问题或有建议可以加入QQ群(455948571)反馈 +> 如果觉得组件不错,给五星鼓励鼓励咯! + +### 如果有使用问题请加群 + +注意:如果插件问题,请务必给一个完整的复现demo,谢谢配合; +[点击链接加入群聊前端开发(uniapp插件)】](https://qm.qq.com/q/S1bJzQfJAG) + +## 使用 + +>[从uniapp插件市场导入](https://ext.dcloud.net.cn/plugin?name=next-search-select) + +```html + +``` + +### vue3 + ts 使用 + +```ts + + + +``` +### vue2 同样支持,在这里不再写demo + +### 组件按需加载 +如果不需要组件全局加载,而已把组件拷贝到项目的components目录下,单独引入进来使用即可达到按需加载的效果 +### 预览 + +*** + +| 功能预览 | +| :--------------------------------------------------------------------------:| +| ![](https://lixueshiaa.github.io/webtest/www/static/next-search-select.gif) | + + +## 参数 + + +### next-search-select Props + +可选参数属性列表 + +|参数名 |说明 |类型 |是否必填 |默认值 |可选值 | +|---- |---- |---- |---- |---- |---- | +|showSearch |是否显示搜索框 |Boolean |否 |true |false | +|value |v-model v-model:value 绑定值 |Number, String, Array, Object |是 |"" |- | +|placeholder |搜索框placeholder |String |否 |"" |- | +|multiple |是否多选 |Boolean |否 |false |true | +|list | 列表值 |Array |是 |[] |- | +|valueKey |list列表绑定的value关键属性key |String |否 |value |- | +|labelKey |list列表绑定的label(显示)关键属性key |String |否 |label |- | +|disabledKey |list列表绑定的disabled(显示)关键属性key |String |否 |disabled |- | +|disabled| disabled |Boolean |否 |false |true | +|emptyText |重置按钮文本text |String |否 |重置 |- | +|title |弹层标题 |String |否 |选择内容 |- | +|confirmText |确定按钮文本text |String |否 |确定 |- | +|color |文字颜色 |String |否 |#000000 |- | +|selectColor |激活颜色 |String |否 |#f9ae3d |- | +|bgColor |弹层背景颜色 |String |否 |#ffffff |- | +|selectBgColor |激活项背景颜色 |String |否 |#ffffff |- | +|showSearchBtn |是否显示搜索按钮 |Boolean |否 |true |false | +|showArrow |是否显示右指示箭头 |Boolean |否 |true |false | + + +# Event 事件 +|事件名 |说明 |类型 |回调参数 | +|---- |---- |---- |---- | +|confirm|点击确定触发事件 |emit |- | +|change|change |emit |- | +|visibleChange|弹层改变触发 |emit |- | \ No newline at end of file