diff --git a/pages/NursingNew/component/index.vue b/pages/NursingNew/component/index.vue index 9298fb0..a9ed0ae 100644 --- a/pages/NursingNew/component/index.vue +++ b/pages/NursingNew/component/index.vue @@ -291,6 +291,7 @@ {{v.tagName}} + @@ -303,6 +304,7 @@ {{v.tagName}} + @@ -489,19 +491,30 @@ pageSize: 10, employeeId:uni.getStorageSync('userInfo').employessId, nuId:uni.getStorageSync('nuId') + }) const plsbuy = ref([]) - const firstgetqueryCgdList = () => { + const firstgetqueryCgdList = (nuId) => { + form.nuId = nuId; + console.log(form) queryOrderList(form).then(res => { - plsbuy.value.push(...res.result.records); - if(form.pageNo==1){ - clickLeftMenu(0,plsbuy.value[0]) + console.log(res) + // plsbuy.value.push(...res.result.records); + if(res.result.records.length>0){ + clickLeftMenu(0,res.result.records[0]) + }else{ + indexmessage.value = []; } }) } const clickLeftMenu = (index : any, item : object) => { queryOrderInfoList({ mainId: item.id }).then(res => { - indexmessage.value = res.result[0] + console.log(res) + if(res.result.length>0){ + indexmessage.value = res.result[0] + }else{ + indexmessage.value = []; + } }) } const open = ref(0) @@ -710,7 +723,8 @@ uni.setStorageSync('nuName', data.nuName); uni.setStorageSync('elderId', data.elderInfo ? data.elderInfo?.id : null); uni.setStorageSync('NUall', data); - getgif(); + console.log(data.nuId) + firstgetqueryCgdList(data.nuId); emit('swip') } @@ -742,15 +756,17 @@ }) } const end = (v)=>{ - if(v.izStart!='Y'&& v.izFinish!='N'){return} - endOrder({id:v.directiveId}).then(res=>{ + console.log(v) + if(v.izStart=='Y'&& v.izFinish=='N'){ + endOrder({id:v.id}).then(res=>{ + console.log(res) if(res.success){ - v.izStart = "N"; - v.izFinish = "Y"; + firstgetqueryCgdList(uni.getStorageSync('nuId')) }else{ } - }) + })} + } // 通用的生成函数 function genPaths(base, prefix, count, ext = 'png', startIndex = 0, pad = false) { @@ -886,12 +902,12 @@ employeeId: uni.getStorageSync('userInfo').employessId, workType: 5 } - // console.log("看看图",data) - queryWorkOrderList(data).then((res : any) => { - // console.log("看看图",res) - indexmessage.value = res.result.records[0]; - // console.log("看看图",'https://www.focusnu.com/media/upFiles/'+indexmessage.value.previewFile) - }) + console.log("看看图",data) + // queryWorkOrderList(data).then((res : any) => { + // console.log("看看图",res) + // indexmessage.value = res.result.records[0]; + // console.log("看看图",'https://www.focusnu.com/media/upFiles/'+indexmessage.value.previewFile) + // }) } const lanjie = ref(false); const gotolook = () => { diff --git a/pages/NursingNew/component/leftcontent/leftcontent.vue b/pages/NursingNew/component/leftcontent/leftcontent.vue index db4bab5..b745d12 100644 --- a/pages/NursingNew/component/leftcontent/leftcontent.vue +++ b/pages/NursingNew/component/leftcontent/leftcontent.vue @@ -15,7 +15,7 @@ @@ -33,6 +33,8 @@ type:String } }); + const serverUrl = ref(uni.getStorageSync('serverUrl')) + const userInfo = uni.getStorageSync('userInfo'); const emit = defineEmits(['navurl']) const dexleft = ref(0); @@ -129,6 +131,7 @@ .tp image{ width: 100%; height: 100%; + border-radius: 50%; } .guodu { transition: .4s; diff --git a/pages/Warehouse/index/component/index.vue b/pages/Warehouse/index/component/index.vue index b4f1793..ec6bffe 100644 --- a/pages/Warehouse/index/component/index.vue +++ b/pages/Warehouse/index/component/index.vue @@ -26,7 +26,7 @@ - + 65 @@ -42,7 +42,36 @@ 即时 + + + + + + + 即时服务指令 + + + {{v}} + + + + + {{v}} + + + + + 暂无服务指令 + + + + + 取消 + 确定 + + + @@ -248,7 +277,7 @@