Update work-home.vue
This commit is contained in:
parent
9faad813df
commit
e5bcf8de62
@ -88,16 +88,17 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<scroll-view v-if="list.length" scroll-y="true" class="h-full">
|
<scroll-view v-if="list.length" scroll-y="true" class="h-full">
|
||||||
<view v-for="i in list" :key="i._id" class="mb-10 shadow-lg bg-white">
|
<view v-for="i in list" :key="i._id" class="mb-10 shadow-lg bg-white" @click="toTodoDetail(i._id)">
|
||||||
<view class="flex items-center justify-between px-15 py-10 border-b">
|
<view class="flex items-center justify-between px-15 py-10 border-b">
|
||||||
<view class="text-base text-dark">计划执行: {{ i.planDate }}</view>
|
<view class="text-base text-dark">计划执行: {{ i.planDate }}</view>
|
||||||
<view class="flex items-center">
|
<view class="flex items-center" @click.stop="toTodoDetail(i._id, true)">
|
||||||
<view class="text-base text-dark">患者: {{ i.customerName }}</view>
|
<view class="mr-5 text-base text-dark">患者: {{ i.customerName }}</view>
|
||||||
|
<image class="icon-edit" src="/static/work/edit-pen.svg" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="py-10 px-15 flex items-center">
|
<view class="py-10 px-15 flex items-center">
|
||||||
<view class="mr-5 text-lg font-semibold">{{ i.eventTypeLabel }}</view>
|
<view class="mr-5 text-lg font-semibold">{{ i.eventTypeLabel }}</view>
|
||||||
<view class="bg-opacity px-10 py-3 leading-normal text-base rounded overflow-hidden"
|
<view class="bg-light-text-color px-10 py-3 leading-normal text-base rounded overflow-hidden"
|
||||||
:class="statusClassNames[i.eventStatus] || 'text-gray'">
|
:class="statusClassNames[i.eventStatus] || 'text-gray'">
|
||||||
{{ i.eventStatusLabel }}
|
{{ i.eventStatusLabel }}
|
||||||
</view>
|
</view>
|
||||||
@ -109,7 +110,8 @@
|
|||||||
发送内容:{{ file.file.name }}
|
发送内容:{{ file.file.name }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="bg-primary px-10 py-3 text-base text-white rounded-sm">发送</view>
|
<!-- <view v-if="doctorInfo && doctorInfo.userid && i.executorUserId && doctorInfo.userid === i.executorUserId"
|
||||||
|
class="bg-primary px-10 py-3 text-base text-white rounded-sm">发送</view> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="mt-10 px-15 text-base leading-normal text-gray truncate">
|
<view class="mt-10 px-15 text-base leading-normal text-gray truncate">
|
||||||
{{ i.executorUserName }}({{ i.executeTeamName }})
|
{{ i.executorUserName }}({{ i.executeTeamName }})
|
||||||
@ -163,7 +165,6 @@ const { useLoad, useShow } = useGuard();
|
|||||||
const { getDoctorInfo } = useAccountStore();
|
const { getDoctorInfo } = useAccountStore();
|
||||||
const { account, doctorInfo } = storeToRefs(useAccountStore());
|
const { account, doctorInfo } = storeToRefs(useAccountStore());
|
||||||
const { chargeTeams } = storeToRefs(useTeamStore());
|
const { chargeTeams } = storeToRefs(useTeamStore());
|
||||||
const { getTeams } = useTeamStore();
|
|
||||||
|
|
||||||
const { withInfo } = useInfoCheck();
|
const { withInfo } = useInfoCheck();
|
||||||
const visible = ref(false);
|
const visible = ref(false);
|
||||||
@ -222,6 +223,12 @@ function handleCert() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function toTodoDetail(id, editMode = false) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/work/todo/todo-detail?id=${id}&editMode=${editMode ? 'YES' : ''}`
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
async function getList() {
|
async function getList() {
|
||||||
if (!doctorInfo.value || !doctorInfo.value.userid) {
|
if (!doctorInfo.value || !doctorInfo.value.userid) {
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user