tijiao
This commit is contained in:
@@ -3,21 +3,32 @@
|
||||
<z-nav-bar title="待审批医案" bgColor="#5188e5" fontColor="#fff">
|
||||
|
||||
</z-nav-bar>
|
||||
<view class="doctors_module" :style="`top: ${42 + statusBarHeight}px;`">
|
||||
<view class="cateList flexbox" style="background-color: #fff">
|
||||
<common-sticky
|
||||
itemStyle="width:50%; height: 38px;font-size:24rpx;"
|
||||
:list="tabsList"
|
||||
label="title"
|
||||
:currentCateIndex="currentCateIndex"
|
||||
@handleselectCate="ordersTabCLi"
|
||||
></common-sticky>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<scroll-view
|
||||
scroll-y="true"
|
||||
:scroll-top="scrollTop"
|
||||
@scrolltolower="loadMore"
|
||||
style="
|
||||
height: calc(100vh - 140rpx);
|
||||
margin-top: 40rpx;
|
||||
height: calc(100vh - 220rpx);
|
||||
margin-top: 100rpx;
|
||||
padding-bottom: 120rpx;
|
||||
"
|
||||
v-if="show == true"
|
||||
>
|
||||
<view class="doctors_list" id="top">
|
||||
<view
|
||||
class="doctors_item"
|
||||
class="doctors_item" :style="taihumedId == 1 ? 'padding-bottom:20rpx;' : ''"
|
||||
v-for="(item, index) in list"
|
||||
:key="index"
|
||||
@click="goToDetail(item)"
|
||||
@@ -56,7 +67,8 @@
|
||||
</u-upload>
|
||||
</view>
|
||||
|
||||
<view class="list_item_bt">
|
||||
<view class="list_item_bt" v-if="taihumedId==0">
|
||||
|
||||
|
||||
<text class="list_item_study">去评价</text>
|
||||
</view>
|
||||
@@ -114,7 +126,7 @@ export default {
|
||||
this.list = [];
|
||||
this.noMore = false;
|
||||
|
||||
this.getListData(3);
|
||||
this.getListData(this.taihumedId);
|
||||
uni.stopPullDownRefresh();
|
||||
this.isRefreshing = false;
|
||||
console.log("下拉刷新已停止");
|
||||
@@ -158,8 +170,9 @@ export default {
|
||||
// })
|
||||
// .then(res=> {
|
||||
// if (res.list&&res.list.length>0) {
|
||||
this.tabsList = [ ];
|
||||
this.taihumedId = 3;
|
||||
this.tabsList = [ { id: 0, title: "待审批", statusTitle: "" },
|
||||
{ id: 1, title: "审批完成", statusTitle: "审批完成", color: "#f59442" },];
|
||||
this.taihumedId = 0;
|
||||
this.statusTitle = '';
|
||||
this.statusColor = '';
|
||||
this.getListData(this.taihumedId);
|
||||
@@ -184,7 +197,8 @@ export default {
|
||||
url: "common/medicalRecords/getMedicalRecordsCheckList",
|
||||
method: "POST",
|
||||
data: {
|
||||
|
||||
flag: taihumedId,
|
||||
|
||||
},
|
||||
header: {
|
||||
"Content-Type": "application/json",
|
||||
@@ -193,10 +207,16 @@ export default {
|
||||
.then((res) => {
|
||||
uni.hideLoading();
|
||||
// 过滤不包含自己的用户ID的对象
|
||||
this.list = [...res.list].filter(item => {
|
||||
if(this.taihumedId==0){
|
||||
this.list = [...res.list].filter(item => {
|
||||
// 判断是否有 stateInfo 属性,且它不包含用户ID,或者为空字符串
|
||||
return !item.stateInfo || item.stateInfo === "" || !item.stateInfo.includes(this.userInfo.id.toString());
|
||||
});
|
||||
}else{
|
||||
this.list = [...res.list]
|
||||
|
||||
}
|
||||
|
||||
|
||||
console.log('this.list at line 191:', this.list)
|
||||
this.show = true;
|
||||
@@ -257,7 +277,8 @@ export default {
|
||||
type = "detail";
|
||||
|
||||
uni.navigateTo({
|
||||
url: `/pages/medicalRecords/evaluateDetail?navTitle=${navTitle}&title=${navTitle}&id=${item.id}&type=${type}&statusId=${this.taihumedId}&isEvaluate=1`,
|
||||
url: `/pages/medicalRecords/evaluateDetail?navTitle=${navTitle}&title=${navTitle}&id=${item.id}&type=${type}&statusId=${this.taihumedId}&isEvaluate=1&taimedId=${this.taihumedId}`,
|
||||
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user