Browse Source

no message

linwenxin 5 months ago
parent
commit
e9268750ad

+ 1 - 1
src/components/selectionWorkers.vue

@@ -132,7 +132,7 @@ export default {
       }
     },
     quxiao() {
-      this.callback?.()
+      this.$emit('close')
     }
   }
 }

+ 13 - 1
src/packageWorkorder/pages/orderDetail.vue

@@ -643,7 +643,19 @@
         </view>
       </template>
     </zj-page-layout>
-    <selectionWorkers v-if="item" :detail="item" :type="selectionWorkersType" :callback="callback" />
+    <selectionWorkers
+      v-if="item"
+      :detail="item"
+      :type="selectionWorkersType"
+      :callback="callback"
+      @close="
+        () => {
+          item = null
+          selectionWorkersType = null
+          callback = null
+        }
+      "
+    />
     <u-popup :show="isShowFeedback" @close="isShowFeedback = false" closeable round="10">
       <view class="feedback-dialog">
         <view class="title">服务路由</view>

+ 13 - 1
src/packageWorkorder/pages/orderList.vue

@@ -188,7 +188,19 @@
     </zj-page-layout>
 
     <zj-dialog-dateRangePicker v-model="isShowDatePicker" @confirm="confirmDate"></zj-dialog-dateRangePicker>
-    <selectionWorkers v-if="item" :detail="item" :type="selectionWorkersType" :callback="callback" />
+    <selectionWorkers
+      v-if="item"
+      :detail="item"
+      :type="selectionWorkersType"
+      :callback="callback"
+      @close="
+        () => {
+          item = null
+          selectionWorkersType = null
+          callback = null
+        }
+      "
+    />
   </view>
 </template>