Browse Source

标本退回BUG修复

seimin 2 years ago
parent
commit
082353e836
1 changed files with 6 additions and 6 deletions
  1. 6 6
      pages/scanning_B/scanning_B.vue

+ 6 - 6
pages/scanning_B/scanning_B.vue

@@ -40,7 +40,7 @@
40
           v-else-if="res.workOrder&&res.workOrder.gdState.value != 2&&res.workOrder.gdState.value != 4">执行工单</view>
40
           v-else-if="res.workOrder&&res.workOrder.gdState.value != 2&&res.workOrder.gdState.value != 4">执行工单</view>
41
         <view class="btn3" @click="buildAndOrderSign(res.data.id)" v-if="!res.workOrder && res.data">建单并签到</view>
41
         <view class="btn3" @click="buildAndOrderSign(res.data.id)" v-if="!res.workOrder && res.data">建单并签到</view>
42
       </block>
42
       </block>
43
-      <view class="btn3" @click="back(res.data,res.workOrder)"
43
+      <view class="btn3" @click="back(res.data,res.data.gdid)"
44
         v-if="res.data.speState&&(res.data.speState.value == 2||res.data.speState.value == 3||res.data.speState.value == 4||res.data.speState.value == 5)">
44
         v-if="res.data.speState&&(res.data.speState.value == 2||res.data.speState.value == 3||res.data.speState.value == 4||res.data.speState.value == 5)">
45
         退回</view>
45
         退回</view>
46
     </view>
46
     </view>
@@ -124,7 +124,7 @@
124
         }
124
         }
125
       },
125
       },
126
       // 退回
126
       // 退回
127
-      back(specimen, workOrder) {
127
+      back(specimen, workOrderId) {
128
         this.backSpecimen = specimen;
128
         this.backSpecimen = specimen;
129
         this.backStatus = 'back';
129
         this.backStatus = 'back';
130
         uni.showModal({
130
         uni.showModal({
@@ -151,7 +151,7 @@
151
                   if (result.list[0].value == 1) {
151
                   if (result.list[0].value == 1) {
152
                     this.showSelectAccount();
152
                     this.showSelectAccount();
153
                   } else {
153
                   } else {
154
-                    this.backHandler(this.backSpecimen, workOrder);
154
+                    this.backHandler(this.backSpecimen, workOrderId);
155
                   }
155
                   }
156
                 } else {
156
                 } else {
157
                   uni.showToast({
157
                   uni.showToast({
@@ -292,7 +292,7 @@
292
         }
292
         }
293
       },
293
       },
294
       // 退回
294
       // 退回
295
-      backHandler(specimen, workorder, data) {
295
+      backHandler(specimen, workorderId, data) {
296
         console.log(specimen);
296
         console.log(specimen);
297
         uni.showLoading({
297
         uni.showLoading({
298
           title: '加载中',
298
           title: '加载中',
@@ -304,7 +304,7 @@
304
           speState: specimen.speState ? specimen.speState.id : undefined,
304
           speState: specimen.speState ? specimen.speState.id : undefined,
305
           handoverId: data ? data.accountId : undefined,
305
           handoverId: data ? data.accountId : undefined,
306
           handoverName: data ? data.accountName : undefined,
306
           handoverName: data ? data.accountName : undefined,
307
-          gdId: workorder ? workorder.id : undefined,
307
+          gdId: workorderId || undefined,
308
         }
308
         }
309
         post('/workerOrder/returnSpecimen', postData).then(res => {
309
         post('/workerOrder/returnSpecimen', postData).then(res => {
310
           uni.hideLoading();
310
           uni.hideLoading();
@@ -371,7 +371,7 @@
371
         });
371
         });
372
         if (this.backStatus = 'back') {
372
         if (this.backStatus = 'back') {
373
           // 退回
373
           // 退回
374
-          this.backHandler(this.backSpecimen, this.res.workOrder, data);
374
+          this.backHandler(this.backSpecimen, this.res.data.gdid, data);
375
         } else {
375
         } else {
376
           this.nextDeptOrder_s(this.res.workOrder, data);
376
           this.nextDeptOrder_s(this.res.workOrder, data);
377
         }
377
         }