|
@@ -68,6 +68,7 @@
|
|
|
import { ref, computed, onMounted, watch } from 'vue'
|
|
import { ref, computed, onMounted, watch } from 'vue'
|
|
|
import { getInspectProjectItemPage, addInspectProject } from '@/api/pipe/pipeTaskOrder'
|
|
import { getInspectProjectItemPage, addInspectProject } from '@/api/pipe/pipeTaskOrder'
|
|
|
import { PipeCheckTypeMap } from '@/utils/dictMap'
|
|
import { PipeCheckTypeMap } from '@/utils/dictMap'
|
|
|
|
|
+import { useUserStore } from '@/store/user'
|
|
|
|
|
|
|
|
interface ReportTemplate {
|
|
interface ReportTemplate {
|
|
|
orderId: string
|
|
orderId: string
|
|
@@ -103,6 +104,8 @@ const emit = defineEmits<{
|
|
|
cancel: []
|
|
cancel: []
|
|
|
}>()
|
|
}>()
|
|
|
|
|
|
|
|
|
|
+const userStore = useUserStore()
|
|
|
|
|
+const userInfo = computed(() => userStore.userInfo)
|
|
|
const inspectionNature = ref(100)
|
|
const inspectionNature = ref(100)
|
|
|
const searchKeyword = ref('')
|
|
const searchKeyword = ref('')
|
|
|
const dataSource = ref<ReportTemplate[]>([])
|
|
const dataSource = ref<ReportTemplate[]>([])
|
|
@@ -248,8 +251,9 @@ const handleConfirm = async () => {
|
|
|
itemList,
|
|
itemList,
|
|
|
type: 200,
|
|
type: 200,
|
|
|
orderId: props.equipData?.taskOrder?.id,
|
|
orderId: props.equipData?.taskOrder?.id,
|
|
|
|
|
+ checkId: userInfo.value.id,
|
|
|
})
|
|
})
|
|
|
- console.log('确认选中的检验项目:', itemList)
|
|
|
|
|
|
|
+
|
|
|
emit('confirm', itemList)
|
|
emit('confirm', itemList)
|
|
|
}
|
|
}
|
|
|
|
|
|