|
@@ -329,6 +329,8 @@
|
|
|
|
|
|
function checkLotCode(lotCode) {
|
|
function checkLotCode(lotCode) {
|
|
var lotCodes = lotList.value.map(obj => obj.lotCode)
|
|
var lotCodes = lotList.value.map(obj => obj.lotCode)
|
|
|
|
+ console.log(lotCodes.includes(lotCode))
|
|
|
|
+ console.log(lotCodes)
|
|
if (lotCodes.includes(lotCode)) {
|
|
if (lotCodes.includes(lotCode)) {
|
|
for (let i = 0; i < lotList.value.length; i++) {
|
|
for (let i = 0; i < lotList.value.length; i++) {
|
|
if (lotList.value[i].lotCode == lotCode) {
|
|
if (lotList.value[i].lotCode == lotCode) {
|
|
@@ -372,6 +374,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
function getAbnormalList(lotCode) {
|
|
function getAbnormalList(lotCode) {
|
|
|
|
+ console.log(store.normalStatus)
|
|
if (store.normalStatus) {
|
|
if (store.normalStatus) {
|
|
getAbnormalityLot({
|
|
getAbnormalityLot({
|
|
productionPlanDetailId: store.planDetails.id,
|
|
productionPlanDetailId: store.planDetails.id,
|
|
@@ -387,6 +390,13 @@
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|
|
return false;
|
|
return false;
|
|
|
|
+ }else{
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon: "none",
|
|
|
|
+ title: "该批次号已被使用或不属于该产品",
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ return false;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
@@ -409,6 +419,13 @@
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|
|
return false;
|
|
return false;
|
|
|
|
+ }else{
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon: "none",
|
|
|
|
+ title: "该批次号已被使用或不属于该产品",
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ return false;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
uni.showToast({
|
|
uni.showToast({
|