Compare commits
No commits in common. "4b36343ddefd0c6ec7d175eb1607ee29ae39f90e" and "1bcd5ca284d4f9be0d91ced21310dd40145abce3" have entirely different histories.
4b36343dde
...
1bcd5ca284
|
|
@ -212,13 +212,6 @@
|
||||||
{
|
{
|
||||||
"navigationBarTitleText" : ""
|
"navigationBarTitleText" : ""
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"path" : "pages/procurement/outbound",
|
|
||||||
"style" :
|
|
||||||
{
|
|
||||||
"navigationBarTitleText" : ""
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// {
|
// {
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,8 @@
|
||||||
<!-- 采购增加层级高度方便点击 -->
|
<!-- 采购增加层级高度方便点击 -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="annotation" :class="'annotation'+(i+1)" v-for="(v,i) in ['付款','采购','拣货','完结','护理单元','监控室','请领出库','退货入库']"
|
<view class="annotation" :class="'annotation'+(i+1)" v-for="(v,i) in ['付款','采购','拣货','完结','护理单元','监控室']"
|
||||||
:key='i' @click.stop="housactive(i)">
|
:key='i' @click="onlyjump(i)">
|
||||||
<view> </view>
|
<view> </view>
|
||||||
<view class="tp">
|
<view class="tp">
|
||||||
<text>{{v}}</text>
|
<text>{{v}}</text>
|
||||||
|
|
@ -34,6 +34,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view @click="onlyjump(5)" class="zhanwei"></view>
|
<view @click="onlyjump(5)" class="zhanwei"></view>
|
||||||
|
|
||||||
|
<!-- <arrowkeys @movecard="movecard" :getblue="getblue" :moveleft="45" /> -->
|
||||||
<view class="operationbtn">
|
<view class="operationbtn">
|
||||||
<view v-for="(v,i) in ['请领出库','退货入库','库存盘点','实时监控']" @tap="onTap(i)"
|
<view v-for="(v,i) in ['请领出库','退货入库','库存盘点','实时监控']" @tap="onTap(i)"
|
||||||
:class="beblue === i ? 'click-box-target' : 'click-box'">
|
:class="beblue === i ? 'click-box-target' : 'click-box'">
|
||||||
|
|
@ -58,86 +59,106 @@
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const housedex = ref(-1);
|
const housedex = ref(-1);
|
||||||
const lastTap = ref(0)
|
|
||||||
const DOUBLE_TAP_DELAY = 300;
|
|
||||||
const setout = ref(null)
|
|
||||||
const housactive = (index : number) => {
|
const housactive = (index : number) => {
|
||||||
housedex.value = index;
|
console.log("点击哪个了",index)
|
||||||
const now = Date.now()
|
if (index > 5) { return }
|
||||||
if (now - lastTap.value < DOUBLE_TAP_DELAY) {
|
if(housedex.value == index){
|
||||||
// 双击成立
|
if (housedex.value == 0) {
|
||||||
clearTimeout(setout.value)
|
navurl.value = 'pages/Warehouse/paymoney'
|
||||||
if (index == 0) {
|
uni.navigateTo({
|
||||||
navurl.value = 'pages/Warehouse/paymoney'
|
url: '/' + navurl.value
|
||||||
uni.navigateTo({
|
})
|
||||||
url: '/' + navurl.value
|
|
||||||
})
|
|
||||||
}
|
|
||||||
if (index == 1) {
|
|
||||||
navurl.value = 'pages/procurement/material'
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/' + navurl.value
|
|
||||||
})
|
|
||||||
}
|
|
||||||
if (index == 2) {
|
|
||||||
navurl.value = 'pages/Warehouse/picking'
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/' + navurl.value
|
|
||||||
})
|
|
||||||
}
|
|
||||||
if (index == 3) {
|
|
||||||
navurl.value = 'pages/Warehouse/finish'
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/' + navurl.value
|
|
||||||
})
|
|
||||||
}
|
|
||||||
if (index === 5) {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: "/pages/watch/full"
|
|
||||||
})
|
|
||||||
}
|
|
||||||
if (index ==6) {
|
|
||||||
navurl.value = 'pages/procurement/outbound?code=0'
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/' + navurl.value
|
|
||||||
})
|
|
||||||
}
|
|
||||||
if (index ==7) {
|
|
||||||
navurl.value = 'pages/procurement/outbound?code=1'
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/' + navurl.value
|
|
||||||
})
|
|
||||||
}
|
|
||||||
// 重置,避免多次触发
|
|
||||||
lastTap.value = 0
|
|
||||||
} else {
|
|
||||||
setout.value = setTimeout(()=>{
|
|
||||||
console.log("点击哪个了",index)
|
|
||||||
if (index === 5) {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: "/pages/watch/full"
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
},DOUBLE_TAP_DELAY)
|
|
||||||
// 记录本次时间,等待下次点击
|
|
||||||
lastTap.value = now
|
|
||||||
}
|
}
|
||||||
|
if (housedex.value == 1) {
|
||||||
|
navurl.value = 'pages/procurement/material'
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/' + navurl.value
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if (housedex.value == 2) {
|
||||||
|
navurl.value = 'pages/Warehouse/picking'
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/' + navurl.value
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if (housedex.value == 3) {
|
||||||
|
navurl.value = 'pages/Warehouse/finish'
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/' + navurl.value
|
||||||
|
})
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
housedex.value = index;
|
||||||
|
// console.log("index", index)
|
||||||
|
// 只有中心的四个有动画.....所以点不到监控室
|
||||||
|
if (index === 5) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pages/watch/full"
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
housedex.value = 1
|
housedex.value = 1
|
||||||
})
|
})
|
||||||
const navurl = ref('');
|
const navurl = ref('');
|
||||||
|
const movecard = (type : number) => {
|
||||||
|
// console.log(type,housedex.value)
|
||||||
|
switch (type) {
|
||||||
|
case 0:
|
||||||
|
// 上
|
||||||
|
housedex.value > 0 ? housedex.value-- : housedex.value = 3
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
housedex.value > 2 ? housedex.value = 0 : housedex.value++
|
||||||
|
// →
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
housedex.value > 2 ? housedex.value = 0 : housedex.value++
|
||||||
|
// 下
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
housedex.value > 0 ? housedex.value-- : housedex.value = 3
|
||||||
|
// ←
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
// 确定
|
||||||
|
// console.log('选中' + housedex.value)
|
||||||
|
if (housedex.value == 1) {
|
||||||
|
navurl.value = 'pages/Warehouse/procurement'
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/' + navurl.value
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if (housedex.value == 2) {
|
||||||
|
navurl.value = 'pages/Warehouse/picking'
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/' + navurl.value
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if (housedex.value == 3) {
|
||||||
|
navurl.value = 'pages/Warehouse/finish'
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/' + navurl.value
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: '/' + navurl.value
|
||||||
|
// })
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
// 返回
|
||||||
|
uni.navigateBack()
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
const onlyjump = (index : number) => {
|
const onlyjump = (index : number) => {
|
||||||
console.log("点击了哪个图标", index)
|
console.log("点击了哪个图标", index)
|
||||||
if (index > 5) {
|
if (index > 5) { return }
|
||||||
navurl.value = 'pages/Warehouse/finish'
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/' + navurl.value
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (index < 4) {
|
if (index < 4) {
|
||||||
housedex.value = index;
|
housedex.value = index;
|
||||||
}
|
}
|
||||||
|
|
@ -491,14 +512,6 @@
|
||||||
top: 24vw;
|
top: 24vw;
|
||||||
right: 6vw;
|
right: 6vw;
|
||||||
}
|
}
|
||||||
.annotation7 {
|
|
||||||
top: 62vh;
|
|
||||||
left: 40vw;
|
|
||||||
}
|
|
||||||
.annotation8 {
|
|
||||||
top: 5vh;
|
|
||||||
left: 28vw;
|
|
||||||
}
|
|
||||||
|
|
||||||
// title
|
// title
|
||||||
.annotation {
|
.annotation {
|
||||||
|
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
<template>
|
|
||||||
<view>
|
|
||||||
<view
|
|
||||||
style="
|
|
||||||
width: 100%;
|
|
||||||
height: 100vh;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
font-size: 2vw;">
|
|
||||||
{{code==0?'请领出库':'退货入库'}}
|
|
||||||
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
onLoad(e) {
|
|
||||||
this.code = e.code
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
code:0
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="less">
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -577,7 +577,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