|
@@ -51,6 +51,8 @@
|
|
|
isNormalLot.value = true
|
|
|
if (!data) {
|
|
|
isNormalLot.value = false
|
|
|
+ } else {
|
|
|
+ isNormalLot.value = true
|
|
|
}
|
|
|
console.log(isNormalLot.value)
|
|
|
Promise.all([getProcessList({
|
|
@@ -65,8 +67,8 @@
|
|
|
deptId: store.curDeptDetails.deptId
|
|
|
})
|
|
|
])
|
|
|
- .then(([res, response,resp]) => {
|
|
|
- if (resp.code == 200) {
|
|
|
+ .then(([res, response, resp]) => {
|
|
|
+ if (res.code == 200 && response.code === 200 && resp.code === 200) {
|
|
|
dayworkCarrierlist.value = response.data
|
|
|
//过滤出工序交集
|
|
|
let filteredData = resp.data.filter((item1) =>
|
|
@@ -83,13 +85,14 @@
|
|
|
value: filteredData[i].processId,
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
- console.log(processList.value)
|
|
|
- /* 处理结果格式 */
|
|
|
- carrierList.value = changeResultStructure(response.data)
|
|
|
- baseDialog.value.open();
|
|
|
+ }
|
|
|
+ console.log(processList.value)
|
|
|
+ /* 处理结果格式 */
|
|
|
+ carrierList.value = changeResultStructure(response.data)
|
|
|
+ baseDialog.value.open();
|
|
|
}
|
|
|
else {
|
|
|
+ // console.log(res, resp, response)
|
|
|
uni.showToast({
|
|
|
icon: "error",
|
|
|
title: "没有周转到该工段批次",
|