mao před 1 rokem
rodič
revize
07337532f4
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  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> -->