|
|
|
@ -1,84 +1,84 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<view>
|
|
|
|
<view>
|
|
|
|
|
|
|
|
|
|
|
|
<u-popup v-model="isShowIng" height="60%" mode="bottom" border-radius="14" closeable >
|
|
|
|
<u-popup v-model="isShowIng" height="60%" mode="bottom" border-radius="14" closeable>
|
|
|
|
<view class="nursing-list">
|
|
|
|
<view class="nursing-list">
|
|
|
|
<view v-if="nursingList && nursingList.length > 0">
|
|
|
|
<view v-if="nursingList && nursingList.length > 0">
|
|
|
|
<view v-for="(item,index) in nursingList" :key="index" class="list-item">
|
|
|
|
<view v-for="(item,index) in nursingList" :key="index" class="list-item">
|
|
|
|
<view class="top">
|
|
|
|
<view class="top">
|
|
|
|
<view class="time">{{item.start_time}}</view>
|
|
|
|
<view class="time">{{item.start_time}}</view>
|
|
|
|
<view class="status">
|
|
|
|
<view class="status">
|
|
|
|
<view class="status-icon"
|
|
|
|
<view class="status-icon"
|
|
|
|
:class="{icon1:item.status === 0,icon2:item.status === 2,icon3:item.status === 1}">
|
|
|
|
:class="{icon1:item.status === 0,icon2:item.status === 2,icon3:item.status === 1}">
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view v-if="item.status === 1" class="status-text">护理中</view>
|
|
|
|
<view v-if="item.status === 1" class="status-text">护理中</view>
|
|
|
|
<view v-else-if="item.status === 0" class="status-text">待护理</view>
|
|
|
|
<view v-else-if="item.status === 0" class="status-text">待护理</view>
|
|
|
|
<view v-else class="status-text">已护理</view>
|
|
|
|
<view v-else class="status-text">已护理</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
<view class="line"></view>
|
|
|
|
<view class="line"></view>
|
|
|
|
|
|
|
|
|
|
|
|
<view class="center" @click="toDetail(item)">
|
|
|
|
|
|
|
|
<view class="avatar">
|
|
|
|
|
|
|
|
<u-image :src="item.customer.sex === '男' ? vuex_male_img : vuex_female_img" height="104"
|
|
|
|
|
|
|
|
width="104" shape="circle"></u-image>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="user-info-pop">
|
|
|
|
|
|
|
|
<view class="name">{{item.customer.name}}</view>
|
|
|
|
|
|
|
|
<view class="tel">
|
|
|
|
|
|
|
|
<view>
|
|
|
|
|
|
|
|
<u-icon name="phone" size="28" color="#1479FF"></u-icon>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="text">{{item.customer.phone || '无'}}</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="address">
|
|
|
|
|
|
|
|
<view>
|
|
|
|
|
|
|
|
<u-icon name="map" size="28" color="#1479FF"></u-icon>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="text">{{item.customer_address.address || '无'}}</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="sex">
|
|
|
|
|
|
|
|
<view class="sex-text">
|
|
|
|
|
|
|
|
{{item.customer.sex || '无'}}
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="bottom">
|
|
|
|
<view class="center" @click="toDetail(item)">
|
|
|
|
<view class="to-there" @click="toThere(item)">
|
|
|
|
<view class="avatar">
|
|
|
|
<view class="to-there-text">去那里</view>
|
|
|
|
<u-image :src="item.customer.sex === '男' ? vuex_male_img : vuex_female_img" height="104"
|
|
|
|
<view class="to-there-icon">
|
|
|
|
width="104" shape="circle"></u-image>
|
|
|
|
<u-image src="/static/todayNursing/to-there.png" height="46" width="46"></u-image>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="user-info-pop">
|
|
|
|
</view>
|
|
|
|
<view class="name">{{item.customer.name}}</view>
|
|
|
|
|
|
|
|
<view class="tel">
|
|
|
|
|
|
|
|
<view>
|
|
|
|
|
|
|
|
<u-icon name="phone" size="28" color="#1479FF"></u-icon>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="text">{{item.customer.phone || '无'}}</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="address">
|
|
|
|
|
|
|
|
<view>
|
|
|
|
|
|
|
|
<u-icon name="map" size="28" color="#1479FF"></u-icon>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="text">{{item.customer_address.address || '无'}}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="sex">
|
|
|
|
|
|
|
|
<view class="sex-text">
|
|
|
|
|
|
|
|
{{item.customer.sex || '无'}}
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
<view v-else>
|
|
|
|
<view class="bottom">
|
|
|
|
<u-empty mode="list" text="暂无护理"></u-empty>
|
|
|
|
<view class="to-there" @click="toThere(item)">
|
|
|
|
|
|
|
|
<view class="to-there-text">去那里</view>
|
|
|
|
|
|
|
|
<view class="to-there-icon">
|
|
|
|
|
|
|
|
<u-image src="/static/todayNursing/to-there.png" height="46" width="46"></u-image>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</u-popup>
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view v-else>
|
|
|
|
|
|
|
|
<u-empty mode="list" text="暂无护理"></u-empty>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</u-popup>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name:"doingOrder",
|
|
|
|
name: "doingOrder",
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
isShowIng:false,
|
|
|
|
isShowIng: false,
|
|
|
|
nursingList:[],
|
|
|
|
nursingList: [],
|
|
|
|
ing:0,
|
|
|
|
ing: 0,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods:{
|
|
|
|
methods: {
|
|
|
|
toThere(item) {
|
|
|
|
toThere(item) {
|
|
|
|
this.$u.throttle(() => {
|
|
|
|
this.$u.throttle(() => {
|
|
|
|
uni.openLocation({
|
|
|
|
uni.openLocation({
|
|
|
|
@ -102,17 +102,17 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async getIngList() {
|
|
|
|
async getIngList() {
|
|
|
|
let res = await this.$u.api.nurseList({
|
|
|
|
let res = await this.$u.api.nurseList({
|
|
|
|
page:1,
|
|
|
|
page: 1,
|
|
|
|
page_size:999,
|
|
|
|
page_size: 999,
|
|
|
|
status:1
|
|
|
|
status: 1
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.nursingList = res.data
|
|
|
|
this.nursingList = res.data
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async created() {
|
|
|
|
async created() {
|
|
|
|
console.log("onShow","doorder")
|
|
|
|
console.log("onShow", "doorder")
|
|
|
|
await this.getStatistic();
|
|
|
|
await this.getStatistic();
|
|
|
|
if(this.ing > 0){
|
|
|
|
if (this.ing > 0) {
|
|
|
|
await this.getIngList()
|
|
|
|
await this.getIngList()
|
|
|
|
this.isShowIng = true
|
|
|
|
this.isShowIng = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -120,7 +120,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
<style scoped lang="scss">
|
|
|
|
.nursing-list {
|
|
|
|
.nursing-list {
|
|
|
|
|
|
|
|
|
|
|
|
margin-top: 88rpx;
|
|
|
|
margin-top: 88rpx;
|
|
|
|
@ -318,5 +318,4 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
</style>
|