Browse Source

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

陈少旭 1 year ago
parent
commit
1c4ffe33b3
81 changed files with 2717 additions and 636 deletions
  1. 1 1
      .idea/shelf/Uncommitted_changes_before_Update_at_2023_4_26_15_16_[Changes]/AssessmentAfterDislysis.vue
  2. 10 0
      src/api/dialysis.js
  3. 9 0
      src/api/drug/drug.js
  4. 18 0
      src/api/drug/drug_stock.js
  5. 9 0
      src/api/patient.js
  6. 28 1
      src/api/stock.js
  7. 14 1
      src/components/Editor/index.vue
  8. 85 19
      src/xt_pages/data/components/consumables.vue
  9. 70 12
      src/xt_pages/data/components/drugs.vue
  10. 3 3
      src/xt_pages/data/components/project.vue
  11. 7 4
      src/xt_pages/data/components/templateTable.vue
  12. 44 2
      src/xt_pages/dialysis/batch_print/batch_print_order_fiftyOne.vue
  13. 4 9
      src/xt_pages/dialysis/batch_print/batch_print_order_fiftynine.vue
  14. 2 2
      src/xt_pages/dialysis/batch_print/batch_print_order_forty.vue
  15. 58 9
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  16. 4 1
      src/xt_pages/dialysis/batch_print/batch_print_order_thirtyNine.vue
  17. 1 0
      src/xt_pages/dialysis/batch_print/batch_print_order_twelve.vue
  18. 2 2
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  19. 7 2
      src/xt_pages/dialysis/details/assessmentAfter.vue
  20. 21 13
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  21. 1 1
      src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue
  22. 151 15
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  23. 10 8
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  24. 9 1
      src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue
  25. 5 5
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  26. 118 13
      src/xt_pages/dialysis/details/index.vue
  27. 70 3
      src/xt_pages/dialysis/hisLongSignPrint.vue
  28. 6 19
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyNine.vue
  29. 2 2
      src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue
  30. 2 2
      src/xt_pages/dialysis/template/DialysisPrintOrderSeventythree.vue
  31. 60 15
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  32. 14 0
      src/xt_pages/dialysis/template/DialysisPrintOrderSixty.vue
  33. 81 0
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue
  34. 12 12
      src/xt_pages/dialysis/template/DialysisPrintOrdersixtySeven.vue
  35. 7 3
      src/xt_pages/hospitalStation/invoicePrint.vue
  36. 294 0
      src/xt_pages/hospitalStation/invoiceTemplate/printfour.vue
  37. 1 1
      src/xt_pages/kuyiShopping/index.vue
  38. 3 4
      src/xt_pages/outpatientCharges/statementPrint.vue
  39. 14 14
      src/xt_pages/outpatientCharges/statementTemplate/printTen.vue
  40. 67 66
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  41. 1 1
      src/xt_pages/outpatientDoctorStation/print.vue
  42. 7 2
      src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue
  43. 2 2
      src/xt_pages/outpatientDoctorStation/template/prinSeven.vue
  44. 170 123
      src/xt_pages/outpatientDoctorStation/template/prineight.vue
  45. 1 0
      src/xt_pages/outpatientDoctorStation/template/printTenOne.vue
  46. 48 0
      src/xt_pages/qcd/basicInformationAnalysis.vue
  47. 5 1
      src/xt_pages/qcd/officesControlAnalysis/time.vue
  48. 7 4
      src/xt_pages/stock/Dialog/goodInfoDailog.vue
  49. 11 3
      src/xt_pages/stock/detail/cancelStockDetail.vue
  50. 82 77
      src/xt_pages/stock/detail/stockInDetail.vue
  51. 11 3
      src/xt_pages/stock/detail/stockOutDetail.vue
  52. 5 3
      src/xt_pages/stock/drugs/components/drugCancelDetail.vue
  53. 5 3
      src/xt_pages/stock/drugs/components/drugInOrder.vue
  54. 5 3
      src/xt_pages/stock/drugs/components/drugOutDetail.vue
  55. 198 3
      src/xt_pages/stock/drugs/components/drugQuery.vue
  56. 5 1
      src/xt_pages/stock/drugs/components/purchaseNewDrugQuery.vue
  57. 15 4
      src/xt_pages/stock/drugs/drugStockFlow.vue
  58. 102 14
      src/xt_pages/stock/drugs/drugStockOutOrder.vue
  59. 8 0
      src/xt_pages/stock/drugs/newDrugInventory.vue
  60. 7 2
      src/xt_pages/stock/newInventory.vue
  61. 142 2
      src/xt_pages/stock/query/goodNewQuery.vue
  62. 4 4
      src/xt_pages/stock/query/purchaseNewStockQuery.vue
  63. 1 1
      src/xt_pages/stock/stockFlow.vue
  64. 7 1
      src/xt_pages/stock/stockInOrder.vue
  65. 14 2
      src/xt_pages/stock/stockInOrderAdd.vue
  66. 76 1
      src/xt_pages/stock/stockOutOrder.vue
  67. 35 8
      src/xt_pages/user/Sitemap.vue
  68. 27 2
      src/xt_pages/user/components/PatientDetail.vue
  69. 21 2
      src/xt_pages/user/components/PatientForm.vue
  70. 1 1
      src/xt_pages/user/courseOfDisease.vue
  71. 36 1
      src/xt_pages/user/dialysisSolution.vue
  72. 2 3
      src/xt_pages/user/inspection.vue
  73. 2 2
      src/xt_pages/user/patients.vue
  74. 54 11
      src/xt_pages/user/templateSummary.vue
  75. 54 11
      src/xt_pages/workforce/components/nextTableWeeks.vue
  76. 101 50
      src/xt_pages/workforce/components/tableWeeks.vue
  77. 42 3
      src/xt_pages/workforce/next_remind_print.vue
  78. 46 3
      src/xt_pages/workforce/remind_print.vue
  79. 14 2
      src/xt_pages/workforce/remind_print_setting.vue
  80. 14 10
      src/xt_pages/workforce/remind_print_setting_one.vue
  81. 5 2
      src/xt_pages/workforce/remind_print_setting_two.vue

+ 1 - 1
.idea/shelf/Uncommitted_changes_before_Update_at_2023_4_26_15_16_[Changes]/AssessmentAfterDislysis.vue View File

@@ -601,7 +601,7 @@
601 601
             </el-form-item>
602 602
        </el-col>
603 603
        <el-col :span="8" v-if="isShow('累计血容量')">
604
-            <el-form-item label="累计血容量(L):"  label-width="150px" :prop="isName('累计血容量')" :rules="isCheckmust('累计血容量')">
604
+            <el-form-item label="透析血容量(L):"  label-width="150px" :prop="isName('透析血容量')" :rules="isCheckmust('透析血容量')">
605 605
               <el-input v-model="form.accumulated_blood_volume"></el-input>
606 606
             </el-form-item>
607 607
         </el-col>

+ 10 - 0
src/api/dialysis.js View File

@@ -538,3 +538,13 @@ export function getDialysisGatherList(params){
538 538
     params:params,
539 539
   })
540 540
 }
541
+
542
+
543
+export function getPatientRecordList(patient_id,params){
544
+ 
545
+  return request({
546
+    url:"/api/patient/getpatientrecordlist?patient_id="+patient_id,
547
+    method:"Get",
548
+    params:params,
549
+  })
550
+}

+ 9 - 0
src/api/drug/drug.js View File

@@ -661,4 +661,13 @@ export function getPurchaseStockQueryList(params){
661 661
     method:"Get",
662 662
     params:params,
663 663
   })
664
+}
665
+
666
+export function getCheckGoodBatchList(id,params){
667
+  
668
+  return request({
669
+    url:"/api/good/getcheckgoodbatchlist?id="+id,
670
+    method:"get",
671
+    params:params,
672
+  })
664 673
 }

+ 18 - 0
src/api/drug/drug_stock.js View File

@@ -652,4 +652,22 @@ export function getDrugFlowDetailByDrugId(params){
652 652
     method:"Get",
653 653
     params:params
654 654
   })
655
+}
656
+
657
+
658
+export function getCheckDrugBatchList(drug_id,params){
659
+ return request({
660
+  url:"/api/drug/getcheckdrugbatchlist?drug_id="+drug_id,
661
+  method:"get",
662
+  params:params,
663
+ })
664
+}
665
+
666
+export function getDrugPatientName(params){
667
+  
668
+  return request({
669
+    url:"/api/drug/getdrugpatientname",
670
+    method:"Get",
671
+    params:params,
672
+  })
655 673
 }

+ 9 - 0
src/api/patient.js View File

@@ -1093,4 +1093,13 @@ export function getPatientCriticalOneList(params){
1093 1093
     method:"get",
1094 1094
     params:params,
1095 1095
   })
1096
+}
1097
+
1098
+export function deleteSolution(id,params){
1099
+  
1100
+  return request({
1101
+    url:"/api/patient/deletesolution?id="+id,
1102
+    method:"Get",
1103
+    params:params,
1104
+  })
1096 1105
 }

+ 28 - 1
src/api/stock.js View File

@@ -121,7 +121,7 @@ export function GetGoodType(params) {
121 121
 }
122 122
 
123 123
 export function createGoodInfo(params) {
124
-  console.log('prams', params)
124
+
125 125
   return request({
126 126
     url: '/api/stock/good/info/create',
127 127
     method: 'post',
@@ -1096,4 +1096,31 @@ export function getStockFlowOrderList(params){
1096 1096
     method:"Get",
1097 1097
     params:params,
1098 1098
   })
1099
+}
1100
+
1101
+export function getGoodPatientName(params){
1102
+  return request({
1103
+    url:"/api/stock/getgoodpatientname",
1104
+    method:"Get",
1105
+    params:params,
1106
+  })
1107
+}
1108
+
1109
+export function updateBaseDrugLibByUserOrgId(params){
1110
+  
1111
+  return request({
1112
+    url:"/api/drug/updatebasedruglisbyuserorgid",
1113
+    method:"Get",
1114
+    params:params
1115
+  })
1116
+}
1117
+
1118
+
1119
+export function updateGoodInfoByUserOrgId(params){
1120
+
1121
+  return request({
1122
+    url:"/api/good/updategoodinfobyuserorgid",
1123
+    method:"Get",
1124
+    params:params
1125
+  })
1099 1126
 }

+ 14 - 1
src/components/Editor/index.vue View File

@@ -34,7 +34,20 @@
34 34
             'fontsize', //字体大小
35 35
             'fontfamily', //字体
36 36
             'forecolor', //字体颜色
37
-            'table',
37
+            'insertrow',//前插入行
38
+            'inserttable', //插入表格
39
+            'edittable', //表格属性
40
+            'edittd', //单元格属性
41
+            'mergeright', //右合并单元格
42
+            'mergedown', //下合并单元格
43
+            'deleterow', //删除行
44
+            'deletecol', //删除列
45
+            'splittorows', //拆分成行
46
+            'splittocols', //拆分成列
47
+            'splittocells', //完全拆分单元格
48
+            'deletecaption', //删除表格标题
49
+            'deletetable', //删除表格
50
+            'mergecells', //合并多个单元格
38 51
           ]]
39 52
           // scaleEnabled: true,
40 53
         })

+ 85 - 19
src/xt_pages/data/components/consumables.vue View File

@@ -54,7 +54,7 @@
54 54
      <div style="display:flex; align-items:center;margin-bottom:10px;">
55 55
         <!--<el-button type="primary" size="mini" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 10138">批量备案</el-button>-->
56 56
         <!--<el-button type="primary" size="mini">批量备案</el-button>-->
57
-        <el-link target="_blank" href="https://kuyi.shengws.com/stockTemplate.xlsx" :underline="false"
57
+        <el-link target="_blank" href="https://kuyi.shengws.com/stockTemplateTwo.xlsx" :underline="false"
58 58
                  style="margin-left:15px">
59 59
           <el-button
60 60
             class="filter-item"
@@ -80,6 +80,15 @@
80 80
           size="small"
81 81
         >点击导出
82 82
         </el-button>
83
+
84
+        <!-- <el-button
85
+          style="margin-left:10px;"
86
+          @click="jiaoBen()"
87
+          class="filter-item"
88
+          type="primary"
89
+          size="small"
90
+        >脚本
91
+        </el-button> -->
83 92
       </div>
84 93
 
85 94
     <el-table
@@ -111,7 +120,7 @@
111 120
           {{ getGoodTypeByID(scope.row.good_type_id) }}
112 121
         </template>
113 122
       </el-table-column>
114
-      <el-table-column label="注册编码" width="140" align="center">
123
+      <el-table-column label="注册证号" width="140" align="center">
115 124
         <template slot-scope="scope">
116 125
           {{ scope.row.register_number }}
117 126
         </template>
@@ -132,6 +141,11 @@
132 141
           {{ scope.row.social_security_directory_code }}
133 142
         </template>
134 143
       </el-table-column>
144
+      <el-table-column label="生产厂家" width="140" align="center">
145
+        <template slot-scope="scope">
146
+          {{ getManufactur(scope.row.manufacturer) }}
147
+        </template>
148
+      </el-table-column>
135 149
       <el-table-column label="状态" width="60" align="center">
136 150
         <template slot-scope="scope">
137 151
         <!--{{ scope.row.good_status}}-->
@@ -238,7 +252,8 @@
238 252
     getGoodInfoList,
239 253
     modifyGoodInfo,
240 254
     postGoodInformation,
241
-    getInitializtion
255
+    getInitializtion,
256
+    updateGoodInfoByUserOrgId
242 257
   } from '@/api/stock'
243 258
   import UploadExcel from '@/xt_pages/components/UploadExcel'
244 259
   import GoodExcel from '@/xt_pages/components/GoodExcel'
@@ -369,6 +384,13 @@
369 384
       }
370 385
     },
371 386
     methods: {
387
+    jiaoBen(){
388
+      updateGoodInfoByUserOrgId().then(response=>{
389
+        if(response.data.state ==1){
390
+
391
+        }
392
+      })
393
+      },
372 394
       putOnUnRecord(id){
373 395
         var that = this;
374 396
         let params = {
@@ -1187,7 +1209,7 @@
1187 1209
 
1188 1210
           var isHasMedicalInsuranceLevel = header.includes('*医保等级');
1189 1211
 
1190
-          var isHasGoodUnit = header.includes('*单位');
1212
+          var isHasGoodUnit = header.includes('*包装单位');
1191 1213
 
1192 1214
           var isHasStockWarnCount = header.includes('*库存警戒');
1193 1215
 
@@ -1199,7 +1221,7 @@
1199 1221
 
1200 1222
           var isHasSpecificationName = header.includes('*规格型号');
1201 1223
 
1202
-          var isHasBuyPrice = header.includes('*零价');
1224
+          var isHasBuyPrice = header.includes('*零价');
1203 1225
 
1204 1226
           if (!(isHasMedicalInsuranceLevel && isHasGoodUnit && isHasStockWarnCount && isHasManuFacturer  && isHasGoodName && isHasGoodKand && isHasSpecificationName &&  isHasBuyPrice)) {
1205 1227
             this.dialogVisible = true;
@@ -1212,7 +1234,7 @@
1212 1234
 
1213 1235
        var tableData = [];
1214 1236
        for(let i=1;i<results.length;i++){
1215
-         let obj = {"good_kind_id":0,"good_type_id":0,"medical_insurance_id":0,"dealer_id":0,"statistic_id":0,"manufacturer_id":0,"unit_id":0};
1237
+         let obj = {"good_kind_id":0,"good_type_id":0,"medical_insurance_id":0,"dealer_id":0,"statistic_id":0,"manufacturer_id":0,"unit_id":0,"default_count":1,"default_count_unit":"","buy_price":"","retail_price":""};
1216 1238
          for (var key in results[i]) {
1217 1239
 
1218 1240
            if (results[i]['*耗材名称'] === undefined) {
@@ -1263,22 +1285,45 @@
1263 1285
               }
1264 1286
            }
1265 1287
 
1266
-           if (results[i]['*单位'] === undefined) {
1288
+           if (results[i]['*包装单位'] === undefined) {
1267 1289
                 obj['good_unit'] = ''
1268 1290
               } else {
1269
-             if (key == '*单位') {
1291
+             if (key == '*包装单位') {
1270 1292
                obj['good_unit'] = results[i][key].replace(/\s/g,"")
1271 1293
               }
1272 1294
            }
1295
+           if (results[i]['*默认单次用量'] === undefined) {
1296
+                obj['default_count'] = ''
1297
+              } else {
1298
+             if (key == '*默认单次用量') {
1299
+               obj['default_count'] = parseInt(results[i][key].replace(/\s/g,"")) 
1300
+              }
1301
+           }
1302
+
1303
+           if (results[i]['*默认单次用量单位'] === undefined) {
1304
+                obj['default_count_unit'] = ''
1305
+              } else {
1306
+             if (key == '*默认单次用量单位') {
1307
+               obj['default_count_unit'] = results[i][key].replace(/\s/g,"")
1308
+              }
1309
+           }
1273 1310
 
1274
-          if (results[i]['*零价'] === undefined) {
1311
+          if (results[i]['*零价'] === undefined) {
1275 1312
                 obj['retail_price'] = ''
1276 1313
               } else {
1277
-             if (key == '*零价') {
1314
+             if (key == '*零价') {
1278 1315
                obj['retail_price'] = results[i][key].replace(/\s/g,"")
1279 1316
               }
1280 1317
            }
1281 1318
 
1319
+           if (results[i]['*进货价'] === undefined) {
1320
+                obj['buy_price'] = ''
1321
+              } else {
1322
+             if (key == '*进货价') {
1323
+               obj['buy_price'] = results[i][key].replace(/\s/g,"")
1324
+              }
1325
+           }
1326
+
1282 1327
             if (results[i]['*库存警戒'] === undefined) {
1283 1328
                 obj['stock_warn_count'] = ''
1284 1329
               } else {
@@ -1311,13 +1356,7 @@
1311 1356
               }
1312 1357
            }
1313 1358
 
1314
-           if (results[i]['最新进价'] === undefined) {
1315
-                obj['buy_price'] = ''
1316
-              } else {
1317
-             if (key == '最新进价') {
1318
-               obj['buy_price'] = results[i][key].replace(/\s/g,"")
1319
-              }
1320
-           }
1359
+         
1321 1360
 
1322 1361
            if (results[i]['医保编码'] === undefined) {
1323 1362
                 obj['medical_insurance_number'] = ''
@@ -1392,6 +1431,22 @@
1392 1431
               }
1393 1432
            }
1394 1433
 
1434
+           if (results[i]['批准文号'] === undefined) {
1435
+                obj['number'] = ''
1436
+              } else {
1437
+             if (key == '批准文号') {
1438
+               obj['number'] = results[i][key].replace(/\s/g,"")
1439
+              }
1440
+           }
1441
+
1442
+           if (results[i]['注册编号'] === undefined) {
1443
+                obj['register_number'] = ''
1444
+              } else {
1445
+             if (key == '注册编号') {
1446
+               obj['register_number'] = results[i][key].replace(/\s/g,"")
1447
+              }
1448
+           }
1449
+
1395 1450
            if (results[i]['备注'] === undefined) {
1396 1451
                 obj['remark'] = ''
1397 1452
               } else {
@@ -1465,6 +1520,7 @@
1465 1520
           'goods':tableData
1466 1521
         };
1467 1522
         console.log("param2332323223",params)
1523
+    
1468 1524
         postGoodInformation(params).then(response=>{
1469 1525
            if(response.data.state == 1){
1470 1526
              var msg =  response.data.data.msg;
@@ -1576,8 +1632,8 @@
1576 1632
          }
1577 1633
          console.log("hhhadhh233323232",this.goodInfo.goodInfoData)
1578 1634
 
1579
-         const tHeader = ['耗材名称','耗材种类','耗材类型','医保等级','规格型号','生产厂商','单位','零价','库存警戒','经销商','最新进价','医保编码','社保目录编码','批准文号','医保等级']
1580
-         const filterVal = ['good_name', 'good_kind_name','good_type_name','medical_insurance_level_name','specification_name','manufacturer_name','packing_unit','packing_price','stock_warn_count','dealer_name','buy_price','medical_insurance_number','social_security_directory_code','number','medical_insurance_level']
1635
+         const tHeader = ['耗材名称','耗材种类','耗材类型','医保等级','规格型号','生产厂商','包装单位','进货价','零售价','库存警戒','经销商','默认单次用量','默认单次用量单位','拼音','五笔','医保编码','是否特病目录','是否备案','统计分类','状态','社保目录编码','生产地类别','特殊医用标志',"批准文号","注册编号","备注"]
1636
+         const filterVal = ['good_name', 'good_kind_name','good_type_name','medical_insurance_level_name','specification_name','manufacturer_name','packing_unit','buy_price','packing_price','stock_warn_count','dealer_name','default_count','default_count_unit','','','medical_insurance_number','是','','','','social_security_directory_code','','','number','register_number','']
1581 1637
 
1582 1638
          const data = this.formatJson(filterVal,this.goodInfo.goodInfoData)
1583 1639
 
@@ -1593,6 +1649,16 @@
1593 1649
        formatJson(filterVal, jsonData) {
1594 1650
         return jsonData.map(v => filterVal.map(j => v[j]))
1595 1651
        },
1652
+       getManufactur(manufacturer){
1653
+        var manufacturer_name =""
1654
+         for(let i=0;i<this.manufacturers.length;i++){
1655
+           if(manufacturer == this.manufacturers[i].id){
1656
+              manufacturer_name = this.manufacturers[i].manufacturer_name
1657
+           }
1658
+         }
1659
+         return manufacturer_name
1660
+       }
1661
+      
1596 1662
     },
1597 1663
     created() {
1598 1664
       this.goodInfo.goodInfoDialog.formValue.is_user = "2"

+ 70 - 12
src/xt_pages/data/components/drugs.vue View File

@@ -47,7 +47,7 @@
47 47
     <div style="display:flex; align-items:center;margin-bottom:10px;">
48 48
         <!--<el-button type="primary" size="small" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 ||  this.$store.getters.xt_user.org_id == 10138 || $store.getters.xt_user.org_id == 10028" >批量备案</el-button>-->
49 49
         <el-button type="primary" size="small"  @click="GDYBBatchPutOnRecord()">批量备案</el-button>
50
-        <el-link target="_blank" href="https://kuyi.shengws.com/drugsTemplate.xlsx" :underline="false"
50
+        <el-link target="_blank" href="https://kuyi.shengws.com/drugsTemplateOne.xlsx" :underline="false"
51 51
                  style="margin-left:15px">
52 52
           <el-button
53 53
             class="filter-item"
@@ -73,6 +73,15 @@
73 73
           size="small"
74 74
         >点击导出
75 75
         </el-button>
76
+
77
+        <!-- <el-button
78
+          style="margin-left:10px;"
79
+          @click="jiaoBen()"
80
+          class="filter-item"
81
+          type="primary"
82
+          size="small"
83
+        >脚本
84
+        </el-button> -->
76 85
       </div>
77 86
     <el-table :data="list" border style="width: 100%" :row-style="{ color: '#303133' }"
78 87
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}"
@@ -239,7 +248,7 @@
239 248
   import selfPayment from './selfPayment'
240 249
   import maintain from './maintain'
241 250
   import addDrugs from './addDrugs'
242
-  import { GetAllManufacturer,postDrugInformation,getInitializtion } from '@/api/stock'
251
+  import { GetAllManufacturer,postDrugInformation,getInitializtion,updateBaseDrugLibByUserOrgId } from '@/api/stock'
243 252
   import { getDataConfig,getDictionaryDataConfig } from "@/utils/data";
244 253
   import { uParseTime } from '@/utils/tools'
245 254
   import {
@@ -1033,7 +1042,7 @@
1033 1042
 
1034 1043
        var tableData = [];
1035 1044
        for(let i=1;i<results.length;i++){
1036
-         let obj = {"drug_type_id":0,"drug_dosage_form_id":0,"medical_insurance_level_id":0,"drug_classify_id":0,"manufacturer_id":0,"dealer_id":0,"statistics_category_id":0,"drug_control_id":0,"pharmacology_category_id":0,"drug_category_id":0};
1045
+         let obj = {"drug_type_id":0,"drug_dosage_form_id":0,"medical_insurance_level_id":0,"drug_classify_id":0,"manufacturer_id":0,"dealer_id":0,"statistics_category_id":0,"drug_control_id":0,"pharmacology_category_id":0,"drug_category_id":0,"prescribing_number":"","prescribing_number_unit":"","drug_day":"","delivery_way":"","execution_frequency":""};
1037 1046
          for (var key in results[i]) {
1038 1047
 
1039 1048
            if (results[i]['*药品名称'] === undefined) {
@@ -1205,22 +1214,50 @@
1205 1214
               }
1206 1215
            }
1207 1216
 
1208
-            if (results[i]['默认给药途径'] === undefined) {
1217
+            if (results[i]['*默认给药途径'] === undefined) {
1209 1218
                 obj['delivery_way'] = ''
1210 1219
               } else {
1211
-            if (key == '默认给药途径') {
1220
+            if (key == '*默认给药途径') {
1212 1221
                 obj['delivery_way'] = results[i][key].replace(/\s/g,"")
1213 1222
               }
1214 1223
            }
1215 1224
 
1216
-              if (results[i]['默认执行频率'] === undefined) {
1225
+          if (results[i]['*默认执行频率'] === undefined) {
1217 1226
                 obj['execution_frequency'] = ''
1218 1227
               } else {
1219
-            if (key == '默认执行频率') {
1228
+            if (key == '*默认执行频率') {
1220 1229
                 obj['execution_frequency'] = results[i][key].replace(/\s/g,"")
1221 1230
               }
1222 1231
            }
1223 1232
 
1233
+
1234
+           if (results[i]['*默认开药数量'] === undefined) {
1235
+                obj['prescribing_number'] = ''
1236
+              } else {
1237
+            if (key == '*默认开药数量') {
1238
+                obj['prescribing_number'] = parseInt(results[i][key].replace(/\s/g,""))
1239
+              }
1240
+           }
1241
+
1242
+           if (results[i]['*默认开药数量单位'] === undefined) {
1243
+                obj['prescribing_number_unit'] = ''
1244
+              } else {
1245
+            if (key == '*默认开药数量单位') {
1246
+                obj['prescribing_number_unit'] = results[i][key].replace(/\s/g,"")
1247
+              }
1248
+           }
1249
+
1250
+           if (results[i]['*默认开药天数'] === undefined) {
1251
+                obj['drug_day'] = ''
1252
+              } else {
1253
+            if (key == '*默认开药天数') {
1254
+                obj['drug_day'] = results[i][key].replace(/\s/g,"")
1255
+              }
1256
+           }
1257
+
1258
+
1259
+           
1260
+
1224 1261
            if (results[i]['限制性用药'] === undefined) {
1225 1262
                 obj['lmt_used_flag'] = ''
1226 1263
               } else {
@@ -1459,8 +1496,7 @@
1459 1496
           'drugs':tableData
1460 1497
         };
1461 1498
         console.log("params222222222",params)
1462
-
1463
-
1499
+        
1464 1500
         postDrugInformation(params).then(response=>{
1465 1501
            if(response.data.state == 1){
1466 1502
              var msg =  response.data.data.msg;
@@ -1533,7 +1569,7 @@
1533 1569
 
1534 1570
 
1535 1571
          console.log("this.table",this.list)
1536
-
1572
+         
1537 1573
          for(let i=0;i<this.list.length;i++){
1538 1574
           for(let j=0;j<this.drugCategoryList.length;j++){
1539 1575
               if(this.list[i].drug_category == this.drugCategoryList[j].value){
@@ -1566,11 +1602,28 @@
1566 1602
 
1567 1603
              }
1568 1604
            }
1605
+           
1569 1606
           this.list[i].specification_name = this.list[i].dose + this.list[i].dose_unit + this.list[i].min_number + this.list[i].min_unit + "/"+this.list[i].max_unit
1607
+
1608
+          if(this.list[i].is_special_diseases == 1 ){
1609
+             this.list[i].is_special_diseases_name ="是"
1610
+          }
1611
+
1612
+          if(this.list[i].is_special_diseases == 2 ||this.list[i].is_special_diseases == 0  ){
1613
+             this.list[i].is_special_diseases_name ="否"
1614
+          }
1615
+
1616
+          if(this.list[i].lmt_used_flag == 1 ){
1617
+             this.list[i].lmt_used_flag_name ="是"
1618
+          }
1619
+
1620
+          if(this.list[i].lmt_used_flag == 2 ||this.list[i].lmt_used_flag == 0  ){
1621
+             this.list[i].lmt_used_flag_name ="否"
1622
+          }
1570 1623
          }
1571 1624
 
1572
-         const tHeader = ['药品名称','药品规格','剂量','剂量单位','拆零','拆零单位','包装单位','药品类型','库存警戒','产地','药品剂型','拆零零售价','包装零售价','进货价','药物分类','默认单次用量','默认单次用量单位','生产厂商','经销商','医保编码','社保目录编码','批准文号','医保等级']
1573
-         const filterVal = ['drug_name', 'specification_name','dose','dose_unit','min_number','min_unit','max_unit','drug_category_name','drug_stock_limit','drug_origin_place','drug_dosage_form_name','min_price','retail_price','last_price','drug_classify_name','drug_dose','drug_dose_unit_name','manufacturer_name','dealer_name','medical_insurance_number','social_security_directory_code','number','medical_insurance_level']
1625
+         const tHeader = ['*药品名称','*药品规格','*剂量','*剂量单位','*拆零','*拆零单位','*包装单位','*药品类型','*库存警戒','*产地','*药品剂型','*拆零零售价','*包装零售价','进货价','*药物分类','*默认单次用量','*默认单次用量单位','*生产厂商','经销商','*默认给药途径','*默认执行频率','*默认开药数量','*默认开药数量单位','*默认开药天数','限制性用药','药品别名','药品类别','开药控制','批准文号','审批标志','医保编码','药理分类','统计分类','本位码','是否特病目录','是否备案','处方药标志','社保目录编码','备案日期','药品备注','状态','限制说明']
1626
+         const filterVal = ['drug_name', 'specification_name','dose','dose_unit','min_number','min_unit','max_unit','drug_category_name','drug_stock_limit','drug_origin_place','drug_dosage_form_name','min_price','retail_price','last_price','drug_classify_name','drug_dose','drug_dose_unit_name','manufacturer_name','dealer_name','delivery_way','execution_frequency','prescribing_number','prescribing_number_unit','drug_day','','','','','number','','medical_insurance_number','','','','is_special_diseases_name','','','social_security_directory_code','','','','']
1574 1627
 
1575 1628
          const data = this.formatJson(filterVal,this.list)
1576 1629
 
@@ -1616,6 +1669,11 @@
1616 1669
            }
1617 1670
         })
1618 1671
       },
1672
+      jiaoBen(){
1673
+        updateBaseDrugLibByUserOrgId().then(response=>{
1674
+
1675
+        })
1676
+      }
1619 1677
 
1620 1678
     },
1621 1679
     created() {

+ 3 - 3
src/xt_pages/data/components/project.vue View File

@@ -41,7 +41,7 @@
41 41
         <div style="display:flex; align-items:center;margin-bottom:10px;">
42 42
         <!--<el-button type="primary" size="small" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028" >批量备案</el-button>-->
43 43
         <el-button type="primary" size="small" @click="GDYBBatchPutOnRecord()">批量备案</el-button>
44
-        <el-link target="_blank" href="https://kuyi.shengws.com/itemTemplate.xlsx" :underline="false"
44
+        <el-link target="_blank" href="https://kuyi.shengws.com/itemTemplateOne.xlsx" :underline="false"
45 45
                  style="margin-left:15px">
46 46
           <el-button
47 47
             class="filter-item"
@@ -923,8 +923,8 @@ export default {
923 923
            }
924 924
          }
925 925
           console.log("this.table",this.tableData)
926
-         const tHeader = ['项目名称','零价','单位','费用类别','执行科室','医保等级','国家编码','社保目录编码']
927
-         const filterVal = ['project_name', 'price','unit','cost_classify_name','executive_section_name','medical_coverage_name','medical_code','social_security_directory_code']
926
+         const tHeader = ['项目名称','零价','单位','费用类别','执行科室','医保等级','拼音','五笔','统计分类','是否特病目录','是否备案','国家编码','试管颜色','单次用量','用法','频率','天数','总量','状态','类别','特检项目','社保目录编码','备案日期','备注']
927
+         const filterVal = ['project_name', 'price','unit','cost_classify_name','executive_section_name','medical_coverage_name','','','','是','','medical_code','','','','','','','','','','social_security_directory_code','','']
928 928
 
929 929
          const data = this.formatJson(filterVal,this.tableData)
930 930
 

+ 7 - 4
src/xt_pages/data/components/templateTable.vue View File

@@ -75,7 +75,7 @@
75 75
       </el-pagination>
76 76
     </div> -->
77 77
 
78
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible">
78
+    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" width="70%">
79 79
       <el-form
80 80
         :rules="rules"
81 81
         ref="dataForm"
@@ -83,20 +83,22 @@
83 83
         label-position="right"
84 84
         label-width="70px"
85 85
       >
86
+      <!--  -->
86 87
         <el-form-item label="标题" prop="title">
87 88
           <el-input
88 89
             v-model="temp.title"
89 90
             maxlength="100"
90 91
             placeholder="请输入标题"
92
+            style="width: 30%;"
91 93
           ></el-input>
92 94
         </el-form-item>
93 95
 
94
-        <el-form-item label="内容" v-if="type == 'course_disease' || type == 'sick_history'">
96
+        <el-form-item label="内容" v-if="type == 'course_disease' || type == 'sick_history' || type == 'template_summary'">
95 97
           <keep-alive>
96 98
             <editor
97 99
               ref="editor"
98 100
               id="editor"
99
-              style="width: 600px"
101
+              style="width: 80%"
100 102
               v-bind:r_content="temp.content"
101 103
             >
102 104
             </editor>
@@ -118,6 +120,7 @@
118 120
             :autosize="{ minRows: 4, maxRows: 4 }"
119 121
             placeholder="请输入备注"
120 122
             v-model="temp.remark"
123
+            style="width: 80%;"
121 124
           ></el-input>
122 125
         </el-form-item>
123 126
       </el-form>
@@ -350,7 +353,7 @@ export default {
350 353
     },
351 354
     createData() {
352 355
       this.$refs["dataForm"].validate(valid => {
353
-        if (this.type == "course_disease" || this.type == "sick_history") {
356
+        if (this.type == "course_disease" || this.type == "sick_history" || this.type == 'template_summary') {
354 357
           this.temp.content = this.$refs.editor.content;
355 358
         }
356 359
 

+ 44 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_fiftyOne.vue View File

@@ -94,14 +94,56 @@
94 94
                   {{ record.patient.dialysis_no }}
95 95
                 </div>
96 96
               </div>
97
+              <div
98
+                class="inline_block"
99
+                v-if="
100
+                  record.receive_assessment.condition &&
101
+                  record.receive_assessment.condition == 1
102
+                "
103
+              >
104
+                住院科室:
105
+                <div
106
+                  class="under_line"
107
+                  style="width: 50px; text-align: center"
108
+                >
109
+                  <span>{{
110
+                    record.receive_assessment.condition &&
111
+                    record.receive_assessment.condition == 1 &&
112
+                    record.receive_assessment.his_department
113
+                      ?record.receive_assessment.his_department
114
+                      : "/"
115
+                  }}</span>
116
+                </div>
117
+              </div>
118
+              <div
119
+                class="inline_block"
120
+                v-if="
121
+                 record.receive_assessment.condition &&
122
+                 record.receive_assessment.condition == 1
123
+                "
124
+              >
125
+                住院床位:
126
+                <div
127
+                  class="under_line"
128
+                  style="width: 50px; text-align: center"
129
+                >
130
+                  <span>{{
131
+                    record.receive_assessment.condition &&
132
+                    record.receive_assessment.condition == 1 &&
133
+                    record.receive_assessment.his_bed
134
+                      ? record.receive_assessment.his_bed
135
+                      : "/"
136
+                  }}</span>
137
+                </div>
138
+              </div>
97 139
               <div class="inline_block" style="margin-left: 5px">
98
-                住院号/门诊号:
140
+                 住院号
99 141
                 <div
100 142
                   class="under_line"
101 143
                   style="width: 70px; text-align: left"
102 144
                   v-if="record.receive_assessment.admission_number"
103 145
                 >
104
-                  {{ record.receive_assessment.admission_number }}
146
+                   {{ record.receive_assessment.admission_number?record.receive_assessment.admission_number:"/" }}
105 147
                 </div>
106 148
                 <div
107 149
                   class="under_line"

+ 4 - 9
src/xt_pages/dialysis/batch_print/batch_print_order_fiftynine.vue View File

@@ -916,9 +916,7 @@
916 916
                             record.assessment_before_dislysis.weight_before
917 917
                               ? parseFloat(
918 918
                                   record.assessment_before_dislysis
919
-                                    .weight_before -
920
-                                    record.assessment_before_dislysis
921
-                                      .additional_weight
919
+                                    .weight_before
922 920
                                 ).toFixed(1)
923 921
                               : "/"
924 922
                           }}
@@ -1292,7 +1290,7 @@
1292 1290
                         </tr>
1293 1291
                         <tr>
1294 1292
                           <td width="60">时间</td>
1295
-                          <td width="60">体温<br />(℃)</td>
1293
+                          <td width="60" v-if="org_id!=10480 && org_id!=0">体温<br />(℃)</td>
1296 1294
                           <td width="60">血压<br />(mmHg)</td>
1297 1295
                           <td width="50">脉搏<br />(次/分)</td>
1298 1296
                           <td width="50">呼吸<br />(次/分)</td>
@@ -1339,7 +1337,7 @@
1339 1337
                               getTime(monitor_record.operate_time, "{h}:{i}")
1340 1338
                             }}
1341 1339
                           </td>
1342
-                           <td>
1340
+                           <td v-if="org_id!=10480 && org_id!=0"> 
1343 1341
                             {{
1344 1342
                               monitor_record.temperature
1345 1343
                                 ? monitor_record.temperature
@@ -2047,10 +2045,7 @@
2047 2045
                             record.assessment_after_dislysis &&
2048 2046
                             record.assessment_after_dislysis.weight_after
2049 2047
                               ? parseFloat(
2050
-                                  record.assessment_after_dislysis
2051
-                                    .weight_after -
2052
-                                    record.assessment_before_dislysis
2053
-                                      .additional_weight
2048
+                                  record.assessment_after_dislysis.weight_after
2054 2049
                                 ).toFixed(1)
2055 2050
                               : "/"
2056 2051
                           }}

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_forty.vue View File

@@ -573,12 +573,12 @@
573 573
                                     &nbsp;{{ record.prescription.oxygen_time ? record.prescription.oxygen_time : "" }}
574 574
                                 </div>
575 575
                                 </td>
576
-                                <td width="30">h</td>
576
+                                <!-- <td width="30">h</td>
577 577
                                 <td width="10">无</td>
578 578
                                 <td width="30">
579 579
                                 <label-box :isChecked="record.prescription.oxygen_uptake ==2 ? true : false"></label-box>
580 580
                                 &nbsp;
581
-                                </td>
581
+                                </td> -->
582 582
                                 <td></td>
583 583
                                 <td></td>
584 584
                             </tr>

+ 58 - 9
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

@@ -836,7 +836,16 @@
836 836
                               : "/"
837 837
                            }}
838 838
                           </span>
839
-                          <span v-if="org_id!=10206">
839
+
840
+                          <span v-if="org_id==10510">
841
+                              {{
842
+                            record.assessment_after_dislysis.displace_liqui_value
843
+                              ? record.assessment_after_dislysis.displace_liqui_value
844
+                              : "/"
845
+                           }}
846
+                          </span>
847
+                          
848
+                          <span v-if="org_id!=10206&&org_id!=10510">
840 849
                             {{
841 850
                             record.prescription &&
842 851
                             record.prescription.displace_liqui_value
@@ -1004,8 +1013,8 @@
1004 1013
                       class="row"
1005 1014
                       style="padding: 2px 0; line-height: 23px; display: flex"
1006 1015
                     >
1007
-                      <div class="inline_block" style="flex: 1"
1008
-                        v-if="org_id!=10440 && org_id!=0  && org_id!=10469 && org_id!=10490 && org_id!=10478 && org_id!=10495 && org_id!=10510 && org_id!=10460 && org_id!=10585 && org_id!=10567 && org_id!=10624">
1016
+                      <!-- <div class="inline_block" style="flex: 1"
1017
+                        v-if="org_id!=10440 && org_id!=0  && org_id!=10469 && org_id!=10490 && org_id!=10478 && org_id!=10495 && org_id!=10510 && org_id!=10460 && org_id!=10585 && org_id!=10567 && org_id!=10624 && org_id!=10290">
1009 1018
                         上次透后体重:
1010 1019
                         <div
1011 1020
                           class="under_line"
@@ -1028,10 +1037,9 @@
1028 1037
                           }}</span>
1029 1038
                         </div>
1030 1039
                         kg
1031
-                      </div>
1040
+                      </div> -->
1032 1041
 
1033
-                      <div class="inline_block" style="flex: 1"
1034
-                        v-if="(org_id==10440 ||  org_id ==0 || org_id==10469 || org_id==10490 || org_id==10478  || org_id==10495 || org_id == 10460 || org_id ==10624 || org_i==10624)&& org_id!=10510">
1042
+                      <div class="inline_block" style="flex: 1">
1035 1043
                         上次透后体重:
1036 1044
                         <div
1037 1045
                           class="under_line"
@@ -1621,7 +1629,8 @@
1621 1629
                               org_id == 9675 ||
1622 1630
                               org_id == 9671 ||
1623 1631
                               org_id ==10600 ||
1624
-                              org_id ==10629
1632
+                              org_id ==10629 ||
1633
+                              org_id == 10510
1625 1634
                             "
1626 1635
                           >
1627 1636
                             KT/V
@@ -1853,7 +1862,8 @@
1853 1862
                               org_id == 9675 ||
1854 1863
                               org_id == 9671 ||
1855 1864
                               org_id == 10600 ||
1856
-                              org_id ==10629
1865
+                              org_id ==10629 ||
1866
+                              org_id ==10510
1857 1867
                             "
1858 1868
                           >
1859 1869
                             {{ monitor_record.ktv }}
@@ -3735,6 +3745,41 @@ export default {
3735 3745
         var resp = rs.data;
3736 3746
         if (resp.state == 1) {
3737 3747
           this.records = this.records.concat(resp.data.schedules);
3748
+
3749
+          //华池
3750
+          if(this.org_id == 0 || this.org_id ==10440){
3751
+          
3752
+          var parint_id =0
3753
+        
3754
+          if(this.records!=null&&this.records.length>0){
3755
+            
3756
+            for(let i=0;i<this.records.length;i++){
3757
+             this.records[i].new_arr = []
3758
+             for(let j=0;j<this.records[i].advices.length;j++){
3759
+             
3760
+               if(this.records[i].advices[j].advice_name.indexOf("低分子")!=-1){
3761
+                 
3762
+                  parint_id = this.records[i].advices[j].id
3763
+               }
3764
+             }
3765
+            }
3766
+            for(let i=0;i<this.records.length;i++){
3767
+             for(let j=0;j<this.records[i].advices.length;j++){
3768
+               if(parint_id != this.records[i].advices[j].id && parint_id!=this.records[i].advices[j].parent_id){
3769
+                   this.records[i].new_arr.push(this.records[i].advices[j])
3770
+               }
3771
+             }
3772
+            }
3773
+
3774
+           
3775
+
3776
+            for(let i=0;i<this.records.length;i++){
3777
+               this.records[i].advices= []
3778
+               this.records[i].advices = this.records[i].new_arr
3779
+            }
3780
+          }
3781
+
3782
+         }
3738 3783
           var tempmonitorflag = true;
3739 3784
           for(let i=0;i<this.records.length;i++){
3740 3785
             for(let j=0;j<this.records[i].monitor_records.length;j++){
@@ -3783,7 +3828,7 @@ export default {
3783 3828
             }
3784 3829
 
3785 3830
 
3786
-            if(this.org_id == 0|| this.org_id ==10571){
3831
+            if(this.org_id ==10571){
3787 3832
              
3788 3833
                if(this.records!=null&& this.records.length>0){
3789 3834
                 for(let i=0;i<this.records.length;i++){
@@ -3919,6 +3964,8 @@ export default {
3919 3964
             }
3920 3965
           }
3921 3966
           console.log("数据我哦我我", this.records);
3967
+
3968
+
3922 3969
            
3923 3970
           if(this.records!=null && this.records.length>0){
3924 3971
             console.log("进啦地方大丰")
@@ -3980,6 +4027,8 @@ export default {
3980 4027
             }
3981 4028
           }
3982 4029
 
4030
+        
4031
+
3983 4032
           console.log("时间我哦我",this.records)
3984 4033
         
3985 4034
           // this.records.forEach(o => {

+ 4 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_thirtyNine.vue View File

@@ -274,7 +274,10 @@
274 274
                                     接管时间:
275 275
                                     <span style="width:160px;display:inline-block;">{{ record.dialysis_order ? getTime(record.dialysis_order.start_time, "{y}-{m}-{d} {h}:{i}") : "" }}</span>
276 276
                                     透析次数
277
-                                    <div class="inline_block under_line" style="width:50px;text-align:center">&nbsp;{{ record.patient.total_dialysis + record.patient.user_sys_before_count }}</div>次
277
+                                    <div class="inline_block under_line" style="width:50px;text-align:center">&nbsp;
278
+                                      <!-- {{ record.patient.total_dialysis + record.patient.user_sys_before_count }} -->
279
+                                      {{ record.Count + record.patient.user_sys_before_count }}
280
+                                    </div>次
278 281
                                 </td>
279 282
                             </tr>
280 283
                         </tbody>

+ 1 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_twelve.vue View File

@@ -214,6 +214,7 @@
214 214
                       <span style="width:50px;display: inline-block;">{{
215 215
                         record.prescription.anticoagulant_zongliang &&
216 216
                         (record.prescription.anticoagulant == 6 ||
217
+                        record.prescription.anticoagulant == 3 ||
217 218
                           record.prescription.anticoagulant == 7)
218 219
                           ? record.prescription.anticoagulant_zongliang
219 220
                           : ""

+ 2 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

@@ -154,8 +154,8 @@
154 154
           <label>目标超滤量 : </label>
155 155
           <span class="content">{{ target_ultrafiltration != "0" ? target_ultrafiltration : ""}}</span>
156 156
           
157
-          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45  && this.$store.getters.xt_user.template_info.template_id != 46  && this.$store.getters.xt_user.template_info.template_id != 48 && this.$store.getters.xt_user.template_info.org_id != 9555  && this.$store.getters.xt_user.template_info.org_id != 10345  && this.$store.getters.xt_user.template_info.org_id != 10346  && this.$store.getters.xt_user.template_info.org_id != 10395  && this.$store.getters.xt_user.template_info.template_id!=60  && this.$store.getters.xt_user.template_info.org_id != 10340  && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432  && this.$store.getters.xt_user.template_info.org_id != 10441 && this.$store.getters.xt_user.template_info.org_id != 10445 && this.$store.getters.xt_user.template_info.org_id != 9829 &&  this.$store.getters.xt_user.template_info.org_id != 10440  &&  this.$store.getters.xt_user.template_info.org_id != 10469  &&  this.$store.getters.xt_user.template_info.org_id != 10471 &&  this.$store.getters.xt_user.template_info.org_id != 10460"  class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
158
-          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 45 || this.$store.getters.xt_user.template_info.template_id == 46  || this.$store.getters.xt_user.template_info.template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345  || this.$store.getters.xt_user.template_info.org_id == 10346  || this.$store.getters.xt_user.template_info.org_id == 10395 || this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id==10441 || this.$store.getters.xt_user.template_info.org_id==10445 || this.$store.getters.xt_user.template_info.org_id == 9829 ||  this.$store.getters.xt_user.template_info.org_id == 10440 || this.$store.getters.xt_user.template_info.org_id == 10469|| this.$store.getters.xt_user.template_info.org_id == 10471 ||  this.$store.getters.xt_user.template_info.org_id == 10460" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
157
+          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45  && this.$store.getters.xt_user.template_info.template_id != 46  && this.$store.getters.xt_user.template_info.template_id != 48 && this.$store.getters.xt_user.template_info.org_id != 9555  && this.$store.getters.xt_user.template_info.org_id != 10345  && this.$store.getters.xt_user.template_info.org_id != 10346  && this.$store.getters.xt_user.template_info.org_id != 10395  && this.$store.getters.xt_user.template_info.template_id!=60  && this.$store.getters.xt_user.template_info.org_id != 10340  && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432  && this.$store.getters.xt_user.template_info.org_id != 10441 && this.$store.getters.xt_user.template_info.org_id != 10445 && this.$store.getters.xt_user.template_info.org_id != 9829 &&  this.$store.getters.xt_user.template_info.org_id != 10440  &&  this.$store.getters.xt_user.template_info.org_id != 10469  &&  this.$store.getters.xt_user.template_info.org_id != 10471 &&  this.$store.getters.xt_user.template_info.org_id != 10460 &&  this.$store.getters.xt_user.template_info.org_id != 10644"  class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
158
+          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 45 || this.$store.getters.xt_user.template_info.template_id == 46  || this.$store.getters.xt_user.template_info.template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345  || this.$store.getters.xt_user.template_info.org_id == 10346  || this.$store.getters.xt_user.template_info.org_id == 10395 || this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id==10441 || this.$store.getters.xt_user.template_info.org_id==10445 || this.$store.getters.xt_user.template_info.org_id == 9829 ||  this.$store.getters.xt_user.template_info.org_id == 10440 || this.$store.getters.xt_user.template_info.org_id == 10469|| this.$store.getters.xt_user.template_info.org_id == 10471 ||  this.$store.getters.xt_user.template_info.org_id == 10460 ||  this.$store.getters.xt_user.template_info.org_id == 10644" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
159 159
         </li>
160 160
 
161 161
          <li v-if="isShow('目标超滤量') && this.$store.getters.xt_user.template_info.org_id == 10290">

+ 7 - 2
src/xt_pages/dialysis/details/assessmentAfter.vue View File

@@ -325,8 +325,8 @@
325 325
           <span class="content" >{{ this.record.pip_coagulation}}</span>
326 326
         </li>
327 327
        <li v-if="isShow('累计血容量')">
328
-          <label>累计血容量: </label>
329
-          <span class="content" >{{ this.record.accumulated_blood_volume}}</span>
328
+          <label>透析血容量: </label>
329
+          <span class="content" >{{ this.record.accumulated_blood_volume}}L</span>
330 330
         </li>
331 331
 
332 332
         <li v-if="isShow('输液量')">
@@ -343,6 +343,11 @@
343 343
           <label>上次透后体重: </label>
344 344
           <span class="content" >{{ this.record.last_after_weight}}</span>
345 345
         </li>
346
+
347
+        <li v-if="isShow('置换液总量')">
348
+          <label>置换液总量: </label>
349
+          <span class="content" >{{ this.record.displace_liqui_value}}</span>
350
+        </li>
346 351
       </ul>
347 352
     </div>
348 353
     <!-- <div class="note">

+ 21 - 13
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

@@ -461,6 +461,12 @@
461 461
           </el-form-item>
462 462
         </el-col>
463 463
 
464
+        <el-col :span="8" v-if="isShow('置换液总量') &&(prescription!=null && (prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12))">
465
+            <el-form-item label="置换液总量(L): " :prop="isName('置换液总量')" :rules="isCheckmust('置换液总量')">
466
+              <el-input v-model="form.displace_liqui_value"></el-input>
467
+            </el-form-item>
468
+          </el-col>
469
+
464 470
 
465 471
         <el-col :span="8" v-if="isShow('失衡综合症')">
466 472
           <el-form-item label="失衡综合症: " :prop="isName('失衡综合症')" :rules="isCheckmust('失衡综合症')" >
@@ -635,7 +641,7 @@
635 641
             </el-form-item>
636 642
        </el-col>
637 643
        <el-col :span="8" v-if="isShow('累计血容量')">
638
-            <el-form-item label="累计血容量(L):"  label-width="150px" :prop="isName('累计血容量')" :rules="isCheckmust('累计血容量')">
644
+            <el-form-item label="透析血容量(L):"  label-width="150px" :prop="isName('累计血容量')" :rules="isCheckmust('累计血容量')">
639 645
               <el-input v-model="form.accumulated_blood_volume"></el-input>
640 646
             </el-form-item>
641 647
         </el-col>
@@ -646,7 +652,7 @@
646 652
             </el-form-item>
647 653
           </el-col>
648 654
         <el-col :span="24" v-if="isShow('KT/V')">
649
-            <el-form-item label="KT/V:" :prop="isName('KT/V')" :rules="isCheckmust('KT/V')">
655
+            <el-form-item label="Kt/V:" :prop="isName('KT/V')" :rules="isCheckmust('KT/V')">
650 656
               <el-input type="textarea" :rows="4" v-model="form.ktv"></el-input>
651 657
             </el-form-item>
652 658
         </el-col>
@@ -886,7 +892,8 @@ export default {
886 892
         accumulated_blood_volume:"",
887 893
         transfusion_volume:"",
888 894
         condenser:"",
889
-        last_after_weight:""
895
+        last_after_weight:"",
896
+        displace_liqui_value:"",
890 897
       },
891 898
       lapseList:[],
892 899
       leaveOfficeMethod:[],
@@ -1011,7 +1018,7 @@ export default {
1011 1018
     'form.weight_after': function() {
1012 1019
       console.log('体重减少',  this.form.weight_after)
1013 1020
       this.form.weight_loss = ((this.predialysis_evaluation.weight_before - this.predialysis_evaluation.additional_weight) - (this.form.weight_after - this.form.additional_weight)).toFixed(1)
1014
-    
1021
+
1015 1022
       if (this.form.weight_loss < 0) {
1016 1023
         this.form.weight_loss = ''
1017 1024
       }
@@ -1020,14 +1027,14 @@ export default {
1020 1027
       }
1021 1028
 
1022 1029
       if(this.predialysis_evaluation!=null){
1023
-         
1030
+
1024 1031
          this.form.additional_weight = this.predialysis_evaluation.additional_weight
1025 1032
        }
1026
-      
1033
+
1027 1034
     },
1028 1035
     'form.additional_weight':function(){
1029 1036
       if(this.predialysis_evaluation!=null){
1030
-         
1037
+
1031 1038
          this.form.additional_weight = this.predialysis_evaluation.additional_weight
1032 1039
        }
1033 1040
     }
@@ -1128,8 +1135,8 @@ export default {
1128 1135
       this.$refs[formName].validate((valid)=>{
1129 1136
         if(valid){
1130 1137
           var dateOne = this.schedual.schedule_date
1131
-          var schedule_date = uParseTime(dateOne, '{y}-{m}-{d}')      
1132
-          var date = this.$route.query && this.$route.query.date 
1138
+          var schedule_date = uParseTime(dateOne, '{y}-{m}-{d}')
1139
+          var date = this.$route.query && this.$route.query.date
1133 1140
           this.record_date = date ? uParseTime(date, '{y}-{m}-{d}') :schedule_date
1134 1141
           console.log("日期我哦我",this.record_date)
1135 1142
           this.loading = true
@@ -1234,12 +1241,13 @@ export default {
1234 1241
           data["accumulated_blood_volume"] = this.form.accumulated_blood_volume
1235 1242
           data["transfusion_volume"] = this.form.transfusion_volume
1236 1243
           data["condenser"] = this.form.condenser
1244
+          data['displace_liqui_value'] = this.form.displace_liqui_value
1237 1245
           if(this.form.last_after_weight >0){
1238 1246
             data["last_after_weight"] = this.form.last_after_weight.toString()
1239 1247
           }else{
1240 1248
             data["last_after_weight"] = ""
1241 1249
           }
1242
-         
1250
+
1243 1251
           console.log("Paramsquery",data)
1244 1252
 
1245 1253
           postAssessmentAfterDislysis(ParamsQuery, data)
@@ -1405,7 +1413,7 @@ export default {
1405 1413
           break
1406 1414
         default:
1407 1415
           break
1408
-        
1416
+
1409 1417
       }
1410 1418
       // console.log(val);
1411 1419
     },
@@ -1600,9 +1608,9 @@ export default {
1600 1608
     this.template_id = this.$store.getters.xt_user.template_info.template_id
1601 1609
     this.channels = this.$store.getters.channels
1602 1610
 
1603
-   
1611
+
1604 1612
     // this.record_date = date ? uParseTime(date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}')
1605
-   
1613
+
1606 1614
     if(this.$store.getters.xt_user.template_info.org_id == 0 ||  this.$store.getters.xt_user.template_info.org_id==9829 ||  this.$store.getters.xt_user.template_info.org_id==10469){
1607 1615
       this.form.pulse_frequency = 80
1608 1616
     }

+ 1 - 1
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue View File

@@ -1600,7 +1600,7 @@ export default {
1600 1600
         }
1601 1601
       }
1602 1602
 
1603
-      if(this.$store.getters.xt_user.org.id == 9671 || this.$store.getters.xt_user.org.id == 9675 || this.$store.getters.xt_user.org.id == 10340 || this.$store.getters.xt_user.org.id == 10517){
1603
+      if(this.$store.getters.xt_user.org.id == 9671 || this.$store.getters.xt_user.org.id == 9675 || this.$store.getters.xt_user.org.id == 10340 || this.$store.getters.xt_user.org.id == 10517 || this.$store.getters.xt_user.org.id == 10383){
1604 1604
          var date = new Date()
1605 1605
           var year = date.getFullYear()
1606 1606
           var month = date.getMonth() + 1

+ 151 - 15
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -3,31 +3,36 @@
3 3
         <el-dialog
4 4
                 title="透析处方"
5 5
                 :visible.sync="isVisibility"
6
-                width="1010px"
6
+                width="68%"
7 7
                 :modal = 'false'
8 8
                 :modal-append-to-body="false"
9 9
                 :close-on-click-modal="false"
10 10
                 class="newDialog"
11 11
         >
12
-            <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo">{{ patient.name }}</el-button>
13
-            <span style="position: absolute;left: 22%;top: 3%">
12
+            <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo(patient.id)">{{ patient.name }}</el-button>
13
+           
14
+            <span style="position: absolute;left: 20%;top: 3%">
14 15
               透前体重:{{predialysis&&predialysis.weight_before?predialysis.weight_before:"" }} kg
16
+            
15 17
             </span>
16
-            <span style="position: absolute;left: 35%;top: 3%">
18
+            <span style="position: absolute;left: 30%;top: 3%">
17 19
               干体重:{{predialysis&&predialysis.dry_weight?predialysis.dry_weight:""}}kg
18 20
             </span>
19 21
             <!-- <span style="position: absolute;left: 48%;top: 3%"  :modal = 'false'>
20 22
               衣物重:{{predialysis&&predialysis.additional_weight?predialysis.additional_weight:""}}kg
21 23
             </span> -->
22
-            <span style="position: absolute;left: 48%;top: 3%">
24
+            <span style="position: absolute;left:38%;top: 3%">
23 25
               上次透后体重:{{last_record&&last_record.weight_after?last_record.weight_after:""}}kg
24 26
             </span>
25 27
 
26
-            <span style="position: absolute;left: 65%;top: 3%">
28
+            <span style="position: absolute;left:50%;top: 3%">
27 29
               4小时超滤量上限(5%):
28 30
               <span v-if="predialysis!=null && ((predialysis.dry_weight)*0.05) >0 "></span> {{(predialysis.dry_weight*0.05).toFixed(2)}}
29 31
               kg
30 32
             </span>
33
+            <span style="position: absolute;left: 70%;top: 3%">
34
+              透前血压:  {{predialysis&&predialysis.systolic_blood_pressure?predialysis.systolic_blood_pressure:""  }} / {{ predialysis&&predialysis.diastolic_blood_pressure?predialysis.diastolic_blood_pressure:"" }} mmHg
35
+            </span>
31 36
             <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
32 37
             <el-form
33 38
                     ref="dialysisPrescription"
@@ -113,7 +118,7 @@
113 118
                     </el-col>
114 119
 
115 120
                     <el-col :span="8"
116
-                            v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 40 ||  this.$store.getters.xt_user.template_info.template_id == 43 ||  this.$store.getters.xt_user.template_info.template_id == 45  ||  this.$store.getters.xt_user.template_info.template_id == 46 ||  this.$store.getters.xt_user.template_info.template_id == 48 ||  this.$store.getters.xt_user.template_info.template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10249 || this.$store.getters.xt_user.template_info.org_id == 10395 ||this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 9829|| this.$store.getters.xt_user.template_info.org_id == 10440 || this.$store.getters.xt_user.template_info.org_id == 10469|| this.$store.getters.xt_user.template_info.org_id == 10471 || this.$store.getters.xt_user.template_info.org_id == 10460)">
121
+                            v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 40 ||  this.$store.getters.xt_user.template_info.template_id == 43 ||  this.$store.getters.xt_user.template_info.template_id == 45  ||  this.$store.getters.xt_user.template_info.template_id == 46 ||  this.$store.getters.xt_user.template_info.template_id == 48 ||  this.$store.getters.xt_user.template_info.template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10249 || this.$store.getters.xt_user.template_info.org_id == 10395 ||this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 9829|| this.$store.getters.xt_user.template_info.org_id == 10440 || this.$store.getters.xt_user.template_info.org_id == 10469|| this.$store.getters.xt_user.template_info.org_id == 10471 || this.$store.getters.xt_user.template_info.org_id == 10460 || this.$store.getters.xt_user.template_info.org_id == 10644)">
117 122
                         <el-form-item label="目标超滤量(ml):"
118 123
                         prop="target_ultrafiltration" :rules="isCheckmust('目标超滤量')">
119 124
                             <el-input
@@ -127,7 +132,7 @@
127 132
 
128 133
 
129 134
                     <el-col :span="8"
130
-                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 48 &&  this.$store.getters.xt_user.template_info.template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10345 &&  this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249 &&  this.$store.getters.xt_user.template_info.org_id != 10395 &&  this.$store.getters.xt_user.template_info.template_id != 60 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id!=10441 && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469&& this.$store.getters.xt_user.template_info.org_id != 10471 && this.$store.getters.xt_user.template_info.org_id != 10460">
135
+                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 48 &&  this.$store.getters.xt_user.template_info.template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10345 &&  this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249 &&  this.$store.getters.xt_user.template_info.org_id != 10395 &&  this.$store.getters.xt_user.template_info.template_id != 60 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id!=10441 && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469&& this.$store.getters.xt_user.template_info.org_id != 10471 && this.$store.getters.xt_user.template_info.org_id != 10460 && this.$store.getters.xt_user.template_info.org_id != 10644">
131 136
                         <el-form-item
132 137
                         label="目标超滤量(L):" prop="target_ultrafiltration" :rules="isCheckmust('目标超滤量')">
133 138
                             <el-input
@@ -1308,7 +1313,7 @@
1308 1313
                 :close-on-click-modal="false"
1309 1314
                 :close-on-press-escape="false"
1310 1315
                 :show-close="false"
1311
-                width="30%"
1316
+                width="40%"
1312 1317
         >
1313 1318
             <div class="newLine">
1314 1319
                 <span>本次透析日期</span>
@@ -1342,6 +1347,40 @@
1342 1347
                 <span>上次透后称重(kg)</span>
1343 1348
                 <span>{{ getLastAfterWeight(last_record) }}</span>
1344 1349
             </div>
1350
+          
1351
+          <div  class="newLine"><span>近五次数据展示:</span></div>
1352
+           <div>
1353
+            <el-table
1354
+              :data="tableData"
1355
+              border
1356
+              style="width: 100%">
1357
+              <el-table-column prop="date" label="透析日期" width="100">
1358
+                 <template slot-scope="scope">
1359
+                    {{getTimeOne(scope.row.assessment_date) }}
1360
+                 </template>
1361
+              </el-table-column>
1362
+              <!-- <el-table-column prop="name" label="透前血压(mmHg)" width="140">
1363
+                <template slot-scope="scope">
1364
+                  {{scope.row.systolic_blood_pressure}}/{{scope.row.diastolic_blood_pressure}}
1365
+                </template>
1366
+              </el-table-column> -->
1367
+              <el-table-column prop="name" label="透中血压(mmHg)" width="140">
1368
+                <template slot-scope="scope">
1369
+                  {{ GetMonitorList(scope.row.assessment_date) }}
1370
+                </template>
1371
+              </el-table-column>
1372
+              <el-table-column prop="address" label="透后体重(kg)" width="160">
1373
+                <template slot-scope="scope">
1374
+                   {{GetLast(scope.row.assessment_date)}}
1375
+                </template>
1376
+              </el-table-column>
1377
+              <el-table-column  width="180" prop="address" label="透析器评级">
1378
+                <template slot-scope="scope">
1379
+                  {{GetLastCruor(scope.row.assessment_date)}}
1380
+                </template>
1381
+              </el-table-column>
1382
+             </el-table>
1383
+           </div>
1345 1384
 
1346 1385
             <span slot="footer" class="dialog-footer">
1347 1386
         <el-button @click="cancleMsg()">取 消</el-button>
@@ -1395,7 +1434,7 @@
1395 1434
 </template>
1396 1435
 
1397 1436
 <script>
1398
-  import { CreateGroupAdvice, GetSolution, postPrescription, postSoulution,saveInformation } from '@/api/dialysis'
1437
+  import { CreateGroupAdvice, GetSolution, postPrescription, postSoulution,saveInformation,getPatientRecordList } from '@/api/dialysis'
1399 1438
   import { getDataConfig } from '@/utils/data'
1400 1439
   import { calculateAnticoagulantZL, uParseTime,replacementFlow } from '@/utils/tools'
1401 1440
   import store from '@/store'
@@ -1846,6 +1885,9 @@
1846 1885
         selected_date:"",
1847 1886
         remark:"",
1848 1887
         blood_access_part: [],
1888
+        tableData:[],
1889
+        afterList:[],
1890
+        monitorList:[],
1849 1891
       }
1850 1892
 
1851 1893
     },
@@ -2187,10 +2229,18 @@ mu
2187 2229
             }
2188 2230
           }
2189 2231
         } else {
2190
-          if (schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12) {
2232
+          if (schedual.mode_id == 2  || schedual.mode_id == 5 || schedual.mode_id == 12) {
2191 2233
             this.zhiShow = true
2192 2234
             this.huShow = true
2193 2235
             this.totalShow = true
2236
+           if(schedual.mode_id == 2 || schedual.mode_id == 3 || schedual.mode_id == 4 || schedual.mode_id == 12){
2237
+              if(this.$store.getters.xt_user.template_info.org_id == 9970){
2238
+                this.dialysisPrescription.dialysis_remark = "患者毒素多,出现皮肤瘙痒,定期HDF或HP能改善患者不适症状,有利透析的充分性,因血液透析滤过有更稳定的血流动力学状态,且能有效清除中分子物质;血液灌流能更有效的清除大分子毒素。两者定期治疗能减少透析相关并发症,有得透析充分性,改善患者生活质量。"
2239
+              }
2240
+           }else{
2241
+               this.dialysisPrescription.dialysis_remark=""
2242
+           }
2243
+          
2194 2244
           } else {
2195 2245
             this.zhiShow = false
2196 2246
             this.huShow = false
@@ -2522,6 +2572,9 @@ mu
2522 2572
       getTime(val) {
2523 2573
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
2524 2574
       },
2575
+      getTimeOne(val) {
2576
+        return uParseTime(val, '{y}-{m}-{d}')
2577
+      },
2525 2578
       showOne(prescription,admins){
2526 2579
        console.log("prescription",prescription)
2527 2580
        if(prescription!=null && prescription.id == 0){
@@ -2702,6 +2755,14 @@ mu
2702 2755
             } else if (schedual.schedule_type == 3) {
2703 2756
               this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
2704 2757
             }
2758
+           }else if(this.$store.getters.xt_user.org.id == 10383){
2759
+              if (schedual.schedule_type == 1) {
2760
+              this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
2761
+            } else if (schedual.schedule_type == 2) {
2762
+              this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
2763
+            } else if (schedual.schedule_type == 3) {
2764
+              this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
2765
+            }
2705 2766
            }else if(this.$store.getters.xt_user.org.id == 10234){
2706 2767
               if (schedual.schedule_type == 1) {
2707 2768
               this.start_time = year + '-' + month + '-' + day + ' ' + '7:30'
@@ -4349,6 +4410,16 @@ mu
4349 4410
         this.dialysisPrescription.displace_speed = ""
4350 4411
       }
4351 4412
 
4413
+      if(id == 2 || id ==3 || id ==4 || id ==12){
4414
+        if(this.$store.getters.xt_user.template_info.org_id == 9970){
4415
+          this.dialysisPrescription.dialysis_remark = "患者毒素多,出现皮肤瘙痒,定期HDF或HP能改善患者不适症状,有利透析的充分性,因血液透析滤过有更稳定的血流动力学状态,且能有效清除中分子物质;血液灌流能更有效的清除大分子毒素。两者定期治疗能减少透析相关并发症,有得透析充分性,改善患者生活质量。"
4416
+        }
4417
+      }else{
4418
+        this.dialysisPrescription.dialysis_remark = ""
4419
+      }
4420
+       
4421
+      
4422
+
4352 4423
       const ParamsQuery = {}
4353 4424
       ParamsQuery['patient_id'] = this.$route.query.patient_id
4354 4425
       ParamsQuery['mode_id'] = id
@@ -4502,9 +4573,64 @@ mu
4502 4573
       }
4503 4574
 
4504 4575
     },
4505
-    handlePatientInfo() {
4506
-      this.isVisibility = false
4507
-      this.msgtip_visibility = true
4576
+    handlePatientInfo(id) {
4577
+      
4578
+      getPatientRecordList(id).then(response=>{
4579
+        if(response.data.state ==1){
4580
+          this.isVisibility = false
4581
+          this.msgtip_visibility = true
4582
+
4583
+          
4584
+          var beforList = response.data.data.beforList
4585
+       
4586
+          this.tableData = beforList
4587
+
4588
+          var afterList =  response.data.data.afterList
4589
+       
4590
+          this.afterList = afterList
4591
+
4592
+          this.monitorList = response.data.data.monitorList
4593
+        }
4594
+      })
4595
+     
4596
+    },
4597
+    GetLast(date){
4598
+      var weight_after = ""
4599
+      for(let i=0;i<this.afterList.length;i++){
4600
+        if(date == this.afterList[i].assessment_date){
4601
+           weight_after = this.afterList[i].weight_after
4602
+        }
4603
+      }
4604
+      return weight_after
4605
+    },
4606
+    GetLastCruor(date){
4607
+      var cruor = ""
4608
+      for(let i=0;i<this.afterList.length;i++){
4609
+        if(date == this.afterList[i].assessment_date){
4610
+          cruor = this.afterList[i].cruor
4611
+        }
4612
+      }
4613
+      return cruor
4614
+    },
4615
+    GetMonitorList(monitor_date){
4616
+     
4617
+        var str = ""
4618
+        var newArr = []
4619
+        for(let i=0;i<this.monitorList.length;i++){
4620
+          for(let j=0;j<this.monitorList[i].child.length;j++){
4621
+            if(monitor_date == this.monitorList[i].monitoring_date){
4622
+              newArr.push(this.monitorList[i].child[j]) 
4623
+            }
4624
+          }
4625
+        }
4626
+       
4627
+        if(newArr!=null && newArr.length>0){
4628
+        for(let i=0;i<newArr.length;i++){
4629
+            str += newArr[i].systolic_blood_pressure +"/"+newArr[i].diastolic_blood_pressure+","
4630
+        }
4631
+        }
4632
+      
4633
+        return str
4508 4634
     },
4509 4635
     handlePatientInfoOne(){
4510 4636
       this.isVisibility = false
@@ -5167,6 +5293,15 @@ mu
5167 5293
        }
5168 5294
 
5169 5295
       },
5296
+      'dialysisPrescription.prescription_water':function(){
5297
+        if(this.$store.getters.xt_user.template_info.org_id==10598){
5298
+           
5299
+          if(this.dialysisPrescription.prescription_water > this.dialysisPrescription.target_ultrafiltration){
5300
+            this.dialysisPrescription.target_ultrafiltration =  this.dialysisPrescription.prescription_water 
5301
+          }
5302
+           
5303
+        }
5304
+      },
5170 5305
       stockType: function() {
5171 5306
         console.log('stockType', this.stockType)
5172 5307
         var arr = []
@@ -5217,7 +5352,8 @@ mu
5217 5352
           }
5218 5353
         }
5219 5354
         console.log(" 人员",this.adminRoles)
5220
-      }
5355
+      },
5356
+     
5221 5357
     },
5222 5358
     created() {
5223 5359
 

+ 10 - 8
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

@@ -513,7 +513,7 @@
513 513
                 org_id == 10395||
514 514
                 org_id == 10617
515 515
 
516
-               )&& org_id!=10598
516
+               )&& org_id!=10598 && org_id!=10414
517 517
             "
518 518
           >
519 519
             <template slot-scope="scope">
@@ -542,7 +542,7 @@
542 542
               org_id !=10445 &&
543 543
               org_id!=10395 &&
544 544
               org_id !=10410 &&
545
-              org_id!=10617)|| org_id==10598
545
+              org_id!=10617)|| org_id==10598 || org_id ==10414
546 546
             "
547 547
           >
548 548
             <template slot-scope="scope">
@@ -580,6 +580,7 @@
580 580
                 template_id != 47 &&
581 581
                 org_id!=10558 &&
582 582
                 org_id!=10517 && 
583
+                org_id!=10414 && 
583 584
                 org_id!=10598) ||
584 585
                 org_id == 9779 ||
585 586
                 template_id == 11 ||
@@ -612,7 +613,7 @@
612 613
             width="100"
613 614
             v-if="
614 615
               isShow('置换量') &&
615
-              (template_id != 6 || org_id == 9919 || org_id == 10191 || org_id == 10478 || org_id == 10551 || org_id ==10558 || org_id ==10517 || org_id ==10598) &&
616
+              (template_id != 6 || org_id == 9919 || org_id == 10191 || org_id == 10478 || org_id == 10551 || org_id ==10558 || org_id ==10517 || org_id ==10598 || org_id ==10414) &&
616 617
               template_id != 9779 &&
617 618
               template_id != 11 &&
618 619
               template_id != 20 &&
@@ -942,7 +943,7 @@
942 943
           <el-table-column
943 944
             prop="heparin"
944 945
             align="center"
945
-            label="KT/V"
946
+            label="Kt/V"
946 947
             width="140"
947 948
             v-if="
948 949
               isShow('KT/V') &&
@@ -1436,7 +1437,7 @@
1436 1437
                 org_id==10445 ||
1437 1438
                 org_id==10410 ||
1438 1439
                 org_id==10395 || 
1439
-                org_id==10617) && org_id !=10558 && org_id!=10598
1440
+                org_id==10617) && org_id !=10558 && org_id!=10598 && org_id!=10414
1440 1441
             "
1441 1442
           >
1442 1443
             <el-form-item label="置换率(ml/min):" :prop="isName('置换率')"
@@ -1469,7 +1470,8 @@
1469 1470
               org_id!=10340 &&
1470 1471
               org_id!=10432 &&
1471 1472
               org_id!=10445 &&
1472
-              org_id!=10395
1473
+              org_id!=10395 &&
1474
+              org_id!=10414
1473 1475
             "
1474 1476
           >
1475 1477
             <el-form-item label="置换量(L):" :prop="isName('置换量')"
@@ -1485,7 +1487,7 @@
1485 1487
                 org_id != 9919 &&
1486 1488
                 org_id != 10191 &&
1487 1489
                 org_id != 10551 &&
1488
-                template_id != 43 && org_id!=10558 && org_id!=10346 && org_id!=10598) ||
1490
+                template_id != 43 && org_id!=10558 && org_id!=10346 && org_id!=10598 && org_id!=10414) ||
1489 1491
                 org_id == 9779 ||
1490 1492
                 template_id == 11 ||
1491 1493
                 template_id == 20 ||
@@ -1723,7 +1725,7 @@
1723 1725
 
1724 1726
           <el-row :gutter="20"> -->
1725 1727
           <el-col :span="24" v-if="isShow('KT/V')">
1726
-            <el-form-item label="KT/V(在线):" :prop="isName('KT/V')"
1728
+            <el-form-item label="Kt/V(在线):" :prop="isName('Kt/V')"
1727 1729
               :rules="isCheckmust('KT/V')">
1728 1730
               <el-input type="textarea" :rows="4" v-model="form.ktv"></el-input>
1729 1731
             </el-form-item>

+ 9 - 1
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue View File

@@ -599,10 +599,18 @@ export default {
599 599
         console.log("str000000000000000000222o2o2",str)
600 600
         this.treatmentSummary.dialysis_summary = ""
601 601
         this.treatmentSummary.dialysis_summary = str
602
+       }else if (this.org_id ==10537 ){
603
+        var str = " 患者今日来我科行血液透析治疗,血管通路选择:"+this.predialysis_evaluation.blood_access_part_id+ " "+this.QueryOperaById(this.predialysis_evaluation.blood_access_part_opera_id) +",透析模式:"+this.getModeId(this.prescription.mode_id)+
604
+       ",透前检查:"+this.predialysis_evaluation.internal_fistula +this.predialysis_evaluation.catheter + str_one +" "+ ",透析器:"+this.prescription.dialyzer_perfusion_apparatus + ",抗凝剂:"+this.GetAnticoagulant(this.prescription.anticoagulant) +
605
+      ",透前体重:"+this.predialysis_evaluation.weight_before+"kg"+",间期体重增长:"+total +"kg"+",目标脱水量:"+this.prescription.target_ultrafiltration +"ml" +",血流量:"+this.prescription.blood_flow_volume+"ml/min" + ",透析开始时间:"+this.getTime(this.dialysis_order.start_time) +",透析过程中血压波动,"+"最小收缩压:"+monitor_one[0].systolic_blood_pressure+"mmHg"+",最大收缩压:"+monitor_one[monitor_one.length-1].systolic_blood_pressure
606
+      +"mmHg" +",最小舒张压:" +monitor_two[0].diastolic_blood_pressure+"mmHg" + ",最大舒张压:" + monitor_two[monitor_two.length-1].diastolic_blood_pressure +"mmHg" + ",最大脉搏:"+monitor_three[0].pulse_frequency+"次/分"+",最小脉搏:"+monitor_three[monitor_three.length-1].pulse_frequency+"次/分"+",透析结束时间:"+this.getTime(this.dialysis_order.end_time) +
607
+      ",实际治疗时长:"+ this.assessment_after_dislysis.actual_treatment_hour +"时"+this.assessment_after_dislysis.actual_treatment_minute+"分" +",实际超滤量:"+this.assessment_after_dislysis.actual_ultrafiltration+"L"+",透后体重:"+this.assessment_after_dislysis.weight_after+"kg"+",透析过程顺利,安全下机" + " "
608
+       +",患者下机后测血压,"+"收缩压:"+this.assessment_after_dislysis.systolic_blood_pressure+"mmHg"+",舒张压:"+this.assessment_after_dislysis.diastolic_blood_pressure+"mmHg"+",脉搏:"+this.assessment_after_dislysis.pulse_frequency +"次/分"
609
+
602 610
        }else{
603 611
         var str = " 患者今日来我科行血液透析治疗,血管通路选择:"+this.predialysis_evaluation.blood_access_part_id+ " "+this.QueryOperaById(this.predialysis_evaluation.blood_access_part_opera_id) +",透析模式:"+this.getModeId(this.prescription.mode_id)+
604 612
        ",透前检查:"+this.predialysis_evaluation.internal_fistula +this.predialysis_evaluation.catheter + str_one +" "+ ",透析器:"+this.prescription.dialyzer_perfusion_apparatus + ",抗凝剂:"+this.GetAnticoagulant(this.prescription.anticoagulant) +
605
-      ",透前体重:"+this.predialysis_evaluation.weight_before+"kg"+",间期体重增长:"+total +"kg"+",目标脱水量:"+this.prescription.target_ultrafiltration +"L" +",血流量:"+this.prescription.blood_flow_volume+"ml/min" + ",透析开始时间:"+this.getTime(this.dialysis_order.start_time) +",透析过程中血压波动,"+"最大收缩压:"+monitor_one[0].systolic_blood_pressure+"mmHg"+",最小收缩压:"+monitor_one[monitor_one.length-1].systolic_blood_pressure
613
+      ",透前体重:"+this.predialysis_evaluation.weight_before+"kg"+",间期体重增长:"+total +"kg"+",目标脱水量:"+this.prescription.target_ultrafiltration +"L" +",血流量:"+this.prescription.blood_flow_volume+"ml/min" + ",透析开始时间:"+this.getTime(this.dialysis_order.start_time) +",透析过程中血压波动,"+"最小收缩压:"+monitor_one[0].systolic_blood_pressure+"mmHg"+",最大收缩压:"+monitor_one[monitor_one.length-1].systolic_blood_pressure
606 614
       +"mmHg" +",最小舒张压:" +monitor_two[0].diastolic_blood_pressure+"mmHg" + ",最大舒张压:" + monitor_two[monitor_two.length-1].diastolic_blood_pressure +"mmHg" + ",最大脉搏:"+monitor_three[0].pulse_frequency+"次/分"+",最小脉搏:"+monitor_three[monitor_three.length-1].pulse_frequency+"次/分"+",透析结束时间:"+this.getTime(this.dialysis_order.end_time) +
607 615
       ",实际治疗时长:"+ this.assessment_after_dislysis.actual_treatment_hour +"时"+this.assessment_after_dislysis.actual_treatment_minute+"分" +",实际超滤量:"+this.assessment_after_dislysis.actual_ultrafiltration+"L"+",透后体重:"+this.assessment_after_dislysis.weight_after+"kg"+",透析过程顺利,安全下机" + " "
608 616
        +",患者下机后测血压,"+"收缩压:"+this.assessment_after_dislysis.systolic_blood_pressure+"mmHg"+",舒张压:"+this.assessment_after_dislysis.diastolic_blood_pressure+"mmHg"+",脉搏:"+this.assessment_after_dislysis.pulse_frequency +"次/分"

+ 5 - 5
src/xt_pages/dialysis/details/dialysisMonitoring.vue View File

@@ -21,11 +21,11 @@
21 21
           <th v-if="isShow('超滤率') && (template_id !=6 && template_id !=65 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38  && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=46 && template_id !=47 &&  template_id !=48 &&  template_id !=53 &&  template_id !=54 &&  template_id !=56 &&  template_id !=60 && this.$store.getters.xt_user.template_info.org_id!=10432  && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=10410 &&this.$store.getters.xt_user.template_info.org_id!=10485 &&this.$store.getters.xt_user.template_info.org_id!=10375 && this.$store.getters.xt_user.template_info.org_id!=10480 && this.$store.getters.xt_user.template_info.org_id!=10597 && this.$store.getters.xt_user.template_info.org_id!=10599 && this.$store.getters.xt_user.template_info.org_id!=10612 && this.$store.getters.xt_user.template_info.org_id!=10617 && this.$store.getters.xt_user.template_info.org_id!=10580 && this.$store.getters.xt_user.template_info.org_id!=10629 ) || this.$store.getters.xt_user.template_info.org_id==10387" width="50px"> 超滤率 <br />(L/h) </th>
22 22
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
23 23
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
24
-          <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46  || template_id == 48 || template_id == 53  || template_id == 54 || template_id == 56 || org_id == 10432 || org_id == 10445 || org_id == 10410 || org_id ==10617) && org_id!=10558 && org_id!=10598" width="92px" > 置换率(ml/min) </th>
25
-          <th v-if=" isShow('置换率') && (template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && org_id!=10432 && org_id!=10445 && org_id!=10410 && org_id!=10617) || org_id == 10558 || org_id ==10598" width="92px" > 置换率(L/h)  </th>
24
+          <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46  || template_id == 48 || template_id == 53  || template_id == 54 || template_id == 56 || org_id == 10432 || org_id == 10445 || org_id == 10410 || org_id ==10617) && org_id!=10558 && org_id!=10598 && org_id!=10414" width="92px" > 置换率(ml/min) </th>
25
+          <th v-if=" isShow('置换率') && (template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && org_id!=10432 && org_id!=10445 && org_id!=10410 && org_id!=10617) || org_id == 10558 || org_id ==10598 || org_id ==10414" width="92px" > 置换率(L/h)  </th>
26 26
           <th v-if=" isShow('置换量') && (template_id == 43)" width="92px"> 置换量(ml/h)  </th>
27
-          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191 && org_id!=10478 && org_id!=10346 && org_id!=10517) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10432  || this.$store.getters.xt_user.template_info.org_id == 10445 ) && org_id!=10558 && org_id!=10598" width="92px"  > 置换量(ml)  </th>
28
-          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191 || org_id == 10478 || org_id ==10346 || org_id ==10517) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432  && this.$store.getters.xt_user.template_info.org_id != 10445) || org_id == 10558 || org_id ==10598" width="92px" > 置换量(L) </th>
27
+          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191 && org_id!=10478 && org_id!=10346 && org_id!=10517) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10432  || this.$store.getters.xt_user.template_info.org_id == 10445 ) && org_id!=10558 && org_id!=10598  && org_id!=10414" width="92px"  > 置换量(ml)  </th>
28
+          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191 || org_id == 10478 || org_id ==10346 || org_id ==10517) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432  && this.$store.getters.xt_user.template_info.org_id != 10445) || org_id == 10558 || org_id ==10598 || org_id ==10414" width="92px" > 置换量(L) </th>
29 29
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
30 30
           <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
