Browse Source

标本大扫描BUG修复

seimin 3 years ago
parent
commit
d30fc37a90

+ 20 - 9
pages/scanning_djEnd/scanning_djEnd.vue

@@ -114,8 +114,11 @@
114
           type == 'specimen' &&
114
           type == 'specimen' &&
115
           infoDATA.type == 'spe-ddd-1')
115
           infoDATA.type == 'spe-ddd-1')
116
       "
116
       "
117
-      >已到达目标科室,请取标本后送达目标科室.</view
118
     >
117
     >
118
+      <view v-if="accountObj"> 交接人账号 : {{ accountObj.account }} </view>
119
+      <view v-if="accountObj"> 交接人姓名 : {{ accountObj.accountName }} </view>
120
+      <view>已到达目标科室,请取标本后送达目标科室.</view>
121
+    </view>
119
     <view
122
     <view
120
       class="Scanning_cont"
123
       class="Scanning_cont"
121
       v-if="
124
       v-if="
@@ -300,7 +303,9 @@ export default {
300
       this.gotoFlag = false;
303
       this.gotoFlag = false;
301
       let ids = JSON.parse(this.queryObj.ids);
304
       let ids = JSON.parse(this.queryObj.ids);
302
       uni.navigateTo({
305
       uni.navigateTo({
303
-        url: `../noScanSpecimen/noScanSpecimen?workOrderId=${encodeURIComponent(JSON.stringify(ids))}&deptCode=${this.queryObj.deptCode}`,
306
+        url: `../noScanSpecimen/noScanSpecimen?workOrderId=${encodeURIComponent(
307
+          JSON.stringify(ids)
308
+        )}&deptCode=${this.queryObj.code}`,
304
       });
309
       });
305
     },
310
     },
306
     // 正常完成扫描
311
     // 正常完成扫描
