diff --git a/src/pages/index.wpy b/src/pages/index.wpy index 319f4c89acb225f47d86cf9bececd456583b0cc3..65563e6bdc7c9541b90f065297730ad5b12f8faf 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" } }