|
@@ -165,6 +165,8 @@ import {
|
|
|
processesByRouteId,
|
|
|
saveProcessInRoute,
|
|
|
} from "@/api/craft/route/index";
|
|
|
+
|
|
|
+import { opExcelPage } from "@/api/craft/opExcel";
|
|
|
const prodtCode = ref("");
|
|
|
const routerId = ref("");
|
|
|
const router = useRouter();
|
|
@@ -378,7 +380,15 @@ const onUpdate = () => {
|
|
|
selectIndex.value = -1;
|
|
|
};
|
|
|
|
|
|
-const clickDelete = (index) => {
|
|
|
+const clickDelete = async (index) => {
|
|
|
+ if (selectProComs.value[index].compentType === "operationExcel") {
|
|
|
+ let operationId = route.fullPath.split("/")[4];
|
|
|
+ let res = await opExcelPage(operationId);
|
|
|
+ if (res.data.totalCount > 0) {
|
|
|
+ ElMessage.error("请先删除工序表单数据!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
selectProComs.value.splice(index, 1);
|
|
|
selectIndex.value = -1;
|
|
|
isChanged.value = true;
|