|
|
@ -167,7 +167,7 @@ |
|
|
<el-form :inline="true" label-position="top" label-width="100px"> |
|
|
<el-form :inline="true" label-position="top" label-width="100px"> |
|
|
<el-form-item :label="'主记录'"> |
|
|
<el-form-item :label="'主记录'"> |
|
|
</el-form-item> |
|
|
</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"> |
|
|
<el-button type="primary" @click="controlPrimaryMenuBun"> |
|
|
主菜单<i class="el-icon-arrow-down el-icon--right"></i> |
|
|
主菜单<i class="el-icon-arrow-down el-icon--right"></i> |
|
|
</el-button> |
|
|
</el-button> |
|
|
@ -220,7 +220,7 @@ |
|
|
<el-form :inline="true" label-position="top" label-width="100px"> |
|
|
<el-form :inline="true" label-position="top" label-width="100px"> |
|
|
<el-form-item :label="'明细记录'"> |
|
|
<el-form-item :label="'明细记录'"> |
|
|
</el-form-item> |
|
|
</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"> |
|
|
<el-button type="primary" @click="controlDetailMenuBun"> |
|
|
明细菜单<i class="el-icon-arrow-down el-icon--right"></i> |
|
|
明细菜单<i class="el-icon-arrow-down el-icon--right"></i> |
|
|
</el-button> |
|
|
</el-button> |
|
|
@ -230,13 +230,13 @@ |
|
|
<el-dropdown-item class="customer-li" command="工作日历" |
|
|
<el-dropdown-item class="customer-li" command="工作日历" |
|
|
:disabled="detailMenuButton.workCalendarOutFlag">工作日历</el-dropdown-item> |
|
|
:disabled="detailMenuButton.workCalendarOutFlag">工作日历</el-dropdown-item> |
|
|
<el-dropdown-item class="customer-li" command="批量维护工作日历" |
|
|
<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="分批排产" |
|
|
<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="重新排产" |
|
|
<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="查看物料库存" |
|
|
<el-dropdown-item class="customer-li" command="查看物料库存" |
|
|
:disabled="primaryMenuButton.partStockFlag">查看物料库存</el-dropdown-item> |
|
|
|
|
|
|
|
|
:disabled="detailMenuButton.partStockFlag">查看物料库存</el-dropdown-item> |
|
|
</el-dropdown-menu> |
|
|
</el-dropdown-menu> |
|
|
</el-dropdown> |
|
|
</el-dropdown> |
|
|
</el-form> |
|
|
</el-form> |
|
|
@ -1862,7 +1862,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/*区分不同的菜单 调用不同的方法 调用不同的方法*/ |
|
|
/*区分不同的菜单 调用不同的方法 调用不同的方法*/ |
|
|
OrderHandleCommand(menuName){ |
|
|
|
|
|
|
|
|
orderHandleCommand(menuName){ |
|
|
//区分是哪一个方法调用 |
|
|
//区分是哪一个方法调用 |
|
|
if('生产工单' === 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(){ |
|
|
openSplitScheduleModal(){ |
|
|
let routingRow = this.currentRoutingRow; |
|
|
let routingRow = this.currentRoutingRow; |
|
|
//首先判断是否选好 |
|
|
//首先判断是否选好 |
|
|
|