diff --git a/src/api/mes/baseStationInfo/types.ts b/src/api/mes/baseStationInfo/types.ts
index 5aeb67d..2a0ffe5 100644
--- a/src/api/mes/baseStationInfo/types.ts
+++ b/src/api/mes/baseStationInfo/types.ts
@@ -132,6 +132,11 @@ export interface BaseStationInfoForm extends BaseEntity {
*/
remark?: string;
+ /**
+ * 机台Id
+ */
+ machineId?: string | number;
+
productionTimeDays?: number;
productionTimeHours?: number;
productionTimeMinutes?: number;
diff --git a/src/views/mes/baseStationInfo/index.vue b/src/views/mes/baseStationInfo/index.vue
index 7c85add..86ad027 100644
--- a/src/views/mes/baseStationInfo/index.vue
+++ b/src/views/mes/baseStationInfo/index.vue
@@ -23,6 +23,16 @@
/>
+
+
+
+
+
搜索
重置
@@ -78,6 +88,7 @@
+
@@ -143,6 +154,16 @@
/>
+
+
+
+
+
@@ -194,6 +215,7 @@ import {
} from '@/api/mes/baseStationInfo';
import { BaseStationInfoVO, BaseStationInfoQuery, BaseStationInfoForm } from '@/api/mes/baseStationInfo/types';
import { getProcessInfoList } from '@/api/mes/baseProcessInfo';
+import { getProdBaseMachineInfoList } from '@/api/mes/prodBaseMachineInfo';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { station_type, active_flag } = toRefs(proxy?.useDict('station_type', 'active_flag'));
@@ -210,6 +232,7 @@ const total = ref(0);
const queryFormRef = ref();
const baseStationInfoFormRef = ref();
let processInfoList = ref([]);
+let machineInfoList = ref([]);
const dialog = reactive({
visible: false,
@@ -222,6 +245,12 @@ const getProcessInfoListSelect = async () => {
processInfoList.value = res.data;
};
+/** 查询机台下拉树结构 */
+const getProdBaseMachineInfoListSelect = async () => {
+ let res = await getProdBaseMachineInfoList(null);
+ machineInfoList.value = res.data;
+};
+
// 列显隐信息
const columns = ref([
{ key: 0, label: `主键标识`, visible: false },
@@ -239,7 +268,8 @@ const columns = ref([
{ key: 12, label: `创建人`, visible: false },
{ key: 13, label: `创建时间`, visible: false },
{ key: 14, label: `更新人`, visible: false },
- { key: 15, label: `更新时间`, visible: false }
+ { key: 15, label: `更新时间`, visible: false },
+ { key: 16, label: `机台名称`, visible: true }
]);
const initFormData: BaseStationInfoForm = {
@@ -251,6 +281,7 @@ const initFormData: BaseStationInfoForm = {
productionTime: undefined,
agvCode: undefined,
ipAddress: undefined,
+ machineId: undefined,
activeFlag: '1',
remark: undefined,
productionTimeDays: 0,
@@ -408,6 +439,7 @@ const handleExport = () => {
onMounted(() => {
getProcessInfoListSelect();
+ getProdBaseMachineInfoListSelect();
getList();
});