From 4192a3f72fe5816aefcb14a829be6cf62c7016b9 Mon Sep 17 00:00:00 2001 From: limengyang <2509946015@qq.com> Date: Tue, 26 Aug 2025 14:53:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=89=E4=B8=AA=E5=8D=95=E4=BD=8D?= =?UTF-8?q?=E4=B8=BB=E4=BD=93=E5=85=B1=E7=94=A8=E9=87=87=E8=B4=AD=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E5=BB=BA=E8=AE=BE=E7=AC=AC=E4=BA=8C=E6=9C=9F=20Closes?= =?UTF-8?q?=20{https://jira.frp.frontso.com.cn/browse/TML-7826=3Ffilter=3D?= =?UTF-8?q?-1}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index.wpy | 94 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 89 insertions(+), 5 deletions(-) diff --git a/src/pages/index.wpy b/src/pages/index.wpy index 319f4c8..65563e6 100644 --- a/src/pages/index.wpy +++ b/src/pages/index.wpy @@ -61,7 +61,8 @@ margin-top: 10rpx; padding-left: 20rpx;background: white;height: 150rpx;width: 100%; box-sizing: border-box; - display: flex;flex-direction: row;align-items: center + display: flex;flex-direction: column; + justify-content: center; } .van-tabs__line { z-index: 1; @@ -73,6 +74,35 @@ background-color: #409EFF !important; } +.project-source-container { + position: relative; +} + +.project-source-field .van-field__value { + padding-right: 80rpx !important; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + max-width: calc(100% - 80rpx); +} + +.delete-icon { + position: absolute; + right: 26rpx; + top: 50%; + transform: translateY(-50%); + color: #969799; + font-size: 32rpx; + padding: 10rpx; + z-index: 10; + background: white; + border-radius: 50%; +} + +.delete-icon:active { + color: #ee0a24; +} + @@ -94,10 +124,39 @@ +
+
+ + +
+ +
{{ item.orderSn }} +
+ {{ item.omsOrderApproveItemVoList[0].projectSources || '' }} +
@@ -139,7 +198,14 @@ wepy.page({ activeTab: 0, activeTitle: '试剂耗材', platform: '', - requestTask: null + roleNum: '', + requestTask: null, + projectSources: '', + showPicker: false, + columns: [ + { name: '阜外华中心血管病医院' }, + { name: '河南心血管病中心(国家心血管病中心华中 分中心)' } + ] }, computed: {}, methods: { @@ -227,7 +293,8 @@ wepy.page({ data: { searchText: '', startTime: '', - endTime: '' + endTime: '', + projectSources: this.projectSources }, success: (res) => { if (res.data.success) { @@ -276,7 +343,8 @@ wepy.page({ }, data: { searchText: '', - roleNum: this.userInfo.roleNum + roleNum: this.userInfo.roleNum, + projectSources: this.projectSources }, success: (res) => { if (res.data.success) { @@ -318,6 +386,18 @@ wepy.page({ } else if (event.$wx.detail.title === '实验动物') { this.getSydwList() } + }, + onSelect(event) { + this.projectSources = event.$wx.detail.name + this.showPicker = false + this.getList() + }, + onClose() { + this.showPicker = false + }, + clearProjectSource() { + this.projectSources = '' + this.getList() } }, onShow() { @@ -410,6 +490,7 @@ wepy.page({ let username = arrPara[1] let plat = arrPara[3] let requestURL = this.platformOptions.find(v => v.platformNum === plat).platformUrl + this.roleNum = role this.platform = plat.replace('_test', '') wx.setStorage({ key: 'requestURL', @@ -478,6 +559,7 @@ wepy.page({ success: (res) => { this.userInfo = JSON.parse(res.data); this.platform = this.userInfo.platform + this.roleNum = this.userInfo.角色编号 this.getList() }, fail: function() { @@ -561,7 +643,9 @@ header: '~@/components/header', "van-tabbar": "module:@vant/weapp/lib/tabbar/index", "van-tabbar-item": "module:@vant/weapp/lib/tabbar-item/index", "van-tabs": "module:@vant/weapp/lib/tabs/index", -"van-tab": "module:@vant/weapp/lib/tab/index" +"van-tab": "module:@vant/weapp/lib/tab/index", +"van-tag": "module:@vant/weapp/lib/tag/index", +"van-field": "module:@vant/weapp/lib/field/index" } } -- 2.24.1