|
@@ -366,6 +366,7 @@ import { exportDataInfo } from "@/api/order";
|
|
import { getJobInfo, getWorkshopData } from "@/api/report";
|
|
import { getJobInfo, getWorkshopData } from "@/api/report";
|
|
import ButtonPermKeys from "@/common/configs/buttonPermission";
|
|
import ButtonPermKeys from "@/common/configs/buttonPermission";
|
|
import { updateWorkOrderInfo } from "@/api/plan";
|
|
import { updateWorkOrderInfo } from "@/api/plan";
|
|
|
|
+import {ElMessageBox} from "element-plus";
|
|
const { isShowTable, tableType } = toRefs(useCommonStoreHook());
|
|
const { isShowTable, tableType } = toRefs(useCommonStoreHook());
|
|
const updateTitle = ref("生产随工单");
|
|
const updateTitle = ref("生产随工单");
|
|
const workshopName = ref("");
|
|
const workshopName = ref("");
|
|
@@ -385,6 +386,11 @@ const showProExcel = async (id) => {
|
|
};
|
|
};
|
|
|
|
|
|
const scrap =(val)=>{
|
|
const scrap =(val)=>{
|
|
|
|
+ ElMessageBox.confirm("报废后所有操作不可回退, 是否确认报废?", "提示", {
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
+ type: "warning",
|
|
|
|
+ }).then(async () => {
|
|
scrapWorkOrder({workOrderId:val}).then(
|
|
scrapWorkOrder({workOrderId:val}).then(
|
|
(res)=>{
|
|
(res)=>{
|
|
if(res.code==='200'){
|
|
if(res.code==='200'){
|
|
@@ -393,6 +399,7 @@ const scrap =(val)=>{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
)
|
|
)
|
|
|
|
+ });
|
|
}
|
|
}
|
|
const exportDataZip = async (id) => {
|
|
const exportDataZip = async (id) => {
|
|
exportDataInfo(1, id).then((response) => {
|
|
exportDataInfo(1, id).then((response) => {
|