生产排产增加删除
This commit is contained in:
parent
ca3dc29097
commit
763ed6a5c2
@ -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
|
||||||
|
})
|
||||||
|
}
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user