金蝶工序计划
This commit is contained in:
parent
4b5ee02ba3
commit
15a8edaa39
@ -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: '生产计划' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user