add 混料批次
This commit is contained in:
@@ -164,7 +164,7 @@ export default {
|
||||
},
|
||||
|
||||
/** 处理 表格操作 */
|
||||
handleOperate({ type, data }) {
|
||||
handleOperate({ type, data, toRouter }) {
|
||||
console.log("payload", type, data);
|
||||
// 编辑、删除、跳转路由、打开弹窗(动态component)都可以在配置里加上 url
|
||||
// payload: { type: string, data: string | number | object }
|
||||
@@ -209,6 +209,15 @@ export default {
|
||||
this.openDialog(data, true);
|
||||
break;
|
||||
}
|
||||
case 'view-batch': {
|
||||
this.$router.push({
|
||||
name: toRouter,
|
||||
params: {
|
||||
id: data // 混料订单id
|
||||
}
|
||||
})
|
||||
break;
|
||||
}
|
||||
case "detach": {
|
||||
return this.$http
|
||||
.post(this.urls.detach, data /* { id: data } */, { headers: { "Content-Type": "application/json" } })
|
||||
|
||||
@@ -36,7 +36,7 @@ export default function () {
|
||||
subcomponent: TableOperaionComponent,
|
||||
options: [
|
||||
{ name: "edit", label: "编辑", emitFull: true },
|
||||
{ name: "view-batch", label: "查看批次", color: "#ff8000" },
|
||||
{ name: "view-batch", label: "查看批次", color: "#ff8000", toRouter: 'pms-blenderBatch' }, // 路由跳转至 pms-blenderBatch
|
||||
{ name: "detach", label: "下发", color: "#099" },
|
||||
], // , url: '/pms/trans/pressDeli' }]
|
||||
// options: ["copy", "edit", { name: "delete", emitFull: true, permission: "pms:blenderStep:delete" }],
|
||||
|
||||
Reference in New Issue
Block a user