小程序添加扫码
This commit is contained in:
parent
7bb9f39f49
commit
8d8f917e44
@ -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) {
|
||||
isShowStart.value = false
|
||||
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
|
||||
|
@ -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 })
|
||||
}
|
||||
|
@ -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 });
|
||||
};
|
||||
|
@ -84,14 +84,18 @@
|
||||
isShowStart.value = true
|
||||
if (historyList.value.length) {
|
||||
const obj = historyList.value[0]
|
||||
if (!obj?.amount) {
|
||||
isShowStart.value = false
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user