This commit is contained in:
Teng 2026-01-05 14:14:40 +08:00
commit 6dc29c697d
17 changed files with 2143 additions and 82 deletions

View File

@ -1357,6 +1357,10 @@
photoplay.value = true;
init();
yulan();
transition.value = false;
setTimeout(() => {
transition.value = true;
}, 50)
})
const changeallmessage = () => {

View File

@ -311,7 +311,7 @@
const openleft = ref(false)
const menutarget = ref(0)
const emit = defineEmits(['swip'])
const clickmenu = (index : number) => {
menutarget.value = index
let data = filteredMenu(0)[index]
@ -319,7 +319,8 @@
uni.setStorageSync('nuName', data.nuName);
uni.setStorageSync('elderId', data.elderInfo ? data.elderInfo?.id : null);
uni.setStorageSync('NUall', data);
getgif()
getgif();
emit('swip')
}
const tagarray = ["市医保", "半失能", "正常计费"]
@ -412,6 +413,7 @@
(newVal, oldVal) => {
// falsetrue0.2
if (!oldVal && newVal) {
console.log(oldVal && newVal)
transition.value = false;
// console.log("????",transition.value)
setTimeout(() => {
@ -459,8 +461,14 @@
setInterval(updateTime, 1000);
photoplay.value = true;
getmenu();
getgif();
transition.value = false;
// console.log("????",transition.value)
setTimeout(() => {
transition.value = true;
// console.log("", uni.getStorageSync('NUall'))
}, 50)
})
const filteredMenu = (index : number) => {
return leftMenuArray.value.filter(item => Number(item.areaFlag) - 1 == index);
}
@ -470,6 +478,7 @@
filteredMenu(0).forEach((element : any, index : number) => {
if (element.nuId === uni.getStorageSync('NUall').nuId) {
menutarget.value = index
clickmenu(menutarget.value)
}
})
}))
@ -483,7 +492,7 @@
}
queryWorkCareList(data).then((res : any) => {
// console.log("",res.result.records[0])
indexmessage.value = res.result.records[0]
indexmessage.value = res.result.records[0];
// console.log("",'https://www.focusnu.com/media/upFiles/'+indexmessage.value.previewFile)
})
}

View File

@ -5,7 +5,7 @@
<image src="/static/shouye/logo2.png" mode="aspectFill"></image>
</view>
<view class="cont">
<view class="items" v-for="(v,i) in list" :key='i' :class="{'act':i==dexleft}" @click="dexleft = i;emit('navurl',i)">
<view class="items" v-for="(v,i) in list" :key='i' :class="{'act':i==dexleft}" @click="dexleft = i;emit('navurl',i,v)">
<view class="tm guodu">
<image :src="i==dexleft?v.urls:v.url" mode="aspectFill" class="guodu"></image>
<text>{{v.name}}</text>

File diff suppressed because it is too large Load Diff

View File

