金蝶工序计划

This commit is contained in:
tzy 2026-04-13 20:24:41 +08:00
parent 4b5ee02ba3
commit 15a8edaa39
3 changed files with 27 additions and 1 deletions

View File

@ -45,6 +45,12 @@ export const constantRoutes = [
{ {
path: '/system/productionPlan', path: '/system/productionPlan',
component: () => import('@/views/system/productionPlan') component: () => import('@/views/system/productionPlan')
},
{
path: '/system/operationPlanningMain',
component: () => import('@/views/system/operationPlanningMain'),
name: 'OperationPlanningMainPublic',
meta: { title: '生产计划' }
} }
] ]
}, },

View File

@ -457,7 +457,7 @@ export default {
}; };
}, },
created() { created() {
this.getList(); this.initFromRoute();
}, },
computed: { computed: {
processDialogBillNo() { processDialogBillNo() {
@ -477,6 +477,15 @@ export default {
} }
}, },
methods: { methods: {
initFromRoute() {
const q = (this.$route && this.$route.query) || {};
const batchNo = q.batchNo || q.hbytSclh || q.productionOrderNo;
if (batchNo) {
this.queryParams.hbytSclh = batchNo;
this.queryParams.pageNum = 1;
}
this.getList();
},
/** 查询工序计划主列表 */ /** 查询工序计划主列表 */
getList() { getList() {
this.loading = true; this.loading = true;

View File

@ -166,6 +166,7 @@
@command="(command) => handleCommand(command, scope.row)"> @command="(command) => handleCommand(command, scope.row)">
查看工艺 查看工艺
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item command="生产计划">生产计划</el-dropdown-item>
<el-dropdown-item command="BOM" v-hasPermi="['system:orderPro:remove']">查看BOM</el-dropdown-item> <el-dropdown-item command="BOM" v-hasPermi="['system:orderPro:remove']">查看BOM</el-dropdown-item>
<el-dropdown-item :divided="true" command="修改" v-hasPermi="['system:orderPro:edit']">修改 <el-dropdown-item :divided="true" command="修改" v-hasPermi="['system:orderPro:edit']">修改
</el-dropdown-item> </el-dropdown-item>
@ -1619,6 +1620,16 @@ export default {
return 0; // return 0; //
}, },
handleCommand(command, row) { handleCommand(command, row) {
if ("生产计划" === command) {
this.$router.push({
path: "/system/operationPlanningMain",
query: {
hbytSclh: row && row.productionOrderNo ? row.productionOrderNo : undefined,
batchNo: row && row.productionOrderNo ? row.productionOrderNo : undefined
}
});
return;
}
if ("BOM" === command) { if ("BOM" === command) {
this.handleBOM(row.productionOrderNo); this.handleBOM(row.productionOrderNo);
} }