|
@@ -393,8 +393,6 @@
|
|
|
/>
|
|
|
</template>
|
|
|
<script setup lang="ts">
|
|
|
-import { IotMaintainApi, IotMaintainVO } from '@/api/pms/maintain'
|
|
|
-import { IotDeviceApi, IotDeviceVO } from '@/api/pms/device'
|
|
|
import * as UserApi from '@/api/system/user'
|
|
|
import { useUserStore } from '@/store/modules/user'
|
|
|
import { ref } from 'vue'
|
|
@@ -402,11 +400,8 @@ import type { ComponentPublicInstance } from 'vue'
|
|
|
import { IotMaintenanceBomApi, IotMaintenanceBomVO } from '@/api/pms/iotmaintenancebom'
|
|
|
import { IotMainWorkOrderBomApi, IotMainWorkOrderBomVO } from '@/api/pms/iotmainworkorderbom'
|
|
|
import { IotMainWorkOrderBomMaterialApi, IotMainWorkOrderBomMaterialVO } from '@/api/pms/iotmainworkorderbommaterial'
|
|
|
-import { IotMaintenancePlanApi, IotMaintenancePlanVO } from '@/api/pms/maintenance'
|
|
|
import { IotMainWorkOrderApi, IotMainWorkOrderVO } from '@/api/pms/iotmainworkorder'
|
|
|
import { useTagsViewStore } from '@/store/modules/tagsView'
|
|
|
-import {CACHE_KEY, useCache} from "@/hooks/web/useCache";
|
|
|
-import MainPlanDeviceList from "@/views/pms/maintenance/MainPlanDeviceList.vue";
|
|
|
import * as DeptApi from "@/api/system/dept";
|
|
|
import {erpPriceTableColumnFormatter} from "@/utils";
|
|
|
import dayjs from 'dayjs'
|
|
@@ -520,7 +515,7 @@ const openConfigDialog = (row: IotMainWorkOrderBomVO) => {
|
|
|
const openMaterialForm = (row: any) => {
|
|
|
bomNodeId.value = row.bomNodeId;
|
|
|
console.log('这是一个对象:', row.bomNodeId)
|
|
|
- materialFormRef.value.open(formData.value.deptId, bomNodeId.value)
|
|
|
+ materialFormRef.value.open(formData.value.deptId, bomNodeId.value, row.deviceId)
|
|
|
}
|
|
|
|
|
|
const selectChoose = (selectedMaterial) => {
|