|
|
@ -41,21 +41,8 @@ |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import { getCurrentInstance } from 'vue' |
|
|
|
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|
|
|
import * as InspectionJobDetailPageApi from '@/api/qms/inspectionJob/inspectionJobDetail' |
|
|
|
import { SearchTable } from '@/components/SearchTable' |
|
|
|
import { SamplingProcess } from '@/views/qms/samplingProcess/samplingProcess.data' |
|
|
|
// import { InspectionTemplateMain } from '@/views/qms/basicDataManage/inspectionTemplate/inspectionTemplate.data' |
|
|
|
// import * as InspectionTemplateApi from '@/api/qms/inspectionTemplate' |
|
|
|
// import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' |
|
|
|
// import * as ItemBasicApi from '@/api/wms/itembasic' |
|
|
|
import * as SamplingProcessApi from '@/api/qms/samplingProcess' //采样过程 |
|
|
|
import * as InspectionMethodApi from '@/api/qms/inspectionMethod' //检验方法 |
|
|
|
import { InspectionMethod } from '@/views/qms/inspectionMethod/inspectionMethod.data' //检验方法 |
|
|
|
import * as DynamicRuleApi from '@/api/qms/dynamicRule' //动态修改规则 |
|
|
|
import { DynamicRule } from '@/views/qms/basicDataManage/dynamicRule/dynamicRule.data' //动态修改规则 |
|
|
|
import * as SelectedSetApi from '@/api/qms/selectedSet' //选择集 |
|
|
|
import { SelectedSet } from '@/views/qms/basicDataManage/selectedSet/selectedSet.data' //选择集 |
|
|
|
import * as InspectionJobMainApi from '@/api/qms/inspectionJob/inspectionJobMain' |
|
|
|
import * as InspectionRecordMainApi from '@/api/qms/inspectionRecord/inspectionRecordMain' |
|
|
|
|
|
|
|
const { proxy } = getCurrentInstance() |
|
|
|
|
|
|
@ -145,7 +132,7 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any |
|
|
|
formType.value = type |
|
|
|
if (row) { |
|
|
|
data.value = JSON.parse(JSON.stringify(row)) |
|
|
|
data.value.packageList = await InspectionJobMainApi.getInspectionJobPackageList(row.id) |
|
|
|
data.value.packageList = await InspectionRecordMainApi.getInspectionRecordPackageList(row.id) |
|
|
|
data.value.packageList.forEach(item=>{ |
|
|
|
item.qualifiedAmount =0 |
|
|
|
item.noQualifiedAmount =0 |
|
|
|