小程序添加扫码

This commit is contained in:
Ledo 2025-07-10 09:22:13 +08:00
parent 7bb9f39f49
commit 8d8f917e44
4 changed files with 33 additions and 26 deletions

View File

@ -79,17 +79,20 @@
historyList.value = data.list
isShowEnd.value = true;
isShowStart.value = true
if (historyList.value.length) {
if (historyList.value.length) {
const obj = historyList.value[0]
console.log('s')
if (!obj?.amount) {
if (obj.amount !=null && obj.amount >= 0 ) {
isShowStart.value = true
}else{
isShowStart.value = false
}
}
if (historyList.value.length) {
const obj = historyList.value[0]
if (obj?.amount) {
if (obj.amount !=null && obj.amount >= 0 ) {
isShowEnd.value = false
}else{
isShowEnd.value = true
}
} else {
isShowEnd.value = false

View File

@ -86,15 +86,15 @@ onShow(async () => {
})
const handleDetail = async(item) => {
var isoverBefore= await isOverBeforeProcedure(item.id);
if(isoverBefore == true){
uni.showToast({
title: '上一道工序尚未完成报工!',
icon: 'none',
duration: 2000,
})
return
}
// var isoverBefore= await isOverBeforeProcedure(item.id);
// if(isoverBefore == true){
// uni.showToast({
// title: '',
// icon: 'none',
// duration: 2000,
// })
// return
// }
const url = `/pages/assembleReport/assembleReport-detail?id=${item.id}`
uni.navigateTo({ url })
}

View File

@ -105,15 +105,15 @@ onShow(async () => {
});
const handleDetail = async (item) => {
var isoverBefore = await isOverBeforeProcedure(item.id);
if (isoverBefore == true) {
uni.showToast({
title: noticeMsg.value,
icon: "none",
duration: 2000,
});
return;
}
// var isoverBefore = await isOverBeforeProcedure(item.id);
// if (isoverBefore == true) {
// uni.showToast({
// title: noticeMsg.value,
// icon: "none",
// duration: 2000,
// });
// return;
// }
const url = `/pages/productionReport/productionReport-detail?id=${item.id}`;
uni.navigateTo({ url });
};

View File

@ -84,14 +84,18 @@
isShowStart.value = true
if (historyList.value.length) {
const obj = historyList.value[0]
if (!obj?.amount) {
if (obj.amount !=null && obj.amount >= 0 ) {
isShowStart.value = true
}else{
isShowStart.value = false
}
}
if (historyList.value.length) {
const obj = historyList.value[0]
if (obj?.amount) {
if (obj.amount !=null && obj.amount >= 0 ) {
isShowEnd.value = false
}else{
isShowEnd.value = true
}
} else {
isShowEnd.value = false