seimin 1 年之前
父節點
當前提交
74e2156f4d
共有 2 個文件被更改,包括 28 次插入32 次删除
  1. 9 11
      pages/patientInformationList/patientInformationList.vue
  2. 19 21
      pages/scanning_ins/scanning_ins.vue

+ 9 - 11
pages/patientInformationList/patientInformationList.vue

@@ -320,20 +320,18 @@
320
                 code = ress;
320
                 code = ress;
321
                 // 科室扫描
321
                 // 科室扫描
322
                 let postData = {
322
                 let postData = {
323
-                  "idx": 0,
324
-                  "sum": 1,
325
-                  "department": {
326
-                    "hospital": {
327
-                      "id": this.hosId
328
-                    },
329
-                    "qrcode": code
330
-                  }
323
+                  "type": "query",
324
+                  "qrCode": code
331
                 };
325
                 };
332
-                post("/data/fetchDataList/department", postData).then((res) => {
326
+                post("/dept/scanChangeDept", postData).then((res) => {
333
                   uni.hideLoading();
327
                   uni.hideLoading();
334
                   if (res.status == 200) {
328
                   if (res.status == 200) {
335
-                    if (res.totalNum > 0) {
336
-                      this.currentStartDept = res.list[0];
329
+                    if (res.data) {
330
+                      if(res.data.deptDTO){
331
+                        this.currentStartDept = res.data.deptDTO;
332
+                      }else{
333
+                        this.currentStartDept = res.data;
334
+                      }
337
                       this.models3 = {
335
                       this.models3 = {
338
                         disjunctor: true,
336
                         disjunctor: true,
339
                         title: "提示",
337
                         title: "提示",

+ 19 - 21
pages/scanning_ins/scanning_ins.vue

@@ -569,30 +569,28 @@
569
                 code = ress;
569
                 code = ress;
570
                 // 科室扫描
570
                 // 科室扫描
571
                 let postData = {
571
                 let postData = {
572
-                  "idx": 0,
573
-                  "sum": 1,
574
-                  "department": {
575
-                    "hospital": {
576
-                      "id": this.hosId
577
-                    },
578
-                    "qrcode": code
579
-                  }
572
+                  "type": "query",
573
+                  "qrCode": code
580
                 };
574
                 };
581
-                post("/data/fetchDataList/department", postData).then((res) => {
575
+                post("/dept/scanChangeDept", postData).then((res) => {
582
                   uni.hideLoading();
576
                   uni.hideLoading();
583
                   if (res.status == 200) {
577
                   if (res.status == 200) {
584
-                    if (res.totalNum > 0) {
585
-                      this.currentStartDept = res.list[0];
586
-                      this.models3 = {
587
-                        disjunctor: true,
588
-                        title: "提示",
589
-                        content: `您选择的起点科室为【${this.currentStartDept.dept}】,您将从【${this.currentStartDept.dept}】把【${infoDATA.patientName}】送回【${infoDATA.department.dept}】,如您确认请点击“确认建单”。`,
590
-                        icon: "warn",
591
-                        operate: {
592
-                          ok: "确认建单",
593
-                          cancel: "取消",
594
-                        },
595
-                      };                      
578
+                    if (res.data) {
579
+                      if(res.data.deptDTO){
580
+                        this.currentStartDept = res.data.deptDTO;
581
+                      }else{
582
+                        this.currentStartDept = res.data;
583
+                      }
584
+                       this.models3 = {
585
+                         disjunctor: true,
586
+                         title: "提示",
587
+                         content: `您选择的起点科室为【${this.currentStartDept.dept}】,您将从【${this.currentStartDept.dept}】把【${infoDATA.patientName}】送回【${infoDATA.department.dept}】,如您确认请点击“确认建单”。`,
588
+                         icon: "warn",
589
+                         operate: {
590
+                           ok: "确认建单",
591
+                           cancel: "取消",
592
+                         },
593
+                       };                    
596
                     } else {
594
                     } else {
597
                       uni.hideLoading();
595
                       uni.hideLoading();
598
                       uni.showToast({
596
                       uni.showToast({