|
@@ -267,6 +267,8 @@ const seqVal = ref("");
|
|
|
const snVal = ref(null);
|
|
|
const selectProduct = async (index) => {
|
|
|
taskIndex.value = index;
|
|
|
+ selectIndex.value = 0;
|
|
|
+ //设置数据
|
|
|
store.odersData.workOrderCode =
|
|
|
taskArray.value[taskIndex.value].workOrderCode;
|
|
|
store.processInfo.materialName =
|
|
@@ -287,7 +289,7 @@ const selectProduct = async (index) => {
|
|
|
ElMessage.warning("暂无操作步骤");
|
|
|
}
|
|
|
if (snVal.value != null) {
|
|
|
- await getScanData();
|
|
|
+ await init(0);
|
|
|
} else {
|
|
|
ElMessage.warning("当前工序暂不可操作");
|
|
|
}
|
|
@@ -456,6 +458,7 @@ const init = async (index) => {
|
|
|
return;
|
|
|
}
|
|
|
selectStepIndex.value = index != null ? index : 0;
|
|
|
+ //数据设置
|
|
|
store.odersData.operationId =
|
|
|
taskArray.value[taskIndex.value].ops[selectStepIndex.value].operationId;
|
|
|
store.processInfo.operationCode =
|