31 31
           <th v-if="isShow('置换液流量') && template_id != 27 && template_id != 60" width="92px">置换液流量(ml/h)</th>
@@ -46,7 +46,7 @@
46 46
           <th v-if="isShow('脱水')" width="92px">脱水(L)</th>
47 47
           <th v-if="isShow('滤前压')" width="92px">滤前压(mmHg)</th>
48 48
         
49
-          <th v-if="isShow('KT/V') && (org_id == 9987 || org_id == 10215 || org_id ==  9800 || org_id ==  9598)" width="92px">KT/V</th>
49
+          <th v-if="isShow('KT/V') && (org_id == 9987 || org_id == 10215 || org_id ==  9800 || org_id ==  9598)" width="92px">Kt/V</th>
50 50
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
51 51
 
52 52
           <th v-if="isShow('处理')" width="92px">处理</th>

+ 118 - 13
src/xt_pages/dialysis/details/index.vue View File

@@ -273,14 +273,19 @@
273 273
       <div id="print_content">
274 274
       <div class="print_main_content">
275 275
         <div class="table_panel">
276
-            <div v-for="(main_collection,index) in printList" :key="index">
276
+            <div v-for="(main_collection,index) in printList" :key="index" style="margin: 0 10px;">
277 277
               <div class="signPrint" style="width: 360px;font-size:16px;">
278
-                <div style="margin-left:50px;">姓名:
278
+                <div  style="margin-left:50px;">姓名:
279 279
                   <span>{{main_collection.patient.name}} </span>
280 280
                   ({{ main_collection.patient.dialysis_no }},{{getNewAge(main_collection.patient.id_card_no)  }}岁)
281 281
                 </div>
282
-                <div class="printCell" style="display:flex;justify-content: space-around;">
283
-                  <span style="display: block;width: 50%;">
282
+                <div class="printCell" style="display:flex;" v-if="org_id ==10598 || org_id == 0">
283
+                  <div style="">透析模式:
284
+                   <span>{{getModeName(main_collection.prescription.mode_id)  }}</span>
285
+                  </div>
286
+                </div>
287
+                <div class="printCell" style="display:flex;">
288
+                  <span style="display: block;width: 45%;">
284 289
                     床号:{{ main_collection.number.number }}
285 290
                     <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
286 291
                     <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
@@ -288,14 +293,14 @@
288 293
                   </span>
289 294
                   <span style="display: block;width: 50%;">{{ printDate }}</span>
290 295
                 </div>
291
-                <div class="printCell" style="display:flex;justify-content: space-around;">
292
-                  <span style="display: block;width: 50%;">干体重:{{main_collection.assessmentbefor.dry_weight}}Kg</span>
296
+                <div class="printCell" style="display:flex;">
297
+                  <span style="display: block;width: 45%;">干体重:{{main_collection.assessmentbefor.dry_weight}}Kg</span>
293 298
                   <span style="display: block;width: 50%;" v-if="org_id!=10598">抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
294 299
                   <span style="display: block;width: 50%;" v-if="org_id==10598">抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
295 300
 
296 301
                 </div>
297
-                <div class="printCell" style="display:flex;justify-content: space-around;">
298
-                  <span style="display: block;width: 50%;">净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
302
+                <div class="printCell" style="display:flex;">
303
+                  <span style="display: block;width: 45%;">净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
299 304
 
300 305
                   <span style="display: block;width: 50%;" v-if="org_id!=10598">
301 306
                     首剂: <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
@@ -366,8 +371,8 @@
366 371
                    </span>
367 372
 
368 373
                 </div>
369
-                <div class="printCell" style="display:flex;justify-content: space-around;">
370
-                  <span style="display: block;width: 50%;">体重增加:{{ (main_collection.assessmentbefor.weight_before - assessmentAfterDislysis.weight_after).toFixed(2) }}Kg</span>
374
+                <div class="printCell" style="display:flex;">
375
+                  <span style="display: block;width: 45%;">体重增加:{{ (main_collection.assessmentbefor.weight_before - assessmentAfterDislysis.weight_after).toFixed(2) }}Kg</span>
371 376
                   <span style="display: block;width: 50%;" v-if="org_id!=10598">
372 377
                     维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
373 378
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">
@@ -443,8 +448,8 @@
443 448
                   </span>
444 449
 
445 450
                 </div>
446
-                <div class="printCell" style="display:flex;justify-content: space-around;">
447
-                  <span style="display: block;width: 50%;">处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}
451
+                <div class="printCell" style="display:flex;">
452
+                  <span style="display: block;width: 45%;">目标脱水量:{{ main_collection.prescription.target_ultrafiltration }}
448 453
                     <span v-if="$store.getters.xt_user.org.id == 10278 || $store.getters.xt_user.org.id == 10138 || $store.getters.xt_user.org.id == 10460">ml</span>
449 454
                     <span v-else>L</span>
450 455
                   </span>
@@ -522,6 +527,15 @@
522 527
                   </span>
523 528
                   </span>
524 529
                 </div>
530
+                <div class="printCell" style="display:flex;"  v-if="org_id==10598 || org_id == 0">
531
+                  <span style="display: block;width: 45%;">处方脱水量:{{main_collection.prescription.prescription_water}}
532
+                    <span v-if="$store.getters.xt_user.org.id == 10278 || $store.getters.xt_user.org.id == 10460">ml</span>
533
+                     <span v-else>L</span>
534
+                  </span> 
535
+                  <span style="display: block;width: 50%;">
536
+                    血流量:{{ main_collection.prescription.blood_flow_volume }} ml/min
537
+                  </span>
538
+                </div>
525 539
               </div>
526 540
             </div>
527 541
 
@@ -1743,6 +1757,94 @@ export default {
1743 1757
     this.websocketSend(unObj)
1744 1758
   },
1745 1759
   methods: {
1760
+    getModeName(id){
1761
+        var name = ""
1762
+        if(id == 1){
1763
+          name = "HD"
1764
+        }
1765
+        if(id == 2){
1766
+          name = "HDF"
1767
+        }
1768
+        if(id == 3){
1769
+          name = "HD+HP"
1770
+        }
1771
+        if(id == 4){
1772
+          name = "HP"
1773
+        }
1774
+        if(id == 5){
1775
+          name = "HF"
1776
+        }
1777
+        if(id == 6){
1778
+          name = "SCUF"
1779
+        }
1780
+        if(id == 7){
1781
+          name = "IUF"
1782
+        }
1783
+        if(id == 8){
1784
+          name = "HFHD"
1785
+        }
1786
+        if(id == 9){
1787
+          name = "HFHD+HP"
1788
+        }
1789
+        if(id == 10){
1790
+          name = "PHF"
1791
+        }
1792
+        if(id == 11){
1793
+          name = "HFR"
1794
+        }
1795
+        if(id == 12){
1796
+          name = "HDF+HP"
1797
+        }
1798
+        if(id == 13){
1799
+          name = "CRRT"
1800
+        }
1801
+        if(id == 14){
1802
+          name = "腹水回输"
1803
+        }
1804
+        if(id == 19){
1805
+          name = "IUF+HD"
1806
+        }
1807
+        if(id == 20){
1808
+          name = "UF"
1809
+        }
1810
+        if(id == 21){
1811
+          name = "HD+"
1812
+        }
1813
+        if(id == 22){
1814
+          name = "血浆胆红素吸附+HDF"
1815
+        }
1816
+        if(id == 23){
1817
+          name = "血浆胆红素吸附"
1818
+        }
1819
+        if(id == 24){
1820
+          name = "I-HDF"
1821
+        }
1822
+        if(id == 25){
1823
+          name = "HD高通"
1824
+        }
1825
+        if(id == 26){
1826
+          name = "CVVH"
1827
+        }
1828
+          if(id == 27){
1829
+          name = "CVVHD"
1830
+        }
1831
+          if(id == 28){
1832
+          name = "CVVHDF"
1833
+        }
1834
+          if(id == 29){
1835
+          name = "PE"
1836
+        }
1837
+          if(id == 30){
1838
+          name = "血浆胆红素吸附+HP"
1839
+        }
1840
+          if(id == 31){
1841
+          name = "HPD"
1842
+        }
1843
+          if(id == 32){
1844
+          name = "HDP"
1845
+        }
1846
+       return name
1847
+    },
1746 1848
     // 透析次数
1747 1849
     chishuclick(row){
1748 1850
       this.cishu_dialogVisible=true
@@ -2891,6 +2993,7 @@ export default {
2891 2993
           scanStyles: false
2892 2994
         })
2893 2995
       },
