seimin 1 week ago
parent
commit
540b44a017
1 changed files with 25 additions and 3 deletions
  1. 25 3
      pages/receipt_infopage/receipt_infopage.vue

+ 25 - 3
pages/receipt_infopage/receipt_infopage.vue

@@ -406,7 +406,7 @@
406
           infoDATA.taskType.associationType.value != 'specimenPlan' &&
406
           infoDATA.taskType.associationType.value != 'specimenPlan' &&
407
           infoDATA.taskType.associationType.value != 'ordinary' &&
407
           infoDATA.taskType.associationType.value != 'ordinary' &&
408
           infoDATA.taskType.specialCloseButton == 1
408
           infoDATA.taskType.specialCloseButton == 1
409
-        " hover-class="seimin-btn-hover">特殊情况关闭</view>
409
+        " hover-class="seimin-btn-hover">{{infoDATA.taskType.closeOrderCheckDept == 1 ? '扫描科室码关闭' : '特殊情况关闭'}}</view>
410
       </template>
410
       </template>
411
       <!-- 如果不是患者陪检或患者转运或其他,万能交接 -->
411
       <!-- 如果不是患者陪检或患者转运或其他,万能交接 -->
412
       <!-- <view :class="[infoDATA.taskType.specialCloseButton == 1 ? 'btn3' : 'btn2']" v-if="
412
       <!-- <view :class="[infoDATA.taskType.specialCloseButton == 1 ? 'btn3' : 'btn2']" v-if="
@@ -430,7 +430,7 @@
430
           infoDATA.taskType.associationType.value != 'inspect' &&
430
           infoDATA.taskType.associationType.value != 'inspect' &&
431
           infoDATA.taskType.associationType.value != 'other' &&
431
           infoDATA.taskType.associationType.value != 'other' &&
432
           infoDATA.taskType.specialCloseButton == 1
432
           infoDATA.taskType.specialCloseButton == 1
433
-        " hover-class="seimin-btn-hover">特殊情况关闭</view>
433
+        " hover-class="seimin-btn-hover">{{infoDATA.taskType.closeOrderCheckDept == 1 ? '扫描科室码关闭' : '特殊情况关闭'}}</view>
434
       <view class="btn3" @click="viewSpecimen(infoDATA)" v-if="
434
       <view class="btn3" @click="viewSpecimen(infoDATA)" v-if="
435
           infoDATA.taskType.associationType.value == 'specimen' ||
435
           infoDATA.taskType.associationType.value == 'specimen' ||
436
           infoDATA.taskType.associationType.value == 'specimenPlan'
436
           infoDATA.taskType.associationType.value == 'specimenPlan'
@@ -1533,11 +1533,33 @@
1533
         this.SMFlag = false;
1533
         this.SMFlag = false;
1534
         SM().then((content) => {
1534
         SM().then((content) => {
1535
           this.SMFlag = true;
1535
           this.SMFlag = true;
1536
-          this.specialCloseClickText(content);
1536
+          this.specialCloseClickValidate(content);
1537
         }).catch(err => {
1537
         }).catch(err => {
1538
           this.SMFlag = true;
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
       specialCloseClickText(content) {
1564
       specialCloseClickText(content) {
1543
         this.deptCodeScan = content;
1565
         this.deptCodeScan = content;