seimin 1 周之前
父节点
当前提交
540b44a017
共有 1 个文件被更改,包括 25 次插入3 次删除
  1. 25 3
      pages/receipt_infopage/receipt_infopage.vue

+ 25 - 3
pages/receipt_infopage/receipt_infopage.vue

@@ -406,7 +406,7 @@
406 406
           infoDATA.taskType.associationType.value != 'specimenPlan' &&
407 407
           infoDATA.taskType.associationType.value != 'ordinary' &&
408 408
           infoDATA.taskType.specialCloseButton == 1
409
-        " hover-class="seimin-btn-hover">特殊情况关闭</view>
409
+        " hover-class="seimin-btn-hover">{{infoDATA.taskType.closeOrderCheckDept == 1 ? '扫描科室码关闭' : '特殊情况关闭'}}</view>
410 410
       </template>
411 411
       <!-- 如果不是患者陪检或患者转运或其他,万能交接 -->
412 412
       <!-- <view :class="[infoDATA.taskType.specialCloseButton == 1 ? 'btn3' : 'btn2']" v-if="
@@ -430,7 +430,7 @@
430 430
           infoDATA.taskType.associationType.value != 'inspect' &&
431 431
           infoDATA.taskType.associationType.value != 'other' &&
432 432
           infoDATA.taskType.specialCloseButton == 1
433
-        " hover-class="seimin-btn-hover">特殊情况关闭</view>
433
+        " hover-class="seimin-btn-hover">{{infoDATA.taskType.closeOrderCheckDept == 1 ? '扫描科室码关闭' : '特殊情况关闭'}}</view>
434 434
       <view class="btn3" @click="viewSpecimen(infoDATA)" v-if="
435 435
           infoDATA.taskType.associationType.value == 'specimen' ||
436 436
           infoDATA.taskType.associationType.value == 'specimenPlan'
@@ -1533,11 +1533,33 @@
1533 1533
         this.SMFlag = false;
1534 1534
         SM().then((content) => {
1535 1535
           this.SMFlag = true;
1536
-          this.specialCloseClickText(content);
1536
+          this.specialCloseClickValidate(content);
1537 1537
         }).catch(err => {
1538 1538
           this.SMFlag = true;
1539 1539
         });
1540 1540
       },
1541
+      // 校验科室
1542
+      specialCloseClickValidate(content){
1543
+        uni.showLoading({
1544
+          title: "加载中",
1545
+          mask: true,
1546
+        });
1547
+        post("/workerOrder/scanCheck", {
1548
+          type: 'workOrderDept', //匹配工单的起点科室或终点科室
1549
+          workOrderId: this.dataId,
1550
+          scanCode: content,
1551
+        }).then((result) => {
1552
+          uni.hideLoading();
1553
+          if (result.state == 200) {
1554
+            this.specialCloseClickText(content);
1555
+          } else {
1556
+            uni.showToast({
1557
+              icon: "none",
1558
+              title: result.msg || "接口获取数据失败!",
1559
+            });
1560
+          }
1561
+        });
1562
+      },
1541 1563
       // 特殊情况填写内容
1542 1564
       specialCloseClickText(content) {
1543 1565
         this.deptCodeScan = content;