linwenxin hace 5 meses
padre
commit
b09a7433da

+ 6 - 2
src/components/selectionWorkers.vue

@@ -1,7 +1,7 @@
 <template>
   <view class="z-popup">
     <view class="zhuangtaitubiao" style="justify-content: flex-start !important">
-      <view class="title">接收确认</view>
+      <view class="title">{{ title }}</view>
       <view class="row">
         <view class="label">客户名称:</view>
         <view class="value">{{ detail.userName }}</view>
@@ -38,7 +38,7 @@
         <u-button
           v-if="detail.needSlave ? !!workerList.length : true"
           type="primary"
-          text="确认接收"
+          text="确认"
           @click="querenss"
         ></u-button>
       </view>
@@ -49,6 +49,10 @@
 <script>
 export default {
   props: {
+    title: {
+      type: [String],
+      default: '接收确认'
+    },
     detail: {
       type: Object,
       default: () => ({})

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

@@ -645,6 +645,7 @@
     </zj-page-layout>
     <selectionWorkers
       v-if="item"
+      :title="title"
       :detail="item"
       :type="selectionWorkersType"
       :callback="callback"
@@ -726,7 +727,8 @@ export default {
       behavior: '',
       selectionWorkersType: '',
       item: null,
-      callback: null
+      callback: null,
+      title: ''
     }
   },
 
@@ -1023,6 +1025,7 @@ export default {
 
     // 变更小工
     biangengxiaogong() {
+      this.title = '更换小工'
       this.selectionWorkersType = 3
       this.item = { ...this.detail }
       this.callback = () => {
@@ -1033,12 +1036,14 @@ export default {
           this.item = null
           this.selectionWorkersType = null
           this.callback = null
+          this.title = null
         })
       }
     },
 
     // 接单
     actionReceive() {
+      this.title = '接收确认'
       this.selectionWorkersType = 1
       this.item = { ...this.detail }
       this.callback = () => {
@@ -1049,6 +1054,7 @@ export default {
           this.item = null
           this.selectionWorkersType = null
           this.callback = null
+          this.title = null
         })
       }
       // this.$modal({
@@ -1070,6 +1076,7 @@ export default {
     },
 
     qdOrder(item) {
+      // this.title = '接收确认'
       // this.selectionWorkersType = 2
       // this.item = { ...item }
       // this.callback = () => {

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

@@ -190,6 +190,7 @@
     <zj-dialog-dateRangePicker v-model="isShowDatePicker" @confirm="confirmDate"></zj-dialog-dateRangePicker>
     <selectionWorkers
       v-if="item"
+      :title="title"
       :detail="item"
       :type="selectionWorkersType"
       :callback="callback"
@@ -254,7 +255,8 @@ export default {
       isWb: false, // 是否维保单
       selectionWorkersType: '',
       item: null,
-      callback: null
+      callback: null,
+      title: ''
     }
   },
 
@@ -558,6 +560,7 @@ export default {
 
     // 接单
     actionReceive(item) {
+      this.title = '接收确认'
       this.selectionWorkersType = 1
       this.item = { ...item }
       this.callback = () => {
@@ -568,12 +571,14 @@ export default {
           this.item = null
           this.selectionWorkersType = null
           this.callback = null
+          this.title = null
         })
       }
     },
 
     // 变更小工
     biangengxiaogong(item) {
+      this.title = '更换小工'
       this.selectionWorkersType = 3
       this.item = { ...item }
       this.callback = () => {
@@ -584,12 +589,14 @@ export default {
           this.item = null
           this.selectionWorkersType = null
           this.callback = null
+          this.title = null
         })
       }
     },
 
     // 抢单
     qdOrder(item) {
+      // this.title = '接收确认'
       // this.selectionWorkersType = 2
       // this.item = { ...item }
       // this.callback = () => {