@ -37,6 +37,10 @@
});
onMounted(()=>{
hometype.value = 0;
transition.value = false;
setTimeout(() => {
transition.value = true;
}, 50)
})
watch(
() => props.isShow,

View File

@ -1,18 +1,22 @@
<template>
<view class="backgroundContainer">
<!-- 左侧菜单 -->
<leftcontent :list="tabbrarr" @navurl="navurl"></leftcontent>
<leftcontent :list="arrlist" @navurl="navurl"></leftcontent>
<!-- 主页 -->
<index :isShow="menuIndexshow" v-if="!menuIndex" />
<!-- 设备页 -->
<equipment :isShow="menuIndexshowfifth" v-if="menuIndex==4" />
<!-- 医嘱页 -->
<requestform :isShow="menuIndexshowfourth" v-if="menuIndex==3" />
<index :isShow="menuIndex==0" v-if="menuIndex==0" @swip="swip"/>
<!-- 户嘱页 -->
<nurse :isshow="menuIndexshowsecond"
v-if="menuIndex==1&&uni.getStorageSync('elderId')&&uni.getStorageSync('nuId')" />
<nurse :isshow="menuIndex==1" v-if="menuIndex==1&&uni.getStorageSync('elderId')&&uni.getStorageSync('nuId')" />
<!-- 医嘱 -->
<doctorask v-if="menuIndex==2&&uni.getStorageSync('elderId')&&uni.getStorageSync('nuId')" />
<!-- 设备页 -->
<logistics :isshow="menuIndex==3" v-if="menuIndex==3&&uni.getStorageSync('elderId')&&uni.getStorageSync('nuId')" />
<equipment :isShow="menuIndex==5" v-if="menuIndex==5" />
<!-- 医嘱页 -->
<!-- <logistics :isShow="menuIndexshowfourth" v-if="menuIndex==3" /> -->
<requestform :isShow="menuIndex==4" v-if="menuIndex==4" />
<!-- 没有数据 -->
<view class="nomessageclass" :style="messageopit?{opacity: `1`}:{opacity: `0`}"
v-if="(menuIndex == 1 || menuIndex == 2) && (!uni.getStorageSync('elderId') ||!uni.getStorageSync('nuId'))">
@ -23,8 +27,10 @@
<script setup lang="ts">
import { ref, onMounted, onBeforeUnmount, nextTick } from 'vue';
import { queryPadPageList ,getPermissionList } from '@/pages/watch/api/lunpan.js'
import index from "./component/index.vue"
import equipment from "./component/equipment.vue"
import logistics from "./component/nurse/logistics.vue"
import requestform from "./component/pleasetake/takehome.vue"
import doctorask from "./component/doctorask/doctorask.vue"
import nurse from "./component/nurse/index.vue"
@ -33,7 +39,7 @@
import leftcontent from "./component/leftcontent/leftcontent.vue"
import defaultr from '@/pages/procurement/components/default.vue';
const listarr = ref([]);
onMounted(() => {
menuIndex.value = -1;
nextTick(() => menuIndex.value = 0)
@ -46,6 +52,9 @@
//
uni.setStorageSync("Packagelist", res.result)
})
getPermissionList({employessId:uni.getStorageSync('userInfo').employessId}).then(res=>{
listarr.value = res.result;
})
})
//
@ -58,17 +67,104 @@
})
}
const tabbrarr = ref([
{ name: '首页', url: '/static/shouye/sy/h0.png', urls: '/static/shouye/sy/h1.png' },
{ name: '护理', url: '/static/shouye/sy/n0.png', urls: '/static/shouye/sy/n1.png' },
{ name: '医疗', url: '/static/shouye/sy/y0.png', urls: '/static/shouye/sy/y1.png' },
{ name: '行政', url: '/static/shouye/sy/l0.png', urls: '/static/shouye/sy/l1.png' },
{ name: '物联', url: '/static/shouye/sy/g0.png', urls: '/static/shouye/sy/g1.png' },
{ name: '返回', url: '/static/shouye/sy/f0.png', urls: '/static/shouye/sy/f1.png' },
{ name: '护嘱', url: '/static/shouye/sy/n0.png', urls: '/static/shouye/sy/n1.png' ,type:'hldy_hljz'},
{ name: '医嘱', url: '/static/shouye/sy/y0.png', urls: '/static/shouye/sy/y1.png' ,type:'hldy_yljz'},
{ name: '后勤', url: '/static/shouye/sy/l0.png', urls: '/static/shouye/sy/l1.png' ,type:'hldy_xzjz'},
{ name: '请领', url: '/static/shouye/sy/l0.png', urls: '/static/shouye/sy/l1.png' ,type:'kf_ql'},
])
const navurl = (e) => {
changeMenu(e)
const navurl = (e,v) => {
switch (v.type){
case 'hldy':
menuIndex.value = 0;
console.log('护理单元')
break;
case 'hldy_hljz':
menuIndex.value = 1;
console.log('护理矩阵')
break;
case 'hldy_yljz':
menuIndex.value = 2;
console.log('医疗矩阵')
break;
case 'hldy_xzjz':
menuIndex.value = 3;
console.log('行政矩阵')
break;
case 'kf':
console.log('库房')
break;
case 'kf_cg':
console.log('采购')
break;
case 'kf_jh':
console.log('拣货')
break;
case 'kf_wj':
console.log('完结')
break;
case 'kf_ql':
menuIndex.value = 4;
console.log('请领')
break;
case 'kf_th':
console.log('退货')
break;
case 'kf_pd':
console.log('盘点')
break;
case 'wl':
menuIndex.value = 5;
console.log('物联')
break;
case 'back':
uni.navigateBack()
console.log('物联')
break;
default:
break;
}
//
}
const arrlist = ref([
{ name: '首页', url: '/static/shouye/sy/h0.png', urls: '/static/shouye/sy/h1.png' ,type:'hldy'}
])
const swip = ()=>{
let nuName = uni.getStorageSync('nuName')
queryPadPageList({'pageNo':-1,'nuName':nuName}).then((res => {
console.log(res.result.records)
let arr = res.result.records[0].permissionList;
arrlist.value = [{ name: '首页', url: '/static/shouye/sy/h0.png', urls: '/static/shouye/sy/h1.png' ,type:'hldy'}];
let tbr = [];
if(arr){
arr.forEach((v,i)=>{
let obj = listarr.value.find(item=>
item.menuCode == v.menuCode
);
if(obj){
tbr.push(v);
}
})
tbr.forEach(item=>{
let obj = tabbrarr.value.find(r=>
r.type == item.menuCode
);
if(obj){
arrlist.value.push(obj);
console.log(arrlist.value)
}
})
}
let back =[
{ name: '物联', url: '/static/shouye/sy/g0.png', urls: '/static/shouye/sy/g1.png' ,type:'wl'},
{ name: '返回', url: '/static/shouye/sy/f0.png', urls: '/static/shouye/sy/f1.png' ,type:'back'}
]
arrlist.value.push(...back);
navurl(0,arrlist.value[0])
}))
}
//
const menuIndex = ref<number>(-1);
const menuIndexshow = ref<boolean>(false);
@ -87,7 +183,7 @@
menuIndexshowsecond.value = false
menuIndexshowfourth.value = false;
menuIndexshowfifth.value = false
if (index === 5) {
if (index === arrlist.value.length-1) {
uni.navigateBack()
return
}
@ -110,6 +206,10 @@
case 4:
menuIndexshowfifth.value = true;
break;
case 5:
menuIndexshowfourth.value = true
break;
default:
}
}, 50)

