|
|
@ -18,6 +18,23 @@ |
|
|
|
:is-col="true" |
|
|
|
@opensearchTable="opensearchTable" |
|
|
|
/> |
|
|
|
<div style="border:1px solid #dedede;margin-bottom:20px;display: flex;"> |
|
|
|
<TableForm |
|
|
|
ref="tableFormRef" |
|
|
|
style="width:100%;" |
|
|
|
:maxHeight = "490" |
|
|
|
:tableFields="tableAllSchemas.tableFormColumns" |
|
|
|
:tableFormRules="tableFormRules" |
|
|
|
:tableData="data.packageVOList" |
|
|
|
:isShowButton="false" |
|
|
|
:isShowReduceButton="false" |
|
|
|
> |
|
|
|
|
|
|
|
<template v-slot="{row}"> |
|
|
|
<slot :row="row"></slot> |
|
|
|
</template> |
|
|
|
</TableForm> |
|
|
|
</div> |
|
|
|
<el-tabs |
|
|
|
v-model="editableTabsValue" |
|
|
|
class="demo-tabs" |
|
|
@ -241,7 +258,7 @@ |
|
|
|
v-if="item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod == 1" |
|
|
|
> |
|
|
|
<el-form-item label="合格数量" required> |
|
|
|
<el-input v-model="cur.qualifiedQuantity" placeholder="请输入合格数量" /> |
|
|
|
<el-input v-model="cur.qualifiedQuantity" placeholder="请输入合格数量" type="number"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col |
|
|
@ -250,7 +267,7 @@ |
|
|
|
> |
|
|
|
<el-form-item label="不合格数量" required> |
|
|
|
<el-input |
|
|
|
v-model="cur.unqualifiedQuantity" |
|
|
|
v-model="cur.unqualifiedQuantity" type="number" |
|
|
|
placeholder="请输入不合格数量" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
@ -277,7 +294,7 @@ |
|
|
|
v-if="item.inspectionJobCharacteristicsUpdateReqVO.featureType == 0" |
|
|
|
> |
|
|
|
<el-form-item label="检验值" required> |
|
|
|
<el-input v-model="cur.inspectionValue" placeholder="请输入检验值" /> |
|
|
|
<el-input v-model="cur.inspectionValue" placeholder="请输入检验值" type="number"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col |
|
|
@ -365,6 +382,7 @@ 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' |
|
|
|
|
|
|
|
const { proxy } = getCurrentInstance() |
|
|
|
|
|
|
@ -411,7 +429,18 @@ const props = defineProps({ |
|
|
|
type: Object, |
|
|
|
required: true, |
|
|
|
default: null |
|
|
|
} |
|
|
|
}, |
|
|
|
// 包装 列表 相关信息 |
|
|
|
tableAllSchemas: { |
|
|
|
type: Array, |
|
|
|
required: true, |
|
|
|
default: null |
|
|
|
}, |
|
|
|
tableFormRules: { |
|
|
|
type: Array, |
|
|
|
required: true, |
|
|
|
default: null |
|
|
|
}, |
|
|
|
}) |
|
|
|
const { t } = useI18n() // 国际化 |
|
|
|
|
|
|
@ -424,6 +453,8 @@ const formMainRef = ref() |
|
|
|
const formFeaturesRef = ref() |
|
|
|
const formProcessRef = ref() |
|
|
|
const formSchema = ref(props.formAllSchemas?.formSchema) |
|
|
|
const tableAllSchemas = ref(props.tableAllSchemas) |
|
|
|
const tableFormRules = ref(props.tableFormRules) |
|
|
|
|
|
|
|
const data = ref({ |
|
|
|
code: '', |
|
|
@ -511,6 +542,7 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any |
|
|
|
console.log(data.value) |
|
|
|
let list = [] |
|
|
|
list = await InspectionJobDetailPageApi.getInspectionJobDetailList(row.id) |
|
|
|
data.value.packageVOList = await InspectionJobMainApi.getInspectionJobPackageList(row.id) |
|
|
|
list.forEach((item, index) => { |
|
|
|
editableTabsValue.value = index + 1 |
|
|
|
item.name = index + 1 |
|
|
|