|
|
@ -71,7 +71,11 @@ |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
<div class="tabs-box"> |
|
|
|
<el-collapse accordion> |
|
|
|
<el-collapse-item name="1"> |
|
|
|
<template #title> |
|
|
|
<div class="small-title">检验工序</div> |
|
|
|
</template> |
|
|
|
<el-form :model="item" label-width="auto" :rules="rules" ref="formProcessRef"> |
|
|
|
<el-row :gutter="20"> |
|
|
|
<el-col :span="12"> |
|
|
@ -104,7 +108,11 @@ |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
</el-collapse-item> |
|
|
|
<el-collapse-item name="2"> |
|
|
|
<template #title> |
|
|
|
<div class="small-title">检验特性</div> |
|
|
|
</template> |
|
|
|
<el-form :model="item" label-width="auto" :rules="rules" ref="formFeaturesRef"> |
|
|
|
<div> |
|
|
|
<el-row :gutter="20"> |
|
|
@ -135,7 +143,9 @@ |
|
|
|
> |
|
|
|
<div style="display: flex; width: 100%"> |
|
|
|
<el-input |
|
|
|
v-model="item.inspectionJobCharacteristicsUpdateReqVO.inspectionMethodName" |
|
|
|
v-model=" |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.inspectionMethodName |
|
|
|
" |
|
|
|
disabled |
|
|
|
placeholder="请选择检验方法" |
|
|
|
/> |
|
|
@ -149,7 +159,9 @@ |
|
|
|
> |
|
|
|
<div style="display: flex; width: 100%"> |
|
|
|
<el-input |
|
|
|
v-model="item.inspectionJobCharacteristicsUpdateReqVO.samplingProcessName" |
|
|
|
v-model=" |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.samplingProcessName |
|
|
|
" |
|
|
|
disabled |
|
|
|
placeholder="请选择采样过程编码" |
|
|
|
/> |
|
|
@ -178,7 +190,9 @@ |
|
|
|
> |
|
|
|
<div style="display: flex; width: 100%"> |
|
|
|
<el-input |
|
|
|
v-model="item.inspectionJobCharacteristicsUpdateReqVO.samplePieceSize" |
|
|
|
v-model=" |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.samplePieceSize |
|
|
|
" |
|
|
|
disabled |
|
|
|
placeholder="请输入样品份数" |
|
|
|
/> |
|
|
@ -202,7 +216,9 @@ |
|
|
|
prop="inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod" |
|
|
|
> |
|
|
|
<el-select |
|
|
|
v-model="item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod" |
|
|
|
v-model=" |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod |
|
|
|
" |
|
|
|
placeholder="请选择结果录入方式" |
|
|
|
@change="resultEntryMethodChange($event, item)" |
|
|
|
disabled |
|
|
@ -250,7 +266,9 @@ |
|
|
|
prop="inspectionCharacteristicsBaseVO.quantifyIsCapping" |
|
|
|
> |
|
|
|
<el-switch |
|
|
|
v-model="item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping" |
|
|
|
v-model=" |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping |
|
|
|
" |
|
|
|
:disabled="true" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
@ -282,7 +300,9 @@ |
|
|
|
prop="inspectionCharacteristicsBaseVO.quantifyIsCapping" |
|
|
|
> |
|
|
|
<el-switch |
|
|
|
v-model="item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit" |
|
|
|
v-model=" |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit |
|
|
|
" |
|
|
|
:disabled="true" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
@ -299,7 +319,9 @@ |
|
|
|
prop="inspectionCharacteristicsBaseVO.quantifyCapping" |
|
|
|
> |
|
|
|
<el-input |
|
|
|
v-model="item.inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit" |
|
|
|
v-model=" |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit |
|
|
|
" |
|
|
|
:disabled="true" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
@ -314,7 +336,9 @@ |
|
|
|
prop="inspectionCharacteristicsBaseVO.quantifyIsCapping" |
|
|
|
> |
|
|
|
<el-switch |
|
|
|
v-model="item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget" |
|
|
|
v-model=" |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget |
|
|
|
" |
|
|
|
:disabled="true" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
@ -343,7 +367,9 @@ |
|
|
|
prop="inspectionJobCharacteristicsUpdateReqVO.inspectionStartTime" |
|
|
|
> |
|
|
|
<el-date-picker |
|
|
|
v-model="item.inspectionJobCharacteristicsUpdateReqVO.inspectionStartTime" |
|
|
|
v-model=" |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.inspectionStartTime |
|
|
|
" |
|
|
|
type="datetime" |
|
|
|
placeholder="请选择开始时间" |
|
|
|
style="width: 100%" |
|
|
@ -357,7 +383,9 @@ |
|
|
|
prop="inspectionJobCharacteristicsUpdateReqVO.inspectionEndTime" |
|
|
|
> |
|
|
|
<el-date-picker |
|
|
|
v-model="item.inspectionJobCharacteristicsUpdateReqVO.inspectionEndTime" |
|
|
|
v-model=" |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.inspectionEndTime |
|
|
|
" |
|
|
|
type="datetime" |
|
|
|
placeholder="请选择结束时间" |
|
|
|
style="width: 100%" |
|
|
@ -386,12 +414,22 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</div> |
|
|
|
</el-form> |
|
|
|
</el-collapse-item> |
|
|
|
<el-collapse-item name="3"> |
|
|
|
<template #title> |
|
|
|
<div class="small-title">检验结果</div> |
|
|
|
</template> |
|
|
|
<el-form :model="item" label-width="auto" :rules="rules" ref="formFeaturesRef"> |
|
|
|
<div> |
|
|
|
<el-row :gutter="20"> |
|
|
|
<el-col |
|
|
|
:span="24" |
|
|
|
v-for="(cur, i) in item.inspectionJobCharacteristicsUpdateReqVO |
|
|
|
.recordInspectionQuantifyList" |
|
|
|
:key="i" |
|
|
|
|
|
|
|
> |
|
|
|
<div |
|
|
|
style=" |
|
|
@ -399,12 +437,16 @@ |
|
|
|
border-radius: 4px; |
|
|
|
padding-top: 16px; |
|
|
|
margin-bottom: 10px; |
|
|
|
"> |
|
|
|
" |
|
|
|
> |
|
|
|
<el-row :gutter="20"> |
|
|
|
<!-- 汇总录入的时候显示 --> |
|
|
|
<el-col |
|
|
|
:span="12" |
|
|
|
v-if="item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod == 1" |
|
|
|
v-if=" |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod == |
|
|
|
1 |
|
|
|
" |
|
|
|
> |
|
|
|
<el-form-item label="合格数量" required> |
|
|
|
<el-input |
|
|
@ -416,7 +458,10 @@ |
|
|
|
</el-col> |
|
|
|
<el-col |
|
|
|
:span="12" |
|
|
|
v-if="item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod == 1" |
|
|
|
v-if=" |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod == |
|
|
|
1 |
|
|
|
" |
|
|
|
> |
|
|
|
<el-form-item label="不合格数量" required> |
|
|
|
<el-input |
|
|
@ -428,7 +473,9 @@ |
|
|
|
</el-col> |
|
|
|
<el-col |
|
|
|
:span="12" |
|
|
|
v-if="item.inspectionJobCharacteristicsUpdateReqVO.featureType == '0'" |
|
|
|
v-if=" |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.featureType == '0' |
|
|
|
" |
|
|
|
> |
|
|
|
<el-form-item label="检验值" required> |
|
|
|
<el-input |
|
|
@ -441,7 +488,9 @@ |
|
|
|
</el-col> |
|
|
|
<el-col |
|
|
|
:span="12" |
|
|
|
v-if="item.inspectionJobCharacteristicsUpdateReqVO.featureType == '1'" |
|
|
|
v-if=" |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.featureType == '1' |
|
|
|
" |
|
|
|
> |
|
|
|
<el-form-item label="选定集" required> |
|
|
|
<el-select |
|
|
@ -458,14 +507,13 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col |
|
|
|
:span="12" |
|
|
|
> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="备注"> |
|
|
|
<el-input |
|
|
|
v-model="cur.remark" |
|
|
|
placeholder="请输入备注" |
|
|
|
type="text" maxlength="200" |
|
|
|
type="text" |
|
|
|
maxlength="200" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
@ -482,10 +530,11 @@ |
|
|
|
</el-row> |
|
|
|
</div> |
|
|
|
</el-form> |
|
|
|
</el-collapse-item> |
|
|
|
</el-collapse> |
|
|
|
</div> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
|
|
|
|
</div> |
|
|
|
<template #footer> |
|
|
|
<ButtonBase :Butttondata="Butttondata" @button-base-click="buttonBaseClick" /> |
|
|
@ -685,7 +734,9 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any |
|
|
|
let list = [] |
|
|
|
const masterId = row.id |
|
|
|
list = await InspectionRecordDetailPageApi.getInspectionRecordDetailList(row.id) |
|
|
|
data.value.packageList = await InspectionRecordPackageApi.getInspectionRecordPackageList(masterId) |
|
|
|
data.value.packageList = await InspectionRecordPackageApi.getInspectionRecordPackageList( |
|
|
|
masterId |
|
|
|
) |
|
|
|
list.forEach((item, index) => { |
|
|
|
editableTabsValue.value = 1 |
|
|
|
item.name = index + 1 |
|
|
@ -699,7 +750,10 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any |
|
|
|
).toFixed(6) |
|
|
|
) |
|
|
|
// rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true |
|
|
|
item.inspectionRecordCharacteristicsRespVO.recordInspectionQuantifyList = item.inspectionRecordCharacteristicsRespVO.featureType == 1 ? item.inspectionRecordCharacteristicsRespVO.qualitativeRespVOList : item.inspectionRecordCharacteristicsRespVO.quantifyRespVOList |
|
|
|
item.inspectionRecordCharacteristicsRespVO.recordInspectionQuantifyList = |
|
|
|
item.inspectionRecordCharacteristicsRespVO.featureType == 1 |
|
|
|
? item.inspectionRecordCharacteristicsRespVO.qualitativeRespVOList |
|
|
|
: item.inspectionRecordCharacteristicsRespVO.quantifyRespVOList |
|
|
|
if (!item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList) { |
|
|
|
// 单个录入时 |
|
|
|
if (item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod == 2) { |
|
|
@ -1364,15 +1418,22 @@ const boxList = ref() |
|
|
|
// }) |
|
|
|
// } |
|
|
|
const inspectionValueInput = (item, cur) => { |
|
|
|
for ( let i = 0;i < item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.length;i++) { |
|
|
|
for ( |
|
|
|
let i = 0; |
|
|
|
i < item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.length; |
|
|
|
i++ |
|
|
|
) { |
|
|
|
item.isPass = true |
|
|
|
// 如果上限值存在,下限值和目标值不存在 大于上限值显示红色图标 |
|
|
|
if ( |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping && |
|
|
|
!item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit && |
|
|
|
!item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget && |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue&& |
|
|
|
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) > parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyCapping) |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i] |
|
|
|
.inspectionValue && |
|
|
|
parseFloat( |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue |
|
|
|
) > parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyCapping) |
|
|
|
) { |
|
|
|
item.isPass = false |
|
|
|
return |
|
|
@ -1382,8 +1443,11 @@ const inspectionValueInput = (item, cur) => { |
|
|
|
!item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping && |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit && |
|
|
|
!item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget && |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue&& |
|
|
|
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) < parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit) |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i] |
|
|
|
.inspectionValue && |
|
|
|
parseFloat( |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue |
|
|
|
) < parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit) |
|
|
|
) { |
|
|
|
item.isPass = false |
|
|
|
return |
|
|
@ -1393,8 +1457,11 @@ const inspectionValueInput = (item, cur) => { |
|
|
|
!item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping && |
|
|
|
!item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit && |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget && |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue&& |
|
|
|
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) != parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget) |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i] |
|
|
|
.inspectionValue && |
|
|
|
parseFloat( |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue |
|
|
|
) != parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget) |
|
|
|
) { |
|
|
|
item.isPass = false |
|
|
|
return |
|
|
@ -1404,9 +1471,15 @@ const inspectionValueInput = (item, cur) => { |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping && |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit && |
|
|
|
!item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget && |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue&& |
|
|
|
( parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) > parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyCapping) || |
|
|
|
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) < parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit)) |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i] |
|
|
|
.inspectionValue && |
|
|
|
(parseFloat( |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue |
|
|
|
) > parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyCapping) || |
|
|
|
parseFloat( |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i] |
|
|
|
.inspectionValue |
|
|
|
) < parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit)) |
|
|
|
) { |
|
|
|
item.isPass = false |
|
|
|
return |
|
|
@ -1416,9 +1489,12 @@ const inspectionValueInput = (item, cur) => { |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping && |
|
|
|
!item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit && |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget && |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue&& |
|
|
|
(parseFloat(cur.inspectionValue) > parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyCapping)|| |
|
|
|
parseFloat(cur.inspectionValue) < parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget)) |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i] |
|
|
|
.inspectionValue && |
|
|
|
(parseFloat(cur.inspectionValue) > |
|
|
|
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyCapping) || |
|
|
|
parseFloat(cur.inspectionValue) < |
|
|
|
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget)) |
|
|
|
) { |
|
|
|
item.isPass = false |
|
|
|
return |
|
|
@ -1428,8 +1504,10 @@ const inspectionValueInput = (item, cur) => { |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping && |
|
|
|
!item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit && |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget && |
|
|
|
(parseFloat(cur.inspectionValue) > parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget)|| |
|
|
|
parseFloat(cur.inspectionValue) < parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit)) |
|
|
|
(parseFloat(cur.inspectionValue) > |
|
|
|
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget) || |
|
|
|
parseFloat(cur.inspectionValue) < |
|
|
|
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit)) |
|
|
|
) { |
|
|
|
item.isPass = false |
|
|
|
return |
|
|
@ -1439,9 +1517,15 @@ const inspectionValueInput = (item, cur) => { |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping && |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit && |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget && |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue&& |
|
|
|
(parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) > parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyCapping) || |
|
|
|
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) < parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit)) |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i] |
|
|
|
.inspectionValue && |
|
|
|
(parseFloat( |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue |
|
|
|
) > parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyCapping) || |
|
|
|
parseFloat( |
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i] |
|
|
|
.inspectionValue |
|
|
|
) < parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit)) |
|
|
|
) { |
|
|
|
item.isPass = false |
|
|
|
return |
|
|
|