瀏覽代碼

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 年之前
父節點
當前提交
e8bb048193

+ 18 - 0
src/api/advice.js 查看文件

583
     method: 'get',
583
     method: 'get',
584
     params: params
584
     params: params
585
   })
585
   })
586
+}
587
+
588
+export function getPatientsByName(params){
589
+   
590
+  return request({
591
+    url:"/api/schedule/getpatientbyname",
592
+    method:"get",
593
+    params:params,
594
+  })
595
+}
596
+
597
+export function getDocAdviceByPatientId(params){
598
+  
599
+  return request({
600
+    url:"/api/schedule/getdocadvicebypatientid",
601
+    method:"get",
602
+    params:params,
603
+  })
586
 }
604
 }

+ 2 - 2
src/api/role/admin.js 查看文件

284
   })
284
   })
285
 }
285
 }
286
 
286
 
287
-export function CreateQianshuUserName(data){
287
+export function CreateQianshuUserName(admin_user_id,data){
288
   
288
   
289
   return request({
289
   return request({
290
-    url:"/api/device/createqianshuusername",
290
+    url:"/api/device/createqianshuusername?admin_user_id="+admin_user_id,
291
     method:"Post",
291
     method:"Post",
292
     data:data,
292
     data:data,
293
   })
293
   })

+ 9 - 0
src/router/modules/dialysis.js 查看文件

56
         noCache: true
56
         noCache: true
57
       }
57
       }
58
     },
58
     },
