change(mes): (MeterSphere100024)【生产计划信息】新增界面的机台信息,未根据半制品、成型、硫化进行筛选

- 当半制品时(workshopId=2)
在选择工序后,根据工序 ID 加载机台数据,仅在选择了工序且工单 ID 不为空时加载机台数据,添加了 getMachine 方法,用于在选择工序时获取机台数据
master
zch 3 months ago
parent cd85acada1
commit 3ed4060f2a

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

Loading…
Cancel
Save