This commit is contained in:
parent
4234844fc1
commit
b8bbbe1a0f
|
|
@ -5,15 +5,15 @@
|
|||
<!-- 主页 -->
|
||||
<index :isShow="menuIndex==0" v-if="menuIndex==0" @swip="swip"/>
|
||||
<!-- 户嘱页 -->
|
||||
<nurse :isshow="menuIndex==1" v-if="menuIndex==1&&uni.getStorageSync('elderId')&&uni.getStorageSync('nuId')" />
|
||||
<nurse :isshow="menuIndex==1" v-if="swipedex==1&&uni.getStorageSync('elderId')&&uni.getStorageSync('nuId')" />
|
||||
<!-- 医嘱 -->
|
||||
<doctorask v-if="menuIndex==2&&uni.getStorageSync('elderId')&&uni.getStorageSync('nuId')" />
|
||||
<doctorask v-if="swipedex==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="menuIndex==3" v-if="swipedex==3&&uni.getStorageSync('elderId')&&uni.getStorageSync('nuId')" />
|
||||
<equipment :isShow="menuIndex==5" v-if="swipedex==5" />
|
||||
<!-- 医嘱页 -->
|
||||
<!-- <logistics :isShow="menuIndexshowfourth" v-if="menuIndex==3" /> -->
|
||||
<requestform :isShow="menuIndex==4" v-if="menuIndex==4" />
|
||||
<requestform :isShow="menuIndex==4" v-if="swipedex==4" />
|
||||
|
||||
|
||||
|
||||
|
|
@ -70,24 +70,37 @@
|
|||
{ 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'},
|
||||
{ name: '请领', url: '/static/shouye/sy/l0.png', urls: '/static/shouye/sy/l1.png' ,type:'hldy_ql'},
|
||||
])
|
||||
const navurl = (e,v) => {
|
||||
swipedex.value = -1;
|
||||
switch (v.type){
|
||||
case 'hldy':
|
||||
menuIndex.value = 0;
|
||||
swipedex.value = 0;
|
||||
setTimeout(()=>{
|
||||
menuIndex.value = 0;
|
||||
},100)
|
||||
console.log('护理单元')
|
||||
break;
|
||||
case 'hldy_hljz':
|
||||
menuIndex.value = 1;
|
||||
swipedex.value = 1;
|
||||
setTimeout(()=>{
|
||||
menuIndex.value =1;
|
||||
},100)
|
||||
console.log('护理矩阵')
|
||||
break;
|
||||
case 'hldy_yljz':
|
||||
menuIndex.value = 2;
|
||||
swipedex.value = 2;
|
||||
setTimeout(()=>{
|
||||
menuIndex.value = 3;
|
||||
},100)
|
||||
console.log('医疗矩阵')
|
||||
break;
|
||||
case 'hldy_xzjz':
|
||||
menuIndex.value = 3;
|
||||
swipedex.value = 3;
|
||||
setTimeout(()=>{
|
||||
menuIndex.value = 3;
|
||||
},100)
|
||||
console.log('行政矩阵')
|
||||
break;
|
||||
case 'kf':
|
||||
|
|
@ -102,8 +115,11 @@
|
|||
case 'kf_wj':
|
||||
console.log('完结')
|
||||
break;
|
||||
case 'kf_ql':
|
||||
menuIndex.value = 4;
|
||||
case 'hldy_ql':
|
||||
swipedex.value = 4;
|
||||
setTimeout(()=>{
|
||||
menuIndex.value = 4;
|
||||
},100)
|
||||
console.log('请领')
|
||||
break;
|
||||
case 'kf_th':
|
||||
|
|
@ -113,7 +129,10 @@
|
|||
console.log('盘点')
|
||||
break;
|
||||
case 'wl':
|
||||
menuIndex.value = 5;
|
||||
swipedex.value = 5;
|
||||
setTimeout(()=>{
|
||||
menuIndex.value = 5;
|
||||
},100)
|
||||
console.log('物联')
|
||||
break;
|
||||
case 'back':
|
||||
|
|
@ -167,6 +186,7 @@
|
|||
}
|
||||
// 当前选中的菜单索引
|
||||
const menuIndex = ref<number>(-1);
|
||||
const swipedex = ref<number>(-1);
|
||||
const menuIndexshow = ref<boolean>(false);
|
||||
const menuIndexshowsecond = ref<boolean>(false);
|
||||
const menuIndexshowfourth = ref<boolean>(false);
|
||||
|
|
|
|||
|
|
@ -5,13 +5,13 @@
|
|||
<leftcontent :list="arrlist" @navurl="navurl"></leftcontent>
|
||||
</view>
|
||||
<view class="boxrt">
|
||||
<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>
|
||||
<index :isShow="menuop == 0" v-if="swipdex == 0" @swip="swip"/>
|
||||
<material :isShow="menuop == 1" v-if="swipdex == 1"></material>
|
||||
<picking :isShow="menuop == 2" v-if="swipdex == 2"></picking>
|
||||
<finish :isShow="menuop == 3" v-if="swipdex == 3"></finish>
|
||||
<outbound :isShow="menuop == 4" v-if="swipdex == 4"></outbound>
|
||||
<retstock :isShow="menuop == 5" v-if="swipdex == 5"></retstock>
|
||||
<inventory :isShow="menuop == 6" v-if="swipdex == 6"></inventory>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -41,6 +41,7 @@
|
|||
{ name: '盘点', url: '/static/shouye/ck/p0.png', urls: '/static/shouye/ck/p1.png' ,type:'kf_pd'},
|
||||
])
|
||||
const menuop = ref(0)
|
||||
const swipdex = ref(0)
|
||||
// onMounted(() => {
|
||||
// // 处理响应式
|
||||
// navurl(0)
|
||||
|
|
@ -51,29 +52,51 @@
|
|||
const navurl = (e : number,v:any) => {
|
||||
// 最后一个直接返回
|
||||
console.log(v)
|
||||
menuop.value = -1
|
||||
menuop.value = -1;
|
||||
swipdex.value = -1;
|
||||
setTimeout(()=>{
|
||||
switch (v.type){
|
||||
case 'sy':
|
||||
menuop.value = 0
|
||||
swipdex.value = 0;
|
||||
setTimeout(()=>{
|
||||
menuop.value = 0
|
||||
},100)
|
||||
break;
|
||||
case 'kf_cg':
|
||||
menuop.value = 1
|
||||
swipdex.value = 1;
|
||||
setTimeout(()=>{
|
||||
menuop.value = 1
|
||||
},100)
|
||||
break;
|
||||
case 'kf_jh':
|
||||
menuop.value = 2
|
||||
swipdex.value = 2;
|
||||
setTimeout(()=>{
|
||||
menuop.value = 3
|
||||
},100)
|
||||
break;
|
||||
case 'kf_wj':
|
||||
menuop.value = 3
|
||||
swipdex.value = 3;
|
||||
setTimeout(()=>{
|
||||
menuop.value = 3
|
||||
},100)
|
||||
break;
|
||||
case 'kf_ql':
|
||||
menuop.value = 4
|
||||
swipdex.value = 4;
|
||||
setTimeout(()=>{
|
||||
menuop.value = 4
|
||||
},100)
|
||||
break;
|
||||
case 'kf_th':
|
||||
menuop.value = 5
|
||||
swipdex.value = 5;
|
||||
setTimeout(()=>{
|
||||
menuop.value = 5
|
||||
},100)
|
||||
break;
|
||||
case 'kf_pd':
|
||||
menuop.value = 6
|
||||
swipdex.value = 6;
|
||||
setTimeout(()=>{
|
||||
menuop.value = 6
|
||||
},100)
|
||||
break;
|
||||
case 'back':
|
||||
uni.navigateBack()
|
||||
|
|
|
|||
Loading…
Reference in New Issue