View File

@ -1325,6 +1325,14 @@
}
}
)
onMounted(()=>{
firstgetqueryCgdList();
getSelectList();
transition.value = false;
setTimeout(() => {
transition.value = true;
}, 50)
})
const transition = ref(false)
const opencgr = ref(false);
const opengys = ref(false);

View File

@ -264,15 +264,15 @@
const openleft = ref(false)
const menutarget = ref(0)
const emit = defineEmits(['swip'])
const clickmenu = (index : number) => {
menutarget.value = index
let data = filteredMenu(2)[index]
console.log("!!!!", data)
uni.setStorageSync('nuId', data.nuId);
uni.setStorageSync('nuName', data.nuName);
uni.setStorageSync('elderId', data.elderInfo ? data.elderInfo?.id : null);
uni.setStorageSync('NUall', data);
emit('swip')
}
const tagarray = ["市医保", "半失能", "正常计费"]
@ -412,6 +412,10 @@
setInterval(updateTime, 1000);
photoplay.value = true;
getmenu()
transition.value = false;
setTimeout(() => {
transition.value = true;
}, 50)
})
const filteredMenu = (index : number) => {
return leftMenuArray.value.filter(item => Number(item.areaFlag) - 1 == index);
@ -421,7 +425,8 @@
leftMenuArray.value = res.result.records;
filteredMenu(2).forEach((element : any, index : number) => {
if (element.nuId === uni.getStorageSync('NUall').nuId) {
menutarget.value = index
menutarget.value = index;
clickmenu(index)
}
})
}))

View File

