mao 1 년 전
부모
커밋
07337532f4
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      pages/batchReporting/index.vue

+ 3 - 3
pages/batchReporting/index.vue

@@ -49,14 +49,14 @@
 				<view class="item-info uni-row">
 					<text class="label">上道工序</text>
 					<text
-						class="label right">{{ item.prevProcess && item.prevProcess.length > 0 ? item.prevProcess[item.prevProcess.length - 1].processAlias : '-'}}</text>
+						class="label right">{{ item.prevProcess ? item['prevProcess'].processAlias : '-'}}</text>
 				</view>
 				<view class="item-info uni-row">
 					<text class="label">当前工序</text>
-					<text class="label right">{{ item['currentProcess'].processAlias }}</text>
+					<text class="label right">{{ item.currentProcess ? item['currentProcess'].processAlias : '-'}}</text>
 				</view>
 <!-- 				<view class="item-info uni-row">
-					<text class="label">下道工序</text>
+					<text class="label">下道工序</text> 
 					<text
 						class="label right">{{item.prevProcess && item.nextProcess.length > 0 ? item.nextProcess[0].processAlias : null }}</text>
 				</view> -->