yangfeng
2024-03-29 4f79012a98aeb12c06a04791d23939473fcbc455
获取质检信息入参修改
2个文件已修改
22 ■■■■ 已修改文件
src/api/index.ts 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dashboard/components/TaskControl.vue 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/index.ts
@@ -309,8 +309,8 @@
}
export interface getQualityParams {
  workerId: string
  procedureId: string
  workOrderId: string
  procedureId: number
}
/**
 * 看板获取质检信息
@@ -328,7 +328,7 @@
  workOrderProcedureID: number
  workerID: string
  workerName: string
  ids: number[]
  ids: any[]
}
/**
 * 看板报工
src/views/dashboard/components/TaskControl.vue
@@ -89,8 +89,6 @@
import ReportProductionModal1 from '@/views/dashboard/components/ReportProductionModal1.vue'
import { usePLCStore } from '@/stores/plc'
import { storeToRefs } from 'pinia'
import { log } from 'console'
import { isDoStatement } from 'typescript'
const props = defineProps<{
  task?: Task
@@ -139,7 +137,7 @@
      isProcessing: false,
      workOrderProcedureID: Number(task!.value.Procedure.ID)
    }).then(
      (res) => {
      (res: any) => {
        ElMessage({
          message: '操作成功!',
          type: 'success'
@@ -217,13 +215,13 @@
    if (task?.value?.ShowCheck) {
      getQualityInspection({
        procedureId: task.value?.Procedure.ID,
        workerId: workers.value[0].workerId
      }).then((res) => {
        workOrderId: task.value?.Order.workOrderId
      }).then((res: any) => {
        console.log(res, '999999')
        passAmount.value = res.data.passAmount
        reworkAmount.value = res.data.reworkAmount
        scrappedAmount.value = res.data.scrappedAmount
        reprotIds.value = res.data.ids
        reprotIds.value = res.data.ids || []
        showReportModal1.value = true
      })
    } else {
@@ -267,7 +265,7 @@
      workerID: workers.value[0].workerId,
      workerName: workers.value[0].workerName
    })
      .then((res) => {
      .then((res: any) => {
        if (res.code === 200) {
          ElMessage({
            message: `${tipStr}成功`,
@@ -303,9 +301,9 @@
      reportAmount: amount,
      workerID: workers.value[0].workerId,
      workerName: workers.value[0].workerName,
      ids: reprotIds
      ids: reprotIds.value
    })
      .then((res) => {
      .then((res: any) => {
        if (res.code === 200) {
          ElMessage({
            message: '报工成功',