|
@@ -99,15 +99,23 @@
|
|
|
:class="{ warn: quality.qualityResults === 2 }">{{ quality.categoryLevelClassName }}</text>
|
|
:class="{ warn: quality.qualityResults === 2 }">{{ quality.categoryLevelClassName }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell parameter-cell">
|
|
<view class="table-cell parameter-cell">
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<text class="cell-text" :class="{ warn: quality.qualityResults === 2 }">
|
|
<text class="cell-text" :class="{ warn: quality.qualityResults === 2 }">
|
|
|
<text v-if="quality.textType == 3">
|
|
<text v-if="quality.textType == 3">
|
|
|
{{ quality.symbol }}
|
|
{{ quality.symbol }}
|
|
|
{{ quality.minValue }}-{{ quality.maxValue }}
|
|
{{ quality.minValue }}-{{ quality.maxValue }}
|
|
|
</text>
|
|
</text>
|
|
|
|
|
+ <text v-else-if="quality.textType == 8">
|
|
|
|
|
+ 标准值:{{quality.defaultValue}}{{ quality.unitName||'' }}
|
|
|
|
|
+ 下限:{{ quality.minValue||0 }}{{ quality.unitName||'' }}
|
|
|
|
|
+ 上限:{{ quality.minValue||0 }}{{ quality.unitName||'' }}
|
|
|
|
|
+ </text>
|
|
|
<text v-else>
|
|
<text v-else>
|
|
|
{{ quality.symbol }} {{ quality.defaultValue }}
|
|
{{ quality.symbol }} {{ quality.defaultValue }}
|
|
|
</text>
|
|
</text>
|
|
|
- {{ quality.unitName }}
|
|
|
|
|
|
|
+ <text v-if="quality.textType != 8">
|
|
|
|
|
+ {{ quality.unitName }}</text>
|
|
|
</text>
|
|
</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -142,7 +150,8 @@
|
|
|
<view style="height: 84rpx"></view>
|
|
<view style="height: 84rpx"></view>
|
|
|
<view class="footerButton">
|
|
<view class="footerButton">
|
|
|
<u-button @click="handleClose" type="default" text="返回"></u-button>
|
|
<u-button @click="handleClose" type="default" text="返回"></u-button>
|
|
|
- <u-button v-if="type != 'view'&&!isCorrelationId&&workData.status!=1" type="primary" @click="save" text="保存"></u-button>
|
|
|
|
|
|
|
+ <u-button v-if="type != 'view'&&!isCorrelationId&&workData.status!=1" type="primary" @click="save"
|
|
|
|
|
+ text="保存"></u-button>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<u-toast ref="uToast"></u-toast>
|
|
<u-toast ref="uToast"></u-toast>
|
|
@@ -203,12 +212,12 @@
|
|
|
const qualitySampleList = res.qualitySampleList.filter(
|
|
const qualitySampleList = res.qualitySampleList.filter(
|
|
|
(item) => item.id == data.projectId,
|
|
(item) => item.id == data.projectId,
|
|
|
);
|
|
);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (qualitySampleList[0].correlationId && !['myInspectionProjectEntrusted',
|
|
if (qualitySampleList[0].correlationId && !['myInspectionProjectEntrusted',
|
|
|
'myInspectionProjectTask'
|
|
'myInspectionProjectTask'
|
|
|
].includes(this.pageName)) {
|
|
].includes(this.pageName)) {
|
|
|
this.isCorrelationId = true
|
|
this.isCorrelationId = true
|
|
|
- }else{
|
|
|
|
|
|
|
+ } else {
|
|
|
qualitySampleList[0].status = 1
|
|
qualitySampleList[0].status = 1
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|