change(dms): 更新设备类型和设备大类接口,从 dms 模块获取数据,而不是从 mes 模块

-将 getBaseDeviceCategoryList 和 getBaseDeviceTypeList 接口替换为 getBaseDeviceCategoryListInWMS 和 getBaseDeviceTypeListInWMS
- 这些新接口从 dms 模块获取数据,而不是从 mes 模块
master
zch 1 week ago
parent 1c39707166
commit 99fa3daecd

@ -129,8 +129,8 @@
<script setup name='AlarmType' lang='ts'> <script setup name='AlarmType' lang='ts'>
import { listAlarmType, getAlarmType, delAlarmType, addAlarmType, updateAlarmType } from '@/api/dms/alarmType'; import { listAlarmType, getAlarmType, delAlarmType, addAlarmType, updateAlarmType } from '@/api/dms/alarmType';
import { AlarmTypeVO, AlarmTypeQuery, AlarmTypeForm } from '@/api/dms/alarmType/types'; import { AlarmTypeVO, AlarmTypeQuery, AlarmTypeForm } from '@/api/dms/alarmType/types';
import { getBaseDeviceCategoryList } from '@/api/mes/baseDeviceCategory'; import { getBaseDeviceCategoryListInWMS } from '@/api/dms/baseDeviceCategory';
import { getBaseDeviceTypeList } from '@/api/mes/baseDeviceType'; import { getBaseDeviceTypeListInWMS } from '@/api/dms/baseDeviceType';
const { proxy } = getCurrentInstance() as ComponentInternalInstance; const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { dms_level_status } = toRefs<any>(proxy?.useDict('dms_level_status')); const { dms_level_status } = toRefs<any>(proxy?.useDict('dms_level_status'));
@ -155,14 +155,14 @@ const dialog = reactive<DialogOption>({
/** 获取设备大类下拉框 */ /** 获取设备大类下拉框 */
const deviceCategoryList = ref([]); const deviceCategoryList = ref([]);
const getBaseDeviceCategoryListSelect = async () => { const getBaseDeviceCategoryListSelect = async () => {
let res = await getBaseDeviceCategoryList(null); let res = await getBaseDeviceCategoryListInWMS(null);
deviceCategoryList.value = res.data; deviceCategoryList.value = res.data;
}; };
/** 获取设备类型下拉框 */ /** 获取设备类型下拉框 */
const deviceTypeList = ref([]); const deviceTypeList = ref([]);
const getBaseDeviceTypeListSelect = async () => { const getBaseDeviceTypeListSelect = async () => {
let res = await getBaseDeviceTypeList(null); let res = await getBaseDeviceTypeListInWMS(null);
deviceTypeList.value = res.data; deviceTypeList.value = res.data;
}; };

Loading…
Cancel
Save