董国庆
2025-06-06 d0f4c2d4bb7a72b32fb9945de8908e1d4ab6509c
H5/pages/dispatchWorkOrder/dispatchWorkOrder.vue
@@ -25,7 +25,12 @@
                  </view>
               </view>
               <view class="person-item flex1">{{detail.name}}</view>
               <view class="phone-item flex1">{{detail.contactNumber}}</view>
               <view class="flex a-center">
                  <view class="phone-item flex1">{{detail.contactNumber}}</view>
                  <image @click.stop="callPhone(detail.contactNumber)" src="../../static/tell.png"
                     class="w-58 h-58 shrink0 " />
               </view>
            </view>
         </view>
      </view>
@@ -77,7 +82,7 @@
         };
      },
      onShow() {
         this.accountLevel = uni.getStorageSync('userInfo').accountLevel || 1
         this.accountLevel = uni.getStorageSync('userInfo').levelId || 1
      },
      onLoad(option) {
         // option.id = 1
@@ -93,6 +98,12 @@
         }
      },
      methods: {
         callPhone(phoneNumber) {
            uni.makePhoneCall({
               phoneNumber
            });
         },
         close() {
            this.showPop = false
         },
@@ -120,19 +131,26 @@
               })
               return
            }
            uni.showLoading({
               mask: true
            })
            saveDispatch({
               complaintId: this.id,
               comment: this.content,
               dispatchId: this.value
            }).then(res => {
               this.showPop = false
               uni.hideLoading()
               if (res.code == 200) {
                  uni.showToast({
                     icon: 'none',
                     title: '下派成功'
                  })
                  uni.navigateBack({
                     delta: 2
                  })
                  setTimeout(() => {
                     uni.navigateBack({
                        delta: 2
                     })
                  }, 1500)
               }
            })
         }