Merge branch 'main' of http://47.115.223.229:8888/yangjun/hldy_app_mini
This commit is contained in:
commit
6dc29c697d
|
|
@ -1357,6 +1357,10 @@
|
||||||
photoplay.value = true;
|
photoplay.value = true;
|
||||||
init();
|
init();
|
||||||
yulan();
|
yulan();
|
||||||
|
transition.value = false;
|
||||||
|
setTimeout(() => {
|
||||||
|
transition.value = true;
|
||||||
|
}, 50)
|
||||||
})
|
})
|
||||||
|
|
||||||
const changeallmessage = () => {
|
const changeallmessage = () => {
|
||||||
|
|
|
||||||
|
|
@ -311,7 +311,7 @@
|
||||||
const openleft = ref(false)
|
const openleft = ref(false)
|
||||||
|
|
||||||
const menutarget = ref(0)
|
const menutarget = ref(0)
|
||||||
|
const emit = defineEmits(['swip'])
|
||||||
const clickmenu = (index : number) => {
|
const clickmenu = (index : number) => {
|
||||||
menutarget.value = index
|
menutarget.value = index
|
||||||
let data = filteredMenu(0)[index]
|
let data = filteredMenu(0)[index]
|
||||||
|
|
@ -319,7 +319,8 @@
|
||||||
uni.setStorageSync('nuName', data.nuName);
|
uni.setStorageSync('nuName', data.nuName);
|
||||||
uni.setStorageSync('elderId', data.elderInfo ? data.elderInfo?.id : null);
|
uni.setStorageSync('elderId', data.elderInfo ? data.elderInfo?.id : null);
|
||||||
uni.setStorageSync('NUall', data);
|
uni.setStorageSync('NUall', data);
|
||||||
getgif()
|
getgif();
|
||||||
|
emit('swip')
|
||||||
}
|
}
|
||||||
const tagarray = ["市医保", "半失能", "正常计费"]
|
const tagarray = ["市医保", "半失能", "正常计费"]
|
||||||
|
|
||||||
|
|
@ -412,6 +413,7 @@
|
||||||
(newVal, oldVal) => {
|
(newVal, oldVal) => {
|
||||||
// 当旧值为false,新值为true时延迟0.2秒调用方法
|
// 当旧值为false,新值为true时延迟0.2秒调用方法
|
||||||
if (!oldVal && newVal) {
|
if (!oldVal && newVal) {
|
||||||
|
console.log(oldVal && newVal)
|
||||||
transition.value = false;
|
transition.value = false;
|
||||||
// console.log("????",transition.value)
|
// console.log("????",transition.value)
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
@ -459,8 +461,14 @@
|
||||||
setInterval(updateTime, 1000);
|
setInterval(updateTime, 1000);
|
||||||
photoplay.value = true;
|
photoplay.value = true;
|
||||||
getmenu();
|
getmenu();
|
||||||
getgif();
|
transition.value = false;
|
||||||
|
// console.log("????",transition.value)
|
||||||
|
setTimeout(() => {
|
||||||
|
transition.value = true;
|
||||||
|
// console.log("看看", uni.getStorageSync('NUall'))
|
||||||
|
}, 50)
|
||||||
})
|
})
|
||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
@ -470,6 +478,7 @@
|
||||||
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) {
|
||||||
menutarget.value = index
|
menutarget.value = index
|
||||||
|
clickmenu(menutarget.value)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}))
|
}))
|
||||||
|
|
@ -483,7 +492,7 @@
|
||||||
}
|
}
|
||||||
queryWorkCareList(data).then((res : any) => {
|
queryWorkCareList(data).then((res : any) => {
|
||||||
// console.log("看看图",res.result.records[0])
|
// 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)
|
// console.log("看看图",'https://www.focusnu.com/media/upFiles/'+indexmessage.value.previewFile)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<image src="/static/shouye/logo2.png" mode="aspectFill"></image>
|
<image src="/static/shouye/logo2.png" mode="aspectFill"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="cont">
|
<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">
|
<view class="tm guodu">
|
||||||
<image :src="i==dexleft?v.urls:v.url" mode="aspectFill" class="guodu"></image>
|
<image :src="i==dexleft?v.urls:v.url" mode="aspectFill" class="guodu"></image>
|
||||||
<text>{{v.name}}</text>
|
<text>{{v.name}}</text>
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -37,6 +37,10 @@
|
||||||
});
|
});
|
||||||
onMounted(()=>{
|
onMounted(()=>{
|
||||||
hometype.value = 0;
|
hometype.value = 0;
|
||||||
|
transition.value = false;
|
||||||
|
setTimeout(() => {
|
||||||
|
transition.value = true;
|
||||||
|
}, 50)
|
||||||
})
|
})
|
||||||
watch(
|
watch(
|
||||||
() => props.isShow,
|
() => props.isShow,
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,22 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="backgroundContainer">
|
<view class="backgroundContainer">
|
||||||
<!-- 左侧菜单 -->
|
<!-- 左侧菜单 -->
|
||||||
<leftcontent :list="tabbrarr" @navurl="navurl"></leftcontent>
|
<leftcontent :list="arrlist" @navurl="navurl"></leftcontent>
|
||||||
<!-- 主页 -->
|
<!-- 主页 -->
|
||||||
<index :isShow="menuIndexshow" v-if="!menuIndex" />
|
<index :isShow="menuIndex==0" v-if="menuIndex==0" @swip="swip"/>
|
||||||
<!-- 设备页 -->
|
|
||||||
<equipment :isShow="menuIndexshowfifth" v-if="menuIndex==4" />
|
|
||||||
<!-- 医嘱页 -->
|
|
||||||
<requestform :isShow="menuIndexshowfourth" v-if="menuIndex==3" />
|
|
||||||
<!-- 户嘱页 -->
|
<!-- 户嘱页 -->
|
||||||
<nurse :isshow="menuIndexshowsecond"
|
<nurse :isshow="menuIndex==1" v-if="menuIndex==1&&uni.getStorageSync('elderId')&&uni.getStorageSync('nuId')" />
|
||||||
v-if="menuIndex==1&&uni.getStorageSync('elderId')&&uni.getStorageSync('nuId')" />
|
|
||||||
<!-- 医嘱 -->
|
<!-- 医嘱 -->
|
||||||
<doctorask v-if="menuIndex==2&&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`}"
|
<view class="nomessageclass" :style="messageopit?{opacity: `1`}:{opacity: `0`}"
|
||||||
v-if="(menuIndex == 1 || menuIndex == 2) && (!uni.getStorageSync('elderId') ||!uni.getStorageSync('nuId'))">
|
v-if="(menuIndex == 1 || menuIndex == 2) && (!uni.getStorageSync('elderId') ||!uni.getStorageSync('nuId'))">
|
||||||
|
|
@ -23,8 +27,10 @@
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted, onBeforeUnmount, nextTick } from 'vue';
|
import { ref, onMounted, onBeforeUnmount, nextTick } from 'vue';
|
||||||
|
import { queryPadPageList ,getPermissionList } from '@/pages/watch/api/lunpan.js'
|
||||||
import index from "./component/index.vue"
|
import index from "./component/index.vue"
|
||||||
import equipment from "./component/equipment.vue"
|
import equipment from "./component/equipment.vue"
|
||||||
|
import logistics from "./component/nurse/logistics.vue"
|
||||||
import requestform from "./component/pleasetake/takehome.vue"
|
import requestform from "./component/pleasetake/takehome.vue"
|
||||||
import doctorask from "./component/doctorask/doctorask.vue"
|
import doctorask from "./component/doctorask/doctorask.vue"
|
||||||
import nurse from "./component/nurse/index.vue"
|
import nurse from "./component/nurse/index.vue"
|
||||||
|
|
@ -33,7 +39,7 @@
|
||||||
import leftcontent from "./component/leftcontent/leftcontent.vue"
|
import leftcontent from "./component/leftcontent/leftcontent.vue"
|
||||||
import defaultr from '@/pages/procurement/components/default.vue';
|
import defaultr from '@/pages/procurement/components/default.vue';
|
||||||
|
|
||||||
|
const listarr = ref([]);
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
menuIndex.value = -1;
|
menuIndex.value = -1;
|
||||||
nextTick(() => menuIndex.value = 0)
|
nextTick(() => menuIndex.value = 0)
|
||||||
|
|
@ -46,6 +52,9 @@
|
||||||
//缓存指令包
|
//缓存指令包
|
||||||
uni.setStorageSync("Packagelist", res.result)
|
uni.setStorageSync("Packagelist", res.result)
|
||||||
})
|
})
|
||||||
|
getPermissionList({employessId:uni.getStorageSync('userInfo').employessId}).then(res=>{
|
||||||
|
listarr.value = res.result;
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
// 通用的生成函数
|
// 通用的生成函数
|
||||||
|
|
@ -58,17 +67,104 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const tabbrarr = ref([
|
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' ,type:'hldy_hljz'},
|
||||||
{ 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' ,type:'hldy_yljz'},
|
||||||
{ 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' ,type:'hldy_xzjz'},
|
||||||
{ name: '行政', url: '/static/shouye/sy/l0.png', urls: '/static/shouye/sy/l1.png' },
|
{ name: '请领', url: '/static/shouye/sy/l0.png', urls: '/static/shouye/sy/l1.png' ,type:'kf_ql'},
|
||||||
{ 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' },
|
|
||||||
])
|
])
|
||||||
const navurl = (e) => {
|
const navurl = (e,v) => {
|
||||||
changeMenu(e)
|
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 menuIndex = ref<number>(-1);
|
||||||
const menuIndexshow = ref<boolean>(false);
|
const menuIndexshow = ref<boolean>(false);
|
||||||
|
|
@ -87,7 +183,7 @@
|
||||||
menuIndexshowsecond.value = false
|
menuIndexshowsecond.value = false
|
||||||
menuIndexshowfourth.value = false;
|
menuIndexshowfourth.value = false;
|
||||||
menuIndexshowfifth.value = false
|
menuIndexshowfifth.value = false
|
||||||
if (index === 5) {
|
if (index === arrlist.value.length-1) {
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
@ -110,6 +206,10 @@
|
||||||
case 4:
|
case 4:
|
||||||
menuIndexshowfifth.value = true;
|
menuIndexshowfifth.value = true;
|
||||||
break;
|
break;
|
||||||
|
case 5:
|
||||||
|
menuIndexshowfourth.value = true
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
}, 50)
|
}, 50)
|
||||||
|
|
|
||||||
|
|
@ -1325,6 +1325,14 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
onMounted(()=>{
|
||||||
|
firstgetqueryCgdList();
|
||||||
|
getSelectList();
|
||||||
|
transition.value = false;
|
||||||
|
setTimeout(() => {
|
||||||
|
transition.value = true;
|
||||||
|
}, 50)
|
||||||
|
})
|
||||||
const transition = ref(false)
|
const transition = ref(false)
|
||||||
const opencgr = ref(false);
|
const opencgr = ref(false);
|
||||||
const opengys = ref(false);
|
const opengys = ref(false);
|
||||||
|
|
|
||||||
|
|
@ -264,15 +264,15 @@
|
||||||
const openleft = ref(false)
|
const openleft = ref(false)
|
||||||
|
|
||||||
const menutarget = ref(0)
|
const menutarget = ref(0)
|
||||||
|
const emit = defineEmits(['swip'])
|
||||||
const clickmenu = (index : number) => {
|
const clickmenu = (index : number) => {
|
||||||
menutarget.value = index
|
menutarget.value = index
|
||||||
let data = filteredMenu(2)[index]
|
let data = filteredMenu(2)[index]
|
||||||
console.log("!!!!", data)
|
|
||||||
uni.setStorageSync('nuId', data.nuId);
|
uni.setStorageSync('nuId', data.nuId);
|
||||||
uni.setStorageSync('nuName', data.nuName);
|
uni.setStorageSync('nuName', data.nuName);
|
||||||
uni.setStorageSync('elderId', data.elderInfo ? data.elderInfo?.id : null);
|
uni.setStorageSync('elderId', data.elderInfo ? data.elderInfo?.id : null);
|
||||||
uni.setStorageSync('NUall', data);
|
uni.setStorageSync('NUall', data);
|
||||||
|
emit('swip')
|
||||||
}
|
}
|
||||||
const tagarray = ["市医保", "半失能", "正常计费"]
|
const tagarray = ["市医保", "半失能", "正常计费"]
|
||||||
|
|
||||||
|
|
@ -412,6 +412,10 @@
|
||||||
setInterval(updateTime, 1000);
|
setInterval(updateTime, 1000);
|
||||||
photoplay.value = true;
|
photoplay.value = true;
|
||||||
getmenu()
|
getmenu()
|
||||||
|
transition.value = false;
|
||||||
|
setTimeout(() => {
|
||||||
|
transition.value = true;
|
||||||
|
}, 50)
|
||||||
})
|
})
|
||||||
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);
|
||||||
|
|
@ -421,7 +425,8 @@
|
||||||
leftMenuArray.value = res.result.records;
|
leftMenuArray.value = res.result.records;
|
||||||
filteredMenu(2).forEach((element : any, index : number) => {
|
filteredMenu(2).forEach((element : any, index : number) => {
|
||||||
if (element.nuId === uni.getStorageSync('NUall').nuId) {
|
if (element.nuId === uni.getStorageSync('NUall').nuId) {
|
||||||
menutarget.value = index
|
menutarget.value = index;
|
||||||
|
clickmenu(index)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}))
|
}))
|
||||||
|
|
|
||||||
|
|
@ -2,16 +2,16 @@
|
||||||
<view>
|
<view>
|
||||||
<view class="flex">
|
<view class="flex">
|
||||||
<view class="left">
|
<view class="left">
|
||||||
<leftcontent :list="tabbrarr" @navurl="navurl"></leftcontent>
|
<leftcontent :list="arrlist" @navurl="navurl"></leftcontent>
|
||||||
</view>
|
</view>
|
||||||
<view class="boxrt">
|
<view class="boxrt">
|
||||||
<index :isShow="menuop==0" v-if="!ckindex" />
|
<index :isShow="menuop == 0" v-if="menuop == 0" @swip="swip"/>
|
||||||
<material :isShow="menuop == 1" v-if="ckindex == 1"></material>
|
<material :isShow="menuop == 1" v-if="menuop == 1"></material>
|
||||||
<picking :isShow="menuop == 2" v-if="ckindex == 2"></picking>
|
<picking :isShow="menuop == 2" v-if="menuop == 2"></picking>
|
||||||
<finish :isShow="menuop == 3" v-if="ckindex == 3"></finish>
|
<finish :isShow="menuop == 3" v-if="menuop == 3"></finish>
|
||||||
<outbound :isShow="menuop == 4" v-if="ckindex == 4"></outbound>
|
<outbound :isShow="menuop == 4" v-if="menuop == 4"></outbound>
|
||||||
<retstock :isShow="menuop == 5" v-if="ckindex == 5"></retstock>
|
<retstock :isShow="menuop == 5" v-if="menuop == 5"></retstock>
|
||||||
<inventory :isShow="menuop == 6" v-if="ckindex == 6"></inventory>
|
<inventory :isShow="menuop == 6" v-if="menuop == 6"></inventory>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted, onBeforeUnmount, nextTick } from 'vue';
|
import { ref, onMounted, onBeforeUnmount, nextTick } from 'vue';
|
||||||
import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app"
|
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 leftcontent from "@/pages/NursingNew/component/leftcontent/leftcontent.vue"
|
||||||
import material from "@/pages/procurement/material.vue";
|
import material from "@/pages/procurement/material.vue";
|
||||||
import index from "./component/index.vue"
|
import index from "./component/index.vue"
|
||||||
|
|
@ -32,38 +33,94 @@
|
||||||
import retstock from "@/pages/procurement/retstock.vue";
|
import retstock from "@/pages/procurement/retstock.vue";
|
||||||
|
|
||||||
const tabbrarr = ref([
|
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' ,type:'kf_cg'},
|
||||||
{ 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' ,type:'kf_jh'},
|
||||||
{ 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' ,type:'kf_wj'},
|
||||||
{ 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' ,type:'kf_ql'},
|
||||||
{ 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' ,type:'kf_th'},
|
||||||
{ 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' ,type:'kf_pd'},
|
||||||
{ 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' },
|
|
||||||
])
|
])
|
||||||
|
const menuop = ref(0)
|
||||||
const menuop = ref(-1)
|
|
||||||
// onMounted(() => {
|
// onMounted(() => {
|
||||||
// // 处理响应式
|
// // 处理响应式
|
||||||
// navurl(0)
|
// navurl(0)
|
||||||
// })
|
// })
|
||||||
onShow(()=>{
|
// onShow(()=>{
|
||||||
navurl(ckindex.value)
|
// navurl(0,arrlist[0])
|
||||||
})
|
// })
|
||||||
const ckindex = ref(0)
|
const navurl = (e : number,v:any) => {
|
||||||
const navurl = (e : number) => {
|
|
||||||
// 最后一个直接返回
|
// 最后一个直接返回
|
||||||
if (e === tabbrarr.value.length - 1) {
|
console.log(v)
|
||||||
uni.navigateBack()
|
|
||||||
return
|
|
||||||
}
|
|
||||||
ckindex.value = e;
|
|
||||||
// 这个是为了触发渐变动画
|
|
||||||
menuop.value = -1
|
menuop.value = -1
|
||||||
setTimeout(() => {
|
setTimeout(()=>{
|
||||||
menuop.value = e
|
switch (v.type){
|
||||||
}, 50)
|
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>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1075,6 +1075,14 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
onMounted(()=>{
|
||||||
|
firstgetqueryCgdList();
|
||||||
|
getSelectList();
|
||||||
|
transition.value = false;
|
||||||
|
setTimeout(() => {
|
||||||
|
transition.value = true;
|
||||||
|
}, 50)
|
||||||
|
})
|
||||||
const transition = ref(false)
|
const transition = ref(false)
|
||||||
const open = ref(0);
|
const open = ref(0);
|
||||||
const typechange = ref(0);
|
const typechange = ref(0);
|
||||||
|
|
|
||||||
|
|
@ -275,12 +275,19 @@
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const transition = ref(false);
|
const transition = ref(false);
|
||||||
|
onMounted(() => {
|
||||||
|
chongzhi()
|
||||||
|
getSelectList();
|
||||||
|
transition.value = false;
|
||||||
|
setTimeout(() => {
|
||||||
|
transition.value = true;
|
||||||
|
}, 50)
|
||||||
|
})
|
||||||
watch(
|
watch(
|
||||||
() => props.isShow,
|
() => props.isShow,
|
||||||
(newVal, oldVal) => {
|
(newVal, oldVal) => {
|
||||||
if (!oldVal && newVal) {
|
if (!oldVal && newVal) {
|
||||||
chongzhi()
|
|
||||||
getSelectList();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -186,23 +186,42 @@
|
||||||
type: Boolean
|
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(
|
watch(
|
||||||
() => props.isShow,
|
() => props.isShow,
|
||||||
(newVal, oldVal) => {
|
(newVal, oldVal) => {
|
||||||
if (!oldVal && newVal) {
|
if (!oldVal && newVal) {
|
||||||
form.pageNo = 1;
|
form.pageNo = 1;
|
||||||
warn.pageNo = 1;
|
warn.pageNo = 1;
|
||||||
Material.value = [];
|
Material.value = [];
|
||||||
InvoicingList.value = [];
|
InvoicingList.value = [];
|
||||||
moredex.value = 0;
|
moredex.value = 0;
|
||||||
shoppcar();
|
shoppcar();
|
||||||
getWaringMaterial()
|
getWaringMaterial()
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
chongzhi()
|
chongzhi()
|
||||||
})
|
})
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
timeout.value = true
|
timeout.value = true
|
||||||
},500)
|
},500)
|
||||||
transition.value = false;
|
transition.value = false;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
transition.value = true;
|
transition.value = true;
|
||||||
|
|
|
||||||
|
|
@ -281,6 +281,10 @@
|
||||||
)
|
)
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
firstgetqueryCgdList();
|
firstgetqueryCgdList();
|
||||||
|
transition.value = false;
|
||||||
|
setTimeout(() => {
|
||||||
|
transition.value = true;
|
||||||
|
}, 50)
|
||||||
})
|
})
|
||||||
const lanjie = ref(false);
|
const lanjie = ref(false);
|
||||||
|
|
||||||
|
|
@ -374,9 +378,7 @@
|
||||||
alltotal.value = res.result.total
|
alltotal.value = res.result.total
|
||||||
if (res.result.records.length) {
|
if (res.result.records.length) {
|
||||||
rightdonghua.value = false;
|
rightdonghua.value = false;
|
||||||
|
|
||||||
queryQldWlInfo({ qldNo: res.result.records[0].qldNo }).then((element : any) => {
|
queryQldWlInfo({ qldNo: res.result.records[0].qldNo }).then((element : any) => {
|
||||||
console.log(element.result)
|
|
||||||
rightarray.value = []
|
rightarray.value = []
|
||||||
rightarray.value.push(...element.result)
|
rightarray.value.push(...element.result)
|
||||||
rightdonghua.value = true;
|
rightdonghua.value = true;
|
||||||
|
|
@ -641,6 +643,7 @@
|
||||||
// padding: 2vw;
|
// padding: 2vw;
|
||||||
padding-left: 1vw;
|
padding-left: 1vw;
|
||||||
padding-top: 1.5vh;
|
padding-top: 1.5vh;
|
||||||
|
width: 90vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
.right-container-tem {
|
.right-container-tem {
|
||||||
|
|
|
||||||
|
|
@ -194,6 +194,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
const serverUrl = ref(uni.getStorageSync('serverUrl') + '/sys/common/static/')
|
const serverUrl = ref(uni.getStorageSync('serverUrl') + '/sys/common/static/')
|
||||||
const opendata = ref(false);
|
const opendata = ref(false);
|
||||||
const form = reactive({
|
const form = reactive({
|
||||||
|
|
@ -210,6 +211,10 @@
|
||||||
const carnum = ref(0)
|
const carnum = ref(0)
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
thlist()
|
thlist()
|
||||||
|
transition.value = false;
|
||||||
|
setTimeout(() => {
|
||||||
|
transition.value = true;
|
||||||
|
}, 50)
|
||||||
})
|
})
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
ritbot();
|
ritbot();
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,18 @@ export const movedirection = (direction,startOrNot) => {
|
||||||
|
|
||||||
|
|
||||||
// 获取护理单元
|
// 获取护理单元
|
||||||
export const queryPadPageList = () => {
|
export const queryPadPageList = (params) => {
|
||||||
return request({
|
return request({
|
||||||
url: `${uni.getStorageSync('serverUrl')}/api/pad/baseInfo/queryPadPageList`,
|
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,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
export {
|
||||||
camera as default
|
camera as default
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
export {
|
||||||
fullcamera as default
|
fullcamera as default
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue