|
|
|
@ -436,7 +436,7 @@
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label='工序名称' prop='processId'>
|
|
|
|
|
<el-select v-model='form.processId' placeholder='请选择工序'>
|
|
|
|
|
<el-select v-model='form.processId' placeholder='请先选择工序,再选择机台' @change="getMachine">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for='item in processList'
|
|
|
|
|
:key='item.processId'
|
|
|
|
@ -886,7 +886,8 @@ const getProcessSelect = async () => {
|
|
|
|
|
|
|
|
|
|
/*获取机台下拉框*/
|
|
|
|
|
const getReleaseSelect = async () => {
|
|
|
|
|
// machineQueryParams.value.processId = form.value.processId;
|
|
|
|
|
machineQueryParams.value.processId = form.value.processId;
|
|
|
|
|
// machineQueryParams.value.workshopId = workshopId.value;
|
|
|
|
|
let res = await getProdBaseMachineInfoList(machineQueryParams.value);
|
|
|
|
|
releaseList.value = res.data;
|
|
|
|
|
prodBaseMachineInfoList.value = res.data;
|
|
|
|
@ -1098,7 +1099,9 @@ const handleSfpBatchAdd = () => {
|
|
|
|
|
sfpBatchDialog.visible = true;
|
|
|
|
|
sfpBatchDialog.title = '添加半制品生产计划信息';
|
|
|
|
|
machineQueryParams.value = {};
|
|
|
|
|
/* if (form.value.processId != null ){
|
|
|
|
|
getReleaseSelect();
|
|
|
|
|
}*/
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/** 新增成型按钮操作 */
|
|
|
|
@ -1309,12 +1312,21 @@ function handleMachineQuery() {
|
|
|
|
|
getReleaseSelect();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const getMachine = async () => {
|
|
|
|
|
console.log(form.value.processId)
|
|
|
|
|
if ( workshopId.value == 2 && form.value.processId != null ){
|
|
|
|
|
await getReleaseSelect();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
getWorkshopId();
|
|
|
|
|
getShiftSelect();
|
|
|
|
|
getClassTeamSelect();
|
|
|
|
|
getProcessSelect();
|
|
|
|
|
if (form.value.processId != null ){
|
|
|
|
|
getReleaseSelect();
|
|
|
|
|
}
|
|
|
|
|
getList();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|