生产排产增加删除

This commit is contained in:
打豆豆 2024-03-22 17:21:29 +08:00
parent ca3dc29097
commit 763ed6a5c2
2 changed files with 26 additions and 16 deletions

View File

@ -60,3 +60,12 @@ export function listItems(query) {
params: query
})
}
// 删除
export function deleteShopFace(data) {
return request({
url: '/mes/pro/workorder/deleteShopFace',
method: 'post',
data: data
})
}

View File

@ -461,6 +461,7 @@ import {
delWorkorder,
addWorkorder,
updateWorkorder,
deleteShopFace,
} from "@/api/mes/pro/workorder";
import { listGanttTaskList } from "@/api/mes/pro/protask";
import { listProductprocess } from "@/api/mes/pro/routeprocess";
@ -694,21 +695,21 @@ export default {
},
//
handleSuspended(row) {
// const workorderIds = row.workorderId || this.ids;
// this.$modal
// .confirm("")
// .then(function () {
// return dofinish(workorderIds); //
// })
// .then(() => {
// if (res.data.code === 200) {
// this.getList();
// this.$modal.msgSuccess("");
// } else {
// this.$message.error(res.data.msg);
// }
// })
// .catch(() => {});
const workorderId = row.workorderId || this.ids;
this.$modal
.confirm("确认删除数据项?")
.then(() => {
deleteShopFace({workorderId:workorderId}).then((response) => {
console.log(response);
if (response.code === 200) {
this.getList();
this.$modal.msgSuccess("删除成功");
} else {
this.$message.error(res.msg);
}
});
})
.catch(() => {});
},
selectable(row, index) {