@ -2,16 +2,16 @@
<view>
<view class="flex">
<view class="left">
<leftcontent :list="tabbrarr" @navurl="navurl"></leftcontent>
<leftcontent :list="arrlist" @navurl="navurl"></leftcontent>
</view>
<view class="boxrt">
<index :isShow="menuop==0" v-if="!ckindex" />
<material :isShow="menuop == 1" v-if="ckindex == 1"></material>
<picking :isShow="menuop == 2" v-if="ckindex == 2"></picking>
<finish :isShow="menuop == 3" v-if="ckindex == 3"></finish>
<outbound :isShow="menuop == 4" v-if="ckindex == 4"></outbound>
<retstock :isShow="menuop == 5" v-if="ckindex == 5"></retstock>
<inventory :isShow="menuop == 6" v-if="ckindex == 6"></inventory>
<index :isShow="menuop == 0" v-if="menuop == 0" @swip="swip"/>
<material :isShow="menuop == 1" v-if="menuop == 1"></material>
<picking :isShow="menuop == 2" v-if="menuop == 2"></picking>
<finish :isShow="menuop == 3" v-if="menuop == 3"></finish>
<outbound :isShow="menuop == 4" v-if="menuop == 4"></outbound>
<retstock :isShow="menuop == 5" v-if="menuop == 5"></retstock>
<inventory :isShow="menuop == 6" v-if="menuop == 6"></inventory>
</view>
</view>
</view>
@ -20,6 +20,7 @@
<script setup lang="ts">
import { ref, onMounted, onBeforeUnmount, nextTick } from 'vue';
import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app"
import { queryPadPageList ,getPermissionList} from '@/pages/watch/api/lunpan.js'
import leftcontent from "@/pages/NursingNew/component/leftcontent/leftcontent.vue"
import material from "@/pages/procurement/material.vue";
import index from "./component/index.vue"
@ -32,38 +33,94 @@
import retstock from "@/pages/procurement/retstock.vue";
const tabbrarr = ref([
{ name: '首页', url: '/static/shouye/ck/h0.png', urls: '/static/shouye/ck/h1.png' },
{ name: '采购', url: '/static/shouye/ck/c0.png', urls: '/static/shouye/ck/c1.png' },
{ name: '拣货', url: '/static/shouye/ck/j0.png', urls: '/static/shouye/ck/j1.png' },
{ name: '完结', url: '/static/shouye/ck/w0.png', urls: '/static/shouye/ck/w1.png' },
{ name: '请领', url: '/static/shouye/ck/q0.png', urls: '/static/shouye/ck/q1.png' },
{ name: '退货', url: '/static/shouye/ck/t0.png', urls: '/static/shouye/ck/t1.png' },
{ name: '盘点', url: '/static/shouye/ck/p0.png', urls: '/static/shouye/ck/p1.png' },
{ name: '返回', url: '/static/shouye/sy/f0.png', urls: '/static/shouye/sy/f1.png' },
{ name: '采购', url: '/static/shouye/ck/c0.png', urls: '/static/shouye/ck/c1.png' ,type:'kf_cg'},
{ name: '拣货', url: '/static/shouye/ck/j0.png', urls: '/static/shouye/ck/j1.png' ,type:'kf_jh'},
{ name: '完结', url: '/static/shouye/ck/w0.png', urls: '/static/shouye/ck/w1.png' ,type:'kf_wj'},
{ name: '请领', url: '/static/shouye/ck/q0.png', urls: '/static/shouye/ck/q1.png' ,type:'kf_ql'},
{ name: '退货', url: '/static/shouye/ck/t0.png', urls: '/static/shouye/ck/t1.png' ,type:'kf_th'},
{ name: '盘点', url: '/static/shouye/ck/p0.png', urls: '/static/shouye/ck/p1.png' ,type:'kf_pd'},
])
const menuop = ref(-1)
const menuop = ref(0)
// onMounted(() => {
// //
// navurl(0)
// })
onShow(()=>{
navurl(ckindex.value)
})
const ckindex = ref(0)
const navurl = (e : number) => {
// onShow(()=>{
// navurl(0,arrlist[0])
// })
const navurl = (e : number,v:any) => {
//
if (e === tabbrarr.value.length - 1) {
uni.navigateBack()
return
}
ckindex.value = e;
//
console.log(v)
menuop.value = -1
setTimeout(() => {
menuop.value = e
}, 50)
setTimeout(()=>{
switch (v.type){
case 'sy':
menuop.value = 0
break;
case 'kf_cg':
menuop.value = 1
break;
case 'kf_jh':
menuop.value = 2
break;
case 'kf_wj':
menuop.value = 3
break;
case 'kf_ql':
menuop.value = 4
break;
case 'kf_th':
menuop.value = 5
break;
case 'kf_pd':
menuop.value = 6
break;
case 'back':
uni.navigateBack()
break;
default:
break;
}
},10)
}
const arrlist = ref([
{ name: '首页', url: '/static/shouye/ck/h0.png', urls: '/static/shouye/ck/h1.png' ,type:'sy'}
])
const listarr = ref([])
const swip = ()=>{
getPermissionList({employessId:uni.getStorageSync('userInfo').employessId}).then(res=>{
listarr.value = res.result;
})
let nuName = uni.getStorageSync('nuName')
queryPadPageList({'pageNo':-1,'nuName':nuName}).then((res => {
let arr = res.result.records[0].permissionList;
arrlist.value = [{ name: '首页', url: '/static/shouye/ck/h0.png', urls: '/static/shouye/ck/h1.png' ,type:'sy'}];
let tbr = [];
if(arr){
arr.forEach((v,i)=>{
let obj = listarr.value.find(item=>
item.menuCode == v.menuCode
);
if(obj){
tbr.push(v)
}
})
tbr.forEach(item=>{
let obj = tabbrarr.value.find(r=>
r.type == item.menuCode
);
if(obj){
arrlist.value.push(obj);
}
})
}
let back =[
{ name: '返回', url: '/static/shouye/sy/f0.png', urls: '/static/shouye/sy/f1.png' ,type:'back'},
]
arrlist.value.push(...back);
}))
}
</script>

View File

@ -1075,6 +1075,14 @@
}
}
)
onMounted(()=>{
firstgetqueryCgdList();
getSelectList();
transition.value = false;
setTimeout(() => {
transition.value = true;
}, 50)
})
const transition = ref(false)
const open = ref(0);
const typechange = ref(0);

