Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cg_approveApp_2023
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
cg_approveApp_2023
Commits
4192a3f7
Commit
4192a3f7
authored
Aug 26, 2025
by
limengyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 三个单位主体共用采购平台建设第二期
Closes {
https://jira.frp.frontso.com.cn/browse/TML-7826?filter=-1
}
parent
db5cd3d7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
89 additions
and
5 deletions
+89
-5
src/pages/index.wpy
src/pages/index.wpy
+89
-5
No files found.
src/pages/index.wpy
View file @
4192a3f7
...
@@ -61,7 +61,8 @@
...
@@ -61,7 +61,8 @@
margin-top: 10rpx;
margin-top: 10rpx;
padding-left: 20rpx;background: white;height: 150rpx;width: 100%;
padding-left: 20rpx;background: white;height: 150rpx;width: 100%;
box-sizing: border-box;
box-sizing: border-box;
display: flex;flex-direction: row;align-items: center
display: flex;flex-direction: column;
justify-content: center;
}
}
.van-tabs__line {
.van-tabs__line {
z-index: 1;
z-index: 1;
...
@@ -73,6 +74,35 @@
...
@@ -73,6 +74,35 @@
background-color: #409EFF !important;
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;
}
</style>
</style>
<!--<wxs module="m1" lang="babel">-->
<!--<wxs module="m1" lang="babel">-->
<!--const getTime = (time) => {-->
<!--const getTime = (time) => {-->
...
@@ -94,10 +124,39 @@
...
@@ -94,10 +124,39 @@
<van-tab title="试剂耗材"></van-tab>
<van-tab title="试剂耗材"></van-tab>
<van-tab title="实验动物"></van-tab>
<van-tab title="实验动物"></van-tab>
</van-tabs>
</van-tabs>
<div v-if="(platform === 'ckzv' || platform === 'ckzvSydw') && (roleNum === 'JS0010' || roleNum === 'JS0011' || roleNum === 'JS0012' || roleNum === 'JS0013')">
<div class="project-source-container">
<van-field
readonly
clickable
:value="projectSources"
label="报销主体"
placeholder="点击选择报销主体"
@click="showPicker = true"
custom-class="project-source-field"
/>
<van-icon
v-if="projectSources"
name="cross"
class="delete-icon"
@click="clearProjectSource"
/>
</div>
<van-action-sheet
show="{{ showPicker }}"
title="选择报销主体"
bind:close="onClose"
bind:select="onSelect"
actions="{{ columns }}"
/>
</div>
<van-empty v-if="orderList.length === 0" description="暂无待审批订单" />
<van-empty v-if="orderList.length === 0" description="暂无待审批订单" />
<div @tap="item_click(item)" v-for="(item,index) in orderList" class="item">
<div @tap="item_click(item)" v-for="(item,index) in orderList" class="item">
{{ item.orderSn }}
{{ item.orderSn }}
<div v-if="platform === 'ckzv' || platform === 'ckzvSydw'">
<van-tag plain type="primary">{{ item.omsOrderApproveItemVoList[0].projectSources || '' }}</van-tag>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -139,7 +198,14 @@ wepy.page({
...
@@ -139,7 +198,14 @@ wepy.page({
activeTab: 0,
activeTab: 0,
activeTitle: '试剂耗材',
activeTitle: '试剂耗材',
platform: '',
platform: '',
requestTask: null
roleNum: '',
requestTask: null,
projectSources: '',
showPicker: false,
columns: [
{ name: '阜外华中心血管病医院' },
{ name: '河南心血管病中心(国家心血管病中心华中 分中心)' }
]
},
},
computed: {},
computed: {},
methods: {
methods: {
...
@@ -227,7 +293,8 @@ wepy.page({
...
@@ -227,7 +293,8 @@ wepy.page({
data: {
data: {
searchText: '',
searchText: '',
startTime: '',
startTime: '',
endTime: ''
endTime: '',
projectSources: this.projectSources
},
},
success: (res) => {
success: (res) => {
if (res.data.success) {
if (res.data.success) {
...
@@ -276,7 +343,8 @@ wepy.page({
...
@@ -276,7 +343,8 @@ wepy.page({
},
},
data: {
data: {
searchText: '',
searchText: '',
roleNum: this.userInfo.roleNum
roleNum: this.userInfo.roleNum,
projectSources: this.projectSources
},
},
success: (res) => {
success: (res) => {
if (res.data.success) {
if (res.data.success) {
...
@@ -318,6 +386,18 @@ wepy.page({
...
@@ -318,6 +386,18 @@ wepy.page({
} else if (event.$wx.detail.title === '实验动物') {
} else if (event.$wx.detail.title === '实验动物') {
this.getSydwList()
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() {
onShow() {
...
@@ -410,6 +490,7 @@ wepy.page({
...
@@ -410,6 +490,7 @@ wepy.page({
let username = arrPara[1]
let username = arrPara[1]
let plat = arrPara[3]
let plat = arrPara[3]
let requestURL = this.platformOptions.find(v => v.platformNum === plat).platformUrl
let requestURL = this.platformOptions.find(v => v.platformNum === plat).platformUrl
this.roleNum = role
this.platform = plat.replace('_test', '')
this.platform = plat.replace('_test', '')
wx.setStorage({
wx.setStorage({
key: 'requestURL',
key: 'requestURL',
...
@@ -478,6 +559,7 @@ wepy.page({
...
@@ -478,6 +559,7 @@ wepy.page({
success: (res) => {
success: (res) => {
this.userInfo = JSON.parse(res.data);
this.userInfo = JSON.parse(res.data);
this.platform = this.userInfo.platform
this.platform = this.userInfo.platform
this.roleNum = this.userInfo.角色编号
this.getList()
this.getList()
},
},
fail: function() {
fail: function() {
...
@@ -561,7 +643,9 @@ header: '~@/components/header',
...
@@ -561,7 +643,9 @@ header: '~@/components/header',
"van-tabbar": "module:@vant/weapp/lib/tabbar/index",
"van-tabbar": "module:@vant/weapp/lib/tabbar/index",
"van-tabbar-item": "module:@vant/weapp/lib/tabbar-item/index",
"van-tabbar-item": "module:@vant/weapp/lib/tabbar-item/index",
"van-tabs": "module:@vant/weapp/lib/tabs/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"
}
}
}
}
</config>
</config>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment