Explorar o código

完成人显示

xiaohaizhao hai 1 ano
pai
achega
3295b16c5b
Modificáronse 2 ficheiros con 26 adicións e 9 borrados
  1. 17 6
      packageA/workOrder/modules/nodes.vue
  2. 9 3
      packageA/workOrder/setNode.vue

+ 17 - 6
packageA/workOrder/modules/nodes.vue

@@ -15,9 +15,14 @@
                     </view>
                     <block v-else>
                         <view class="time">{{ item.changedate }}</view>
-                        <view class="done tag" v-if="item.status == 1">
-                            完成
-                        </view>
+                        <block v-if="item.status == 1">
+                            <view class="done tag">
+                                完成
+                            </view>
+                            <view class="underway tag">
+                                {{ item.finishby }}
+                            </view>
+                        </block>
                         <view class="underway tag" v-else>
                             进行中
                         </view>
@@ -35,9 +40,15 @@
                         </view>
                         <block v-else>
                             <view class="time">{{ child.changedate }}</view>
-                            <view class="done tag" v-if="child.status == 1">
-                                完成
-                            </view>
+                            <block v-if="child.status == 1">
+                                <view class="done tag">
+                                    完成
+                                </view>
+                                <view class="underway tag">
+                                    {{ child.finishby }}
+                                </view>
+                            </block>
+
                             <view class="underway tag" v-else>
                                 进行中
                             </view>

+ 9 - 3
packageA/workOrder/setNode.vue

@@ -18,12 +18,18 @@
                 </view>
                 <block v-else>
                     <view class="time">{{ detail.changedate }}</view>
-                    <view class="done tag" v-if="detail.status == 1">
-                        完成
-                    </view>
+                    <block v-if="detail.status == 1">
+                        <view class="done tag">
+                            完成
+                        </view>
+                        <view class="underway tag">
+                            {{ detail.finishby }}
+                        </view>
+                    </block>
                     <view class="underway tag" v-else>
                         进行中
                     </view>
+
                 </block>
             </view>
         </view>