|
@@ -21,46 +21,52 @@
|
|
|
</uni-tr>
|
|
|
<uni-tr class="section-title" @click="enterItem(item.pdid, 0, item)">
|
|
|
<uni-td class="grid-text">拍照点</uni-td>
|
|
|
- <uni-td class="grid-text">
|
|
|
+ <uni-td class="grid-text" >
|
|
|
<text :class="{
|
|
|
'bg-green bg-text': item.photoStatus == '已完成',
|
|
|
'bg-yellow bg-text': item.photoCount > 0 && item.photoCount < item.photoTotal,
|
|
|
'bg-black bg-text': item.photoCount == 0 && item.photoTotal > 0,
|
|
|
- }">
|
|
|
+ }" v-if="item.photoTotal > 0">
|
|
|
{{item.photoCount}} / {{item.photoTotal}}
|
|
|
</text>
|
|
|
+ <text v-if="item.photoCount == 0">暂无数据</text>
|
|
|
</uni-td>
|
|
|
- <uni-td class="grid-text">{{item.photoStatus}}</uni-td>
|
|
|
+
|
|
|
+ <uni-td class="grid-text">{{item.photoTotal > 0 ? item.photoStatus : ''}}</uni-td>
|
|
|
</uni-tr>
|
|
|
<uni-tr class="section-title" @click="enterItem(item.pdid, 1, item)">
|
|
|
<uni-td class="grid-text">检验记录</uni-td>
|
|
|
- <uni-td class="grid-text">
|
|
|
+ <uni-td class="grid-text" >
|
|
|
<text :class="{
|
|
|
'bg-green bg-text': item.recordCount == item.recordTotal,
|
|
|
'bg-yellow bg-text': item.recordCount > 0 && item.recordCount < item.recordTotal,
|
|
|
'bg-black bg-text': item.recordCount == 0 && item.recordTotal > 0,
|
|
|
- }">
|
|
|
+ }" v-if="item.recordTotal > 0">
|
|
|
{{item.recordCount}} / {{item.recordTotal}}
|
|
|
</text>
|
|
|
+ <text v-if="item.recordTotal == 0">暂无数据</text>
|
|
|
</uni-td>
|
|
|
+
|
|
|
<uni-td class="grid-text"><text :class="{
|
|
|
'ft-red':item.recordStatus == '不合格'
|
|
|
- }">{{item.recordStatus}}</text></uni-td>
|
|
|
+ }">{{item.recordTotal > 0 ? item.recordStatus : ''}}</text></uni-td>
|
|
|
</uni-tr>
|
|
|
<uni-tr class="section-title" @click="enterItem(item.pdid, 2, item)">
|
|
|
<uni-td class="grid-text">关键工序记录</uni-td>
|
|
|
- <uni-td class="grid-text">
|
|
|
+ <uni-td class="grid-text" >
|
|
|
<text :class="{
|
|
|
'bg-green bg-text': item.keyCount == item.keyTotal,
|
|
|
'bg-yellow bg-text': item.keyCount > 0 && item.keyCount < item.keyTotal,
|
|
|
'bg-black bg-text': item.keyCount == 0 && item.keyTotal > 0,
|
|
|
- }">
|
|
|
+ }" v-if="item.keyTotal > 0">
|
|
|
{{item.keyCount}} / {{item.keyTotal}}
|
|
|
</text>
|
|
|
+ <text v-if="item.keyTotal == 0">暂无数据</text>
|
|
|
</uni-td>
|
|
|
+
|
|
|
<uni-td class="grid-text"><text :class="{
|
|
|
'ft-red':item.keyStatus == '不合格'
|
|
|
- }">{{item.keyStatus}}</text></uni-td>
|
|
|
+ }">{{item.keyTotal > 0 ? item.keyStatus : ''}}</text></uni-td>
|
|
|
</uni-tr>
|
|
|
</uni-table>
|
|
|
</view>
|