View File

@ -275,12 +275,19 @@
},
});
const transition = ref(false);
onMounted(() => {
chongzhi()
getSelectList();
transition.value = false;
setTimeout(() => {
transition.value = true;
}, 50)
})
watch(
() => props.isShow,
(newVal, oldVal) => {
if (!oldVal && newVal) {
chongzhi()
getSelectList();
}
}
)

View File

@ -186,23 +186,42 @@
type: Boolean
},
});
onMounted(()=>{
form.pageNo = 1;
warn.pageNo = 1;
Material.value = [];
InvoicingList.value = [];
moredex.value = 0;
shoppcar();
getWaringMaterial()
nextTick(() => {
chongzhi()
})
setTimeout(()=>{
timeout.value = true
},500)
transition.value = false;
setTimeout(() => {
transition.value = true;
}, 50)
})
watch(
() => props.isShow,
(newVal, oldVal) => {
if (!oldVal && newVal) {
form.pageNo = 1;
warn.pageNo = 1;
Material.value = [];
InvoicingList.value = [];
moredex.value = 0;
shoppcar();
getWaringMaterial()
nextTick(() => {
chongzhi()
})
setTimeout(()=>{
timeout.value = true
},500)
form.pageNo = 1;
warn.pageNo = 1;
Material.value = [];
InvoicingList.value = [];
moredex.value = 0;
shoppcar();
getWaringMaterial()
nextTick(() => {
chongzhi()
})
setTimeout(()=>{
timeout.value = true
},500)
transition.value = false;
setTimeout(() => {
transition.value = true;

View File

@ -281,6 +281,10 @@
)
onMounted(() => {
firstgetqueryCgdList();
transition.value = false;
setTimeout(() => {
transition.value = true;
}, 50)
})
const lanjie = ref(false);
@ -374,9 +378,7 @@
alltotal.value = res.result.total
if (res.result.records.length) {
rightdonghua.value = false;
queryQldWlInfo({ qldNo: res.result.records[0].qldNo }).then((element : any) => {
console.log(element.result)
rightarray.value = []
rightarray.value.push(...element.result)
rightdonghua.value = true;
@ -641,6 +643,7 @@
// padding: 2vw;
padding-left: 1vw;
padding-top: 1.5vh;
width: 90vw;
}
.right-container-tem {

View File

@ -194,6 +194,7 @@
}
}
)
const serverUrl = ref(uni.getStorageSync('serverUrl') + '/sys/common/static/')
const opendata = ref(false);
const form = reactive({
@ -210,6 +211,10 @@
const carnum = ref(0)
onMounted(() => {
thlist()
transition.value = false;
setTimeout(() => {
transition.value = true;
}, 50)
})
onShow(() => {
ritbot();

View File

@ -11,9 +11,18 @@ export const movedirection = (direction,startOrNot) => {
// 获取护理单元
export const queryPadPageList = () => {
export const queryPadPageList = (params) => {
return request({
url: `${uni.getStorageSync('serverUrl')}/api/pad/baseInfo/queryPadPageList`,
method: 'get'
method: 'get',
data: params,
})
}
}
export const getPermissionList = (params) => {
return request({
url: `${uni.getStorageSync('serverUrl')}/api/employessInfo/getPermissionList`,
method: 'get',
data: params,
})
}

View File

@ -574,7 +574,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
)
]);
}
const camera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/hldy_app_mini/pages/camera.nvue"]]);
const camera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/项目/hldy_app_mini/pages/camera.nvue"]]);
export {
camera as default
};

View File

@ -578,7 +578,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
)
]);
}
const fullcamera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/hldy_app_mini/pages/fullcamera.nvue"]]);
const fullcamera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/项目/hldy_app_mini/pages/fullcamera.nvue"]]);
export {
fullcamera as default
};