59
+    {
60
+      path: '/dialysis/patientDoctorAdvice',
61
+      component: () => import('@/xt_pages/dialysis/patientDoctorAdvice'),
62
+      name: '医嘱统计',
63
+      meta: {
64
+        title: '医嘱统计',
65
+        noCache: true
66
+      }
67
+    },
59
     {
68
     {
60
       path: '/dialysis/longDoctorAdvice',
69
       path: '/dialysis/longDoctorAdvice',
61
       component: () => import('@/xt_pages/dialysis/longDoctorAdvice'),
70
       component: () => import('@/xt_pages/dialysis/longDoctorAdvice'),

+ 25 - 18
src/xt_pages/dialysis/batch_print/batch_print_order.vue 查看文件

48
48
49
             </div>
49
             </div>
50
             <div class="inline_block" style="margin-left: 25px">
50
             <div class="inline_block" style="margin-left: 25px">
51
-              科室:
51
+              科室22
52
               <check-box
52
               <check-box
53
                 text="门诊透析"
53
                 text="门诊透析"
54
                 :checked="record.patient.source == 1"
54
                 :checked="record.patient.source == 1"
662
                     <div class="row" style="padding: 2px 0;">
662
                     <div class="row" style="padding: 2px 0;">
663
                       <div class="inline_block">
663
                       <div class="inline_block">
664
                         抗凝方式:
664
                         抗凝方式:
665
-                        <check-box
666
-                          text="普通肝素"
667
-                          :checked="
668
-                            isCheckBoxChecked(
669
-                              record.prescription,
670
-                              'anticoagulant',
671
-                              2
672
-                            )
673
-                          "
674
-                        ></check-box>
665
+                        <check-box text="普通肝素" :checked="isCheckBoxChecked(record.prescription,'anticoagulant',2)"></check-box>
666
+                        <check-box text="肝素钙注射液" :checked="isCheckBoxChecked(record.prescription,'anticoagulant',14)"></check-box>
675
                         ( 首剂
667
                         ( 首剂
668
+                        <div class="under_line" style="width: 50px;">
669
+                          {{isCheckBoxChecked( record.prescription,"anticoagulant",2)? record.prescription.anticoagulant_shouji: ""}}
670
+                          {{isCheckBoxChecked( record.prescription,"anticoagulant",14)? record.prescription.anticoagulant_shouji: ""}}
671
+                        </div>
672
+                        mg&nbsp; 维持
676
                         <div class="under_line" style="width: 50px;">
673
                         <div class="under_line" style="width: 50px;">
677
                           {{
674
                           {{
678
                             isCheckBoxChecked(
675
                             isCheckBoxChecked(
680
                               "anticoagulant",
677
                               "anticoagulant",
681
                               2
678
                               2
682
                             )
679
                             )
683
-                              ? record.prescription.anticoagulant_shouji
680
+                              ? record.prescription.anticoagulant_weichi
684
                               : ""
681
                               : ""
685
                           }}
682
                           }}
686
-                        </div>
687
-                        mg&nbsp; 维持
688
-                        <div class="under_line" style="width: 50px;">
689
                           {{
683
                           {{
690
                             isCheckBoxChecked(
684
                             isCheckBoxChecked(
691
                               record.prescription,
685
                               record.prescription,
692
                               "anticoagulant",
686
                               "anticoagulant",
693
-                              2
687
+                              14
694
                             )
688
                             )
695
                               ? record.prescription.anticoagulant_weichi
689
                               ? record.prescription.anticoagulant_weichi
696
                               : ""
690
                               : ""
734
                             "
728
                             "
735
                           ></check-box>
729
                           ></check-box>
736
                         </span>
730
                         </span>
737
-                        <div class="under_line" style="width: 40px;">
731
+                        <div class="under_line" style="width: 50px;">
738
                           <span v-if="record.prescription.anticoagulant == 3"
732
                           <span v-if="record.prescription.anticoagulant == 3"
739
                             >{{
733
                             >{{
740
                               isCheckBoxChecked(
734
                               isCheckBoxChecked(
768
                                 : ""
762
                                 : ""
769
                             }}
763
                             }}
770
                           </span>
764
                           </span>
765
+                          <span v-if="record.prescription.anticoagulant == 14"
766
+                            >{{
767
+                              isCheckBoxChecked(
768
+                                record.prescription,
769
+                                "anticoagulant",
770
+                                14
771
+                              )
772
+                                ? record.prescription.anticoagulant_zongliang
773
+                                : ""
774
+                            }}
775
+                          </span>
771
                         </div>
776
                         </div>
772
                         IU
777
                         IU
773
                         <check-box
778
                         <check-box
1476
                         "
1481
                         "
1477
                       ></check-box>
1482
                       ></check-box>
1478
                       ( 科室
1483
                       ( 科室
1479
-                      <div class="under_line" style="width: 200px;"></div>
1484
+                      <div class="under_line" style="width: 200px;">
1485
+                        {{ record.assessment_after_dislysis.inpatient_department }}
1486
+                      </div>
1480
                       交待病房护士/患者/陪人观察内容:
1487
                       交待病房护士/患者/陪人观察内容:
1481
                       <check-box
1488
                       <check-box
1482
                         text="意识状态"
1489
                         text="意识状态"

+ 3 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue 查看文件

2026
           scanStyles: false,
2026
           scanStyles: false,
2027
         });
2027
         });
2028
 
2028
 
2029
+
2030
+        console.log("printjswowoowowowwoow",style12)
2031
+
2029
       }else if (this.org_template_info.template_id == 65 || this.org_template_info.template_id == 6) {
2032
       }else if (this.org_template_info.template_id == 65 || this.org_template_info.template_id == 6) {
2030
         printJS({
2033
         printJS({
2031
           printable: "dialysis-print-box-1",
2034
           printable: "dialysis-print-box-1",

+ 1 - 1
src/xt_pages/dialysis/newDoctorAdvice.vue 查看文件

1547
         return searchArray
1547
         return searchArray
1548
       },
1548
       },
1549
      handleSelect(val) {
1549
      handleSelect(val) {
1550
-       console.log("val323223232323232323",val)
1550
+      
1551
        this.patient_id = val.id
1551
        this.patient_id = val.id
1552
        this.listQuery.keyword = val.name
1552
        this.listQuery.keyword = val.name
1553
        this.requestSchedualDoctors(this.time)
1553
        this.requestSchedualDoctors(this.time)

+ 8 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue 查看文件

377
                   <tbody>
377
                   <tbody>
378
                     <tr>
378
                     <tr>
379
                       <td width="70">抗凝方式:</td>
379
                       <td width="70">抗凝方式:</td>
380
-                      <td width="80">
380
+                      <td width="80" v-if="prescription.anticoagulant == 2 ">
381
                         <label-box :isChecked="prescription.anticoagulant == 2 ? true : false" showValue="普通肝素"></label-box>
381
                         <label-box :isChecked="prescription.anticoagulant == 2 ? true : false" showValue="普通肝素"></label-box>
382
                       </td>
382
                       </td>
383
+                      <td width="120" v-if="prescription.anticoagulant == 14">
384
+                        <label-box :isChecked="prescription.anticoagulant == 14 ? true : false" showValue="肝素钙注射液"></label-box>
385
+                      </td>
383
                       <td width="10">(</td>
386
                       <td width="10">(</td>
384
                       <td width="35">首剂</td>
387
                       <td width="35">首剂</td>
385
                       <td width="50">
388
                       <td width="50">
386
                         <div class="under-line">
389
                         <div class="under-line">
387
                           &nbsp;
390
                           &nbsp;
388
                           <span v-if="prescription.anticoagulant == 2">{{ prescription.anticoagulant_shouji }}</span>
391
                           <span v-if="prescription.anticoagulant == 2">{{ prescription.anticoagulant_shouji }}</span>
392
+                          <span v-if="prescription.anticoagulant == 14">{{ prescription.anticoagulant_shouji }}</span>
389
                         </div>
393
                         </div>
390
                       </td>
394
                       </td>
391
                       <td width="50">mg</td>
395
                       <td width="50">mg</td>
395
                         <div class="under-line">
399
                         <div class="under-line">
396
                           &nbsp;
400
                           &nbsp;
397
                           <span v-if="prescription.anticoagulant == 2">{{ prescription.anticoagulant_weichi }}</span>
401
                           <span v-if="prescription.anticoagulant == 2">{{ prescription.anticoagulant_weichi }}</span>
402
+                          <span v-if="prescription.anticoagulant == 14">{{ prescription.anticoagulant_weichi }}</span>
398
                         </div>
403
                         </div>
399
                       </td>
404
                       </td>
400
                       <td width="40">mg/h</td>
405
                       <td width="40">mg/h</td>
412
                       <td width="60">
417
                       <td width="60">
413
                         <div class="under-line">
418
                         <div class="under-line">
414
                           &nbsp;
419
                           &nbsp;
420
+                          <span v-if="prescription.anticoagulant == 2">{{ prescription.anticoagulant_zongliang }}</span>
415
                           <span v-if="prescription.anticoagulant == 3">{{ prescription.anticoagulant_zongliang }}</span>
421
                           <span v-if="prescription.anticoagulant == 3">{{ prescription.anticoagulant_zongliang }}</span>
416
                           <span v-if="prescription.anticoagulant == 6">{{ prescription.anticoagulant_zongliang }}</span>
422
                           <span v-if="prescription.anticoagulant == 6">{{ prescription.anticoagulant_zongliang }}</span>
417
                           <span v-if="prescription.anticoagulant == 7">{{ prescription.anticoagulant_zongliang }}</span>
423
                           <span v-if="prescription.anticoagulant == 7">{{ prescription.anticoagulant_zongliang }}</span>
424
+                          <span v-if="prescription.anticoagulant == 14">{{ prescription.anticoagulant_zongliang }}</span>
418
                         </div>
425
                         </div>
419
                       </td>
426
                       </td>
420
                       <td width="20" v-if="isShowZero">mg</td>
427
                       <td width="20" v-if="isShowZero">mg</td>

+ 63 - 25
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue 查看文件

1321
     },
1321
     },
1322
 
1322
 
1323
     toUpload() {
1323
     toUpload() {
1324
-        let dom = document.getElementById("dialysis-print-box-64");
1324
+       
1325
+        let dom = document.getElementById("dialysis-print-box-64")
1325
         //调用方法下载
1326
         //调用方法下载
1326
         html2canvas(dom, {
1327
         html2canvas(dom, {
1327
           useCORS: true, //允许跨域
1328
           useCORS: true, //允许跨域
1344
 
1345
 
1345
           var newBase64Data =  pdf.output("dataurlstring").split("base64,")[1]
1346
           var newBase64Data =  pdf.output("dataurlstring").split("base64,")[1]
1346
           console.log("base63",newBase64Data)
1347
           console.log("base63",newBase64Data)
1347
-          this.viewPdf(newBase64Data)
1348
 
1348
 
1349
-          var data = {
1350
-            name:newBase64Data,
1351
-          }
1352
-          UploadPrintOrder(data).then(response=>{
1353
-            if(response.data.state == 1){
1354
-              var sign =  response.data.data.sign
1355
-              console.log("SIGNWWOOWWO")
1356
-              this.$message.success("保存成功!")
1357
-            }
1358
-          })
1349
+          const blob = this.base64ToBlob(newBase64Data, 'application/pdf');
1350
+          this.openPdf(blob);
1351
+          // this.viewPdf(newBase64Data)
1352
+          
1353
+          // var data = {
1354
+          //   name:newBase64Data,
1355
+          // }
1356
+          // UploadPrintOrder(data).then(response=>{
1357
+          //   if(response.data.state == 1){
1358
+          //     var sign =  response.data.data.sign
1359
+          //     console.log("SIGNWWOOWWO")
1360
+          //     this.$message.success("保存成功!")
1361
+          //   }
1362
+          // })
1359
           
1363
           
1360
           // this.viewPdf(newBase64Data)
1364
           // this.viewPdf(newBase64Data)
1361
           //保存到pdf,名字是stone
1365
           //保存到pdf,名字是stone
1375
         window.open(fileURL);//打开ppf文件
1379
         window.open(fileURL);//打开ppf文件
1376
       }
1380
       }
1377
     },
1381
     },
1378
-    base64ToBlob(code) {
1379
-      code = code.replace(/[\n\r]/g, '');// 检查base64字符串是否符合base64编码
1380
-      // atob() 方法用于解码使用 base-64 编码的字符串。
1381
-      const raw = window.atob(code);
1382
-      const rawLength = raw.length;
1383
-      const uInt8Array = new Uint8Array(rawLength);
1384
-      for (let i = 0; i < rawLength; ++i) {
1385
-      // 将解码后的逐个字符转换成Unicode序号,放入Unit8Array数组
1386
-        uInt8Array[i] = raw.charCodeAt(i);
1387
-      }
1388
-      // 通过Blob将Uint8Array数组转换成pdf类型的文件对象
1389
-      return new Blob([uInt8Array], { type: 'application/pdf' });
1390
-    },
1382
+    // base64ToBlob(code) {
1383
+    //   code = code.replace(/[\n\r]/g, '');// 检查base64字符串是否符合base64编码
1384
+    //   // atob() 方法用于解码使用 base-64 编码的字符串。
1385
+    //   const raw = window.atob(code);
1386
+    //   const rawLength = raw.length;
1387
+    //   const uInt8Array = new Uint8Array(rawLength);
1388
+    //   for (let i = 0; i < rawLength; ++i) {
1389
+    //   // 将解码后的逐个字符转换成Unicode序号,放入Unit8Array数组
1390
+    //     uInt8Array[i] = raw.charCodeAt(i);
1391
+    //   }
1392
+    //   // 通过Blob将Uint8Array数组转换成pdf类型的文件对象
1393
+    //   return new Blob([uInt8Array], { type: 'application/pdf' });
1394
+    // },
1391
     compare (property) {
1395
     compare (property) {
1392
       return function (a, b) {
1396
       return function (a, b) {
1393
           var value1 = a[property]
1397
           var value1 = a[property]
1395
           return value1 - value2
1399
           return value1 - value2
1396
       }
1400
       }
1397
     },
1401
     },
1402
+
1403
+    openPdf(blob) {
1404
+      const objectUrl = URL.createObjectURL(blob);
1405
+      const a = document.createElement('a');
1406
+      a.href = objectUrl;
1407
+      a.target = '_blank';
1408
+      a.click();
1409
+      URL.revokeObjectURL(objectUrl);
1410
+    },
1411
+     base64ToBlob(base64Data, contentType) {
1412
+      contentType = contentType || '';
1413
+      const sliceSize = 1024;
1414
+      const byteCharacters = window.atob(base64Data);
1415
+      const bytesLength = byteCharacters.length;
1416
+      const slicesCount = Math.ceil(bytesLength / sliceSize);
1417
+      const byteArrays = new Array(slicesCount);
1418
+
1419
+      for (let sliceIndex = 0; sliceIndex < slicesCount; ++sliceIndex) {
1420
+        const begin = sliceIndex * sliceSize;
1421
+        const end = Math.min(begin + sliceSize, bytesLength);
1422
+
1423
+        const bytes = new Array(end - begin);
1424
+        for (let offset = begin, i = 0; offset < end; ++i, ++offset) {
1425
+          bytes[i] = byteCharacters[offset].charCodeAt(0);
1426
+        }
1427
+        byteArrays[sliceIndex] = new Uint8Array(bytes);
1428
+      }
1429
+
1430
+      return new Blob(byteArrays, {
1431
+        type: contentType
1432
+      });
1433
+    },
1434
+
1435
+  
1398
   },
1436
   },
1399
   created() {
1437
   created() {
1400
     var bloodAccessParOpera = getDataConfig(
1438
     var bloodAccessParOpera = getDataConfig(

+ 8 - 6
src/xt_pages/role/admin.vue 查看文件

287
               </el-button>
287
               </el-button>
288
             </span> -->
288
             </span> -->
289
 
289
 
290
-            <!-- <span>
290
+           <!-- <span>
291
               <el-button type="primary" size="small" @click="toQianShu(scope.row.user_id,scope.row.user_name)">
291
               <el-button type="primary" size="small" @click="toQianShu(scope.row.user_id,scope.row.user_name)">
292
                     <span>创建签署人用户</span>
292
                     <span>创建签署人用户</span>
293
               </el-button>
293
               </el-button>
297
               <el-button type="primary" size="small" @click="toYinZhang(scope.row.user_id,scope.row.user_name)">
297
               <el-button type="primary" size="small" @click="toYinZhang(scope.row.user_id,scope.row.user_name)">
298
                     <span>创建个人印章</span>
298
                     <span>创建个人印章</span>
299
               </el-button>
299
               </el-button>
300
-            </span>
301
-
300
+            </span>  -->
301
+<!-- 
302
             <span>
302
             <span>
303
               <el-button type="primary" size="small" @click="toShouQuan(scope.row.user_id,scope.row.user_name)">
303
               <el-button type="primary" size="small" @click="toShouQuan(scope.row.user_id,scope.row.user_name)">
304
                     <span>创建企业印章</span>
304
                     <span>创建企业印章</span>
305
               </el-button>
305
               </el-button>
306
-            </span> -->
306
+            </span>  -->
307
             <el-tooltip
307
             <el-tooltip
308
               class="item"
308
               class="item"
309
               effect="dark"
309
               effect="dark"
1046
       })
1046
       })
1047
     },
1047
     },
1048
    
1048
    
1049
-    toQianShu(){
1050
-      CreateQianshuUserName().then(response=>{
1049
+    toQianShu(admin_user_id){
1050
+       
1051
+      CreateQianshuUserName(admin_user_id).then(response=>{
1051
          if(response.data.state==1){
1052
          if(response.data.state==1){
1052
           var sign =  response.data.data.sign
1053
           var sign =  response.data.data.sign
1053
           var userId =  response.data.data.userId
1054
           var userId =  response.data.data.userId
1055
+          this.$message.success("签署成功!")
1054
          }
1056
          }
1055
       }) 
1057
       }) 
1056
     },
1058
     },

+ 1 - 1
src/xt_pages/role/components/AdminInfoForm.vue 查看文件

75
        </el-form-item>
75
        </el-form-item>
76
     </el-col>
76
     </el-col>
77
     <el-col :span="8">
77
     <el-col :span="8">
78
-       <el-form-item label="工号:">
78
+       <el-form-item label="身份证(工号):">
79
            <el-input v-model="form.job_number" style="width:180px;"></el-input>
79
            <el-input v-model="form.job_number" style="width:180px;"></el-input>
80
        </el-form-item>
80
        </el-form-item>
81
     </el-col>
81
     </el-col>

+ 1 - 1
src/xt_pages/user/inspection.vue 查看文件

1314
 
1314
 
1315
 
1315
 
1316
 
1316
 
1317
-                  if(this.org_id == 10121){
1317
+                  if(this.org_id == 10121 || this.org_id ==10278 || this.org_id ==10138){
1318
                     item.value = inspectionsMap[items[index].id].inspect_value
1318
                     item.value = inspectionsMap[items[index].id].inspect_value
1319
                     item.item_name = inspectionsMap[items[index].id].item_name
1319
                     item.item_name = inspectionsMap[items[index].id].item_name
1320
                   }else{
1320
                   }else{