sunChengjie 7 months ago
parent
commit
66d85691a4
2 changed files with 3 additions and 3 deletions
  1. 1 2
      src/pages/new/removal.vue
  2. 2 1
      src/pages/new/sign.vue

+ 1 - 2
src/pages/new/removal.vue

@@ -60,7 +60,6 @@ export default {
                         result = result1[result1.length - 1];
                     }
                     this.iconCheck(result)
-                    this.callback(result)
                 },
                 error: function (res) {
                     console.log(res, 'error++++++++++');
@@ -69,7 +68,7 @@ export default {
         },
         async iconCheck(result) {
             const res = await appPermissionChecks({ expressNo: result, deliveryPeopleId: localStorage.getItem('courierUserId') })
-            if (Object.keys(res.data).length > 0) {
+            if (!!res.data) {
                 this.callback(res.data.expressNo)
             } else {
                 Toast('不在派送范围')

+ 2 - 1
src/pages/new/sign.vue

@@ -1,7 +1,7 @@
 <template>
     <div>
         <div class="container">
-            <van-search @search="check" v-model="value" placeholder="请输入快件单号或手机单号" />
+            <van-search @search="check" v-model="value" placeholder="请输入快单号" />
             <img @click="onImg" src="@/assets/user/u4.png" alt="">
 
             <!-- <van-button style="width: 200px; border-radius: 6px; margin-left: 10px;" type="info"
@@ -41,6 +41,7 @@ export default {
                         result = result1[result1.length - 1];
                     }
                     this.value = result
+                    this.check()
                 },
                 error: function (res) {
                     console.log(res, 'error++++++++++');