2996
+      // 打印上机单弹窗数据源
2894 2997
     getInitPrintData(){
2895 2998
       const loading = this.$loading({
2896 2999
         lock: true,
@@ -2912,7 +3015,7 @@ export default {
2912 3015
           this.printList = list
2913 3016
           this.assessmentAfterDislysis = assessmentAfterDislysis
2914 3017
 
2915
-          if(this.org_id == 0 || this.org_id ==10469){
3018
+          if(this.org_id ==10469){
2916 3019
             this.centerDialogVisible = true
2917 3020
           }else{
2918 3021
             this.startVisibility = true
@@ -3135,6 +3238,7 @@ export default {
3135 3238
     }
3136 3239
 
3137 3240
   },
3241
+ 
3138 3242
   watch:{
3139 3243
     time_value:{
3140 3244
       handler(newValue,oldValue){
@@ -3393,4 +3497,5 @@ export default {
3393 3497
       }
3394 3498
     }
3395 3499
 }
3500
+
3396 3501
 </style>

+ 70 - 3
src/xt_pages/dialysis/hisLongSignPrint.vue View File

@@ -11,8 +11,9 @@
11 11
         <div class="app-container" style="background-color: white;" v-show="show">
12 12
             <div id="dialysisTable">
13 13
                 <div v-for="(item, index) in list" :key="index">
14
-                    <div class="signPrint" style="page-break-after: always;" v-for="(it,i) in item.his_advice_list">
15
-                       
14
+                   <div v-if="org_id!=0&& org_id!=10571">
15
+                        <div class="signPrint" style="page-break-after: always;" v-for="(it,i) in item.his_advice_list">
16
+                        
16 17
                         <div>分区/床位号:{{item.device_number.zone.name}}/{{item.device_number.number}}</div>  
17 18
                         <div>姓名:{{item.patient.name}}</div>  
18 19
 
@@ -28,6 +29,51 @@
28 29
                         </div>
29 30
                         <div>打印时间:{{$route.query.selected_date}}</div> 
30 31
                     </div>  
32
+                   </div>
33
+
34
+                   <div v-if="org_id ==0 || org_id ==10571">
35
+                    <span v-if="item.his_doctor_advice.length == 0">
36
+                       
37
+                       <div class="signPrint" style="page-break-after: always;" v-for="(it,i) in item.his_advice_list">
38
+                        
39
+                        <div>分区/床位号:{{item.device_number.zone.name}}/{{item.device_number.number}}</div>  
40
+                        <div>姓名:{{item.patient.name}}</div>  
41
+
42
+                        <div>
43
+                            <div>医嘱内容:{{ it.advice_name }} 
44
+                            </div>  
45
+                            <div>
46
+                            规格:{{getSpecialName(it.drug_id)}} 
47
+                            </div>  
48
+                            <div>单次用量:   {{it.single_dose}}{{ it.single_dose_unit }}</div>  
49
+                            <div>执行频率:{{it.execution_frequency}}</div>  
50
+                            <div>给药途径:{{it.delivery_way}}</div>  
51
+                        </div>
52
+                        <div>打印时间:{{$route.query.selected_date}}</div> 
53
+                      </div>  
54
+
55
+                    </span>
56
+
57
+                    <span v-if="item.his_doctor_advice.length > 0">
58
+                       <div class="signPrint" style="page-break-after: always;" v-for="(it,i) in item.his_doctor_advice">
59
+                        <div>分区/床位号:{{item.device_number.zone.name}}/{{item.device_number.number}}</div>  
60
+                        <div>姓名:{{item.patient.name}}</div>  
61
+
62
+                        <div>
63
+                            <div>医嘱内容:{{ it.advice_name }} 
64
+                            </div>  
65
+                            <div>
66
+                            规格:{{getSpecialName(it.drug_id)}} 
67
+                            </div>  
68
+                            <div>单次用量:   {{it.single_dose}}{{ it.single_dose_unit }}</div>  
69
+                            <div>执行频率:{{it.execution_frequency}}</div>  
70
+                            <div>给药途径:{{it.delivery_way}}</div>  
71
+                        </div>
72
+                        <div>打印时间:{{$route.query.selected_date}}</div> 
73
+                      </div>  
74
+                    </span>
75
+                   </div>
76
+                 
31 77
                 </div>
32 78
             </div>
33 79
         </div>
@@ -244,8 +290,8 @@ export default {
244 290
                 // console.log("寄哪里地方",this.$route.query.keywords)
245 291
                for(let i=0;i<list.length;i++){
246 292
                  list[i].new_arr = []
293
+                 list[i].new_arr_one = []
247 294
                  for(let j=0;j<list[i].his_advice_list.length;j++){
248
-                    console.log("iiiiii",list[i].his_advice_list[j].advice_name.indexOf(this.$route.query.keywords))
249 295
                     if(list[i].his_advice_list[j].advice_name.indexOf(this.$route.query.keywords)!=-1){
250 296
                        list[i].new_arr.push(list[i].his_advice_list[j])
251 297
                     }
@@ -258,6 +304,27 @@ export default {
258 304
                 }
259 305
             }
260 306
           }
307
+
308
+            if(this.$route.query.keywords!=""){
309
+               for(let i=0;i<list.length;i++){
310
+                 for(let j=0;j<list[i].his_doctor_advice.length;j++){
311
+                    if(list[i].his_doctor_advice[j].advice_name.indexOf(this.$route.query.keywords)!=-1){
312
+                       list[i].new_arr_one.push(list[i].his_doctor_advice[j])
313
+                    }
314
+                 }
315
+               }
316
+            
317
+             if(list!=null && list.length>0){
318
+                for(let i=0;i<list.length;i++){
319
+                    list[i].his_doctor_advice =[]
320
+                    list[i].his_doctor_advice = list[i].new_arr_one 
321
+                }
322
+              }
323
+            }
324
+
325
+          
326
+
327
+         
261 328
          
262 329
         }
263 330
         

+ 6 - 19
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyNine.vue View File

@@ -852,8 +852,7 @@
852 852
                         {{
853 853
                           predialysis.weight_before
854 854
                             ? parseFloat(
855
-                                predialysis.weight_before -
856
-                                  predialysis.additional_weight
855
+                                predialysis.weight_before
857 856
                               ).toFixed(1)
858 857
                             : "/"
859 858
                         }}
@@ -1143,7 +1142,7 @@
1143 1142
                       </tr>
1144 1143
                       <tr>
1145 1144
                         <td width="60">时间</td>
1146
-                        <td width="60">体温<br />(℃)</td>
1145
+                        <td width="60" v-if="org_id!=10480 && org_id!=0">体温<br />(℃)</td>
1147 1146
                         <td width="70">血压<br />(mmHg)</td>
1148 1147
                         <td width="50">脉搏<br />(次/分)</td>
1149 1148
                         <td width="50">呼吸<br />(次/分)</td>
@@ -1181,7 +1180,7 @@
1181 1180
                       </tr>
1182 1181
                       <tr v-for="(monitor, monindex) in monitors" :key="monindex">
1183 1182
                         <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
1184
-                        <td>{{ monitor.temperature ? monitor.temperature : "" }}</td>
1183
+                        <td v-if="org_id!=0&&org_id!=10480">{{ monitor.temperature ? monitor.temperature : "" }}</td>
1185 1184
                         <td>{{monitor.systolic_blood_pressure? monitor.systolic_blood_pressure + "/" : ""}}
1186 1185
                             {{monitor.diastolic_blood_pressure? monitor.diastolic_blood_pressure: ""}}</td>
1187 1186
                         <td>{{monitor.pulse_frequency? monitor.pulse_frequency: ""}}</td>
@@ -1204,14 +1203,7 @@
1204 1203
                                 : ""
1205 1204
                             }}
1206 1205
                           </span>
1207
-                          <span
1208
-                            v-if="
1209
-                              dialysisOrder &&
1210
-                              monitor.operate_time <= dialysisOrder.end_time &&
1211
-                              dialysisOrder &&
1212
-                              monitor.operate_time >= dialysisOrder.start_time
1213
-                            "
1214
-                          >
1206
+                          <span>
1215 1207
                             {{
1216 1208
                               monitor.transmembrane_pressure
1217 1209
                                 ? monitor.transmembrane_pressure
@@ -1355,7 +1347,7 @@
1355 1347
                       >
1356 1348
                         <td></td>
1357 1349
                         <td></td>
1358
-                        <td></td>
1350
+                        <td v-if="org_id!=0 && org_id!=10480"></td>
1359 1351
                         <td></td>
1360 1352
                         <td></td>
1361 1353
                         <td></td>
@@ -1931,12 +1923,7 @@
1931 1923
                         style="width: 70px; text-align: center"
1932 1924
                       >
1933 1925
                         {{
1934
-                          afterdialysis.weight_after
1935
-                            ? parseFloat(
1936
-                                afterdialysis.weight_after -
1937
-                                  afterdialysis.additional_weight
1938
-                              ).toFixed(1)
1939
-                            : "/"
1926
+                          afterdialysis.weight_after? parseFloat(afterdialysis.weight_after).toFixed(1): "/"
1940 1927
                         }}
1941 1928
                       </div>
1942 1929
                       kg

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue View File

@@ -660,11 +660,11 @@
660 660
                     </div>
661 661
                   </td>
662 662
                   <td width="30">h</td>
663
-                  <td width="10">无</td>
663
+                  <!-- <td width="10">无</td>
664 664
                   <td width="30">
665 665
                     <label-box :isChecked="prescription.oxygen_uptake ==2 ? true : false"></label-box>
666 666
                     &nbsp;
667
-                  </td>
667
+                  </td> -->
668 668
                   <td></td>
669 669
                   <td></td>
670 670
                 </tr>

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSeventythree.vue View File

@@ -1086,8 +1086,8 @@
1086 1086
                                 "
1087 1087
                                 >【开始透析】引血{{ dialysisOrder.blood_drawing }} ml/min
1088 1088
                                 </template>
1089
-
1090
-                              {{ monitor.dispose }} {{ monitor.end }}  &nbsp;
1089
+                              
1090
+                                {{ monitor.dispose }} {{ monitor.end }}  &nbsp;
1091 1091
                               &nbsp;
1092 1092
                             </span>
1093 1093
                           </div>

+ 60 - 15
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

@@ -897,13 +897,20 @@
897 897
                         class="under_line"
898 898
                         style="width: 70px; text-align: center"
899 899
                       >
900
-                      <span v-if="org_id ==10206"> {{
900
+                      <span v-if="org_id ==10206 "> {{
901 901
                           prescription.replacement_total
902 902
                             ? prescription.replacement_total
903 903
                             : "/"
904 904
                         }}
905 905
                         </span>
906
-                        <span v-if="org_id!=10206"> {{
906
+
907
+                        <span v-if="org_id ==10510 "> {{
908
+                          afterdialysis.displace_liqui_value
909
+                            ? afterdialysis.displace_liqui_value
910
+                            : "/"
911
+                        }}
912
+                        </span>
913
+                        <span v-if="org_id!=10206&& org_id!=10510"> {{
907 914
                           prescription.displace_liqui_value
908 915
                             ? prescription.displace_liqui_value
909 916
                             : "/"
@@ -929,7 +936,15 @@
929 936
                             : "/"
930 937
                         }}
931 938
                         </span>
932
-                        <span v-if="org_id!=10206"> {{
939
+
940
+                        <span v-if="org_id ==10510"> {{
941
+                          afterdialysis.displace_liqui_value
942
+                            ? afterdialysis.displace_liqui_value
943
+                            : "/"
944
+                        }}
945
+                        </span>
946
+                        
947
+                        <span v-if="org_id!=10206 && org_id!=10510"> {{
933 948
                           prescription.displace_liqui_value
934 949
                             ? prescription.displace_liqui_value
935 950
                             : "/"
@@ -1128,14 +1143,16 @@
1128 1143
                         class="under_line"
1129 1144
                         style="width: 100px; text-align: center"
1130 1145
                       >
1131
-                        <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956 || org_id == 10440 || org_id == 0 || org_id == 10469 || org_id == 10478 || org_id == 10490 || org_id ==10495 || org_id == 10460 || org_id==10585 || org_id ==10567 || org_id ==10598 || org_id ==10624">{{
1146
+                        <!-- <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956 || org_id == 10440 || org_id == 0 || org_id == 10469 || org_id == 10478 || org_id == 10490 || org_id ==10495 || org_id == 10460 || org_id==10585 || org_id ==10567 || org_id ==10598 || org_id ==10624">{{
1132 1147
                           lastafterdialysis.weight_after
1133 1148
                         }}</span>
1134 1149
                         <span v-if="org_id != 10290 && org_id != 10318  && org_id!= 10217 && org_id!=10188 && org_id!=9956 && org_id != 10440 && org_id!=0 && org_id!=10469 && org_id!=10478 && org_id!=10490 && org_id!=10495 && org_id!=10460 && org_id!=10585 && org_id!=10567 && org_id!=10598&&org_id!=10624">{{
1135 1150
                           predialysis.weight_after_last_transparency
1136 1151
                             ? predialysis.weight_after_last_transparency
1137 1152
                             : "未称重"
1138
-                        }}</span>
1153
+                        }}</span> -->
1154
+
1155
+                        {{lastafterdialysis.weight_after?lastafterdialysis.weight_after:"未称重"}}
1139 1156
                        
1140 1157
                       </div>
1141 1158
                       kg
@@ -1688,7 +1705,7 @@
1688 1705
                           <span v-if="org_id==10598">(L)</span> 
1689 1706
                         </td>
1690 1707
                         <td width="50" v-if="org_id == 3877 || org_id == 0 || org_id == 10449">滤前压(mmHg)</td>
1691
-                        <td width="50" v-if="org_id == 9538 || org_id ==10600 || org_id ==10629">KT/V</td>
1708
+                        <td width="50" v-if="org_id == 9538 || org_id ==10600 || org_id ==10629 || org_id ==10510">KT/V</td>
1692 1709
                         <td width="50" v-if="org_id == 9919">在线尿素监测</td>
1693 1710
                         <td width="50" v-if="org_id == 9671">在线尿素监测</td>
1694 1711
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id== 9671">血容量<br />(L)</td>
@@ -1794,7 +1811,7 @@
1794 1811
                         <td v-if="org_id == 10375 || org_id == 0"><br />
1795 1812
                           {{ monitor.replacement_rate? monitor.replacement_rate: ""}}
1796 1813
                         </td>
1797
-                        <td v-if="org_id!=10600">
1814
+                        <td v-if="org_id!=10600 && org_id!=10644">
1798 1815
                           <span v-if="org_id!=9671 && org_id!=10440 && org_id!=10617"> {{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: ""}}</span>
1799 1816
                           <span v-if="org_id==9671 || org_id==10440 || org_id ==10617">
1800 1817
                               <span v-if="org_id ==10617 && monindex == 0">{{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: "/"}}</span>
@@ -1803,7 +1820,7 @@
1803 1820
                               <span v-if="org_id !=10617">{{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: "0"}}</span> 
1804 1821
                            </span>
1805 1822
                         </td>
1806
-                        <td width="50" v-if="org_id == 10600 || org_id == 10598"><br/> {{ monitor.ultrafiltration_rate? monitor.ultrafiltration_rate: "0"}}</td>
1823
+                        <td width="50" v-if="org_id == 10600 || org_id == 10598 || org_id==10644"><br/> {{ monitor.ultrafiltration_rate? monitor.ultrafiltration_rate: "0"}}</td>
1807 1824
                         <td
1808 1825
                           v-if="
1809 1826
                             (prescription.mode_id == 2 ||
@@ -1822,7 +1839,7 @@
1822 1839
                           </span>
1823 1840
                         </td>
1824 1841
                         <td width="50" v-if="org_id == 3877 || org_id == 0 || org_id == 10449">{{ monitor.filter_pressure?monitor.filter_pressure:""}}</td>
1825
-                        <td width="50" v-if="org_id == 9919 || org_id == 9538 || org_id == 9671 || org_id ==10600 || org_id ==10629">
1842
+                        <td width="50" v-if="org_id == 9919 || org_id == 9538 || org_id == 9671 || org_id ==10600 || org_id ==10629 || org_id ==10510">
1826 1843
                           {{ monitor.ktv?monitor.ktv:"" }}
1827 1844
                         </td>
1828 1845
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id == 9671">
@@ -1954,7 +1971,7 @@
1954 1971
                   </table>
1955 1972
                 </td>
1956 1973
               </tr>
1957
-              <tr v-if="org_id!=0&& org_id!=10206">
1974
+              <tr v-if="org_id!=10206">
1958 1975
                 <td style="padding: 0; position: relative" colspan="2">
1959 1976
                   <table class="inside_table">
1960 1977
                     <tbody>
@@ -2190,7 +2207,7 @@
2190 2207
               </tr>
2191 2208
 
2192 2209
 
2193
-              <tr v-if="org_id==0 || org_id ==10206">
2210
+              <tr v-if="org_id ==10206">
2194 2211
                 <td style="padding: 0; position: relative" colspan="2">
2195 2212
                   <table class="inside_table">
2196 2213
                     <tbody>
@@ -2538,7 +2555,7 @@
2538 2555
               </div>
2539 2556
              
2540 2557
             </div>
2541
-            <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10460">
2558
+            <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10460&&org_id!=10624">
2542 2559
               诊断:
2543 2560
               <div
2544 2561
                 class="under_line"
@@ -2914,11 +2931,16 @@
2914 2931
                         class="under_line"
2915 2932
                         style="width: 70px; text-align: center"
2916 2933
                       >
2917
-                        {{
2934
+                        <span v-if="org_id!=10598">{{
2918 2935
                           afterdialysis.weight_loss
2919 2936
                             ? afterdialysis.weight_loss
2920 2937
                             : "/"
2921
-                        }}
2938
+                           }}
2939
+                         </span>
2940
+                         <span v-if="org_id ==10598"> 
2941
+                          {{(predialysis.weight_before - afterdialysis.weight_after).toFixed(2)}}
2942
+                         </span>
2943
+                      
2922 2944
                       </div>
2923 2945
                       kg
2924 2946
                     </div>
@@ -4710,6 +4732,29 @@ export default {
4710 4732
 
4711 4733
 
4712 4734
         console.log("RESWOOWOWWOOW",response.data.data.doctorAdevieInfo)
4735
+
4736
+        //华池
4737
+        if(this.org_id == 0 || this.org_id == 10440){
4738
+           var parint_id =0
4739
+           var newArr = []
4740
+           if(this.doctor_advices!=null&&this.doctor_advices.length>0){
4741
+               
4742
+             for(let i=0;i<this.doctor_advices.length;i++){
4743
+               if(this.doctor_advices[i].advice_name.indexOf("低分子")!=-1){
4744
+                 parint_id = this.doctor_advices[i].id
4745
+               }
4746
+             }
4747
+
4748
+             for(let i=0;i<this.doctor_advices.length;i++){
4749
+               if(this.doctor_advices[i].id != parint_id && this.doctor_advices[i].parent_id!=parint_id){
4750
+                  newArr.push(this.doctor_advices[i])
4751
+               }
4752
+             }
4753
+             this.doctor_advices =[]
4754
+             this.doctor_advices = newArr
4755
+           }
4756
+        }
4757
+
4713 4758
         if(this.org_id ==10515  || this.org_id == 10510 || this.org_id ==10567 || this.org_id == 10489){
4714 4759
           if(response.data.data.doctorAdevieInfo!=null && response.data.data.doctorAdevieInfo.length>0){
4715 4760
 
@@ -4782,7 +4827,7 @@ export default {
4782 4827
         console.log("时间我我我哦我我",this.doctor_advices)
4783 4828
         
4784 4829
         //针对内蒙古阿拉善
4785
-        if(this.org_id == 0 || this.org_id ==10206){
4830
+        if(this.org_id ==10206){
4786 4831
            
4787 4832
           if(this.doctor_advices!=null && this.doctor_advices.length > 0){
4788 4833
              

+ 14 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderSixty.vue View File

@@ -1962,6 +1962,20 @@
1962 1962
                       ml
1963 1963
                     </div>
1964 1964
                   </div>
1965
+                  <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
1966
+                    透析血容量:
1967
+                      <div
1968
+                        class="under_line"
1969
+                        style="width: 70px; text-align: center"
1970
+                      >
1971
+                        {{
1972
+                          afterdialysis.accumulated_blood_volume
1973
+                            ? afterdialysis.accumulated_blood_volume
1974
+                            : "/"
1975
+                        }}
1976
+                        L
1977
+                   </div>
1978
+                  </div>
1965 1979
                   <div
1966 1980
                     class="row"
1967 1981
                     style="padding: 2px 0; line-height: 23px; display: flex"

+ 81 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue View File

@@ -767,6 +767,87 @@
767 767
                   </tbody>
768 768
                 </table> -->
769 769
 
770
+                <table class="table-box">
771
+                          <tbody>
772
+                            <tr>
773
+                              <td width="40">抗凝方式:</td>
774
+                              <td width="120">
775
+                                <div class="under-line">
776
+                                  <span v-if="prescription.anticoagulant == ''">&nbsp;/</span>
777
+                                  <span v-if="prescription.anticoagulant == '无肝素'">&nbsp;无肝素</span>
778
+                                  <span v-if="prescription.anticoagulant == '普通肝素'">&nbsp;普通肝素</span>
779
+                                  <span v-if="prescription.anticoagulant == '低分子肝素'">&nbsp;低分子肝素</span>
780
+                                  <span v-if="prescription.anticoagulant == '阿加曲班'">&nbsp;阿加曲班</span>
781
+                                  <span v-if="prescription.anticoagulant == '枸橼酸钠'">&nbsp;枸橼酸钠</span>
782
+                                  <span v-if="prescription.anticoagulant == '低分子肝素'">&nbsp;低分子肝素</span>
783
+                                  <span v-if="prescription.anticoagulant == '低分子量肝素钙'">&nbsp;低分子量肝素钙</span>
784
+                                  <span v-if="prescription.anticoagulant == '低分子肝素钙'">&nbsp;低分子肝素钙</span>
785
+                                  <span v-if="prescription.anticoagulant == '低分子肝素钠'">&nbsp;低分子肝素钠</span>
786
+                                  <span v-if="prescription.anticoagulant == '依诺肝素'">&nbsp;依诺肝素</span>
787
+                                  <span v-if="prescription.anticoagulant == '达肝素'">&nbsp;达肝素</span>
788
+                                  <span v-if="prescription.anticoagulant == '体外抗凝'">&nbsp;体外抗凝</span>
789
+                                  <span v-if="prescription.anticoagulant == '那屈肝素'">&nbsp;那屈肝素</span>
790
+                                  <span v-if="prescription.anticoagulant == '无抗凝剂'">&nbsp;无抗凝剂</span>
791
+                                  <span v-if="prescription.anticoagulant == '那屈肝素钙'">&nbsp;那屈肝素钙</span>
792
+                                  <span v-if="prescription.anticoagulant == '肝素钙注射液'">&nbsp;肝素钙注射液</span>
793
+                                  <span v-if="prescription.anticoagulant == '甲磺酸萘莫司他'">&nbsp;</span>
794
+                                  <span v-if="prescription.anticoagulant == '肝素钠'">&nbsp;肝素钠</span>
795
+                                </div>
796
+                              </td>
797
+                             
798
+
799
+                              <td width="50">首剂量</td>
800
+                              <td width="60">
801
+                                {{prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : ""}}
802
+                                    <span v-if="prescription.anticoagulant == '枸橼酸钠'">iu</span>
803
+                                    <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu</span>
804
+                                    <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span>
805
+                                    <span v-if="prescription.anticoagulant == '依诺肝素'">iu</span>
806
+                                    <span v-if="prescription.anticoagulant == '阿加曲班'">mg</span>
807
+                                    <span v-if="prescription.anticoagulant == '低分子肝素'">iu</span>
808
+                                    <span v-if="prescription.anticoagulant == '普通肝素'">mg</span>
809
+                                    <span v-if="prescription.anticoagulant == '无肝素'">mg</span>
810
+                                    <span v-if="prescription.anticoagulant == '甲磺酸萘莫司他'">mg</span>
811
+                                    <span v-if="prescription.anticoagulant == '低分子量肝素钙'">mg</span>
812
+                                    <span v-if="prescription.anticoagulant == '肝素钠'">mg</span>
813
+                              </td>
814
+
815
+                              <td width="30">维持</td>
816
+                              <td width="60">
817
+                                {{prescription.anticoagulant_weichi ? prescription.anticoagulant_weichi : ""}}
818
+                                <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu</span>
819
+                                <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span>
820
+                                <span v-if="prescription.anticoagulant == '依诺肝素'">iu</span>
821
+                                <span v-if="prescription.anticoagulant == '枸橼酸钠'">ml/h</span>
822
+                                <span v-if="prescription.anticoagulant == '阿加曲班'">mg/h</span>
823
+                                <span v-if="prescription.anticoagulant == '低分子肝素'">iu/h</span>
824
+                                <span v-if="prescription.anticoagulant == '普通肝素'">mg/h</span>
825
+                                <span v-if="prescription.anticoagulant == '无肝素'">mg/h</span>
826
+                                <span v-if="prescription.anticoagulant == '甲磺酸萘莫司他'">mg/h</span>
827
+                                <span v-if="prescription.anticoagulant == '低分子量肝素钙'">mg/h</span>
828
+                                <span v-if="prescription.anticoagulant == '肝素钠'">mg/h</span>
829
+                              </td>
830
+
831
+                              <td width="30">总量</td>
832
+                              <td width="60">
833
+                                {{prescription.anticoagulant_zongliang ?prescription.anticoagulant_zongliang : ""}}
834
+                                <span v-if="prescription.anticoagulant == '枸橼酸钠'">iu</span>
835
+                                  <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu</span>
836
+                                  <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span>
837
+                                  <span v-if="prescription.anticoagulant == '依诺肝素'">iu</span>
838
+                                  <span v-if="prescription.anticoagulant == '阿加曲班'">mg</span>
839
+                                  <span v-if="prescription.anticoagulant == '低分子肝素'">iu</span>
840
+                                  <span v-if="prescription.anticoagulant == '普通肝素'">mg</span>
841
+                                  <span v-if="prescription.anticoagulant == '无肝素'">mg</span>
842
+                                  <span v-if="prescription.anticoagulant == '甲磺酸萘莫司他'">mg</span>
843
+                                  <span v-if="prescription.anticoagulant == '低分子量肝素钙'">mg</span>
844
+                                  <span v-if="prescription.anticoagulant == '肝素钠'">mg</span>
845
+                              </td>
846
+                             
847
+                            </tr>
848
+                          </tbody>
849
+                        </table>
850
+
770 851
                 <table class="table-box">
771 852
                   <tbody>
772 853
                     <tr>

+ 12 - 12
src/xt_pages/dialysis/template/DialysisPrintOrdersixtySeven.vue View File

@@ -85,24 +85,24 @@
85 85
               </tr>
86 86
               <tr>
87 87
                 <td colspan="4">
88
-                  <span style="width: 14%;">血管通路{{ predialysis.blood_access_part_opera_name }}</span>
89
-                  <span style="width: 14%;">部位:{{ predialysis.blood_access_part_id }}</span>
90
-                  <span style="width: 14%;">通路评估:
91
-                    内瘘:
92
-                     <span v-if="predialysis.internal_fistula.indexOf('自体内瘘') >-1">自体内瘘</span>
93
-                     <span v-if="predialysis.internal_fistula.indexOf('震颤-存在') >-1">震颤-存在</span>
94
-                     <span v-if="predialysis.internal_fistula.indexOf('震颤-减弱') >-1">震颤-减弱</span>
95
-                     <span v-if="predialysis.internal_fistula.indexOf('震颤-无') >-1">震颤-无</span>
96
-
97
-                  </span>
88
+                  <span style="width: 14%;">血管通路:{{ predialysis.blood_access_part_opera_name }}</span>
89
+                  <span style="width: 14%;display: inline-block;border-left: 1px solid black;padding-left: 5px;">部位:{{ predialysis.blood_access_part_id }}</span>
90
+                  <div style="width: 20%;display: inline-block;border-left: 1px solid black;padding-left: 5px;">
91
+                    <span>通路评估:内瘘:
92
+                      <span v-if="predialysis.internal_fistula.indexOf('自体内瘘') >-1">自体内瘘</span>
93
+                      <span v-if="predialysis.internal_fistula.indexOf('震颤-存在') >-1">震颤-存在</span>
94
+                      <span v-if="predialysis.internal_fistula.indexOf('震颤-减弱') >-1">震颤-减弱</span>
95
+                      <span v-if="predialysis.internal_fistula.indexOf('震颤-无') >-1">震颤-无</span>
96
+                    </span>
97
+                  </div>
98 98
                   <!-- <span style="width: 14%;">震颤:</span>
99 99
                   <span style="width: 14%;">外观:</span> -->
100
-                  <span style="width: 14%;">置换方式:
100
+                  <span style="width: 14%;display: inline-block;border-left: 1px solid black;padding-left: 5px;">置换方式:
101 101
                     {{
102 102
                       getDisplaceLiquiPart(prescription.displace_liqui_part)
103 103
                     }}
104 104
                   </span>
105
-                  <span style="width: 14%;">置换总量:
105
+                  <span style="width: 14%;display: inline-block;border-left: 1px solid black;padding-left: 5px;">置换总量:
106 106
                     {{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "/" }}L
107 107
                   </span>
108 108
                 </td>

+ 7 - 3
src/xt_pages/hospitalStation/invoicePrint.vue View File

@@ -19,7 +19,8 @@
19 19
             org_id != 10265 &&
20 20
             org_id != 4 &&
21 21
             org_id != 0 &&
22
-            org_id != 9675
22
+            org_id != 9675 &&
23
+            org_id != 10489
23 24
           "
24 25
           :paramsObj="invoiceParams"
25 26
         ></printOne>
@@ -28,9 +29,11 @@
28 29
           :paramsObj="invoiceParams"
29 30
         ></printTwo>
30 31
         <printThree
31
-          v-if="org_id == 10265 || org_id == 4 || org_id == 9675 || org_id == 0"
32
+          v-if="org_id == 10265 || org_id == 4 || org_id == 9675"
32 33
           :paramsObj="invoiceParams"
33 34
         ></printThree>
35
+        <Printfour v-if="org_id == 10489 || org_id == 0" :paramsObj="invoiceParams">
36
+        </Printfour>
34 37
 <!--        <print-night v-if="org_id == 10210 || org_id == 0"-->
35 38
 <!--                  :paramsObj="invoiceParams"></print-night>-->
36 39
       </div>
@@ -42,13 +45,14 @@
42 45
 import printOne from "./invoiceTemplate/printOne";
43 46
 import printTwo from "./invoiceTemplate/printTwo";
44 47
 import printThree from "./invoiceTemplate/printThree";
45
-// import PrintNight from "./invoiceTemplate/printNight";
48
+import Printfour from "./invoiceTemplate/printfour";
46 49
 export default {
47 50
   name: "invoicePrint",
48 51
   components: {
49 52
     printOne,
50 53
     printTwo,
51 54
     printThree,
55
+    Printfour,
52 56
   },
53 57
   props: {
54 58
     invoiceParams: Object,

+ 294 - 0
src/xt_pages/hospitalStation/invoiceTemplate/printfour.vue View File

@@ -0,0 +1,294 @@
1
+<template>
2
+  <div id='invoice-print' style="position: relative;">
3
+      <div>
4
+        <span>个人编号:</span>
5
+      </div>
6
+      <div style="">
7
+        <div style="text-align: center;margin-bottom: 10px;">武穴市中医医院</div>
8
+          <!-- <div style="position: absolute;top:70px;left:70px;">{{ list.order_number }}</div> -->
9
+          <!-- <div>{{ list.id_card_no }}</div> -->
10
+      </div>
11
+      <div style="display:flex;">
12
+          <div style="flex: 1;">医疗人员类别:</div>
13
+          <div style="flex: 1;">支付类别:城乡居民基本</div>
14
+          <div style="flex: 1;">医疗照顾人员:</div>
15
+      </div>
16
+      <div style="display:flex;margin: 10px 0;">
17
+          <div style="flex: 1;">{{ paramsObj.name }}</div>
18
+          <div style="flex: 1;"></div>
19
+          <div style="flex: 1;"></div>
20
+      </div>
21
+      <div style="display:flex;">
22
+          <div style="flex: 1;">{{in_hosptial_time?in_hosptial_time.split(' ')[0]:''}}</div>
23
+          <div style="flex: 1;">{{out_hosptial_time?out_hosptial_time.split(' ')[0]:''}}</div>
24
+          <div style="flex: 1;"></div>
25
+      </div>
26
+      <div style="display:flex;margin-top: 30px;">
27
+        <div style="flex: 1;">床位费</div>
28
+        <div style="flex: 1;">{{ list.bedCostTotal }}</div>
29
+        <div style="flex: 1;">治疗费</div>
30
+        <div style="flex: 1;">{{ list.treatCostTotal}}</div>
31
+        <div style="flex: 1;">西药费</div>
32
+        <div style="flex: 1;">{{ list.westernMedicineCostTotal }}</div>
33
+        <div style="flex: 1;">
34
+          <span >草药费</span>
35
+        </div>
36
+        <div style="flex: 1;">
37
+          <span >
38
+            0
39
+          </span>
40
+        </div>
41
+      </div>
42
+      <div style="display:flex;margin-top: 10px;">
43
+        <div style="flex: 1;">
44
+          <span >护理费</span>
45
+        </div>
46
+        <div style="flex: 1;">
47
+          <span>
48
+            0
49
+          </span>
50
+        </div>
51
+        <div style="flex: 1;">中成药</div>
52
+        <div style="flex: 1;">{{ list.chineseTraditionalMedicineCostTotal }}</div>
53
+        <div style="flex: 1;">化验费</div>
54
+        <div style="flex: 1;">{{ list.laboratoryCostTotal }}</div>
55
+        <div style="flex: 1;">手术费</div>
56
+        <div style="flex: 1;">{{ list.operationCostTotal }}</div>
57
+      </div>
58
+      <div style="display:flex;margin-top: 10px;">
59
+        <div style="flex: 1;">检查费</div>
60
+        <div style="flex: 1;">{{ list.checkCostTotal }}</div>
61
+        <div style="flex: 1;">材料费</div>
62
+        <div style="flex: 1;">{{ list.materialCostTotal}}</div>
63
+        <div style="flex: 1;">其他费</div>
64
+        <div style="flex: 1;">{{ list.otherCostTotal }}</div>
65
+        <div style="flex: 1;">
66
+        </div>
67
+        <div style="flex: 1;">
68
+        </div>
69
+      </div>
70
+      <div style="position: absolute;top:260px;left:540px">
71
+        {{ totalPrice }}
72
+      </div>
73
+
74
+      <div style="position: absolute;top:290px;width: 100%;">
75
+        <div style="display: flex;">
76
+          <div style="flex: 1;"> 费用总额:</div>
77
+          <div style="flex: 1;">{{totalPrice?totalPrice:'0'}}</div>
78
+          <div style="flex: 1;">基本医疗统筹范围:</div>
79
+          <div style="flex: 1;"> {{list.order.hifp_pay?list.order.hifp_pay:'0'}}</div>
80
+          <div style="flex: 1;">自费费用:</div>
81
+          <div style="flex: 1;">{{ list.order.psn_cash_pay?list.order.psn_cash_pay:'0' }}</div>
82
+          <div style="flex: 1;">医院优惠:</div>
83
+          <div style="flex: 1;">0</div>
84
+        </div>
85
+      </div>
86
+      <div style="position: absolute;top:320px;width: 100%;">
87
+        <div style="display: flex;">
88
+          <div style="flex: 1;">报销总额:</div>
89
+          <div style="flex: 1;">{{ list.order.fund_pay_sumamt ? list.order.fund_pay_sumamt :'0'}}</div>
90
+          <div style="flex: 1;">统筹支付:</div>
91
+          <div style="flex: 1;"> {{list.order.hifp_pay?list.order.hifp_pay:'0'}}</div>
92
+          <div style="flex: 1;">公务员补助:</div>
93
+          <div style="flex: 1;">{{ list.order.cvlserv_pay?list.order.cvlserv_pay:'0' }}</div>
94
+          <div style="flex: 1;">居民大病支付:</div>
95
+          <div style="flex: 1;">{{list.order.hifmi_pay?list.order.hifmi_pay:'0' }}</div>
96
+        </div>
97
+      </div>
98
+
99
+      <div style="position: absolute;top:350px;width: 100%;">
100
+        <div style="display: flex;">
101
+          <div style="flex: 1;">职工大病支付:</div>
102
+          <div style="flex: 1;">{{list.order.hifob_pay?list.order.hifob_pay:'0'}}</div>
103
+          <div style="flex: 1;">医院承担:</div>
104
+          <div style="flex: 1;"> {{list.order.hosp_part_amt ? list.order.hosp_part_amt :'0'}}</div>
105
+          <div style="flex: 1;">医疗救助:</div>
106
+          <div style="flex: 1;">{{ list.order.maf_pay?list.order.maf_pay:'0' }}</div>
107
+          <div style="flex: 1;">企业补充:</div>
108
+          <div style="flex: 1;">{{list.order.hifes_pay ? list.order.hifes_pay :'0'}}</div>
109
+        </div>
110
+      </div>
111
+
112
+      <div style="position: absolute;top:380px;width: 100%;">
113
+        <div style="display: flex;">
114
+          <div style="flex: 1;">其他资金:</div>
115
+          <div style="flex: 1;">{{list.order.oth_pay ? list.order.oth_pay :'0' }}</div>
116
+          <div style="flex: 1;">应付费用:</div>
117
+          <div style="flex: 1;">{{list.order.psn_cash_pay?list.order.psn_cash_pay : '0'}}</div>
118
+          <div style="flex: 1;">预缴金:</div>
119
+          <div style="flex: 1;">{{(parseFloat(pre_pay_money) + parseFloat(list.order.decimal)).toFixed(2) }}</div>
120
+          <div style="flex: 1;">个人账户支付:</div>
121
+          <div style="flex: 1;">{{list.order.acct_pay?list.order.acct_pay:'0' }}</div>
122
+        </div>
123
+      </div>
124
+
125
+      <div style="position: absolute;top:410px;width: 100%;">
126
+        <div style="display: flex;">
127
+          <div style="flex: 1;">支付后账户余额:</div>
128
+          <div style="flex: 1;">{{list.order.balc ? list.order.balc :'0'}}</div>
129
+          <div style="flex: 1;">应收:</div>
130
+          <div style="flex: 1;">{{list.order.psn_cash_pay?list.order.psn_cash_pay : '0'}}</div>
131
+          <div style="flex: 1;">优抚账户:</div>
132
+          <div style="flex: 1;">0</div>
133
+          <div style="flex: 1;">优抚支付:</div>
134
+          <div style="flex: 1;">0</div>
135
+        </div>
136
+      </div>
137
+  </div>
138
+</template>
139
+
140
+
141
+<script>
142
+import { getInvoice } from '@/api/project/project'
143
+import {jsGetAge, uParseTime} from "@/utils/tools";
144
+
145
+export default {
146
+    props:{
147
+        paramsObj:Object
148
+    },
149
+    data(){
150
+        return{
151
+            list:null,
152
+            printDate:'',
153
+            zhongwen:'',
154
+            totalPrice:0.0,
155
+            org_id:'',
156
+            org_name:'',
157
+          psn_no:"",
158
+          in_hosptial_time:'',
159
+          out_hosptial_time:'',
160
+          number:'',
161
+          insutype:'',
162
+          pre_pay_money:"",
163
+        }
164
+    },
165
+    mounted(){
166
+        console.log('paramsObj',this.paramsObj)
167
+        let params = {
168
+            order_id: this.paramsObj.order_id,
169
+            patient_id: this.paramsObj.patient_id,
170
+        }
171
+        this.getInvoice(params)
172
+        // var data = new Date();
173
+        // var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
174
+        // var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
175
+        // this.printDate = data.getFullYear() + "-" + month + "-" + date;
176
+        // this.smalltoBIG(982732.21)
177
+        this.org_id = this.$store.getters.xt_user.org_id
178
+        this.org_name = this.$store.getters.xt_user.org.org_name
179
+    },
180
+    methods:{
181
+      getTime(value, temp) {
182
+        if (value != undefined) {
183
+          return uParseTime(value, temp);
184
+        }
185
+        return "";
186
+      },
187
+      
188
+      getDay(dateString1,dateString2){
189
+        var  startDate = Date.parse(dateString1);
190
+        var  endDate = Date.parse(dateString2);
191
+        if (startDate>endDate){
192
+          return 0;
193
+        }
194
+        if (startDate==endDate){
195
+          return 1;
196
+        }
197
+        var days=(endDate - startDate)/(1*24*60*60*1000);
198
+        return  days;
199
+
200
+      },
201
+        getInvoice(params){
202
+            getInvoice(params).then((res) => {
203
+                console.log('res',res)
204
+                this.list = res.data.data
205
+                console.log(this.list)
206
+              console.log(this.list.his_hospital_record)
207
+
208
+              this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
209
+                                    this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal
210
+                this.smalltoBIG( this.list.order.medfee_sumamt)
211
+                // var data = new Date(res.data.data.date * 1000);
212
+                var data = new Date(this.paramsObj.setl_time);
213
+                var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
214
+                var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
215
+                this.printDate = data.getFullYear() + "-" + month + "-" + date;
216
+
217
+              if(this.list.his.id > 0){
218
+                this.in_hosptial_time = this.getTime(this.list.his.record_date,'{y}-{m}-{d}')
219
+                this.out_hosptial_time =  this.getTime(this.list.his.record_date,'{y}-{m}-{d}')
220
+              }else{
221
+                this.in_hosptial_time = this.list.his_hospital_record.in_hosptial_time.split(' ')[0]
222
+                this.out_hosptial_time = this.list.his_hospital_record.out_hosptial_time.split(' ')[0]
223
+              }
224
+              this.insutype = this.list.order.insutype
225
+              this.id_card_no = this.list.his.id_card_no
226
+              this.number = this.list.his.number
227
+              this.psn_no = this.list.his.psn_no
228
+              this.pre_pay_money = this.list.pre_pay_money
229
+
230
+              this.balance_accounts_type = this.list.his.balance_accounts_type
231
+              this.gend= this.list.his.gend
232
+            })
233
+        },
234
+        smalltoBIG(n) {
235
+            // let fraction = ['角', '分'];
236
+            // let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
237
+            // let unit = [['元.', '万,', '亿,'], ["元",'拾', '佰', '仟']];
238
+            // let head = price < 0 ? '欠' : '';
239
+            // price = Math.abs(price);
240
+            // let upper = '';
241
+            // for (let i = 0; i < fraction.length; i++) {
242
+            // upper += (digit[Math.floor(price * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
243
+            // }
244
+            // upper = upper || '整';
245
+            // price = Math.floor(price);
246
+            // for (let i = 0; i < unit[0].length && price > 0; i++) {
247
+            // let p = '';
248
+            // for (let j = 0; j < unit[1].length && price > 0; j++) {
249
+            //     p = digit[price % 10] + unit[1][j] + p;
250
+            //     price = Math.floor(price / 10);
251
+            // }
252
+            // upper = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + upper;
253
+            // }
254
+            // this.zhongwen = head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整')
255
+            // console.log('6666',head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整'))
256
+            if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
257
+                return "数据非法";  //判断数据是否大于0
258
+            }
259
+
260
+            var unit = "仟佰拾亿仟佰拾万仟佰拾元角分", str = "";
261
+            n += "00";
262
+
263
+            var indexpoint = n.indexOf('.');  // 如果是小数,截取小数点前面的位数
264
+
265
+            if (indexpoint >= 0){
266
+
267
+                n = n.substring(0, indexpoint) + n.substr(indexpoint+1, 2);   // 若为小数,截取需要使用的unit单位
268
+            }
269
+
270
+            unit = unit.substr(unit.length - n.length);  // 若为整数,截取需要使用的unit单位
271
+            for (var i=0; i < n.length; i++){
272
+                str += "零壹贰叁肆伍陆柒捌玖".charAt(n.charAt(i)) + unit.charAt(i);  //遍历转化为大写的数字
273
+            }
274
+
275
+            this.zhongwen =  str.replace(/零(仟|佰|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
276
+            console.log(this.zhongwen)
277
+        },
278
+
279
+    },
280
+    watch:{
281
+        paramsObj:{//深度监听,可监听到对象、数组的变化
282
+            handler(val, oldVal){
283
+                let params = {
284
+                    order_id: val.order_id,
285
+                    patient_id: val.patient_id,
286
+                }
287
+                this.getInvoice(params)
288
+
289
+            },
290
+            deep:true
291
+        }
292
+    }
293
+}
294
+</script>

+ 1 - 1
src/xt_pages/kuyiShopping/index.vue View File

@@ -1,5 +1,5 @@
1 1
 <template>
2 2
     <div class="page_kuyishopping" style="width:100%;height:100%;">
3
-        <iframe style="width:100%;height:100%;" src="https://market.kuyicloud.com/app/index.php?i=2&c=entry&m=ewei_shopv2&do=mobile&r=pc" frameborder="0"></iframe>
3
+        <iframe style="width:100%;height:100%;" src="https://www.ltsxt.com" frameborder="0"></iframe>
4 4
     </div>
5 5
 </template>

+ 3 - 4
src/xt_pages/outpatientCharges/statementPrint.vue View File

@@ -20,7 +20,7 @@
20 20
           org_id == 10138 ||
21 21
           org_id == 9504 ||
22 22
           org_id == 10028 ||
23
-          org_id == 10278 
23
+          org_id == 10278
24 24
         "
25 25
       >
26 26
         <printTwo :info="info" v-if="org_id == 9990"></printTwo>
@@ -31,7 +31,7 @@
31 31
           v-if="org_id == 10138 || org_id == 10278  "
32 32
         ></printThree>
33 33
         <printFour
34
-          v-if="org_id == 9504 || org_id == 10028 || org_id == 10088 || org_id == 0 "
34
+          v-if="org_id == 9504 || org_id == 10028 || org_id == 10088  "
35 35
           :info="info"
36 36
           :paramsObj="paramsObj"
37 37
           :balanceAccounts="balanceAccounts"
@@ -503,7 +503,7 @@ export default {
503 503
           })
504 504
         } else {
505 505
           const style =
506
-            '@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}'
506
+            '@media print {#statement-print{font-size:16px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}'
507 507
           printJS({
508 508
             printable: 'statement-print',
509 509
             type: 'html',
@@ -512,7 +512,6 @@ export default {
512 512
           })
513 513
         }
514 514
       }
515
-
516 515
       // if (this.org_template_info.template_id == 1) {
517 516
       //   printJS({
518 517
       //     printable: "dialysis-print-box",

+ 14 - 14
src/xt_pages/outpatientCharges/statementTemplate/printTen.vue View File

@@ -6,7 +6,7 @@
6 6
         <h1 style="text-align: center;">江西省医疗保障定点机构医疗费用结算单</h1>
7 7
       </div>
8 8
 
9
-      <div class="print-tab" style="margin: 0px auto; text-align: center;">
9
+      <div class="print-tab" style="margin: 0px auto; text-align: center;font-size: 16px;">
10 10
         <div class="hospital" style="margin:0px 112px ;width: 70%;">
11 11
           <!-- style="display: inline-block;margin: 10px 80px 10px 0px ;" -->
12 12
           <span class="yiliao" style="display: inline-block;margin: 10px 80px 10px 0px ;">
@@ -18,19 +18,19 @@
18 18
                         <span>{{info.fixmedins_code}}</span>
19 19
                     </span>
20 20
           <span class="yiliao" style="display: inline-block;margin: 10px 80px 10px 0px ;">
21
-                        <span>医院等级:</span>
22
-                        <span  v-if="info.hosp_lv == '1'">三级特等</span>
23
-                        <span  v-else-if="info.hosp_lv == '2'">三级甲等</span>
24
-                        <span v-else-if="info.hosp_lv == '3'">三级乙等</span>
25
-                        <span v-else-if="info.hosp_lv == '4'">三级丙等</span>
26
-                        <span v-else-if="info.hosp_lv == '5'">二级甲等</span>
27
-                        <span v-else-if="info.hosp_lv == '6'">二级乙等</span>
28
-                        <span v-else-if="info.hosp_lv == '7'">二级丙等</span>
29
-                        <span  v-else-if="info.hosp_lv == '8'">一级甲等</span>
30
-                        <span v-else-if="info.hosp_lv == '9'">一级乙等</span>
31
-                        <span v-else-if="info.hosp_lv == '10'">一级丙等</span>
32
-                        <span  v-else-if="info.hosp_lv == '11'">无等级</span>
33
-                        <span  v-else></span>
21
+                    <span>医院等级:</span>
22
+                    <span  v-if="info.hosp_lv == '1'">三级特等</span>
23
+                    <span  v-else-if="info.hosp_lv == '2'">三级甲等</span>
24
+                    <span v-else-if="info.hosp_lv == '3'">三级乙等</span>
25
+                    <span v-else-if="info.hosp_lv == '4'">三级丙等</span>
26
+                    <span v-else-if="info.hosp_lv == '5'">二级甲等</span>
27
+                    <span v-else-if="info.hosp_lv == '6'">二级乙等</span>
28
+                    <span v-else-if="info.hosp_lv == '7'">二级丙等</span>
29
+                    <span  v-else-if="info.hosp_lv == '8'">一级甲等</span>
30
+                    <span v-else-if="info.hosp_lv == '9'">一级乙等</span>
31
+                    <span v-else-if="info.hosp_lv == '10'">一级丙等</span>
32
+                    <span  v-else-if="info.hosp_lv == '11'">无等级</span>
33
+                    <span  v-else></span>
34 34
           </span>
35 35
         </div>
36 36
         <table class="jiesuan" style="border-collapse: collapse;margin: auto;">

+ 67 - 66
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -344,7 +344,7 @@
344 344
       <recordPrint :patientid="patientid" ref="recordPrint">
345 345
       </recordPrint>
346 346
     </el-dialog>
347
-
347
+    <!-- 透析记录 打印上机单 -->
348 348
     <el-dialog
349 349
       :visible.sync="startVisibility"
350 350
       :close-on-click-modal="false"
@@ -364,22 +364,22 @@
364 364
       <div id="print_content">
365 365
         <div class="print_main_content">
366 366
           <div class="table_panel">
367
-            <div v-for="(main_collection,index) in printList" :key="index">
368
-             
367
+            <div v-for="(main_collection,index) in printList" :key="index" style="page-break-after: always;">
368
+
369 369
               <div class="signPrint" style="width: 360px;font-size:16px;">
370
-                
370
+
371 371
                 <div style="margin-left:50px;">姓名:
372 372
                   <span>{{ main_collection.patient.name }} </span>
373 373
                   ({{ main_collection.patient.dialysis_no }},{{ getNewAge(main_collection.patient.id_card_no) }}岁)
374 374
                 </div>
375
-                <div class="printCell" style="display:flex;justify-content: space-around;" v-if="org_id ==10598 || org_id == 0">
376
-                  <div style="margin-left:-250px;">透析模式:
375
+                <div class="printCell" style="display:flex;" v-if="org_id ==10598 || org_id == 0">
376
+                  <div style="">透析模式:
377 377
                    <span>{{getModeName(main_collection.prescription.mode_id)  }}</span>
378 378
                   </div>
379
-                 
379
+
380 380
                 </div>
381
-                <div class="printCell" style="display:flex;justify-content: space-around;">
382
-                  <span style="display: block;width: 50%;">
381
+                <div class="printCell" style="display:flex;">
382
+                  <span style="display: block;width: 45%;">
383 383
                     床号:{{ main_collection.number.number }}
384 384
                     <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
385 385
                     <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
@@ -387,18 +387,18 @@
387 387
                   </span>
388 388
                   <span style="display: block;width: 50%;">{{ printDate }}</span>
389 389
                 </div>
390
-                <div class="printCell" style="display:flex;justify-content: space-around;">
390
+                <div class="printCell" style="display:flex;">
391 391
                   <span
392
-                    style="display: block;width: 50%;">干体重:{{ main_collection.assessmentbefor.dry_weight }}Kg</span>
393
-                  <span style="display: block;width: 50%;" v-if="org_id!=10598">抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : '' }}</span>
394
-                  <span style="display: block;width: 50%;" v-if="org_id==10598">抗凝剂:{{ main_collection.prescription.anticoagulant ? anticoagulants_confit[main_collection.prescription.anticoagulant].name : '' }}</span>
392
+                    style="display: block;width: 45%;">干体重:{{ main_collection.assessmentbefor.dry_weight }}Kg</span>
393
+                  <span style="display: block;" v-if="org_id!=10598">抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : '' }}</span>
394
+                  <span style="display: block;" v-if="org_id==10598">抗凝剂:{{ main_collection.prescription.anticoagulant ? anticoagulants_confit[main_collection.prescription.anticoagulant].name : '' }}</span>
395 395
                 </div>
396
-                <div class="printCell" style="display:flex;justify-content: space-around;">
397
-                  <span style="display: block;width: 50%;">净重值:{{
396
+                <div class="printCell" style="display:flex;">
397
+                  <span style="display: block;width: 45%;">净重值:{{
398 398
                       main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight
399 399
                     }}Kg</span>
400 400
 
401
-                  <span style="display: block;width: 50%;" v-if="org_id!=10598">
401
+                  <span style="display: block;" v-if="org_id!=10598">
402 402
                     首剂: <span
403 403
                     v-if="main_collection.dialysissolution.anticoagulant == 1">{{ main_collection.dialysissolution.anticoagulant_shouji }} mg</span>
404 404
                   <span v-if="main_collection.dialysissolution.anticoagulant == 2">
@@ -433,7 +433,7 @@
433 433
                    </span>
434 434
                   </span>
435 435
 
436
-                   <span style="display: block;width: 50%;" v-if="org_id==10598">
436
+                   <span style="display: block;" v-if="org_id==10598">
437 437
                     首剂: <span
438 438
                     v-if="main_collection.prescription.anticoagulant == 1">{{ main_collection.prescription.anticoagulant_shouji }} mg</span>
439 439
                   <span v-if="main_collection.prescription.anticoagulant == 2">
@@ -467,10 +467,9 @@
467 467
                     {{ main_collection.prescription.anticoagulant_shouji }}iu
468 468
                    </span>
469 469
                   </span>
470
-
471 470
                 </div>
472
-                <div class="printCell" style="display:flex;justify-content: space-around;">
473
-                  <span style="display: block;width: 50%;">体重增加:{{
471
+                <div class="printCell" style="display:flex;">
472
+                  <span style="display: block;width: 45%;">体重增加:{{
474 473
                       (main_collection.assessmentbefor.weight_before - assessmentAfterDislysis.weight_after).toFixed(2)
475 474
                     }}Kg</span>
476 475
                   <span style="display: block;width: 50%;" v-if="org_id!=10598">
@@ -548,14 +547,14 @@
548 547
                   </span>
549 548
 
550 549
                 </div>
551
-                <div class="printCell" style="display:flex;justify-content: space-around;">
552
-                   <span style="display: block;width: 50%;">
550
+                <div class="printCell" style="display:flex;">
551
+                   <span style="display: block;width: 45%;">
553 552
                      目标脱水量:{{main_collection.prescription.target_ultrafiltration}}
554 553
                     <span
555 554
                       v-if="$store.getters.xt_user.org.id == 10278 || $store.getters.xt_user.org.id == 10460">ml</span>
556 555
                     <span v-else>L</span>
557 556
                     </span>
558
-                 
557
+
559 558
                   <span style="display: block;width: 50%;"  v-if="org_id!=10598">
560 559
                     总量:{{ main_collection.dialysissolution.anticoagulant_zongliang }}
561 560
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">
@@ -629,14 +628,14 @@
629 628
                    iu
630 629
                    </span>
631 630
                   </span>
632
-                 
631
+
633 632
                 </div>
634
-                <div class="printCell" style="display:flex;justify-content: space-around;"  v-if="org_id==10598 || org_id == 0">
635
-                  <span style="display: block;width: 50%;">处方脱水量:{{main_collection.prescription.target_ultrafiltration}}
636
-                    <span v-if="$store.getters.xt_user.org.id == 10278 || $store.getters.xt_user.org.id == 10460 ||  $store.getters.xt_user.org.id == 10598">ml</span>
633
+                <div class="printCell" style="display:flex;"  v-if="org_id==10598 || org_id == 0">
634
+                  <span style="display: block;width: 45%;">处方脱水量:{{main_collection.prescription.prescription_water}}
635
+                    <span v-if="$store.getters.xt_user.org.id == 10278 || $store.getters.xt_user.org.id == 10460">ml</span>
637 636
                      <span v-else>L</span>
638
-                  </span> 
639
-                  <span>
637
+                  </span>
638
+                  <span style="width: 50%;">
640 639
                     血流量:{{ main_collection.prescription.blood_flow_volume }} ml/min
641 640
                   </span>
642 641
                 </div>
@@ -1997,21 +1996,21 @@ export default {
1997 1996
                 if (prescription.pre_time == 0) {
1998 1997
                   if (this.schedule.schedule_type == 1) {
1999 1998
                     if (this.org_id == 10028) {
2000
-                      preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
1999
+                      preTime = this.record_date + ' ' + '6:30'
2001 2000
                     } else if(this.org_id == 10206  || this.org_id == 0){
2002 2001
                       preTime = this.record_date + ' ' + '6:00'
2003 2002
                     } else {
2004
-                      preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2003
+                      preTime = this.record_date + ' ' + '7:00'
2005 2004
 
2006 2005
                     }
2007 2006
                   } else if (this.schedule.schedule_type == 2) {
2008 2007
                      if(this.org_id == 10206  || this.org_id == 0 ){
2009 2008
                       preTime = this.record_date + ' ' + '10:30'
2010 2009
                     }else{
2011
-                     preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
2010
+                     preTime = this.record_date + ' ' + '11:00'
2012 2011
                    }
2013 2012
                   } else if (this.schedule.schedule_type == 3) {
2014
-                    preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
2013
+                    preTime = this.record_date + ' ' + '17:00'
2015 2014
                   }
2016 2015
                   // preTime = nowTime
2017 2016
                 } else {
@@ -2166,11 +2165,11 @@ export default {
2166 2165
                 if (this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
2167 2166
                   if (this.schedule.schedule_type == 1) {
2168 2167
                     if (this.org_id == 10028) {
2169
-                      preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
2168
+                      preTime = this.record_date + ' ' + '6:30'
2170 2169
                     } else if(this.org_id == 10206  || this.org_id == 0) {
2171 2170
                       preTime = this.record_date+ ' ' + '6:00'
2172 2171
                     } else {
2173
-                      preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2172
+                      preTime = this.record_date + ' ' + '7:00'
2174 2173
 
2175 2174
                     }
2176 2175
                     // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
@@ -2178,10 +2177,10 @@ export default {
2178 2177
                     if(this.org_id == 10206  || this.org_id == 0){
2179 2178
                       preTime = this.record_date + ' ' + '6:00'
2180 2179
                     }else {
2181
-                      preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
2180
+                      preTime = this.record_date + ' ' + '11:00'
2182 2181
                     }
2183 2182
                   } else if (this.schedule.schedule_type == 3) {
2184
-                    preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
2183
+                    preTime = this.record_date + ' ' + '17:00'
2185 2184
                   }
2186 2185
                 }
2187 2186
 
@@ -2502,11 +2501,11 @@ export default {
2502 2501
                       if (prescription.pre_time == 0) {
2503 2502
                         if (this.schedule.schedule_type == 1) {
2504 2503
                           if (this.org_id == 10028) {
2505
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
2504
+                            preTime = this.record_date + ' ' + '6:30'
2506 2505
                           } else if(this.org_id == 10206 || this.org_id == 0){
2507 2506
                             preTime = this.record_date + ' ' + '6:00'
2508 2507
                           } else {
2509
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2508
+                            preTime = this.record_date + ' ' + '7:00'
2510 2509
 
2511 2510
                           }
2512 2511
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
@@ -2514,10 +2513,10 @@ export default {
2514 2513
                           if(this.org_id == 10206  || this.org_id == 0){
2515 2514
                             preTime = this.record_date + ' ' + '10:30'
2516 2515
                           }else{
2517
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
2516
+                            preTime = this.record_date + ' ' + '11:00'
2518 2517
                           }
2519 2518
                         } else if (this.schedule.schedule_type == 3) {
2520
-                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
2519
+                          preTime = this.record_date + ' ' + '17:00'
2521 2520
                         }
2522 2521
                       } else {
2523 2522
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
@@ -2673,11 +2672,11 @@ export default {
2673 2672
                       if ( this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
2674 2673
                         if (this.schedule.schedule_type == 1) {
2675 2674
                           if (this.org_id == 10028) {
2676
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
2675
+                            preTime = this.record_date + ' ' + '6:30'
2677 2676
                           } else if(this.org_id == 10206  || this.org_id == 0){
2678 2677
                             preTime = this.record_date + ' ' + '6:00'
2679 2678
                           } else {
2680
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2679
+                            preTime = this.record_date + ' ' + '7:00'
2681 2680
 
2682 2681
                           }
2683 2682
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
@@ -2686,11 +2685,11 @@ export default {
2686 2685
                             preTime =this.record_date + ' ' + '10:30'
2687 2686
                           }else{
2688 2687
 
2689
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
2688
+                            preTime = this.record_date + ' ' + '11:00'
2690 2689
 
2691 2690
                           }
2692 2691
                         } else if (this.schedule.schedule_type == 3) {
2693
-                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
2692
+                          preTime = this.record_date + ' ' + '17:00'
2694 2693
                         }
2695 2694
                       }
2696 2695
 
@@ -3929,10 +3928,10 @@ export default {
3929 3928
           this.$refs.child.watchSign = 0
3930 3929
         }
3931 3930
       }else if(this.titleType == '透析历史'){
3932
-        
3931
+
3933 3932
          this.$refs.childOne.show(this.patientid)
3934 3933
       } else {
3935
-      
3934
+
3936 3935
         this.patientid = val.id
3937 3936
         var nowDate = new Date()
3938 3937
         var nowYear = nowDate.getFullYear()
@@ -4227,13 +4226,13 @@ export default {
4227 4226
                       if (prescription.pre_time == 0) {
4228 4227
                         if (this.schedule.schedule_type == 1) {
4229 4228
                           if (this.org_id == 10028) {
4230
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
4229
+                            preTime = this.record_date + ' ' + '6:30'
4231 4230
                           } else if(this.org_id == 10206 || this.org_id == 0){
4232 4231
 
4233 4232
                             preTime = this.record_date + ' ' + '6:00'
4234 4233
 
4235 4234
                           } else {
4236
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4235
+                            preTime = this.record_date + ' ' + '7:00'
4237 4236
 
4238 4237
                           }
4239 4238
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
@@ -4242,10 +4241,10 @@ export default {
4242 4241
                             preTime = this.record_date + ' ' + '10:30'
4243 4242
 
4244 4243
                           }else {
4245
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
4244
+                            preTime = this.record_date + ' ' + '11:00'
4246 4245
                           }
4247 4246
                         } else if (this.schedule.schedule_type == 3) {
4248
-                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
4247
+                          preTime = this.record_date + ' ' + '17:00'
4249 4248
                         }
4250 4249
                       } else {
4251 4250
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
@@ -4400,21 +4399,21 @@ export default {
4400 4399
                       if (this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
4401 4400
                         if (this.schedule.schedule_type == 1) {
4402 4401
                           if (this.org_id == 10028) {
4403
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
4402
+                            preTime = this.record_date + ' ' + '6:30'
4404 4403
                           } else if(this.org_id == 10206  || this.org_id == 0){
4405 4404
                             preTime = this.record_date+ ' ' + '6:00'
4406 4405
                           } else {
4407
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4406
+                            preTime = this.record_date + ' ' + '7:00'
4408 4407
                           }
4409 4408
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4410 4409
                         } else if (this.schedule.schedule_type == 2) {
4411 4410
                           if(this.org_id == 10206  || this.org_id == 0){
4412 4411
                             preTime = this.record_date + ' ' + '10:30'
4413 4412
                           }else{
4414
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
4413
+                            preTime = this.record_date + ' ' + '11:00'
4415 4414
                           }
4416 4415
                         } else if (this.schedule.schedule_type == 3) {
4417
-                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
4416
+                          preTime = this.record_date + ' ' + '17:00'
4418 4417
                         }
4419 4418
                       }
4420 4419
 
@@ -4913,22 +4912,22 @@ export default {
4913 4912
                         // preTime = nowTime
4914 4913
                         if (this.schedule.schedule_type == 1) {
4915 4914
                           if (this.org_id == 10028) {
4916
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
4915
+                            preTime = this.record_date + ' ' + '6:30'
4917 4916
                           } else if(this.org_id == 10206 || this.org_id == 0){
4918 4917
                             preTime = this.record_date + ' ' + '6:00'
4919 4918
                           } else {
4920
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4919
+                            preTime = this.record_date + ' ' + '7:00'
4921 4920
                           }
4922 4921
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4923 4922
                         } else if (this.schedule.schedule_type == 2) {
4924 4923
                           if(this.org_id == 10206  || this.org_id == 0){
4925 4924
                             preTime =this.record_date + ' ' + '10:30'
4926 4925
                           }else{
4927
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
4926
+                            preTime = this.record_date + ' ' + '11:00'
4928 4927
 
4929 4928
                           }
4930 4929
                         } else if (this.schedule.schedule_type == 3) {
4931
-                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
4930
+                          preTime = this.record_date + ' ' + '17:00'
4932 4931
                         }
4933 4932
                       } else {
4934 4933
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
@@ -5084,11 +5083,11 @@ export default {
5084 5083
                       if ( this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
5085 5084
                         if (this.schedule.schedule_type == 1) {
5086 5085
                           if (this.org_id == 10028) {
5087
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
5086
+                            preTime = this.record_date + ' ' + '6:30'
5088 5087
                           } else if(this.org_id == 10206 ||  this.org_id == 0){
5089 5088
                             preTime = this.record_date + ' ' + '6:00'
5090 5089
                           } else {
5091
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
5090
+                            preTime = this.record_date + ' ' + '7:00'
5092 5091
                           }
5093 5092
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
5094 5093
                         } else if (this.schedule.schedule_type == 2) {
@@ -5096,10 +5095,10 @@ export default {
5096 5095
                             preTime = this.record_date + ' ' + '10:30'
5097 5096
 
5098 5097
                           }else{
5099
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
5098
+                            preTime = this.record_date + ' ' + '11:00'
5100 5099
                           }
5101 5100
                         } else if (this.schedule.schedule_type == 3) {
5102
-                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
5101
+                          preTime = this.record_date + ' ' + '17:00'
5103 5102
                         }
5104 5103
                       }
5105 5104
 
@@ -5163,7 +5162,7 @@ export default {
5163 5162
 
5164 5163
                   }
5165 5164
                 }
5166
-              
5165
+
5167 5166
                 this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info, this.sick, this.diagnosis, this.patient_diagnoses)
5168 5167
               }
5169 5168
             })
@@ -5414,14 +5413,15 @@ export default {
5414 5413
       this.selecting_schs2 = val
5415 5414
     },
5416 5415
     handleSelectionChange3(val) {
5417
-      console.log(val)
5416
+      console.log('检验',val)
5418 5417
       if (val.length == 0) {
5419 5418
         this.selecting_schs3 = []
5420 5419
       } else {
5421
-        if (this.org_id == 10402 || this.org_id == 0) {
5420
+        if (this.org_id == 10402 ) {
5422 5421
           this.selecting_schs3 = val
5423 5422
 
5424 5423
         } else {
5424
+          console.log('this.tableData4',this.tableData4);
5425 5425
           this.selecting_schs3 = this.tableData4
5426 5426
 
5427 5427
         }
@@ -5488,6 +5488,7 @@ export default {
5488 5488
         }
5489 5489
         this.paramsObj2 = obj2
5490 5490
       }
5491
+      // 检验
5491 5492
       var arr3 = []
5492 5493
       if (this.selecting_schs3.length > 0) {
5493 5494
         for (let i = 0; i < this.selecting_schs3.length; i++) {

+ 1 - 1
src/xt_pages/outpatientDoctorStation/print.vue View File

@@ -3,7 +3,7 @@
3 3
     <div class="dialysisPage" style="padding-top: 40px">
4 4
       <div v-if="org_id != 10138 && org_id != 10278 && org_id != 10243 && org_id != 10537 ">
5 5
 
6
-        <printOne v-if="org_id != 10088 && org_id != 10215 && org_id != 10375 && org_id != 10188 && org_id != 10217 && org_id != 10598 && org_id != 0" v-bind:childResponse="childResponse"
6
+        <printOne v-if="org_id != 10088 && org_id != 10215 && org_id != 10375 && org_id != 10188 && org_id != 10217 && org_id != 10598 && org_id != 10644 && org_id != 0" v-bind:childResponse="childResponse"
7 7
         :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient"
8 8
         :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date"
9 9
         :prescription_id="prescription_id"></printOne>

+ 7 - 2
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue View File

@@ -78,12 +78,15 @@
78 78
         </div>
79 79
         <div class="otherInfo">
80 80
             <div class="otherName">体格检查:</div>
81
-            <div style="flex:1;">
81
+            <div style="flex:1;" v-if="org_id!=10537 && org_id!=0">
82 82
                 <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
83 83
                 <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
84 84
                 <span>呼吸:{{ history.breathing ? history.breathing + '次/分' : '/' }}</span>
85 85
                 <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
86 86
             </div>
87
+            <div style="flex:1;" v-if="org_id ==10537 || org_id ==0">
88
+                 {{ history.physical_examination?history.physical_examination:"" }}
89
+            </div>
87 90
         </div>
88 91
         <div class="otherInfo">
89 92
             <div class="otherName">门诊诊断:</div>
@@ -122,7 +125,8 @@ export default {
122 125
             departmentList:[],
123 126
             orgname:'',
124 127
             history:{},
125
-            printDate:''
128
+            printDate:'',
129
+            org_id:0,
126 130
         }
127 131
     },
128 132
     methods:{
@@ -213,6 +217,7 @@ export default {
213 217
 
214 218
     },
215 219
     created(){
220
+        this.org_id = this.$store.getters.xt_user.template_info.org_id
216 221
         this.educationOptions = getDataConfig("patient", "education_types");
217 222
         this.getAllDoctorList()
218 223
         this.getPatientCaseHistory()

+ 2 - 2
src/xt_pages/outpatientDoctorStation/template/prinSeven.vue View File

@@ -60,7 +60,7 @@
60 60
             </div>
61 61
           </div>
62 62
         </div>
63
-          <div class="prescriptionBox" style="height: 300px;">
63
+          <div class="prescriptionBox" style="height: 400px;">
64 64
             <div class="Rp">Rp:</div>
65 65
             <div
66 66
               class="drugsBox"
@@ -869,7 +869,7 @@ export default{
869 869
 }
870 870
 .prescriptionBox {
871 871
   padding: 0 10px;
872
-  min-height: 450px;
872
+  max-height: 450px;
873 873
 }
874 874
 .Rp {
875 875
   font-size: 22px;

+ 170 - 123
src/xt_pages/outpatientDoctorStation/template/prineight.vue View File

@@ -15,18 +15,22 @@
15 15
           >
16 16
             {{ orgname }}处方笺
17 17
           </div>
18
+          <!-- v-if="prescriptions[index].med_type == '1112'" -->
18 19
           <div class="printTitle" v-else>
20
+            <div style="font-size: 14px;font-weight: normal;text-align: right;" 
21
+              v-if="prescriptions[index].med_type == '1112'">(精二)
22
+            </div>
19 23
             <span>{{ orgname }}处方笺</span>
20
-            <span style="font-size: 14px;font-weight: normal;color: red;" 
21
-              v-if="prescriptions[index].med_type == '1112'">(精)</span>
22 24
           </div>
23
-          <div  style="border-bottom: 1px solid black;border-top: 1px solid black;width: 100%;">
25
+          <!-- 非精神处方 -->
26
+          <div  style="border-bottom: 1px solid black;border-top: 1px solid black;width: 100%;" 
27
+            v-if="prescriptions[index].med_type != '1111' && prescriptions[index].med_type != '1112'">
24 28
             <div style="display: flex;margin: 10px 0;line-height: 24px;padding: 0 10px;">
25 29
               <div style="flex: 1;">
26 30
                 NO:
27 31
               </div>
28 32
               <div style="flex: 1;">
29
-                开方时间:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}
33
+                开方日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}
30 34
               </div>
31 35
             </div>
32 36
             <div style="display: flex;line-height: 24px;padding: 0 10px;">
@@ -54,8 +58,40 @@
54 58
                 过敏史:
55 59
               </div>
56 60
             </div>
57
-            <div style="width: 100%;margin: 10px 0;padding: 0 10px;">地址:{{ item.patient.home_address }}</div>
61
+            <div style="flex: 2;margin: 10px 0;">住址/电话:{{ item.patient.home_address }}&nbsp;<span>{{ item.patient.phone }}</span></div>
58 62
           </div>
63
+          <!-- 精二 -->
64
+          <div style="border-bottom: 1px solid black;border-top: 1px solid black;width: 100%;"
65
+            v-if="prescriptions[index].med_type == '1112'">
66
+            <div style="display: flex;">
67
+              <div style="flex: 1;">处方编号:</div>
68
+              <div style="flex: 1;">日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</div>
69
+            </div>
70
+            
71
+            <div  style="display: flex;margin: 10px 0;line-height: 24px;padding: 0 10px;">
72
+              <p style="width: 200px;">姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
73
+              <p style="width: 200px;">
74
+                性别:
75
+                <span v-if="item.patient.gender == 1">男</span>
76
+                <span v-if="item.patient.gender == 2">女</span>
77
+              </p>
78
+              <p style="width: 200px;">年龄:{{ getAge(item.patient) ? getAge(item.patient) : "" }}岁</p>
79
+            </div>
80
+            <div style="display: flex;margin: 10px 0;">
81
+              <div style="flex: 1;">门诊号:{{ hisPatient.number ? hisPatient.number : "" }}</div>
82
+              <div style="flex: 1;">费别:居民医保/职工医保/自费</div>
83
+            </div>
84
+            <div style="display: flex;">
85
+              <div style="flex: 1;">临床诊断:{{ getDiagnosis(item.info.diagnosis) }}</div>
86
+              <div style="flex: 1;">身份证号:</div>
87
+            </div>
88
+            <div style="flex: 2;margin: 10px 0;">住址/电话:{{ item.patient.home_address }}&nbsp;<span>{{ item.patient.phone }}</span></div>
89
+            <div style="display: flex;">
90
+              <div style="flex: 1;">代办人姓名:{{  }}</div>
91
+              <div style="flex: 1;">身份证号(代办人):{{  }}</div>
92
+            </div>
93
+          </div>
94
+
59 95
           <div class="prescriptionBox" style="height: 300px;">
60 96
             <div class="Rp">Rp:</div>
61 97
             <div
@@ -64,38 +100,72 @@
64 100
               :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}"
65 101
             >
66 102
               <template v-if="index==yi+1&&item.advices.length>5">
67
-                <div style="margin: 20px 0px;">
68
-                  <div class="infoTitle">
69
-                    <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
70
-                    <p>
103
+                <!-- 非精神处方 -->
104
+                <div style="margin: 20px 0px; border-bottom: 1px solid black;border-top: 1px solid black;" 
105
+                  v-if="prescriptions[index].med_type != '1111' && prescriptions[index].med_type != '1112'">
106
+                  <div style="display: flex;margin: 10px 0;line-height: 24px;padding: 0 10px;">
107
+                    <div style="flex: 1;">
108
+                      NO:
109
+                    </div>
110
+                    <div style="flex: 1;">
111
+                      开方时间:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}
112
+                    </div>
113
+                  </div>
114
+                  <div style="display: flex;line-height: 24px;padding: 0 10px;">
115
+                    <div style="flex: 1;">
116
+                      透析号:{{ item.patient.dialysis_no }}
117
+                    </div>
118
+                    <div style="flex: 1;">
119
+                      费别:居民医保/职工医保/自费
120
+                    </div>
121
+                  </div>
122
+                  <div  style="display: flex;margin: 10px 0;line-height: 24px;padding: 0 10px;">
123
+                    <p style="width: 200px;">姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
124
+                    <p style="width: 200px;">
71 125
                       性别:
72 126
                       <span v-if="item.patient.gender == 1">男</span>
73 127
                       <span v-if="item.patient.gender == 2">女</span>
74 128
                     </p>
75
-                    <p>年龄:{{ getAge(item.patient) ? getAge(item.patient) : "" }}岁</p>
129
+                    <p style="width: 200px;">年龄:{{ getAge(item.patient) ? getAge(item.patient) : "" }}岁</p>
76 130
                   </div>
77
-                  <div class="infoMain">
78
-                    <div style="margin-bottom: 10px">
79
-                      门诊号:{{ hisPatient.number ? hisPatient.number : "" }}
80
-                    </div>
81
-                    <div style="margin-bottom: 10px">
82
-                      科室:{{ item.info ? getDepart(item.info.departments) : "" }}
83
-                    </div>
84
-                    <div style="margin-bottom: 10px">
85
-                      <!-- 医保卡号:{{ item.hisPatient.number ? item.hisPatient.number : "" }} -->
86
-                      费别:居民医保/职工医保/自费
87
-                    </div>
88
-                    <div style="margin-bottom: 10px" v-if="org_id != 10188">
89
-                      <!-- 电话:{{ item.patient.phone }} -->
90
-                      开方日期:{{ getTime(item.pre_time) ? getTime(item.pre_time) : "" }}
91
-                    </div>
92
-                    <div style="margin-bottom: 10px" v-else>
93
-                      日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}
94
-                    </div>
95
-                    <div style="width: 100%">地址:{{ item.patient.home_address }}</div>
96
-                    <div style="width: 100%">
131
+                  <div style="display: flex;line-height: 24px;padding: 0 10px;">
132
+                    <div style="flex: 1;">
97 133
                       临床诊断:{{ getDiagnosis(item.info.diagnosis) }}
98 134
                     </div>
135
+                    <div style="flex: 1;">
136
+                      过敏史:
137
+                    </div>
138
+                  </div>
139
+                  <div style="width: 100%;margin: 10px 0;padding: 0 10px;">地址/电话:{{ item.patient.home_address }}&nbsp;<span>{{ item.patient.phone }}</span></div>
140
+                </div>
141
+                <!-- 精二 -->
142
+                <div style="margin: 20px 0px;border-bottom: 1px solid black;border-top: 1px solid black;width: 100%;"
143
+                  v-if="prescriptions[index].med_type == '1112'">
144
+                  <div style="display: flex;">
145
+                    <div style="flex: 1;">处方编号:</div>
146
+                    <div style="flex: 1;">日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</div>
147
+                  </div>               
148
+                  <div  style="display: flex;margin: 10px 0;line-height: 24px;padding: 0 10px;">
149
+                    <p style="width: 200px;">姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
150
+                    <p style="width: 200px;">
151
+                      性别:
152
+                      <span v-if="item.patient.gender == 1">男</span>
153
+                      <span v-if="item.patient.gender == 2">女</span>
154
+                    </p>
155
+                    <p style="width: 200px;">年龄:{{ getAge(item.patient) ? getAge(item.patient) : "" }}岁</p>
156
+                  </div>
157
+                  <div style="display: flex;margin: 10px 0;">
158
+                    <div style="flex: 1;">门诊号:{{ hisPatient.number ? hisPatient.number : "" }}</div>
159
+                    <div style="flex: 1;">费别:居民医保/职工医保/自费</div>
160
+                  </div>
161
+                  <div style="display: flex;">
162
+                    <div style="flex: 1;">临床诊断:{{ getDiagnosis(item.info.diagnosis) }}</div>
163
+                    <div style="flex: 1;">身份证号:</div>
164
+                  </div>
165
+                  <div style="flex: 2;margin: 10px 0;">住址/电话:{{ item.patient.home_address }}&nbsp;<span>{{ item.patient.phone }}</span></div>
166
+                  <div style="display: flex;">
167
+                    <div style="flex: 1;">代办人姓名:{{  }}</div>
168
+                    <div style="flex: 1;">身份证号(代办人):{{  }}</div>
99 169
                   </div>
100 170
                 </div>
101 171
               </template>
@@ -129,11 +199,6 @@
129 199
                     <div style="margin-left: 70px" >
130 200
                       <template>
131 201
                           用法:
132
-                          <!-- <div style="display: inline-block;">
133
-                            <template>
134
-                              <span style="margin-right: 0;" v-if="it.arr[0].length==0">{{ it.single_dose }}{{ it.single_dose_unit }}</span>
135
-                            </template>
136
-                          </div> -->
137 202
                         &nbsp;&nbsp;<span>
138 203
                           {{ it.execution_frequency }}&nbsp;{{
139 204
                             it.delivery_way
@@ -155,10 +220,6 @@
155 220
                     </div>
156 221
                   <!-- </div> -->
157 222
                   <template>
158
-                      <!-- <div style="display: inline-block;position: absolute;left:85%;top:0px;margin-left: 5px;" v-if="(item.arr.length>0&&ite[0].groupno!=it.groupno) ||item.arr.length==0">
159
-                        &nbsp;共{{ it.prescribing_number}}{{ it.prescribing_number_unit }}
160
-                      </div> -->
161
-
162 223
                       <div style="display: inline-block;position: absolute;left:85%;top:0px;margin-left: 5px;" >
163 224
                         &nbsp;共{{ it.single_dose }}{{ it.single_dose_unit }}
164 225
                       </div>
@@ -208,87 +269,16 @@
208 269
                   <div style="display: inline-block;position: absolute;left:80%;bottom:30px;margin-left: 5px;" >
209 270
                     ×&nbsp;{{ it.prescribing_number}}
210 271
                   </div>
211
-                  <!-- <div> -->
212
-                    <!-- <div style="display: inline-block;position: absolute;left:80%;bottom:15px;margin-left: 5px;" >
213
-                      ×&nbsp;{{ it.arr[0].prescribing_number}}
214
-                    </div> -->
215
-                  <!-- </div> -->
216 272
                   <template>
217 273
                       <div style="display: inline-block;position: absolute;left:85%;top:0px;margin-left: 5px;">
218 274
                         &nbsp;共{{ it.prescribing_number}}{{ it.prescribing_number_unit }}
219 275
                       </div>
220
-
221
-                      <!-- <div style="display: inline-block;position: absolute;left:85%;top:0px;margin-left: 5px;" >
222
-                        &nbsp;共{{ it.single_dose }}{{ it.single_dose_unit }}
223
-                      </div> -->
224 276
                   </template>
225 277
                 </div>
226
-
227
-                <!-------------------------------------------------------------------------->
228
-                <!-- <template>
229
-                  <div v-for="(ite,indexs) in item.arr" :key="indexs">
230
-                    <div class="drugsOne" :style="{'border-right':item.arr.length>0 && (ite[0].groupno==it.groupno) ? '1px solid black': 'none','width':'80%'}">
231
-                    <span style="font-weight: bold" >
232
-                      {{ index + 1 + "."}}
233
-                    </span>
234
-                    {{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;
235
-                    <span v-if="it.drug.min_unit != it.drug.dose_unit">
236
-                      {{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* {{ it.drug.min_number }}{{ it.drug.min_unit }}/
237
-                      {{it.drug.max_unit}}
238
-                    </span>&nbsp;
239
-                    <div >
240
-                      <template v-if="item.arr.length>0 && ite[0].groupno==it.groupno">
241
-                        <div >
242
-                          <span style="margin-left: 38px;">{{ite[0].advice_name ? ite[0].advice_name : ""}}</span>&nbsp;&nbsp;
243
-                          <span v-if="ite[0].drug.min_unit != ite[0].drug.dose_unit">
244
-                            {{ ite[0].drug.dose }}{{ ite[0].drug.dose_unit }}&nbsp;* {{ ite[0].drug.min_number }}{{ ite[0].drug.min_unit }}/
245
-                            {{ite[0].drug.max_unit}}
246
-                          </span>&nbsp;
247
-                        </div>
248
-                        <div style="display: inline-block;position: absolute;left:85%;top:20px;margin-left: 5px;" >
249
-                          &nbsp;共{{ ite[0].single_dose }}{{ ite[0].single_dose_unit }}
250
-                        </div>
251
-                      </template>
252
-                    </div>
253
-                    <div style="margin-left: 70px">
254
-                      用法:
255
-                      <span v-if="(item.arr.length>0 && item.arr[0][0].groupno!=it.groupno)||item.arr.length==0">{{ it.single_dose }}{{ it.single_dose_unit }}</span>
256
-                      &nbsp;&nbsp;<span>
257
-                        {{ it.execution_frequency }}&nbsp;{{
258
-                          it.delivery_way
259
-                        }}&nbsp;</span>&nbsp;&nbsp;<span>{{ it.advice_desc}}</span>
260
-                    </div>
261
-                    <div style="margin-left: 70px" v-if="it.remark !=''">
262
-                      备注:<span > {{ it.remark }}</span>
263
-                    </div>
264
-                    </div>
265
-                    <div style="display: inline-block;position: absolute;left:80%;bottom:30px;margin-left: 5px;" >
266
-                      ×&nbsp;{{ it.prescribing_number}}
267
-                    </div>
268
-                    <div >
269
-                      <template v-if="item.arr.length>0&&ite[0].groupno==it.groupno">
270
-                        <div style="display: inline-block;position: absolute;left:80%;bottom:15px;margin-left: 5px;" >
271
-                          ×&nbsp;{{ ite[0].prescribing_number}}
272
-                        </div>
273
-                      </template>
274
-                    </div>
275
-                    <template>
276
-                        <div style="display: inline-block;position: absolute;left:85%;top:0px;margin-left: 5px;" v-if="(item.arr.length>0&&item.arr[0][0].groupno!=it.groupno) || item.arr.length==0">
277
-                          &nbsp;共{{ it.prescribing_number}}{{ it.prescribing_number_unit }}
278
-                        </div>
279
-
280
-                        <div style="display: inline-block;position: absolute;left:85%;top:0px;margin-left: 5px;" v-if="item.arr.length>0&&item.arr[0][0].groupno==it.groupno">
281
-                          &nbsp;共{{ it.single_dose }}{{ it.single_dose_unit }}
282
-                        </div>
283
-
284
-                    </template>
285
-                  </div>
286
-
287
-                </template> -->
288
-
289 278
               </div>
290 279
               <template v-if="index==yi&&item.advices.length>5">
291
-                <div style="margin: 20px 0px;">
280
+                <div style="margin: 20px 0px;" 
281
+                  v-if="prescriptions[index].med_type != '1111' && prescriptions[index].med_type != '1112'">
292 282
                   <div style="display: flex;border-top: 1px solid #000;margin: 10px 0;">
293 283
                     <div style="flex: 1;">医师:{{ getAdminUser(item.creator)}}</div>
294 284
                     <div style="flex: 1;">金额:
@@ -302,6 +292,30 @@
302 292
                     <div style="flex: 1;">核/发药师:</div>
303 293
                   </div>
304 294
                 </div>
295
+                <div style="margin: 20px 0px;" v-if="prescriptions[index].med_type == '1112'">
296
+                  <div style="display: flex;border-top: 1px solid #000;margin: 10px 0;">
297
+                    <div style="flex: 1;">医师:{{ getAdminUser(item.creator)}}</div>
298
+                    <div style="flex: 1;">金额:
299
+                      {{ getTotalOne(item.id).toFixed(2)? getTotalOne(item.id).toFixed(2) : 0}}
300
+                    </div>
301
+                    <div style="flex: 1;">其他:</div>
302
+                  </div>
303
+                  <div style="display: flex;">
304
+                    <div style="flex: 1;">审核医师:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</div>
305
+                    <div style="flex: 1;">调配药师:</div>
306
+                    <div style="flex: 1;">核/发药师:</div>
307
+                  </div>
308
+                  <div style="display: flex;margin: 10px 0;"> 
309
+                    <div style="flex: 1;">取药人:</div>
310
+                    <div style="flex: 1;">执行人:</div>
311
+                    <div style="flex: 1;">弃去量:</div>
312
+                    <div style="flex: 1;">证明人:</div>
313
+                  </div>
314
+                  <div style="display: flex;"> 
315
+                    <div style="flex: 1;">收回空安瓿或废贴批号:</div>
316
+                    <div style="flex: 1;">发出药品批号:</div>
317
+                  </div>
318
+                </div>
305 319
               </template>
306 320
             </div>
307 321
 
@@ -352,18 +366,50 @@
352 366
               </div>
353 367
             </div>
354 368
             <div style="text-align: center">(以下空白)</div>
369
+            <div style="text-align: center;">/</div>
370
+            <div style="text-align: center;">/</div>
371
+            <div style="text-align: center;">/</div>
355 372
           </div>
356
-          <div style="display: flex;border-top: 1px solid #000;margin: 10px 0;">
357
-            <div style="flex: 1;">医师:{{ getAdminUser(item.creator)}}</div>
358
-            <div style="flex: 1;">金额:
359
-              {{ getTotalOne(item.id).toFixed(2)? getTotalOne(item.id).toFixed(2) : 0}}
373
+          <div style="margin-left: 70px">
374
+              备注信息:<span style="border-bottom: 1px solid black;"></span>
375
+          </div>
376
+          <div v-if="prescriptions[index].med_type != '1111' && prescriptions[index].med_type != '1112'">
377
+            <div style="display: flex;border-top: 1px solid #000;margin: 10px 0;">
378
+              <div style="flex: 1;">医师:{{ getAdminUser(item.creator)}}</div>
379
+              <div style="flex: 1;">金额:
380
+                {{ getTotalOne(item.id).toFixed(2)? getTotalOne(item.id).toFixed(2) : 0}}
381
+              </div>
382
+              <div style="flex: 1;">收费员:</div>
383
+            </div>
384
+            <div style="display: flex;">
385
+              <div style="flex: 1;">审核医师:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</div>
386
+              <div style="flex: 1;">调配药师:</div>
387
+              <div style="flex: 1;">核/发药师:</div>
360 388
             </div>
361
-            <div style="flex: 1;">收费员:</div>
362 389
           </div>
363
-          <div style="display: flex;">
364
-            <div style="flex: 1;">审核医师:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</div>
365
-            <div style="flex: 1;">调配药师:</div>
366
-            <div style="flex: 1;">核/发药师:</div>
390
+          <div v-if="prescriptions[index].med_type == '1112'">
391
+            <div style="display: flex;border-top: 1px solid #000;margin: 10px 0;">
392
+              <div style="flex: 1;">医师:{{ getAdminUser(item.creator)}}</div>
393
+              <div style="flex: 1;">金额:
394
+                {{ getTotalOne(item.id).toFixed(2)? getTotalOne(item.id).toFixed(2) : 0}}
395
+              </div>
396
+              <div style="flex: 1;">其他:</div>
397
+            </div>
398
+            <div style="display: flex;">
399
+              <div style="flex: 1;">审核医师:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</div>
400
+              <div style="flex: 1;">调配药师:</div>
401
+              <div style="flex: 1;">核/发药师:</div>
402
+            </div>
403
+            <div style="display: flex;margin: 10px 0;"> 
404
+              <div style="flex: 1;">取药人:</div>
405
+              <div style="flex: 1;">执行人:</div>
406
+              <div style="flex: 1;">弃去量:</div>
407
+              <div style="flex: 1;">证明人:</div>
408
+            </div>
409
+            <div style="display: flex;"> 
410
+              <div style="flex: 1;">收回空安瓿或废贴批号:</div>
411
+              <div style="flex: 1;">发出药品批号:</div>
412
+            </div>
367 413
           </div>
368 414
       </div>
369 415
     </div>
@@ -480,7 +526,7 @@ export default{
480 526
     },
481 527
     getTime(value, temp) {
482 528
       if (value != undefined) {
483
-        return uParseTime(value, '{y}年{m}月{d}日')
529
+        return uParseTime(value, '{y}年{m}月{d}日 {h}:{i}:{s}')
484 530
       }
485 531
       return "";
486 532
     },
@@ -764,8 +810,9 @@ export default{
764 810
 }
765 811
 .prescriptionBox {
766 812
   padding: 0 10px;
767
-  min-height: 450px;
813
+  max-height: 450px;
768 814
 }
815
+
769 816
 .Rp {
770 817
   font-size: 22px;
771 818
   font-weight: bold;

+ 1 - 0
src/xt_pages/outpatientDoctorStation/template/printTenOne.vue View File

@@ -149,6 +149,7 @@
149 149
               :src="setAdminUserES(item.creator,item.doctor)"
150 150
               alt=""
151 151
               srcset=""
152
+              v-else
152 153
             />
153 154
           </p>
154 155
           <p style="line-height: 50px;" v-if="org_id==10217||org_id==0">打印日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>

+ 48 - 0
src/xt_pages/qcd/basicInformationAnalysis.vue View File

@@ -262,6 +262,39 @@
262 262
                       <p>血浆胆红素吸附+HP:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
263 263
                       <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
264 264
                   </span>
265
+
266
+                  <span v-if="item.mode_id == 'HPD'">
267
+                      <p>HPD:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
268
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
269
+                  </span>
270
+                  <span v-if="item.mode_id == 'HDP'">
271
+                      <p>HDP:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
272
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
273
+                  </span>
274
+                  <span v-if="item.mode_id == 'HFD'">
275
+                      <p>HFD:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
276
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
277
+                  </span>
278
+                  <span v-if="item.mode_id == 'HDF100'">
279
+                      <p>HDF100:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
280
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
281
+                  </span>
282
+                  <span v-if="item.mode_id == 'HDF600'">
283
+                      <p>HDF600:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
284
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
285
+                  </span>
286
+                  <span v-if="item.mode_id == 'HDF800'">
287
+                      <p>HDF800:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
288
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
289
+                  </span>
290
+                  <!-- <span v-if="item.mode_id == 'HDF800'">
291
+                      <p>HDF800:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
292
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
293
+                  </span> -->
294
+                  <span v-if="item.mode_id == 'HDF1000'">
295
+                      <p>HDF1000:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
296
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
297
+                  </span>
265 298
                </div>
266 299
               </div>
267 300
             </div>
@@ -1044,6 +1077,21 @@ export default {
1044 1077
             if(modedate[i].mode_id == 32){
1045 1078
               modedate[i].mode_id = "HDP"
1046 1079
             }
1080
+            if(modedate[i].mode_id == 33){
1081
+              modedate[i].mode_id = "HFD"
1082
+            }
1083
+            if(modedate[i].mode_id == 34){
1084
+              modedate[i].mode_id = "HDF100"
1085
+            }
1086
+            if(modedate[i].mode_id == 35){
1087
+              modedate[i].mode_id = "HDF600"
1088
+            }
1089
+            if(modedate[i].mode_id == 36){
1090
+              modedate[i].mode_id = "HDF800"
1091
+            }
1092
+            if(modedate[i].mode_id == 37){
1093
+              modedate[i].mode_id = "HDF1000"
1094
+            }
1047 1095
             this.modetype = modedate
1048 1096
 
1049 1097
             // this.modesData.xAxis.push(modedate[i].mode_id)

+ 5 - 1
src/xt_pages/qcd/officesControlAnalysis/time.vue View File

@@ -690,9 +690,13 @@ export default {
690 690
           this.isLoading = false
691 691
 
692 692
           var count = response.data.data.count
693
-
693
+          
694
+          console.log("cuont--------------------",count)
695
+          
694 696
           var countwo = response.data.data.countwo
695 697
 
698
+          console.log("countwo--------------------",countwo)
699
+
696 700
           var systolicTotal = response.data.data.systolicTotal
697 701
           
698 702
           var sysstandTotal = 0

+ 7 - 4
src/xt_pages/stock/Dialog/goodInfoDailog.vue View File

@@ -231,12 +231,13 @@
231 231
              </el-form-item>
232 232
 
233 233
 
234
-            <el-form-item label="批准文号:" >
234
+            <el-form-item label="批准文号:" v-if="org_id!=10653&&org_id!=0">
235 235
               <el-input v-model="form.number" style="width:180px"></el-input>
236 236
             </el-form-item>
237 237
 
238
-
239
-
238
+            <el-form-item label="生产许可证号:" v-if="org_id ==10653 || org_id == 0">
239
+              <el-input v-model="form.number" style="width:180px"></el-input>
240
+            </el-form-item>
240 241
 
241 242
             <el-form-item label="备注 : " prop="name" style="width:100%;">
242 243
               <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="form.remark"></el-input>
@@ -413,6 +414,7 @@
413 414
           is_warehouse:"1",
414 415
           bbx01:"",
415 416
           bby01:"",
417
+          
416 418
         },
417 419
 
418 420
         rules: {
@@ -456,6 +458,7 @@
456 458
          {id: "1",name: "是"},
457 459
          {id: "2",name: "否"}
458 460
         ],
461
+        org_id:0
459 462
       }
460 463
     },
461 464
     props: {
@@ -744,7 +747,7 @@
744 747
       }
745 748
     },
746 749
     created(){
747
-
750
+      this.org_id = this.$store.getters.xt_user.org.id
748 751
       this.getlist()
749 752
       //获取所有经销商
750 753
       this.GetAllConfig()

+ 11 - 3
src/xt_pages/stock/detail/cancelStockDetail.vue View File

@@ -80,8 +80,8 @@
80 80
     </div>
81 81
 
82 82
 
83
-    <el-row :gutter="12" style="margin-top: 10px">
84
-      <el-table
83
+    <!-- <el-row :gutter="12" style="margin-top: 10px"> -->
84
+      <el-table class="table"
85 85
         :data="cancelStockDate"
86 86
         :class="signAndWeighBoxPatients"
87 87
         border
@@ -93,6 +93,7 @@
93 93
           backgroundColor: 'rgb(245, 247, 250)',
94 94
           color: '#606266'
95 95
         }"
96
+        height="calc(100vh - 300px)"
96 97
       >
97 98
         <el-table-column label="单据编号" align="center" width="200">
98 99
           <template slot-scope="scope">
@@ -181,7 +182,7 @@
181 182
         :total="total"
182 183
       >
183 184
       </el-pagination>
184
-    </el-row>
185
+    <!-- </el-row> -->
185 186
   </div>
186 187
 </template>
187 188
 
@@ -792,6 +793,13 @@ export default {
792 793
     border-bottom: 1px #dcdfe6 solid;
793 794
     margin: 0px 0 20px 0;
794 795
   }
796
+  // .table{
797
+  //   display: flex;
798
+  //   flex-direction: column;
799
+  //   .el-table__header-wrapper {
800
+  //     height: 70px !important; 
801
+  //   }
802
+  // }
795 803
 }
796 804
 
797 805
 .edit_separater {

+ 82 - 77
src/xt_pages/stock/detail/stockInDetail.vue View File

@@ -64,6 +64,7 @@
64 64
           format="yyyy-MM-dd"
65 65
           value-format="yyyy-MM-dd"
66 66
           @change="startTimeChange"
67
+          
67 68
         ></el-date-picker>
68 69
         <span class="cellLine"> - </span>
69 70
         <el-date-picker
@@ -82,82 +83,84 @@
82 83
 
83 84
     </div>
84 85
 
85
-    <el-row :gutter="12" style="margin-top: 10px">
86
-      <el-table
87
-        :data="cancelStockDate"
88
-        :class="signAndWeighBoxPatients"
89
-        border
90
-        highlight-current-row
91
-        ref="multipleTable"
92
-        @selection-change="select"
93
-        :row-style="{ color: '#303133' }"
94
-        :header-cell-style="{
95
-          backgroundColor: 'rgb(245, 247, 250)',
96
-          color: '#606266'
97
-        }"
98
-      >
99
-        <el-table-column label="单据编号" align="center" width="200">
100
-          <template slot-scope="scope">
101
-            {{ scope.row.warehousing_order }}
102
-          </template>
103
-        </el-table-column>
104
-
105
-        <el-table-column label="耗材类型" align="center">
106
-          <template slot-scope="scope">
107
-            {{ typeName(scope.row.good_type_id) }}
108
-          </template>
109
-        </el-table-column>
110
-
111
-        <el-table-column label="耗材名称" align="center">
112
-          <template slot-scope="scope">
113
-            {{ typeNameOne(scope.row.good_id) }}
114
-
115
-          </template>
116
-        </el-table-column>
117
-
118
-        <el-table-column label="规格型号" align="center">
119
-          <template slot-scope="scope">
120
-            {{ specificationName(scope.row.good_id) }}
121
-
122
-          </template>
123
-        </el-table-column>
124
-
125
-
126
-        <el-table-column label="操作时间" align="center">
127
-          <template slot-scope="scope">
128
-            {{ getTime(scope.row.Warehousing.warehousing_time) }}
129
-          </template>
130
-        </el-table-column>
131
-        <el-table-column label="制单人" align="center">
132
-          <template slot-scope="scope">
133
-            {{ getXuserName(scope.row.Warehousing.creater) }}
134
-          </template>
135
-        </el-table-column>
136
-        <el-table-column label="仓库名称" align="center">
137
-          <template slot-scope="scope">
138
-            {{getStorehouseName(scope.row.storehouse_id) }}
139
-          </template>
140
-        </el-table-column>
141
-        <el-table-column label="进货价" align="center">
142
-          <template slot-scope="scope">
143
-            {{ scope.row.price }}
144
-          </template>
145
-        </el-table-column>
146
-        <el-table-column label="数量" align="center">
147
-          <template slot-scope="scope">
148
-            {{ scope.row.warehousing_count }}
149
-          </template>
150
-        </el-table-column>
151
-        <el-table-column label="总价" align="center">
152
-          <template slot-scope="scope">
153
-            <span v-if="scope.row.is_total == 0">{{
154
-              getTotal(scope.row.price, scope.row.warehousing_count)
155
-            }}</span>
156
-            <span v-else>{{ scope.row.total }}</span>
157
-          </template>
158
-        </el-table-column>
159
-      </el-table>
160
-
86
+    <!-- <el-row :gutter="12" style="margin-top: 10px"> -->
87
+      <div style="width: 100%;">
88
+        <el-table
89
+          class="table"
90
+          :data="cancelStockDate"
91
+          :class="signAndWeighBoxPatients"
92
+          border
93
+          highlight-current-row
94
+          ref="multipleTable"
95
+          height="calc(100vh - 300px)"
96
+          @selection-change="select"
97
+          :row-style="{ color: '#303133' }"
98
+          :header-cell-style="{
99
+            backgroundColor: 'rgb(245, 247, 250)',
100
+            color: '#606266'
101
+          }"
102
+        >
103
+          <el-table-column label="单据编号" align="center" width="200">
104
+            <template slot-scope="scope">
105
+              {{ scope.row.warehousing_order }}
106
+            </template>
107
+          </el-table-column>
108
+
109
+          <el-table-column label="耗材类型" align="center">
110
+            <template slot-scope="scope">
111
+              {{ typeName(scope.row.good_type_id) }}
112
+            </template>
113
+          </el-table-column>
114
+
115
+          <el-table-column label="耗材名称" align="center">
116
+            <template slot-scope="scope">
117
+              {{ typeNameOne(scope.row.good_id) }}
118
+
119
+            </template>
120
+          </el-table-column>
121
+
122
+          <el-table-column label="规格型号" align="center">
123
+            <template slot-scope="scope">
124
+              {{ specificationName(scope.row.good_id) }}
125
+
126
+            </template>
127
+          </el-table-column>
128
+
129
+          <el-table-column label="操作时间" align="center">
130
+            <template slot-scope="scope">
131
+              {{ getTime(scope.row.Warehousing.warehousing_time) }}
132
+            </template>
133
+          </el-table-column>
134
+          <el-table-column label="制单人" align="center">
135
+            <template slot-scope="scope">
136
+              {{ getXuserName(scope.row.Warehousing.creater) }}
137
+            </template>
138
+          </el-table-column>
139
+          <el-table-column label="仓库名称" align="center">
140
+            <template slot-scope="scope">
141
+              {{getStorehouseName(scope.row.storehouse_id) }}
142
+            </template>
143
+          </el-table-column>
144
+          <el-table-column label="进货价" align="center">
145
+            <template slot-scope="scope">
146
+              {{ scope.row.price }}
147
+            </template>
148
+          </el-table-column>
149
+          <el-table-column label="数量" align="center">
150
+            <template slot-scope="scope">
151
+              {{ scope.row.warehousing_count }}
152
+            </template>
153
+          </el-table-column>
154
+          <el-table-column label="总价" align="center">
155
+            <template slot-scope="scope">
156
+              <span v-if="scope.row.is_total == 0">{{
157
+                getTotal(scope.row.price, scope.row.warehousing_count)
158
+              }}</span>
159
+              <span v-else>{{ scope.row.total }}</span>
160
+            </template>
161
+          </el-table-column>
162
+        </el-table>
163
+      </div>
161 164
       <el-pagination
162 165
         @size-change="handleSizeChange"
163 166
         @current-change="handleCurrentChange"
@@ -169,7 +172,7 @@
169 172
         :total="total"
170 173
       >
171 174
       </el-pagination>
172
-    </el-row>
175
+    <!-- </el-row> -->
173 176
   </div>
174 177
 </template>
175 178
 
@@ -914,6 +917,7 @@ export default {
914 917
   margin-top: 15px;
915 918
   margin-bottom: 15px;
916 919
 }
920
+
917 921
 </style>
918 922
 
919 923
 <style>
@@ -939,4 +943,5 @@ export default {
939 943
 .el-table::before {
940 944
   background-color: #d0d3da;
941 945
 }
946
+
942 947
 </style>

+ 11 - 3
src/xt_pages/stock/detail/stockOutDetail.vue View File

@@ -90,8 +90,8 @@
90 90
 
91 91
     </div>
92 92
 
93
-    <el-row :gutter="12" style="margin-top: 10px">
94
-      <el-table
93
+    <!-- <el-row :gutter="12" style="margin-top: 10px"> -->
94
+      <el-table class="table"
95 95
         :data="cancelStockDate"
96 96
         :class="signAndWeighBoxPatients"
97 97
         border
@@ -103,6 +103,7 @@
103 103
           backgroundColor: 'rgb(245, 247, 250)',
104 104
           color: '#606266'
105 105
         }"
106
+        height="calc(100vh - 300px)"
106 107
       >
107 108
         <el-table-column label="单据编号" align="center" width="200">
108 109
           <template slot-scope="scope">
@@ -202,7 +203,7 @@
202 203
         :total="total"
203 204
       >
204 205
       </el-pagination>
205
-    </el-row>
206
+    <!-- </el-row> -->
206 207
   </div>
207 208
 </template>
208 209
 
@@ -1148,6 +1149,13 @@ export default {
1148 1149
   margin-top: 15px;
1149 1150
   margin-bottom: 15px;
1150 1151
 }
1152
+// .table{
1153
+//   display: flex;
1154
+//   flex-direction: column;
1155
+//   .el-table__header-wrapper {
1156
+//     height: 70px !important; 
1157
+//   }
1158
+// }
1151 1159
 </style>
1152 1160
 
1153 1161
 <style>

+ 5 - 3
src/xt_pages/stock/drugs/components/drugCancelDetail.vue View File

@@ -70,8 +70,8 @@
70 70
       </div>
71 71
     </div>
72 72
 
73
-    <el-row :gutter="12" style="margin-top: 10px">
74
-      <el-table
73
+    <!-- <el-row :gutter="12" style="margin-top: 10px"> -->
74
+      <el-table class="eltable"
75 75
         :data="tableData"
76 76
         :class="signAndWeighBoxPatients"
77 77
         border
@@ -83,6 +83,7 @@
83 83
           backgroundColor: 'rgb(245, 247, 250)',
84 84
           color: '#606266'
85 85
         }"
86
+        height="calc(100vh - 300px)"
86 87
       >
87 88
         <el-table-column label="单据编号" align="center" width="200">
88 89
           <template slot-scope="scope">
@@ -166,7 +167,7 @@
166 167
         :total="total"
167 168
       >
168 169
       </el-pagination>
169
-    </el-row>
170
+    <!-- </el-row> -->
170 171
   </div>
171 172
 </template>
172 173
 
@@ -561,6 +562,7 @@ export default {
561 562
   margin-top: 15px;
562 563
   margin-bottom: 15px;
563 564
 }
565
+
564 566
 </style>
565 567
 
566 568
 <style>

+ 5 - 3
src/xt_pages/stock/drugs/components/drugInOrder.vue View File

@@ -80,8 +80,8 @@
80 80
         ></el-date-picker>
81 81
     </div>
82 82
 
83
-    <el-row :gutter="12" style="margin-top: 10px">
84
-      <el-table
83
+    <!-- <el-row :gutter="12" style="margin-top: 10px"> -->
84
+      <el-table class="eltable"
85 85
         :data="cancelStockDate"
86 86
         :class="signAndWeighBoxPatients"
87 87
         border
@@ -93,6 +93,7 @@
93 93
           backgroundColor: 'rgb(245, 247, 250)',
94 94
           color: '#606266'
95 95
         }"
96
+        height="calc(100vh - 300px)"
96 97
       >
97 98
         <el-table-column label="单据编号" align="center" width="200">
98 99
           <template slot-scope="scope">
@@ -169,7 +170,7 @@
169 170
         :total="total"
170 171
       >
171 172
       </el-pagination>
172
-    </el-row>
173
+    <!-- </el-row> -->
173 174
   </div>
174 175
 </template>
175 176
 
@@ -607,6 +608,7 @@ export default {
607 608
   margin-top: 15px;
608 609
   margin-bottom: 15px;
609 610
 }
611
+
610 612
 </style>
611 613
 
612 614
 <style>

+ 5 - 3
src/xt_pages/stock/drugs/components/drugOutDetail.vue View File

@@ -97,8 +97,8 @@
97 97
     </div>
98 98
 
99 99
 
100
-    <el-row :gutter="12" style="margin-top: 10px">
101
-      <el-table
100
+    <!-- <el-row :gutter="12" style="margin-top: 10px"> -->
101
+      <el-table class="eltable"
102 102
         :data="tableData"
103 103
         :class="signAndWeighBoxPatients"
104 104
         border
@@ -110,6 +110,7 @@
110 110
           backgroundColor: 'rgb(245, 247, 250)',
111 111
           color: '#606266'
112 112
         }"
113
+        height="calc(100vh - 300px)"
113 114
       >
114 115
         <el-table-column label="单据编号" align="center" width="200">
115 116
           <template slot-scope="scope">
@@ -212,7 +213,7 @@
212 213
         :total="total"
213 214
       >
214 215
       </el-pagination>
215
-    </el-row>
216
+    <!-- </el-row> -->
216 217
   </div>
217 218
 </template>
218 219
 
@@ -1151,6 +1152,7 @@ export default {
1151 1152
   margin-top: 15px;
1152 1153
   margin-bottom: 15px;
1153 1154
 }
1155
+
1154 1156
 </style>
1155 1157
 
1156 1158
 <style>

+ 198 - 3
src/xt_pages/stock/drugs/components/drugQuery.vue View File

@@ -180,9 +180,10 @@
180 180
             <el-table-column label="总库存量" align="center">
181 181
              <template slot-scope="scope">
182 182
                 <div v-if="getWarehoseInfo(scope.row.drug_warehouse_info) > 0">
183
-                   <span v-if="scope.row.total_count<=scope.row.drug_stock_limit_count" style="color:red">{{getSumCount(scope.row.drug_stock_count,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}<i class="el-icon-warning"></i></span> 
183
+                 
184
+                   <span v-if="scope.row.sum_count<= (parseInt(scope.row.drug_stock_limit)*scope.row.min_number)" style="color:red">{{getSumCount(scope.row.drug_stock_count,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}<i class="el-icon-warning"></i></span> 
184 185
                    
185
-                   <span v-if="scope.row.total_count >scope.row.drug_stock_limit_count">{{getSumCount(scope.row.drug_stock_count,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
186
+                   <span v-if="scope.row.sum_count > (parseInt(scope.row.drug_stock_limit)*scope.row.min_number)">{{getSumCount(scope.row.drug_stock_count,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
186 187
                 </div>
187 188
               </template>
188 189
             </el-table-column>
@@ -206,7 +207,15 @@
206 207
                     @click="handleBatch(scope.row)"
207 208
                     >批次
208 209
                     </el-button>
210
+                    <!-- <el-button
211
+                      size="small"
212
+                      type="primary"
213
+                      @click="handleCheckBatch(scope.row)"
214
+                      >自查
215
+                    </el-button> -->
209 216
                 </template>
217
+
218
+                 
210 219
               </el-table-column>
211 220
           </el-table>
212 221
            <el-pagination
@@ -345,13 +354,61 @@
345 354
     <el-button @click="hide()">取 消</el-button>
346 355
   </span>
347 356
   </el-dialog>
357
+
358
+
359
+  <el-dialog
360
+    title="自查数据"
361
+    :visible.sync="checkdialogVisible"
362
+    width="50%">
363
+    <span>
364
+      <span>ID:{{drug_id}}</span>
365
+      <el-table
366
+        :data="checkData"
367
+        border
368
+        style="width: 100%">
369
+        <el-table-column prop="date" label="开药日期" width="180" align="center">
370
+          <template slot-scope="scope" >
371
+              {{ getTime(scope.row.advice_date) }}
372
+          </template>
373
+        </el-table-column>
374
+        <el-table-column prop="date" label="时间搓" width="180" align="center">
375
+          <template slot-scope="scope" >
376
+              {{scope.row.advice_date}}
377
+          </template>
378
+        </el-table-column>
379
+        <el-table-column prop="name" label="开药数量" width="180" align="center">
380
+          <template slot-scope="scope" >
381
+              {{ scope.row.check_count }}
382
+          </template>
383
+        </el-table-column>
384
+        <el-table-column prop="address" label="出库数量" align="center">
385
+          <template slot-scope="scope" >
386
+             {{getCount(scope.row.advice_date)}}
387
+          </template>
388
+        </el-table-column>
389
+
390
+        <el-table-column prop="address" label="是否异常" align="center">
391
+          <template slot-scope="scope" >
392
+             <span v-if="scope.row.check_count==getCount(scope.row.advice_date)">否</span>
393
+             <span v-if="scope.row.check_count!=getCount(scope.row.advice_date)" style="color:red">是</span>
394
+          </template>
395
+        </el-table-column>
396
+      </el-table>
397
+    </span>
398
+    <span slot="footer" class="dialog-footer">
399
+      <el-button @click="checkdialogVisible = false">取 消</el-button>
400
+      <el-button type="primary" @click="checkdialogVisible = false">确 定</el-button>
401
+    </span>
402
+  </el-dialog>
403
+
348 404
   </div>
349 405
 </template>
350 406
 <script>
351 407
 import { getStorehouseList,getDrugNewQuery,getDrugWarehouseOutInfoById } from "@/api/drug/drug"
352
-import { createDrugStockAutomaticReduceConfig, getDrugStockAutomaticReduceConfig,getDrugInitDataList } from '@/api/drug/drug_stock'
408
+import { createDrugStockAutomaticReduceConfig, getDrugStockAutomaticReduceConfig,getDrugInitDataList,getCheckDrugBatchList } from '@/api/drug/drug_stock'
353 409
 import { uParseTime } from '@/utils/tools'
354 410
 import { max } from 'moment'
411
+
355 412
 const moment = require('moment')
356 413
 export default {
357 414
 
@@ -408,6 +465,10 @@ export default {
408 465
      drug_type: 0,
409 466
      storehouseId:0,
410 467
      dealerList:[],
468
+     checkdialogVisible:false,
469
+     checkData:[],
470
+     outData:[],
471
+     drug_id:0,
411 472
     }
412 473
   
413 474
   },
@@ -484,6 +545,9 @@ export default {
484 545
             var countList  = response.data.data.countList
485 546
             console.log("countList999999999999",countList)
486 547
             for (let i = 0; i < countList.length; i++) {
548
+               if(countList[i].drug_stock_limit == ""){
549
+                countList[i].drug_stock_limit = 0
550
+               }
487 551
                for (let j = 0; j < countList[i].drug_warehouse_info.length; j++) {
488 552
                 if (countList[i].max_unit == countList[i].drug_warehouse_info[j].max_unit) {
489 553
                     countList[i].drug_warehouse_info[j].stock_max_number =countList[i].min_number *countList[i].drug_warehouse_info[j].stock_max_number
@@ -980,6 +1044,137 @@ export default {
980 1044
           over_plus,
981 1045
       });
982 1046
     },
1047
+    handleCheckBatch(row){
1048
+      this.drug_id = row.id
1049
+      getCheckDrugBatchList(row.id).then(response=>{
1050
+         if(response.data.state ==1){
1051
+          var advicelist =  response.data.data.advicelist
1052
+          var baseDrugList = response.data.data.baseDrugList
1053
+
1054
+          var newArr= []
1055
+          var newArrOne = []
1056
+          if (advicelist.length >0){
1057
+            for(let i=0;i<advicelist.length;i++){
1058
+              advicelist[i].is_check_count =0
1059
+              if(advicelist[i].prescribing_number_unit == baseDrugList.max_unit && baseDrugList.max_unit!=baseDrugList.min_unit){
1060
+                advicelist[i].is_check_count = advicelist[i].prescribing_number * baseDrugList.min_number
1061
+              }
1062
+
1063
+              if(advicelist[i].prescribing_number_unit == baseDrugList.min_unit && baseDrugList.max_unit!=baseDrugList.min_unit){
1064
+                advicelist[i].is_check_count = advicelist[i].prescribing_number 
1065
+              }
1066
+
1067
+              if(advicelist[i].prescribing_number_unit == baseDrugList.max_unit && baseDrugList.max_unit==baseDrugList.min_unit){
1068
+                advicelist[i].is_check_count = advicelist[i].prescribing_number 
1069
+              }
1070
+            }
1071
+            console.log("advicelist",advicelist)
1072
+
1073
+            let dataInfoOne = {}
1074
+            advicelist.forEach((item, index) => {
1075
+            let { advice_date } = item
1076
+              if (!dataInfoOne[advice_date]) {
1077
+                dataInfoOne[advice_date] = {
1078
+                  advice_date:item.advice_date,
1079
+                  check_count:0,
1080
+                  child:[]
1081
+                }
1082
+              }
1083
+            })
1084
+            let hisarr = Object.values(dataInfoOne)
1085
+           
1086
+            
1087
+            if(hisarr!=null && hisarr.length>0){
1088
+               for(let i=0;i<hisarr.length;i++){
1089
+                 for(let j=0;j<advicelist.length;j++){
1090
+                    if(hisarr[i].advice_date == advicelist[j].advice_date){
1091
+                       hisarr[i].child.push(advicelist[j])
1092
+                    }
1093
+                 } 
1094
+               }
1095
+            }
1096
+            for(let i=0;i<hisarr.length;i++){
1097
+              for(let j=0;j<hisarr[i].child.length;j++){
1098
+                 hisarr[i].check_count +=hisarr[i].child[j].is_check_count
1099
+              }
1100
+            }
1101
+            console.log("00000000000000000",hisarr)
1102
+
1103
+            newArr=hisarr
1104
+            this.checkData = []
1105
+            this.checkData = hisarr
1106
+          }
1107
+
1108
+          var outInfo = response.data.data.outInfo
1109
+
1110
+          if(outInfo.length>0){
1111
+            for(let i=0;i<outInfo.length;i++){
1112
+              outInfo[i].is_check_count =0
1113
+              if(outInfo[i].count_unit == baseDrugList.max_unit && baseDrugList.max_unit!=baseDrugList.min_unit){
1114
+                outInfo[i].is_check_count = outInfo[i].count * baseDrugList.min_number
1115
+              }
1116
+
1117
+              if(outInfo[i].count_unit == baseDrugList.min_unit && baseDrugList.max_unit!=baseDrugList.min_unit){
1118
+                outInfo[i].is_check_count = outInfo[i].count 
1119
+              }
1120
+
1121
+              if(outInfo[i].count_unit == baseDrugList.max_unit && baseDrugList.max_unit==baseDrugList.min_unit){
1122
+                outInfo[i].is_check_count = outInfo[i].count 
1123
+              }
1124
+            }
1125
+
1126
+            let dataInfoOne = {}
1127
+            outInfo.forEach((item, index) => {
1128
+            let { sys_record_time } = item
1129
+              if (!dataInfoOne[sys_record_time]) {
1130
+                dataInfoOne[sys_record_time] = {
1131
+                  sys_record_time:item.sys_record_time,
1132
+                  check_count:0,
1133
+                  child:[]
1134
+                }
1135
+              }
1136
+            })
1137
+            let hisarr = Object.values(dataInfoOne)
1138
+           
1139
+            
1140
+            if(hisarr!=null && hisarr.length>0){
1141
+               for(let i=0;i<hisarr.length;i++){
1142
+                 for(let j=0;j<outInfo.length;j++){
1143
+                    if(hisarr[i].sys_record_time == outInfo[j].sys_record_time){
1144
+                       hisarr[i].child.push(outInfo[j])
1145
+                    }
1146
+                 } 
1147
+               }
1148
+            }
1149
+            for(let i=0;i<hisarr.length;i++){
1150
+              for(let j=0;j<hisarr[i].child.length;j++){
1151
+                 hisarr[i].check_count +=hisarr[i].child[j].is_check_count
1152
+              }
1153
+            }
1154
+            console.log("00000000000000000",hisarr)
1155
+
1156
+            newArrOne = hisarr
1157
+            this.outData=[]
1158
+            this.outData = hisarr
1159
+          }
1160
+          
1161
+          console.log("newArrOne",newArrOne)
1162
+          console.log("newarr",newArr)
1163
+          var outInfoOne = response.data.data.outInfoOne
1164
+          var drugflow = response.data.data.drugflow
1165
+          this.checkdialogVisible = true
1166
+         }
1167
+      })
1168
+    },
1169
+    getCount(advice_date){
1170
+      var count = 0
1171
+     for(let i=0;i<this.outData.length;i++){
1172
+        if(advice_date == this.outData[i].sys_record_time){
1173
+            count = this.outData[i].check_count
1174
+        }
1175
+     }
1176
+     return count
1177
+    },
983 1178
    // 合并单元格样式
984 1179
     cellStyle({ row, column, rowIndex, columnIndex }) {
985 1180
       let arr = [5,6, 7, 8, 9,10,11];

+ 5 - 1
src/xt_pages/stock/drugs/components/purchaseNewDrugQuery.vue View File

@@ -388,8 +388,9 @@ export default {
388 388
                }
389 389
              }
390 390
 
391
+            if(this.org_id !=10210 && this.org_id!=0 && this.org_id !=10402 && this.org_id !=10215){
391 392
 
392
-            //  新版
393
+               //  新版
393 394
              if(list[i].new_drug_in_flow_info!=null && list[i].new_drug_in_flow_info.length>0){
394 395
                 for(let j=0;j<list[i].new_drug_in_flow_info.length;j++){
395 396
                    if(list[i].max_unit == list[i].new_drug_in_flow_info[j].max_unit){
@@ -430,6 +431,9 @@ export default {
430 431
                 }
431 432
              }
432 433
 
434
+
435
+            }
436
+           
433 437
             }
434 438
 
435 439
             console.log("list23323223322332232323322323wode",list)

+ 15 - 4
src/xt_pages/stock/drugs/drugStockFlow.vue View File

@@ -690,12 +690,23 @@
690 690
             if(this.tableList[i].consumable_type!=2 && this.tableList[i].consumable_type!=3 && this.tableList[i].consumable_type!=5 &&  this.tableList[i].consumable_type != 7){
691 691
               this.tableList[i].coutn_unit = (this.tableList[i].count.toString()) +this.tableList[i].max_unit
692 692
             }
693
+
694
+           
695
+            if(this.tableList[i].consumable_type == 2 ||this.tableList[i].consumable_type == 3 || this.tableList[i].consumable_type == 5 ||  this.tableList[i].consumable_type ==7  && (parseInt(this.tableList[i].count%this.tableList[i].BaseDrugLib.min_number) >0)){
696
+            
697
+              this.tableList[i].coutn_unit = (parseInt(this.tableList[i].count%this.tableList[i].BaseDrugLib.min_number)).toString() +  this.tableList[i].BaseDrugLib.min_unit
698
+              
699
+            }
700
+
693 701
             if(this.tableList[i].consumable_type == 2 ||this.tableList[i].consumable_type == 3 || this.tableList[i].consumable_type == 5 ||  this.tableList[i].consumable_type ==7  && (parseInt(this.tableList[i].count/this.tableList[i].BaseDrugLib.min_number) >0)){
702
+             
694 703
               this.tableList[i].coutn_unit = (parseInt(this.tableList[i].count/this.tableList[i].BaseDrugLib.min_number)).toString() +  this.tableList[i].BaseDrugLib.max_unit
704
+             
695 705
             }
696
-            if(this.tableList[i].consumable_type == 2 ||this.tableList[i].consumable_type == 3 || this.tableList[i].consumable_type == 5 ||  this.tableList[i].consumable_type ==7  && (this.tableList[i].count%this.tableList[i].BaseDrugLib.min_number >0)){
697
-              this.tableList[i].coutn_unit = (parseInt(this.tableList[i].count%this.tableList[i].BaseDrugLib.min_number)).toString() +  this.tableList[i].BaseDrugLib.min_unit
698
-            }
706
+
707
+            
708
+
709
+
699 710
 
700 711
             if(this.tableList[i].price>0){
701 712
               this.tableList[i].total_price = this.tableList[i].price
@@ -721,7 +732,7 @@
721 732
         const data = this.formatJson(filterVal, this.tableList) 
722 733
         console.log("datawoowow",data)
723 734
          
724
-      
735
+        
725 736
          excel.export_json_to_excel({
726 737
            header: multiHeader,
727 738
            data,

+ 102 - 14
src/xt_pages/stock/drugs/drugStockOutOrder.vue View File

@@ -344,7 +344,7 @@
344 344
             <template slot-scope="scope">
345 345
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
346 346
                   <td style="border-right: none; border-inline-end: none;text-align: center">
347
-                    <span v-if="org_id!=0 && org_id!=10480 && org_id!=10210&&org_id!=10188 && org_id!=10217">
347
+                    <span v-if="org_id!=10480 && org_id!=10210&&org_id!=10188 && org_id!=10217">
348 348
                       <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{getPrice(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span> 
349 349
                       <span v-if="is_sys == 0">
350 350
                         <span v-if="scope.row.child.length == 1">
@@ -356,7 +356,7 @@
356 356
                       
357 357
                       </span>
358 358
                     </span>
359
-                    <span v-if="org_id==0 || org_id ==10480 || org_id==10210 || org_id ==10188 || org_id ==10217">
359
+                    <span v-if="org_id ==10480 || org_id==10210 || org_id ==10188 || org_id ==10217">
360 360
                         {{ scope.row.min_price }}
361 361
                     </span>
362 362
                     
@@ -369,21 +369,19 @@
369 369
             <template slot-scope="scope">
370 370
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
371 371
                   <td style="border-right: none; border-inline-end: none;text-align: center">
372
-                    <span v-if="org_id!=0 && org_id!=10480 && org_id!=10210&&org_id!=10188 && org_id!=10217">
372
+                    <span v-if="org_id!=10480 && org_id!=10210&&org_id!=10188 && org_id!=10217">
373 373
                       <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{getTotalPrice(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}} </span>
374 374
                     <span v-if="is_sys == 0">
375
-                      <span v-if="scope.row.child.length == 1">{{item.retail_price}}</span> 
376
-                      <span v-if="scope.row.child.length > 1">{{item.count * item.price}}</span> 
375
+                      <span v-if="scope.row.child.length == 1">{{item.count * item.retail_price}} </span> 
376
+                      <span v-if="scope.row.child.length > 1">{{item.count * item.price}} </span> 
377 377
                     </span>
378 378
                     </span>
379 379
 
380
-                    <span v-if="org_id==0 || org_id ==10480 || org_id==10210 || org_id ==10188 || org_id ==10217">
380
+                    <span v-if="org_id ==10480 || org_id==10210 || org_id ==10188 || org_id ==10217">
381 381
                       <!-- {{(item.count * item.price).toFixed(2)}} -->
382 382
                      <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{(getOutCountNightTen(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)*scope.row.min_price).toFixed(2)}}</span>  
383 383
                      <span v-if="is_sys==0"> {{(getOutCountNightTenOne(item.batch_number,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)*item.price).toFixed(2)}}</span>
384 384
                     </span>
385
-                  
386
-
387 385
                   </td>
388 386
                </tr>
389 387
             </template>
@@ -454,7 +452,18 @@
454 452
                 >使用明细</span
455 453
               >
456 454
             </template>
455
+
456
+           
457 457
           </el-table-column>
458
+          <!-- <el-table-column label="自查自检" align="center">
459
+            <template slot-scope="scope">
460
+              <span style="color: #589ff8" @click="getDrugPatientName(scope.row)"
461
+                >自查</span
462
+              >
463
+            </template>
464
+
465
+           
466
+          </el-table-column> -->
458 467
         </el-table>
459 468
       </div>
460 469
     </div>
@@ -568,6 +577,44 @@
568 577
         >
569 578
       </span>
570 579
     </el-dialog>
580
+
581
+
582
+    <el-dialog
583
+      title="详细"
584
+      :visible.sync="AdviceDialogVisible"
585
+      width="40%">
586
+      <span>
587
+        <el-table
588
+          :data="adviceList"
589
+          border
590
+          style="width: 100%">
591
+          <el-table-column prop="date" label="序号" width="100" align="center">
592
+              <template slot-scope="scope"> 
593
+                {{scope.$index + 1}}
594
+              </template>
595
+          </el-table-column>
596
+          <el-table-column prop="date" label="患者姓名" width="100" align="center">
597
+              <template slot-scope="scope"> 
598
+                  {{getPatientNameOne(scope.row.patient_id)}}
599
+              </template>
600
+          </el-table-column>
601
+          <el-table-column prop="name" label="医嘱数量" width="180" align="center">
602
+            <template slot-scope="scope"> 
603
+                {{scope.row.prescribing_number}}{{scope.row.prescribing_number_unit}}
604
+             </template>
605
+          </el-table-column>
606
+          <el-table-column prop="address" label="出库数量" align="center">
607
+            <template slot-scope="scope"> 
608
+               {{getDrugOutCount(scope.row.patient_id)}}
609
+            </template>
610
+          </el-table-column>
611
+        </el-table>
612
+      </span>
613
+      <span slot="footer" class="dialog-footer">
614
+        <el-button @click="AdviceDialogVisible = false">取 消</el-button>
615
+        <el-button type="primary" @click="AdviceDialogVisible = false">确 定</el-button>
616
+      </span>
617
+   </el-dialog>
571 618
   </div>
572 619
 </template>
573 620
 
@@ -585,6 +632,7 @@ import {
585 632
   getAutoDrugDetail,
586 633
   getDrugCountList,
587 634
   getExportOutOrderDrugList,
635
+  getDrugPatientName
588 636
 } from "@/api/drug/drug_stock";
589 637
 import BreadCrumb from "../../components/bread-crumb";
590 638
 import { getInitializtion } from "@/api/stock";
@@ -706,6 +754,11 @@ export default {
706 754
       exportLoding:false,
707 755
       outInfoList:[],
708 756
       patients:[],
757
+      AdviceDialogVisible:false,
758
+      adviceList:[],
759
+      outList:[],
760
+      patientList:[],
761
+
709 762
     };
710 763
   },
711 764
   methods: {
@@ -1271,8 +1324,6 @@ export default {
1271 1324
           this.outList = drugoutlist
1272 1325
           this.drugOutInfo = drugoutlist
1273 1326
           if (is_sys == 1) {
1274
-             console.log("数据1",drugFlowList)
1275
-             console.log("数据2",drugListOne)
1276 1327
             if (drugFlowList.length > 0) {
1277 1328
               for (let i = 0; i < drugFlowList.length; i++) {
1278 1329
                  drugFlowList[i].childOne = []
@@ -1345,7 +1396,7 @@ export default {
1345 1396
           }
1346 1397
 
1347 1398
         
1348
-        console.log("中故宫人我奶奶万年万年",list)
1399
+       
1349 1400
         if(is_sys == 1 || is_sys == 5){
1350 1401
           for(let i=0;i<list.length;i++){
1351 1402
             for(let j=0;j<list[i].childOne.length;j++){
@@ -1353,7 +1404,7 @@ export default {
1353 1404
             }
1354 1405
           }
1355 1406
          
1356
-          console.log("中部listowowowoowowow",list)
1407
+         
1357 1408
 
1358 1409
          for(let i=0;i<list.length;i++){
1359 1410
             for(let j=0;j<list[i].childOne.length;j++){
@@ -1362,7 +1413,7 @@ export default {
1362 1413
                } 
1363 1414
             }
1364 1415
           }
1365
-          console.log("list表格---------",list)
1416
+         
1366 1417
           this.tableList = list;
1367 1418
         }
1368 1419
         if(is_sys == 12){
@@ -1403,7 +1454,8 @@ export default {
1403 1454
           }
1404 1455
           this.tableList = list;
1405 1456
         }
1406
-        
1457
+         
1458
+         console.log("tableLIST==================",this.tableList)
1407 1459
 
1408 1460
         }
1409 1461
       });
@@ -2371,6 +2423,42 @@ export default {
2371 2423
          }
2372 2424
       }
2373 2425
       return name
2426
+    },
2427
+    getDrugPatientName(row){
2428
+       console.log("row",row)
2429
+       var params = {
2430
+        drug_id:row.drug_id,
2431
+        sys_record_time:row.sys_record_time
2432
+       }
2433
+      getDrugPatientName(params).then(response=>{
2434
+         if(response.data.state ==1){
2435
+          var advicelist = response.data.data.advicelist
2436
+          this.adviceList= advicelist
2437
+          var outInfor = response.data.data.outInfor
2438
+          this.outList = outInfor
2439
+          var patients = response.data.data.patients
2440
+          this.patientList= patients
2441
+          this.AdviceDialogVisible= true
2442
+         }
2443
+      })
2444
+    },
2445
+    getPatientNameOne(patient_id){
2446
+      var name =""
2447
+      for(let i=0;i<this.patientList.length;i++){
2448
+        if(patient_id == this.patientList[i].id){
2449
+           name = this.patientList[i].name
2450
+        }
2451
+      }
2452
+      return name
2453
+    },
2454
+    getDrugOutCount(patient_id){
2455
+      var str = ""
2456
+      for(let i=0;i<this.outList.length;i++){
2457
+         if(patient_id == this.outList[i].patient_id){
2458
+            str = this.outList[i].count + this.outList[i].count_unit
2459
+         }
2460
+      }
2461
+      return str
2374 2462
     }
2375 2463
   },
2376 2464
 };

+ 8 - 0
src/xt_pages/stock/drugs/newDrugInventory.vue View File

@@ -31,6 +31,14 @@
31 31
                 {{scope.row.warehousing_order}}
32 32
             </template>
33 33
             </el-table-column>
34
+
35
+            <el-table-column  prop="name" label="入库数量" width="100"  align="center">
36
+              <template slot-scope="scope">
37
+                  {{scope.row.warehousing_count}} {{ scope.row.max_unit }}
38
+              </template>
39
+            </el-table-column>
40
+
41
+            
34 42
             <el-table-column  prop="name" label="有效期" width="100"  align="center">
35 43
             <template slot-scope="scope">
36 44
                 {{getTime(scope.row.expiry_date)}}

+ 7 - 2
src/xt_pages/stock/newInventory.vue View File

@@ -16,7 +16,7 @@
16 16
     <div style="float:right;margin-bottom:10px"><el-button type="primary" @click="saveInentoryList">保存</el-button></div>
17 17
      
18 18
         <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }" style="width:100%">
19
-              <el-table-column prop="date" label="耗材名称" width="150" align="center">
19
+              <el-table-column prop="date" label="耗材名称" width="100" align="center">
20 20
                 <template slot-scope="scope">
21 21
                   {{scope.row.good_name}}
22 22
                 </template>
@@ -31,6 +31,11 @@
31 31
                   {{scope.row.warehousing_order}}
32 32
                 </template>
33 33
               </el-table-column>
34
+              <el-table-column  prop="name" label="入库数量" width="50"  align="center">
35
+                <template slot-scope="scope">
36
+                  {{scope.row.warehousing_count}}
37
+                </template>
38
+              </el-table-column>
34 39
               <el-table-column  prop="name" label="有效期" width="100"  align="center">
35 40
                 <template slot-scope="scope">
36 41
                   {{getTime(scope.row.expiry_date)}}
@@ -70,7 +75,7 @@
70 75
                  </template> 
71 76
               </el-table-column>
72 77
 
73
-              <el-table-column prop="name" label="盘点原因" width="180"  align="center">
78
+              <el-table-column prop="name" label="盘点原因" width="100"  align="center">
74 79
                 <template slot-scope="scope">
75 80
                    <el-select v-model="scope.row.type" placeholder="请选择">
76 81
                       <el-option

+ 142 - 2
src/xt_pages/stock/query/goodNewQuery.vue View File

@@ -192,6 +192,13 @@
192 192
                   @click="toClickOne(scope.row)"
193 193
                 >批次
194 194
                 </el-button>
195
+
196
+                <!-- <el-button
197
+                  size="small"
198
+                  type="primary"
199
+                  @click="handleCheckBatch(scope.row)"
200
+                >自查
201
+                </el-button> -->
195 202
                </template>
196 203
             </el-table-column>
197 204
           </el-table>
@@ -313,10 +320,56 @@
313 320
       </span>
314 321
     </el-dialog>
315 322
 
323
+
324
+   <el-dialog
325
+    title="自查数据"
326
+    :visible.sync="checkdialogVisible"
327
+    width="50%">
328
+    <span>
329
+      <span>ID: {{good_id}}</span>
330
+      <el-table
331
+        :data="checkData"
332
+        border
333
+        style="width: 100%">
334
+        <el-table-column prop="date" label="开药日期" width="180" align="center">
335
+          <template slot-scope="scope" >
336
+              {{ getTime(scope.row.record_date) }}
337
+          </template>
338
+        </el-table-column>
339
+        <el-table-column prop="date" label="时间搓" width="180" align="center">
340
+          <template slot-scope="scope" >
341
+              {{scope.row.record_date}}
342
+          </template>
343
+        </el-table-column>
344
+        <el-table-column prop="name" label="开药数量" width="180" align="center">
345
+          <template slot-scope="scope" >
346
+              {{ scope.row.check_count }}
347
+          </template>
348
+        </el-table-column>
349
+        <el-table-column prop="address" label="出库数量" align="center">
350
+          <template slot-scope="scope" >
351
+             {{getGoodCount(scope.row.record_date)}}
352
+          </template>
353
+        </el-table-column>
354
+
355
+        <el-table-column prop="address" label="是否异常" align="center">
356
+          <template slot-scope="scope" >
357
+             <span v-if="scope.row.check_count==getGoodCount(scope.row.record_date)">否</span>
358
+             <span v-if="scope.row.check_count!=getGoodCount(scope.row.record_date)" style="color:red">是</span>
359
+          </template>
360
+        </el-table-column>
361
+      </el-table>
362
+    </span>
363
+    <span slot="footer" class="dialog-footer">
364
+      <el-button @click="checkdialogVisible = false">取 消</el-button>
365
+      <el-button type="primary" @click="checkdialogVisible = false">确 定</el-button>
366
+    </span>
367
+  </el-dialog>
368
+
316 369
   </div>
317 370
 </template>
318 371
 <script>
319
-import { getStorehouseList,getGoodNewQuery,getGoodWarehouseOutInfoById,toSendGoodInfomation } from "@/api/drug/drug"
372
+import { getStorehouseList,getGoodNewQuery,getGoodWarehouseOutInfoById,toSendGoodInfomation,getCheckGoodBatchList } from "@/api/drug/drug"
320 373
 import {
321 374
   getStockDrugCount
322 375
 } from "@/api/stock";
@@ -369,7 +422,10 @@ export default {
369 422
      flushList:[],
370 423
      type_name:0,
371 424
      storehouseId:0,
372
-     dealerList:[]
425
+     dealerList:[],
426
+     checkdialogVisible:false,
427
+     checkData:[],
428
+     outData:[],
373 429
     }
374 430
   
375 431
   },
@@ -1148,6 +1204,90 @@ export default {
1148 1204
       }else{
1149 1205
         return 0
1150 1206
       }
1207
+    },
1208
+    handleCheckBatch(val){
1209
+       this.good_id = val.id 
1210
+      getCheckGoodBatchList(val.id).then(response=>{
1211
+         if(response.data.state ==1){
1212
+           var projectList = response.data.data.projectList
1213
+           if (projectList.length> 0)  {
1214
+              for(let i=0;i<projectList.length;i++){
1215
+                let dataInfoOne = {}
1216
+                projectList.forEach((item, index) => {
1217
+                let { record_date } = item
1218
+                  if (!dataInfoOne[record_date]) {
1219
+                    dataInfoOne[record_date] = {
1220
+                      record_date:item.record_date,
1221
+                      check_count:0,
1222
+                      child:[]
1223
+                    }
1224
+                  }
1225
+                })
1226
+                let hisarr = Object.values(dataInfoOne)
1227
+                for(let i=0;i<hisarr.length;i++){
1228
+                  for(let j=0;j<projectList.length;j++){
1229
+                     if(hisarr[i].record_date == projectList[j].record_date){
1230
+                         hisarr[i].child.push(projectList[j])
1231
+                     }
1232
+                  }
1233
+                }
1234
+
1235
+                for(let i=0;i<hisarr.length;i++){
1236
+                  for(let j=0;j<hisarr[i].child.length;j++){
1237
+                       hisarr[i].check_count += hisarr[i].child[j].count
1238
+                  }
1239
+                }
1240
+
1241
+                this.checkData = []
1242
+                console.log("hia_arr",hisarr)
1243
+                this.checkData = hisarr
1244
+              }
1245
+           }
1246
+           var warehouseList = response.data.data.warehouseList
1247
+
1248
+           if (warehouseList.length> 0)  {
1249
+              for(let i=0;i<warehouseList.length;i++){
1250
+                let dataInfoOne = {}
1251
+                warehouseList.forEach((item, index) => {
1252
+                let { sys_record_time } = item
1253
+                  if (!dataInfoOne[sys_record_time]) {
1254
+                    dataInfoOne[sys_record_time] = {
1255
+                      sys_record_time:item.sys_record_time,
1256
+                      check_count:0,
1257
+                      child:[]
1258
+                    }
1259
+                  }
1260
+                })
1261
+                let hisarr = Object.values(dataInfoOne)
1262
+                for(let i=0;i<hisarr.length;i++){
1263
+                  for(let j=0;j<warehouseList.length;j++){
1264
+                     if(hisarr[i].sys_record_time == warehouseList[j].sys_record_time){
1265
+                         hisarr[i].child.push(warehouseList[j])
1266
+                     }
1267
+                  }
1268
+                }
1269
+
1270
+                for(let i=0;i<hisarr.length;i++){
1271
+                  for(let j=0;j<hisarr[i].child.length;j++){
1272
+                       hisarr[i].check_count += hisarr[i].child[j].count
1273
+                  }
1274
+                }
1275
+                this.outData=[]
1276
+                this.outData = hisarr
1277
+              }
1278
+              this.checkdialogVisible = true
1279
+           }
1280
+         }
1281
+      })
1282
+    },
1283
+    getGoodCount(sys_record_time){
1284
+      var count = 0
1285
+      for(let i=0;i<this.outData.length;i++){
1286
+        if(this.outData[i].sys_record_time == sys_record_time){
1287
+            count = this.outData[i].check_count
1288
+        }
1289
+      }
1290
+      return count
1151 1291
     }
1152 1292
 
1153 1293
   },

+ 4 - 4
src/xt_pages/stock/query/purchaseNewStockQuery.vue View File

@@ -265,7 +265,7 @@ export default {
265 265
             this.loading = false
266 266
             for(let i=0;i<list.length;i++){
267 267
                
268
-              if(this.org_id ==10210){
268
+              if(this.org_id ==10210 || this.org_id ==10215){
269 269
                 list[i].stockIn = list[i].GoodStartFlowInfo.over_count
270 270
               }else{
271 271
                
@@ -837,9 +837,9 @@ export default {
837 837
         count_two +=val3[i].count
838 838
       }
839 839
      }
840
-     console.log("countwowowoowow3333",count)
841
-     console.log("count_one222222",count_one)
842
-     console.log("count_two222222",count_two)
840
+     console.log("本期减少",count)
841
+     console.log("盘亏",count_one)
842
+     console.log("退库",count_two)
843 843
      all_count = count +count_one - count_two
844 844
      console.log("数据我哦我我",all_count)
845 845
      if(all_count >0){

+ 1 - 1
src/xt_pages/stock/stockFlow.vue View File

@@ -52,7 +52,7 @@
52 52
         <span>
53 53
           <el-button type="primary" size="small" @click="toExprot">导出</el-button>
54 54
 
55
-          <!-- <el-button type="primary" size="small" @click="toTongBu">同步</el-button> -->
55
+          <el-button type="primary" size="small" @click="toTongBu">同步</el-button>
56 56
         </span>
57 57
        
58 58
       </div>

+ 7 - 1
src/xt_pages/stock/stockInOrder.vue View File

@@ -341,7 +341,13 @@
341 341
             </span>  
342 342
           </template>
343 343
         </el-table-column>
344
-       <el-table-column label="批准文号" align="center">
344
+        <el-table-column label="批准文号" align="center" v-if="org_id!=10653&&org_id!=0">
345
+          <template slot-scope="scope">
346
+           <span v-if="scope.row.is_total ==0"> {{ scope.row.license_number}}</span>
347
+          </template>
348
+        </el-table-column>
349
+
350
+         <el-table-column label="生产许可证号" align="center" v-if="org_id ==10653 || org_id == 0">
345 351
           <template slot-scope="scope">
346 352
            <span v-if="scope.row.is_total ==0"> {{ scope.row.license_number}}</span>
347 353
           </template>

+ 14 - 2
src/xt_pages/stock/stockInOrderAdd.vue View File

@@ -194,7 +194,7 @@
194 194
             </template>
195 195
           </el-table-column>
196 196
 
197
-         <el-table-column align="center" width="150">
197
+         <el-table-column align="center" width="150" v-if="org_id!=10653&&org_id!=0">
198 198
             <template slot="header" slot-scope="scope">
199 199
               <span>批准文号</span>
200 200
             </template>
@@ -204,7 +204,17 @@
204 204
               </el-form-item>
205 205
             </template>
206 206
           </el-table-column>
207
-         <el-table-column align="center" width="150">
207
+          <el-table-column align="center" width="150" v-if="org_id ==10653 || org_id == 0">
208
+            <template slot="header" slot-scope="scope">
209
+              <span>生产许可证号</span>
210
+            </template>
211
+            <template slot-scope="scope">
212
+              <el-form-item style="padding-top: 20px">
213
+                <el-input placeholder="请输入生产许可证号" v-model="scope.row.license_number" ></el-input>
214
+              </el-form-item>
215
+            </template>
216
+          </el-table-column>
217
+          <el-table-column align="center" width="150">
208 218
             <template slot="header" slot-scope="scope">
209 219
               <span>注册编码</span>
210 220
             </template>
@@ -410,6 +420,7 @@
410 420
         showCheck:false,
411 421
         showReturnCheck:false,
412 422
         warehousing_info_id:0,
423
+        org_id:0
413 424
       }
414 425
     },
415 426
     methods: {
@@ -960,6 +971,7 @@
960 971
     }
961 972
     ,
962 973
     created() {
974
+      this.org_id = this.$store.getters.xt_user.org.id
963 975
       var nowDate = new Date()
964 976
       var nowYear = nowDate.getFullYear()
965 977
       var nowMonth = nowDate.getMonth() + 1

+ 76 - 1
src/xt_pages/stock/stockOutOrder.vue View File

@@ -441,6 +441,16 @@
441 441
               >
442 442
             </template>
443 443
           </el-table-column>
444
+
445
+          <!-- <el-table-column label="自查自检" align="center">
446
+            <template slot-scope="scope">
447
+              <span
448
+                style="color: #589ff8"
449
+                @click="GetGoodPatientName(scope.row)"
450
+                >自查自检</span
451
+              >
452
+            </template>
453
+          </el-table-column> -->
444 454
         </el-table>
445 455
       </div>
446 456
     </div>
@@ -920,6 +930,43 @@
920 930
       v-on:dialog-cancle="cancle"
921 931
     >
922 932
     </stock-in-dialog>
933
+
934
+    <el-dialog
935
+      title="详细"
936
+      :visible.sync="AdviceDialogVisible"
937
+      width="40%">
938
+      <span>
939
+        <el-table
940
+          :data="projectList"
941
+          border
942
+          style="width: 100%">
943
+          <el-table-column prop="date" label="序号" width="180" align="center">
944
+              <template slot-scope="scope"> 
945
+                {{scope.$index+1}}
946
+              </template>
947
+          </el-table-column>
948
+          <el-table-column prop="date" label="患者姓名" width="100" align="center">
949
+              <template slot-scope="scope"> 
950
+                  {{getPatientName(scope.row.patient_id)}}
951
+              </template>
952
+          </el-table-column>
953
+          <el-table-column prop="name" label="耗材数量" width="100" align="center">
954
+            <template slot-scope="scope"> 
955
+                {{scope.row.count}}{{scope.row.unit}}
956
+             </template>
957
+          </el-table-column>
958
+          <el-table-column prop="address" label="出库数量" align="center">
959
+            <template slot-scope="scope"> 
960
+               {{getGoodOutCount(scope.row.patient_id)}}
961
+            </template>
962
+          </el-table-column>
963
+        </el-table>
964
+      </span>
965
+      <span slot="footer" class="dialog-footer">
966
+        <el-button @click="AdviceDialogVisible = false">取 消</el-button>
967
+        <el-button type="primary" @click="AdviceDialogVisible = false">确 定</el-button>
968
+      </span>
969
+   </el-dialog>
923 970
   </div>
924 971
 </template>
925 972
 
@@ -940,6 +987,7 @@ import {
940 987
   getOrderDetailByOrderId,
941 988
   getOrderDetailById,
942 989
   getOutExportList,
990
+  getGoodPatientName
943 991
 } from "@/api/stock";
944 992
 import BreadCrumb from "../components/bread-crumb";
945 993
 import StockInDialog from "./Dialog/stockInDialog";
@@ -1084,7 +1132,10 @@ export default {
1084 1132
       flowList:[],
1085 1133
       cancelInfoList:[],
1086 1134
       exportLoding:false,
1087
-      patients:[]
1135
+      patients:[],
1136
+      projectList:[],
1137
+      outList:[],
1138
+      AdviceDialogVisible:false
1088 1139
     };
1089 1140
   },
1090 1141
   methods: {
@@ -2455,6 +2506,30 @@ export default {
2455 2506
          }
2456 2507
       }
2457 2508
       return name
2509
+    },
2510
+    GetGoodPatientName(val){
2511
+       var params = {
2512
+        good_id:val.good_id,
2513
+        sys_record_time:val.sys_record_time,
2514
+       }
2515
+      getGoodPatientName(params).then(response=>{
2516
+        if(response.data.state == 1){
2517
+          var projectList = response.data.data.projectList
2518
+          this.projectList = projectList
2519
+          var outList = response.data.data.outList
2520
+          this.outList = outList
2521
+          this.AdviceDialogVisible= true
2522
+        }
2523
+      })
2524
+    },
2525
+    getGoodOutCount(patient_id){
2526
+      var count = ""
2527
+      for(let i=0;i<this.outList.length;i++){
2528
+        if(patient_id == this.outList[i].patient_id){
2529
+          count = this.outList[i].count
2530
+        }
2531
+      }
2532
+      return count 
2458 2533
     }
2459 2534
   },
2460 2535
 };

+ 35 - 8
src/xt_pages/user/Sitemap.vue View File

@@ -18,11 +18,13 @@
18 18
         </div>
19 19
       </div>
20 20
       <div style="margin-top:6px;display:flex;flex-wrap: wrap;position:relative;min-height:480px;">
21
-        <div style="width:47%;border:1px solid #ddd;padding: 5px;" id="print_mark_img" >
21
+        <div style="width:47%;border:1px solid #ddd;padding: 5px;" id="print_mark_img"  ref="imageContainer">
22 22
           <div id="point_mark_img_wrap1" class="print_main_content" style="width: 100%;padding: 0;border: 0;" ref="imageWrapper">
23 23
 
24
-            <img v-if="fileList[0].img_url==0" id="ossPointMarkImg" src="@/assets/evaluate/xgtl_default.png" alt="" srcset="">
25
-            <img v-if="fileList[0].img_url!=''" id="ossPointMarkImg" :src="fileList[0].img_url" alt="" srcset="">
24
+            <img v-if="fileList[0].img_url==0" id="ossPointMarkImg" src="@/assets/evaluate/xgtl-tool-tips.jpg" alt="" srcset="">
25
+          
26
+           <img v-if="fileList[0].img_url!=''" id="ossPointMarkImg" :src="fileList[0].img_url" alt="" srcset="">
27
+          
26 28
 
27 29
             <!-- A端/V端 v-if="a_num==2" -->
28 30
             <!-- <div v-for="(item,index) in A_arr" :key="index">
@@ -122,7 +124,9 @@
122 124
               </div>
123 125
             </div></div>
124 126
           </div>
127
+         
125 128
         </div>
129
+       
126 130
         <div style="width:25px;"></div>
127 131
         <div style="width:49%;">
128 132
           <div>
@@ -174,6 +178,9 @@
174 178
           <div id="ctrl-xgtlpic-mask" class="readonly" data-text="图片操作的遮罩层" v-show="append == false"></div>
175 179
         </div>
176 180
       </div>
181
+
182
+      
183
+      <!-- <img :src="imageSrc" alt="Rendered Image" /> -->
177 184
     </div>
178 185
 
179 186
     <!-- <div style="width:50%; margin-top:20px">
@@ -375,6 +382,8 @@ export default{
375 382
       patients:{},
376 383
       date:moment(new Date()).format("YYYY-MM-DD"),
377 384
       widthtext:null,
385
+      imageSrc:"",
386
+      imageList: []
378 387
     }
379 388
   },
380 389
   created(){
@@ -390,6 +399,21 @@ export default{
390 399
     console.log('asfdazxsdfdfdsdfsadfs',this.fileList);
391 400
   },
392 401
   methods:{
402
+    
403
+    async captureImage() {
404
+      try {
405
+        const element = document.getElementById('print_mark_img');
406
+        const canvas = await html2canvas(element);
407
+        console.log("canvas22222222222222",canvas)
408
+        var imgUrl = canvas.toDataURL('image/png');
409
+       
410
+      
411
+        this.imageSrc= imgUrl
412
+        return imgUrl
413
+      } catch (error) {
414
+        console.error('截图失败:', error);
415
+      }
416
+    },
393 417
     add(){
394 418
       if(this.append == false){
395 419
         console.log('1111');
@@ -901,6 +925,8 @@ export default{
901 925
         id: 0
902 926
       })
903 927
       console.log('上传 图片',this.fileList);
928
+      this.imageList.push(res.localPath);
929
+      console.log("图片路径2222222222222222222222",this.fileList)
904 930
       this.loading.close()
905 931
       this.imgDialogVisible=false
906 932
     },
@@ -1026,10 +1052,11 @@ export default{
1026 1052
       }
1027 1053
 
1028 1054
 
1029
-       var img_url = ""
1030
-       if(this.fileList!=null && this.fileList.length>0){
1031
-          img_url = this.fileList[0].img_url
1032
-       }
1055
+      
1056
+
1057
+       console.log("hahhahah",this.captureImage())
1058
+    
1059
+     
1033 1060
        var params = {
1034 1061
          id:this.id,
1035 1062
          is_append:is_append,
@@ -1071,7 +1098,7 @@ export default{
1071 1098
          left_v:0,
1072 1099
          aarr:this.Aarr,
1073 1100
          varr:this.Varr,
1074
-         img_url:img_url,
1101
+         img_url:this.fileList[0].img_url,
1075 1102
        }
1076 1103
        console.log("paramswowwo",params)
1077 1104
 

+ 27 - 2
src/xt_pages/user/components/PatientDetail.vue View File

@@ -281,6 +281,22 @@
281 281
                 </el-checkbox-group>
282 282
               </el-form-item>
283 283
              </el-col>
284
+            
285
+             <el-col :span="6" :style="isEdit ? 'width:380px' : ''">
286
+                <el-form-item
287
+                  label="打印日期:"
288
+                  label-width="150px"
289
+                >
290
+                  <el-date-picker
291
+                     disabled
292
+                    v-model="form.print_date"
293
+                    type="date"
294
+                    format="yyyy-MM-dd"
295
+                    value-format="yyyy-MM-dd"
296
+                  ></el-date-picker>
297
+                </el-form-item>
298
+              </el-col>
299
+
284 300
              <el-col :span="8">
285 301
                 <el-form-item label="住院(门诊)号 : " prop="admissionNumber">
286 302
                   <el-input v-model="form.admissionNumber" disabled></el-input>
@@ -1225,9 +1241,12 @@
1225 1241
               <div class="proj">
1226 1242
                 <span class="proj_title">日期:</span>
1227 1243
 
1228
-                <span v-if="org_id == 3907 || org_id == 9671|| org_id == 9675 || org_id == 10394 || org_id ==10612 || org_id == 0 || org_id ==10617">
1244
+                <!-- <span v-if="org_id == 3907 || org_id == 9671|| org_id == 9675 || org_id == 10394 || org_id ==10612 || org_id == 0 || org_id ==10617">
1229 1245
                 {{getTime(patientPrint.created_time)}}</span>
1230
-                <span v-else>{{ printDate }}</span>
1246
+                <span v-else>{{ printDate }}</span> -->
1247
+
1248
+                <span v-if="patientPrint.print_date>0">{{getTime(patientPrint.print_date)}}</span> 
1249
+                <span v-if="patientPrint.print_date<=0">{{getTime(patientPrint.created_time)}}</span> 
1231 1250
 
1232 1251
               </div>
1233 1252
               <div class="proj">
@@ -1375,6 +1394,7 @@ const defaultForm = {
1375 1394
   patient_address:"",
1376 1395
   infectious_remark:"",
1377 1396
   allergic_history:"",
1397
+  print_date:"",
1378 1398
 };
1379 1399
 
1380 1400
 export default {
@@ -1723,6 +1743,11 @@ export default {
1723 1743
               "{y}-{m}-{d}"
1724 1744
             );
1725 1745
 
1746
+            this.form.print_date = uParseTime(
1747
+              patietInfo.print_date,
1748
+              "{y}-{m}-{d}"
1749
+            );
1750
+
1726 1751
             this.form.patient_source = patietInfo.patient_source
1727 1752
             if (patietInfo.patient_start_time != 0) {
1728 1753
               this.form.patient_start_time = uParseTime(

+ 21 - 2
src/xt_pages/user/components/PatientForm.vue View File

@@ -129,12 +129,11 @@
129 129
               <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
130 130
                 <el-form-item
131 131
                   label="身份证号 : "
132
-                  class="is-required"
133 132
                   prop="idCardNo"
134 133
                 >
135 134
                   <el-input
135
+                    @input="checkIdCardNo"
136 136
                     v-model="form.idCardNo"
137
-                    @blur="checkIdCardNo"
138 137
                   ></el-input><!---->
139 138
                 </el-form-item>
140 139
               </el-col>
@@ -334,6 +333,20 @@
334 333
               </el-form-item>
335 334
             </el-col>
336 335
 
336
+            <el-col :span="6" :style="isEdit ? 'width:380px' : ''">
337
+                <el-form-item
338
+                  label="打印日期:"
339
+                  label-width="150px"
340
+                >
341
+                  <el-date-picker
342
+                    v-model="form.print_date"
343
+                    type="date"
344
+                    format="yyyy-MM-dd"
345
+                    value-format="yyyy-MM-dd"
346
+                  ></el-date-picker>
347
+                </el-form-item>
348
+              </el-col>
349
+
337 350
             <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
338 351
                   <el-form-item label="住院(门诊)号 : ">
339 352
                     <el-input v-model="form.admissionNumber"></el-input>
@@ -1183,6 +1196,7 @@ const defaultForm = {
1183 1196
   patient_address:"",
1184 1197
   infectious_remark:"",
1185 1198
   allergic_history:"",
1199
+  print_date:"",
1186 1200
   formItem: [
1187 1201
     {
1188 1202
       id: 0,
@@ -2025,6 +2039,11 @@ export default {
2025 2039
               "{y}-{m}-{d}"
2026 2040
             );
2027 2041
 
2042
+            this.form.print_date = uParseTime(
2043
+              patietInfo.print_date,
2044
+              "{y}-{m}-{d}"
2045
+            );
2046
+
2028 2047
             if (patietInfo.age == 0) {
2029 2048
               this.form.age = jsGetAge(this.form.birth, "-");
2030 2049
             } else {

+ 1 - 1
src/xt_pages/user/courseOfDisease.vue View File

@@ -851,7 +851,7 @@
851 851
       // nowMonth = nowDate.getMonth() + 1
852 852
       // nowDay = nowDate.getDate()
853 853
       // this.start_time = nowYear +'-' +(nowMonth < 10 ? '0' + nowMonth : nowMonth) +'-' +(nowDay < 10 ? '0' + nowDay : nowDay)
854
-      this.start_time = moment().month(moment().month() - 1).startOf('month').format('YYYY-MM-DD');
854
+      this.start_time = moment().month(moment().month() - 6).startOf('month').format('YYYY-MM-DD');
855 855
       console.log("start_time",this.start_time)
856 856
       this.end_time = moment().endOf('month').format('YYYY-MM-DD');
857 857
       console.log("end_time",this.end_time)

+ 36 - 1
src/xt_pages/user/dialysisSolution.vue View File

@@ -124,6 +124,21 @@
124 124
               </el-button>
125 125
             </el-tooltip>
126 126
 
127
+            <el-tooltip
128
+                class="item"
129
+                effect="dark"
130
+                content="删除"
131
+                placement="top"
132
+              >
133
+                <el-button
134
+                  size="small"
135
+                  type="danger"
136
+                  icon="el-icon-delete"
137
+                  @click="deleteSolution(scope.$index, scope.row)"
138
+                   删除
139
+                ></el-button>
140
+               </el-tooltip>
141
+
127 142
           </template>
128 143
         </el-table-column>
129 144
       </el-table>
@@ -954,7 +969,8 @@
954 969
     editDialysisSolutionDetail,
955 970
     editPatientDialysisSolution,
956 971
     findePatientDialysisLongSolutions,
957
-    getDialysisSolutionDetailList
972
+    getDialysisSolutionDetailList,
973
+    deleteSolution
958 974
   } from '@/api/patient'
959 975
 
960 976
   import { getSystemPrescription } from '@/api/config'
@@ -2688,6 +2704,25 @@
2688 2704
           }
2689 2705
         }
2690 2706
         return name
2707
+      },
2708
+      deleteSolution(index,row){
2709
+          this.$confirm('确认删除吗?', '删除', {
2710
+            confirmButtonText: '确 定',
2711
+            cancelButtonText: '取 消',
2712
+            type: 'warning'
2713
+         }).then(() => {
2714
+          deleteSolution(row.id).then(response => {
2715
+              if (response.data.state == 1) {
2716
+                  var msg = response.data.data.msg
2717
+                  this.$message.success("删除成功")
2718
+                  this.FindePatientDialysisLongSolutions()
2719
+              } else {
2720
+                  this.$message.error("药品已经出库不能删除")
2721
+              }
2722
+            })
2723
+          })
2724
+          .catch(() => {
2725
+          }) 
2691 2726
       }
2692 2727
     },
2693 2728
     created() {

+ 2 - 3
src/xt_pages/user/inspection.vue View File

@@ -347,7 +347,7 @@
347 347
                   placeholder="请填入"
348 348
                   v-model="item.value"
349 349
                   style="width:95%"
350
-                  type="number"
350
+                
351 351
                   @input='changeInput(item)'
352 352
                 >
353 353
                   <template slot="append">{{ item.unit }}</template>
@@ -1012,8 +1012,7 @@ export default {
1012 1012
             this.patientID,
1013 1013
             this.form,
1014 1014
             this.form.remind_cycle
1015
-          )
1016
-            .then(response => {
1015
+          ).then(response => {
1017 1016
               if (response.data.state == 1) {
1018 1017
                 this.$notify({
1019 1018
                   title: '成功',

+ 2 - 2
src/xt_pages/user/patients.vue View File

@@ -1804,8 +1804,8 @@
1804 1804
           }
1805 1805
         }
1806 1806
 
1807
-        const tHeader = ['姓名', '性别', '身份证号码','年龄','透析号','首次治疗时间','本人电话','患者来源','治疗状态','传染病']
1808
-        const filterVal = ['name', 'genders', 'id_card_no','age_year','dialysis_no','first_dialysis_date','phone','sources','lapesetos','is_infectiouss']
1807
+        const tHeader = ['姓名', '性别', '身份证号码','年龄','透析号','首次治疗时间','本人电话','患者来源','治疗状态','传染病','家庭住址','工作单位']
1808
+        const filterVal = ['name', 'genders', 'id_card_no','age_year','dialysis_no','first_dialysis_date','phone','sources','lapesetos','is_infectiouss','home_address','work_unit']
1809 1809
         console.log("table",this.tableData)
1810 1810
 
1811 1811
         const data = this.formatJson(filterVal, this.tableData)

+ 54 - 11
src/xt_pages/user/templateSummary.vue View File

@@ -680,6 +680,7 @@
680 680
                    <el-radio-group style="padding: 10px;"  v-model="radio" @change="changeRadio">
681 681
                       <el-radio :label="1">月份</el-radio>
682 682
                       <el-radio :label="2">季度</el-radio>
683
+                      <el-radio :label="3">自定义时间</el-radio>
683 684
                     </el-radio-group>
684 685
                  </el-form-item>
685 686
                  <el-form-item v-show="showquarty">
@@ -703,20 +704,39 @@
703 704
                       value-format="yyyy-MM">
704 705
                     </el-date-picker>
705 706
                  </el-form-item>
706
-                 <!-- <el-form-item  label="月份:"
707
-                   prop="startYear"
708
-                   style="width:100%;">
709
-                  <el-date-picker
710
-                    v-model="startMonth"
711
-                    type="month"
712
-                    format="MM"
713
-                    value-format="MM"
714
-                    placeholder="请选择">
715
-                  </el-date-picker>
716
-                 </el-form-item> -->
717 707
                 </div>
718 708
               </el-form-item>
719 709
             </el-row>
710
+            <el-row>
711
+              <div v-show="showStarttime">
712
+
713
+                  <el-form-item >
714
+                    <el-date-picker
715
+                        @change="changFirstYear"
716
+                        style="width: 200px;"
717
+                        v-model="fisrt_time"
718
+                        class="timePicker"
719
+                        type="month"
720
+                        placeholder="开始时间"
721
+                        format="yyyy-MM-dd"
722
+                        value-format="yyyy-MM-dd">
723
+                      </el-date-picker>
724
+                       -
725
+                      <el-date-picker
726
+                          @change="changLastYear"
727
+                          style="width: 200px;"
728
+                          v-model="last_time"
729
+                          class="timePicker"
730
+                          type="month"
731
+                          placeholder="结束时间"
732
+                          format="yyyy-MM-dd"
733
+                          value-format="yyyy-MM-dd">
734
+                        </el-date-picker>
735
+                  </el-form-item> 
736
+              
737
+              </div>
738
+              
739
+            </el-row>
720 740
             <el-row>
721 741
                <span>选择检验检查项目:</span>
722 742
                  <div class="record">
@@ -966,6 +986,9 @@
966 986
        radio:1,
967 987
        showtime:true,
968 988
        showquarty:false,
989
+       fisrt_time:"",
990
+       last_time:"",
991
+       showStarttime:false,
969 992
       }
970 993
     },
971 994
     created() {
@@ -1223,6 +1246,11 @@
1223 1246
             }
1224 1247
           }
1225 1248
 
1249
+          if(this.radio == 3){
1250
+            start_time = this.fisrt_time
1251
+            end_time = this.last_time
1252
+          }
1253
+
1226 1254
 
1227 1255
           console.log("start_time",start_time)
1228 1256
           console.log("end_time",end_time)
@@ -1846,6 +1874,13 @@
1846 1874
         }
1847 1875
 
1848 1876
        
1877
+        this.getInspectionMajor()
1878
+      },
1879
+      changFirstYear(){
1880
+        console.log("hahhahahh")
1881
+        this.getInspectionMajor()
1882
+      },
1883
+      changLastYear(){
1849 1884
         this.getInspectionMajor()
1850 1885
       },
1851 1886
       selectSummary(val){
@@ -1892,11 +1927,19 @@
1892 1927
        if(val == 1){
1893 1928
          this.showtime = true
1894 1929
          this.showquarty = false
1930
+         this.showStarttime = false
1895 1931
          this.getInspectionMajor()
1896 1932
        }
1897 1933
        if(val == 2){
1898 1934
          this.showquarty = true
1899 1935
          this.showtime = false
1936
+         this.showStarttime = false
1937
+         this.getInspectionMajor()
1938
+       }
1939
+       if(val == 3){
1940
+         this.showStarttime = true
1941
+         this.showtime =false
1942
+         this.showquarty = false
1900 1943
          this.getInspectionMajor()
1901 1944
        }
1902 1945
      }

+ 54 - 11
src/xt_pages/workforce/components/nextTableWeeks.vue View File

@@ -97,7 +97,13 @@
97 97
         color: '#606266'
98 98
       }"
99 99
       style="width: 100%"
100
+      @selection-change="handleSelectionChange"
100 101
     >
102
+     <el-table-column
103
+        align="center"
104
+        type="selection"
105
+        width="55">
106
+      </el-table-column>
101 107
       <el-table-column label="透析处方" min-width="100" align="center">
102 108
         <template slot-scope="scope">
103 109
           <span v-if="scope.row.prescription.id > 0">已确认</span>
@@ -120,9 +126,9 @@
120 126
           {{ scope.row.patient }}
121 127
         </template>
122 128
       </el-table-column>
123
-      <el-table-column label="分区" min-width="70" align="center">
129
+      <el-table-column label="分区" min-width="100" align="center">
124 130
         <template slot-scope="scope">
125
-          {{ scope.row.zone.name }}
131
+          {{ scope.row.zone.name }}({{ getType(scope.row.partition_id)  }})
126 132
         </template>
127 133
       </el-table-column>
128 134
       <el-table-column label="班次" min-width="70" align="center">
@@ -307,6 +313,7 @@ export default {
307 313
       zoneList:[],
308 314
       start_time:moment().week(moment().week() + 1).startOf('week').unix(),
309 315
       loading:false,
316
+      ids:""
310 317
     };
311 318
   },
312 319
   watch: {
@@ -372,10 +379,8 @@ export default {
372 379
 
373 380
         let next_sunday = moment().add((7 - weekOfDay) + 7, 'days').format('YYYY-MM-DD')
374 381
 
375
-        console.log("开始时间++++++++",(this.getTimestamp(next_monday)/1000)-28800)
376
-
377 382
         var now_time = parseInt(this.week_type - 1)*86400 + (this.getTimestamp(next_monday)/1000 -28800)
378
-        console.log("now_time------------------",now_time)
383
+      
379 384
 
380 385
 
381 386
 
@@ -385,7 +390,8 @@ export default {
385 390
           week_type:this.week_type,
386 391
           week_time:this.week_time,
387 392
           zone:str,
388
-          record_date:this.getTime(now_time)
393
+          record_date:this.getTime(now_time),
394
+          ids:this.ids,
389 395
        }
390 396
       console.log("params0000000000",params)
391 397
       getNextScheduleWeekDay(params).then(response => {
@@ -665,7 +671,7 @@ export default {
665 671
     },
666 672
     signPrint() {
667 673
         //
668
-        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id ==10375){
674
+        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id ==10375 || this.org_id ==10517){
669 675
          var zone = this.zone
670 676
           var newArr = []
671 677
           for(let i=0;i<this.zoneList.length;i++){
@@ -680,10 +686,10 @@ export default {
680 686
             str = zone.join(",")
681 687
           }
682 688
           this.$router.push({
683
-            path: '/schedule/remind/print/setting/one?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2
689
+            path: '/schedule/remind/print/setting/one?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2+"&ids="+this.ids
684 690
           })
685 691
           }
686
-        if(this.org_id!=9671 && this.org_id!=9675 && this.org_id!=10340 && this.org_id !=10375 && this.org_id !=10469){
692
+        if(this.org_id!=9671 && this.org_id!=9675 && this.org_id!=10340 && this.org_id !=10375 && this.org_id !=10469 && this.org_id !=10517){
687 693
           var zone = this.zone
688 694
         var newArr = []
689 695
         for(let i=0;i<this.zoneList.length;i++){
@@ -698,7 +704,7 @@ export default {
698 704
           str = zone.join(",")
699 705
         }
700 706
         this.$router.push({
701
-          path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2
707
+          path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2+"&ids="+this.ids
702 708
         })
703 709
         }
704 710
         else if(this.org_id==10469){
@@ -717,7 +723,7 @@ export default {
717 723
             str = zone.join(",")
718 724
           }
719 725
           this.$router.push({
720
-            path: '/schedule/remind/print/setting/two?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2
726
+            path: '/schedule/remind/print/setting/two?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2+"&ids="+this.ids
721 727
           })
722 728
         }
723 729
 
@@ -729,6 +735,43 @@ export default {
729 735
       return uParseTime(val, '{y}-{m}-{d}')
730 736
       }
731 737
     },
738
+    handleSelectionChange(val){
739
+        var arr = []
740
+        for(let i=0;i<val.length;i++){
741
+          arr.push(val[i].patient_id)
742
+        }
743
+        this.ids = arr.join(",")
744
+     },
745
+     getType(zone_id){
746
+        var type_name =""
747
+        var is_type = 0
748
+        for(let i=0;i<this.zoneList.length;i++){
749
+           if(zone_id == this.zoneList[i].id){
750
+               is_type =this.zoneList[i].type
751
+           }
752
+        }
753
+        if(is_type ==1){
754
+          type_name = "普通"
755
+        }
756
+        if(is_type ==2){
757
+          type_name = "乙肝"
758
+        }
759
+        if(is_type ==3){
760
+          type_name = "丙肝"
761
+        }
762
+        if(is_type ==4){
763
+          type_name = "艾滋病"
764
+        }
765
+        if(is_type ==5){
766
+          type_name = "肺结核"
767
+        }
768
+        if(is_type ==6){
769
+          type_name = "梅毒"
770
+        }
771
+
772
+        return type_name 
773
+
774
+      }
732 775
   },
733 776
   components: {
734 777
     WeekItem

+ 101 - 50
src/xt_pages/workforce/components/tableWeeks.vue View File

@@ -77,18 +77,6 @@
77 77
         </div>
78 78
         <div class="cell clearfix">
79 79
             <div class="title"><span class="name">分区</span> :</div>
80
-            <!-- <div class="time">
81
-                <ul class>
82
-                    <li
83
-                          :class="item.id == zone ? 'active' : ''"
84
-                            @click="selectZoneList(item.id)"
85
-                            v-for="item in zoneList"
86
-                            :key="item.id"
87
-                    >
88
-                        {{ item.name }}
89
-                    </li>
90
-                </ul>
91
-            </div> -->
92 80
             <el-select v-model="zone" multiple placeholder="请选择" @change="changeZone">
93 81
               <el-option
94 82
                 v-for="item in zoneList"
@@ -99,26 +87,26 @@
99 87
             </el-select>
100 88
         </div>
101 89
         <el-table
102
-                v-loading="isloading"
103
-                :row-style="{ color: '#303133' }"
104
-                :data="summarySchData"
105
-                border
106
-                :header-cell-style="{
107
-        backgroundColor: 'rgb(245, 247, 250)',
108
-        color: '#606266'
109
-      }"
110
-                style="width: 100%"
90
+          v-loading="isloading"
91
+          :row-style="{ color: '#303133' }"
92
+          :data="summarySchData"
93
+          border
94
+          :header-cell-style="{
95
+          backgroundColor: 'rgb(245, 247, 250)',
96
+          color: '#606266'
97
+         }"
98
+         style="width: 100%"
99
+        
111 100
         >
112
-
101
+         
113 102
             <el-table-column label="分区" min-width="70" align="center">
114 103
                 <template slot-scope="scope">
115
-                    {{ scope.row.zone.name }}
104
+                    {{ scope.row.zone.name }} 
116 105
                 </template>
117 106
             </el-table-column>
118 107
 
119 108
             <el-table-column label="透析模式" min-width="100" align="center">
120 109
                 <template slot-scope="scope">
121
-                    <!--{{getModeDesc(scope.row.list)}}-->
122 110
                     <div >{{getModeDesc(scope.row.list)}}</div>
123 111
 
124 112
                 </template>
@@ -168,11 +156,17 @@
168 156
                 :data="scheduleData"
169 157
                 border
170 158
                 :header-cell-style="{
171
-        backgroundColor: 'rgb(245, 247, 250)',
172
-        color: '#606266'
173
-      }"
159
+                backgroundColor: 'rgb(245, 247, 250)',
160
+                color: '#606266'
161
+                 }"
174 162
                 style="width: 100%"
163
+                @selection-change="handleSelectionChange"
175 164
         >
165
+          <el-table-column
166
+            align="center"
167
+            type="selection"
168
+            width="55">
169
+          </el-table-column>
176 170
             <el-table-column label="透析处方" min-width="100" align="center">
177 171
                 <template slot-scope="scope">
178 172
                     <span v-if="scope.row.prescription.id>0">已确定</span>
@@ -195,9 +189,9 @@
195 189
                     {{ scope.row.patient.name }}
196 190
                 </template>
197 191
             </el-table-column>
198
-            <el-table-column label="分区" min-width="70" align="center">
192
+            <el-table-column label="分区" min-width="100" align="center">
199 193
                 <template slot-scope="scope">
200
-                    {{ scope.row.zone.name }}
194
+                    {{ scope.row.zone.name }} ({{ getType(scope.row.partition_id)  }})
201 195
                 </template>
202 196
             </el-table-column>
203 197
             <el-table-column label="班次" min-width="70" align="center">
@@ -221,17 +215,7 @@
221 215
             </el-table-column>
222 216
             <el-table-column label="透析器/灌流器" min-width="100" align="center">
223 217
                 <template slot-scope="scope">
224
-                    <!-- <span v-if="org_id!=9987&&org_id!=10131&&org_id!=10215 &&org_id!=10233 && org_id!=10290">
225
-                      <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus!=''">
226
-                        <span>{{ scope.row.prescription.dialyzer_perfusion_apparatus }}</span>
227
-                      </span>
228
-
229
-                      <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus==''&& scope.row.dialysissolution.id > 0 && scope.row.prescription.dialysis_dialyszers == ''">{{scope.row.dialysissolution.dialysis_dialyszers}}</span>
230
-                    </span> -->
231
-
232
-                    <!-- <span v-if="org_id==10131 || org_id == 10215 || org_id == 10233">{{scope.row.dialysissolution.dialyzer_perfusion_apparatus}}</span> -->
233
-
234
-                      <!-- {{scope.row.prescription.dialysis_dialyszers}} -->
218
+                   
235 219
                     <span v-if="scope.row.prescription.dialysis_dialyszers =='' ">
236 220
                        {{scope.row.dialysissolution.dialysis_dialyszers}}
237 221
                     </span>
@@ -311,6 +295,19 @@
311 295
             </el-table-column>
312 296
         </el-table>
313 297
 
298
+        <el-pagination
299
+          @size-change="handleSizeChangeOne"
300
+          @current-change="handleCurrentChangeOne"
301
+          :page-sizes="[100, 200, 300,400,500,600,700,800,900,1000]"
302
+          :page-size="10"
303
+          background
304
+          align="right"
305
+          style="margin-top:20px;"
306
+          layout="total, sizes, prev, pager, next, jumper"
307
+          :total="total"
308
+       >
309
+      </el-pagination>
310
+
314 311
     <el-dialog
315 312
             title="打印设置"
316 313
             :visible.sync="dialogVisible"
@@ -374,7 +371,6 @@
374 371
     getAllZoneList,
375 372
     getRemindPrintList,
376 373
     getScheduleList,
377
-    getSchedules,
378 374
     getScheduleWeekDay,
379 375
     saveRemindPrint
380 376
   } from '@/api/schedule'
@@ -464,6 +460,10 @@
464 460
         summarySchData: [],
465 461
         zone:0,
466 462
         zoneList:[],
463
+        ids:"",
464
+        limit:100,
465
+        page:1,
466
+        total:0,
467 467
       }
468 468
     },
469 469
     watch: {
@@ -881,12 +881,12 @@
881 881
           str = zone.join(",")
882 882
         }
883 883
         this.$router.push({
884
-          path: '/schedule/remind/print?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str
884
+          path: '/schedule/remind/print?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str+"&ids"+this.ids
885 885
         })
886 886
       },
887 887
       signPrint() {
888 888
 //
889
-        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340  || this.org_id == 10375){
889
+        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340  || this.org_id == 10375 || this.org_id ==10517){
890 890
          var zone = this.zone
891 891
           console.log("zone23232",zone)
892 892
           var newArr = []
@@ -902,10 +902,10 @@
902 902
             str = zone.join(",")
903 903
           }
904 904
           this.$router.push({
905
-            path: '/schedule/remind/print/setting/one?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+1
905
+            path: '/schedule/remind/print/setting/one?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+1+"&ids="+this.ids
906 906
           })
907 907
         }
908
-        if(this.org_id != 9671 && this.org_id != 9675 && this.org_id != 10340  && this.org_id!=10375 && this.org_id!=10469){
908
+        if(this.org_id != 9671 && this.org_id != 9675 && this.org_id != 10340  && this.org_id!=10375 && this.org_id!=10469 && this.org_id!=10517){
909 909
           var zone = this.zone
910 910
           console.log("zone23232",zone)
911 911
           var newArr = []
@@ -921,7 +921,7 @@
921 921
             str = zone.join(",")
922 922
           }
923 923
           this.$router.push({
924
-            path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+1
924
+            path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+1+"&ids="+this.ids
925 925
           })
926 926
         }else if(this.org_id==10469){
927 927
           var zone = this.zone
@@ -939,7 +939,7 @@
939 939
             str = zone.join(",")
940 940
           }
941 941
           this.$router.push({
942
-            path: '/schedule/remind/print/setting/two?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+1
942
+            path: '/schedule/remind/print/setting/two?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+1+"&ids="+this.ids
943 943
           })
944 944
         }
945 945
 
@@ -1023,6 +1023,9 @@
1023 1023
           week_type: this.week_type,
1024 1024
           week_time: this.week_time,
1025 1025
           zone: str,
1026
+          ids:this.ids,
1027
+          limit:this.limit,
1028
+          page:this.page,
1026 1029
         }
1027 1030
         console.log("param",params)
1028 1031
         this.scheduleData = []
@@ -1033,6 +1036,7 @@
1033 1036
             console.log('22333333333', this.pre_status)
1034 1037
             var list = response.data.data.list
1035 1038
             console.log("list33333333333333333333",list)
1039
+            this.total =response.data.data.total
1036 1040
             if (this.pre_status == 0) {
1037 1041
 
1038 1042
               for (let i = 0; i < list.length; i++) {
@@ -1127,7 +1131,7 @@
1127 1131
                 this.summarySchData.push(obj)
1128 1132
               }
1129 1133
             }
1130
-
1134
+            console.log("this.000000",this.summarySchData)
1131 1135
           }
1132 1136
         })
1133 1137
       }
@@ -1572,11 +1576,58 @@
1572 1576
         this.zone = val
1573 1577
         this.getScheduleList()
1574 1578
       },
1575
-     printActionSchedule(){
1579
+      printActionSchedule(){
1576 1580
         this.$router.push({
1577 1581
           path: '/workforce/schedulePrint=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + this.pre_status+"&type="+1
1578 1582
         })
1579
-     }
1583
+      },
1584
+      handleSelectionChange(val){
1585
+        console.log("val",val)
1586
+        var arr = []
1587
+        for(let i=0;i<val.length;i++){
1588
+          arr.push(val[i].patient_id)
1589
+        }
1590
+        this.ids = arr.join(",")
1591
+     },
1592
+     handleSizeChangeOne(val) {
1593
+        this.limit = val;
1594
+        this.getScheduleList();
1595
+      },
1596
+      handleCurrentChangeOne(val) {
1597
+        this.page = val;
1598
+        this.getScheduleList();
1599
+      },
1600
+      getType(zone_id){
1601
+        var type_name =""
1602
+        var is_type = 0
1603
+        for(let i=0;i<this.zoneList.length;i++){
1604
+           if(zone_id == this.zoneList[i].id){
1605
+               is_type =this.zoneList[i].type
1606
+           }
1607
+        }
1608
+        if(is_type ==1){
1609
+          type_name = "普通"
1610
+        }
1611
+        if(is_type ==2){
1612
+          type_name = "乙肝"
1613
+        }
1614
+        if(is_type ==3){
1615
+          type_name = "丙肝"
1616
+        }
1617
+        if(is_type ==4){
1618
+          type_name = "艾滋病"
1619
+        }
1620
+        if(is_type ==5){
1621
+          type_name = "肺结核"
1622
+        }
1623
+        if(is_type ==6){
1624
+          type_name = "梅毒"
1625
+        }
1626
+
1627
+        return type_name 
1628
+
1629
+      }
1630
+      
1580 1631
     },
1581 1632
     components: {
1582 1633
       WeekItem

+ 42 - 3
src/xt_pages/workforce/next_remind_print.vue View File

@@ -52,7 +52,7 @@
52 52
                   <span v-if="main_collection.schedule_week == 6">周六</span>
53 53
                 </td>
54 54
                 <td :width="td_1_width" v-if="printObj.name == 1">{{ main_collection.patient}}</td>
55
-                <td :width="td_1_width" v-if="printObj.zone == 1">{{ main_collection.zone.name }}</td>
55
+                <td :width="td_1_width" v-if="printObj.zone == 1">{{ main_collection.zone.name }} ({{ getType(main_collection.partition_id)  }})</td>
56 56
                 <td :width="td_1_width" v-if="printObj.classes == 1">
57 57
                   {{getSchedulesType(main_collection.schedule_type)}}
58 58
                 </td>
@@ -113,7 +113,7 @@
113 113
 </template>
114 114
 
115 115
 <script>
116
-  import { getNextScheduleWeekDay,getPrintList } from '@/api/schedule'
116
+  import { getNextScheduleWeekDay,getPrintList,getAllZoneList } from '@/api/schedule'
117 117
   import { getDataConfig } from '@/utils/data'
118 118
   import { parseTime } from '@/utils'
119 119
   import { uParseTime } from '@/utils/tools'
@@ -147,13 +147,14 @@
147 147
         printObj:{},
148 148
         loading: false,
149 149
         blood_access_option:[],
150
+        zoneList:[]
150 151
       }
151 152
     },
152 153
     components: {
153 154
       BreadCrumb
154 155
     },
155 156
     created() {
156
-      
157
+      this.getAllZoneList()
157 158
       this.blood_access_option = getDataConfig(
158 159
           'hemodialysis',
159 160
           'vascular_access_desc'
@@ -178,6 +179,14 @@
178 179
     
179 180
     },
180 181
     methods: {
182
+      getAllZoneList(){
183
+      getAllZoneList().then(response=>{
184
+         if(response.data.state == 1){
185
+            var zonelist = response.data.data.zoneList
186
+            this.zoneList.push(...zonelist)
187
+         }
188
+      })
189
+      },
181 190
       getBloodName(id){
182 191
          var name= ""
183 192
          for(let i=0;i<this.blood_access_option.length;i++){
@@ -470,6 +479,36 @@
470 479
           } 
471 480
         }
472 481
         return nowdate
482
+      },
483
+      getType(zone_id){
484
+        var type_name =""
485
+        var is_type = 0
486
+        for(let i=0;i<this.zoneList.length;i++){
487
+           if(zone_id == this.zoneList[i].id){
488
+               is_type =this.zoneList[i].type
489
+           }
490
+        }
491
+        if(is_type ==1){
492
+          type_name = "普通"
493
+        }
494
+        if(is_type ==2){
495
+          type_name = "乙肝"
496
+        }
497
+        if(is_type ==3){
498
+          type_name = "丙肝"
499
+        }
500
+        if(is_type ==4){
501
+          type_name = "艾滋病"
502
+        }
503
+        if(is_type ==5){
504
+          type_name = "肺结核"
505
+        }
506
+        if(is_type ==6){
507
+          type_name = "梅毒"
508
+        }
509
+
510
+        return type_name 
511
+
473 512
       }
474 513
     }
475 514
   }

+ 46 - 3
src/xt_pages/workforce/remind_print.vue View File

@@ -51,7 +51,7 @@
51 51
                   <span v-if="main_collection.schedule_week == 6">周六</span>
52 52
                 </td>
53 53
                 <td :width="td_1_width" v-if="printObj.name == 1">{{ main_collection.patient.name}}</td>
54
-                <td :width="td_1_width" v-if="printObj.zone == 1">{{ main_collection.zone.name }}</td>
54
+                <td :width="td_1_width" v-if="printObj.zone == 1">{{ main_collection.zone.name }} ({{ getType(main_collection.partition_id)  }})</td>
55 55
                 <td :width="td_1_width" v-if="printObj.classes == 1">
56 56
                   {{getSchedulesType(main_collection.schedule_type)}}
57 57
                 </td>
@@ -112,7 +112,7 @@
112 112
 </template>
113 113
 
114 114
 <script>
115
-  import { getScheduleList,getPrintList } from '@/api/schedule'
115
+  import { getScheduleList,getPrintList,getAllZoneList } from '@/api/schedule'
116 116
   import { getDataConfig } from '@/utils/data'
117 117
   import { parseTime } from '@/utils'
118 118
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
@@ -140,13 +140,15 @@
140 140
         printObj:{},
141 141
         week_time:0,
142 142
         zone:0,
143
-        blood_access_option:[]
143
+        blood_access_option:[],
144
+        zoneList:[]
144 145
       }
145 146
     },
146 147
     components: {
147 148
       BreadCrumb
148 149
     },
149 150
     created() {
151
+      this.getAllZoneList()
150 152
       this.getPrintList()
151 153
       this.org_id = this.$store.getters.xt_user.org.id
152 154
 
@@ -166,6 +168,9 @@
166 168
           week_type:this.week_type,
167 169
           week_time:this.week_time,
168 170
           zone:this.zone,
171
+          ids:this.$route.query.ids,
172
+          limit:1000,
173
+          page:1,
169 174
         }
170 175
        console.log("params",params)
171 176
        getScheduleList(params).then(response=>{
@@ -217,6 +222,14 @@
217 222
       
218 223
     },
219 224
     methods: {
225
+     getAllZoneList(){
226
+      getAllZoneList().then(response=>{
227
+         if(response.data.state == 1){
228
+            var zonelist = response.data.data.zoneList
229
+            this.zoneList.push(...zonelist)
230
+         }
231
+      })
232
+      },
220 233
       getAdvice:function(doctor_advice) {
221 234
         if (doctor_advice != null) {
222 235
 
@@ -423,6 +436,36 @@
423 436
            }
424 437
          }
425 438
          return name
439
+      },
440
+      getType(zone_id){
441
+        var type_name =""
442
+        var is_type = 0
443
+        for(let i=0;i<this.zoneList.length;i++){
444
+           if(zone_id == this.zoneList[i].id){
445
+               is_type =this.zoneList[i].type
446
+           }
447
+        }
448
+        if(is_type ==1){
449
+          type_name = "普通"
450
+        }
451
+        if(is_type ==2){
452
+          type_name = "乙肝"
453
+        }
454
+        if(is_type ==3){
455
+          type_name = "丙肝"
456
+        }
457
+        if(is_type ==4){
458
+          type_name = "艾滋病"
459
+        }
460
+        if(is_type ==5){
461
+          type_name = "肺结核"
462
+        }
463
+        if(is_type ==6){
464
+          type_name = "梅毒"
465
+        }
466
+
467
+        return type_name 
468
+
426 469
       }
427 470
     },
428 471
   }

+ 14 - 2
src/xt_pages/workforce/remind_print_setting.vue View File

@@ -74,6 +74,14 @@
74 74
                   <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
75 75
                   <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
76 76
                 </div>
77
+                <div class="printCell">
78
+                  <span>
79
+                    床号:{{ main_collection.number.number }}
80
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
81
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
82
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
83
+                  </span>
84
+                </div>
77 85
                 <div v-if="printObj.anticoagulant == 1">抗凝剂:
78 86
                   <span v-if="org_id == 10138 || org_id == 0 || org_id == 10278">{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name + ' 5000iu/瓶' : ''}}</span>
79 87
                   <span v-else >
@@ -177,7 +185,7 @@
177 185
                   <span>抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
178 186
                 </div>
179 187
                 <div class="printCell">
180
-                  <span>净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
188
+                  <span>净重值:{{ (main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight).toFixed(2) }}Kg</span>
181 189
                  首剂:<span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
182 190
                   <span v-if="main_collection.dialysissolution.anticoagulant == 2">
183 191
                     {{main_collection.dialysissolution.anticoagulant_shouji}}mg
@@ -355,6 +363,9 @@
355 363
           week_type:this.week_type,
356 364
           week_time:this.week_time,
357 365
           zone:this.zone,
366
+          ids:this.$route.query.ids,
367
+          limit:1000,
368
+          page:1,
358 369
         }
359 370
        console.log("params",params)
360 371
        getScheduleList(params).then(response=>{
@@ -605,7 +616,8 @@
605 616
           week_type:this.week_type,
606 617
           week_time:this.week_time,
607 618
           zone:this.zone,
608
-          record_date:this.getTime(now_time)
619
+          record_date:this.getTime(now_time),
620
+          ids:this.$route.query.ids,
609 621
         }
610 622
         // const params = {
611 623
         //   start_time:1609603200,

+ 14 - 10
src/xt_pages/workforce/remind_print_setting_one.vue View File

@@ -382,7 +382,7 @@
382 382
                 <div class="printCell" v-if="org_id==9671 || org_id==9675 || org_id==10340">
383 383
                     <span v-if="main_collection.lastafterweight!=undefined">上次透析时长:{{ main_collection.lastafterweight.actual_treatment_hour }}小时{{ main_collection.lastafterweight.actual_treatment_minute }}分钟</span>
384 384
                 </div>
385
-                <div class="printCell">身份证:
385
+                <div class="printCell" v-if="org_id!=10517 && org_id!=0">身份证:
386 386
                     <span v-if="type ==1">{{main_collection.patient.id_card_no}} </span>
387 387
                     <span v-if="type ==2">{{main_collection.id_card_no}} </span>
388 388
                 </div>
@@ -392,13 +392,13 @@
392 392
                 </div>
393 393
                 <div class="printCell">
394 394
                    透析器:
395
-                    <span v-if="org_id!=0&&org_id!=10375">
395
+                    <span v-if="org_id!=10375">
396 396
                       <span v-if="type ==1">{{main_collection.dialysis_order.dialysis_dialyszers}} </span>
397 397
                       <span v-if="type ==2">{{main_collection.dialysis_order.dialysis_dialyszers}} </span>
398 398
                     </span>
399 399
                    
400 400
 
401
-                    <span v-if="org_id == 0 || org_id ==10375">
401
+                    <span v-if="org_id ==10375">
402 402
                       <span v-if="type ==1">{{main_collection.dialysissolution.dialysis_dialyszers}} </span>
403 403
                       <span v-if="type ==2">{{main_collection.dialysissolution.dialysis_dialyszers}} </span>
404 404
                     </span>
@@ -406,25 +406,25 @@
406 406
                 </div>
407 407
                 <div class="printCell">
408 408
                    灌流器:
409
-                   <span v-if="org_id!=0&&org_id!=10375">
409
+                   <span v-if="org_id!=10375">
410 410
                     <span v-if="type ==1">{{main_collection.dialysis_order.dialysis_irrigation}} </span>
411 411
                     <span v-if="type ==2">{{main_collection.dialysis_order.dialysis_irrigation}} </span>
412 412
                    </span>
413 413
                  
414 414
 
415
-                    <span v-if="org_id == 0 || org_id == 10375"> 
415
+                    <span v-if="org_id == 10375"> 
416 416
                       <span v-if="type ==1">{{main_collection.dialysissolution.dialysis_irrigation}} </span>
417 417
                       <span v-if="type ==2">{{main_collection.dialysissolution.dialysis_irrigation}} </span>
418 418
                     </span>
419 419
                 </div>
420 420
                 <div class="printCell">
421 421
                   血管通路:
422
-                  <span v-if="org_id!=0&& org_id!=10375">
422
+                  <span v-if="org_id!=10375">
423 423
                     <span v-if="type ==1">{{getBloodAccess(main_collection.dialysis_order.blood_access_id)}} </span>
424 424
                     <span v-if="type ==2">{{getBloodAccess(main_collection.dialysis_order.blood_access_id)}} </span>
425 425
                   </span>
426 426
 
427
-                  <span v-if="org_id == 0 || org_id == 10375">
427
+                  <span v-if="org_id == 10375">
428 428
                    <span v-if="type ==1">{{getBloodAccess(main_collection.dialysissolution.blood_access)}} </span>
429 429
                    <span v-if="type ==2">{{getBloodAccess(main_collection.dialysissolution.blood_access)}} </span>
430 430
                   </span>
@@ -524,12 +524,15 @@
524 524
       this.week_time = this.$route.query.week_time
525 525
       this.zone = this.$route.query.zone
526 526
       this.pre_status = this.$route.query.prestatus
527
-
527
+      
528 528
       if (parseInt(this.$route.query.type) == 1) {
529 529
         const params = {
530 530
           week_type: this.week_type,
531 531
           week_time: this.week_time,
532
-          zone: this.zone
532
+          zone: this.zone,
533
+          ids:this.$route.query.ids,
534
+          limit:1000,
535
+          page:1,
533 536
         }
534 537
       
535 538
         this.loading = true
@@ -785,7 +788,8 @@
785 788
           week_type: this.week_type,
786 789
           week_time: this.week_time,
787 790
           zone: this.zone,
788
-          record_date: this.getTime(now_time)
791
+          record_date: this.getTime(now_time),
792
+          ids:this.$route.query.ids,
789 793
         }
790 794
         // const params = {
791 795
         //   start_time:1609603200,

+ 5 - 2
src/xt_pages/workforce/remind_print_setting_two.vue View File

@@ -261,7 +261,6 @@
261 261
      this.org_id = this.$store.getters.xt_user.org.id
262 262
      console.log("机构ID",this.org_id)
263 263
      this.currentDate = this.getCurrentDate()
264
-     console.log("打印时间----------------------------",this.currentDate)
265 264
     this.printDate = moment().format("YYYY-MM-DD HH:mm:ss")
266 265
     this.modeOptions = this.$store.getters.treatment_mode
267 266
     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
@@ -275,6 +274,9 @@
275 274
           week_type:this.week_type,
276 275
           week_time:this.week_time,
277 276
           zone:this.zone,
277
+          ids:this.$route.query.ids,
278
+          limit:1000,
279
+          page:1,
278 280
         }
279 281
       console.log("params",params)
280 282
       getScheduleList(params).then(response=>{
@@ -519,7 +521,8 @@
519 521
           week_type:this.week_type,
520 522
           week_time:this.week_time,
521 523
           zone:this.zone,
522
-          record_date:this.getTime(now_time)
524
+          record_date:this.getTime(now_time),
525
+          ids:this.$route.query.ids,
523 526
         }
524 527
         // const params = {
525 528
         //   start_time:1609603200,