diff --git a/manifest.json b/manifest.json index 93f7ecc..83c4686 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "护理单元", "appid" : "__UNI__FB2D473", "description" : "护理单元", - "versionName" : "1.0.038", - "versionCode" : 10038, + "versionName" : "1.0.040", + "versionCode" : 10040, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/pages/NursingNew/component/index.vue b/pages/NursingNew/component/index.vue index b29cb20..661991b 100644 --- a/pages/NursingNew/component/index.vue +++ b/pages/NursingNew/component/index.vue @@ -177,13 +177,13 @@ - + 护理单元 + v-for="(item,index) in filteredMenu('izHldy')" :key="index" @click="clickmenu(index)"> @@ -204,6 +204,34 @@ + + + 库房 + + + + + + + + + {{ item.nuName }} + + + {{ item.flag?`盘点`:`正常` }} + + + + NUID:{{ item.nuId }} + + + + + + + @@ -353,15 +381,23 @@ type: Boolean, required: true, }, + kf: { + type: String + }, }); const leftMenuArray = ref([]); const menutarget = ref(0) const emit = defineEmits(['swip', "gospecial"]) const clickmenu = (index : number) => { + let data = null; menutarget.value = index - let data = filteredMenu(0)[index] - + if(props.kf=='0'){ + data = filteredMenu('izHldy')[index] + + }else{ + data = filteredMenu('izKf')[index]; + } uni.setStorageSync('nuId', data.nuId); uni.setStorageSync('nuName', data.nuName); uni.setStorageSync('elderId', data.elderInfo ? data.elderInfo?.id : null); @@ -369,6 +405,7 @@ inits(data.nuId) hlylhq(data.nuId, data.elderInfo?.id) emit('swip') + } const hldyobj = ref({}) const hlylhq = (nuId, elderId) => { @@ -575,19 +612,40 @@ onHide(() => { photoplay.value = false; }) - const filteredMenu = (index : number) => { - return leftMenuArray.value.filter(item => Number(item.areaFlag) - 1 == index); + const filteredMenu = ( code) => { + return leftMenuArray.value.filter(item => item[code] == 'Y'); } const getmenu = () => { queryPadPageList().then((res => { - leftMenuArray.value = res.result.records; - // console.log("数据呢", filteredMenu(0)) - filteredMenu(0).forEach((element : any, index : number) => { - if (element.nuId === uni.getStorageSync('NUall').nuId) { - menutarget.value = index; - clickmenu(menutarget.value) - } - }) + if(props.kf=='0'){ + leftMenuArray.value = res.result.records; + console.log(res.result.records) + filteredMenu('izHldy').forEach((element : any, index : number) => { + if (element.nuId === uni.getStorageSync('NUall').nuId) { + menutarget.value = index; + clickmenu(menutarget.value) + } + }) + }else{ + leftMenuArray.value = res.result.records; + let arr = filteredMenu('izKf'); + arr.forEach((element : any, index : number) => { + if (element.nuId == uni.getStorageSync('NUall').nuId) { + menutarget.value = index; + clickmenu(index) + } + if (element.readList == null) { + element.flag = false + } else if (element.readList.length > 0) { + element.readList.forEach(k => { + if (k.type == 'pdd') { + element.flag = true + } + }) + } + }) + } + })) } const indexmessage = ref({}); diff --git a/pages/NursingNew/component/leftcontent/serveswipe.vue b/pages/NursingNew/component/leftcontent/serveswipe.vue index a21f4b7..36d32ef 100644 --- a/pages/NursingNew/component/leftcontent/serveswipe.vue +++ b/pages/NursingNew/component/leftcontent/serveswipe.vue @@ -18,7 +18,7 @@ - + @@ -457,20 +457,20 @@ } botleft.value = (a-4)*20; if (plsbuy.value[a]?.izStart == 'Y' && plsbuy.value[a]?.izFinish == 'N') { + timeacde(1) } if ( plsbuy.value[a]?.izMulti=='Y' &&plsbuy.value[a]?.directiveList[swipdcurrent.value].izStart == 'Y' && plsbuy.value[a]?.directiveList[swipdcurrent.value].izFinish == 'N') { - timeacde() + timeacde(2) } } const djstinme = ref(0) - const timeacde = () => { + const timeacde = (e) => { let obj = plsbuy.value[current.value]; - console.log(obj.izMulti,11111111111111) - if(obj.izMulti == "Y"){ + if(e==2){ let timestampMs = new Date(obj.directiveList[swipdcurrent.value].servEndTime).getTime(); let times = new Date().getTime(); let djs = timestampMs - times; @@ -479,7 +479,6 @@ djstinme.value = 0; plsbuy.value[current.value].directiveList[swipdcurrent.value].chaoshitime = true } - console.log(plsbuy.value) }else{ let timestampMs = new Date(obj.servEndTime).getTime(); let times = new Date().getTime(); @@ -490,8 +489,6 @@ plsbuy.value[current.value].chaoshitime = true } } - console.log(plsbuy.value) - } // const timeend = () => { // // 结束超时 @@ -1161,7 +1158,6 @@ .bots { height: 100%; white-space: nowrap; - display: flex; justify-content: center; view { width: 1.3vw; diff --git a/pages/NursingNew/index.vue b/pages/NursingNew/index.vue index c853e76..5a95ee7 100644 --- a/pages/NursingNew/index.vue +++ b/pages/NursingNew/index.vue @@ -48,7 +48,7 @@ - +