生产排产增加删除

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