|
|
|
@ -227,13 +227,13 @@
|
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="下达ID" prop="releaseId">
|
|
|
|
|
<el-form-item label="机台" prop="releaseId">
|
|
|
|
|
<el-select v-model="form.releaseId" placeholder="请选择">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in stationList"
|
|
|
|
|
:key="item.stationId"
|
|
|
|
|
:label="item.stationName"
|
|
|
|
|
:value="item.stationId"
|
|
|
|
|
v-for="item in releaseList"
|
|
|
|
|
:key="item.machineId"
|
|
|
|
|
:label="item.machineName"
|
|
|
|
|
:value="item.machineId"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -338,6 +338,7 @@ import BomSelect from '@/views/mes/materialBom/addBom.vue';
|
|
|
|
|
import MaterialSelect from '@/views/mes/baseMaterialInfo/addMaterial.vue';
|
|
|
|
|
import { getProcessInfoList } from '@/api/mes/baseProcessInfo';
|
|
|
|
|
import { getStationInfoList } from '@/api/mes/baseStationInfo';
|
|
|
|
|
import { getProdBaseMachineInfoList } from '@/api/mes/prodBaseMachineInfo';
|
|
|
|
|
|
|
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
|
|
const { mes_import_flag, active_flag, mes_plan_status, mes_release_type, mes_finish_flag, mes_model_code } = toRefs<any>(proxy?.useDict('mes_import_flag', 'active_flag', 'mes_plan_status', 'mes_release_type', 'mes_finish_flag', 'mes_model_code'));
|
|
|
|
@ -362,7 +363,7 @@ const dialog = reactive<DialogOption>({
|
|
|
|
|
const shiftList = ref([]);
|
|
|
|
|
const classTeamList = ref([]);
|
|
|
|
|
const processList = ref([]);
|
|
|
|
|
let stationList = ref([]);
|
|
|
|
|
let releaseList = ref([]);
|
|
|
|
|
const materialBomOpen = ref(false);
|
|
|
|
|
const bomSelectRef = ref();
|
|
|
|
|
const materialOpen = ref(false);
|
|
|
|
@ -389,9 +390,9 @@ const getProcessSelect = async () => {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/*获取工位下拉框*/
|
|
|
|
|
const getStationSelect = async () => {
|
|
|
|
|
let res = await getStationInfoList(null);
|
|
|
|
|
stationList.value = res.data;
|
|
|
|
|
const getReleaseSelect = async () => {
|
|
|
|
|
let res = await getProdBaseMachineInfoList({ processId: form.value.processId});
|
|
|
|
|
releaseList.value = res.data;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 列显隐信息
|
|
|
|
@ -660,7 +661,15 @@ onMounted(() => {
|
|
|
|
|
getShiftSelect();
|
|
|
|
|
getClassTeamSelect();
|
|
|
|
|
getProcessSelect();
|
|
|
|
|
getStationSelect();
|
|
|
|
|
getReleaseSelect();
|
|
|
|
|
getList();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// 监听 processId 的变化
|
|
|
|
|
watch(
|
|
|
|
|
() => form.value.processId, (newValue, oldValue) => {
|
|
|
|
|
// 监听到变化时执行的函数
|
|
|
|
|
getReleaseSelect(); // 调用你的方法
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
</script>
|
|
|
|
|