Browse Source

排产右键

master
rui_li 4 years ago
parent
commit
5b7d00d841
  1. 101
      src/views/modules/schedule/order_schedule.vue

101
src/views/modules/schedule/order_schedule.vue

@ -167,7 +167,7 @@
<el-form :inline="true" label-position="top" label-width="100px">
<el-form-item :label="'主记录'">
</el-form-item>
<el-dropdown class="customer-dropdown" size="mini" @command="OrderHandleCommand">
<el-dropdown class="customer-dropdown" size="mini" @command="orderHandleCommand">
<el-button type="primary" @click="controlPrimaryMenuBun">
主菜单<i class="el-icon-arrow-down el-icon--right"></i>
</el-button>
@ -220,7 +220,7 @@
<el-form :inline="true" label-position="top" label-width="100px">
<el-form-item :label="'明细记录'">
</el-form-item>
<el-dropdown class="customer-dropdown" size="mini" @command="OrderHandleCommand">
<el-dropdown class="customer-dropdown" size="mini" @command="scheduleHandleCommand">
<el-button type="primary" @click="controlDetailMenuBun">
明细菜单<i class="el-icon-arrow-down el-icon--right"></i>
</el-button>
@ -230,13 +230,13 @@
<el-dropdown-item class="customer-li" command="工作日历"
:disabled="detailMenuButton.workCalendarOutFlag">工作日历</el-dropdown-item>
<el-dropdown-item class="customer-li" command="批量维护工作日历"
:disabled="primaryMenuButton.batchWorkCalendarFlag">批量维护工作日历</el-dropdown-item>
:disabled="detailMenuButton.batchWorkCalendarFlag">批量维护工作日历</el-dropdown-item>
<el-dropdown-item class="customer-li" command="分批排产"
:disabled="primaryMenuButton.splitScheduleFlag">分批排产</el-dropdown-item>
:disabled="detailMenuButton.splitScheduleFlag">分批排产</el-dropdown-item>
<el-dropdown-item class="customer-li" command="重新排产"
:disabled="primaryMenuButton.reScheduleOrderFlag">重新排产</el-dropdown-item>
:disabled="detailMenuButton.reScheduleOrderFlag">重新排产</el-dropdown-item>
<el-dropdown-item class="customer-li" command="查看物料库存"
:disabled="primaryMenuButton.partStockFlag">查看物料库存</el-dropdown-item>
:disabled="detailMenuButton.partStockFlag">查看物料库存</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</el-form>
@ -1862,7 +1862,7 @@ export default {
},
/*区分不同的菜单 调用不同的方法 调用不同的方法*/
OrderHandleCommand(menuName){
orderHandleCommand(menuName){
//
if('生产工单' === menuName){
//
@ -1946,7 +1946,92 @@ export default {
}
},
/*打开分批排产*/
/*区分不同的菜单 调用不同的方法 调用不同的方法*/
scheduleHandleCommand(menuName){
//
if('生产工单' === menuName){
//
if(this.currentSchedlingRow == null || this.currentSchedlingRow == {}){
//
this.detailMenuButton.shopOrderFlag = true;
//
this.$message.error('请选择派工单!');
return false;
}
this.$router.push('/shopOrder-shopOrder/shopOrder', this.currentSchedlingRow.orderNo)
}else if('工作日历' === menuName){
//
if(this.currentSchedlingRow == null || this.currentSchedlingRow == {}){
//
this.detailMenuButton.workCalendarOutFlag = true;
//
this.$message.error('请选择派工单!');
return false;
}
let tempData = {'site': this.pageData.site, 'calendarId': this.pageData.calendarId,
'calendarDesc': this.pageData.calendarDesc, 'scheduledDate': this.pageData.scheduleDate};
//
this.$nextTick(() => {
this.showWorkCalendarOut = true;
this.$refs.comWorkCalendarOut.init(tempData);
})
}else if('批量维护工作日历' === menuName){
//
if(this.currentRoutingRow == null || this.currentRoutingRow == {}){
//
this.primaryMenuButton.workCalendarOutFlag = true;
//
this.$message.error('请选择工单!');
return false;
}
let tempData = {'site': this.pageData.site, 'calendarId': this.pageData.calendarId,
'calendarDesc': this.pageData.calendarDesc, 'scheduledDate': this.pageData.scheduleDate};
//
this.$nextTick(() => {
this.showBatchWorkCalendar = true;
this.$refs.comBatchWorkCalendar.init(tempData);
})
}else if('分批排产' === menuName){
//
if(this.currentRoutingRow == null || this.currentRoutingRow == {}){
//
this.primaryMenuButton.workCalendarOutFlag = true;
//
this.$message.error('请选择工单!');
return false;
}
this.openSplitScheduleModal();
}else if('重新排产' === menuName){
//
if(this.currentRoutingRow == null || this.currentRoutingRow == {}){
//
this.primaryMenuButton.workCalendarOutFlag = true;
//
this.$message.error('请选择工单!');
return false;
}
//
this.warnReScheduleConfirm();
}else if('查看物料库存' === menuName){
//
if(this.currentRoutingRow == null || this.currentRoutingRow == {}){
//
this.primaryMenuButton.partStockFlag = true;
//
this.$message.error('请选择工单!');
return false;
}
let tempData = {'site': this.pageData.site, 'orderNo': this.currentRoutingRow.orderNo};
//
this.$nextTick(() => {
this.showPartStockFlag = true;
this.$refs.comPartStock.init(tempData);
})
}
},
/*
openSplitScheduleModal(){
let routingRow = this.currentRoutingRow;
//

Loading…
Cancel
Save