From 6bbe0377eada8f53c074151085ffd1228e75f9fc Mon Sep 17 00:00:00 2001 From: wangweidong <850489345@qq.com> Date: Wed, 15 Apr 2026 15:36:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 7 + pages/NursingNew/component/index.vue | 4 +- pages/NursingNew/component/nurse/newindex.vue | 5 +- pages/NursingNew/index.vue | 25 +- pages/login/newanimationpage.vue | 8 +- pages/material/component/carditem.vue | 559 ++++++++++++++++++ pages/material/material.vue | 284 +++++++++ 7 files changed, 873 insertions(+), 19 deletions(-) create mode 100644 pages/material/component/carditem.vue create mode 100644 pages/material/material.vue diff --git a/pages.json b/pages.json index cba22e3..55c4c34 100644 --- a/pages.json +++ b/pages.json @@ -235,6 +235,13 @@ { "navigationBarTitleText" : "" } + }, + { + "path" : "pages/material/material", + "style" : + { + "navigationBarTitleText" : "" + } } ], "globalStyle": { diff --git a/pages/NursingNew/component/index.vue b/pages/NursingNew/component/index.vue index c9aae0a..64b2187 100644 --- a/pages/NursingNew/component/index.vue +++ b/pages/NursingNew/component/index.vue @@ -433,7 +433,7 @@ fwzlarr.value.forEach(item=>{ item.obj = parseDirectiveName(item.directiveName) }) - console.log(fwzlarr.value) + // console.log(fwzlarr.value) }) } const parseDirectiveName=(directiveName)=> { @@ -640,7 +640,7 @@ queryPadPageList().then((res => { if(props.kf=='0'){ leftMenuArray.value = res.result.records; - console.log(leftMenuArray.value) + // console.log(leftMenuArray.value) filteredMenu('izHldy').forEach((element : any, index : number) => { if (element.nuId === uni.getStorageSync('NUall').nuId) { menutarget.value = index; diff --git a/pages/NursingNew/component/nurse/newindex.vue b/pages/NursingNew/component/nurse/newindex.vue index bed81c5..09f5160 100644 --- a/pages/NursingNew/component/nurse/newindex.vue +++ b/pages/NursingNew/component/nurse/newindex.vue @@ -1067,7 +1067,7 @@ optTime: ts, instructionTagId:typearray.value[whitchtype.value]?.instructionType } - // console.log("啥情况data", data) + console.log("啥情况data", data) editDirective(data).then((res) => { // console.log("啥情况1111", res) if (res.success) { @@ -1352,7 +1352,8 @@ infoValue.startTime = timearr.value[indexsave.value[0]].children[indexsave.value[1]].startTime; infoValue.endTime = timearr.value[indexsave.value[0]].children[indexsave.value[1]].endTime; infoValue.instructionTagId = typearray.value[whitchtype.value]?.instructionType - + console.log(infoValue) + console.log(timearr.value[indexsave.value[0]]) editDirective(infoValue).then((res : any) => { if (res.success) { geteverything() diff --git a/pages/NursingNew/index.vue b/pages/NursingNew/index.vue index 6ebf538..8dc9fcf 100644 --- a/pages/NursingNew/index.vue +++ b/pages/NursingNew/index.vue @@ -71,26 +71,26 @@ - + + - - - - - - - + + + + - + @@ -116,6 +116,7 @@ import material from "@/pages/procurement/material.vue"; + import wuliao from "@/pages/material/material.vue"; import materialcar from "@/pages/procurement/materialcar.vue"; import purchaseorder from "@/pages/procurement/purchaseorder.vue"; import picking from "@/pages/Warehouse/picking.vue"; @@ -190,10 +191,11 @@ { name: '库存盘点', url: '/static/shouye/ck/p0.png', urls: '/static/shouye/ck/p1.png', menuCode: 'jcgn_kcpd' }, { name: '请领出库', url: '/static/shouye/ck/q0.png', urls: '/static/shouye/ck/q1.png', menuCode: 'jcgn_qlck' }, { name: '退货入库', url: '/static/shouye/ck/t0.png', urls: '/static/shouye/ck/t1.png', menuCode: 'jcgn_qlrk' }, - { name: '物联', url: '/static/shouye/sy/g0.png', urls: '/static/shouye/sy/g1.png', menuCode: 'jcgn_wisb' } + { name: '物联', url: '/static/shouye/sy/g0.png', urls: '/static/shouye/sy/g1.png', menuCode: 'jcgn_wlsb' } ]) const specialPage = ref('') const navurl = (e, v) => { + if(swipedex.value == v.menuCode){return} swipedex.value = ''; specialPage.value = '' @@ -205,7 +207,6 @@ menuIndex.value = v.menuCode; }, 100) } - } const arrlist = ref([ { name: '首页', url: '/static/shouye/sy/h0.png', urls: '/static/shouye/sy/h1.png', menuCode: 'jcgn_sy' }, @@ -255,6 +256,7 @@ // 变更菜单 const changeMenu = (index) => { + console.log(index) if (index === menuIndex.value) { return } @@ -262,6 +264,7 @@ setTimeout(()=>{ swipedex.value = index; },50) + console.log(swipedex.value,menuIndex.value) }; const clientX = ref(0); const clientY = ref(0); diff --git a/pages/login/newanimationpage.vue b/pages/login/newanimationpage.vue index 6431aa2..ccdd96c 100644 --- a/pages/login/newanimationpage.vue +++ b/pages/login/newanimationpage.vue @@ -173,8 +173,8 @@ } }) }); - const filteredMenu = (index : number) => { - return leftMenuArray.value.filter(item => Number(item.areaFlag) - 1 == index); + const filteredMenu = (code : any) => { + return leftMenuArray.value.filter(item => item[code] == 'Y'); } const ondoorarray = genPaths( @@ -288,7 +288,7 @@ housedex.value = index; if (index == 0) { - let data = filteredMenu(0)[0] + let data = filteredMenu('izHldy')[0] if (!data) { uni.showToast({ title: '暂无单元数据', // 文案要短 @@ -324,7 +324,7 @@ }) } if (index == 4) { - let data = filteredMenu(2)[0] + let data = filteredMenu('izKf')[0] if (!data) { uni.showToast({ title: '暂无库房数据', // 文案要短 diff --git a/pages/material/component/carditem.vue b/pages/material/component/carditem.vue new file mode 100644 index 0000000..6e889c6 --- /dev/null +++ b/pages/material/component/carditem.vue @@ -0,0 +1,559 @@ + + + + + + \ No newline at end of file diff --git a/pages/material/material.vue b/pages/material/material.vue new file mode 100644 index 0000000..9370add --- /dev/null +++ b/pages/material/material.vue @@ -0,0 +1,284 @@ + + + + +