@@ -356,7 +361,7 @@ export default {
356
         let postData = {
361
         let postData = {
357
           ids: [id],
362
           ids: [id],
358
           sign: true,
363
           sign: true,
359
-          deptQrCode: this.queryObj.deptCode,
364
+          deptQrCode: this.queryObj.code,
360
         };
365
         };
361
         post("/workerOrder/expectedAndActual", postData).then((ress) => {
366
         post("/workerOrder/expectedAndActual", postData).then((ress) => {
362
           uni.hideLoading();
367
           uni.hideLoading();
@@ -437,7 +442,7 @@ export default {
437
       let id = JSON.parse(this.queryObj.ids)[0];
442
       let id = JSON.parse(this.queryObj.ids)[0];
438
       let postData = {
443
       let postData = {
439
         ids: [id],
444
         ids: [id],
440
-        deptQrCode: this.queryObj.deptCode,
445
+        deptQrCode: this.queryObj.code,
441
       };
446
       };
442
       uni.showLoading({
447
       uni.showLoading({
443
         title: "加载中",
448
         title: "加载中",
@@ -567,7 +572,7 @@ export default {
567
               if (this.type == "jPBag" || this.type == "drugsBag") {
572
               if (this.type == "jPBag" || this.type == "drugsBag") {
568
                 postType = "handleDrugsAndJp";
573
                 postType = "handleDrugsAndJp";
569
                 delete data.ids;
574
                 delete data.ids;
570
-                if(this.accountObj){
575
+                if (this.accountObj) {
571
                   data.handover = this.accountObj.accountId;
576
                   data.handover = this.accountObj.accountId;
572
                 }
577
                 }
573
                 data.deptId = this.deptId;
578
                 data.deptId = this.deptId;
@@ -576,7 +581,7 @@ export default {
576
                 postType = "handleSpes";
581
                 postType = "handleSpes";
577
                 data["speCode"] = data.code;
582
                 data["speCode"] = data.code;
578
                 delete data.code;
583
                 delete data.code;
579
-                if(this.accountObj){
584
+                if (this.accountObj) {
580
                   data.handover = this.accountObj.accountId;
585
                   data.handover = this.accountObj.accountId;
581
                 }
586
                 }
582
               }
587
               }
@@ -584,7 +589,7 @@ export default {
584
                 postType = "handlePlanSpes";
589
                 postType = "handlePlanSpes";
585
                 data["speCode"] = data.code;
590
                 data["speCode"] = data.code;
586
                 delete data.code;
591
                 delete data.code;
587
-                if(this.accountObj){
592
+                if (this.accountObj) {
588
                   data.handover = this.accountObj.accountId;
593
                   data.handover = this.accountObj.accountId;
589
                 }
594
                 }
590
               }
595
               }
@@ -611,7 +616,9 @@ export default {
611
                       JSON.stringify(this.ids)
616
                       JSON.stringify(this.ids)
612
                     )}&model=${encodeURIComponent(
617
                     )}&model=${encodeURIComponent(
613
                       JSON.stringify(ress)
618
                       JSON.stringify(ress)
614
-                    )}&speNum=${this.speNum}&accountObj=${encodeURIComponent(JSON.stringify(this.accountObj))}&deptId=${this.deptId}`,
619
+                    )}&speNum=${this.speNum}&accountObj=${encodeURIComponent(
620
+                      JSON.stringify(this.accountObj)
621
+                    )}&deptId=${this.deptId}`,
615
                   });
622
                   });
616
                 } else {
623
                 } else {
617
                   uni.navigateTo({
624
                   uni.navigateTo({
@@ -625,7 +632,11 @@ export default {
625
                       JSON.stringify(this.ids)
632
                       JSON.stringify(this.ids)
626
                     )}&infoData=${encodeURIComponent(
633
                     )}&infoData=${encodeURIComponent(
627
                       JSON.stringify(ress.data)
634
                       JSON.stringify(ress.data)
628
-                    )}&model=${encodeURIComponent(JSON.stringify(ress))}&accountObj=${encodeURIComponent(JSON.stringify(this.accountObj))}&deptId=${this.deptId}`,
635
+                    )}&model=${encodeURIComponent(
636
+                      JSON.stringify(ress)
637
+                    )}&accountObj=${encodeURIComponent(
638
+                      JSON.stringify(this.accountObj)
639
+                    )}&deptId=${this.deptId}`,
629
                   });
640
                   });
630
                 }
641
                 }
631
               });
642
               });

+ 14 - 0
pages/scanning_djInfo/scanning_djInfo.vue

@@ -42,6 +42,20 @@
42
       <view>标本类型 : {{ infoDATA.data.stype.name || "-" }}</view>
42
       <view>标本类型 : {{ infoDATA.data.stype.name || "-" }}</view>
43
       <view>标本编号 : {{ infoDATA.data.scode || "-" }}</view>
43
       <view>标本编号 : {{ infoDATA.data.scode || "-" }}</view>
44
       <view>患者姓名 : {{ infoDATA.data.patientName || "-" }}</view>
44
       <view>患者姓名 : {{ infoDATA.data.patientName || "-" }}</view>
45
+      <view
46
+        v-if="
47
+          accountObj && infoType !== 'spe-ddd-1' && infoType !== 'spe-dsd-1'&& infoType !== 'plan-spe-ddd-1' && infoType !== 'plan-spe-dsd-1'
48
+        "
49
+      >
50
+        交接人账号 : {{ accountObj.account }}
51
+      </view>
52
+      <view
53
+        v-if="
54
+          accountObj && infoType !== 'spe-ddd-1' && infoType !== 'spe-dsd-1'&& infoType !== 'plan-spe-ddd-1' && infoType !== 'plan-spe-dsd-1'
55
+        "
56
+      >
57
+        交接人姓名 : {{ accountObj.accountName }}
58
+      </view>
45
       <view>已扫描 : {{ speNum }}</view>
59
       <view>已扫描 : {{ speNum }}</view>
46
     </view>
60
     </view>
47
     <view
61
     <view