This commit is contained in:
Teng 2026-01-08 17:05:41 +08:00
commit 21416aaf1b
6 changed files with 2215 additions and 2165 deletions

View File

@ -145,3 +145,17 @@ export const humidDevicejgwarn = (data) => {
method: 'get'
})
}
// 护理医疗后勤数量
export const queryCountByType = (data) => {
return request({
url: `${uni.getStorageSync('serverUrl')}/services/directivePlan/queryCountByType?nuId=${data.nuId}&elderId=${data.elderId}`,
method: 'get'
})
}
// 即时指令内容
export const queryAll = (data) => {
return request({
url: `${uni.getStorageSync('serverUrl')}/services/directivePlanInstant/queryAll?nuId=${data.nuId}&elderId=${data.elderId}`,
method: 'get'
})
}

View File

@ -4,7 +4,7 @@
<view class="title-card" @click="nusing">
<view class="card-top">
<view class="card-top-left">
50
{{hldyobj?.hllFinishedTotal}}
</view>
<view class="card-top-right">
<image class="right-img" src="/static/index/card/arrow.png" />
@ -13,7 +13,7 @@
<view class="line">
</view>
<view class="line-gray">
80
{{hldyobj?.hllTotal}}
</view>
</view>
@ -28,7 +28,7 @@
<view class="title-card" @click="nusing">
<view class="card-top">
<view class="card-top-left">
32
0
</view>
<view class="card-top-right">
<image class="right-img" src="/static/index/card/arrow.png" />
@ -37,7 +37,7 @@
<view class="line">
</view>
<view class="line-gray">
60
0
</view>
</view>
@ -52,7 +52,7 @@
<view class="title-card" @click="nusing">
<view class="card-top" >
<view class="card-top-left">
65
{{hldyobj.hqlFinishedTotal}}
</view>
<view class="card-top-right">
<image class="right-img" src="/static/index/card/arrow.png" />
@ -61,7 +61,7 @@
<view class="line">
</view>
<view class="line-gray">
70
{{hldyobj.hqlTotal}}
</view>
</view>
@ -76,7 +76,7 @@
<view class="title-card-right" @click="jszlshow = true">
<view class="card-top">
<view class="card-top-left">
65
</view>
<view class="card-top-right">
<image class="right-img" src="/static/index/card/arrow.png" />
@ -98,18 +98,16 @@
即时服务指令
</view>
<view class="spiw">
<view v-for="(v,i) in ['护理','医疗','后勤']" :key="i" :class="i==0?'act':''">{{v}}</view>
<view v-for="(v,i) in ['护理','医疗','后勤']" :key="i" :class="i==fwzlindex?'act':''" @click="shtab(i)">{{v}}</view>
</view>
<scroll-view class="scrol" scroll-y="true">
<view v-for="(v,i) in 0" :key='i' :class="i==2?'act':''" class="cdk">
<image src="/static/qr.png" mode="aspectFill"></image>
<text>{{v}}</text>
<view v-for="(v,i) in fwzlarr" :key='i' :class="i==fwzldex?'act':''" class="cdk" @click="zldex(i)">
<image :src="fwzldex!=i?v.netImmediateFile:v.netPreviewFileSmall" mode="aspectFill"></image>
<text>{{v.directiveName}}</text>
</view>
<view style="width: 13vw;height: 13vw;margin: 7vw 0 0 23.5vw;display: block;background: none;">
<image src="/static/index/card/zw.png" mode="aspectFill" style="width:13vw;height: 13vw">
</image>
<view
style="width: 100%;text-align: center; font-weight: 400; font-size: 1.2vw;color: #555555;margin-top: -3vw;text-align: center;white-space: nowrap;">
<view style="width: 13vw;height: 13vw;margin: 7vw 0 0 23.5vw;display: block;background: none;" v-if="fwzlarr.length==0">
<image src="/static/index/card/zw.png" mode="aspectFill" style="width:13vw;height: 13vw"></image>
<view style="width: 100%;text-align: center; font-weight: 400; font-size: 1.2vw;color: #555555;margin-top: -3vw;text-align: center;white-space: nowrap;">
暂无服务指令
</view>
</view>
@ -123,8 +121,7 @@
</view>
<view class="mengban" v-if="jszlshow" @click="jszlshow = false"></view>
<view class="photo-father">
<view class="juzhong" style="margin-left: -30rpx;"
:style="indexmessage?.startTime?{}:{filter: `grayscale(60%)`}">
<view class="juzhong" style="margin-left: -30rpx;" :style="indexmessage?.startTime?{}:{filter: `grayscale(60%)`}">
<donghua :width="`1300rpx`" :height="`900rpx`" :links="blueArray" :playing="photoplay" :loop="true"
:interval="120" />
</view>
@ -149,8 +146,7 @@
</view>
</view>
<image class="big-img" v-if="topbuttontarget==0" :style="!indexmessage?.previewFile?'width: 450rpx':''"
:src="indexmessage?.previewFile? 'https://www.focusnu.com/media/upFiles/' + indexmessage?.previewFile: `/static/index/newindex/wendu/2.png`"
mode="aspectFill" />
:src="indexmessage?.previewFile? 'https://www.focusnu.com/media/upFiles/' + indexmessage?.previewFile: `/static/index/newindex/wendu/2.png`" mode="aspectFill"/>
<view style="display: flex;align-items: center;">
<view class="server-name" v-if="indexmessage?.startTime">
{{ indexmessage?.directiveName }}
@ -158,15 +154,12 @@
</view>
<view style="display: flex;margin-top: 40rpx;">
<view style="width: 240rpx;height: 90rpx;margin-right: 40rpx;">
<view :class="indexmessage?.izStart=='N'?'start-button':'end-button'"
v-show="indexmessage?.startTime" @click="start(indexmessage)">
<view :class="indexmessage?.izStart=='N'?'start-button':'end-button'" v-show="indexmessage?.startTime" @click="start(indexmessage)">
开始服务
</view>
</view>
<view style="width: 240rpx;height: 90rpx;">
<view
:class="(indexmessage?.izStart=='Y'&& indexmessage?.izFinish=='N')?'start-button':'end-button'"
v-show="indexmessage?.startTime" @click="end(indexmessage)">
<view :class="(indexmessage?.izStart=='Y'&& indexmessage?.izFinish=='N')?'start-button':'end-button'" v-show="indexmessage?.startTime" @click="end(indexmessage)">
结束服务
</view>
</view>
@ -175,26 +168,22 @@
</view>
<view class="left-menu" v-show="indexmessage?.startTime">
<view style="margin: 30rpx 0;" @click="errmsgclk(0,1)">
<view class="left-ball"
:style="indexmessage?.serviceContent!=''?'background-color: #fff;':'background-color:RGBA(228, 229, 231, 1);'">
<view class="left-ball" :style="indexmessage?.serviceContent!=''?'background-color: #fff;':'background-color:RGBA(228, 229, 231, 1);'">
<image class="left-menu-img" :src="'/static/index/newindex/leftmenu/left'+0+'.png'" />
</view>
</view>
<view style="margin: 30rpx 0;" @click="errmsgclk(1,1)">
<view class="left-ball"
:style="indexmessage?.mp3File!=''?'background-color: #fff;':'background-color:RGBA(228, 229, 231, 1);'">
<view class="left-ball" :style="indexmessage?.mp3File!=''?'background-color: #fff;':'background-color:RGBA(228, 229, 231, 1);'">
<image class="left-menu-img" :src="'/static/index/newindex/leftmenu/left'+1+'.png'" />
</view>
</view>
<view style="margin: 30rpx 0;" @click="errmsgclk(2,1)">
<view class="left-ball"
:style="indexmessage?.mp4File!=''?'background-color: #fff;':'background-color:RGBA(228, 229, 231, 1);'">
<view class="left-ball" :style="indexmessage?.mp4File!=''?'background-color: #fff;':'background-color:RGBA(228, 229, 231, 1);'">
<image class="left-menu-img" :src="'/static/index/newindex/leftmenu/left'+2+'.png'" />
</view>
</view>
<view v-for="(item,index) in [3,4]" :key="index" style="margin: 30rpx 0;" @click="errmsgclk(item,2)">
<view class="left-ball"
:style="indexmessage?.izStart=='Y'?'background-color: #fff;':'background-color:RGBA(228, 229, 231, 1);'">
<view class="left-ball" :style="indexmessage?.izStart=='Y'?'background-color: #fff;':'background-color:RGBA(228, 229, 231, 1);'">
<image class="left-menu-img" :src="'/static/index/newindex/leftmenu/left'+item+'.png'" />
</view>
</view>
@ -322,7 +311,7 @@
</view>
</view>
</view>
<view class="zzbqsmall guodu" @click.stop :class="tagtarget!=-1?'':'zzh0'">
<view class="zzbqsmall guodu" @click.stop :class="zzbqshow&&tagtarget!=-1?'':'zzh0'">
<view class="jbsmall" v-show="tagtarget!=-1" :style="{left:`${leftnumber}vw`}">
<image src="/static/index/card/bj.png" mode="aspectFill"></image>
</view>
@ -403,17 +392,16 @@
{{ topbuttontarget==1?`照片`:`录像` }}
</view>
</view>
<scroll-view scroll-y="true" class="photowall-other" scroll-with-animation enable-flex
v-if="topbuttontarget>0">
<scroll-view scroll-y="true" class="photowall-other" scroll-with-animation enable-flex v-if="topbuttontarget>0">
<view class="photowall-other" >
<view class="photowall-other-one" v-for="(item,index) in ilanarr" :key="index"
@click="previewImage(item,index,ilanarr)">
<view v-if="topbuttontarget==1"
style="width: 100%;height: 70%;border-radius: 30rpx;position: relative;">
<view v-if="topbuttontarget==1" style="width: 100%;height: 70%;border-radius: 30rpx;position: relative;">
<image style="width: 100%;height: 100%;border-radius: 30rpx;"
:src="item?serverUrl + item:'/static/ceshiyaoshan.png'" mode="aspectFill"
:lazy-load="true"/>
<view @click.stop="open=1;del(item,index)" style="width: 1.6vw;
<view @click.stop="open=1;del(item,index)"
style="width: 1.6vw;
height: 1.6vw;
z-index: 20;
position: absolute;
@ -423,18 +411,20 @@
display: flex;
justify-content: center;
border-radius: 50%;
align-items: center;" v-if="topbuttontarget>0&&(listobj.izStart=='Y'&& listobj.izFinish=='N')">
<image src="/static/index/warehouse/procurement/x.png" mode="aspectFill" style="width: 1.4vw;
align-items: center;"
v-if="topbuttontarget>0&&(listobj.izStart=='Y'&& listobj.izFinish=='N')">
<image src="/static/index/warehouse/procurement/x.png" mode="aspectFill"
style="width: 1.4vw;
height: 1.4vw;"></image>
</view>
</view>
<view v-if="topbuttontarget==2"
style="width: 100%;height: 70%;border-radius: 30rpx ;position: relative;"
@click="clik(serverUrl + item)">
<view v-if="topbuttontarget==2" style="width: 100%;height: 70%;border-radius: 30rpx ;position: relative;" @click="clik(serverUrl + item)">
<video style="width: 100%;height: 100%;border-radius: 30rpx;" :id="'myVideo'+index"
:src="servervideoUrl+item" mode="aspectFill"></video>
:src="servervideoUrl+item"
mode="aspectFill" ></video>
<view @click.stop="ilanarr.splice(index,1)"
v-if="topbuttontarget>0&&(listobj.izStart=='Y'&& listobj.izFinish=='N')" style="width: 1.6vw;
v-if="topbuttontarget>0&&(listobj.izStart=='Y'&& listobj.izFinish=='N')"
style="width: 1.6vw;
height: 1.6vw;
z-index: 20;
position: absolute;
@ -445,7 +435,8 @@
justify-content: center;
border-radius: 50%;
align-items: center;">
<image src="/static/index/warehouse/procurement/x.png" mode="aspectFill" style="width: 1.4vw;
<image src="/static/index/warehouse/procurement/x.png" mode="aspectFill"
style="width: 1.4vw;
height: 1.4vw;"></image>
</view>
</view>
@ -466,8 +457,7 @@
</text>
</view> -->
</view>
<view class="photowall-other-one"
v-if="topbuttontarget>0&&(listobj.izStart=='Y'&& listobj.izFinish=='N')">
<view class="photowall-other-one" v-if="topbuttontarget>0&&(listobj.izStart=='Y'&& listobj.izFinish=='N')">
<view style="width: 100%;height: 71%;display: flex;flex-direction: column;
justify-content: center;align-items: center;position: absolute;top:0vw;left: 0;
background-color:#fafdff ;border: 1rpx solid #78B1EB;border-radius: 30rpx;" @click="uplod(1)">
@ -487,10 +477,8 @@
</view> -->
</view>
</scroll-view>
<view style="position: absolute;right: 2vw;bottom: 0.8vw;height: 4vw;"
v-if="topbuttontarget>0&&(listobj.izStart=='Y'&& listobj.izFinish=='N')">
<button type="primary" style="width: 9vw; position: absolute;right: 0vw;bottom: 0.vw;"
@click="submit">确定</button>
<view style="position: absolute;right: 2vw;bottom: 0.8vw;height: 4vw;" v-if="topbuttontarget>0&&(listobj.izStart=='Y'&& listobj.izFinish=='N')">
<button type="primary" style="width: 9vw; position: absolute;right: 0vw;bottom: 0.vw;" @click="submit" >确定</button>
</view>
</view>
<tanchuang :show="open==1" font="是否删除此图片" @back="open = 0" @right="del1()"> </tanchuang>
@ -502,7 +490,7 @@
<script setup lang="ts">
import { ref, onMounted, onBeforeUnmount, computed, nextTick, watch ,reactive} from 'vue';
import { queryPadPageList } from '@/pages/watch/api/lunpan.js'
import { queryWorkOrderList } from './api.js'
import { queryWorkOrderList,queryCountByType,queryAll } from './api.js'
// import {startOrder,endOrder} from './doctorask/api/api.js'
import {queryOrderList,queryOrderInfoList,startOrder,endOrder,editSubPicPath,editSubMp4} from '../component/doctorask/api/api.js'
import { getNclist } from "./nurse/api.js";
@ -744,10 +732,60 @@
uni.setStorageSync('nuName', data.nuName);
uni.setStorageSync('elderId', data.elderInfo ? data.elderInfo?.id : null);
uni.setStorageSync('NUall', data);
console.log(data.nuId)
firstgetqueryCgdList(data.nuId);
hlylhq(data.nuId,data.elderInfo?.id)
zlfunc(data.nuId,data.elderInfo?.id)
emit('swip')
}
const hldyobj = ref({})
const hlylhq = (nuId,elderId)=>{
let data = {
nuId:nuId,
elderId:elderId
}
queryCountByType(data).then(res=>{
console.log(res)
hldyobj.value = res.result
})
}
const fwzlindex = ref(0);
const fwzldex = ref(-1);
const fwzlarr = ref(0);
const zlarr = ref({});
const zlfunc = (nuId,elderId)=>{
let data = {
nuId:nuId,
elderId:elderId
}
queryAll(data).then(res=>{
console.log(res)
zlarr.value = res.result;
shtab(fwzlindex.value)
})
}
const shtab = (e)=>{
fwzlindex.value = e;
if(e==0){
fwzlarr.value = zlarr.value.care
}
if(e==1){
fwzlarr.value = [];
}
if(e==2){
fwzlarr.value = zlarr.value.logistics
}
}
const zldex = (e) =>{
if(e>-1&&e==fwzldex.value){
fwzldex.value = -1
}else{
fwzldex.value = e
}
}
const subitshowing = () =>{
jszlshow.value = false
}
function calcAge(dateOfBirth : string) {
const birthYear = parseInt(dateOfBirth?.slice(0, 4), 10);
@ -786,8 +824,7 @@
}else{
}
})
}
})}
}
//
@ -919,12 +956,12 @@
}
const indexmessage = ref({});
const getgif = () => {
let data = {
nuId: uni.getStorageSync('NUall').nuId,
employeeId: uni.getStorageSync('userInfo').employessId,
workType: 5
}
console.log("看看图", data)
// let data = {
// nuId: uni.getStorageSync('NUall').nuId,
// employeeId: uni.getStorageSync('userInfo').employessId,
// workType: 5
// }
// queryWorkOrderList(data).then((res : any) => {
// console.log("",res)
// indexmessage.value = res.result.records[0];
@ -968,6 +1005,7 @@
if (uni.getStorageSync('nuId') && uni.getStorageSync('elderId')) {
emotionTagList.value = [];
bodyTagList.value = [];
zzbqshow.value = true;
getNclist(uni.getStorageSync('nuId'), uni.getStorageSync('elderId')).then((res : any) => {
res.result.emotionTagList.forEach(item=>{
if(item.izSelected == 'Y'){
@ -979,7 +1017,6 @@
bodyTagList.value.push(item)
}
})
zzbqshow.value = true;
// emotionTagList.value = res.result.emotionTagList;
// bodyTagList.value = res.result.bodyTagList;
console.log(res.result)
@ -1059,12 +1096,41 @@
</script>
<style scoped lang="less">
.jbsmall {
position: absolute;
width: 2.2vw;
height: 1.1vw;
top: -1vw;
left: 2.2vw;
z-index: 220;
transition: left 0.3s;
image {
width: 100%;
height: 100%;
}
}
.zzbqsmall {
width: 18vw;
// height: 6vw;
background: #FFFFFF;
box-shadow: 0rpx 0rpx 0.5vw 0rpx rgba(136, 148, 167, 0.19);
border-radius: 1.2vw;
right: -0.8vw;
top: 15vw;
position: absolute;
z-index: 200;
display: flex;
// padding: 1.6vw 1.6vw 0;
padding: 1vw 2vw;
color: black;
font-size: 1vw;
}
.index-content-right {
width: 19.5vw;
margin-left: 2vw;
height: 100%;
transition: opacity 1s ease;
.right-time{
margin-top: 80rpx;
width: 100%;
@ -1075,18 +1141,15 @@
flex-direction: column;
justify-content: center;
padding-left: 30rpx;
.time-top{
display: flex;
align-items: center;
font-size: 1.1vw;
.time-big{
font-size: 3.5vw;
font-weight: 600;
margin-right: 10rpx;
}
.time-week{
font-weight: 600;
}
@ -1799,7 +1862,6 @@
color: #888888;
font-size: 25rpx;
}
.mengban {
width: 100vw;
height: 100vh;
@ -1809,7 +1871,6 @@
z-index: 100;
background: RGBA(239, 240, 244, 0.55);
}
.photowall {
position: fixed;
top: 54%;
@ -1823,7 +1884,6 @@
z-index: 9990;
box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.1);
padding: 0 90rpx;
.photowall-title {
margin-top: 50rpx;
display: flex;
@ -1852,7 +1912,6 @@
display: flex;
margin-top: 20rpx;
flex-wrap: wrap;
.photowall-other-one {
width: 22vw;
height: 430rpx;
@ -1861,7 +1920,6 @@
border-radius: 30rpx;
display:flex;
position: relative;
video{
width: 100%;
height: 100%;
@ -1869,19 +1927,16 @@
}
}
}
.guodu {
transition: .4s;
-webkit-transform-style: preserve-3d;
-webkit-overflow-scrolling: touch;
}
.jsh0{
height: 0vw !important;
padding: 0 2vw !important;
top: 9.4vw !important;
}
.jszl{
width: 64.5vw;
height: 44vw;
@ -1894,7 +1949,6 @@
z-index: 200;
padding: 2vw;
overflow: hidden;
.submit{
width: 100%;
height: 3.2vw;
@ -1902,12 +1956,10 @@
padding-right: 2vw;
display: flex;
justify-content: flex-end;
view{
display: flex;
justify-content: center;
align-items: center;
&:nth-child(1){
width: 7.1vw;
height: 3.2vw;
@ -1918,7 +1970,6 @@
font-size: 1.4vw;
color: #555555;
}
&:nth-child(2){
width: 7.1vw;
height: 3.2vw;
@ -1932,7 +1983,6 @@
}
}
}
.scrol{
width: 110%;
height: 30vw;
@ -1948,13 +1998,11 @@
display: inline-block;
border: 1px solid #F8F8F8;
text-align: center;
image{
width: 2vw;
height: 2vw;
margin: 1.4vw auto 0vw;
}
text{
display: block;
text-align: center;
@ -1964,24 +2012,20 @@
width: 100%;
}
}
.act{
background: #F2F8FF;
border: 1px solid rgba(1,125,233,0.43);
text{
color: #017DE9;
}
}
}
.spiw{
width: 14vw;
height: 2vw;
display: flex;
justify-content: space-around;
margin-top: 2.5vw;
view{
font-weight: 400;
font-size: 1.3vw;
@ -1989,12 +2033,10 @@
position: relative;
line-height: 1.5vw;
}
.act{
color: #222222 !important;
font-weight: 500;
}
.act::after{
width: 50%;
height: 0.2vw;
@ -2006,7 +2048,6 @@
left: 25%;
}
}
.tittop{
height: 2vw;
font-weight: 400;
@ -2014,7 +2055,6 @@
color: #333333;
display: flex;
align-items: center;
view{
width: 0.4vw;
height: 1.2vw;
@ -2024,7 +2064,6 @@
}
}
}
.bianj{
position: absolute;
width: 2.2vw;
@ -2032,48 +2071,28 @@
top: 9.68vw;
right: 2.5vw;
z-index: 220;
image{
width: 100%;
height: 100%;
}
}
.jb{
position: absolute;
width: 2.2vw;
height: 1.1vw;
top: 2.7vw;
right: 1.5vw;
z-index: 220;
z-index: 201;
image{
width: 100%;
height: 100%;
}
}
.jbsmall {
position: absolute;
width: 2.2vw;
height: 1.1vw;
top: -1vw;
left: 2.2vw;
z-index: 220;
transition: left 0.3s;
image {
width: 100%;
height: 100%;
}
}
.zzh0{
height: 0vw !important;
padding: 0 1.6vw !important;
top: 2.7vw !important;
// top: 2.7vw !important;
}
.zzbq{
width: 18vw;
height: 10vw;
@ -2086,25 +2105,20 @@
z-index: 200;
display: flex;
padding: 1.6vw 1.6vw 0;
.carfd{
width: 7.4vw;
height: 100%;
.tg{
width: 100%;
display: flex;
justify-content: space-around;
margin-top: 1vw;
view{
width: 1.8vw;
image{
width: 1.8vw;
height: 1.8vw;
}
text{
font-weight: 400;
font-size: 0.8vw;
@ -2121,7 +2135,6 @@
color: #333333;
display: flex;
align-items: center;
view{
width: 0.4vw;
height: 1.2vw;
@ -2132,21 +2145,4 @@
}
}
}
.zzbqsmall {
width: 18vw;
// height: 6vw;
background: #FFFFFF;
box-shadow: 0rpx 0rpx 0.5vw 0rpx rgba(136, 148, 167, 0.19);
border-radius: 1.2vw;
right: -0.8vw;
top: 15vw;
position: absolute;
z-index: 200;
display: flex;
// padding: 1.6vw 1.6vw 0;
padding: 1vw 2vw;
color: black;
font-size: 1vw;
}
</style>

View File

@ -85,10 +85,14 @@
const scoltop =(e)=>{
if(e==0){
scrolltop.value = topsc.value;
nextTick(()=>{
scrolltop.value = 0;
})
}else{
scrolltop.value = topsc.value;
nextTick(()=>{
scrolltop.value = 999;
})
}
}
const codesc = ref(0)

View File

@ -4,7 +4,7 @@
<view class="title-card">
<view class="card-top">
<view class="card-top-left">
15
{{hldyobj.cklFinishedTotal}}
</view>
<view class="card-top-right">
<image class="right-img" src="/static/index/card/arrow.png" />
@ -13,7 +13,7 @@
<view class="line">
</view>
<view class="line-gray">
70
{{hldyobj.cklTotal}}
</view>
</view>
@ -29,7 +29,7 @@
<view class="title-card-right" @click="jszlshow = true">
<view class="card-top">
<view class="card-top-left">
65
</view>
<view class="card-top-right">
<image class="right-img" src="/static/index/card/arrow.png" />
@ -54,11 +54,11 @@
<view v-for="(v,i) in ['库房']" :key="i" :class="i==0?'act':''">{{v}}</view>
</view>
<scroll-view class="scrol" scroll-y="true">
<view v-for="(v,i) in 1" :key='i' :class="i==2?'act':''" class="cdk">
<image src="/static/qr.png" mode="aspectFill"></image>
<text>{{v}}</text>
<view v-for="(v,i) in zlarr" :key='i' :class="i==fwzldex?'act':''" class="cdk" @click="zldex(i)">
<image :src="fwzldex!=i?v.netImmediateFile:v.netPreviewFileSmall" mode="aspectFill"></image>
<text>{{v.directiveName}}</text>
</view>
<view style="width: 13vw;height: 13vw;margin: 7vw 0 0 23.5vw;display: block;background: none;">
<view style="width: 13vw;height: 13vw;margin: 7vw 0 0 23.5vw;display: block;background: none;" v-if="zlarr.length==0">
<image src="/static/index/card/zw.png" mode="aspectFill" style="width:13vw;height: 13vw"></image>
<view style="width: 100%;text-align: center; font-weight: 400; font-size: 1.2vw;color: #555555;margin-top: -3vw;text-align: center;white-space: nowrap;">
暂无服务指令
@ -277,6 +277,7 @@
<script setup lang="ts">
import { ref, onMounted, onBeforeUnmount, computed, nextTick, watch } from 'vue';
import { queryPadPageList } from '@/pages/watch/api/lunpan.js'
import { queryWorkOrderList,queryCountByType,queryAll } from '@/pages/NursingNew/component/api.js'
const jszlshow = ref(false)
const props = defineProps({
isShow: {
@ -299,6 +300,41 @@
console.log(uni.getStorageSync('elderId'),uni.getStorageSync('nuId'),data.elderInfo)
uni.setStorageSync('NUall', data);
emit('swip')
hlylhq(data.nuId )
zlfunc(data.nuId )
}
const hldyobj = ref({})
const hlylhq = (nuId)=>{
let data = {
nuId:nuId
}
queryCountByType(data).then(res=>{
console.log(res)
hldyobj.value = res.result
})
}
const fwzlindex = ref(0);
const fwzldex = ref(-1);
const zlarr = ref({});
const zlfunc = (nuId)=>{
let data = {
nuId:nuId,
elderId:elderId
}
queryAll(data).then(res=>{
console.log(res)
zlarr.value = res.result.invoicing;
})
}
const zldex = (e) =>{
if(e>-1&&e==fwzldex.value){
fwzldex.value = -1
}else{
fwzldex.value = e
}
}
const subitshowing = () =>{
jszlshow.value = false
}
const tagarray = ["市医保", "半失能", "正常计费"]

View File

@ -25,9 +25,9 @@ export const updateBaseInfo = (params) => {
})
}
// 改头像
export const userEdit = (params) => {
export const editAvatar = (params) => {
return request({
url: `${uni.getStorageSync('serverUrl')}/sys/user/login/setting/userEdit`,
url: `${uni.getStorageSync('serverUrl')}/sys/user/login/setting/editAvatar`,
method: 'post',
data: params,
})

View File

@ -120,7 +120,7 @@
import { getServiceTree0, getServiceTree1, getServiceTree2 } from '@/pages/NursingNew/component/nurse/api.js'
import { getLoginCode, loginApp } from '@/pages/login/api.js'
import {userEdit} from './api.js'
import {editAvatar} from './api.js'
const zyupgrade = ref(null);
const issay = ref(false)
const openany = ref(false);
@ -190,7 +190,7 @@
userInfo.value = uni.getStorageSync('userInfo');
}
const avaxg = () =>{
userEdit({avatar:userInfo.value.avatar,id:userInfo.value.id}).then(res=>{
editAvatar({avatar:userInfo.value.avatar,id:userInfo.value.id}).then(res=>{
console.log(res)
if(res.success){
uni.setStorageSync('userInfo', userInfo.value);