合并代码

This commit is contained in:
Teng 2026-01-08 13:55:19 +08:00
parent 8dff871122
commit a51c74e58a
2 changed files with 2156 additions and 1993 deletions

View File

@ -50,7 +50,7 @@
</view> </view>
</view> </view>
<view class="title-card" @click="nusing"> <view class="title-card" @click="nusing">
<view class="card-top" > <view class="card-top">
<view class="card-top-left"> <view class="card-top-left">
65 65
</view> </view>
@ -106,13 +106,15 @@
<text>{{v}}</text> <text>{{v}}</text>
</view> </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;">
<image src="/static/index/card/zw.png" mode="aspectFill" style="width:13vw;height: 13vw"></image> <image src="/static/index/card/zw.png" mode="aspectFill" style="width:13vw;height: 13vw">
<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;"> </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>
</view> </view>
</scroll-view> </scroll-view>
<view class="submit" > <view class="submit">
<view @click.stop="jszlshow = false">取消</view> <view @click.stop="jszlshow = false">取消</view>
<view @click="subitshowing">确定</view> <view @click="subitshowing">确定</view>
</view> </view>
@ -121,7 +123,8 @@
</view> </view>
<view class="mengban" v-if="jszlshow" @click="jszlshow = false"></view> <view class="mengban" v-if="jszlshow" @click="jszlshow = false"></view>
<view class="photo-father"> <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" <donghua :width="`1300rpx`" :height="`900rpx`" :links="blueArray" :playing="photoplay" :loop="true"
:interval="120" /> :interval="120" />
</view> </view>
@ -146,7 +149,8 @@
</view> </view>
</view> </view>
<image class="big-img" v-if="topbuttontarget==0" :style="!indexmessage?.previewFile?'width: 450rpx':''" <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 style="display: flex;align-items: center;">
<view class="server-name" v-if="indexmessage?.startTime"> <view class="server-name" v-if="indexmessage?.startTime">
{{ indexmessage?.directiveName }} {{ indexmessage?.directiveName }}
@ -154,12 +158,15 @@
</view> </view>
<view style="display: flex;margin-top: 40rpx;"> <view style="display: flex;margin-top: 40rpx;">
<view style="width: 240rpx;height: 90rpx;margin-right: 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> </view>
<view style="width: 240rpx;height: 90rpx;"> <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>
</view> </view>
@ -168,22 +175,26 @@
</view> </view>
<view class="left-menu" v-show="indexmessage?.startTime"> <view class="left-menu" v-show="indexmessage?.startTime">
<view style="margin: 30rpx 0;" @click="errmsgclk(0,1)"> <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'" /> <image class="left-menu-img" :src="'/static/index/newindex/leftmenu/left'+0+'.png'" />
</view> </view>
</view> </view>
<view style="margin: 30rpx 0;" @click="errmsgclk(1,1)"> <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'" /> <image class="left-menu-img" :src="'/static/index/newindex/leftmenu/left'+1+'.png'" />
</view> </view>
</view> </view>
<view style="margin: 30rpx 0;" @click="errmsgclk(2,1)"> <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'" /> <image class="left-menu-img" :src="'/static/index/newindex/leftmenu/left'+2+'.png'" />
</view> </view>
</view> </view>
<view v-for="(item,index) in [3,4]" :key="index" style="margin: 30rpx 0;" @click="errmsgclk(item,2)"> <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'" /> <image class="left-menu-img" :src="'/static/index/newindex/leftmenu/left'+item+'.png'" />
</view> </view>
</view> </view>
@ -215,7 +226,7 @@
@click="scrollTop > (55* rightMenu.length) ? scrollTop = (55* rightMenu.length) : scrollTop += 115 " /> @click="scrollTop > (55* rightMenu.length) ? scrollTop = (55* rightMenu.length) : scrollTop += 115 " />
</view> </view>
</view> </view>
<errorshow :show="openerror" :font="errmsg" @close="openerror=false" :icons="false" style="left: 44%;"/> <errorshow :show="openerror" :font="errmsg" @close="openerror=false" :icons="false" style="left: 44%;" />
<view class="index-content-right" :style="transition?{opacity: `1`}:{opacity: `0`}"> <view class="index-content-right" :style="transition?{opacity: `1`}:{opacity: `0`}">
<view class="right-time"> <view class="right-time">
<view class="time-top"> <view class="time-top">
@ -271,13 +282,13 @@
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
<view class="mengban" v-if="zzbqshow" @click="zzbqshow = false"></view> <view class="mengban" v-if="zzbqshow" @click="zzbqshow = false;tagtarget=-1"></view>
<view class="right-bottom"> <view class="right-bottom">
<view class="bottom-title"> <view class="bottom-title">
<image class="bottom-carmera" src="/static/index/newindex/leftmenu/carmera.png" @click="gotolook" /> <image class="bottom-carmera" src="/static/index/newindex/leftmenu/carmera.png" @click="gotolook" />
<view class="blue-button" @click="geteverything()"> <view class="blue-button" @click="geteverything()">
长者标签 长者标签
<view class="jb" > <view class="jb" v-show="zzbqshow">
<image src="/static/index/card/bj.png" mode="aspectFill"></image> <image src="/static/index/card/bj.png" mode="aspectFill"></image>
</view> </view>
<view class="zzbq guodu" @click.stop :class="zzbqshow?'':'zzh0'"> <view class="zzbq guodu" @click.stop :class="zzbqshow?'':'zzh0'">
@ -287,11 +298,13 @@
体重标签 体重标签
</view> </view>
<view class="tg" style="border-right: 1px solid rgba(238, 238, 238, 1);"> <view class="tg" style="border-right: 1px solid rgba(238, 238, 238, 1);">
<view v-for="(v,i) in emotionTagList" :key='i'> <view v-for="(v,i) in emotionTagList" :key='i' @click="clicktag(v,i)">
<image :src="v.netPic" mode="aspectFill"></image> <image :src="v.netPic" mode="aspectFill"></image>
<text>{{v.tagName}}</text> <text>{{v.tagName}}</text>
</view> </view>
<image src="/static/index/card/zanw.png" mode="aspectFill" v-if="emotionTagList.length==0" style="width: 5.4vw;height: 5.4vw;margin-top: -0.7vw;"></image> <image src="/static/index/card/zanw.png" mode="aspectFill"
v-if="emotionTagList.length==0"
style="width: 5.4vw;height: 5.4vw;margin-top: -0.7vw;"></image>
</view> </view>
</view> </view>
<view class="carfd" v-if="zzbqshow"> <view class="carfd" v-if="zzbqshow">
@ -300,14 +313,21 @@
情绪标签 情绪标签
</view> </view>
<view class="tg"> <view class="tg">
<view v-for="(v,i) in bodyTagList" :key='i'> <view v-for="(v,i) in bodyTagList" :key='i' @click="clicktag(v,i+2)">
<image :src="v.netPic" mode="aspectFill"></image> <image :src="v.netPic" mode="aspectFill"></image>
<text>{{v.tagName}}</text> <text>{{v.tagName}}</text>
</view> </view>
<image src="/static/index/card/zanw.png" mode="aspectFill" v-if="bodyTagList.length==0" style="width: 5.4vw;height: 5.4vw;margin-top: -0.7vw;"></image> <image src="/static/index/card/zanw.png" mode="aspectFill" v-if="bodyTagList.length==0"
style="width: 5.4vw;height: 5.4vw;margin-top: -0.7vw;"></image>
</view> </view>
</view> </view>
</view> </view>
<view class="zzbqsmall guodu" @click.stop :class="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>
{{ tagtarget==-1?'':detail }}
</view>
</view> </view>
</view> </view>
@ -331,10 +351,10 @@
<view class="bottom-tags"> <view class="bottom-tags">
{{ uni.getStorageSync('NUall').elderInfo?.yblxName }} {{ uni.getStorageSync('NUall').elderInfo?.yblxName }}
</view> </view>
<view class="bottom-tags" v-show="uni.getStorageSync('NUall').elderInfo?.sndjName" > <view class="bottom-tags" v-show="uni.getStorageSync('NUall').elderInfo?.sndjName">
{{ uni.getStorageSync('NUall').elderInfo?.sndjName }} {{ uni.getStorageSync('NUall').elderInfo?.sndjName }}
</view> </view>
<view class="bottom-tags" > <view class="bottom-tags">
{{ uni.getStorageSync('NUall').elderInfo?.jfztName }} {{ uni.getStorageSync('NUall').elderInfo?.jfztName }}
</view> </view>
</view> </view>
@ -383,16 +403,17 @@
{{ topbuttontarget==1?`照片`:`录像` }} {{ topbuttontarget==1?`照片`:`录像` }}
</view> </view>
</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
<view class="photowall-other" > v-if="topbuttontarget>0">
<view class="photowall-other">
<view class="photowall-other-one" v-for="(item,index) in ilanarr" :key="index" <view class="photowall-other-one" v-for="(item,index) in ilanarr" :key="index"
@click="previewImage(item,index,ilanarr)"> @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;" <image style="width: 100%;height: 100%;border-radius: 30rpx;"
:src="item?serverUrl + item:'/static/ceshiyaoshan.png'" mode="aspectFill" :src="item?serverUrl + item:'/static/ceshiyaoshan.png'" mode="aspectFill"
:lazy-load="true"/> :lazy-load="true" />
<view @click.stop="open=1;del(item,index)" <view @click.stop="open=1;del(item,index)" style="width: 1.6vw;
style="width: 1.6vw;
height: 1.6vw; height: 1.6vw;
z-index: 20; z-index: 20;
position: absolute; position: absolute;
@ -402,20 +423,18 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
border-radius: 50%; border-radius: 50%;
align-items: center;" align-items: center;" v-if="topbuttontarget>0&&(listobj.izStart=='Y'&& listobj.izFinish=='N')">
v-if="topbuttontarget>0&&(listobj.izStart=='Y'&& listobj.izFinish=='N')"> <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> height: 1.4vw;"></image>
</view> </view>
</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" <video style="width: 100%;height: 100%;border-radius: 30rpx;" :id="'myVideo'+index"
:src="servervideoUrl+item" :src="servervideoUrl+item" mode="aspectFill"></video>
mode="aspectFill" ></video>
<view @click.stop="ilanarr.splice(index,1)" <view @click.stop="ilanarr.splice(index,1)"
v-if="topbuttontarget>0&&(listobj.izStart=='Y'&& listobj.izFinish=='N')" v-if="topbuttontarget>0&&(listobj.izStart=='Y'&& listobj.izFinish=='N')" style="width: 1.6vw;
style="width: 1.6vw;
height: 1.6vw; height: 1.6vw;
z-index: 20; z-index: 20;
position: absolute; position: absolute;
@ -426,8 +445,7 @@
justify-content: center; justify-content: center;
border-radius: 50%; border-radius: 50%;
align-items: center;"> align-items: center;">
<image src="/static/index/warehouse/procurement/x.png" mode="aspectFill" <image src="/static/index/warehouse/procurement/x.png" mode="aspectFill" style="width: 1.4vw;
style="width: 1.4vw;
height: 1.4vw;"></image> height: 1.4vw;"></image>
</view> </view>
</view> </view>
@ -448,7 +466,8 @@
</text> </text>
</view> --> </view> -->
</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; <view style="width: 100%;height: 71%;display: flex;flex-direction: column;
justify-content: center;align-items: center;position: absolute;top:0vw;left: 0; 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)"> background-color:#fafdff ;border: 1rpx solid #78B1EB;border-radius: 30rpx;" @click="uplod(1)">
@ -468,8 +487,10 @@
</view> --> </view> -->
</view> </view>
</scroll-view> </scroll-view>
<view style="position: absolute;right: 2vw;bottom: 0.8vw;height: 4vw;" v-if="topbuttontarget>0&&(listobj.izStart=='Y'&& listobj.izFinish=='N')"> <view style="position: absolute;right: 2vw;bottom: 0.8vw;height: 4vw;"
<button type="primary" style="width: 9vw; position: absolute;right: 0vw;bottom: 0.vw;" @click="submit" >确定</button> 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>
</view> </view>
<tanchuang :show="open==1" font="是否删除此图片" @back="open = 0" @right="del1()"> </tanchuang> <tanchuang :show="open==1" font="是否删除此图片" @back="open = 0" @right="del1()"> </tanchuang>
@ -479,18 +500,18 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, onMounted, onBeforeUnmount, computed, nextTick, watch ,reactive} from 'vue'; import { ref, onMounted, onBeforeUnmount, computed, nextTick, watch, reactive } from 'vue';
import { queryPadPageList } from '@/pages/watch/api/lunpan.js' import { queryPadPageList } from '@/pages/watch/api/lunpan.js'
import { queryWorkOrderList } from './api.js' import { queryWorkOrderList } from './api.js'
// import {startOrder,endOrder} from './doctorask/api/api.js' // import {startOrder,endOrder} from './doctorask/api/api.js'
import {queryOrderList,queryOrderInfoList,startOrder,endOrder,editSubPicPath,editSubMp4} from '../component/doctorask/api/api.js' import { queryOrderList, queryOrderInfoList, startOrder, endOrder, editSubPicPath, editSubMp4 } from '../component/doctorask/api/api.js'
import { getNclist } from "./nurse/api.js"; import { getNclist } from "./nurse/api.js";
const form = reactive({ const form = reactive({
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
employeeId:uni.getStorageSync('userInfo').employessId, employeeId: uni.getStorageSync('userInfo').employessId,
nuId:uni.getStorageSync('nuId') nuId: uni.getStorageSync('nuId')
}) })
const plsbuy = ref([]) const plsbuy = ref([])
@ -500,9 +521,9 @@
queryOrderList(form).then(res => { queryOrderList(form).then(res => {
console.log(res) console.log(res)
// plsbuy.value.push(...res.result.records); // plsbuy.value.push(...res.result.records);
if(res.result.records.length>0){ if (res.result.records.length > 0) {
clickLeftMenu(0,res.result.records[0]) clickLeftMenu(0, res.result.records[0])
}else{ } else {
indexmessage.value = []; indexmessage.value = [];
} }
}) })
@ -510,9 +531,9 @@
const clickLeftMenu = (index : any, item : object) => { const clickLeftMenu = (index : any, item : object) => {
queryOrderInfoList({ mainId: item.id }).then(res => { queryOrderInfoList({ mainId: item.id }).then(res => {
console.log(res) console.log(res)
if(res.result.length>0){ if (res.result.length > 0) {
indexmessage.value = res.result[0] indexmessage.value = res.result[0]
}else{ } else {
indexmessage.value = []; indexmessage.value = [];
} }
}) })
@ -523,19 +544,19 @@
const ilanarr = ref([]); const ilanarr = ref([]);
const listobj = ref({}); const listobj = ref({});
const ysptp = (v,i,r) =>{ const ysptp = (v, i, r) => {
// v.manuallyPicPath // v.manuallyPicPath
if(r == 1&&v.manuallyPicPath){ if (r == 1 && v.manuallyPicPath) {
ilanarr.value = v.manuallyPicPath.split(","); ilanarr.value = v.manuallyPicPath.split(",");
ilanarr.value = ilanarr.value.filter(item => item !== ''); ilanarr.value = ilanarr.value.filter(item => item !== '');
}else if(r == 2&&v.manuallyMp4Path){ } else if (r == 2 && v.manuallyMp4Path) {
ilanarr.value = v.manuallyMp4Path.split(","); ilanarr.value = v.manuallyMp4Path.split(",");
ilanarr.value = ilanarr.value.filter(item => item !== ''); ilanarr.value = ilanarr.value.filter(item => item !== '');
}else if(r == 3&&v.tplinkPath){ } else if (r == 3 && v.tplinkPath) {
ilanarr.value = v.tplinkPath.split(","); ilanarr.value = v.tplinkPath.split(",");
ilanarr.value = ilanarr.value.filter(item => item !== ''); ilanarr.value = ilanarr.value.filter(item => item !== '');
} }
else{ else {
ilanarr.value = []; ilanarr.value = [];
} }
@ -544,7 +565,7 @@
donghuaopo.value = true; donghuaopo.value = true;
} }
const uplod = (v) => { const uplod = (v) => {
if(topbuttontarget.value==1){ if (topbuttontarget.value == 1) {
uni.chooseImage({ uni.chooseImage({
count: 1, //9 count: 1, //9
sizeType: ['compressed'], // sizeType: ['compressed'], //
@ -562,10 +583,10 @@
}) })
} }
}); });
}else{ } else {
uni.chooseVideo({ uni.chooseVideo({
sourceType: ['camera' ], sourceType: ['camera'],
success: (e)=> { success: (e) => {
uni.compressVideo({ uni.compressVideo({
src: e.tempFilePath, src: e.tempFilePath,
quality: 60, quality: 60,
@ -589,9 +610,9 @@
url: uni.getStorageSync('serverUrl') + '/sys/common/upload', url: uni.getStorageSync('serverUrl') + '/sys/common/upload',
filePath: e, filePath: e,
name: 'file', name: 'file',
fileType:topbuttontarget.value==2?'video':'image', fileType: topbuttontarget.value == 2 ? 'video' : 'image',
formData: { formData: {
biz: year + '/' + month + (topbuttontarget.value==1?'/fwxm/manuallyPicPath':'/fwxm/manuallyMp4Path') biz: year + '/' + month + (topbuttontarget.value == 1 ? '/fwxm/manuallyPicPath' : '/fwxm/manuallyMp4Path')
}, },
header: { header: {
'X-Access-Token': uni.getStorageSync('token') 'X-Access-Token': uni.getStorageSync('token')
@ -606,31 +627,31 @@
} }
}) })
} }
const submit = ()=>{ const submit = () => {
let sub = ""; let sub = "";
ilanarr.value.forEach(item=>{ ilanarr.value.forEach(item => {
sub+=item+',' sub += item + ','
}) })
if(topbuttontarget.value == 1){ if (topbuttontarget.value == 1) {
editSubPicPath({id:listobj.value.id,manuallyPicPath:sub}).then(res=>{ editSubPicPath({ id: listobj.value.id, manuallyPicPath: sub }).then(res => {
if(res.success){ if (res.success) {
topbuttontarget.value = 0; topbuttontarget.value = 0;
donghuaopo.value = false; donghuaopo.value = false;
clickLeftMenu(lefttarget.value,plsbuy.value[lefttarget.value]) clickLeftMenu(lefttarget.value, plsbuy.value[lefttarget.value])
} }
}) })
}else{ } else {
editSubMp4({id:listobj.value.id,manuallyMp4Path:sub}).then(res=>{ editSubMp4({ id: listobj.value.id, manuallyMp4Path: sub }).then(res => {
if(res.success){ if (res.success) {
topbuttontarget.value = 0; topbuttontarget.value = 0;
donghuaopo.value = false; donghuaopo.value = false;
clickLeftMenu(lefttarget.value,plsbuy.value[lefttarget.value]) clickLeftMenu(lefttarget.value, plsbuy.value[lefttarget.value])
} }
}) })
} }
} }
const previewImage = (v, i, arr) => { const previewImage = (v, i, arr) => {
if(topbuttontarget.value == 1){ if (topbuttontarget.value == 1) {
let u = [] let u = []
arr.forEach(e => { arr.forEach(e => {
u.push(serverUrl.value + e) u.push(serverUrl.value + e)
@ -647,16 +668,16 @@
} }
} }
const videoContext = ref(null) const videoContext = ref(null)
const play = (e,i)=>{ const play = (e, i) => {
videoContext.value = uni.createVideoContext('myVideo'+i); videoContext.value = uni.createVideoContext('myVideo' + i);
videoContext.value.play() videoContext.value.play()
} }
const pici = ref(0); const pici = ref(0);
const del = (v,i) =>{ const del = (v, i) => {
pici.value = i; pici.value = i;
} }
const del1=()=>{ const del1 = () => {
ilanarr.value.splice(pici.value,1); ilanarr.value.splice(pici.value, 1);
open.value = 0 open.value = 0
} }
// //
@ -670,21 +691,21 @@
}, },
}); });
const errmsgclk = (e,k)=>{ const errmsgclk = (e, k) => {
console.log(indexmessage.value,k) console.log(indexmessage.value, k)
if(k==1){ if (k == 1) {
if(indexmessage.value?.izStart=='Y'){ if (indexmessage.value?.izStart == 'Y') {
switch (e){ switch (e) {
case 0: case 0:
if(indexmessage.value?.serviceContent==''){return} if (indexmessage.value?.serviceContent == '') { return }
errmsg.value = indexmessage.value?.serviceContent errmsg.value = indexmessage.value?.serviceContent
break; break;
case 1: case 1:
if(indexmessage.value?.mp3File==''){return} if (indexmessage.value?.mp3File == '') { return }
errmsg.value = indexmessage.value?.mp3File errmsg.value = indexmessage.value?.mp3File
break; break;
case 2: case 2:
if(indexmessage.value?.mp4File==''){return} if (indexmessage.value?.mp4File == '') { return }
errmsg.value = indexmessage.value?.mp4File errmsg.value = indexmessage.value?.mp4File
break; break;
@ -693,15 +714,15 @@
} }
openerror.value = true; openerror.value = true;
} }
}else{ } else {
if(indexmessage.value?.izStart=='Y'){ if (indexmessage.value?.izStart == 'Y') {
switch (e){ switch (e) {
case 3: case 3:
ysptp(indexmessage.value,0,1) ysptp(indexmessage.value, 0, 1)
break; break;
case 4: case 4:
ysptp(indexmessage.value,0,2) ysptp(indexmessage.value, 0, 2)
break; break;
default: default:
@ -742,30 +763,31 @@
// e.detail.scrollTop // e.detail.scrollTop
scrollTop.value = e.detail.scrollTop scrollTop.value = e.detail.scrollTop
} }
const start = (v) =>{ const start = (v) => {
if(v.izStart!='N'){return} if (v.izStart != 'N') { return }
console.log(v) console.log(v)
startOrder({id:v.id}).then(res=>{ startOrder({ id: v.id }).then(res => {
console.log(res) console.log(res)
if(res.success){ if (res.success) {
v.izStart = "Y"; v.izStart = "Y";
}else{ } else {
} }
}) })
} }
const end = (v)=>{ const end = (v) => {
console.log(v) console.log(v)
if(v.izStart=='Y'&& v.izFinish=='N'){ if (v.izStart == 'Y' && v.izFinish == 'N') {
endOrder({id:v.id}).then(res=>{ endOrder({ id: v.id }).then(res => {
console.log(res) console.log(res)
if(res.success){ if (res.success) {
firstgetqueryCgdList(uni.getStorageSync('nuId')) firstgetqueryCgdList(uni.getStorageSync('nuId'))
}else{ } else {
} }
})} })
}
} }
// //
@ -885,7 +907,7 @@
} }
const getmenu = () => { const getmenu = () => {
queryPadPageList().then((res => { queryPadPageList().then((res => {
console.log("看看数据",res.result.records) console.log("看看数据", res.result.records)
leftMenuArray.value = res.result.records; leftMenuArray.value = res.result.records;
filteredMenu(0).forEach((element : any, index : number) => { filteredMenu(0).forEach((element : any, index : number) => {
if (element.nuId === uni.getStorageSync('NUall').nuId) { if (element.nuId === uni.getStorageSync('NUall').nuId) {
@ -902,7 +924,7 @@
employeeId: uni.getStorageSync('userInfo').employessId, employeeId: uni.getStorageSync('userInfo').employessId,
workType: 5 workType: 5
} }
console.log("看看图",data) console.log("看看图", data)
// queryWorkOrderList(data).then((res : any) => { // queryWorkOrderList(data).then((res : any) => {
// console.log("",res) // console.log("",res)
// indexmessage.value = res.result.records[0]; // indexmessage.value = res.result.records[0];
@ -925,7 +947,7 @@
})) }))
})) }))
) )
const nusing = ()=>{ const nusing = () => {
uni.setStorage({ uni.setStorage({
key: 'myArray', key: 'myArray',
data: timearr.value, data: timearr.value,
@ -947,13 +969,13 @@
emotionTagList.value = []; emotionTagList.value = [];
bodyTagList.value = []; bodyTagList.value = [];
getNclist(uni.getStorageSync('nuId'), uni.getStorageSync('elderId')).then((res : any) => { getNclist(uni.getStorageSync('nuId'), uni.getStorageSync('elderId')).then((res : any) => {
res.result.emotionTagList.forEach(item=>{ res.result.emotionTagList.forEach(item => {
if(item.izSelected == 'Y'){ if (item.izSelected == 'Y') {
emotionTagList.value.push(item) emotionTagList.value.push(item)
} }
}) })
res.result.bodyTagList.forEach(item=>{ res.result.bodyTagList.forEach(item => {
if(item.izSelected == 'Y'){ if (item.izSelected == 'Y') {
bodyTagList.value.push(item) bodyTagList.value.push(item)
} }
}) })
@ -964,6 +986,76 @@
}) })
} }
} }
function getStatusDesc(type) {
switch (type) {
case '稳定':
return '标准情绪';
case '标准':
return '标准体重女100-120120-150';
case '焦虑':
return '无法控制情绪(哭泣/大笑)';
case '超重':
return '女超过120男超过150';
case '抑郁':
return '有自杀倾向';
case '强直':
return '四肢承伸直且僵硬无法弯曲状(标识要区分为左右和手脚)';
case '暴力':
return '有攻击他人倾向';
case '偏瘫':
return '四肢无知觉且无法支配但是并无僵硬,可弯曲(标识要区分为左右和手脚)';
case '恐惧':
return '被害妄想';
case '佝偻':
return '四肢承弯曲且僵硬无法伸直状(标识要区分为左右和手脚)';
case '烦躁':
return '对服务和对话都不耐烦';
case '易怒':
return '骂人';
case '臆想':
return '骗人/说谎,胡言乱语';
default:
return '';
}
}
function getleft(index) {
switch (index) {
case 0:
return 2.2;
case 1:
return 6;
case 2:
return 9.8;
case 3:
return 13.4;
}
}
const tagtarget = ref(-1);
const detail = ref("")
const leftnumber = ref(2.2)
const clicktag = (item, index) => {
tagtarget.value = index;
detail.value = getStatusDesc(item.tagName)
leftnumber.value = getleft(index)
}
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
@ -972,7 +1064,8 @@
margin-left: 2vw; margin-left: 2vw;
height: 100%; height: 100%;
transition: opacity 1s ease; transition: opacity 1s ease;
.right-time{
.right-time {
margin-top: 80rpx; margin-top: 80rpx;
width: 100%; width: 100%;
height: 15vh; height: 15vh;
@ -982,16 +1075,19 @@
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
padding-left: 30rpx; padding-left: 30rpx;
.time-top{
.time-top {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 1.1vw; font-size: 1.1vw;
.time-big{
.time-big {
font-size: 3.5vw; font-size: 3.5vw;
font-weight: 600; font-weight: 600;
margin-right: 10rpx; margin-right: 10rpx;
} }
.time-week{
.time-week {
font-weight: 600; font-weight: 600;
} }
} }
@ -1703,6 +1799,7 @@
color: #888888; color: #888888;
font-size: 25rpx; font-size: 25rpx;
} }
.mengban { .mengban {
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
@ -1712,6 +1809,7 @@
z-index: 100; z-index: 100;
background: RGBA(239, 240, 244, 0.55); background: RGBA(239, 240, 244, 0.55);
} }
.photowall { .photowall {
position: fixed; position: fixed;
top: 54%; top: 54%;
@ -1725,6 +1823,7 @@
z-index: 9990; z-index: 9990;
box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.1); box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.1);
padding: 0 90rpx; padding: 0 90rpx;
.photowall-title { .photowall-title {
margin-top: 50rpx; margin-top: 50rpx;
display: flex; display: flex;
@ -1753,36 +1852,41 @@
display: flex; display: flex;
margin-top: 20rpx; margin-top: 20rpx;
flex-wrap: wrap; flex-wrap: wrap;
.photowall-other-one { .photowall-other-one {
width: 22vw; width: 22vw;
height: 430rpx; height: 430rpx;
margin-right: 3vw; margin-right: 3vw;
margin-bottom: 0%; margin-bottom: 0%;
border-radius: 30rpx; border-radius: 30rpx;
display:flex; display: flex;
position: relative; position: relative;
video{
video {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
} }
} }
} }
.guodu { .guodu {
transition: .4s; transition: .4s;
-webkit-transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
} }
.jsh0{
.jsh0 {
height: 0vw !important; height: 0vw !important;
padding: 0 2vw !important; padding: 0 2vw !important;
top: 9.4vw !important; top: 9.4vw !important;
} }
.jszl{
.jszl {
width: 64.5vw; width: 64.5vw;
height: 44vw; height: 44vw;
background: #FFFFFF; background: #FFFFFF;
box-shadow: 0rpx 0rpx 0.5vw 0rpx rgba(136,148,167,0.19); box-shadow: 0rpx 0rpx 0.5vw 0rpx rgba(136, 148, 167, 0.19);
border-radius: 2.2vw; border-radius: 2.2vw;
position: absolute; position: absolute;
top: 11vw; top: 11vw;
@ -1790,18 +1894,21 @@
z-index: 200; z-index: 200;
padding: 2vw; padding: 2vw;
overflow: hidden; overflow: hidden;
.submit{
.submit {
width: 100%; width: 100%;
height: 3.2vw; height: 3.2vw;
margin-top: 0.4vw; margin-top: 0.4vw;
padding-right: 2vw; padding-right: 2vw;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
view{
view {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
&:nth-child(1){
&:nth-child(1) {
width: 7.1vw; width: 7.1vw;
height: 3.2vw; height: 3.2vw;
background: #F8F8F8; background: #F8F8F8;
@ -1811,12 +1918,13 @@
font-size: 1.4vw; font-size: 1.4vw;
color: #555555; color: #555555;
} }
&:nth-child(2){
&:nth-child(2) {
width: 7.1vw; width: 7.1vw;
height: 3.2vw; height: 3.2vw;
background: linear-gradient(0deg, #CAE0F9, #E9F4FF); background: linear-gradient(0deg, #CAE0F9, #E9F4FF);
border-radius: 1.6vw; border-radius: 1.6vw;
border: 1px solid rgba(3,133,250,0.34); border: 1px solid rgba(3, 133, 250, 0.34);
font-weight: 400; font-weight: 400;
font-size: 1.4vw; font-size: 1.4vw;
color: #1083F8; color: #1083F8;
@ -1824,13 +1932,14 @@
} }
} }
} }
.scrol{
.scrol {
width: 110%; width: 110%;
height: 30vw; height: 30vw;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
.cdk{ .cdk {
width: 6.1vw; width: 6.1vw;
height: 6.1vw; height: 6.1vw;
background: #F8F8F8; background: #F8F8F8;
@ -1839,12 +1948,14 @@
display: inline-block; display: inline-block;
border: 1px solid #F8F8F8; border: 1px solid #F8F8F8;
text-align: center; text-align: center;
image{
image {
width: 2vw; width: 2vw;
height: 2vw; height: 2vw;
margin: 1.4vw auto 0vw; margin: 1.4vw auto 0vw;
} }
text{
text {
display: block; display: block;
text-align: center; text-align: center;
font-weight: 400; font-weight: 400;
@ -1853,32 +1964,38 @@
width: 100%; width: 100%;
} }
} }
.act{
.act {
background: #F2F8FF; background: #F2F8FF;
border: 1px solid rgba(1,125,233,0.43); border: 1px solid rgba(1, 125, 233, 0.43);
text{
text {
color: #017DE9; color: #017DE9;
} }
} }
} }
.spiw{
.spiw {
width: 14vw; width: 14vw;
height: 2vw; height: 2vw;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
margin-top: 2.5vw; margin-top: 2.5vw;
view{
view {
font-weight: 400; font-weight: 400;
font-size: 1.3vw; font-size: 1.3vw;
color: #555555; color: #555555;
position: relative; position: relative;
line-height: 1.5vw; line-height: 1.5vw;
} }
.act{
.act {
color: #222222 !important; color: #222222 !important;
font-weight: 500; font-weight: 500;
} }
.act::after{
.act::after {
width: 50%; width: 50%;
height: 0.2vw; height: 0.2vw;
background: #0089FE; background: #0089FE;
@ -1889,14 +2006,16 @@
left: 25%; left: 25%;
} }
} }
.tittop{
.tittop {
height: 2vw; height: 2vw;
font-weight: 400; font-weight: 400;
font-size: 1.4vw; font-size: 1.4vw;
color: #333333; color: #333333;
display: flex; display: flex;
align-items: center; align-items: center;
view{
view {
width: 0.4vw; width: 0.4vw;
height: 1.2vw; height: 1.2vw;
background: #017DE9; background: #017DE9;
@ -1905,40 +2024,61 @@
} }
} }
} }
.bianj{
.bianj {
position: absolute; position: absolute;
width: 2.2vw; width: 2.2vw;
height: 1.1vw; height: 1.1vw;
top: 9.68vw; top: 9.68vw;
right: 2.5vw; right: 2.5vw;
z-index: 220; z-index: 220;
image{
image {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
} }
.jb{
.jb {
position: absolute; position: absolute;
width: 2.2vw; width: 2.2vw;
height: 1.1vw; height: 1.1vw;
top: 2.7vw; top: 2.7vw;
right: 1.5vw; right: 1.5vw;
z-index: 220; z-index: 220;
image{
image {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
} }
.zzh0{
.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; height: 0vw !important;
padding: 0 1.6vw !important; padding: 0 1.6vw !important;
top: 2.7vw !important; top: 2.7vw !important;
} }
.zzbq{
.zzbq {
width: 18vw; width: 18vw;
height: 10vw; height: 10vw;
background: #FFFFFF; background: #FFFFFF;
box-shadow: 0rpx 0rpx 0.5vw 0rpx rgba(136,148,167,0.19); box-shadow: 0rpx 0rpx 0.5vw 0rpx rgba(136, 148, 167, 0.19);
border-radius: 1.6vw; border-radius: 1.6vw;
right: -0.8vw; right: -0.8vw;
top: 4vw; top: 4vw;
@ -1946,21 +2086,26 @@
z-index: 200; z-index: 200;
display: flex; display: flex;
padding: 1.6vw 1.6vw 0; padding: 1.6vw 1.6vw 0;
.carfd{
.carfd {
width: 7.4vw; width: 7.4vw;
height: 100%; height: 100%;
.tg{
.tg {
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
margin-top: 1vw; margin-top: 1vw;
view{
view {
width: 1.8vw; width: 1.8vw;
image{
image {
width: 1.8vw; width: 1.8vw;
height: 1.8vw; height: 1.8vw;
} }
text{
text {
font-weight: 400; font-weight: 400;
font-size: 0.8vw; font-size: 0.8vw;
color: #666666; color: #666666;
@ -1969,14 +2114,15 @@
} }
} }
.tittop{ .tittop {
height: 2vw; height: 2vw;
font-weight: 400; font-weight: 400;
font-size: 1.1vw; font-size: 1.1vw;
color: #333333; color: #333333;
display: flex; display: flex;
align-items: center; align-items: center;
view{
view {
width: 0.4vw; width: 0.4vw;
height: 1.2vw; height: 1.2vw;
background: #017DE9; background: #017DE9;
@ -1986,4 +2132,21 @@
} }
} }
} }
.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> </style>

View File

@ -129,13 +129,13 @@
const leftMenuArray = ref([]) const leftMenuArray = ref([])
const exitshow = ref(false); const exitshow = ref(false);
const morerule = ref(false) const morerule = ref(false)
const fontnumber = ref(uni.getStorageSync('orgListName')) const fontnumber = ref("")
const fontSize = computed(() => { const fontSize = computed(() => {
const len = (fontnumber.value || '').length const len = (fontnumber.value || '').length
if (len === 10) return '1.3vw' // 10 if (len === 10) return '1.3vw' // 10
if (len < 10) return '1.4vw' // 10 if (len < 10) return '1.5vw' // 10
if (len <= 15) return '1.2vw' // 11~15 if (len <= 15) return '1.1vw' // 11~15
return '1.1vw' // 15 return '0.9vw' // 15
}) })
// //
onShow(() => { onShow(() => {
@ -144,7 +144,7 @@
leftMenuArray.value = res.result.records; leftMenuArray.value = res.result.records;
console.log("????", res) console.log("????", res)
})) }))
fontnumber.value = uni.getStorageSync('orgListName')
}); });
const filteredMenu = (index : number) => { const filteredMenu = (index : number) => {
return leftMenuArray.value.filter(item => Number(item.areaFlag) - 1 == index); return leftMenuArray.value.filter(item => Number(item.areaFlag) - 1 == index);