Pārlūkot izejas kodu

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

陈少旭 4 mēnešus atpakaļ
vecāks
revīzija
8c5ae64e67
43 mainītis faili ar 6832 papildinājumiem un 478 dzēšanām
  1. 1 1
      build/cdn.json
  2. 20 0
      src/api/drug/drug.js
  3. 9 0
      src/api/pharmacy.js
  4. 21 0
      src/router/modules/dialysis.js
  5. 40 40
      src/xt_pages/Dialysisanalysis/new_otherIndicators/components/Total_table.vue
  6. 217 22
      src/xt_pages/Pharmacy/PatientDispensing.vue
  7. 7 4
      src/xt_pages/data/druguseTemplate.vue
  8. 24 2
      src/xt_pages/dialysis/PatientBox.vue
  9. 2357 0
      src/xt_pages/dialysis/batch_print/batch_print_order_eightythree.vue
  10. 11 10
      src/xt_pages/dialysis/batch_print/batch_print_order_seventyfour.vue
  11. 0 1
      src/xt_pages/dialysis/batch_print/batch_print_order_seventythree.vue
  12. 50 22
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  13. 19 21
      src/xt_pages/dialysis/batch_print/batch_print_order_sixtyeight.vue
  14. 13 18
      src/xt_pages/dialysis/batch_print/batch_print_order_thirtyTwo.vue
  15. 14 2
      src/xt_pages/dialysis/bloodPresssWatch.vue
  16. 8 0
      src/xt_pages/dialysis/details/consumable/dialysisGood.vue
  17. 5 0
      src/xt_pages/dialysis/details/consumable/dialysisGoodPrint.vue
  18. 1 0
      src/xt_pages/dialysis/details/consumable/dialysisParameter.vue
  19. 1 1
      src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue
  20. 23 0
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  21. 28 1
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  22. 18 2
      src/xt_pages/dialysis/newDoctorAdvice.vue
  23. 436 0
      src/xt_pages/dialysis/patientAdviceList.vue
  24. 1 2
      src/xt_pages/dialysis/template/DialysisPrintOrderSeventyeight.vue
  25. 48 30
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  26. 39 40
      src/xt_pages/dialysis/template/DialysisPrintOrderSixtyeight.vue
  27. 32 43
      src/xt_pages/dialysis/template/DialysisPrintOrderSop.vue
  28. 17 20
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyTwo.vue
  29. 2949 0
      src/xt_pages/dialysis/template/DialysisPrintOrdereightythree.vue
  30. 9 5
      src/xt_pages/outpatientDoctorStation/template/printOne.vue
  31. 70 2
      src/xt_pages/stock/detail/cancelStockDetail.vue
  32. 77 3
      src/xt_pages/stock/detail/stockInDetail.vue
  33. 90 3
      src/xt_pages/stock/detail/stockOutDetail.vue
  34. 19 9
      src/xt_pages/stock/query/purchaseNewStockQuery.vue
  35. 9 6
      src/xt_pages/stock/query/purchaseNewStockQueryPrint.vue
  36. 1 1
      src/xt_pages/stock/stockInOrderAdd.vue
  37. 87 138
      src/xt_pages/user/courseOfDisease_new.vue
  38. 1 1
      src/xt_pages/user/deathSummary.vue
  39. 1 0
      src/xt_pages/user/patient.vue
  40. 31 0
      src/xt_pages/user/patients.vue
  41. 4 3
      src/xt_pages/user/physiqueprinting.vue
  42. 1 2
      src/xt_pages/user/sickHistory_new.vue
  43. 23 23
      src/xt_pages/workforce/scheduleTablePrintTwo.vue

+ 1 - 1
build/cdn.json Parādīt failu

1
 {
1
 {
2
-  "version": "2999.999.1315"
2
+  "version": "2999.999.1316"
3
 }
3
 }

+ 20 - 0
src/api/drug/drug.js Parādīt failu

934
     method:"Get",
934
     method:"Get",
935
     params:params,
935
     params:params,
936
   })
936
   })
937
+}
938
+
939
+export function getPatientAdviceList(params){
940
+ 
941
+  return request({
942
+    url:"/api/drug/getpatientadvicelist",
943
+    method:"Get",
944
+    params:params,
945
+  })
946
+}
947
+
948
+
949
+
950
+export function getPatientAdviceListDetail(params){
951
+
952
+  return request({
953
+    url:"/api/drug/getpatientadvicelistdetail",
954
+    method:"Get",
955
+    params:params
956
+  })
937
 }
957
 }

+ 9 - 0
src/api/pharmacy.js Parādīt failu

191
     params:params,
191
     params:params,
192
   })
192
   })
193
 }
193
 }
194
+
195
+export function getDrugTocalCount(params){
196
+
197
+  return request({
198
+    url:"/api/pharmacy/getdrugtocalcount",
199
+    method:"get",
200
+    params:params
201
+  })
202
+}

+ 21 - 0
src/router/modules/dialysis.js Parādīt failu

74
         noCache: true
74
         noCache: true
75
       }
75
       }
76
     },
76
     },
77
+    {
78
+      path: '/dialysis/patient/patientAdvice',
79
+      component: () => import('@/xt_pages/dialysis/patientAdviceList'),
80
+      name: '患者医嘱',
81
+      meta: {
82
+        title: '患者医嘱',
83
+        noCache: true
84
+      }
85
+    },
77
     {
86
     {
78
       path: '/dialysis/doctorlongAdvicePrint',
87
       path: '/dialysis/doctorlongAdvicePrint',
79
       component: () => import('@/xt_pages/dialysis/longDoctorAdvicePrint'),
88
       component: () => import('@/xt_pages/dialysis/longDoctorAdvicePrint'),
1178
         noCache: true
1187
         noCache: true
1179
       }
1188
       }
1180
     },
1189
     },
1190
+    {//83
1191
+      path: '/dialysis/print/batch/eightythree',
1192
+      component: () =>
1193
+        import('@/xt_pages/dialysis/batch_print/batch_print_order_eightythree'),
1194
+      hidden: true,
1195
+      is_menu: false,
1196
+      name: 'batch_print_order_eightythree',
1197
+      meta: {
1198
+        title: '批量打印',
1199
+        noCache: true
1200
+      }
1201
+    },
1181
     {
1202
     {
1182
       path: '/dialysis/flow',
1203
       path: '/dialysis/flow',
1183
       component: () => import('@/xt_pages/dialysis/dialysisFlow'),
1204
       component: () => import('@/xt_pages/dialysis/dialysisFlow'),

+ 40 - 40
src/xt_pages/Dialysisanalysis/new_otherIndicators/components/Total_table.vue Parādīt failu

252
         time_way:this.date_mode,
252
         time_way:this.date_mode,
253
       }
253
       }
254
       Getdialysisdetail(params).then(response =>{
254
       Getdialysisdetail(params).then(response =>{
255
-        console.log('00000',response);
255
+        console.log('00000透析总量分析',response.data.data.list);
256
         if(response.data.state == 1){
256
         if(response.data.state == 1){
257
           const list = response.data.data.list
257
           const list = response.data.data.list
258
           this.patientTableData = list
258
           this.patientTableData = list
259
-          // this.tableData = list
260
           var column = []
259
           var column = []
261
-          column = Object.keys(response.data.data.list[0]).map(key => ({
262
-              prop: key,
263
-              label: key // 可以自定义表头名称
264
-            }));
265
-            // this.tableData = response.data.data.list
266
-            for(let i in column){
267
-              if(column[i].label == '日期'){
268
-                column.splice(i,1)
269
-              }
270
-
271
-            }
272
-            const arr={
273
-              label:'日期',
274
-              prop:'日期'
275
-            }
276
-            for(let i in column){
277
-              if(column[i].label == '合计'){
278
-                column.splice(i,1)
279
-              }
260
+          var column2 = []
261
+          list.forEach((v,i)=>{                  
262
+              Object.keys(v).forEach(v=>{
263
+                  column2.push(v)
264
+              })
265
+          })
266
+          column2= [...new Set(column2)]
267
+          for(let i in column2){
268
+            let obj ={
269
+              prop:column2[i],
270
+              label:column2[i]
280
             }
271
             }
281
-            const arr1={
282
-              label:'合计',
283
-              prop:'合计'
272
+            column.push(obj)
273
+          }
274
+          for(let i in column){
275
+            if(column[i].label == '日期'){
276
+              column.splice(i,1)
284
             }
277
             }
285
-            column.unshift(arr)
286
-            column.push(arr1)
287
-            this.columns = column
288
 
278
 
289
-            const detil = []
290
-            for(let i in this.columns){
291
-              detil.push(this.columns[i].label)
279
+          }
280
+          const arr={
281
+            label:'日期',
282
+            prop:'日期'
283
+          }
284
+          for(let i in column){
285
+            if(column[i].label == '合计'){
286
+              column.splice(i,1)
292
             }
287
             }
293
-            this.detilarr = detil
294
-            // this.tableData = response.data.data.list.map(row => {
295
-            //   let newRow = {};
296
-            //   for (let key in row) {
297
-            //     newRow[key] = row[key] === 0 ? '' : row[key];
298
-            //   }
299
-            //   return newRow;
300
-            // });
301
-            // console.log('tttt',this.tableData);
302
-            console.log('hhhhh',this.columns);
288
+          }
289
+          const arr1={
290
+            label:'合计',
291
+            prop:'合计'
292
+          }
293
+          column.unshift(arr)
294
+          column.push(arr1)
295
+          this.columns = column
296
+
297
+          const detil = []
298
+          for(let i in this.columns){
299
+            detil.push(this.columns[i].label)
300
+          }
301
+          this.detilarr = detil
302
+          console.log('hhhhh',this.columns);
303
         }
303
         }
304
 
304
 
305
       })
305
       })

+ 217 - 22
src/xt_pages/Pharmacy/PatientDispensing.vue Parādīt failu

228
             </el-table-column>
228
             </el-table-column>
229
             <el-table-column label="药品追溯码" width="162" align="center">
229
             <el-table-column label="药品追溯码" width="162" align="center">
230
               <template slot-scope="scope">
230
               <template slot-scope="scope">
231
-                <div @click="getDrugCode(scope.row.ID,scope.row.DataSources,scope.row.DrugCode,scope.$index)"><el-input style="width: 100;" v-model="scope.row.DrugCode"></el-input></div>
231
+                <div @click="getDrugCode(scope.row.ID,scope.row.DataSources,scope.row.DrugCode,scope.$index,scope.row.DrugId)"><el-input style="width: 100;" v-model="scope.row.DrugCode"></el-input></div>
232
               </template>
232
               </template>
233
             </el-table-column>
233
             </el-table-column>
234
             <el-table-column label="开立医生" width="150" align="center">
234
             <el-table-column label="开立医生" width="150" align="center">
354
   drugwithdrawal,
354
   drugwithdrawal,
355
   getpartitionlist,
355
   getpartitionlist,
356
   changeDrugCode,
356
   changeDrugCode,
357
-  changeZeroFlag
357
+  changeZeroFlag,
358
+  getDrugTocalCount
358
 
359
 
359
 } from "@/api/pharmacy";
360
 } from "@/api/pharmacy";
360
 import dataDruguse from "../../router/modules/dataDruguse";
361
 import dataDruguse from "../../router/modules/dataDruguse";
415
       currentIndex:0,
416
       currentIndex:0,
416
       is_drug_open:"2",
417
       is_drug_open:"2",
417
       textarea:"",
418
       textarea:"",
418
-      patientList:[]
419
-
419
+      patientList:[],
420
+      drug_id:0,
421
+      total_count:0,
422
+      newArrList:[]
420
     };
423
     };
421
   },
424
   },
422
   watch: {},
425
   watch: {},
1238
        }
1241
        }
1239
        return spc
1242
        return spc
1240
     },
1243
     },
1241
-    getDrugCode(id,DataSources,DrugCode,index){
1242
-      this.id = id
1243
-      var is_source =0
1244
-       if (DataSources == "his处方"){
1245
-        is_source = 1
1246
-       }
1247
-       if (DataSources == "临时医嘱"){
1248
-         is_source = 2
1249
-       }
1250
-       this.is_source = is_source
1251
-       this.textarea = DrugCode
1252
-       this.currentIndex = index
1244
+    getDrugCode(id,DataSources,DrugCode,index,DrugId){
1253
       
1245
       
1254
-       this.dialogVisibleOne = true
1246
+     // 针对百霖
1247
+       if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 0){
1248
+          var params = {
1249
+            drug_id:DrugId,
1250
+            start_time:moment().subtract(15, 'days').format("YYYY-MM-DD")
1251
+          }
1252
+          console.log("params-------------",params)
1253
+         getDrugTocalCount(params).then(response=>{
1254
+           if(response.data.state == 1){
1255
+             
1256
+            var adviceList = response.data.data.adviceList
1257
+
1258
+            var str = ""
1259
+            if(adviceList!=null && adviceList.length>0){
1260
+              for(let i=0;i<adviceList.length;i++){
1261
+                if(adviceList[i].drug_code!=""){
1262
+                  str+=adviceList[i].drug_code 
1263
+                }
1264
+               
1265
+              }
1266
+            }
1267
+            var new_arr = str.split(",");
1268
+
1269
+            console.log("adviceList==========",new_arr)
1270
+
1271
+            if(new_arr!=null && new_arr.length>0){
1272
+               
1273
+               let dataInfo = {}
1274
+               new_arr.forEach((item, index) => {
1275
+                if (!dataInfo[item]) {
1276
+                    dataInfo[item] = {
1277
+                    drug_code:item,
1278
+                    child: [], 
1279
+                  }
1280
+                 }
1281
+               })
1282
+               let arr = Object.values(dataInfo)
1283
+
1284
+               if(arr!=null && arr.length>0){
1285
+                
1286
+                 for(let i=0;i<arr.length;i++){
1287
+                   for(let j=0;j<new_arr.length;j++){
1288
+                      if(arr[i].drug_code == new_arr[j]){
1289
+                         arr[i].child.push(new_arr[j])
1290
+                      }
1291
+                   }
1292
+                 }
1293
+               }
1294
+               
1295
+               this.newArrList = []
1296
+               this.newArrList = arr
1297
+
1298
+
1299
+            }
1300
+              
1301
+            this.drug_id = DrugId
1302
+            this.id = id
1303
+            var is_source =0
1304
+            if (DataSources == "his处方"){
1305
+              is_source = 1
1306
+            }
1307
+            if (DataSources == "临时医嘱"){
1308
+              is_source = 2
1309
+            }
1310
+            this.is_source = is_source
1311
+            this.textarea = DrugCode
1312
+            this.currentIndex = index
1313
+            
1314
+            this.dialogVisibleOne = true
1315
+           }
1316
+         })
1317
+       }else{
1318
+        
1319
+        this.drug_id = DrugId
1320
+        this.id = id
1321
+        var is_source =0
1322
+        if (DataSources == "his处方"){
1323
+          is_source = 1
1324
+        }
1325
+        if (DataSources == "临时医嘱"){
1326
+          is_source = 2
1327
+        }
1328
+        this.is_source = is_source
1329
+        this.textarea = DrugCode
1330
+        this.currentIndex = index
1331
+        
1332
+        this.dialogVisibleOne = true
1333
+       }
1334
+
1335
+     
1255
 
1336
 
1256
     },
1337
     },
1257
     saveTextArea(){
1338
     saveTextArea(){
1274
       })
1355
       })
1275
     },
1356
     },
1276
     changeText(event){
1357
     changeText(event){
1358
+
1277
      
1359
      
1278
       // 检查是否为特定的按键,例如回车键,来确认扫码枪输入完成
1360
       // 检查是否为特定的按键,例如回车键,来确认扫码枪输入完成
1279
       if (event.key === 'Enter') {
1361
       if (event.key === 'Enter') {
1281
         var textarea = ""
1363
         var textarea = ""
1282
         textarea += this.textarea.replace(/^\s*[\r\n]|\r?\n\s*$/gm, '') + ","
1364
         textarea += this.textarea.replace(/^\s*[\r\n]|\r?\n\s*$/gm, '') + ","
1283
          
1365
          
1284
-      
1285
-
1286
         if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id==0){
1366
         if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id==0){
1367
+
1368
+          var drugindentificaitoncode = this.getDrugIdentificationCode(this.drug_id)
1369
+          console.log("drugindentification===================",drugindentificaitoncode)
1370
+
1371
+          var scan_code = this.getDrugScanCode(this.drug_id)
1372
+          
1373
+          console.log("scan_code============",scan_code)
1374
+
1375
+          var total_one = 0
1376
+          var total_two = 0
1377
+
1378
+          console.log("newArr-------------",this.newArrList)
1379
+
1380
+         
1381
+
1287
           var arr= []
1382
           var arr= []
1288
           arr = textarea.split(",")
1383
           arr = textarea.split(",")
1384
+          var arrList = []
1385
+          if(arr!=null && arr.length>0){
1386
+            let dataInfo = {}
1387
+               arr.forEach((item, index) => {
1388
+                if (!dataInfo[item]) {
1389
+                    dataInfo[item] = {
1390
+                    drug_code:item,
1391
+                    child: [], 
1392
+                  }
1393
+                 }
1394
+               })
1395
+               let new_arr = Object.values(dataInfo)
1396
+
1397
+               if(new_arr!=null && new_arr.length>0){
1398
+                
1399
+                 for(let i=0;i<new_arr.length;i++){
1400
+                   for(let j=0;j<arr.length;j++){
1401
+                      if(new_arr[i].drug_code == arr[j]){
1402
+                         new_arr[i].child.push(arr[j])
1403
+                      }
1404
+                   }
1405
+                 }
1406
+               }
1407
+            arrList = new_arr
1408
+            
1409
+          }
1410
+
1289
           var is_err_check = false
1411
           var is_err_check = false
1290
           var i_index = ""
1412
           var i_index = ""
1413
+          var drug_code = ""
1414
+       
1291
           if(arr!=null && arr.length>0){
1415
           if(arr!=null && arr.length>0){
1292
             for(let i=0;i<arr.length;i++){
1416
             for(let i=0;i<arr.length;i++){
1417
+
1293
                if(arr[i]!=""){
1418
                if(arr[i]!=""){
1419
+                 drug_code = arr[i]
1420
+                 i_index = i
1294
                  if(arr[i].length!=20){
1421
                  if(arr[i].length!=20){
1295
                    this.$message.error("药品追溯码长度没有满足20位!")
1422
                    this.$message.error("药品追溯码长度没有满足20位!")
1296
                    is_err_check = true
1423
                    is_err_check = true
1297
-                   i_index = i
1298
                  }
1424
                  }
1425
+                 if(drugindentificaitoncode>0){
1426
+                  if(arr[i].substring(0,7)!= drugindentificaitoncode){
1427
+                    this.$message.error("药品标识码格式不正确,请重新扫码")
1428
+                    is_err_check = true
1429
+                  }
1430
+                 }
1431
+                
1432
+
1299
                }
1433
                }
1300
 
1434
 
1301
             }
1435
             }
1302
           }
1436
           }
1303
-          console.log("is_err_check+++++++++++++",is_err_check)
1304
           if(is_err_check == true){
1437
           if(is_err_check == true){
1305
               arr.splice(i_index,1)
1438
               arr.splice(i_index,1)
1306
           }
1439
           }
1307
-          console.log("arr-------------------------",arr)
1440
+         
1441
+          for(let i=0;i<this.newArrList.length;i++){
1442
+             if(drug_code == this.newArrList[i].drug_code){
1443
+                 total_one = this.newArrList[i].child.length
1444
+             }
1445
+          }
1446
+
1447
+          for(let i=0;i<arrList.length;i++){
1448
+             if(drug_code == arrList[i].drug_code){
1449
+                 total_two = arrList[i].child.length
1450
+             }
1451
+          }
1452
+
1453
+
1454
+          console.log("数量1--------------",total_one)
1455
+          console.log("数量2---------------",total_two)
1456
+        
1457
+          console.log("scan_code=====",scan_code)
1458
+          
1459
+          if(scan_code>0){
1460
+            if((total_one + total_two)>scan_code){
1461
+              this.$message.error("扫码次数已经超过限制!")
1462
+              arr.splice(i_index,1)
1463
+            }
1464
+          }
1465
+         
1466
+
1467
+
1468
+
1469
+         var is_arr = this.hasDuplicates(arr)
1470
+
1471
+         if(is_arr == true){
1472
+           this.$message.error("药品追溯码已经存在,不能重复扫码!")
1473
+           arr.splice(i_index,1)
1474
+         }
1475
+
1476
+         console.log("is_arr-=--------------",is_arr)
1477
+
1308
           this.textarea = arr.join(",")
1478
           this.textarea = arr.join(",")
1309
         }else{
1479
         }else{
1310
 
1480
 
1317
 
1487
 
1318
 
1488
 
1319
     },
1489
     },
1490
+    
1491
+    hasDuplicates(arr) {
1492
+      const uniqueNumbers = [...new Set(arr)];
1493
+      return uniqueNumbers.length !== arr.length;
1494
+    },
1495
+    getDrugIdentificationCode(id){
1496
+       
1497
+      var drug_identification_code = ""
1498
+      for(let i=0;i<this.baseList.length;i++){
1499
+          if(id == this.baseList[i].id){
1500
+            drug_identification_code = this.baseList[i].drug_identification_code
1501
+          }
1502
+      }
1503
+      return drug_identification_code
1504
+    },
1505
+    getDrugScanCode(drug_id){
1506
+      var scan_code = ""
1507
+      for(let i=0;i<this.baseList.length;i++){
1508
+       if(drug_id == this.baseList[i].id){
1509
+          scan_code = this.baseList[i].scan_code
1510
+       }
1511
+      }
1512
+      return scan_code
1513
+    }
1514
+
1320
 
1515
 
1321
 
1516
 
1322
   },
1517
   },

+ 7 - 4
src/xt_pages/data/druguseTemplate.vue Parādīt failu

2863
                 obj.delivery_way = medicalList[i].delivery_way
2863
                 obj.delivery_way = medicalList[i].delivery_way
2864
                 obj.execution_frequency = medicalList[i].execution_frequency
2864
                 obj.execution_frequency = medicalList[i].execution_frequency
2865
                 obj.single_dose = medicalList[i].single_dose
2865
                 obj.single_dose = medicalList[i].single_dose
2866
+                obj.single_dose_unit  = medicalList[i].dose_unit
2866
                 obj.prescribing_number = medicalList[i].prescribing_number
2867
                 obj.prescribing_number = medicalList[i].prescribing_number
2867
                 obj.type_id = medicalList[i].id
2868
                 obj.type_id = medicalList[i].id
2868
                 obj.type = 2
2869
                 obj.type = 2
2900
                 obj.delivery_way = base_drug_list[i].delivery_way
2901
                 obj.delivery_way = base_drug_list[i].delivery_way
2901
                 obj.execution_frequency = base_drug_list[i].execution_frequency
2902
                 obj.execution_frequency = base_drug_list[i].execution_frequency
2902
                 obj.single_dose = base_drug_list[i].single_dose
2903
                 obj.single_dose = base_drug_list[i].single_dose
2904
+                obj.single_dose_unit = base_drug_list[i].dose_unit
2903
                 obj.prescribing_number = base_drug_list[i].prescribing_number
2905
                 obj.prescribing_number = base_drug_list[i].prescribing_number
2904
                 obj.type_id = base_drug_list[i].id
2906
                 obj.type_id = base_drug_list[i].id
2905
                 obj.type = 1
2907
                 obj.type = 1
2917
     changeDrugName(name){
2919
     changeDrugName(name){
2918
        this.current_drug_name = name
2920
        this.current_drug_name = name
2919
        this.templateForm.advice_desc = ''
2921
        this.templateForm.advice_desc = ''
2922
+       console.log("all_drug=============",this.all_drug)
2920
       this.drugSpec = []
2923
       this.drugSpec = []
2921
       for (let i = 0; i < this.all_drug.length; i++) {
2924
       for (let i = 0; i < this.all_drug.length; i++) {
2922
         if (this.all_drug[i].drug_name == name) {
2925
         if (this.all_drug[i].drug_name == name) {
3031
        return a.sort - b.sort
3034
        return a.sort - b.sort
3032
      },
3035
      },
3033
      hangleSelectChange(val){
3036
      hangleSelectChange(val){
3034
-        console.log("==val==",val)
3037
+      console.log("==val==",val)
3035
        var tmp = val.drug_specs[0]
3038
        var tmp = val.drug_specs[0]
3036
        console.log("tmp",tmp)
3039
        console.log("tmp",tmp)
3037
        this.templateForm.advice_desc=this.drugSpec[0].drug_spec
3040
        this.templateForm.advice_desc=this.drugSpec[0].drug_spec
3038
-       this.templateForm.drug_spec_unit=this.drugSpec[0].min_unit
3041
+       this.templateForm.drug_spec_unit= this.drugSpec[0].min_unit
3039
        this.templateForm.prescribing_number=this.drugSpec[0].prescribing_number
3042
        this.templateForm.prescribing_number=this.drugSpec[0].prescribing_number
3040
        this.templateForm.prescribing_number_unit=this.drugSpec[0].prescribing_number_unit
3043
        this.templateForm.prescribing_number_unit=this.drugSpec[0].prescribing_number_unit
3041
-       this.templateForm.single_dose=this.drugSpec[0].single_dose
3042
-       this.templateForm.single_dose_unit=this.drugSpec[0].min_unit
3044
+       this.templateForm.single_dose= this.drugSpec[0].single_dose
3045
+       this.templateForm.single_dose_unit= val.single_dose_unit
3043
        this.templateForm.delivery_way=this.drugSpec[0].delivery_way
3046
        this.templateForm.delivery_way=this.drugSpec[0].delivery_way
3044
        this.templateForm.execution_frequency=this.drugSpec[0].execution_frequency
3047
        this.templateForm.execution_frequency=this.drugSpec[0].execution_frequency
3045
        this.templateForm.advice_desc=tmp.dose+tmp.dose_unit+"*"+tmp.min_number+tmp.min_unit+"/"//药品规格
3048
        this.templateForm.advice_desc=tmp.dose+tmp.dose_unit+"*"+tmp.min_number+tmp.min_unit+"/"//药品规格

+ 24 - 2
src/xt_pages/dialysis/PatientBox.vue Parādīt failu

161
         </p>
161
         </p>
162
 
162
 
163
 
163
 
164
-        <p v-if="$store.getters.xt_user.org.id!=9675 && $store.getters.xt_user.org.id!=10340">
164
+        <p v-if="$store.getters.xt_user.org.id!=9675 && $store.getters.xt_user.org.id!=10340 && $store.getters.xt_user.org.id!=0&& $store.getters.xt_user.org.id!=10742">
165
           透析器/灌流器:{{schedule.prescription? schedule.prescription.dialyzer_perfusion_apparatus: ""}}
165
           透析器/灌流器:{{schedule.prescription? schedule.prescription.dialyzer_perfusion_apparatus: ""}}
166
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_dialyszers: ""}}</span>
166
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_dialyszers: ""}}</span>
167
           <span v-if="schedule.prescription != null &&schedule.prescription.dialysis_irrigation != ''">/</span>
167
           <span v-if="schedule.prescription != null &&schedule.prescription.dialysis_irrigation != ''">/</span>
168
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_irrigation: ""}}</span>
168
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_irrigation: ""}}</span>
169
         </p>
169
         </p>
170
+
171
+        <p v-if="$store.getters.xt_user.org.id ==0 ||  $store.getters.xt_user.org.id ==10742">
172
+          透析器/灌流器/滤过器:
173
+        
174
+          <span v-if="schedule.prescription != null">
175
+            <span v-if="schedule.prescription.id > 0">
176
+              {{schedule.prescription? schedule.prescription.dialysis_dialyszers: ""}}
177
+            </span>
178
+            <span v-if="schedule.prescription != null &&schedule.prescription.dialysis_irrigation != ''">/</span>
179
+            <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_irrigation: ""}}</span>
180
+          </span>
181
+
182
+          <span v-if="schedule.prescription== null && schedule.dialysis_solution!=null">
183
+             <span v-if="schedule.dialysis_solution.id>0">
184
+                {{ schedule.dialysis_solution.dialysis_dialyszers }} 
185
+               <span v-if="schedule.dialysis_solution.dialysis_dialyszers!=''"> {{ schedule.dialysis_solution.dialysis_irrigation }}</span>
186
+               <span v-if="schedule.dialysis_solution.dialysis_strainer!=''"> {{ schedule.dialysis_solution.dialysis_strainer }}</span>
187
+             </span>
188
+          </span>
189
+        
190
+        </p>
191
+
170
         <p v-if="$store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
192
         <p v-if="$store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
171
              透析器/灌流器:
193
              透析器/灌流器:
172
              <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_dialyszers}}</span>
194
              <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_dialyszers}}</span>
173
              <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_irrigation}}</span>
195
              <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_irrigation}}</span>
174
              
196
              
175
         </p>
197
         </p>
176
-        <p v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==10445">
198
+        <p v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==10445 ||  $store.getters.xt_user.org.id==10579 ">
177
            滤过器:
199
            滤过器:
178
            <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_strainer: ""}}</span>
200
            <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_strainer: ""}}</span>
179
         </p>
201
         </p>

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 2357 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_eightythree.vue


+ 11 - 10
src/xt_pages/dialysis/batch_print/batch_print_order_seventyfour.vue Parādīt failu

123
                   <tr>
123
                   <tr>
124
                     <td colspan="2">
124
                     <td colspan="2">
125
                       <div style="line-height:30px;">
125
                       <div style="line-height:30px;">
126
-                      <span>处方脱水量: {{ record.prescription.prescription_water ? record.prescription.prescription_water : "" }} </span>ml &nbsp;&nbsp;
127
-                      <span>透析液流量: {{ record.prescription.dialysate_flow ? record.prescription.dialysate_flow : "" }} </span>ml/h
126
+                        <span v-if="org_id != 9779">处方脱水量: {{ record.prescription.prescription_water ? record.prescription.prescription_water : "" }} ml &nbsp;&nbsp;</span>
127
+                        <span v-if="org_id == 9779">目标脱水量:{{ record.prescription.target_ultrafiltration ? record.prescription.target_ultrafiltration : "" }} L&nbsp;&nbsp;</span>
128
+                        <span>透析液流量: {{ record.prescription.dialysate_flow ? record.prescription.dialysate_flow : "" }} </span>ml/h
128
                       </div>
129
                       </div>
129
                     </td>
130
                     </td>
130
                     <td >
131
                     <td >
144
               <table border="1" class="table-box" style="border-collapse: collapse;width: 100%;">
145
               <table border="1" class="table-box" style="border-collapse: collapse;width: 100%;">
145
                 <tr>
146
                 <tr>
146
                   <td style="width: 20%; line-height: 30px;">透析机:
147
                   <td style="width: 20%; line-height: 30px;">透析机:
147
-                    {{record.assessment_before_dislysis.machine_type ? record.assessment_before_dislysis.machine_type : " "}}
148
+                    {{record.assessment_before_dislysis.machine_type ? record.assessment_before_dislysis.machine_type : "/"}}
148
                   </td>
149
                   </td>
149
                   <td style="width: 30%;line-height: 30px;">
150
                   <td style="width: 30%;line-height: 30px;">
150
                     透析(滤)器:
151
                     透析(滤)器:
177
                   <td colspan="3">
178
                   <td colspan="3">
178
                     <div style="display: inline-block;line-height: 30px;">
179
                     <div style="display: inline-block;line-height: 30px;">
179
                       血管通路:
180
                       血管通路:
180
-                      <label-box :isChecked="QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id)=='内瘘'?true :false" showValue="内瘘"></label-box>&nbsp;
181
-                      <label-box :isChecked="QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id)=='长期静脉导管'?true :false" showValue="长期静脉导管"></label-box>&nbsp;
182
-                      <label-box :isChecked="QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id)=='临时静脉导管'?true :false" showValue="临时(颈、股)静脉导管"></label-box>&nbsp;
183
-                      <label-box :isChecked="QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id)!='内瘘' &&
184
-                                  QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id)!='长期静脉导管' &&
185
-                                  QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id)!='临时静脉导管' &&
186
-                                  QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id)!=''?true :false" showValue="其它">
181
+                      <label-box :isChecked="QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id).indexOf('内瘘')!=-1?true :false" showValue="内瘘"></label-box>&nbsp;
182
+                      <label-box :isChecked="QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id).indexOf('长期静脉导管')!=-1?true :false" showValue="长期静脉导管"></label-box>&nbsp;
183
+                      <label-box :isChecked="QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id).indexOf('临时静脉导管')!=-1?true :false" showValue="临时(颈、股)静脉导管"></label-box>&nbsp;
184
+                      <label-box :isChecked="QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id).indexOf('内瘘')==-1 &&
185
+                                  QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id).indexOf('长期静脉导管') &&
186
+                                  QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id).indexOf('临时静脉导管') ?true :false" showValue="其它">
187
                       </label-box>
187
                       </label-box>
188
+                      {{ QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id) }}
188
                     </div>&nbsp;&nbsp;
189
                     </div>&nbsp;&nbsp;
189
                     <div style="display: inline-block;line-height: 30px;">
190
                     <div style="display: inline-block;line-height: 30px;">
190
                       穿刺者:
191
                       穿刺者:

+ 0 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_seventythree.vue Parādīt failu

339
                         体重增加:
339
                         体重增加:
340
                         <div class="under_line" style=" width: 50%;text-align: center; white-space: normal;">
340
                         <div class="under_line" style=" width: 50%;text-align: center; white-space: normal;">
341
                           {{ record.assessment_before_dislysis.weight_before > 0 && 
341
                           {{ record.assessment_before_dislysis.weight_before > 0 && 
342
-                          record.assessment_before_dislysis.additional_weight > 0 && 
343
                           record.assessment_before_dislysis.dry_weight >0 ? 
342
                           record.assessment_before_dislysis.dry_weight >0 ? 
344
                           parseFloat(record.assessment_before_dislysis.weight_before - record.assessment_before_dislysis.additional_weight - record.assessment_before_dislysis.dry_weight).toFixed(2): "/" 
343
                           parseFloat(record.assessment_before_dislysis.weight_before - record.assessment_before_dislysis.additional_weight - record.assessment_before_dislysis.dry_weight).toFixed(2): "/" 
345
                           }}
344
                           }}

+ 50 - 22
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Parādīt failu

1017
                               ? record.prescription.dialysis_dialyszers
1017
                               ? record.prescription.dialysis_dialyszers
1018
                               : "/"
1018
                               : "/"
1019
                           }}
1019
                           }}
1020
+                          <span v-if="org_id ==10740">
1021
+                            {{
1022
+                              record.prescription.dialysis_strainer
1023
+                                ? record.prescription.dialysis_strainer
1024
+                                : ""
1025
+                            }}
1026
+                          </span>
1020
                         </div>
1027
                         </div>
1021
                       </div>
1028
                       </div>
1022
                       <div class="inline_block" style="flex: 1">
1029
                       <div class="inline_block" style="flex: 1">
1098
                       </div>
1105
                       </div>
1099
                     </div>
1106
                     </div>
1100
 
1107
 
1101
-                    <div
1102
-
1103
-                      class="row"
1108
+                    <div class="row"
1104
                       style="padding: 2px 0; line-height: 23px; display: flex"
1109
                       style="padding: 2px 0; line-height: 23px; display: flex"
1105
                     >
1110
                     >
1106
                       <!-- <div class="inline_block" style="flex: 1"
1111
                       <!-- <div class="inline_block" style="flex: 1"
1601
                       >
1606
                       >
1602
                         <div
1607
                         <div
1603
                           class="inline_block"
1608
                           class="inline_block"
1604
-                          style="flex: 1; display: inline-block"
1609
+                          style="flex: 2; display: inline-block"
1605
                           v-if="org_id!=9675 && org_id!=10447"
1610
                           v-if="org_id!=9675 && org_id!=10447"
1606
                         >
1611
                         >
1607
                           备注:
1612
                           备注:
1608
                           <div
1613
                           <div
1609
                             class="under_line"
1614
                             class="under_line"
1610
                             style="
1615
                             style="
1611
-                              width: 860px;
1616
+                              width: 80%;
1612
                               line-height: 25px;
1617
                               line-height: 25px;
1613
                               text-align: left;
1618
                               text-align: left;
1614
                               margin-left: 2px;
1619
                               margin-left: 2px;
1619
                             {{ record.assessment_before_dislysis.remark ?record.assessment_before_dislysis.remark : "/" }}
1624
                             {{ record.assessment_before_dislysis.remark ?record.assessment_before_dislysis.remark : "/" }}
1620
                           </div>
1625
                           </div>
1621
                         </div>
1626
                         </div>
1627
+
1628
+                        <div style="flex: 1;">
1629
+                          医生签名:
1630
+                          <div class="under_line">
1631
+                            <span
1632
+                              v-if=" setAdminUserES(
1633
+                                  record.prescription, 'creater') == ''">
1634
+                              {{
1635
+                                getAdminUser(
1636
+                                  record.prescription,
1637
+                                  "creater"
1638
+                                )
1639
+                              }}</span
1640
+                            >
1641
+                            <img class="es-img"
1642
+                              :src="
1643
+                                setAdminUserES(
1644
+                                  record.prescription,
1645
+                                  'creater'
1646
+                                )
1647
+                              "
1648
+                              alt=""
1649
+                              srcset=""
1650
+                              v-else
1651
+                              style="height: 40px"
1652
+                            />
1653
+                          </div>
1654
+                        </div>
1622
                       </div>
1655
                       </div>
1623
                     </div>
1656
                     </div>
1624
 
1657
 
1749
                           置换液的速度<br />(ml/h)
1782
                           置换液的速度<br />(ml/h)
1750
                           </td>
1783
                           </td>
1751
                           <td width="50" v-if="org_id == 10375">置换率<br />(ml/h)</td>
1784
                           <td width="50" v-if="org_id == 10375">置换率<br />(ml/h)</td>
1752
-                          <td width="50" v-if=" org_id ==0 || org_id ==10489 || org_id == 10735">超滤率<br />(ml/h)</td>
1753
-                          <td width="50" v-if="org_id != 3877 && org_id != 10449 && org_id!=10600 && org_id!=10683">超滤量<br />
1785
+                          <td width="50" v-if=" org_id ==10600 || org_id ==10489 || org_id == 10735">超滤率<br />(ml/h)</td>
1786
+                          <td width="50" v-if="org_id != 3877 && org_id != 10449 && org_id!=10683">超滤量<br />
1754
                             <span v-if="org_id!=10471"> (ml)</span>
1787
                             <span v-if="org_id!=10471"> (ml)</span>
1755
                             <span v-if="org_id==10471">L</span>
1788
                             <span v-if="org_id==10471">L</span>
1756
                           </td>
1789
                           </td>
1757
-                          <td width="50" v-if="org_id == 10600 || org_id ==10683 || org_id ==0 || org_id == 10567 || org_id ==10724">超滤率<br />(ml/h)</td>
1790
+                          <td width="50" v-if="org_id ==10683  || org_id == 10567 || org_id ==10724">超滤率<br />(ml/h)</td>
1758
                           <td width="50" v-if="org_id ==3877 || org_id ==10449">累计超滤量<br />(ml)</td>
1791
                           <td width="50" v-if="org_id ==3877 || org_id ==10449">累计超滤量<br />(ml)</td>
1759
                           <td
1792
                           <td
1760
                             v-if="
1793
                             v-if="
1784
                               org_id ==10600 ||
1817
                               org_id ==10600 ||
1785
                               org_id ==10629 ||
1818
                               org_id ==10629 ||
1786
                               org_id == 10510 ||
1819
                               org_id == 10510 ||
1787
-                              org_id == 0 ||
1788
                               org_id == 10598 ||
1820
                               org_id == 10598 ||
1789
-                              org_id == 10567 ||
1790
-                              org_id == 10724
1821
+                              org_id == 10567 
1791
 
1822
 
1792
                             "
1823
                             "
1793
                           >
1824
                           >
1991
                           <td width="50" v-if="org_id == 10375"><br />
2022
                           <td width="50" v-if="org_id == 10375"><br />
1992
                             {{ monitor_record.replacement_rate?monitor_record.replacement_rate:"0" }}
2023
                             {{ monitor_record.replacement_rate?monitor_record.replacement_rate:"0" }}
1993
                           </td>
2024
                           </td>
1994
-                          <td width="50" v-if="org_id == 10489 || org_id ==0 || org_id == 10735"><br />
1995
-
2025
+                          <td width="50" v-if="org_id == 10489 || org_id ==10600 || org_id == 10735"><br />
1996
                                    {{
2026
                                    {{
1997
                                      monitor_record.ultrafiltration_rate
2027
                                      monitor_record.ultrafiltration_rate
1998
                                        ? monitor_record.ultrafiltration_rate
2028
                                        ? monitor_record.ultrafiltration_rate
2017
 
2047
 
2018
                           </td>
2048
                           </td>
2019
 
2049
 
2020
-                          <td width="50" v-if="org_id == 10600 || org_id ==10683 || org_id ==0 || org_id == 10567 || org_id == 10724"><br />
2050
+                          <td width="50" v-if="org_id ==10683 || org_id == 10567 || org_id == 10724"><br />
2021
 
2051
 
2022
                                     {{
2052
                                     {{
2023
                                       monitor_record.ultrafiltration_rate
2053
                                       monitor_record.ultrafiltration_rate
2065
                               org_id == 10600 ||
2095
                               org_id == 10600 ||
2066
                               org_id ==10629 ||
2096
                               org_id ==10629 ||
2067
                               org_id ==10510 ||
2097
                               org_id ==10510 ||
2068
-                              org_id== 0 ||
2069
                               org_id ==10598 ||
2098
                               org_id ==10598 ||
2070
-                              org_id == 10567 ||
2071
-                              org_id == 10724
2099
+                              org_id == 10567 
2072
                             "
2100
                             "
2073
                           >
2101
                           >
2074
                             {{ monitor_record.ktv }}
2102
                             {{ monitor_record.ktv }}
3105
                          </span>
3133
                          </span>
3106
 
3134
 
3107
                          <span v-if="org_id == 10551">{{
3135
                          <span v-if="org_id == 10551">{{
3108
-                            record.assessment_after_dislysis && 
3136
+                            record.assessment_after_dislysis &&
3109
                             record.assessment_before_dislysis&&
3137
                             record.assessment_before_dislysis&&
3110
                             record.assessment_before_dislysis.weight_before - record.assessment_after_dislysis.weight_after
3138
                             record.assessment_before_dislysis.weight_before - record.assessment_after_dislysis.weight_after
3111
                               ?record.assessment_before_dislysis.weight_before - record.assessment_after_dislysis.weight_after
3139
                               ?record.assessment_before_dislysis.weight_before - record.assessment_after_dislysis.weight_after
3134
                       >
3162
                       >
3135
 
3163
 
3136
                         <span v-if="org_id!=10460">
3164
                         <span v-if="org_id!=10460">
3137
-                          透析中入量  (L):
3165
+                          透析中入量(L):
3138
                         </span>
3166
                         </span>
3139
                         <span v-if="org_id==10460">
3167
                         <span v-if="org_id==10460">
3140
-                          透析中入量  (ml):
3168
+                          透析中入量(ml):
3141
                         </span>
3169
                         </span>
3142
                         <div
3170
                         <div
3143
                           class="under_line"
3171
                           class="under_line"
3144
-                          style="width: 100px; text-align: center"
3172
+                          style="width: 60px; text-align: center"
3145
                         >
3173
                         >
3146
                           {{
3174
                           {{
3147
                             record.assessment_after_dislysis &&
3175
                             record.assessment_after_dislysis &&
3170
                           }}
3198
                           }}
3171
                         </div>
3199
                         </div>
3172
                         <span v-if="org_id!=9675&&org_id!=10447 &&org_id!=10624 && org_id!=10471"> ml</span>
3200
                         <span v-if="org_id!=9675&&org_id!=10447 &&org_id!=10624 && org_id!=10471"> ml</span>
3173
-                        <span v-if="org_id ==9675||org_id==10447 || org_id==10624 || org_id == 10471">L</span>
3201
+                        <span v-if="org_id ==9675||org_id==10447 || org_id==10624 || org_id == 10471 ">L</span>
3174
                       </div>
3202
                       </div>
3175
 
3203
 
3176
                       <div class="inline_block" style="flex: 1" v-if="org_id ==10598 || org_id == 0">
3204
                       <div class="inline_block" style="flex: 1" v-if="org_id ==10598 || org_id == 0">

+ 19 - 21
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyeight.vue Parādīt failu

394
                         </div>
394
                         </div>
395
                       </div>
395
                       </div>
396
                     </div>
396
                     </div>
397
-                    <div
398
-                      class="row"
397
+                    <div class="row"
399
                       style="padding: 2px 0; line-height: 23px; display: flex"
398
                       style="padding: 2px 0; line-height: 23px; display: flex"
400
                     >
399
                     >
401
                       <div class="inline_block">
400
                       <div class="inline_block">
1172
                         <span v-if="record.prescription.anticoagulant == 4"
1171
                         <span v-if="record.prescription.anticoagulant == 4"
1173
                           >mg</span
1172
                           >mg</span
1174
                         >
1173
                         >
1175
-                        <span v-if="record.prescription.anticoagulant == 3"
1174
+                        <span v-else-if="record.prescription.anticoagulant == 3"
1176
                           >iu</span
1175
                           >iu</span
1177
                         >
1176
                         >
1178
-                        <span v-if="record.prescription.anticoagulant == 2"
1177
+                        <span v-else-if="record.prescription.anticoagulant == 2"
1179
                           >mg</span
1178
                           >mg</span
1180
                         >
1179
                         >
1181
-                        <span v-if="record.prescription.anticoagulant == 1"
1182
-                          >mg</span
1183
-                        >
1184
-                        <span v-if="record.prescription.anticoagulant == 15"
1180
+                        <span v-else-if="record.prescription.anticoagulant == 1"
1185
                           >mg</span
1181
                           >mg</span
1186
                         >
1182
                         >
1183
+                        <span v-else-if="record.prescription.anticoagulant == 15">mg</span>
1184
+                        <span v-else>iu</span>
1187
                       </div>
1185
                       </div>
1188
                       <div class="inline_block" style="margin-left: 20px" v-if=" record.prescription.anticoagulant !=1">
1186
                       <div class="inline_block" style="margin-left: 20px" v-if=" record.prescription.anticoagulant !=1">
1189
                         维持:
1187
                         维持:
1220
                         <span v-if="record.prescription.anticoagulant == 5"
1218
                         <span v-if="record.prescription.anticoagulant == 5"
1221
                           >ml/h</span
1219
                           >ml/h</span
1222
                         >
1220
                         >
1223
-                        <span v-if="record.prescription.anticoagulant == 4"
1221
+                        <span v-else-if="record.prescription.anticoagulant == 4"
1224
                           >mg/h</span
1222
                           >mg/h</span
1225
                         >
1223
                         >
1226
-                        <span v-if="record.prescription.anticoagulant == 3"
1224
+                        <span v-else-if="record.prescription.anticoagulant == 3"
1227
                           >iu/h</span
1225
                           >iu/h</span
1228
                         >
1226
                         >
1229
-                        <span v-if="record.prescription.anticoagulant == 2"
1227
+                        <span v-else-if="record.prescription.anticoagulant == 2"
1230
                           >mg/h</span
1228
                           >mg/h</span
1231
                         >
1229
                         >
1232
-                        <span v-if="record.prescription.anticoagulant == 1"
1233
-                          >mg/h</span
1234
-                        >
1235
-                        <span v-if="record.prescription.anticoagulant == 15"
1230
+                        <span v-else-if="record.prescription.anticoagulant == 1"
1236
                           >mg/h</span
1231
                           >mg/h</span
1237
                         >
1232
                         >
1233
+                        <span v-else-if="record.prescription.anticoagulant == 15"
1234
+                          >mg/h</span>
1235
+                        <span v-else>iu/h</span>
1238
                       </div>
1236
                       </div>
1239
                       <div class="inline_block" style="margin-left: 20px" v-if=" record.prescription.anticoagulant !=1">
1237
                       <div class="inline_block" style="margin-left: 20px" v-if=" record.prescription.anticoagulant !=1">
1240
                         总量:
1238
                         总量:
1252
                         <span v-if="record.prescription.anticoagulant == 4"
1250
                         <span v-if="record.prescription.anticoagulant == 4"
1253
                           >mg</span
1251
                           >mg</span
1254
                         >
1252
                         >
1255
-                        <span v-if="record.prescription.anticoagulant == 3"
1253
+                        <span v-else-if="record.prescription.anticoagulant == 3"
1256
                           >iu</span
1254
                           >iu</span
1257
                         >
1255
                         >
1258
-                        <span v-if="record.prescription.anticoagulant == 2"
1259
-                          >mg</span
1260
-                        >
1261
-                        <span v-if="record.prescription.anticoagulant == 1"
1256
+                        <span v-else-if="record.prescription.anticoagulant == 2"
1262
                           >mg</span
1257
                           >mg</span
1263
                         >
1258
                         >
1264
-                        <span v-if="record.prescription.anticoagulant == 15"
1259
+                        <span v-else-if="record.prescription.anticoagulant == 1"
1265
                           >mg</span
1260
                           >mg</span
1266
                         >
1261
                         >
1262
+                        <span v-else-if="record.prescription.anticoagulant == 15"
1263
+                          >mg</span>
1264
+                        <span v-else>iu</span>
1267
                       </div>
1265
                       </div>
1268
 
1266
 
1269
                       <div class="inline_block" style="margin-left: 20px">
1267
                       <div class="inline_block" style="margin-left: 20px">

+ 13 - 18
src/xt_pages/dialysis/batch_print/batch_print_order_thirtyTwo.vue Parādīt failu

176
                         <table class="table-box">
176
                         <table class="table-box">
177
                         <tbody>
177
                         <tbody>
178
                         <tr>
178
                         <tr>
179
-                            <td width="70">导管:</td>
179
+                            <td width="70">导管:</td>
180
                             <td width="240">
180
                             <td width="240">
181
-                            <div style="display:flex;justify-content:space-between;">
182
-                                <label-box :isChecked="record.assessment_before_dislysis.catheter.indexOf('穿刺口-干洁') > -1 ? true : false" showValue="干洁"></label-box>
183
-                                &nbsp;
184
-                                <label-box :isChecked="record.assessment_before_dislysis.catheter.indexOf('穿刺口-红肿') > -1 ? true : false" showValue="红肿"></label-box>
185
-                                &nbsp;
186
-                                <label-box :isChecked="record.assessment_before_dislysis.catheter.indexOf('穿刺口-分泌物') > -1 ? true : false" showValue="分泌物"></label-box>
187
-                                &nbsp;
188
-                                <label-box :isChecked="record.assessment_before_dislysis.catheter.indexOf('穿刺口-渗血') > -1 ? true : false" showValue="渗血"></label-box>
181
+                            <div class="under-line" style="text-align: center;">
182
+                              {{ record.assessment_before_dislysis.catheter ? record.assessment_before_dislysis.catheter :'/' }}
189
                             </div>
183
                             </div>
190
                             </td>
184
                             </td>
191
                             <td width="40"></td>
185
                             <td width="40"></td>
220
                                 &nbsp;
214
                                 &nbsp;
221
                                 <label-box :isChecked="record.assessment_before_dislysis.internal_fistula.indexOf('震颤-减弱') > -1 ? true : false" showValue="减弱"></label-box>
215
                                 <label-box :isChecked="record.assessment_before_dislysis.internal_fistula.indexOf('震颤-减弱') > -1 ? true : false" showValue="减弱"></label-box>
222
                                 &nbsp;
216
                                 &nbsp;
223
-                                <label-box :isChecked="(record.assessment_before_dislysis.internal_fistula.indexOf('震颤-无') > -1 || record.assessment_before_dislysis.internal_fistula.indexOf('不存在') > -1) ? true : false" showValue="不存在"></label-box>
217
+                                <label-box :isChecked="(record.assessment_before_dislysis.internal_fistula.indexOf('不存在') > -1 || record.assessment_before_dislysis.internal_fistula.indexOf('不存在') > -1) ? true : false" showValue="不存在"></label-box>
224
                             </div>
218
                             </div>
225
                             </td>
219
                             </td>
226
                             <td width="30"></td>
220
                             <td width="30"></td>
711
                                 <div style="display:flex;justify-content:space-between;">
705
                                 <div style="display:flex;justify-content:space-between;">
712
                                 <label-box :isChecked="record.assessment_after_dislysis.internal_fistula.indexOf('震颤-存在') > -1 ? true : false" showValue="存在"></label-box>
706
                                 <label-box :isChecked="record.assessment_after_dislysis.internal_fistula.indexOf('震颤-存在') > -1 ? true : false" showValue="存在"></label-box>
713
                                 <label-box :isChecked="record.assessment_after_dislysis.internal_fistula.indexOf('震颤-减弱') > -1 ? true : false" showValue="减弱"></label-box>
707
                                 <label-box :isChecked="record.assessment_after_dislysis.internal_fistula.indexOf('震颤-减弱') > -1 ? true : false" showValue="减弱"></label-box>
714
-                                <label-box :isChecked="record.assessment_after_dislysis.internal_fistula.indexOf('震颤-无') > -1 ? true : false" showValue="不存在"></label-box>
708
+                                <label-box :isChecked="record.assessment_after_dislysis.internal_fistula.indexOf('不存在') > -1 ? true : false" showValue="不存在"></label-box>
715
                                 </div>
709
                                 </div>
716
                             </td>
710
                             </td>
717
                             <td width='30'></td>
711
                             <td width='30'></td>
718
                             <td width="40">导管:</td>
712
                             <td width="40">导管:</td>
719
                             <td width='200'>
713
                             <td width='200'>
720
-                                <label-box showValue="通畅" :isChecked="record.assessment_after_dislysis.catheter.indexOf('通畅') > -1 ? true : false"></label-box>&nbsp;
721
-                                <label-box showValue="A堵塞" :isChecked="record.assessment_after_dislysis.catheter.indexOf('A堵塞') > -1 ? true : false"></label-box>&nbsp;
722
-                                <label-box showValue="V堵塞" :isChecked="record.assessment_after_dislysis.catheter.indexOf('V堵塞') > -1 ? true : false"></label-box>&nbsp;
714
+                              <div class="under-line" style="text-align: center;white-space: normal;">
715
+                                {{ record.assessment_after_dislysis.catheter ? record.assessment_after_dislysis.catheter :'/' }}
716
+                              </div>
723
                             </td>
717
                             </td>
724
                             <td></td>
718
                             <td></td>
725
                             </tr>
719
                             </tr>
731
                             <tr>
725
                             <tr>
732
                             <td width="130">拔针后穿刺点渗血:</td>
726
                             <td width="130">拔针后穿刺点渗血:</td>
733
                             <td width="80">
727
                             <td width="80">
734
-                                <div style="display:flex;justify-content:space-between;">
735
-                                <label-box :isChecked="record.assessment_after_dislysis.puncture_point_oozing_blood == 1 ? true : false" showValue="有"></label-box>
736
-                                <label-box :isChecked="record.assessment_after_dislysis.puncture_point_oozing_blood == 2 ? true : false" showValue="无"></label-box>
737
-                                </div>
728
+                              <div class="under-line" style="text-align: center;">
729
+                                <span v-if="record.assessment_after_dislysis.puncture_point_oozing_blood ==1">有</span>
730
+                                <span v-else-if="record.assessment_after_dislysis.puncture_point_oozing_blood ==2">无</span>
731
+                                <span v-else>/</span>
732
+                              </div>
738
                             </td>
733
                             </td>
739
                             <td width="10"></td>
734
                             <td width="10"></td>
740
                             <td width="85">穿刺处血肿:</td>
735
                             <td width="85">穿刺处血肿:</td>

+ 14 - 2
src/xt_pages/dialysis/bloodPresssWatch.vue Parādīt failu

559
             >批量打印</el-button
559
             >批量打印</el-button
560
           >
560
           >
561
         </template>
561
         </template>
562
+        <template v-if="this.template_id == 83">
563
+          <el-button
564
+            size="small"
565
+            icon="el-icon-printer"
566
+            :disabled="selecting_schs.length == 0"
567
+            @click="batchPrintAction"
568
+            type="primary"
569
+            >批量打印</el-button
570
+          >
571
+        </template>
562
       </div>
572
       </div>
563
     </div>
573
     </div>
564
     <div class="app-container">
574
     <div class="app-container">
1943
           this.$message.error(response.data.msg);
1953
           this.$message.error(response.data.msg);
1944
           return false;
1954
           return false;
1945
         } else {
1955
         } else {
1946
-          // if(this.org_id ==10206){
1947
-          //   this.template_id = 80
1956
+          // if(this.org_id ==10742 || this.org_id==0){
1957
+          //   this.template_id = 83
1948
           //   // this.template_id = 81
1958
           //   // this.template_id = 81
1949
           //   console.log("templage-i233232323232322323233232323223",this.template_id)
1959
           //   console.log("templage-i233232323232322323233232323223",this.template_id)
1950
           // }else{
1960
           // }else{
2789
         this.$router.push({ path: "/dialysis/print/batch/eightyone" });
2799
         this.$router.push({ path: "/dialysis/print/batch/eightyone" });
2790
       } else if (this.template_id == 82) {
2800
       } else if (this.template_id == 82) {
2791
         this.$router.push({ path: "/dialysis/print/batch/eightyTwo" });
2801
         this.$router.push({ path: "/dialysis/print/batch/eightyTwo" });
2802
+      } else if (this.template_id == 83) {
2803
+        this.$router.push({ path: "/dialysis/print/batch/eightythree" });
2792
       }
2804
       }
2793
     },
2805
     },
2794
     batchPrintActionOne: function() {
2806
     batchPrintActionOne: function() {

+ 8 - 0
src/xt_pages/dialysis/details/consumable/dialysisGood.vue Parādīt failu

97
            </template>
97
            </template>
98
         </el-table-column>
98
         </el-table-column>
99
 
99
 
100
+       
101
+
100
         <el-table-column
102
         <el-table-column
101
           align="center"
103
           align="center"
102
           prop="name"
104
           prop="name"
184
            </template>
186
            </template>
185
         </el-table-column>
187
         </el-table-column>
186
 
188
 
189
+        <el-table-column  align="center"  width="60" label="钙"  v-if="org_id ==10610 || org_id == 10610">
190
+           <template slot-scope="scope">
191
+            {{scope.row.dialysis_solution.calcium}}
192
+           </template>
193
+        </el-table-column>
194
+
187
         <el-table-column
195
         <el-table-column
188
           align="center"
196
           align="center"
189
           prop="name"
197
           prop="name"

+ 5 - 0
src/xt_pages/dialysis/details/consumable/dialysisGoodPrint.vue Parādīt failu

30
                 <td width="100">姓名</td>
30
                 <td width="100">姓名</td>
31
                 <td width="100">透析号</td>
31
                 <td width="100">透析号</td>
32
                 <td width="100">透析模式</td>
32
                 <td width="100">透析模式</td>
33
+               
33
                 <td width="200" v-for="(item,index) in rowList" :key="index">
34
                 <td width="200" v-for="(item,index) in rowList" :key="index">
34
                   {{item.filed_name_cn}} 
35
                   {{item.filed_name_cn}} 
35
                 </td>
36
                 </td>
45
                  <td>{{item.patient.name}}</td>
46
                  <td>{{item.patient.name}}</td>
46
                 <td>{{item.patient.dialysis_no}}</td>
47
                 <td>{{item.patient.dialysis_no}}</td>
47
                 <td>{{ getModeId(item.mode_id) }}</td>
48
                 <td>{{ getModeId(item.mode_id) }}</td>
49
+               
48
                 <td v-for="(it,index) in rowList" :key="index">
50
                 <td v-for="(it,index) in rowList" :key="index">
49
                   <!-- {{getName(item.rowList[index].filed_name_cn,item.dialysis_solution)}} -->
51
                   <!-- {{getName(item.rowList[index].filed_name_cn,item.dialysis_solution)}} -->
50
                   <span v-if="org_id !=10599">
52
                   <span v-if="org_id !=10599">
68
                 <td width="100">姓名</td>
70
                 <td width="100">姓名</td>
69
                 <td width="100">透析机号</td>
71
                 <td width="100">透析机号</td>
70
                 <td width="100">透析模式</td>
72
                 <td width="100">透析模式</td>
73
+                <td width="100" v-if="org_id == 10610 || org_id == 0">钙</td>
71
                 <td width="200" v-for="(item,index) in typeList" :key="index">
74
                 <td width="200" v-for="(item,index) in typeList" :key="index">
72
                   {{item.type_name}} 
75
                   {{item.type_name}} 
73
                 </td>
76
                 </td>
82
                  <td>{{item.patient.name}}</td>
85
                  <td>{{item.patient.name}}</td>
83
                 <td>{{item.patient.dialysis_no}}</td>
86
                 <td>{{item.patient.dialysis_no}}</td>
84
                 <td>{{ getModeId(item.mode_id) }}</td>
87
                 <td>{{ getModeId(item.mode_id) }}</td>
88
+                <td v-if="org_id == 0 || org_id == 10610">{{ item.dialysis_solution.calcium }}</td>
85
                 <td v-for="(it,index) in typeList" :key="index">
89
                 <td v-for="(it,index) in typeList" :key="index">
86
                   <span v-if="item.his_prescription_project.length>0"> {{getStr(item.typeList[index].id,item.his_prescription_project,item.patient_id)}}</span>
90
                   <span v-if="item.his_prescription_project.length>0"> {{getStr(item.typeList[index].id,item.his_prescription_project,item.patient_id)}}</span>
87
                   <span v-if="item.his_prescription_project.length==0">{{getStr(item.typeList[index].id,item.projectList,item.patient_id)}}</span>
91
                   <span v-if="item.his_prescription_project.length==0">{{getStr(item.typeList[index].id,item.projectList,item.patient_id)}}</span>
105
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
109
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
106
   import print from 'print-js'
110
   import print from 'print-js'
107
   import { getDataConfig } from '@/utils/data'
111
   import { getDataConfig } from '@/utils/data'
112
+import org from '../../../../router/modules/org'
108
   export default {
113
   export default {
109
     name: 'SchedulePrint',
114
     name: 'SchedulePrint',
110
     data() {
115
     data() {

+ 1 - 0
src/xt_pages/dialysis/details/consumable/dialysisParameter.vue Parādīt failu

138
             {{scope.row.patient.dialysis_no}}
138
             {{scope.row.patient.dialysis_no}}
139
            </template>
139
            </template>
140
         </el-table-column>
140
         </el-table-column>
141
+      
141
         <el-table-column align="center" label="住院(门诊)号"  v-if="dialysisSett.admission_number==1">
142
         <el-table-column align="center" label="住院(门诊)号"  v-if="dialysisSett.admission_number==1">
142
            <template slot-scope="scope">
143
            <template slot-scope="scope">
143
              {{scope.row.xt_receive_treatment_asses.admission_number}}
144
              {{scope.row.xt_receive_treatment_asses.admission_number}}

+ 1 - 1
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue Parādīt failu

1749
           }
1749
           }
1750
       }
1750
       }
1751
 
1751
 
1752
-      if(this.$store.getters.xt_user.org.id == 10579  || this.$store.getters.xt_user.org.id == 10585 || this.$store.getters.xt_user.org.id == 10587 || this.$store.getters.xt_user.org.id == 10597 || this.$store.getters.xt_user.org.id == 10551 || this.$store.getters.xt_user.org.id == 10679 || this.$store.getters.xt_user.org.id == 10693 ||  this.$store.getters.xt_user.org.id == 10694 || this.$store.getters.xt_user.org.id == 10702 || this.$store.getters.xt_user.org.id == 10495){
1752
+      if(this.$store.getters.xt_user.org.id == 10579  || this.$store.getters.xt_user.org.id == 10585 || this.$store.getters.xt_user.org.id == 10587 || this.$store.getters.xt_user.org.id == 10597 || this.$store.getters.xt_user.org.id == 10551 || this.$store.getters.xt_user.org.id == 10679 || this.$store.getters.xt_user.org.id == 10693 ||  this.$store.getters.xt_user.org.id == 10694 || this.$store.getters.xt_user.org.id == 10702 || this.$store.getters.xt_user.org.id == 10495 || this.$store.getters.xt_user.org.id == 10742){
1753
         var date = new Date()
1753
         var date = new Date()
1754
           var year = date.getFullYear()
1754
           var year = date.getFullYear()
1755
           var month = date.getMonth() + 1
1755
           var month = date.getMonth() + 1

+ 23 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Parādīt failu

3064
               minites = '0' + minites
3064
               minites = '0' + minites
3065
             }
3065
             }
3066
             this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
3066
             this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
3067
+           }else if(this.$store.getters.xt_user.org.id == 10742){
3068
+            var date = new Date()
3069
+            var year = date.getFullYear()
3070
+            var month = date.getMonth() + 1
3071
+            var day = date.getDate()
3072
+
3073
+            var hours = date.getHours()
3074
+            var minites = date.getMinutes()
3075
+
3076
+            if (month < 10) {
3077
+              month = '0' + month
3078
+            }
3079
+            if (day < 10) {
3080
+              day = '0' + day
3081
+            }
3082
+            if (hours < 10) {
3083
+              hours = '0' + hours
3084
+            }
3085
+            if (minites < 10) {
3086
+              minites = '0' + minites
3087
+            }
3088
+            this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
3089
+
3067
            }else if(this.$store.getters.xt_user.org.id == 10495){
3090
            }else if(this.$store.getters.xt_user.org.id == 10495){
3068
 
3091
 
3069
             var date = new Date()
3092
             var date = new Date()

+ 28 - 1
src/xt_pages/dialysis/dialysisPrintOrder.vue Parādīt failu

1032
         >
1032
         >
1033
         </div>
1033
         </div>
1034
       </template>
1034
       </template>
1035
+      <template v-if="org_template_info.template_id == 83">
1036
+        <div>
1037
+          <el-button
1038
+          :loading="loading"
1039
+          size="small"
1040
+          icon="el-icon-printer"
1041
+          @click="printThisPage"
1042
+          type="primary"
1043
+          >打印</el-button
1044
+        >
1045
+        </div>
1046
+      </template>
1035
     </div>
1047
     </div>
1036
     <div class="app-container" style="min-height: 0">
1048
     <div class="app-container" style="min-height: 0">
1037
       <!--<div class="order-print-btn"-->
1049
       <!--<div class="order-print-btn"-->
1561
           <DialysisPrintOrdereightytwo  v-bind:childResponse="childResponse"
1573
           <DialysisPrintOrdereightytwo  v-bind:childResponse="childResponse"
1562
           v-if="org_template_info.template_id == 82">
1574
           v-if="org_template_info.template_id == 82">
1563
           </DialysisPrintOrdereightytwo>
1575
           </DialysisPrintOrdereightytwo>
1576
+          <DialysisPrintOrdereightythree v-bind:childResponse="childResponse"
1577
+          v-if="org_template_info.template_id == 83">
1578
+          </DialysisPrintOrdereightythree>
1564
         </div>
1579
         </div>
1565
       </el-container>
1580
       </el-container>
1566
     </div>
1581
     </div>
1661
 import DialysisPrintOrdereighty from './template/DialysisPrintOrdereighty'
1676
 import DialysisPrintOrdereighty from './template/DialysisPrintOrdereighty'
1662
 import DialysisPrintOrdereightyone from './template/DialysisPrintOrdereightyone'
1677
 import DialysisPrintOrdereightyone from './template/DialysisPrintOrdereightyone'
1663
 import DialysisPrintOrdereightytwo from './template/DialysisPrintOrdereightytwo'
1678
 import DialysisPrintOrdereightytwo from './template/DialysisPrintOrdereightytwo'
1679
+import DialysisPrintOrdereightythree from './template/DialysisPrintOrdereightythree'
1664
 import DialysisPrintOrderZero from './template/DialysisPrintOrderZero'
1680
 import DialysisPrintOrderZero from './template/DialysisPrintOrderZero'
1665
 export default {
1681
 export default {
1666
   name: "dialysisPrintOrder",
1682
   name: "dialysisPrintOrder",
1747
     DialysisPrintOrdereighty,
1763
     DialysisPrintOrdereighty,
1748
     DialysisPrintOrdereightyone,
1764
     DialysisPrintOrdereightyone,
1749
     DialysisPrintOrdereightytwo,
1765
     DialysisPrintOrdereightytwo,
1766
+    DialysisPrintOrdereightythree,
1750
     DialysisPrintOrderZero,
1767
     DialysisPrintOrderZero,
1751
     LabelBox,
1768
     LabelBox,
1752
     BreadCrumb,
1769
     BreadCrumb,
1964
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:35px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
1981
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:35px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
1965
       const style16 =
1982
       const style16 =
1966
         '@media print {.dialysis-print-order{width:960px;margin:0 auto} .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .print-table{border: none} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 1px solid #000;} .inside_table{border: none} .inside_table tr{page-break-inside:avoid;} .inside_table tr td{border: 1px solid #000;} .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 20px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px;} .row1{ border-left: 1px solid black;padding: 5px 5px;} .row2{ border-left:1px solid black; border-right:1px solid black; border-bottom:1px solid black;} .inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;} .print_page_main_content .proj_table tbody tr{page-break-inside:avoid;} .print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;} .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px} ';
1983
         '@media print {.dialysis-print-order{width:960px;margin:0 auto} .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .print-table{border: none} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 1px solid #000;} .inside_table{border: none} .inside_table tr{page-break-inside:avoid;} .inside_table tr td{border: 1px solid #000;} .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 20px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px;} .row1{ border-left: 1px solid black;padding: 5px 5px;} .row2{ border-left:1px solid black; border-right:1px solid black; border-bottom:1px solid black;} .inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;} .print_page_main_content .proj_table tbody tr{page-break-inside:avoid;} .print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;} .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px} ';
1984
+      const style17 =
1985
+        // 防止分页错位问题:table设置border: none;.tr设置page-break-inside:avoid; // 防止table数据太多,tr分页错乱 td设置border: 1px solid #000;// 防止部分分页的tr边框线没有
1986
+        '@media print {.dialysis-print-order{width:960px;margin:0 auto} .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .print-table{border: none} .print-table tr{} .print-table tr td{border: 1px solid #000;} .inside_table{border: none} .inside_table tr{} .inside_table tr td{border: 1px solid #000;} .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 20px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 16px;line-height: 20px;padding: 5px 0;} .row1{ border-left: 1px solid black;padding: 5px 5px;} .row2{ border-left:1px solid black; border-right:1px solid black; border-bottom:1px solid black;} .inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;} .print_page_main_content .proj_table tbody tr{} .print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;} .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px} ';
1967
 
1987
 
1968
 
1988
 
1969
         if (this.org_template_info.template_id == 1) {
1989
         if (this.org_template_info.template_id == 1) {
2481
           style: style3,
2501
           style: style3,
2482
           scanStyles: false,
2502
           scanStyles: false,
2483
         });
2503
         });
2504
+      } else if (this.org_template_info.template_id == 83 ) {
2505
+        printJS({
2506
+          printable: "dialysis-print-box-1",
2507
+          type: "html",
2508
+          style: style17,
2509
+          scanStyles: false,
2510
+        });
2484
       }
2511
       }
2485
        else if (this.org_template_info.template_id == 199 ) {
2512
        else if (this.org_template_info.template_id == 199 ) {
2486
         printJS({
2513
         printJS({
2705
             this.org_template_info = response.data.data.org_template_info;
2732
             this.org_template_info = response.data.data.org_template_info;
2706
           // }else{
2733
           // }else{
2707
           //   this.org_template_info = response.data.data.org_template_info;
2734
           //   this.org_template_info = response.data.data.org_template_info;
2708
-          //   this.org_template_info.template_id= 68
2735
+          //   this.org_template_info.template_id= 83
2709
           // }
2736
           // }
2710
 
2737
 
2711
 
2738
 

+ 18 - 2
src/xt_pages/dialysis/newDoctorAdvice.vue Parādīt failu

64
             <el-button type="primary" @click="toSeachOne">搜索</el-button>
64
             <el-button type="primary" @click="toSeachOne">搜索</el-button>
65
           </div>
65
           </div>
66
           <div style="flex: 1;text-align: right;">
66
           <div style="flex: 1;text-align: right;">
67
-            <el-button type="primary" size="small" @click="toStatic" v-if="org_id!=10340">药品统计</el-button>
68
 
67
 
68
+            <el-button type="primary" size="small" @click="toPatientStatic">患者统计</el-button>
69
+            <el-button type="primary" size="small" @click="toStatic" v-if="org_id!=10340">药品统计</el-button>
69
             <el-button type="primary" size="small" @click="toStaticOne" v-if="org_id==10340">药品统计</el-button>
70
             <el-button type="primary" size="small" @click="toStaticOne" v-if="org_id==10340">药品统计</el-button>
70
             <el-button type="primary" size="small" @click="toStaticThree">药品月统计</el-button>
71
             <el-button type="primary" size="small" @click="toStaticThree">药品月统计</el-button>
71
 
72
 
1003
       </span>
1004
       </span>
1004
     </el-dialog>
1005
     </el-dialog>
1005
 
1006
 
1007
+    <!-- <el-dialog
1008
+      title="患者药品统计"
1009
+      :visible.sync="patientDialogVisible"
1010
+      width="50%">
1011
+      <span>这是一段信息</span>
1012
+      <span slot="footer" class="dialog-footer">
1013
+        <el-button @click="patientDialogVisible = false">取 消</el-button>
1014
+        <el-button type="primary" @click="patientDialogVisible = false">确 定</el-button>
1015
+      </span>
1016
+    </el-dialog> -->
1017
+
1006
     </div>
1018
     </div>
1007
   </div>
1019
   </div>
1008
 </template>
1020
 </template>
1113
       startMothdialogVisible:false,
1125
       startMothdialogVisible:false,
1114
       adviceMonthList:[],
1126
       adviceMonthList:[],
1115
       hisAdviceMonthList:[],
1127
       hisAdviceMonthList:[],
1116
-      tableMonthList:[]
1128
+      tableMonthList:[],
1129
+      patientDialogVisible:false,
1117
     };
1130
     };
1118
   },
1131
   },
1119
   created() {
1132
   created() {
1137
     this.org_id = this.$store.getters.xt_user.template_info.org_id;
1150
     this.org_id = this.$store.getters.xt_user.template_info.org_id;
1138
   },
1151
   },
1139
   methods: {
1152
   methods: {
1153
+    toPatientStatic(){
1154
+      this.$router.push({ path: "/dialysis/patient/patientAdvice"});
1155
+    },
1140
     getTemplateInfo() {
1156
     getTemplateInfo() {
1141
       getPrintTemplate().then(response => {
1157
       getPrintTemplate().then(response => {
1142
         if (response.data.state == 0) {
1158
         if (response.data.state == 0) {

+ 436 - 0
src/xt_pages/dialysis/patientAdviceList.vue Parādīt failu

1
+<template>
2
+    <div class="main-contain">
3
+        <div class="position">
4
+            <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+        </div>
6
+
7
+        <div class="app-container">
8
+            <div class="cell clearfix" style="margin-bottom:0px;">
9
+                <el-date-picker
10
+                v-model="start_time"
11
+                prefix-icon="el-icon-date"
12
+                :editable="false"
13
+                style="width: 160px;margin-right:10px;"
14
+                type="date"
15
+                placeholder="选择日期时间"
16
+                align="right"
17
+                format="yyyy-MM-dd"
18
+                value-format="yyyy-MM-dd"
19
+                @change="changeStartime"
20
+                ></el-date-picker>
21
+                -
22
+                <el-date-picker
23
+                v-model="end_time"
24
+                prefix-icon="el-icon-date"
25
+                :editable="false"
26
+                style="width: 160px;margin-right:10px;"
27
+                type="date"
28
+                placeholder="选择日期时间"
29
+                align="right"
30
+                format="yyyy-MM-dd"
31
+                value-format="yyyy-MM-dd"
32
+                @change="changeEndtime"
33
+                ></el-date-picker>
34
+                 <el-autocomplete
35
+                  style="margin:16px 5px"
36
+                  popper-class="my-autocomplete"
37
+                  v-model.trim="search_input"
38
+                  :fetch-suggestions="querySearchAsync"
39
+                  :trigger-on-focus="false"
40
+                  placeholder="病人名字或者透析号"
41
+                  @select="handleSelect"
42
+                >
43
+                  <i class="el-icon-search el-input__icon" slot="suffix"> </i>
44
+                  <template slot-scope="{ item }">
45
+                    <div class="name">{{ item.name }}</div>
46
+                  </template>
47
+                </el-autocomplete>
48
+                <el-button type="primary" @click="toSeachPatient">搜索</el-button>
49
+            </div>
50
+            <el-container>
51
+                <div style="width:160px;">
52
+                    <div class="tablesTitle">患者列表</div>
53
+                    <el-table :data="tablePatient" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row
54
+                    @current-change="handleCurrentChange"  ref="monthlyPlanTable"
55
+                    >
56
+                        <el-table-column align="center" prop="dialysis_no" label="透析号" width="70">
57
+                            <template slot-scope="scope">{{scope.row.dialysis_no}}</template>
58
+                        </el-table-column>
59
+                        <el-table-column align="center" prop="name" label="姓名" width="90">
60
+                            <template slot-scope="scope">{{ scope.row.name }}</template>
61
+                        </el-table-column>
62
+                    </el-table>
63
+                </div>
64
+                <div style="flex:1;margin-left:20px;">
65
+                    <!-- <div style="display:flex;justify-content: space-between;align-items: center;">
66
+                        <div class="tablesTitle">自备药列表</div>
67
+                        <div>
68
+                            
69
+                            <el-button type="primary" size="mini" @click="openForm(2)">打印</el-button>
70
+                            <el-button type="primary" size="mini" @click="openForm(3)">出库</el-button>
71
+                        </div>
72
+                    </div> -->
73
+                    <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
74
+                        <el-table-column align="center" prop="dialysis_no" label="药品名称">
75
+                            <template slot-scope="scope">
76
+                                {{ scope.row.advice_name }}
77
+                            </template>
78
+                        </el-table-column>
79
+                        <el-table-column align="center" prop="name" label="规格名称">
80
+                            <template slot-scope="scope">{{ scope.row.specification_name }}</template>
81
+                        </el-table-column>
82
+                       
83
+                        <el-table-column align="center" prop="name" label="开药数量">
84
+                            <template slot-scope="scope">
85
+                              {{getTotal(scope.row.child)}}
86
+                            </template>
87
+                        </el-table-column>
88
+                        <el-table-column align="center" prop="dialysis_no" label="单位">
89
+                            <template slot-scope="scope">{{scope.row.prescribing_number_unit}}</template>
90
+                        </el-table-column>
91
+                       
92
+                       
93
+                        <el-table-column align="center" prop="name" label="操作">
94
+                            <template slot-scope="scope">
95
+                                <el-button size="mini" type="primary" @click="toDetail(scope.row.advice_name,scope.row.patient_id)">明细</el-button>
96
+                            </template>
97
+                        </el-table-column>
98
+                    </el-table>
99
+                </div>
100
+            </el-container>
101
+        </div>
102
+
103
+        <el-dialog
104
+         title="使用详情"
105
+        :visible.sync="adviceDialogVisible"
106
+        width="50%">
107
+        <span>
108
+         <el-table :data="tableList" border style="width: 100%;" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
109
+                <el-table-column align="center" prop="dialysis_no" label="患者姓名">
110
+                    <template slot-scope="scope">
111
+                        {{getPatientName(scope.row.patient_id)}}
112
+                    </template>
113
+                </el-table-column>
114
+                <el-table-column align="center" prop="name" label="使用时间">
115
+                    <template slot-scope="scope">{{getTime(scope.row.advice_date)}}</template>
116
+                </el-table-column>
117
+                
118
+                <el-table-column align="center" prop="name" label="开药数量">
119
+                    <template slot-scope="scope">
120
+                        {{scope.row.prescribing_number}}
121
+                    </template>
122
+                </el-table-column>
123
+                <el-table-column align="center" prop="dialysis_no" label="单位">
124
+                    <template slot-scope="scope">{{scope.row.prescribing_number_unit}}</template>
125
+                </el-table-column>
126
+                
127
+                
128
+            </el-table> 
129
+        </span>
130
+        <span slot="footer" class="dialog-footer">
131
+            <el-button @click="adviceDialogVisible = false">取 消</el-button>
132
+            <el-button type="primary" @click="adviceDialogVisible = false">确 定</el-button>
133
+        </span>
134
+     </el-dialog>
135
+    </div>
136
+</template>
137
+
138
+
139
+<script>
140
+
141
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
142
+const moment = require('moment')
143
+import { PostSearch } from '@/api/patient'
144
+import { getCurrentPatient,saveRadio,getPatientAdviceList,DeleteDrugNameById,getDrugSet,getPatientDetail,getPatientAdviceListDetail} from "@/api/drug/drug"
145
+import { TimeSelect } from "element-ui";
146
+import { uParseTime } from '@/utils/tools'
147
+export default {
148
+    components:{
149
+        BreadCrumb,
150
+    },
151
+    data(){
152
+        return{
153
+            crumbs: [
154
+                { path: false, name: "库存管理" },
155
+                { path: false, name: "自备药管理" },
156
+                { path: false, name: "自备药管理" },
157
+            ],
158
+            value: '',
159
+            tableData:[],
160
+            dialogVisible:false,
161
+            radio:'2',
162
+            tablePatient:[],
163
+            disableBtton:false,
164
+            currentRow: null,
165
+            patient_name:"",
166
+            patient_id:"",
167
+            start_time:moment().startOf('month').format('YYYY-MM-DD'),
168
+            end_time:moment().endOf('month').format('YYYY-MM-DD'),
169
+            search_input:"",
170
+            patient_id:0,
171
+            stockList:[],
172
+            outStocklist:[],
173
+            outList:[],
174
+            tableList:[],
175
+            adviceDialogVisible:false
176
+        }
177
+    },
178
+    methods:{
179
+        setting(){
180
+            this.dialogVisible = true
181
+        },
182
+        handleCurrentChange(val){
183
+          this.currentRow = val
184
+          this.patient_name = val.name
185
+          this.patient_id = val.id
186
+          if(val.name !=""){
187
+            this.disableBtton = true
188
+          }
189
+           
190
+          this.getlist()
191
+        },
192
+        changeStartime(){
193
+           this.getlist()
194
+        },
195
+        changeEndtime(){
196
+          this.getlist()
197
+        },
198
+        handleClose(){
199
+          this.dialogVisible = false
200
+        },
201
+        openForm(index){
202
+            if(index == 1){
203
+              if(this.disableBtton == true){
204
+                 this.$refs.addMedicine.show(this.patient_name,this.patient_id);
205
+              }
206
+              if(this.disableBtton == false){
207
+                 this.$message.error("请选择患者!")
208
+              }          
209
+            }else if(index == 2){
210
+                this.$refs.warehousing.show(this.patient_name,this.patient_id);
211
+            }else if(index == 3){
212
+                this.$refs.warehouseOut.show(this.patient_name,this.patient_id);
213
+            }
214
+            
215
+        },
216
+        toDetail(advice_name,patientid){
217
+            var params = {
218
+                advice_name:advice_name,
219
+                patient_id:patientid,
220
+                start_time:this.start_time,
221
+                end_time:this.end_time
222
+            }
223
+          getPatientAdviceListDetail(params).then(response=>{
224
+             if(response.data.state == 1){
225
+               var advicelist = response.data.data.adviceList
226
+               this.tableList = []
227
+               this.tableList = advicelist
228
+               console.log("hhhhhhhhhhhhhhhhhhhhhhh",this.tableList)
229
+               this.adviceDialogVisible = true
230
+             }
231
+          })
232
+        },
233
+
234
+        getCurrentPatient(){
235
+         getCurrentPatient().then(response=>{
236
+            if(response.data.state == 1){
237
+              this.tablePatient = response.data.data.patient
238
+            } 
239
+          })
240
+        },
241
+        searchAction(){
242
+          this.patient_id = 0
243
+          this.getlist()
244
+        },
245
+        saveRadio(){
246
+          const params = {
247
+            radio:this.radio
248
+          }
249
+         saveRadio(params).then(response=>{
250
+            if(response.data.state == 1){
251
+              var drugset = response.data.data.drugSet
252
+              this.$message.success("保存成功")
253
+              this.dialogVisible = false
254
+            } 
255
+          }) 
256
+        },
257
+        getlist(){
258
+            const params = {
259
+               patient_id:this.patient_id,
260
+               start_time:this.start_time,
261
+               end_time:this.end_time,
262
+               keyword:this.search_input,
263
+            }
264
+         
265
+          getPatientAdviceList(params).then(response=>{
266
+             if(response.data.state == 1){
267
+                
268
+               var advicelist = response.data.data.adviceList
269
+               
270
+               if(advicelist!=null && advicelist.length>0){
271
+                    let dataInfo = {}
272
+                    advicelist.forEach((item, index) => {
273
+                    let { advice_name } = item
274
+                    if (!dataInfo[advice_name]) {
275
+                        dataInfo[advice_name] = {
276
+                        advice_name:item.advice_name.replace(/\s+/g, ''),
277
+                        child: [],
278
+                        count:0,
279
+                        drug_id:item.drug_id,
280
+                        specification_name:item.advice_desc +item.drug_spec_unit,
281
+                        patient_id:item.patient_id,
282
+                        prescribing_number_unit:item.prescribing_number_unit,
283
+                      }
284
+                    }
285
+                    })
286
+                   let arr = Object.values(dataInfo)
287
+                   console.log("new_ar=====================",arr)
288
+                   for(let i=0;i<arr.length;i++){
289
+                     for(let j=0;j<advicelist.length;j++){
290
+                        if(arr[i].advice_name == advicelist[j].advice_name){
291
+                           arr[i].child.push(advicelist[j])
292
+                        }
293
+                     }
294
+                   }
295
+                   this.tableData = []
296
+                   this.tableData = arr
297
+                }
298
+              
299
+              }
300
+          })  
301
+        },
302
+    
303
+        getCount(patientid,drugname,drugspec){
304
+            var total = 0
305
+           for(let i=0;i<this.outStocklist.length;i++){
306
+              if(patientid == this.outStocklist[i].patient_id && drugname == this.outStocklist[i].drug_name && drugspec == this.outStocklist[i].drug_spec){
307
+                  total = this.outStocklist[i].Count
308
+              }
309
+           }
310
+           return total
311
+        },
312
+
313
+        getCountTwo(patientid,drugname,drugspec){
314
+           var total = 0
315
+           for(let i=0;i<this.outList.length;i++){
316
+             if(patientid == this.outList[i].patient_id && drugname == this.outList[i].drug_name && drugspec == this.outList[i].drug_spec){
317
+                  total += this.outList[i].outstore_number
318
+              }
319
+           }
320
+           return total
321
+        },
322
+
323
+        getDrugSet(){
324
+         getDrugSet().then(response=>{
325
+            if(response.data.state == 1){
326
+              var drugset =  response.data.data.drugSet
327
+              this.radio  = drugset.drug_start.toString()
328
+            }
329
+         })
330
+        },
331
+
332
+        getTotal(val){
333
+          var total = 0
334
+          for(let i=0;i<val.length;i++){
335
+             total +=  val[i].prescribing_number
336
+          }
337
+          return total
338
+        },
339
+        getRemarks(patientid,id){
340
+          var remarks = ""  
341
+           for(let i=0;i<this.stockList.length;i++){
342
+             if(patientid == this.stockList[i].patient_id && id == this.stockList[i].medic_id){
343
+                remarks = this.stockList[i].remarks
344
+             }
345
+          }
346
+          return remarks
347
+        },
348
+
349
+        querySearchAsync(keyword, cb) {
350
+          let key = ''
351
+          if (keyword != undefined) {
352
+            key = keyword
353
+          }
354
+          let searchArray = []
355
+          console.log("key",key)
356
+          PostSearch(key).then(response => {
357
+            if (response.data.state == 1) {
358
+              searchArray = response.data.data.patient
359
+              console.log("searchArray",searchArray)
360
+           
361
+              cb(searchArray)
362
+            }
363
+          })
364
+          return searchArray
365
+        },
366
+        handleSelect(val){   
367
+          this.search_input = val.name
368
+          for(let i=0;i<this.tablePatient.length;i++){
369
+             if(this.tablePatient[i].id == val.id){
370
+               this.$refs.monthlyPlanTable.setCurrentRow(this.tablePatient[i])
371
+             }
372
+          }
373
+          this.getlist()
374
+          this.getPatientDetail(val.id)
375
+        },
376
+
377
+        getPatientDetail(id){
378
+          getPatientDetail(id).then(response=>{
379
+             if(response.data.state == 1){
380
+               var patientDetail =  response.data.data.patientDetail
381
+               console.log("patientDetail",patientDetail)
382
+               var arr = []
383
+               arr.push(patientDetail)
384
+               this.tablePatient = arr
385
+             }
386
+          })
387
+        },
388
+        toSeachPatient(){
389
+          this.getCurrentPatient()
390
+        },
391
+        getPatientName(id){
392
+          var name = ""
393
+          for(let i=0;i<this.tablePatient.length;i++){
394
+            if(id == this.tablePatient[i].id){  
395
+               name = this.tablePatient[i].name
396
+            }
397
+          }
398
+          return name
399
+        },
400
+        getTime(val) {
401
+          if(val < 0){
402
+            return ""
403
+          }
404
+        if(val == ""){
405
+            return ""
406
+        }else {
407
+            return uParseTime(val, '{y}-{m}-{d}')
408
+        }
409
+     },
410
+
411
+    },
412
+    created(){
413
+      //获取当前机构下的所有患者
414
+      this.getCurrentPatient()
415
+      this.getDrugSet()
416
+    },
417
+    watch: {
418
+     tablePatient: function() {
419
+      this.$nextTick(function() {
420
+        this.$refs.monthlyPlanTable.setCurrentRow(this.tablePatient[0])
421
+      })
422
+    }
423
+  },
424
+}
425
+</script>
426
+
427
+
428
+<style lang="scss" scoped>
429
+.tablesTitle{
430
+    font-size: 16px;
431
+    color: #000;
432
+    font-weight: bold;
433
+    height: 40px;
434
+    line-height: 40px;
435
+}
436
+</style>

+ 1 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSeventyeight.vue Parādīt failu

1815
 
1815
 
1816
     checkData() {
1816
     checkData() {
1817
       console.log('new_date',this.new_date);
1817
       console.log('new_date',this.new_date);
1818
-
1819
       var checkDate =[]
1818
       var checkDate =[]
1820
       var monearr = []
1819
       var monearr = []
1821
       // if(this.dialysisOrder != undefined && this.dialysisOrder.end_time > this.new_date){
1820
       // if(this.dialysisOrder != undefined && this.dialysisOrder.end_time > this.new_date){
1896
           const obj21 = "体重减少"
1895
           const obj21 = "体重减少"
1897
           checkDate.push(obj21)
1896
           checkDate.push(obj21)
1898
         }
1897
         }
1899
-        if (this.prescription.target_ultrafiltration == 0) {
1898
+        if (this.prescription.prescription_water == 0) {
1900
           const obj22 = "处方脱水量"
1899
           const obj22 = "处方脱水量"
1901
           checkDate.push(obj22)
1900
           checkDate.push(obj22)
1902
         } if (this.afterdialysis.actual_ultrafiltration == 0) {
1901
         } if (this.afterdialysis.actual_ultrafiltration == 0) {

+ 48 - 30
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Parādīt failu

1096
                         class="under_line"
1096
                         class="under_line"
1097
                         style="width: 100px; text-align: center"
1097
                         style="width: 100px; text-align: center"
1098
                       >
1098
                       >
1099
+                      <span v-if="org_id == 10740">
1100
+                        {{prescription.dialysis_dialyszers ? prescription.dialysis_dialyszers : ''}}
1101
+                      </span>
1102
+                      <span v-if="org_id !=10740">
1103
+
1099
                         {{
1104
                         {{
1100
                           prescription.dialyzer_perfusion_apparatus
1105
                           prescription.dialyzer_perfusion_apparatus
1101
                             ? prescription.dialyzer_perfusion_apparatus
1106
                             ? prescription.dialyzer_perfusion_apparatus
1102
-                            : ""
1107
+                            : prescription.dialysis_dialyszers
1103
                         }}
1108
                         }}
1109
+                      </span>
1110
+
1104
                         <span v-if="prescription.dialyzer_perfusion_apparatus&&prescription.dialyzer_perfusion_apparatus!=''">/</span>
1111
                         <span v-if="prescription.dialyzer_perfusion_apparatus&&prescription.dialyzer_perfusion_apparatus!=''">/</span>
1105
                         {{
1112
                         {{
1106
-                          prescription.dialysis_dialyszers
1107
-                            ? prescription.dialysis_dialyszers
1113
+                          prescription.dialysis_strainer
1114
+                            ? prescription.dialysis_strainer
1108
                             : ""
1115
                             : ""
1109
                         }}
1116
                         }}
1110
                       </div>
1117
                       </div>
1271
                       </div>
1278
                       </div>
1272
                       kg
1279
                       kg
1273
                     </div>
1280
                     </div>
1274
-                    <div class="inline_block" style="flex: 1" v-if="org_id!=10469 && org_id!=0">
1281
+                    <div class="inline_block" style="flex: 1" v-if="org_id!=10469 ">
1275
                       <span v-if="org_id!=10683">计划超滤量:</span>
1282
                       <span v-if="org_id!=10683">计划超滤量:</span>
1276
                       <span v-if="org_id==10683">预脱:</span>
1283
                       <span v-if="org_id==10683">预脱:</span>
1277
                       <div
1284
                       <div
1746
                       </div>
1753
                       </div>
1747
                     </div>
1754
                     </div>
1748
                   </div>
1755
                   </div>
1749
-                  <div
1750
-                    class="row"
1756
+                  <div class="row"
1751
                     style="padding: 2px 0; line-height: 23px; display: flex"
1757
                     style="padding: 2px 0; line-height: 23px; display: flex"
1752
                     v-if="org_id != 10223"
1758
                     v-if="org_id != 10223"
1753
                   >
1759
                   >
1754
                     <div
1760
                     <div
1755
                       class="inline_block"
1761
                       class="inline_block"
1756
-                      style="flex: 1; display: inline-block"
1762
+                      style="flex: 2; display: inline-block"
1757
                       v-if="org_id!=9675 && org_id!=10447"
1763
                       v-if="org_id!=9675 && org_id!=10447"
1758
                     >
1764
                     >
1759
                       备注:
1765
                       备注:
1760
-                      <div
1761
-                        class="under_line"
1766
+                      <div class="under_line"
1762
                         style="
1767
                         style="
1763
-                          width: 860px;
1768
+                          width: 80%;
1764
                           line-height: 25px;
1769
                           line-height: 25px;
1765
                           text-align: left;
1770
                           text-align: left;
1766
                           margin-left: 2px;
1771
                           margin-left: 2px;
1771
                         {{ predialysis.remark ? predialysis.remark : "/" }}
1776
                         {{ predialysis.remark ? predialysis.remark : "/" }}
1772
                       </div>
1777
                       </div>
1773
                     </div>
1778
                     </div>
1779
+                    <div v-if="org_id ==10600 || org_id ==0" style="flex: 1;">
1780
+                      医生签名: 
1781
+                      <div class="under_line">
1782
+                        <span style="height: 30px; display: inline-block"
1783
+                          v-if="setAdminUserES(prescription.creater) == ''"
1784
+                        >
1785
+                          {{ getAdminUser(prescription.creater) }}
1786
+                        </span>
1787
+                        <img
1788
+                          style="height: 40px"
1789
+                          :src="setAdminUserES(prescription.creater)"
1790
+                          alt=""
1791
+                          srcset=""
1792
+                          v-else
1793
+                        />
1794
+                      </div>
1795
+                    </div>
1774
                   </div>
1796
                   </div>
1775
                 </td>
1797
                 </td>
1776
               </tr>
1798
               </tr>
1841
                         </td>
1863
                         </td>
1842
                         <td width="50" v-if="org_id == 10121">SpO₂<br />(%)</td>
1864
                         <td width="50" v-if="org_id == 10121">SpO₂<br />(%)</td>
1843
                         <td width="50" v-if="org_id == 10375">置换率<br />(ml/h)</td>
1865
                         <td width="50" v-if="org_id == 10375">置换率<br />(ml/h)</td>
1844
-                        <td width="50" v-if="org_id ==10489 || org_id == 10735 || org_id == 0">超滤率<br/>(ml/h)</td>
1845
-                        <td width="50" v-if="org_id != 3877 && org_id != 10449 && org_id != 10600&& org_id != 10683">
1866
+                        <td width="50" v-if="org_id ==10489 || org_id == 10735 || org_id==10600">超滤率<br/>(ml/h)</td>
1867
+                        <td width="50" v-if="org_id != 3877 && org_id != 10449 && org_id != 10683">
1846
                           超滤量<br />
1868
                           超滤量<br />
1847
                          <span v-if="org_id == 10471">L</span>
1869
                          <span v-if="org_id == 10471">L</span>
1848
                          <span v-if="org_id != 10471"> (ml)</span>
1870
                          <span v-if="org_id != 10471"> (ml)</span>
1849
                         </td>
1871
                         </td>
1850
-                        <td width="50" v-if="org_id == 10600 || org_id ==10598 || org_id ==10683 || org_id ==10567 || org_id == 0 || org_id ==10724">超滤率<br/>(ml/h)</td>
1872
+                        <td width="50" v-if="org_id ==10598 || org_id ==10683 || org_id ==10567 || org_id ==10724">超滤率<br/>(ml/h)</td>
1851
                         <td width="50" v-if="org_id ==3877 || org_id == 10449 ">累计超滤量<br />(ml)</td>
1873
                         <td width="50" v-if="org_id ==3877 || org_id == 10449 ">累计超滤量<br />(ml)</td>
1852
                         <td v-if="(prescription.mode_id == 2 ||prescription.mode_id == 5 ||prescription.mode_id == 12) &&org_id!=10478 && org_id!=10402 && org_id!=10206" width="50">
1874
                         <td v-if="(prescription.mode_id == 2 ||prescription.mode_id == 5 ||prescription.mode_id == 12) &&org_id!=10478 && org_id!=10402 && org_id!=10206" width="50">
1853
                           <span v-if="org_id == 10683">置换液速度</span>
1875
                           <span v-if="org_id == 10683">置换液速度</span>
1860
                           <span v-if="org_id==10598 || org_id == 10567 || org_id == 10724 || org_id == 10644 || org_id== 10353">(L)</span>
1882
                           <span v-if="org_id==10598 || org_id == 10567 || org_id == 10724 || org_id == 10644 || org_id== 10353">(L)</span>
1861
                         </td>
1883
                         </td>
1862
                         <td width="50" v-if="org_id == 3877 || org_id == 10449">滤前压(mmHg)</td>
1884
                         <td width="50" v-if="org_id == 3877 || org_id == 10449">滤前压(mmHg)</td>
1863
-                        <td width="50" v-if="org_id == 9538 || org_id ==10600 || org_id ==10629 || org_id ==10510 || org_id == 10580 || org_id == 10598 || org_id == 10567 || org_id == 0 || org_id == 10724">KT/V</td>
1885
+                        <td width="50" v-if="org_id == 9538 || org_id ==10600 || org_id ==10629 || org_id ==10510 || org_id == 10580 || org_id == 10598 || org_id == 10567">KT/V</td>
1864
                         <td width="50" v-if="org_id == 9919">在线尿素监测</td>
1886
                         <td width="50" v-if="org_id == 9919">在线尿素监测</td>
1865
                         <td width="50" v-if="org_id == 9671">在线尿素监测</td>
1887
                         <td width="50" v-if="org_id == 9671">在线尿素监测</td>
1866
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id== 9671">血容量<br />(L)</td>
1888
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id== 9671">血容量<br />(L)</td>
1867
                         <td width="50" v-if="org_id == 10490 ">碳酸氢钠<br />(ml)</td>
1889
                         <td width="50" v-if="org_id == 10490 ">碳酸氢钠<br />(ml)</td>
1868
                         <td width="50" v-if="org_id == 10598">护士签名</td>
1890
                         <td width="50" v-if="org_id == 10598">护士签名</td>
1869
-                        <td width="50" v-if="org_id == 9829 || org_id == 0">SpO₂<br />(%)</td>
1891
+                        <td width="50" v-if="org_id == 9829 ">SpO₂<br />(%)</td>
1870
                         <td width="200">病情变化及处理</td>
1892
                         <td width="200">病情变化及处理</td>
1871
                       </tr>
1893
                       </tr>
1872
 
1894
 
1970
                         <td v-if="org_id == 10375"><br />
1992
                         <td v-if="org_id == 10375"><br />
1971
                           {{ monitor.replacement_rate? monitor.replacement_rate: ""}}
1993
                           {{ monitor.replacement_rate? monitor.replacement_rate: ""}}
1972
                         </td>
1994
                         </td>
1973
-                        <td v-if="org_id == 10489 || org_id == 10735 || org_id == 0"><br />
1995
+                        <td v-if="org_id == 10489 || org_id == 10735 || org_id == 10600"><br />
1974
                           {{ monitor.ultrafiltration_rate? monitor.ultrafiltration_rate: ""}}
1996
                           {{ monitor.ultrafiltration_rate? monitor.ultrafiltration_rate: ""}}
1975
                         </td>
1997
                         </td>
1976
-                        <td v-if="org_id!=10600 && org_id!=10644  && org_id!=10683">
1998
+                        <td v-if="org_id!=10644  && org_id!=10683">
1977
                           <span v-if="org_id!=9671 && org_id!=10440 && org_id!=10617">{{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: ""}}</span>
1999
                           <span v-if="org_id!=9671 && org_id!=10440 && org_id!=10617">{{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: ""}}</span>
1978
                           <span v-if="org_id==9671 || org_id==10440 || org_id ==10617">
2000
                           <span v-if="org_id==9671 || org_id==10440 || org_id ==10617">
1979
                               <span v-if="org_id ==10617 && monindex == 0">{{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: "/"}}</span>
2001
                               <span v-if="org_id ==10617 && monindex == 0">{{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: "/"}}</span>
1982
                               <span v-if="org_id !=10617">{{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: "0"}}</span>
2004
                               <span v-if="org_id !=10617">{{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: "0"}}</span>
1983
                            </span>
2005
                            </span>
1984
                         </td>
2006
                         </td>
1985
-                        <td width="50" v-if="org_id == 10600 || org_id == 10598 || org_id==10644 || org_id == 10683 || org_id ==10567 || org_id == 0 || org_id == 10724"><br/>
2007
+                        <td width="50" v-if="org_id == 10598 || org_id==10644 || org_id == 10683 || org_id ==10567 || org_id == 10724"><br/>
1986
                            <span v-if="org_id!=10644 && org_id!=0">{{ monitor.ultrafiltration_rate? monitor.ultrafiltration_rate: ""}}</span>
2008
                            <span v-if="org_id!=10644 && org_id!=0">{{ monitor.ultrafiltration_rate? monitor.ultrafiltration_rate: ""}}</span>
1987
                            <span v-if="org_id==10644 ">
2009
                            <span v-if="org_id==10644 ">
1988
                               <span v-if="monindex == 0">{{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: "0"}}</span>
2010
                               <span v-if="monindex == 0">{{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: "0"}}</span>
2036
                           </span>
2058
                           </span>
2037
                         </td>
2059
                         </td>
2038
                         <td width="50" v-if="org_id == 3877 || org_id == 10449">{{ monitor.filter_pressure?monitor.filter_pressure:""}}</td>
2060
                         <td width="50" v-if="org_id == 3877 || org_id == 10449">{{ monitor.filter_pressure?monitor.filter_pressure:""}}</td>
2039
-                        <td width="50" v-if="org_id == 9919 || org_id == 9538 || org_id == 9671 || org_id ==10600 || org_id ==10629 || org_id ==10510 || org_id ==10580 || org_id ==10598 || org_id == 10567 || org_id == 0 || org_id ==10724">
2061
+                        <td width="50" v-if="org_id == 9919 || org_id == 9538 || org_id == 9671 || org_id ==10600 || org_id ==10629 || org_id ==10510 || org_id ==10580 || org_id ==10598 || org_id == 10567 ">
2040
                           {{ monitor.ktv?monitor.ktv:"" }}
2062
                           {{ monitor.ktv?monitor.ktv:"" }}
2041
                         </td>
2063
                         </td>
2042
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id == 9671">
2064
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id == 9671">
2074
                           />
2096
                           />
2075
                           </span>
2097
                           </span>
2076
                         </td>
2098
                         </td>
2077
-                        <td v-if="org_id == 0||org_id == 9829">
2099
+                        <td v-if="org_id == 9829">
2078
                           {{monitor.blood_oxygen_saturation? monitor.blood_oxygen_saturation: ""}}
2100
                           {{monitor.blood_oxygen_saturation? monitor.blood_oxygen_saturation: ""}}
2079
                         </td>
2101
                         </td>
2080
 
2102
 
2826
                     </div>
2848
                     </div>
2827
                   </div>
2849
                   </div>
2828
 
2850
 
2829
-                  <div
2830
-                    class="row"
2851
+                  <div class="row"
2831
                     style="padding: 2px 0; line-height: 23px; display: flex"
2852
                     style="padding: 2px 0; line-height: 23px; display: flex"
2832
                   >
2853
                   >
2833
                     <div class="inline_block" style="flex: 1">
2854
                     <div class="inline_block" style="flex: 1">
2918
                             : "/"
2939
                             : "/"
2919
                         }}
2940
                         }}
2920
                       </div>
2941
                       </div>
2921
-                      <span v-if="org_id!=9675&&org_id!=10447 &&org_id!=10624 && org_id!=10471"> ml</span>
2922
-                      <span v-if="org_id ==9675||org_id==10447 || org_id==10624 || org_id == 10471">L</span>
2942
+                      <span v-if="org_id!=9675&&org_id!=10447 &&org_id!=10624 && org_id!=10471 "> ml</span>
2943
+                      <span v-if="org_id ==9675||org_id==10447 || org_id==10624 || org_id == 10471 ">L</span>
2923
                     </div>
2944
                     </div>
2924
 
2945
 
2925
                     <div class="inline_block" style="flex: 1" v-if="org_id ==10598 || org_id == 0">
2946
                     <div class="inline_block" style="flex: 1" v-if="org_id ==10598 || org_id == 0">
2938
                     </div>
2959
                     </div>
2939
 
2960
 
2940
                   </div>
2961
                   </div>
2941
-                  <div
2942
-                    class="row"
2962
+                  <div class="row"
2943
                     style="padding: 2px 0; line-height: 23px; display: flex"
2963
                     style="padding: 2px 0; line-height: 23px; display: flex"
2944
                     v-if="org_id == 10223"
2964
                     v-if="org_id == 10223"
2945
                   >
2965
                   >
3001
                       </div>
3021
                       </div>
3002
                     </div>
3022
                     </div>
3003
                   </div>
3023
                   </div>
3004
-                  <div
3005
-                    class="row"
3024
+                  <div class="row"
3006
                     style="padding: 2px 0; line-height: 23px; display: flex"
3025
                     style="padding: 2px 0; line-height: 23px; display: flex"
3007
                     v-if="org_id == 10223"
3026
                     v-if="org_id == 10223"
3008
                   >
3027
                   >
3043
                     </div>
3062
                     </div>
3044
                   </div>
3063
                   </div>
3045
 
3064
 
3046
-
3047
                    <div
3065
                    <div
3048
                     v-if="org_id == 10440 || org_id == 0"
3066
                     v-if="org_id == 10440 || org_id == 0"
3049
                     class="row"
3067
                     class="row"
4819
          window.open(fileURL);//打开ppf文件
4837
          window.open(fileURL);//打开ppf文件
4820
        }
4838
        }
4821
      },
4839
      },
4822
-   
4840
+
4823
 
4841
 
4824
      openPdf(blob) {
4842
      openPdf(blob) {
4825
        const objectUrl = URL.createObjectURL(blob);
4843
        const objectUrl = URL.createObjectURL(blob);

+ 39 - 40
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyeight.vue Parādīt failu

1052
                             : "/"
1052
                             : "/"
1053
                         }}
1053
                         }}
1054
                       </div>
1054
                       </div>
1055
-
1056
-
1057
-
1058
                     <span>
1055
                     <span>
1059
                       <span v-if="prescription.anticoagulant == 4">iu</span>
1056
                       <span v-if="prescription.anticoagulant == 4">iu</span>
1060
-                      <span v-if="prescription.anticoagulant == 3">iu</span>
1061
-                      <span v-if="prescription.anticoagulant == 2">mg</span>
1062
-                      <span v-if="prescription.anticoagulant == 5">ml</span>
1063
-                      <span v-if="prescription.anticoagulant == 6">iu</span>
1064
-                     <span v-if="prescription.anticoagulant == 7">iu</span>
1065
-                     <span v-if="prescription.anticoagulant == 8">iu</span>
1066
-                     <span v-if="prescription.anticoagulant == 9">iu</span>
1067
-                     <span v-if="prescription.anticoagulant == 10">iu</span>
1068
-                     <span v-if="prescription.anticoagulant == 11">iu</span>
1069
-                     <span v-if="prescription.anticoagulant == 13||prescription.anticoagulant == 14">iu</span>
1070
-                     <span v-if="prescription.anticoagulant == 15">mg</span>
1071
-
1057
+                      <span v-else-if="prescription.anticoagulant == 3">iu</span>
1058
+                      <span v-else-if="prescription.anticoagulant == 2">mg</span>
1059
+                      <span v-else-if="prescription.anticoagulant == 5">ml</span>
1060
+                      <span v-else-if="prescription.anticoagulant == 6">iu</span>
1061
+                      <span v-else-if="prescription.anticoagulant == 7">iu</span>
1062
+                      <span v-else-if="prescription.anticoagulant == 8">iu</span>
1063
+                      <span v-else-if="prescription.anticoagulant == 9">iu</span>
1064
+                      <span v-else-if="prescription.anticoagulant == 10">iu</span>
1065
+                      <span v-else-if="prescription.anticoagulant == 11">iu</span>
1066
+                      <span v-else-if="prescription.anticoagulant == 13||prescription.anticoagulant == 14">iu</span>
1067
+                      <span v-else-if="prescription.anticoagulant == 15">mg</span>
1068
+                      <span v-else>iu</span>
1072
                     </span>
1069
                     </span>
1073
                     </div>
1070
                     </div>
1074
                     <div class="inline_block" style="margin-left: 20px" v-if="prescription.anticoagulant != 1">
1071
                     <div class="inline_block" style="margin-left: 20px" v-if="prescription.anticoagulant != 1">
1087
 
1084
 
1088
                       <span>
1085
                       <span>
1089
                         <span v-if="prescription.anticoagulant == 2">mg/h</span>
1086
                         <span v-if="prescription.anticoagulant == 2">mg/h</span>
1090
-                          <span v-if="prescription.anticoagulant == 3">iu/h</span>
1091
-                          <span v-if="prescription.anticoagulant == 4">ml</span>
1092
-                          <span v-if="prescription.anticoagulant == 5">ml/h</span>
1093
-                          <span v-if="prescription.anticoagulant == 6">iu/h</span>
1094
-                          <span v-if="prescription.anticoagulant == 7">iu/h</span>
1095
-                          <span v-if="prescription.anticoagulant == 8">iu/h</span>
1096
-                          <span v-if="prescription.anticoagulant == 9">iu/h</span>
1097
-                          <span v-if="prescription.anticoagulant == 10">iu/h</span>
1098
-                          <span v-if="prescription.anticoagulant == 11">iu/h</span>
1099
-                          <span v-if="prescription.anticoagulant == 13 || prescription.anticoagulant == 14">iu/h</span>
1100
-                          <span v-if="prescription.anticoagulant == 15">mg/h</span>
1087
+                          <span v-else-if="prescription.anticoagulant == 3">iu/h</span>
1088
+                          <span v-else-if="prescription.anticoagulant == 4">ml</span>
1089
+                          <span v-else-if="prescription.anticoagulant == 5">ml/h</span>
1090
+                          <span v-else-if="prescription.anticoagulant == 6">iu/h</span>
1091
+                          <span v-else-if="prescription.anticoagulant == 7">iu/h</span>
1092
+                          <span v-else-if="prescription.anticoagulant == 8">iu/h</span>
1093
+                          <span v-else-if="prescription.anticoagulant == 9">iu/h</span>
1094
+                          <span v-else-if="prescription.anticoagulant == 10">iu/h</span>
1095
+                          <span v-else-if="prescription.anticoagulant == 11">iu/h</span>
1096
+                          <span v-else-if="prescription.anticoagulant == 13 || prescription.anticoagulant == 14">iu/h</span>
1097
+                          <span v-else-if="prescription.anticoagulant == 15">mg/h</span>
1098
+                          <span v-else>iu/h</span>
1101
                       </span>
1099
                       </span>
1102
                     </div>
1100
                     </div>
1103
                     <div
1101
                     <div
1154
 
1152
 
1155
                     <span>
1153
                     <span>
1156
                        <span v-if="prescription.anticoagulant == 2">mg</span>
1154
                        <span v-if="prescription.anticoagulant == 2">mg</span>
1157
-                       <span v-if="prescription.anticoagulant == 3">iu</span>
1158
-                       <span v-if="prescription.anticoagulant == 4">ml</span>
1159
-                       <span v-if="prescription.anticoagulant == 5">ml</span>
1160
-                       <span v-if="prescription.anticoagulant == 6">iu</span>
1161
-                       <span v-if="prescription.anticoagulant == 7">iu</span>
1162
-                       <span v-if="prescription.anticoagulant == 8">iu</span>
1163
-                       <span v-if="prescription.anticoagulant == 9">iu</span>
1164
-                       <span v-if="prescription.anticoagulant == 10">iu</span>
1165
-                      <span v-if="prescription.anticoagulant == 11">iu</span>
1166
-                      <span v-if="prescription.anticoagulant == 13 || prescription.anticoagulant == 14">iu</span>
1167
-                      <span v-if="prescription.anticoagulant == 15">mg</span>
1155
+                       <span v-else-if="prescription.anticoagulant == 3">iu</span>
1156
+                       <span v-else-if="prescription.anticoagulant == 4">ml</span>
1157
+                       <span v-else-if="prescription.anticoagulant == 5">ml</span>
1158
+                       <span v-else-if="prescription.anticoagulant == 6">iu</span>
1159
+                       <span v-else-if="prescription.anticoagulant == 7">iu</span>
1160
+                       <span v-else-if="prescription.anticoagulant == 8">iu</span>
1161
+                       <span v-else-if="prescription.anticoagulant == 9">iu</span>
1162
+                       <span v-else-if="prescription.anticoagulant == 10">iu</span>
1163
+                      <span v-else-if="prescription.anticoagulant == 11">iu</span>
1164
+                      <span v-else-if="prescription.anticoagulant == 13 || prescription.anticoagulant == 14">iu</span>
1165
+                      <span v-else-if="prescription.anticoagulant == 15">mg</span>
1166
+                      <span v-else>iu</span>
1168
                     </span>
1167
                     </span>
1169
                     </div>
1168
                     </div>
1170
                     <div class="inline_block" style="margin-left: 20px">
1169
                     <div class="inline_block" style="margin-left: 20px">
3140
         const obj35 ='q'
3139
         const obj35 ='q'
3141
         checkDate.push(obj35);
3140
         checkDate.push(obj35);
3142
       } if(this.predialysis.remark ==''){
3141
       } if(this.predialysis.remark ==''){
3143
-        const obj35 ='备注'
3144
-        checkDate.push(obj35);
3142
+        const obj35_1 ='备注'
3143
+        checkDate.push(obj35_1);
3145
       } if (this.afterdialysis.temperature == 0) {
3144
       } if (this.afterdialysis.temperature == 0) {
3146
         const obj36 ='透后体温'
3145
         const obj36 ='透后体温'
3147
         checkDate.push(obj36);
3146
         checkDate.push(obj36);
3929
         return age
3928
         return age
3930
       }
3929
       }
3931
     },
3930
     },
3932
-    
3931
+
3933
     getTimeOne(val) {
3932
     getTimeOne(val) {
3934
       return uParseTime(val, "{y}");
3933
       return uParseTime(val, "{y}");
3935
     },
3934
     },

+ 32 - 43
src/xt_pages/dialysis/template/DialysisPrintOrderSop.vue Parādīt failu

71
               <td colspan="3">
71
               <td colspan="3">
72
                 <div style="display: flex;line-height:30px;">
72
                 <div style="display: flex;line-height:30px;">
73
                   <span>治疗抗凝:</span>
73
                   <span>治疗抗凝:</span>
74
-                  <span v-if="prescription.anticoagulant !='普通肝素' && prescription.anticoagulant!='无肝素' && prescription.anticoagulant!='枸橼酸'">
75
-                    {{ prescription.anticoagulant }} &nbsp;&nbsp;
74
+                  <span v-if="prescription.anticoagulant_name !='普通肝素' && prescription.anticoagulant_name!='无肝素' && prescription.anticoagulant_name!='枸橼酸'">
75
+                    {{ this.getanticoagulation(prescription.anticoagulant) }} &nbsp;&nbsp;
76
                     {{prescription.anticoagulant_zongliang ? prescription.anticoagulant_zongliang : "0"}}
76
                     {{prescription.anticoagulant_zongliang ? prescription.anticoagulant_zongliang : "0"}}
77
                   </span>U&nbsp;&nbsp;
77
                   </span>U&nbsp;&nbsp;
78
                   <!-- <span v-if="prescription.anticoagulant !='普通肝素' && prescription.anticoagulant!='无肝素' && prescription.anticoagulant!='枸橼酸'">
78
                   <!-- <span v-if="prescription.anticoagulant !='普通肝素' && prescription.anticoagulant!='无肝素' && prescription.anticoagulant!='枸橼酸'">
79
 
79
 
80
                   </span>U &nbsp;&nbsp; -->
80
                   </span>U &nbsp;&nbsp; -->
81
-                  <label-box :isChecked="prescription.anticoagulant=='普通肝素'?true :false" showValue="普通肝素:"></label-box>&nbsp;&nbsp;
81
+                  <label-box :isChecked="prescription.anticoagulant_name=='普通肝素'?true :false" showValue="普通肝素:"></label-box>&nbsp;&nbsp;
82
                   <div style="display: inline-block;">
82
                   <div style="display: inline-block;">
83
                     首剂:
83
                     首剂:
84
-                    <span v-if="prescription.anticoagulant=='普通肝素'">
84
+                    <span v-if="prescription.anticoagulant_name=='普通肝素'">
85
                       {{ prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : "0" }}
85
                       {{ prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : "0" }}
86
                     </span>mg &nbsp;&nbsp;
86
                     </span>mg &nbsp;&nbsp;
87
                     追加:
87
                     追加:
88
-                    <span v-if="prescription.anticoagulant=='普通肝素'">
88
+                    <span v-if="prescription.anticoagulant_name=='普通肝素'">
89
                       {{prescription.anticoagulant_weichi ? prescription.anticoagulant_weichi : "0"}}
89
                       {{prescription.anticoagulant_weichi ? prescription.anticoagulant_weichi : "0"}}
90
                     </span>mg/h &nbsp;&nbsp;
90
                     </span>mg/h &nbsp;&nbsp;
91
                     总量:
91
                     总量:
92
-                    <span v-if="prescription.anticoagulant=='普通肝素'">
92
+                    <span v-if="prescription.anticoagulant_name=='普通肝素'">
93
                       {{ prescription.anticoagulant_zongliang ? prescription.anticoagulant_zongliang : "0"}}
93
                       {{ prescription.anticoagulant_zongliang ? prescription.anticoagulant_zongliang : "0"}}
94
                     </span>mg
94
                     </span>mg
95
                   </div>
95
                   </div>
96
                   &nbsp;&nbsp;
96
                   &nbsp;&nbsp;
97
-                  <label-box :isChecked="prescription.anticoagulant=='无肝素'?true :false" showValue="无肝素"></label-box>&nbsp;&nbsp;
98
-                  <label-box :isChecked="prescription.anticoagulant=='枸橼酸'?true :false" showValue="枸橼酸"></label-box>
97
+                  <label-box :isChecked="prescription.anticoagulant_name=='无肝素'?true :false" showValue="无肝素"></label-box>&nbsp;&nbsp;
98
+                  <label-box :isChecked="prescription.anticoagulant_name=='枸橼酸'?true :false" showValue="枸橼酸"></label-box>
99
                 </div>
99
                 </div>
100
               </td>
100
               </td>
101
             </tr>
101
             </tr>
103
             <tr>
103
             <tr>
104
               <td colspan="2">
104
               <td colspan="2">
105
                 <div style="line-height:30px;">
105
                 <div style="line-height:30px;">
106
-                 <span>处方脱水量: {{ prescription.prescription_water ? prescription.prescription_water : "" }} </span>ml &nbsp;&nbsp;
106
+                 <span v-if="org_id != 9779">处方脱水量: {{ prescription.prescription_water ? prescription.prescription_water : "" }} ml&nbsp;&nbsp;</span> 
107
+                 <span v-if="org_id == 9779">目标脱水量:{{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : "" }} L&nbsp;&nbsp;</span>
107
                  <span>透析液流量: {{ prescription.dialysate_flow ? prescription.dialysate_flow : "" }} </span>ml/h
108
                  <span>透析液流量: {{ prescription.dialysate_flow ? prescription.dialysate_flow : "" }} </span>ml/h
108
                 </div>
109
                 </div>
109
               </td>
110
               </td>
123
         <table border="1" class="table-box" style="border-collapse: collapse;width: 99%;">
124
         <table border="1" class="table-box" style="border-collapse: collapse;width: 99%;">
124
           <tr>
125
           <tr>
125
             <td style="width: 20%; line-height: 30px;">透析机:
126
             <td style="width: 20%; line-height: 30px;">透析机:
126
-              {{predialysis.machine_type ? predialysis.machine_type : " "}}
127
+              {{predialysis.machine_type ? predialysis.machine_type : " /"}}
127
             </td>
128
             </td>
128
             <td style="width: 30%;line-height: 30px;">
129
             <td style="width: 30%;line-height: 30px;">
129
               透析(滤)器:
130
               透析(滤)器:
130
               {{ prescription.dialysis_dialyszers ? prescription.dialysis_dialyszers : "" }}
131
               {{ prescription.dialysis_dialyszers ? prescription.dialysis_dialyszers : "" }}
131
 
132
 
132
               {{ prescription.dialysis_strainer ? prescription.dialysis_strainer : "" }}
133
               {{ prescription.dialysis_strainer ? prescription.dialysis_strainer : "" }}
133
-              <!-- {{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : ""}} &nbsp;
134
-              {{ prescription.dialysis_dialyszers ? prescription.dialysis_dialyszers : " "}} -->
134
+
135
             </td>
135
             </td>
136
             <td style="">
136
             <td style="">
137
               透析液:钾:
137
               透析液:钾:
158
             <td colspan="3">
158
             <td colspan="3">
159
               <div style="display: inline-block;line-height: 30px;">
159
               <div style="display: inline-block;line-height: 30px;">
160
                 血管通路:
160
                 血管通路:
161
-                <label-box :isChecked="predialysis.blood_access_part_opera_name=='内瘘'?true :false" showValue="内瘘"></label-box>&nbsp;
162
-                <label-box :isChecked="predialysis.blood_access_part_opera_name=='长期静脉导管'?true :false" showValue="长期静脉导管"></label-box>&nbsp;
163
-                <label-box :isChecked="predialysis.blood_access_part_opera_name=='临时静脉导管'?true :false" showValue="临时(颈、股)静脉导管"></label-box>&nbsp;
164
-                <label-box :isChecked="predialysis.blood_access_part_opera_name!='内瘘' &&
165
-                            predialysis.blood_access_part_opera_name!='长期静脉导管' &&
166
-                            predialysis.blood_access_part_opera_name!='临时静脉导管' &&
167
-                            predialysis.blood_access_part_opera_name!=''?true :false" showValue="其它">
161
+                <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘')!=-1 ?true :false" showValue="内瘘"></label-box>&nbsp;
162
+                <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('长期静脉导管')!=-1?true :false" showValue="长期静脉导管"></label-box>&nbsp;
163
+                <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('临时静脉导管')!=-1?true :false" showValue="临时(颈、股)静脉导管"></label-box>&nbsp;
164
+                <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘')==-1 &&
165
+                            predialysis.blood_access_part_opera_name.indexOf('长期静脉导管')==-1 &&
166
+                            predialysis.blood_access_part_opera_name.indexOf('临时静脉导管')==-1 ?true :false" showValue="其它">
168
                 </label-box>
167
                 </label-box>
169
-
168
+                <span>{{ predialysis.blood_access_part_opera_name }}</span>
170
               </div>&nbsp;&nbsp;
169
               </div>&nbsp;&nbsp;
171
               <div style="display: inline-block;line-height: 30px;">
170
               <div style="display: inline-block;line-height: 30px;">
172
                 穿刺者:
171
                 穿刺者:
721
           if (patientInfo.gender === 2) {
720
           if (patientInfo.gender === 2) {
722
             patientInfo.gender = "女";
721
             patientInfo.gender = "女";
723
           }
722
           }
724
-          console.log("patientInfo", patientInfo);
723
+          console.log("response.data.data", response.data.data);
725
           this.patientInfo = patientInfo;
724
           this.patientInfo = patientInfo;
726
           this.patientInfo.birth = uParseTime(
725
           this.patientInfo.birth = uParseTime(
727
             this.patientInfo.birthday,
726
             this.patientInfo.birthday,
907
           this.doctorForm.url = doctorname.url;
906
           this.doctorForm.url = doctorname.url;
908
           var prescription = response.data.data.dialysisPrescription;
907
           var prescription = response.data.data.dialysisPrescription;
909
           console.log("透析处方", prescription);
908
           console.log("透析处方", prescription);
910
-          if (prescription.anticoagulant == 6) {
911
-            prescription.anticoagulant = "低分子肝素钙";
912
-          }
913
-          if (prescription.anticoagulant == 7) {
914
-            prescription.anticoagulant = "低分子肝素钠";
915
-          }
916
           if (prescription.blood_access === 1) {
909
           if (prescription.blood_access === 1) {
917
             prescription.blood_access = "正常";
910
             prescription.blood_access = "正常";
918
           }
911
           }
949
           if (prescription.replacement_way === 4) {
942
           if (prescription.replacement_way === 4) {
950
             prescription.replacement_way = "混合置换";
943
             prescription.replacement_way = "混合置换";
951
           }
944
           }
952
-          if (prescription.anticoagulant === 1) {
953
-            prescription.anticoagulant = "无肝素";
954
-          }
955
-          if (prescription.anticoagulant === 2) {
956
-            prescription.anticoagulant = "普通肝素";
957
-          }
958
-          if (prescription.anticoagulant === 3) {
959
-            prescription.anticoagulant = "低分子肝素";
960
-          }
961
-          if (prescription.anticoagulant === 4) {
962
-            prescription.anticoagulant = "阿加曲班";
963
-          }
964
-          if (prescription.anticoagulant === 5) {
965
-            prescription.anticoagulant = "枸橼酸钠";
966
-          }
967
           this.prescription = prescription;
945
           this.prescription = prescription;
968
           var receiverTreatmentAccess =
946
           var receiverTreatmentAccess =
969
             response.data.data.receiverTreatmentAccess;
947
             response.data.data.receiverTreatmentAccess;
1281
       }else{
1259
       }else{
1282
         this.$message.success('核对完成')
1260
         this.$message.success('核对完成')
1283
       }
1261
       }
1262
+    },
1263
+    getanticoagulation(val){
1264
+      const option = this.anticoagulantsConfit
1265
+      if(val !=''){
1266
+        for(let i in option){
1267
+          if(option[i].id == val){
1268
+            return option[i].name
1269
+          }
1270
+        }
1271
+      }
1284
     }
1272
     }
1285
   },
1273
   },
1286
   watch: {
1274
   watch: {
1317
     this.replacementWays = this.$store.getters.replacement_ways;
1305
     this.replacementWays = this.$store.getters.replacement_ways;
1318
     this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
1306
     this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
1319
     this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
1307
     this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
1320
-
1308
+    console.log('anticoagulantsConfit',this.anticoagulantsConfit);
1309
+    
1321
     this.way_arr = getDataConfig("hemodialysis", "way");
1310
     this.way_arr = getDataConfig("hemodialysis", "way");
1322
     this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
1311
     this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
1323
     this.appetite_arr = getDataConfig("hemodialysis", "appetite");
1312
     this.appetite_arr = getDataConfig("hemodialysis", "appetite");

+ 17 - 20
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyTwo.vue Parādīt failu

211
               <table class="table-box">
211
               <table class="table-box">
212
                 <tbody>
212
                 <tbody>
213
                 <tr>
213
                 <tr>
214
-                  <td width="70">导管:</td>
214
+                  <td width="70">导管:</td>
215
                   <td width="240">
215
                   <td width="240">
216
-                    <div style="display:flex;justify-content:space-between;">
217
-                      <label-box :isChecked="predialysis.catheter.indexOf('穿刺口-干洁') > -1 ? true : false" showValue="干洁"></label-box>
218
-                      &nbsp;
219
-                      <label-box :isChecked="predialysis.catheter.indexOf('穿刺口-红肿') > -1 ? true : false" showValue="红肿"></label-box>
220
-                      &nbsp;
221
-                      <label-box :isChecked="predialysis.catheter.indexOf('穿刺口-分泌物') > -1 ? true : false" showValue="分泌物"></label-box>
222
-                      &nbsp;
223
-                      <label-box :isChecked="predialysis.catheter.indexOf('穿刺口-渗血') > -1 ? true : false" showValue="渗血"></label-box>
216
+                    <div class="under-line" style="text-align: center;white-space: normal;">
217
+                      {{ predialysis.catheter ? predialysis.catheter :'/' }}
224
                     </div>
218
                     </div>
225
                   </td>
219
                   </td>
226
                   <td width="40"></td>
220
                   <td width="40"></td>
277
                       &nbsp;
271
                       &nbsp;
278
                       <label-box :isChecked="predialysis.internal_fistula.indexOf('震颤-减弱') > -1 ? true : false" showValue="减弱"></label-box>
272
                       <label-box :isChecked="predialysis.internal_fistula.indexOf('震颤-减弱') > -1 ? true : false" showValue="减弱"></label-box>
279
                       &nbsp;
273
                       &nbsp;
280
-                      <label-box :isChecked="(predialysis.internal_fistula.indexOf('震颤-无') > -1 || predialysis.internal_fistula.indexOf('不存在') > -1) ? true : false" showValue="不存在"></label-box>
274
+                      <label-box :isChecked="(predialysis.internal_fistula.indexOf('不存在') > -1 || predialysis.internal_fistula.indexOf('不存在') > -1) ? true : false" showValue="不存在"></label-box>
281
                     </div>
275
                     </div>
282
                   </td>
276
                   </td>
283
                   <td width="30"></td>
277
                   <td width="30"></td>
476
                   <td width="10">ml</td>
470
                   <td width="10">ml</td>
477
                   <td width='70'>置换方式:</td>
471
                   <td width='70'>置换方式:</td>
478
                   <td width='130'>
472
                   <td width='130'>
473
+                    
479
                     <label-box :isChecked="prescription.displace_liqui_part == 1 ? true : false" showValue="前置换"></label-box>&nbsp;
474
                     <label-box :isChecked="prescription.displace_liqui_part == 1 ? true : false" showValue="前置换"></label-box>&nbsp;
480
                     <label-box :isChecked="prescription.displace_liqui_part == 2 ? true : false" showValue="后置换"></label-box>
475
                     <label-box :isChecked="prescription.displace_liqui_part == 2 ? true : false" showValue="后置换"></label-box>
481
                   </td>
476
                   </td>
780
                       <div style="display:flex;justify-content:space-between;">
775
                       <div style="display:flex;justify-content:space-between;">
781
                         <label-box :isChecked="afterdialysis.internal_fistula.indexOf('震颤-存在') > -1 ? true : false" showValue="存在"></label-box>
776
                         <label-box :isChecked="afterdialysis.internal_fistula.indexOf('震颤-存在') > -1 ? true : false" showValue="存在"></label-box>
782
                         <label-box :isChecked="afterdialysis.internal_fistula.indexOf('震颤-减弱') > -1 ? true : false" showValue="减弱"></label-box>
777
                         <label-box :isChecked="afterdialysis.internal_fistula.indexOf('震颤-减弱') > -1 ? true : false" showValue="减弱"></label-box>
783
-                        <label-box :isChecked="afterdialysis.internal_fistula.indexOf('震颤-无') > -1 ? true : false" showValue="不存在"></label-box>
778
+                        <label-box :isChecked="afterdialysis.internal_fistula.indexOf('不存在') > -1 ? true : false" showValue="不存在"></label-box>
784
                       </div>
779
                       </div>
785
                     </td>
780
                     </td>
786
                     <td width='30'></td>
781
                     <td width='30'></td>
787
                     <td width="40">导管:</td>
782
                     <td width="40">导管:</td>
788
                     <td width='200'>
783
                     <td width='200'>
789
-                      <label-box showValue="通畅" :isChecked="afterdialysis.catheter.indexOf('通畅') > -1 ? true : false"></label-box>&nbsp;
790
-                      <label-box showValue="A堵塞" :isChecked="afterdialysis.catheter.indexOf('A堵塞') > -1 ? true : false"></label-box>&nbsp;
791
-                      <label-box showValue="V堵塞" :isChecked="afterdialysis.catheter.indexOf('V堵塞') > -1 ? true : false"></label-box>&nbsp;
784
+                      <div class="under-line" style="text-align: center;">
785
+                        {{ afterdialysis.catheter ? afterdialysis.catheter :'/' }}
786
+                      </div>
792
                     </td>
787
                     </td>
793
                     <td></td>
788
                     <td></td>
794
                   </tr>
789
                   </tr>
800
                   <tr>
795
                   <tr>
801
                     <td width="130">拔针后穿刺点渗血:</td>
796
                     <td width="130">拔针后穿刺点渗血:</td>
802
                     <td width="80">
797
                     <td width="80">
803
-                      <div style="display:flex;justify-content:space-between;">
804
-                        <label-box :isChecked="afterdialysis.puncture_point_oozing_blood == 1 ? true : false" showValue="有"></label-box>
805
-                        <label-box :isChecked="afterdialysis.puncture_point_oozing_blood == 2 ? true : false" showValue="无"></label-box>
798
+                      <div class="under-line" style="text-align: center;">
799
+                        <span v-if="afterdialysis.puncture_point_oozing_blood ==1">有</span>
800
+                        <span v-else-if="afterdialysis.puncture_point_oozing_blood ==2">无</span>
801
+                        <span v-else>/</span>
806
                       </div>
802
                       </div>
807
                     </td>
803
                     </td>
808
                     <td width="10"></td>
804
                     <td width="10"></td>
847
                         <label-box :isChecked="afterdialysis.complication.indexOf('抽搐') > -1 ? true : false" showValue="抽搐"></label-box>
843
                         <label-box :isChecked="afterdialysis.complication.indexOf('抽搐') > -1 ? true : false" showValue="抽搐"></label-box>
848
                         <label-box :isChecked="afterdialysis.complication.indexOf('高血压') > -1 ? true : false" showValue="高血压"></label-box>
844
                         <label-box :isChecked="afterdialysis.complication.indexOf('高血压') > -1 ? true : false" showValue="高血压"></label-box>
849
                         <label-box :isChecked="afterdialysis.complication.indexOf('心律失常') > -1 ? true : false" showValue="心律失常"></label-box>
845
                         <label-box :isChecked="afterdialysis.complication.indexOf('心律失常') > -1 ? true : false" showValue="心律失常"></label-box>
850
-
851
                       </div>
846
                       </div>
852
                     </td>
847
                     </td>
853
                     <td width="40">其他:</td>
848
                     <td width="40">其他:</td>
1434
               this.patientInfo.birthday,
1429
               this.patientInfo.birthday,
1435
               '{y}-{m}-{d}'
1430
               '{y}-{m}-{d}'
1436
             )
1431
             )
1432
+            console.log('response.data.data',response.data.data);
1433
+            
1437
             // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
1434
             // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
1438
             if (response.data.data.patientInfo.first_dialysis_date != 0) {
1435
             if (response.data.data.patientInfo.first_dialysis_date != 0) {
1439
               this.patientInfo.first_dialysis_date = uParseTime(
1436
               this.patientInfo.first_dialysis_date = uParseTime(
1445
             }
1442
             }
1446
             this.check = response.data.data.check
1443
             this.check = response.data.data.check
1447
             this.predialysis = response.data.data.PredialysisEvaluation
1444
             this.predialysis = response.data.data.PredialysisEvaluation
1448
-            console.log(11111111111111111111111, this.predialysis)
1445
+            console.log('11111111122222s', this.predialysis)
1449
             this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
1446
             this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
1450
               this.predialysis.blood_access_part_opera_id
1447
               this.predialysis.blood_access_part_opera_id
1451
             )
1448
             )
1452
             this.afterdialysis = response.data.data.AssessmentAfterDislysis
1449
             this.afterdialysis = response.data.data.AssessmentAfterDislysis
1453
-            console.log(22222222222222222222222222, response.data.data)
1450
+            console.log('全部', response.data.data)
1454
             this.operators = response.data.data.operators
1451
             this.operators = response.data.data.operators
1455
             this.dialysisOrder =
1452
             this.dialysisOrder =
1456
               response.data.data.dialysisOrder === null
1453
               response.data.data.dialysisOrder === null

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 2949 - 0
src/xt_pages/dialysis/template/DialysisPrintOrdereightythree.vue


+ 9 - 5
src/xt_pages/outpatientDoctorStation/template/printOne.vue Parādīt failu

166
                     v-else
166
                     v-else
167
                   />
167
                   />
168
                 </p>
168
                 </p>
169
-                <p v-if="org_id == 10510">
169
+                <p v-if="org_id == 10510 || org_id == 10265">
170
                   医师:
170
                   医师:
171
                   <span
171
                   <span
172
                     style="width: 100px; display: inline-block"
172
                     style="width: 100px; display: inline-block"
188
                     v-else
188
                     v-else
189
                   />
189
                   />
190
                 </p>
190
                 </p>
191
-                <p v-if="org_id!=10217 && org_id!=10510">
191
+                <p v-if="org_id!=10217 && org_id!=10510 && org_id !=10265">
192
                   医师: {{ item.doctor ? item.doctor : "" }}
192
                   医师: {{ item.doctor ? item.doctor : "" }}
193
                 </p>
193
                 </p>
194
                 <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
194
                 <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
281
               v-else
281
               v-else
282
             />
282
             />
283
           </p>
283
           </p>
284
-          <p v-if="org_id == 10510">
284
+          <p v-if="org_id == 10510  || org_id == 10265 || org_id ==0">
285
             医师:
285
             医师:
286
             <span
286
             <span
287
               style="width: 100px; display: inline-block"
287
               style="width: 100px; display: inline-block"
301
               alt=""
301
               alt=""
302
               srcset=""
302
               srcset=""
303
               v-else
303
               v-else
304
-            />
304
+            /> &nbsp;&nbsp;
305
+            <span v-if="org_id == 10265 || org_id ==0">
306
+              {{ item.doctor ? item.doctor : "" }}
307
+            </span>
308
+            
305
           </p>
309
           </p>
306
-          <p v-if="org_id!=10217 && org_id!=10510">
310
+          <p v-if="org_id!=10217 && org_id!=10510 && org_id !=10265 && org_id !=0">
307
             医师: {{ item.doctor ? item.doctor : "" }}
311
             医师: {{ item.doctor ? item.doctor : "" }}
308
           </p>
312
           </p>
309
           <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
313
           <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>

+ 70 - 2
src/xt_pages/stock/detail/cancelStockDetail.vue Parādīt failu

82
         @click="getAllQuery"
82
         @click="getAllQuery"
83
         >查询</el-button
83
         >查询</el-button
84
       >
84
       >
85
+    
86
+     
87
+
88
+    </div>
85
 
89
 
90
+    <div style="margin-bottom: 10px;">
91
+
92
+        <label class="title"><span class="name">耗材名称</span> : </label>
93
+        <el-autocomplete
94
+          class="checkSearch"
95
+          popper-class="my-autocomplete"
96
+          v-model="good_name"
97
+          :fetch-suggestions="querySearchAsync"
98
+          :trigger-on-focus="true"
99
+          placeholder="请输入耗材名称"
100
+          @select="handleSelect"
101
+          style="width:300px;"
102
+          :popper-append-to-body="true"
103
+        >
104
+          <i class="el-icon-search el-input__icon" slot="suffix"></i>
105
+        <template slot-scope="{ item }">
106
+          <div class="name">{{ item.good_name +"  " +item.specification_name + "  "+item.manufacturer }}</div>
107
+        </template>
108
+        </el-autocomplete>
86
 
109
 
87
     </div>
110
     </div>
88
 
111
 
202
 <script>
225
 <script>
203
 import { uParseTime } from "@/utils/tools";
226
 import { uParseTime } from "@/utils/tools";
204
 import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from "@/api/doctor";
227
 import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from "@/api/doctor";
205
-import { deleteCancelStock, GetAllConfig, getStockDetail } from "@/api/stock";
228
+import { deleteCancelStock, GetAllConfig, getStockDetail,postSearchGoodList } from "@/api/stock";
206
 
229
 
207
 export default {
230
 export default {
208
   name: "cancelStockDetail",
231
   name: "cancelStockDetail",
280
       storehouse_id:0,
303
       storehouse_id:0,
281
       manufacturerList:[],
304
       manufacturerList:[],
282
       dealerList:[],
305
       dealerList:[],
283
-      patientsList:[]
306
+      patientsList:[],
307
+      good_name:"",
308
+      good_id:0,
284
         
309
         
285
     };
310
     };
286
   },
311
   },
287
   methods: {
312
   methods: {
313
+    handleSelect(val){
314
+     this.good_name = val.good_name
315
+     this.good_id = val.id
316
+     this.GetCancelStock();
317
+    },
318
+    querySearchAsync(keyword, cb) {
319
+        let key = '';
320
+        if (keyword != undefined) {
321
+          key = keyword
322
+        }
323
+      postSearchGoodList(key,this.storehouse_id).then(response => {
324
+          if (response.data.state == 1) {
325
+
326
+             var list = response.data.data.list
327
+
328
+             this.goodList = list
329
+             var manufacturerList = response.data.data.manufacturerList
330
+             this.manufacturerList = manufacturerList
331
+             var dealer =  response.data.data.dealerList
332
+             this.dealerList = dealer
333
+             for(let i=0;i<this.goodList.length;i++){
334
+                for(let j=0;j<this.manufacturerList.length;j++){
335
+                  if(this.goodList[i].manufacturer == this.manufacturerList[j].id){
336
+                     this.goodList[i].manufacturer = this.manufacturerList[j].manufacturer_name
337
+                  }
338
+                }
339
+             }
340
+
341
+             for(let i=0;i<this.goodList.length;i++){
342
+               for(let j=0;j<this.dealerList.length;j++){
343
+                  if(this.goodList[i].dealer == this.dealerList[j].id){
344
+                    this.goodList[i].dealer = this.dealerList[j].dealer_name
345
+                  }
346
+               }
347
+             }
348
+
349
+             cb(this.goodList)
350
+          } else {
351
+            cb([])
352
+          }
353
+        })
354
+     },
288
     PrintAction: function() {
355
     PrintAction: function() {
289
       window.sessionStorage.setItem('start_time_one',this.start_time)
356
       window.sessionStorage.setItem('start_time_one',this.start_time)
290
       window.sessionStorage.setItem('end_time_one',this.end_time)
357
       window.sessionStorage.setItem('end_time_one',this.end_time)
396
         dealer: this.dealer_id,
463
         dealer: this.dealer_id,
397
         keywords: this.searchKey,
464
         keywords: this.searchKey,
398
         storehouse_id:this.storehouse_id,
465
         storehouse_id:this.storehouse_id,
466
+        good_id:this.good_id,
399
       };
467
       };
400
       const loading = this.$loading({
468
       const loading = this.$loading({
401
           lock: true,
469
           lock: true,

+ 77 - 3
src/xt_pages/stock/detail/stockInDetail.vue Parādīt failu

27
 
27
 
28
     <div class="cell clearfix">
28
     <div class="cell clearfix">
29
       <label class="title"><span class="name">仓库</span> :</label>
29
       <label class="title"><span class="name">仓库</span> :</label>
30
-      <el-select size="small" v-model="storehouse_id" filterable placeholder="请选择仓库" style="width:200px" @change="changeHouseList">
30
+      <el-select size="small" v-model="storehouse_id" filterable placeholder="请选择仓库" style="width:100px" @change="changeHouseList">
31
           <el-option
31
           <el-option
32
             v-for="(option, index) in houseList"
32
             v-for="(option, index) in houseList"
33
             :key="index"
33
             :key="index"
35
             :value="option.id">
35
             :value="option.id">
36
           </el-option>
36
           </el-option>
37
       </el-select>
37
       </el-select>
38
+
38
       <el-input
39
       <el-input
39
         size="small"
40
         size="small"
40
         style="width: 180px;"
41
         style="width: 180px;"
50
         @click="search"
51
         @click="search"
51
         >搜索</el-button
52
         >搜索</el-button
52
       >
53
       >
54
+    
55
+    
56
+      
57
+
58
+
53
 
59
 
54
         <label class="title"><span class="name">日期查询</span> : </label>
60
         <label class="title"><span class="name">日期查询</span> : </label>
55
         <el-date-picker
61
         <el-date-picker
88
         >
94
         >
89
     </div>
95
     </div>
90
 
96
 
97
+    <div style="margin-bottom: 10px;">
98
+      <label class="title"><span class="name">耗材名称</span> : </label>
99
+      <el-autocomplete
100
+        class="checkSearch"
101
+        popper-class="my-autocomplete"
102
+        v-model="good_name"
103
+        :fetch-suggestions="querySearchAsync"
104
+        :trigger-on-focus="true"
105
+        placeholder="请输入耗材名称"
106
+        @select="handleSelect"
107
+        style="width:300px;"
108
+        :popper-append-to-body="true"
109
+      >
110
+        <i class="el-icon-search el-input__icon" slot="suffix"></i>
111
+      <template slot-scope="{ item }">
112
+        <div class="name">{{ item.good_name +"  " +item.specification_name + "  "+item.manufacturer }}</div>
113
+      </template>
114
+    </el-autocomplete>
115
+    </div>
116
+
91
     <!-- <el-row :gutter="12" style="margin-top: 10px"> -->
117
     <!-- <el-row :gutter="12" style="margin-top: 10px"> -->
92
       <div style="width: 100%;">
118
       <div style="width: 100%;">
93
         <el-table
119
         <el-table
201
   GetAllConfig,
227
   GetAllConfig,
202
   getStockDetail,
228
   getStockDetail,
203
   getPrintStockGood,
229
   getPrintStockGood,
204
-  getGoodDetailPrintList
230
+  getGoodDetailPrintList,
231
+  postSearchGoodList
205
 } from "@/api/stock";
232
 } from "@/api/stock";
206
 
233
 
207
 export default {
234
 export default {
254
         { value: 2, label: "其他入库单" }
281
         { value: 2, label: "其他入库单" }
255
       ],
282
       ],
256
       newDate: [{ name: "合计", num: "111111" }],
283
       newDate: [{ name: "合计", num: "111111" }],
257
-
284
+      good_name:"",
258
       searchKey: "",
285
       searchKey: "",
259
       type: 1,
286
       type: 1,
260
       page: 1,
287
       page: 1,
287
       storehouse_id:0,
314
       storehouse_id:0,
288
       manufacturerList:[],
315
       manufacturerList:[],
289
       dealerList:[],
316
       dealerList:[],
317
+      currentIndex:0,
318
+      good_id:0,
290
     };
319
     };
291
   },
320
   },
292
   methods: {
321
   methods: {
322
+    handleSelect(val){
323
+     this.good_name = val.good_name
324
+     this.good_id = val.id
325
+     this.GetCancelStock();
326
+     this.getGoodDetailPrintList()
327
+    },
328
+    querySearchAsync(keyword, cb) {
329
+        let key = '';
330
+        if (keyword != undefined) {
331
+          key = keyword
332
+        }
333
+        postSearchGoodList(key,this.storehouse_id).then(response => {
334
+          if (response.data.state == 1) {
335
+
336
+             var list = response.data.data.list
337
+
338
+             this.goodList = list
339
+             var manufacturerList = response.data.data.manufacturerList
340
+             this.manufacturerList = manufacturerList
341
+             var dealer =  response.data.data.dealerList
342
+             this.dealerList = dealer
343
+             for(let i=0;i<this.goodList.length;i++){
344
+                for(let j=0;j<this.manufacturerList.length;j++){
345
+                  if(this.goodList[i].manufacturer == this.manufacturerList[j].id){
346
+                     this.goodList[i].manufacturer = this.manufacturerList[j].manufacturer_name
347
+                  }
348
+                }
349
+             }
350
+
351
+             for(let i=0;i<this.goodList.length;i++){
352
+               for(let j=0;j<this.dealerList.length;j++){
353
+                  if(this.goodList[i].dealer == this.dealerList[j].id){
354
+                    this.goodList[i].dealer = this.dealerList[j].dealer_name
355
+                  }
356
+               }
357
+             }
358
+
359
+             cb(this.goodList)
360
+          } else {
361
+            cb([])
362
+          }
363
+        })
364
+     },
293
     changeType: function(val) {
365
     changeType: function(val) {
294
       this.order_type = val;
366
       this.order_type = val;
295
       this.GetCancelStock();
367
       this.GetCancelStock();
407
         dealer: this.dealer_id,
479
         dealer: this.dealer_id,
408
         keywords: this.searchKey,
480
         keywords: this.searchKey,
409
         storehouse_id:this.storehouse_id,
481
         storehouse_id:this.storehouse_id,
482
+        good_id:this.good_id,
410
       };
483
       };
411
       this.cancelStockDate = [];
484
       this.cancelStockDate = [];
412
       const loading = this.$loading({
485
       const loading = this.$loading({
912
           end_time:this.end_time,
985
           end_time:this.end_time,
913
           type:1,
986
           type:1,
914
           storehouse_id:this.storehouse_id,
987
           storehouse_id:this.storehouse_id,
988
+          good_id:this.good_id,
915
         }
989
         }
916
       getGoodDetailPrintList(params).then(response=>{
990
       getGoodDetailPrintList(params).then(response=>{
917
         if(response.data.state == 1){
991
         if(response.data.state == 1){

+ 90 - 3
src/xt_pages/stock/detail/stockOutDetail.vue Parādīt failu

97
 
97
 
98
     </div>
98
     </div>
99
 
99
 
100
-    <!-- <el-row :gutter="12" style="margin-top: 10px"> -->
100
+    <div style="margin-bottom: 10px;">
101
+      <label class="title"><span class="name">耗材名称</span> : </label>
102
+      <el-autocomplete
103
+        class="checkSearch"
104
+        popper-class="my-autocomplete"
105
+        v-model="good_name"
106
+        :fetch-suggestions="querySearchAsync"
107
+        :trigger-on-focus="true"
108
+        placeholder="请输入耗材名称"
109
+        @select="handleSelect"
110
+        style="width:300px;"
111
+        :popper-append-to-body="true"
112
+      >
113
+        <i class="el-icon-search el-input__icon" slot="suffix"></i>
114
+      <template slot-scope="{ item }">
115
+        <div class="name">{{ item.good_name +"  " +item.specification_name + "  "+item.manufacturer }}</div>
116
+      </template>
117
+    </el-autocomplete>
118
+
119
+    <label class="title"><span class="name">出库方式</span> : </label>
120
+    <el-select size="small" v-model="order_way" filterable placeholder="请选择仓库" style="width:200px" @change="changeOrderWayList">
121
+          <el-option
122
+            v-for="(option, index) in orderWay"
123
+            :key="index"
124
+            :label="option.label"
125
+            :value="option.value">
126
+          </el-option>
127
+      </el-select>
128
+    </div>
129
+
130
+   
101
       <el-table class="table"
131
       <el-table class="table"
102
         :data="cancelStockDate"
132
         :data="cancelStockDate"
103
         :class="signAndWeighBoxPatients"
133
         :class="signAndWeighBoxPatients"
223
 <script>
253
 <script>
224
 import { uParseTime } from "@/utils/tools";
254
 import { uParseTime } from "@/utils/tools";
225
 import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from "@/api/doctor";
255
 import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from "@/api/doctor";
226
-import { deleteCancelStock, GetAllConfig, getStockDetail,getPrintStockGood,getGoodInfoList,getGoodDetailPrintList } from "@/api/stock";
256
+import { deleteCancelStock, GetAllConfig, getStockDetail,getPrintStockGood,getGoodInfoList,getGoodDetailPrintList,postSearchGoodList } from "@/api/stock";
227
 
257
 
228
 export default {
258
 export default {
229
   name: "stockOutDetail",
259
   name: "stockOutDetail",
276
         { value: 1, label: "耗材入库单" },
306
         { value: 1, label: "耗材入库单" },
277
         { value: 2, label: "其他入库单" }
307
         { value: 2, label: "其他入库单" }
278
       ],
308
       ],
309
+      orderWay:[
310
+        {value:0,label:"全部"},
311
+        {value:1,label:"手动出库"},
312
+        {value:2,label:"自动出库"},
313
+      ],
279
       manufacturer_id: "",
314
       manufacturer_id: "",
280
       dealer_id: "",
315
       dealer_id: "",
281
       order_type:"",
316
       order_type:"",
282
-
317
+      order_way:"",
283
       searchKey: "",
318
       searchKey: "",
284
       type: 2,
319
       type: 2,
285
       page: 1,
320
       page: 1,
313
       manufacturerList:[],
348
       manufacturerList:[],
314
       dealerList:[],
349
       dealerList:[],
315
       patientsList:[],
350
       patientsList:[],
351
+      good_id:0,
352
+      good_name:"",
316
     };
353
     };
317
   },
354
   },
318
   methods: {
355
   methods: {
356
+    changeOrderWayList(){
357
+      this.GetCancelStock();
358
+      this.getGoodDetailPrintList()
359
+    },
360
+    handleSelect(val){
361
+     this.good_name = val.good_name
362
+     this.good_id = val.id
363
+     this.GetCancelStock();
364
+     this.getGoodDetailPrintList()
365
+    },
366
+    querySearchAsync(keyword, cb) {
367
+        let key = '';
368
+        if (keyword != undefined) {
369
+          key = keyword
370
+        }
371
+        postSearchGoodList(key,this.storehouse_id).then(response => {
372
+          if (response.data.state == 1) {
373
+
374
+             var list = response.data.data.list
375
+
376
+             this.goodList = list
377
+             var manufacturerList = response.data.data.manufacturerList
378
+             this.manufacturerList = manufacturerList
379
+             var dealer =  response.data.data.dealerList
380
+             this.dealerList = dealer
381
+             for(let i=0;i<this.goodList.length;i++){
382
+                for(let j=0;j<this.manufacturerList.length;j++){
383
+                  if(this.goodList[i].manufacturer == this.manufacturerList[j].id){
384
+                     this.goodList[i].manufacturer = this.manufacturerList[j].manufacturer_name
385
+                  }
386
+                }
387
+             }
388
+
389
+             for(let i=0;i<this.goodList.length;i++){
390
+               for(let j=0;j<this.dealerList.length;j++){
391
+                  if(this.goodList[i].dealer == this.dealerList[j].id){
392
+                    this.goodList[i].dealer = this.dealerList[j].dealer_name
393
+                  }
394
+               }
395
+             }
396
+
397
+             cb(this.goodList)
398
+          } else {
399
+            cb([])
400
+          }
401
+        })
402
+     },
319
     changeType: function(val) {
403
     changeType: function(val) {
320
       this.order_type = val;
404
       this.order_type = val;
321
       this.GetCancelStock();
405
       this.GetCancelStock();
432
         dealer: this.dealer_id,
516
         dealer: this.dealer_id,
433
         keywords: this.searchKey,
517
         keywords: this.searchKey,
434
         storehouse_id:this.storehouse_id,
518
         storehouse_id:this.storehouse_id,
519
+        good_id:this.good_id,
520
+        order_way:this.order_way
435
       };
521
       };
436
       this.cancelStockDate = [];
522
       this.cancelStockDate = [];
437
       const loading = this.$loading({
523
       const loading = this.$loading({
1100
           start_time:this.start_time,
1186
           start_time:this.start_time,
1101
           end_time:this.end_time,
1187
           end_time:this.end_time,
1102
           type:2,
1188
           type:2,
1189
+          good_id:this.good_id,
1103
         }
1190
         }
1104
       this.tableOut = []
1191
       this.tableOut = []
1105
       getGoodDetailPrintList(params).then(response=>{
1192
       getGoodDetailPrintList(params).then(response=>{

+ 19 - 9
src/xt_pages/stock/query/purchaseNewStockQuery.vue Parādīt failu

294
                   list[i].stockMoney = (list[i].buy_price * list[i].stockIn).toFixed(2)
294
                   list[i].stockMoney = (list[i].buy_price * list[i].stockIn).toFixed(2)
295
                }else if(this.org_id == 0 || this.org_id == 10644){
295
                }else if(this.org_id == 0 || this.org_id == 10644){
296
                  list[i].stock_in_price = "/"
296
                  list[i].stock_in_price = "/"
297
-                list[i].stockMoney = this.getAllStockInPrice(list[i].StWarehousingInfoTwo) + this.getAllStockInFlowPrice(list[i].WareStartInStockFlow) - this.getAllOutStockInPrice(list[i].WarehouseOutInfoTenty) - this.getAllStockOutFlowPrice(list[i].WareStartOutStockFlow)
297
+                 console.log("val1",this.getAllStockInPrice(list[i].StWarehousingInfoTwo))
298
+                 console.log("val2",this.getAllStockInFlowPrice(list[i].WareStartInStockFlow))
299
+                 console.log("val3",this.getAllOutStockInPrice(list[i].WarehouseOutInfoTenty) )
300
+                 console.log("val4",this.getAllStockOutFlowPrice(list[i].WareStartOutStockFlow))
301
+
302
+                list[i].stockMoney = parseFloat(this.getAllStockInPrice(list[i].StWarehousingInfoTwo))  +parseFloat(this.getAllStockInFlowPrice(list[i].WareStartInStockFlow))  - parseFloat(this.getAllOutStockInPrice(list[i].WarehouseOutInfoTenty))  - parseFloat(this.getAllStockOutFlowPrice(list[i].WareStartOutStockFlow)) 
303
+                if(list[i].stockMoney>0){
304
+                  list[i].stockMoney = list[i].stockMoney.toFixed(2)
305
+                }
306
+                
298
                 
307
                 
299
                }else{
308
                }else{
300
                 list[i].stock_in_price = "/"
309
                 list[i].stock_in_price = "/"
351
                 list[i].overMoney = (list[i].packing_price*list[i].overStock).toFixed(2)
360
                 list[i].overMoney = (list[i].packing_price*list[i].overStock).toFixed(2)
352
               }else if(this.org_id == 0 || this.org_id ==10644){
361
               }else if(this.org_id == 0 || this.org_id ==10644){
353
                 list[i].overPrice = "/"
362
                 list[i].overPrice = "/"
354
-                console.log("stockMoney-00000000000000",list[i].stockMoney)
355
-                console.log("saleStockMoney-00000000000000",list[i].saleStockMoney)
356
-                console.log("saleOutMoney-00000000000000",list[i].saleOutMoney)
363
+                // console.log("stockMoney-00000000000000",list[i].stockMoney)
364
+                // console.log("saleStockMoney-00000000000000",list[i].saleStockMoney)
365
+                // console.log("saleOutMoney-00000000000000",list[i].saleOutMoney)
357
                 list[i].overMoney = (parseFloat(list[i].stockMoney)  + parseFloat(list[i].saleStockMoney) - parseFloat(list[i].saleOutMoney)).toFixed(2)
366
                 list[i].overMoney = (parseFloat(list[i].stockMoney)  + parseFloat(list[i].saleStockMoney) - parseFloat(list[i].saleOutMoney)).toFixed(2)
358
                 // console.log("hahahha",list[i].overMoney)
367
                 // console.log("hahahha",list[i].overMoney)
359
               }else{
368
               }else{
1290
        if(total_price>0){
1299
        if(total_price>0){
1291
         return total_price.toFixed(2)
1300
         return total_price.toFixed(2)
1292
        }else{
1301
        }else{
1293
-        return ""
1302
+        return total_price
1294
        }
1303
        }
1295
       
1304
       
1296
     },
1305
     },
1314
        if(total_price>0){
1323
        if(total_price>0){
1315
         return total_price.toFixed(2)
1324
         return total_price.toFixed(2)
1316
        }else{
1325
        }else{
1317
-        return ""
1326
+        return total_price
1318
        }
1327
        }
1319
        
1328
        
1320
     },
1329
     },
1328
       return count
1337
       return count
1329
     },
1338
     },
1330
     getAllStockInFlowPrice(val){
1339
     getAllStockInFlowPrice(val){
1340
+     
1331
       var total_price = 0
1341
       var total_price = 0
1332
       if(val!=null && val.length>0){
1342
       if(val!=null && val.length>0){
1333
         for(let i=0;i<val.length;i++){
1343
         for(let i=0;i<val.length;i++){
1334
-          total_price+= val[i].count * val[i].total_price
1344
+          total_price+= val[i].count * val[i].price
1335
         }
1345
         }
1336
       }
1346
       }
1337
       if(total_price>0){
1347
       if(total_price>0){
1338
         return total_price.toFixed(2)
1348
         return total_price.toFixed(2)
1339
       }else{
1349
       }else{
1340
-        return ""
1350
+        return total_price
1341
       }
1351
       }
1342
      
1352
      
1343
     },
1353
     },
1360
       if(total_price>0){
1370
       if(total_price>0){
1361
          return total_price.toFixed(2)
1371
          return total_price.toFixed(2)
1362
       }else{
1372
       }else{
1363
-        return ""
1373
+        return total_price
1364
       }
1374
       }
1365
      
1375
      
1366
     },
1376
     },

+ 9 - 6
src/xt_pages/stock/query/purchaseNewStockQueryPrint.vue Parādīt failu

189
                       list[i].stockMoney = (list[i].buy_price * list[i].stockIn).toFixed(2)
189
                       list[i].stockMoney = (list[i].buy_price * list[i].stockIn).toFixed(2)
190
                     }else if(this.org_id == 0 || this.org_id == 10644){
190
                     }else if(this.org_id == 0 || this.org_id == 10644){
191
                       list[i].stock_in_price = "/"
191
                       list[i].stock_in_price = "/"
192
-                      list[i].stockMoney = (this.getAllStockInPrice(list[i].StWarehousingInfoTwo) + this.getAllStockInFlowPrice(list[i].WareStartInStockFlow) - this.getAllOutStockInPrice(list[i].WarehouseOutInfoTenty) - this.getAllStockOutFlowPrice(list[i].WareStartOutStockFlow))
192
+                      list[i].stockMoney = parseFloat(this.getAllStockInPrice(list[i].StWarehousingInfoTwo))  +parseFloat(this.getAllStockInFlowPrice(list[i].WareStartInStockFlow))  - parseFloat(this.getAllOutStockInPrice(list[i].WarehouseOutInfoTenty))  - parseFloat(this.getAllStockOutFlowPrice(list[i].WareStartOutStockFlow)) 
193
+                      if(list[i].stockMoney>0){
194
+                        list[i].stockMoney = list[i].stockMoney.toFixed(2)
195
+                      }
193
                     } else{
196
                     } else{
194
                       list[i].stock_in_price = "/"
197
                       list[i].stock_in_price = "/"
195
                       list[i].stockMoney = "/"
198
                       list[i].stockMoney = "/"
826
        if(total_price>0){
829
        if(total_price>0){
827
         return total_price.toFixed(2)
830
         return total_price.toFixed(2)
828
        }else{
831
        }else{
829
-        return ""
832
+        return total_price
830
        }
833
        }
831
       
834
       
832
     },
835
     },
843
       var total_price = 0
846
       var total_price = 0
844
       if(val!=null && val.length>0){
847
       if(val!=null && val.length>0){
845
         for(let i=0;i<val.length;i++){
848
         for(let i=0;i<val.length;i++){
846
-          total_price+= val[i].count * val[i].total_price
849
+          total_price+= val[i].count * val[i].price
847
         }
850
         }
848
       }
851
       }
849
       if(total_price>0){
852
       if(total_price>0){
850
         return total_price.toFixed(2)
853
         return total_price.toFixed(2)
851
       }else{
854
       }else{
852
-        return ""
855
+        return total_price
853
       }
856
       }
854
       
857
       
855
     },
858
     },
881
        if(total_price>0){
884
        if(total_price>0){
882
         return total_price.toFixed(2)
885
         return total_price.toFixed(2)
883
       }else{
886
       }else{
884
-        return ""
887
+        return total_price
885
       }
888
       }
886
      
889
      
887
     },
890
     },
895
       if(total_price>0){
898
       if(total_price>0){
896
         return total_price.toFixed(2)
899
         return total_price.toFixed(2)
897
       }else{
900
       }else{
898
-        return ""
901
+        return total_price
899
       }
902
       }
900
     
903
     
901
     },
904
     },

+ 1 - 1
src/xt_pages/stock/stockInOrderAdd.vue Parādīt failu

938
         this.currentIndex = val
938
         this.currentIndex = val
939
       },
939
       },
940
       handleSelect(val){
940
       handleSelect(val){
941
-        console.log("al32323232323223",val)
941
+        // console.log("al32323232323223",val)
942
          for(let i=0;i<this.recordInfo.recordData.length;i++){
942
          for(let i=0;i<this.recordInfo.recordData.length;i++){
943
            if(this.currentIndex == i){
943
            if(this.currentIndex == i){
944
               this.recordInfo.recordData[i].id = 0
944
               this.recordInfo.recordData[i].id = 0

+ 87 - 138
src/xt_pages/user/courseOfDisease_new.vue Parādīt failu

32
                 </el-table-column>
32
                 </el-table-column>
33
                 <el-table-column prop="date" label="时间" width="">
33
                 <el-table-column prop="date" label="时间" width="">
34
                   <template slot-scope="scope">
34
                   <template slot-scope="scope">
35
-                      {{ getTime(scope.row.record_time) }}
35
+                      {{ getTimeThree(scope.row.record_time) }}
36
                     </template>
36
                     </template>
37
                 </el-table-column>
37
                 </el-table-column>
38
                 <el-table-column prop="doctor" label="医生">
38
                 <el-table-column prop="doctor" label="医生">
66
                 <el-date-picker v-model="record_date" prefix-icon="el-icon-date" :editable="false"
66
                 <el-date-picker v-model="record_date" prefix-icon="el-icon-date" :editable="false"
67
                               style="width: 250px;"
67
                               style="width: 250px;"
68
                               type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm:ss"
68
                               type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm:ss"
69
-                              value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
69
+                              ></el-date-picker>
70
               </div>
70
               </div>
71
               <div style="flex: 1;">
71
               <div style="flex: 1;">
72
                 病程医生:
72
                 病程医生:
84
               <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;margin-bottom: 5px;">
84
               <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;margin-bottom: 5px;">
85
                 病程内容
85
                 病程内容
86
               </span>
86
               </span>
87
-              <div style="display:flex;">
88
-                <!-- <div>
89
-                  取值时间:
90
-                  <el-select v-model="quzhi_date" @change="datachange" placeholder="请选择" style="width: 120px;">
91
-                    <el-option
92
-                      v-for="item in quzhi_options"
93
-                      :key="item.value"
94
-                      :label="item.label"
95
-                      :value="item.value">
96
-                    </el-option>
97
-                  </el-select>
98
-                </div>
99
-                <div style="margin:0 10px">
100
-                  <el-date-picker
101
-                  @change="changStartDate"
102
-                    v-model="start_date"
103
-                    type="date"
104
-                    value-format="yyyy-MM-dd"
105
-                    placeholder="选择日期"
106
-                    style="width: 150px;">
107
-                  </el-date-picker>
108
-                  <span>-</span>
109
-                  <el-date-picker
110
-                  @change="changEndDate"
111
-                    v-model="end_date"
112
-                    type="date"
113
-                    value-format="yyyy-MM-dd"
114
-                    placeholder="选择日期"
115
-                    style="width: 150px;">
116
-                  </el-date-picker>
117
-                </div> -->
118
-                <!-- <div>
119
-                  <el-button type="primary" size="small" @click="autotext_click">
120
-                    生成
121
-                  </el-button>
122
-                  <el-button type="primary" size="small" @click="auto_dialog=false">
123
-                    取消
124
-                  </el-button>
125
-                </div> -->
126
-              </div>
127
               <div style="margin: 10px 0;">
87
               <div style="margin: 10px 0;">
128
                 <el-button type="primary" size="small" @click="template_click">
88
                 <el-button type="primary" size="small" @click="template_click">
129
                   {{ add_index ==0 ? '设置模板' : '模板库' }}
89
                   {{ add_index ==0 ? '设置模板' : '模板库' }}
162
         </div>
122
         </div>
163
       </div>
123
       </div>
164
 
124
 
165
-
166
       <el-dialog
125
       <el-dialog
167
         title="设置模板"
126
         title="设置模板"
168
         :visible.sync="template_dialog"
127
         :visible.sync="template_dialog"
584
               医嘱类型:
543
               医嘱类型:
585
               <el-select v-model="advice_type" @change="type_chang" placeholder="请选择" style="width: 120px;">
544
               <el-select v-model="advice_type" @change="type_chang" placeholder="请选择" style="width: 120px;">
586
                 <el-option
545
                 <el-option
587
-                
546
+
588
                   v-for="item in type_option"
547
                   v-for="item in type_option"
589
                   :key="item.value"
548
                   :key="item.value"
590
                   :label="item.label"
549
                   :label="item.label"
823
     getPatientAdviceList,
782
     getPatientAdviceList,
824
     getPatientInspectionList,
783
     getPatientInspectionList,
825
     getInspectionByProjectId,
784
     getInspectionByProjectId,
826
-    
785
+
827
   } from '@/api/patient'
786
   } from '@/api/patient'
828
   import { fetchMoibleAllDoctorAndNurse } from "@/api/doctor";
787
   import { fetchMoibleAllDoctorAndNurse } from "@/api/doctor";
829
   import { parseTime } from '@/utils'
788
   import { parseTime } from '@/utils'
1275
         }
1234
         }
1276
       },
1235
       },
1277
       toAdviceContentPint(val){
1236
       toAdviceContentPint(val){
1278
-       
1237
+
1279
         console.log('blood_context',this.blood_context,this.template_content);
1238
         console.log('blood_context',this.blood_context,this.template_content);
1280
         this.template_content = this.template_content +'<br/>'+ this.blood_context+'<br/>'+this.summary_context +'<br/>' +this.advice_context+'<br/>'+this.option_context
1239
         this.template_content = this.template_content +'<br/>'+ this.blood_context+'<br/>'+this.summary_context +'<br/>' +this.advice_context+'<br/>'+this.option_context
1281
         this.$refs.editor.contents = this.template_content
1240
         this.$refs.editor.contents = this.template_content
1282
         const iframe = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('body')[0]
1241
         const iframe = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('body')[0]
1283
-        console.log('document.getElementsByClassName',);
1284
-       
1242
+
1285
             this.$nextTick(()=>{
1243
             this.$nextTick(()=>{
1286
                 const new_list=document.createElement('table')
1244
                 const new_list=document.createElement('table')
1287
                 new_list.style.cssText='border:1px solid black;border-collapse:collapse;width:100%';
1245
                 new_list.style.cssText='border:1px solid black;border-collapse:collapse;width:100%';
1331
                     let new_td8 = document.createElement('td');
1289
                     let new_td8 = document.createElement('td');
1332
                     let new_td9 = document.createElement('td');
1290
                     let new_td9 = document.createElement('td');
1333
                     let new_td10 = document.createElement('td');
1291
                     let new_td10 = document.createElement('td');
1334
-                    new_td1.textContent =this.getTimeThree(this.adviceList[i].start_time) 
1292
+                    new_td1.textContent =this.getTimeThree(this.adviceList[i].start_time)
1335
                     new_td2.textContent =this.adviceList[i].advice_name
1293
                     new_td2.textContent =this.adviceList[i].advice_name
1336
                     new_td3.textContent =this.adviceList[i].advice_desc
1294
                     new_td3.textContent =this.adviceList[i].advice_desc
1337
                     new_td4.textContent =this.adviceList[i].single_dose
1295
                     new_td4.textContent =this.adviceList[i].single_dose
1339
                     new_td6.textContent =this.adviceList[i].execution_frequency
1297
                     new_td6.textContent =this.adviceList[i].execution_frequency
1340
                     new_td7.textContent =this.adviceList[i].remark
1298
                     new_td7.textContent =this.adviceList[i].remark
1341
                     if(this.adviceList[i].advice_type == 1){
1299
                     if(this.adviceList[i].advice_type == 1){
1342
-                      new_td8.textContent =this.getTimeThree(this.adviceList[i].stop_time) 
1300
+                      new_td8.textContent =this.getTimeThree(this.adviceList[i].stop_time)
1343
                     }else{
1301
                     }else{
1344
-                      new_td8.textContent =this.getTimeThree(this.adviceList[i].execution_time) 
1302
+                      new_td8.textContent =this.getTimeThree(this.adviceList[i].execution_time)
1345
                     }
1303
                     }
1346
                     new_td9.textContent =this.adviceList[i].stop_reason
1304
                     new_td9.textContent =this.adviceList[i].stop_reason
1347
-                    new_td10.textContent =this.getDocName(this.adviceList[i].advice_doctor) 
1305
+                    new_td10.textContent =this.getDocName(this.adviceList[i].advice_doctor)
1348
                     newListItem2.appendChild(new_td1);
1306
                     newListItem2.appendChild(new_td1);
1349
                     newListItem2.appendChild(new_td2);
1307
                     newListItem2.appendChild(new_td2);
1350
                     newListItem2.appendChild(new_td3);
1308
                     newListItem2.appendChild(new_td3);
1357
                     newListItem2.appendChild(new_td10);
1315
                     newListItem2.appendChild(new_td10);
1358
                     new_list.appendChild(newListItem2)
1316
                     new_list.appendChild(newListItem2)
1359
                  }
1317
                  }
1360
-               } 
1318
+               }
1361
 
1319
 
1362
                if(this.adviceNewList!=null && this.adviceNewList.length>0 && this.all_select == 1){
1320
                if(this.adviceNewList!=null && this.adviceNewList.length>0 && this.all_select == 1){
1363
                 for(let i in this.adviceNewList){
1321
                 for(let i in this.adviceNewList){
1372
                     let new_td8 = document.createElement('td');
1330
                     let new_td8 = document.createElement('td');
1373
                     let new_td9 = document.createElement('td');
1331
                     let new_td9 = document.createElement('td');
1374
                     let new_td10 = document.createElement('td');
1332
                     let new_td10 = document.createElement('td');
1375
-                    new_td1.textContent =this.getTimeThree(this.adviceNewList[i].start_time) 
1333
+                    new_td1.textContent =this.getTimeThree(this.adviceNewList[i].start_time)
1376
                     new_td2.textContent =this.adviceNewList[i].advice_name
1334
                     new_td2.textContent =this.adviceNewList[i].advice_name
1377
                     new_td3.textContent =this.adviceNewList[i].advice_desc
1335
                     new_td3.textContent =this.adviceNewList[i].advice_desc
1378
                     new_td4.textContent =this.adviceNewList[i].single_dose
1336
                     new_td4.textContent =this.adviceNewList[i].single_dose
1380
                     new_td6.textContent =this.adviceNewList[i].execution_frequency
1338
                     new_td6.textContent =this.adviceNewList[i].execution_frequency
1381
                     new_td7.textContent =this.adviceNewList[i].remark
1339
                     new_td7.textContent =this.adviceNewList[i].remark
1382
                     if(this.adviceNewList[i].advice_type == 1){
1340
                     if(this.adviceNewList[i].advice_type == 1){
1383
-                      new_td8.textContent =this.getTimeThree(this.adviceNewList[i].stop_time) 
1341
+                      new_td8.textContent =this.getTimeThree(this.adviceNewList[i].stop_time)
1384
                     }else{
1342
                     }else{
1385
-                      new_td8.textContent =this.getTimeThree(this.adviceNewList[i].execution_time) 
1343
+                      new_td8.textContent =this.getTimeThree(this.adviceNewList[i].execution_time)
1386
                     }
1344
                     }
1387
                     new_td9.textContent =this.adviceNewList[i].stop_reason
1345
                     new_td9.textContent =this.adviceNewList[i].stop_reason
1388
-                    new_td10.textContent =this.getDocName(this.adviceNewList[i].advice_doctor) 
1346
+                    new_td10.textContent =this.getDocName(this.adviceNewList[i].advice_doctor)
1389
                     newListItem2.appendChild(new_td1);
1347
                     newListItem2.appendChild(new_td1);
1390
                     newListItem2.appendChild(new_td2);
1348
                     newListItem2.appendChild(new_td2);
1391
                     newListItem2.appendChild(new_td3);
1349
                     newListItem2.appendChild(new_td3);
1399
                     new_list.appendChild(newListItem2)
1357
                     new_list.appendChild(newListItem2)
1400
                  }
1358
                  }
1401
                }
1359
                }
1402
-            
1360
+
1403
               const cont = iframe.getElementsByClassName('advice_table')[0]
1361
               const cont = iframe.getElementsByClassName('advice_table')[0]
1404
               cont.appendChild(new_list)
1362
               cont.appendChild(new_list)
1405
               console.log('iframe.appendChild(new_list)',cont);
1363
               console.log('iframe.appendChild(new_list)',cont);
1406
               console.log('this.advice_context',this.advice_context);
1364
               console.log('this.advice_context',this.advice_context);
1407
             })
1365
             })
1408
 
1366
 
1409
-        
1410
         this.advice_dialog = false
1367
         this.advice_dialog = false
1411
       },
1368
       },
1412
       getCurrentChangeOne(val){
1369
       getCurrentChangeOne(val){
1413
         this.$refs.editor.contents = val.content
1370
         this.$refs.editor.contents = val.content
1414
-        this.record_date = this.getTime(val.record_time)
1371
+        this.record_date = this.getTimeThree(val.record_time)
1415
         this.admin_user_id = val.recorder
1372
         this.admin_user_id = val.recorder
1416
         if(this.admin_user_id == 0){
1373
         if(this.admin_user_id == 0){
1417
            this.admin_user_id = ""
1374
            this.admin_user_id = ""
1442
      rowclick(){
1399
      rowclick(){
1443
 
1400
 
1444
       },
1401
       },
1445
-     
1402
+
1446
       saveTemplate(){
1403
       saveTemplate(){
1447
 
1404
 
1448
         var params = {
1405
         var params = {
1517
       showSave(){
1474
       showSave(){
1518
         this.add_index = 0
1475
         this.add_index = 0
1519
         this.disabled = true
1476
         this.disabled = true
1520
-        console.log("haaaaaaaaaaaaaaa",this.$refs)
1521
-
1477
+        console.log("haaaaaaaaaaaaaaa",this.record_date)
1478
+        this.getlist()
1522
         if(this.record_date.length == 0) {
1479
         if(this.record_date.length == 0) {
1523
           this.$message.error('请选择时间')
1480
           this.$message.error('请选择时间')
1524
           return
1481
           return
1536
         var params = {
1493
         var params = {
1537
           id:this.id,
1494
           id:this.id,
1538
           patient_id:this.patient_id,
1495
           patient_id:this.patient_id,
1539
-          record_date:this.record_date,
1496
+          record_date:this.getTimeThree(this.record_date),
1540
           content:this.new_content,
1497
           content:this.new_content,
1541
           admin_user_id:this.admin_user_id,
1498
           admin_user_id:this.admin_user_id,
1542
         }
1499
         }
1551
         }).catch(error => {
1508
         }).catch(error => {
1552
 
1509
 
1553
         })
1510
         })
1511
+        
1554
       },
1512
       },
1555
       template_click(){
1513
       template_click(){
1556
         console.log('this.add_index',this.add_index);
1514
         console.log('this.add_index',this.add_index);
1698
         console.log("start_time==============",params)
1656
         console.log("start_time==============",params)
1699
        getAutoPatientContent(params).then(response=>{
1657
        getAutoPatientContent(params).then(response=>{
1700
           if(response.data.state == 1){
1658
           if(response.data.state == 1){
1701
-
1702
             var prescription =  response.data.data.prescription
1659
             var prescription =  response.data.data.prescription
1703
             this.prescription=[]
1660
             this.prescription=[]
1704
             this.prescription = prescription
1661
             this.prescription = prescription
2245
           kalium = "钾:" + str.replace(/^"(.*)"$/, '$1')+"."+"0"+"mmol/L" + "(" +kaliumStr.split(":")[1]+")"
2202
           kalium = "钾:" + str.replace(/^"(.*)"$/, '$1')+"."+"0"+"mmol/L" + "(" +kaliumStr.split(":")[1]+")"
2246
         }
2203
         }
2247
 
2204
 
2248
-
2249
-
2250
-
2251
           let sodiumObj = {}
2205
           let sodiumObj = {}
2252
           let sodiumStr =""
2206
           let sodiumStr =""
2253
 
2207
 
2351
 
2305
 
2352
           dialysisIrrigationStr =  JSON.stringify(dialysisIrrigationObj).replace(/^{|}$/g, '')
2306
           dialysisIrrigationStr =  JSON.stringify(dialysisIrrigationObj).replace(/^{|}$/g, '')
2353
 
2307
 
2354
-      
2355
-
2356
         //  医嘱
2308
         //  医嘱
2357
         if(this.longAdvice!=null && this.longAdvice.length>0){
2309
         if(this.longAdvice!=null && this.longAdvice.length>0){
2358
             for(let i=0;i<this.longAdvice.length;i++){
2310
             for(let i=0;i<this.longAdvice.length;i++){
2372
             }
2324
             }
2373
         }
2325
         }
2374
 
2326
 
2375
-         
2376
         //抗凝剂
2327
         //抗凝剂
2377
 
2328
 
2378
         var anticoagulant_str =""
2329
         var anticoagulant_str =""
2379
         if(this.groupPrescriptionList!=null && this.groupPrescriptionList.length>0){
2330
         if(this.groupPrescriptionList!=null && this.groupPrescriptionList.length>0){
2380
-           
2331
+
2381
             for(let i=0;i<this.groupPrescriptionList.length;i++){
2332
             for(let i=0;i<this.groupPrescriptionList.length;i++){
2382
                anticoagulant_str += this.getAnticoagulantName(this.groupPrescriptionList[i].anticoagulant) +"," + "剂量:" +this.groupPrescriptionList[i].MinZongLiang +this.getAnticoagulantUnit(this.groupPrescriptionList[i].anticoagulant)+ "~" +this.groupPrescriptionList[i].MaxZongLiang + this.getAnticoagulantUnit(this.groupPrescriptionList[i].anticoagulant)
2333
                anticoagulant_str += this.getAnticoagulantName(this.groupPrescriptionList[i].anticoagulant) +"," + "剂量:" +this.groupPrescriptionList[i].MinZongLiang +this.getAnticoagulantUnit(this.groupPrescriptionList[i].anticoagulant)+ "~" +this.groupPrescriptionList[i].MaxZongLiang + this.getAnticoagulantUnit(this.groupPrescriptionList[i].anticoagulant)
2383
             }
2334
             }
2394
              cha_weight += this.berforList[i].weight_before - this.berforList[i].WeightAfter
2345
              cha_weight += this.berforList[i].weight_before - this.berforList[i].WeightAfter
2395
           }
2346
           }
2396
         }
2347
         }
2397
-        
2348
+
2398
         pingjun_weight = (cha_weight/befor_total).toFixed(2)
2349
         pingjun_weight = (cha_weight/befor_total).toFixed(2)
2399
-       
2350
+
2400
         //透后凝血
2351
         //透后凝血
2401
         var cruorNewArr = []
2352
         var cruorNewArr = []
2402
         if(this.afterList!=null && this.afterList.length>0){
2353
         if(this.afterList!=null && this.afterList.length>0){
2404
             cruorNewArr.push(this.afterList[i].cruor)
2355
             cruorNewArr.push(this.afterList[i].cruor)
2405
            }
2356
            }
2406
         }
2357
         }
2407
-      
2358
+
2408
        let dialysisCrruorObj = {}
2359
        let dialysisCrruorObj = {}
2409
         let dialysisCrruorStr = ""
2360
         let dialysisCrruorStr = ""
2410
         if(cruorNewArr!=null && cruorNewArr.length>0){
2361
         if(cruorNewArr!=null && cruorNewArr.length>0){
2412
             dialysisCrruorObj[item] = (dialysisCrruorObj[item] + 1) || 1
2363
             dialysisCrruorObj[item] = (dialysisCrruorObj[item] + 1) || 1
2413
             })
2364
             })
2414
           }
2365
           }
2415
-      
2366
+
2416
 
2367
 
2417
         dialysisCrruorStr =  JSON.stringify(dialysisCrruorObj).replace(/^{|}$/g, '')
2368
         dialysisCrruorStr =  JSON.stringify(dialysisCrruorObj).replace(/^{|}$/g, '')
2418
-       
2369
+
2419
         //监测
2370
         //监测
2420
         var blood_flow_volume_total = 0
2371
         var blood_flow_volume_total = 0
2421
         var ultrafiltration_volume_total = 0
2372
         var ultrafiltration_volume_total = 0
2441
           pingjun_ultrafiltration_volume_total = ""
2392
           pingjun_ultrafiltration_volume_total = ""
2442
         }
2393
         }
2443
         pingjun_ultrafiltration_rate_total = (ultrafiltration_rate_total/total_length).toFixed(2)
2394
         pingjun_ultrafiltration_rate_total = (ultrafiltration_rate_total/total_length).toFixed(2)
2444
-        if(pingjun_ultrafiltration_rate_total == "NaN"){ 
2395
+        if(pingjun_ultrafiltration_rate_total == "NaN"){
2445
           pingjun_ultrafiltration_rate_total = ""
2396
           pingjun_ultrafiltration_rate_total = ""
2446
         }
2397
         }
2447
         var dry_weight_str = ""
2398
         var dry_weight_str = ""
2450
            for(let i=0;i<this.dryweightList.length;i++){
2401
            for(let i=0;i<this.dryweightList.length;i++){
2451
             dry_weight_str =  this.getTimeOne(this.dryweightList[i].ctime)+" " +this.dryweightList[i].adjusted_value.slice(4,6)+ this.dryweightList[i].adjusted_value.slice(0,3)+"kg" + "调整到" +" "+ this.dryweightList[i].dry_weight+"kg"+","
2402
             dry_weight_str =  this.getTimeOne(this.dryweightList[i].ctime)+" " +this.dryweightList[i].adjusted_value.slice(4,6)+ this.dryweightList[i].adjusted_value.slice(0,3)+"kg" + "调整到" +" "+ this.dryweightList[i].dry_weight+"kg"+","
2452
            }
2403
            }
2453
-        } 
2404
+        }
2454
 
2405
 
2455
         //血管通路
2406
         //血管通路
2456
         var vascularAccess_str = ""
2407
         var vascularAccess_str = ""
2457
         var created_time = ""
2408
         var created_time = ""
2458
-      
2409
+
2459
         if(this.patientVascularAccess!=undefined){
2410
         if(this.patientVascularAccess!=undefined){
2460
           vascularAccess_str  = this.patientVascularAccess.blood_access_part_id + this.patientVascularAccess.blood_access_part_opera_id
2411
           vascularAccess_str  = this.patientVascularAccess.blood_access_part_id + this.patientVascularAccess.blood_access_part_opera_id
2461
           created_time  = this.getTime(this.patientVascularAccess.first_start_time)
2412
           created_time  = this.getTime(this.patientVascularAccess.first_start_time)
2670
                 jiancDoc.appendChild(newList)
2621
                 jiancDoc.appendChild(newList)
2671
             for(let i in this.Inspect){
2622
             for(let i in this.Inspect){
2672
               let newList1 = document.createElement('p');
2623
               let newList1 = document.createElement('p');
2673
-              const child1 = document.createElement('p')
2674
-              const child2 = document.createElement('p')
2675
-              const child3 = document.createElement('p')
2624
+              const child1 = document.createElement('span')
2625
+              const child2 = document.createElement('span')
2676
               newList1.appendChild(child1);
2626
               newList1.appendChild(child1);
2677
               newList1.appendChild(child2);
2627
               newList1.appendChild(child2);
2678
-              newList1.appendChild(child3);
2679
               newList1.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
2628
               newList1.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
2680
               child1.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;'
2629
               child1.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;'
2681
-              child2.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;flex-wrap: wrap;'
2682
-              child3.style.cssText= 'width: 40%;display: inline-block;display: flex;flex-wrap: wrap;'
2630
+              child2.style.cssText= 'width: 80%;display: inline-block;display: flex;flex-wrap: wrap;'
2631
+              // child3.style.cssText= 'width: 40%;display: inline-block;display: flex;flex-wrap: wrap;'
2683
 
2632
 
2684
               let newListItem1 = document.createElement('span');
2633
               let newListItem1 = document.createElement('span');
2685
               newListItem1.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
2634
               newListItem1.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
2691
               child1.appendChild(newListItem2);
2640
               child1.appendChild(newListItem2);
2692
               for(let j in this.Inspect[i].left){
2641
               for(let j in this.Inspect[i].left){
2693
                 let newListItem3 = document.createElement('span');
2642
                 let newListItem3 = document.createElement('span');
2694
-                newListItem3.style.cssText= 'border-bottom: 1px solid black;width:50%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
2643
+                newListItem3.style.cssText= 'border-bottom: 1px solid black;width:25%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
2695
                 let newListItem4 = document.createElement('span');
2644
                 let newListItem4 = document.createElement('span');
2696
-                newListItem4.style.cssText= 'border-bottom: 1px solid black;width:50%;display: inline-block;padding: 5px 0;'
2645
+                newListItem4.style.cssText= 'border-bottom: 1px solid black;width:25%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
2697
                 newListItem3.textContent = this.Inspect[i].left[j].item_name;
2646
                 newListItem3.textContent = this.Inspect[i].left[j].item_name;
2698
                 newListItem4.textContent = this.Inspect[i].left[j].inspect_value;
2647
                 newListItem4.textContent = this.Inspect[i].left[j].inspect_value;
2699
                 child2.appendChild(newListItem3);
2648
                 child2.appendChild(newListItem3);
2701
               }
2650
               }
2702
               for(let x in this.Inspect[i].right){
2651
               for(let x in this.Inspect[i].right){
2703
                 let newListItem5 = document.createElement('span');
2652
                 let newListItem5 = document.createElement('span');
2704
-                newListItem5.style.cssText= 'width: 50%;display: inline-block;padding: 5px 0;border-right: 1px solid black;border-bottom: 1px solid black;'
2653
+                newListItem5.style.cssText= 'width: 25%;display: inline-block;padding: 5px 0;border-right: 1px solid black;border-bottom: 1px solid black;'
2705
                 let newListItem6 = document.createElement('span');
2654
                 let newListItem6 = document.createElement('span');
2706
-                newListItem6.style.cssText= 'width: 50%;display: inline-block;padding: 5px 0;border-bottom: 1px solid black;'
2655
+                newListItem6.style.cssText= 'width: 25%;display: inline-block;padding: 5px 0;border-bottom: 1px solid black;border-right: 1px solid black;'
2707
                 newListItem5.textContent = this.Inspect[i].right[x].item_name;
2656
                 newListItem5.textContent = this.Inspect[i].right[x].item_name;
2708
                 newListItem6.textContent = this.Inspect[i].right[x].inspect_value;
2657
                 newListItem6.textContent = this.Inspect[i].right[x].inspect_value;
2709
-                child3.appendChild(newListItem5);
2710
-                child3.appendChild(newListItem6);
2658
+                child2.appendChild(newListItem5);
2659
+                child2.appendChild(newListItem6);
2660
+
2711
               }
2661
               }
2712
               jiancDoc.appendChild(newList1)
2662
               jiancDoc.appendChild(newList1)
2713
             }
2663
             }
2798
                   jiancDoc1.appendChild(newList)
2748
                   jiancDoc1.appendChild(newList)
2799
               for(let i in this.Inspect){
2749
               for(let i in this.Inspect){
2800
                 let newList1 = document.createElement('p');
2750
                 let newList1 = document.createElement('p');
2801
-                const child1 = document.createElement('p')
2802
-                const child2 = document.createElement('p')
2803
-                const child3 = document.createElement('p')
2751
+                const child1 = document.createElement('span')
2752
+                const child2 = document.createElement('span')
2753
+                // const child3 = document.createElement('span')
2804
                 newList1.appendChild(child1);
2754
                 newList1.appendChild(child1);
2805
                 newList1.appendChild(child2);
2755
                 newList1.appendChild(child2);
2806
-                newList1.appendChild(child3);
2756
+                // newList1.appendChild(child3);
2807
                 newList1.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
2757
                 newList1.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
2808
                 child1.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;'
2758
                 child1.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;'
2809
-                child2.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;flex-wrap: wrap;'
2810
-                child3.style.cssText= 'width: 40%;display: inline-block;display: flex;flex-wrap: wrap;'
2759
+                child2.style.cssText= 'width: 80%;display: inline-block;display: flex;flex-wrap: wrap;'
2811
 
2760
 
2812
                 let newListItem1 = document.createElement('span');
2761
                 let newListItem1 = document.createElement('span');
2813
                 newListItem1.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
2762
                 newListItem1.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
2819
                 child1.appendChild(newListItem2);
2768
                 child1.appendChild(newListItem2);
2820
                 for(let j in this.Inspect[i].left){
2769
                 for(let j in this.Inspect[i].left){
2821
                   let newListItem3 = document.createElement('span');
2770
                   let newListItem3 = document.createElement('span');
2822
-                  newListItem3.style.cssText= 'border-bottom: 1px solid black;width:50%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
2771
+                  newListItem3.style.cssText= 'border-bottom: 1px solid black;width:25%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
2823
                   let newListItem4 = document.createElement('span');
2772
                   let newListItem4 = document.createElement('span');
2824
-                  newListItem4.style.cssText= 'border-bottom: 1px solid black;width:50%;box-sizing: border-box;display: inline-block;padding: 5px 0;'
2773
+                  newListItem4.style.cssText= 'border-bottom: 1px solid black;width:25%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
2825
                   newListItem3.textContent = this.Inspect[i].left[j].item_name;
2774
                   newListItem3.textContent = this.Inspect[i].left[j].item_name;
2826
                   newListItem4.textContent = this.Inspect[i].left[j].inspect_value;
2775
                   newListItem4.textContent = this.Inspect[i].left[j].inspect_value;
2827
                   child2.appendChild(newListItem3);
2776
                   child2.appendChild(newListItem3);
2829
                 }
2778
                 }
2830
                 for(let x in this.Inspect[i].right){
2779
                 for(let x in this.Inspect[i].right){
2831
                   let newListItem5 = document.createElement('span');
2780
                   let newListItem5 = document.createElement('span');
2832
-                  newListItem5.style.cssText= 'width: 50%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-right: 1px solid black;border-bottom: 1px solid black;'
2781
+                  newListItem5.style.cssText= 'width: 25%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-right: 1px solid black;border-bottom: 1px solid black;'
2833
                   let newListItem6 = document.createElement('span');
2782
                   let newListItem6 = document.createElement('span');
2834
-                  newListItem6.style.cssText= 'width: 50%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-bottom: 1px solid black;'
2783
+                  newListItem6.style.cssText= 'width: 25%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-bottom: 1px solid black;border-right: 1px solid black;'
2835
                   newListItem5.textContent = this.Inspect[i].right[x].item_name;
2784
                   newListItem5.textContent = this.Inspect[i].right[x].item_name;
2836
                   newListItem6.textContent = this.Inspect[i].right[x].inspect_value;
2785
                   newListItem6.textContent = this.Inspect[i].right[x].inspect_value;
2837
-                  child3.appendChild(newListItem5);
2838
-                  child3.appendChild(newListItem6);
2786
+                  child2.appendChild(newListItem5);
2787
+                  child2.appendChild(newListItem6);
2839
                 }
2788
                 }
2840
                 jiancDoc1.appendChild(newList1)
2789
                 jiancDoc1.appendChild(newList1)
2841
               }
2790
               }
2884
           }
2833
           }
2885
         })
2834
         })
2886
          this.AuToShow = true
2835
          this.AuToShow = true
2887
-      
2836
+
2888
        }
2837
        }
2889
        })
2838
        })
2890
       },
2839
       },
3315
 
3264
 
3316
       },
3265
       },
3317
       showEdit() {
3266
       showEdit() {
3318
-
3319
         this.add_index =1
3267
         this.add_index =1
3320
         this.disabled = false
3268
         this.disabled = false
3321
-
3269
+        console.log('时间',this.record_date);
3270
+        
3322
       }, tableRow({ row, rowIndex }) {
3271
       }, tableRow({ row, rowIndex }) {
3323
         // 把每一行的索引放进row
3272
         // 把每一行的索引放进row
3324
         row.index = rowIndex
3273
         row.index = rowIndex
3447
         console.log('血压',this.bloodRows);
3396
         console.log('血压',this.bloodRows);
3448
       },
3397
       },
3449
       selectionchange2(val){
3398
       selectionchange2(val){
3450
-       
3399
+
3451
         this.summaryRows = val
3400
         this.summaryRows = val
3452
         this.summary_context=""
3401
         this.summary_context=""
3453
         if(val!=null){
3402
         if(val!=null){
3469
         console.log('透析小结',this.weightRows);
3418
         console.log('透析小结',this.weightRows);
3470
       },
3419
       },
3471
       selectionchange4(val){
3420
       selectionchange4(val){
3472
-        
3421
+
3473
         this.optionRows = val
3422
         this.optionRows = val
3474
         this.getoption(val)
3423
         this.getoption(val)
3475
         console.log('透析小结',this.weightRows);
3424
         console.log('透析小结',this.weightRows);
3476
       },
3425
       },
3477
       selectionchange5(val){
3426
       selectionchange5(val){
3478
-       
3427
+
3479
         this.adviceRows = val
3428
         this.adviceRows = val
3480
         this.getNewPatientAdviceList(val)
3429
         this.getNewPatientAdviceList(val)
3481
       },
3430
       },
3514
         this.weight_context = `${arr.join('<br/>')}`
3463
         this.weight_context = `${arr.join('<br/>')}`
3515
       },
3464
       },
3516
       getoption(val){
3465
       getoption(val){
3517
-       
3466
+
3518
         var newArr = []
3467
         var newArr = []
3519
         for(let i=0;i<this.systemPrescritpionList.length;i++){
3468
         for(let i=0;i<this.systemPrescritpionList.length;i++){
3520
           for(let j=0;j<val.length;j++){
3469
           for(let j=0;j<val.length;j++){
3522
               newArr.push(this.systemPrescritpionList[i])
3471
               newArr.push(this.systemPrescritpionList[i])
3523
             }
3472
             }
3524
           }
3473
           }
3525
-         
3474
+
3526
         }
3475
         }
3527
         const arr= []
3476
         const arr= []
3528
-       
3477
+
3529
         if(newArr.length>0){
3478
         if(newArr.length>0){
3530
           for(let i=0;i<newArr.length;i++){
3479
           for(let i=0;i<newArr.length;i++){
3531
             const text = `<table border="1" style="border-collapse: collapse;width: 100%;">
3480
             const text = `<table border="1" style="border-collapse: collapse;width: 100%;">
3593
         })
3542
         })
3594
       },
3543
       },
3595
       option_click(val){
3544
       option_click(val){
3596
-   
3545
+
3597
         this.option_dialog =true
3546
         this.option_dialog =true
3598
         // this.start_date1 = this.timeForMat(7)
3547
         // this.start_date1 = this.timeForMat(7)
3599
         // this.end_date1 = this.getTime(new Date())
3548
         // this.end_date1 = this.getTime(new Date())
3620
       hospital_click(){
3569
       hospital_click(){
3621
         const text = `<p style="line-height: 50px;display: flex;"><span style="display: inline-block;flex: 1;">住院日期:</span><span style="display: inline-block;flex: 1;">出院日期:</span></p>
3570
         const text = `<p style="line-height: 50px;display: flex;"><span style="display: inline-block;flex: 1;">住院日期:</span><span style="display: inline-block;flex: 1;">出院日期:</span></p>
3622
     <p style="line-height: 50px;display: flex;"><span style="display: inline-block;flex: 1;">入院诊断:</span><span style="display: inline-block;flex: 1;">出院诊断:</span></p>`
3571
     <p style="line-height: 50px;display: flex;"><span style="display: inline-block;flex: 1;">入院诊断:</span><span style="display: inline-block;flex: 1;">出院诊断:</span></p>`
3623
-       
3572
+
3624
         this.$refs.editor.contents =  this.$refs.editor.contents + text
3573
         this.$refs.editor.contents =  this.$refs.editor.contents + text
3625
       },
3574
       },
3626
       Inspect_click(){
3575
       Inspect_click(){
3635
 
3584
 
3636
       },
3585
       },
3637
       childclick(i){
3586
       childclick(i){
3638
-      
3587
+
3639
           var params = {
3588
           var params = {
3640
             patient_id:i.patient_id,
3589
             patient_id:i.patient_id,
3641
             project_id:i.project_id,
3590
             project_id:i.project_id,
3651
                 if(inspection[i].inspect_value!=""){
3600
                 if(inspection[i].inspect_value!=""){
3652
                   inspection_str += inspection[i].item_name+":" + inspection[i].inspect_value+","
3601
                   inspection_str += inspection[i].item_name+":" + inspection[i].inspect_value+","
3653
                 }
3602
                 }
3654
-               
3603
+
3655
               }
3604
               }
3656
             }
3605
             }
3657
             this.inspect_context = inspection_str
3606
             this.inspect_context = inspection_str
3658
-            
3607
+
3659
           }
3608
           }
3660
         })
3609
         })
3661
         // // const inspect_arr = []
3610
         // // const inspect_arr = []
3771
            if(response.data.state == 1){
3720
            if(response.data.state == 1){
3772
               this.systemPrescritpionList = []
3721
               this.systemPrescritpionList = []
3773
               var systemPrescritpionList =  response.data.data.prescription
3722
               var systemPrescritpionList =  response.data.data.prescription
3774
-              
3723
+
3775
               if(systemPrescritpionList!=null && systemPrescritpionList.length>0){
3724
               if(systemPrescritpionList!=null && systemPrescritpionList.length>0){
3776
                  for(let i=0;i<systemPrescritpionList.length;i++){
3725
                  for(let i=0;i<systemPrescritpionList.length;i++){
3777
                    systemPrescritpionList[i].mode_name = ""
3726
                    systemPrescritpionList[i].mode_name = ""
3797
         return name
3746
         return name
3798
       },
3747
       },
3799
       getPatientAdviceList(){
3748
       getPatientAdviceList(){
3800
-        var ids = this.newIds.join()  
3749
+        var ids = this.newIds.join()
3801
         var params = {
3750
         var params = {
3802
           start_time:this.start_date1,
3751
           start_time:this.start_date1,
3803
           end_time:this.end_date1,
3752
           end_time:this.end_date1,
3814
         })
3763
         })
3815
       },
3764
       },
3816
       getNewPatientAdviceList(val){
3765
       getNewPatientAdviceList(val){
3817
-        
3766
+
3818
          var newArr= []
3767
          var newArr= []
3819
          for(let i=0;i<val.length;i++){
3768
          for(let i=0;i<val.length;i++){
3820
            for(let j=0;j<this.adviceList.length;j++){
3769
            for(let j=0;j<this.adviceList.length;j++){
3823
              }
3772
              }
3824
            }
3773
            }
3825
          }
3774
          }
3826
-         
3827
-         
3775
+
3776
+
3828
          this.adviceNewList = []
3777
          this.adviceNewList = []
3829
          this.adviceNewList = newArr
3778
          this.adviceNewList = newArr
3830
          this.all_select = 1
3779
          this.all_select = 1
3859
           }
3808
           }
3860
         getPatientInspectionList(params).then(response=>{
3809
         getPatientInspectionList(params).then(response=>{
3861
            if(response.data.state == 1){
3810
            if(response.data.state == 1){
3862
-             
3811
+
3863
              var groupList = response.data.data.groupList
3812
              var groupList = response.data.data.groupList
3864
              var inspection = response.data.data.inspection
3813
              var inspection = response.data.data.inspection
3865
              this.inspectionList = inspection
3814
              this.inspectionList = inspection
3866
-            
3815
+
3867
              if(groupList.length!=null && groupList.length>0){
3816
              if(groupList.length!=null && groupList.length>0){
3868
                 for(let i=0;i<groupList.length;i++){
3817
                 for(let i=0;i<groupList.length;i++){
3869
                   groupList[i].child = []
3818
                   groupList[i].child = []
3874
                   }
3823
                   }
3875
                 }
3824
                 }
3876
              }
3825
              }
3877
-        
3826
+
3878
              for(let i=0;i<groupList.length;i++){
3827
              for(let i=0;i<groupList.length;i++){
3879
                for(let j=0;j<groupList[i].child.length;j++){
3828
                for(let j=0;j<groupList[i].child.length;j++){
3880
-                  groupList[i].child =this.getInspection(groupList[i].child) 
3829
+                  groupList[i].child =this.getInspection(groupList[i].child)
3881
                }
3830
                }
3882
              }
3831
              }
3883
-      
3884
-             this.newInspectionList = groupList 
3885
-          
3832
+
3833
+             this.newInspectionList = groupList
3834
+
3886
            }
3835
            }
3887
         })
3836
         })
3888
       },
3837
       },
3899
           return tempArr;
3848
           return tempArr;
3900
       },
3849
       },
3901
       changeInspetion(){
3850
       changeInspetion(){
3902
-      
3851
+
3903
         for(let i=0;i<this.newInspectionList.length;i++){
3852
         for(let i=0;i<this.newInspectionList.length;i++){
3904
            this.newInspectionList[i].childOne =[]
3853
            this.newInspectionList[i].childOne =[]
3905
           for(let j=0;j<this.inspectionList.length;j++){
3854
           for(let j=0;j<this.inspectionList.length;j++){
3908
             }
3857
             }
3909
           }
3858
           }
3910
         }
3859
         }
3911
-       
3860
+
3912
          var new_inspection_str =""
3861
          var new_inspection_str =""
3913
         if(this.newInspectionList!=null&& this.newInspectionList.length>0){
3862
         if(this.newInspectionList!=null&& this.newInspectionList.length>0){
3914
            for(let i=0;i<this.newInspectionList.length;i++){
3863
            for(let i=0;i<this.newInspectionList.length;i++){
3918
                 if(this.newInspectionList[i].childOne[j].inspect_value!=""){
3867
                 if(this.newInspectionList[i].childOne[j].inspect_value!=""){
3919
                   new_inspection_str+= this.newInspectionList[i].childOne[j].item_name+":" + this.newInspectionList[i].childOne[j].inspect_value+","+" "
3868
                   new_inspection_str+= this.newInspectionList[i].childOne[j].item_name+":" + this.newInspectionList[i].childOne[j].inspect_value+","+" "
3920
                 }
3869
                 }
3921
-                
3870
+
3922
               }
3871
               }
3923
             }
3872
             }
3924
-              
3925
-           } 
3873
+
3874
+           }
3926
         }
3875
         }
3927
          this.inspect_context = new_inspection_str
3876
          this.inspect_context = new_inspection_str
3928
       },
3877
       },
3929
       toSystemContentPint(){
3878
       toSystemContentPint(){
3930
-       
3879
+
3931
         this.$refs.editor.contents = this.$refs.editor.contents +this.option_context
3880
         this.$refs.editor.contents = this.$refs.editor.contents +this.option_context
3932
         this.option_dialog = false
3881
         this.option_dialog = false
3933
       },
3882
       },
3934
-    
3883
+
3935
 
3884
 
3936
     },
3885
     },
3937
     beforeMount(){
3886
     beforeMount(){
3940
     mounted(){
3889
     mounted(){
3941
 
3890
 
3942
     },
3891
     },
3943
-  
3892
+
3944
 
3893
 
3945
   }
3894
   }
3946
 </script>
3895
 </script>

+ 1 - 1
src/xt_pages/user/deathSummary.vue Parādīt failu

238
             {id:2,name:"心血管"},
238
             {id:2,name:"心血管"},
239
             {id:3,name:"感染"},
239
             {id:3,name:"感染"},
240
             {id:4,name:"营养不良"},
240
             {id:4,name:"营养不良"},
241
-            {id:5,name:"全衰竭"},
241
+            {id:5,name:"全衰竭"},
242
             {id:6,name:"肿瘤"},
242
             {id:6,name:"肿瘤"},
243
             {id:7,name:"出血"},
243
             {id:7,name:"出血"},
244
             {id:8,name:"呼吸衰竭"},
244
             {id:8,name:"呼吸衰竭"},

+ 1 - 0
src/xt_pages/user/patient.vue Parādīt failu

98
         <el-table-column type="index" label="序号" width="60px" align="center"></el-table-column>
98
         <el-table-column type="index" label="序号" width="60px" align="center"></el-table-column>
99
         <el-table-column  label="透析号" min-width="80" property="dialysis_no" align="center"></el-table-column>
99
         <el-table-column  label="透析号" min-width="80" property="dialysis_no" align="center"></el-table-column>
100
         <el-table-column  label="住院号" min-width="80"  property="admission_number" align="center"> </el-table-column>
100
         <el-table-column  label="住院号" min-width="80"  property="admission_number" align="center"> </el-table-column>
101
+        
101
         <el-table-column property="name" label="姓名" min-width="80" align="center">
102
         <el-table-column property="name" label="姓名" min-width="80" align="center">
102
           <template slot-scope="scope" >
103
           <template slot-scope="scope" >
103
             <router-link :to="'/patients/edit/'+scope.row.id" style="color:#409eff;width:100%;display:block;" >{{scope.row.name}}</router-link>
104
             <router-link :to="'/patients/edit/'+scope.row.id" style="color:#409eff;width:100%;display:block;" >{{scope.row.name}}</router-link>

+ 31 - 0
src/xt_pages/user/patients.vue Parādīt failu

416
           align="center"
416
           align="center"
417
         >
417
         >
418
         </el-table-column>
418
         </el-table-column>
419
+        <el-table-column
420
+          label="年龄"
421
+          min-width="70"
422
+          property="age"
423
+          align="center"
424
+        >
425
+        </el-table-column>
419
         <el-table-column
426
         <el-table-column
420
           property="name"
427
           property="name"
421
           label="姓名"
428
           label="姓名"
1651
             return false
1658
             return false
1652
           } else {
1659
           } else {
1653
             this.tableData = response.data.data.patients
1660
             this.tableData = response.data.data.patients
1661
+            for(let i=0;i<this.tableData.length;i++){
1662
+              this.tableData[i].age = this.getAge(this.tableData[i])
1663
+            }
1654
             console.log("wowowowo",this.tableData)
1664
             console.log("wowowowo",this.tableData)
1655
             console.log('2222222',response.data.data)
1665
             console.log('2222222',response.data.data)
1656
             this.pageTotal = this.tableData.length
1666
             this.pageTotal = this.tableData.length
1659
           }
1669
           }
1660
         })
1670
         })
1661
       },
1671
       },
1672
+      getAge: function(val) {
1673
+          if (val.id_card_no == undefined) {
1674
+            return false
1675
+          }
1676
+          var thisLen = val.id_card_no.length
1677
+          var birth = ''
1678
+          if (thisLen == 15) {
1679
+            birth = '19' + val.id_card_no.substr(6, 6)
1680
+          } else {
1681
+            birth = val.id_card_no.substr(6, 8)
1682
+          }
1683
+          var birthtwo =
1684
+            birth.substr(0, 4) +
1685
+            '-' +
1686
+            birth.substr(4, 2) +
1687
+            '-' +
1688
+            birth.substr(6, 2)
1689
+
1690
+          var age = jsGetAge(birthtwo, '-')
1691
+          return age
1692
+      },
1662
 
1693
 
1663
       OpenView(name, number, id) {
1694
       OpenView(name, number, id) {
1664
         this.name = name
1695
         this.name = name

+ 4 - 3
src/xt_pages/user/physiqueprinting.vue Parādīt failu

60
             <div style="flex: 1;">家庭住址:{{ patient.home_address }}</div>
60
             <div style="flex: 1;">家庭住址:{{ patient.home_address }}</div>
61
           </div>
61
           </div>
62
           <div style="display: flex; justify-self: start; margin-top: 5px ;width: 100%;">
62
           <div style="display: flex; justify-self: start; margin-top: 5px ;width: 100%;">
63
-            <div style="flex: 1;">肾移植史:{{ item.is_shenyizhi_history == 0?'无':'有' }}</div>
64
-            <div style="flex: 1;">腹膜透析史:{{ item.is_fumo_dialysis_history == 0? '无':'有' }}</div>
63
+            <div style="flex: 1;">肾移植史:{{ item.is_shenyizhi_history == 1?'无':'有' }}</div>
64
+            <div style="flex: 1;">腹膜透析史:{{ item.is_fumo_dialysis_history == 1? '无':'有' }}</div>
65
             <div style="flex: 1;" v-if="item.is_hypersusceptibility == 0">过敏药物:无</div>
65
             <div style="flex: 1;" v-if="item.is_hypersusceptibility == 0">过敏药物:无</div>
66
             <div style="flex: 1;" v-if="item.is_hypersusceptibility == 2">过敏药物:有</div>
66
             <div style="flex: 1;" v-if="item.is_hypersusceptibility == 2">过敏药物:有</div>
67
             <div style="flex: 1;" v-if="item.is_hypersusceptibility == 3">过敏药物:不想</div>
67
             <div style="flex: 1;" v-if="item.is_hypersusceptibility == 3">过敏药物:不想</div>
677
         if (response.data.state == 1) {
677
         if (response.data.state == 1) {
678
           this.patient = response.data.data.patient
678
           this.patient = response.data.data.patient
679
           this.diagnosis = this.patient.diagnose.split(',')
679
           this.diagnosis = this.patient.diagnose.split(',')
680
-          console.log('ttttttt',this.diagnosis);
680
+          
681
           this.list = response.data.data.sickhistorys
681
           this.list = response.data.data.sickhistorys
682
+          console.log('ttttttt',response.data.data);
682
         }
683
         }
683
       })
684
       })
684
     },
685
     },

+ 1 - 2
src/xt_pages/user/sickHistory_new.vue Parādīt failu

522
       if(this.add_index ==0){
522
       if(this.add_index ==0){
523
         this.template_dialog = true
523
         this.template_dialog = true
524
       }else{
524
       }else{
525
-        const mode=`<p style="font-size: 18px;font-weight: 600;width:100%;margin-bottom: 10px;text-align: center;">血液净化治疗患者首次门诊病历</p>
526
-        <table border="1" style="border-collapse: collapse;text-align: center;">
525
+        const mode=`<table border="1" style="border-collapse: collapse;text-align: center;">
527
       <tbody>
526
       <tbody>
528
         <tr>
527
         <tr>
529
           <td style="width:8%;padding: 5px 0px;font-size: 16px;">
528
           <td style="width:8%;padding: 5px 0px;font-size: 16px;">

+ 23 - 23
src/xt_pages/workforce/scheduleTablePrintTwo.vue Parādīt failu

295
             </template>
295
             </template>
296
 
296
 
297
             <!-- 未选择 -->
297
             <!-- 未选择 -->
298
-            <template v-if="schedule_type == 0 && org_id != 10721 && org_id != 0">
298
+            <template v-if="schedule_type == 0 && org_id != 10721 ">
299
               <td style="min-width:50px;" v-if="first_day == 1">
299
               <td style="min-width:50px;" v-if="first_day == 1">
300
                 <span v-if="item.Mon_M.patient_id">
300
                 <span v-if="item.Mon_M.patient_id">
301
-                  <span>{{ item.Mon_M.patient }}</span><br />
301
+                  <span>{{ item.Mon_M.patient }}</span>
302
                   <span v-if="item.Mon_M.mode_id != 1">{{ item.Mon_M.mode_name }}</span><br />
302
                   <span v-if="item.Mon_M.mode_id != 1">{{ item.Mon_M.mode_name }}</span><br />
303
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Mon_M.anticoagulant) }}</span>
303
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Mon_M.anticoagulant) }}</span>
304
                   <span v-show="showflag">{{ item.Mon_M.dialysis_machine_name }}
304
                   <span v-show="showflag">{{ item.Mon_M.dialysis_machine_name }}
307
               </td>
307
               </td>
308
               <td style="min-width:50px;" v-if="first_day == 1">
308
               <td style="min-width:50px;" v-if="first_day == 1">
309
                 <span v-if="item.Mon_A.patient_id">
309
                 <span v-if="item.Mon_A.patient_id">
310
-                  <span>{{ item.Mon_A.patient }} </span><br />
310
+                  <span>{{ item.Mon_A.patient }} </span>
311
                   <span v-if="item.Mon_A.mode_id != 1">{{ item.Mon_A.mode_name }}</span><br />
311
                   <span v-if="item.Mon_A.mode_id != 1">{{ item.Mon_A.mode_name }}</span><br />
312
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Mon_A.anticoagulant) }}</span>
312
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Mon_A.anticoagulant) }}</span>
313
                   <span v-show="showflag">{{ item.Mon_A.dialysis_machine_name }}
313
                   <span v-show="showflag">{{ item.Mon_A.dialysis_machine_name }}
317
               </td>
317
               </td>
318
               <td style="min-width:50px;" v-if="first_day == 1">
318
               <td style="min-width:50px;" v-if="first_day == 1">
319
                 <span v-if="item.Mon_N.patient_id">
319
                 <span v-if="item.Mon_N.patient_id">
320
-                  <span>{{ item.Mon_N.patient }} </span><br />
320
+                  <span>{{ item.Mon_N.patient }} </span>
321
                   <span v-if="item.Mon_N.mode_id != 1">{{ item.Mon_N.mode_name }}</span><br />
321
                   <span v-if="item.Mon_N.mode_id != 1">{{ item.Mon_N.mode_name }}</span><br />
322
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Mon_N.anticoagulant) }}</span>
322
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Mon_N.anticoagulant) }}</span>
323
                   <span v-show="showflag">{{ item.Mon_N.dialysis_machine_name }}
323
                   <span v-show="showflag">{{ item.Mon_N.dialysis_machine_name }}
327
               </td>
327
               </td>
328
               <td style="min-width:50px;" v-if="second_day == 2">
328
               <td style="min-width:50px;" v-if="second_day == 2">
329
                 <span v-if="item.Tue_M.patient_id">
329
                 <span v-if="item.Tue_M.patient_id">
330
-                  <span>{{ item.Tue_M.patient }} </span><br />
330
+                  <span>{{ item.Tue_M.patient }} </span>
331
                   <span v-if="item.Tue_M.mode_id != 1">{{ item.Tue_M.mode_name }}</span><br />
331
                   <span v-if="item.Tue_M.mode_id != 1">{{ item.Tue_M.mode_name }}</span><br />
332
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Tue_M.anticoagulant) }}</span>
332
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Tue_M.anticoagulant) }}</span>
333
                   <span v-show="showflag">{{ item.Tue_M.dialysis_machine_name }}
333
                   <span v-show="showflag">{{ item.Tue_M.dialysis_machine_name }}
337
               </td>
337
               </td>
338
               <td style="min-width:50px;" v-if="second_day == 2">
338
               <td style="min-width:50px;" v-if="second_day == 2">
339
                 <span v-if="item.Tue_A.patient_id">
339
                 <span v-if="item.Tue_A.patient_id">
340
-                  <span>{{ item.Tue_A.patient }} </span><br />
340
+                  <span>{{ item.Tue_A.patient }} </span>
341
                   <span v-if="item.Tue_A.mode_id != 1">{{ item.Tue_A.mode_name }}</span><br />
341
                   <span v-if="item.Tue_A.mode_id != 1">{{ item.Tue_A.mode_name }}</span><br />
342
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Tue_A.anticoagulant) }}</span>
342
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Tue_A.anticoagulant) }}</span>
343
                   <span v-show="showflag">{{ item.Tue_A.dialysis_machine_name }}
343
                   <span v-show="showflag">{{ item.Tue_A.dialysis_machine_name }}
348
               </td>
348
               </td>
349
               <td style="min-width:50px;" v-if="second_day == 2">
349
               <td style="min-width:50px;" v-if="second_day == 2">
350
                 <span v-if="item.Tue_N.patient_id">
350
                 <span v-if="item.Tue_N.patient_id">
351
-                  <span>{{ item.Tue_N.patient }} </span><br />
351
+                  <span>{{ item.Tue_N.patient }} </span>
352
                   <span v-if="item.Tue_N.mode_id != 1">{{ item.Tue_N.mode_name }}</span><br />
352
                   <span v-if="item.Tue_N.mode_id != 1">{{ item.Tue_N.mode_name }}</span><br />
353
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Tue_N.anticoagulant) }}</span>
353
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Tue_N.anticoagulant) }}</span>
354
                   <span v-show="showflag">{{ item.Tue_N.dialysis_machine_name }}
354
                   <span v-show="showflag">{{ item.Tue_N.dialysis_machine_name }}
358
               </td>
358
               </td>
359
               <td style="min-width:50px;" v-if="three_day == 3">
359
               <td style="min-width:50px;" v-if="three_day == 3">
360
                 <span v-if="item.Wed_M.patient_id">
360
                 <span v-if="item.Wed_M.patient_id">
361
-                  <span>{{ item.Wed_M.patient }} </span><br />
361
+                  <span>{{ item.Wed_M.patient }} </span>
362
                   <span v-if="item.Wed_M.mode_id != 1">{{ item.Wed_M.mode_name }}</span><br />
362
                   <span v-if="item.Wed_M.mode_id != 1">{{ item.Wed_M.mode_name }}</span><br />
363
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Wed_M.anticoagulant) }}</span>
363
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Wed_M.anticoagulant) }}</span>
364
                   <span v-show="showflag">{{ item.Wed_M.dialysis_machine_name }}
364
                   <span v-show="showflag">{{ item.Wed_M.dialysis_machine_name }}
368
               </td>
368
               </td>
369
               <td style="min-width:50px;" v-if="three_day == 3">
369
               <td style="min-width:50px;" v-if="three_day == 3">
370
                 <span v-if="item.Wed_A.patient_id">
370
                 <span v-if="item.Wed_A.patient_id">
371
-                  <span>{{ item.Wed_A.patient }} </span><br />
371
+                  <span>{{ item.Wed_A.patient }} </span>
372
                   <span v-if="item.Wed_A.mode_id != 1">{{ item.Wed_A.mode_name }}</span><br />
372
                   <span v-if="item.Wed_A.mode_id != 1">{{ item.Wed_A.mode_name }}</span><br />
373
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Wed_A.anticoagulant) }}</span>
373
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Wed_A.anticoagulant) }}</span>
374
                   <span v-show="showflag">{{ item.Wed_A.dialysis_machine_name }}
374
                   <span v-show="showflag">{{ item.Wed_A.dialysis_machine_name }}
378
               </td>
378
               </td>
379
               <td style="min-width:50px;" v-if="three_day == 3">
379
               <td style="min-width:50px;" v-if="three_day == 3">
380
                 <span v-if="item.Wed_N.patient_id">
380
                 <span v-if="item.Wed_N.patient_id">
381
-                  <span>{{ item.Wed_N.patient }} </span><br />
381
+                  <span>{{ item.Wed_N.patient }} </span>
382
                   <span v-if="item.Wed_N.mode_id != 1">{{ item.Wed_N.mode_name }}</span><br />
382
                   <span v-if="item.Wed_N.mode_id != 1">{{ item.Wed_N.mode_name }}</span><br />
383
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Wed_N.anticoagulant) }}</span>
383
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Wed_N.anticoagulant) }}</span>
384
                   <span v-show="showflag">{{ item.Wed_N.dialysis_machine_name }}
384
                   <span v-show="showflag">{{ item.Wed_N.dialysis_machine_name }}
388
               </td>
388
               </td>
389
               <td style="min-width:50px;" v-if="four_day == 4">
389
               <td style="min-width:50px;" v-if="four_day == 4">
390
                 <span v-if="item.Thurs_M.patient_id">
390
                 <span v-if="item.Thurs_M.patient_id">
391
-                  <span>{{ item.Thurs_M.patient }} </span><br />
391
+                  <span>{{ item.Thurs_M.patient }} </span>
392
                   <span v-if="item.Thurs_M.mode_id != 1">{{ item.Thurs_M.mode_name }}</span><br />
392
                   <span v-if="item.Thurs_M.mode_id != 1">{{ item.Thurs_M.mode_name }}</span><br />
393
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Thurs_M.anticoagulant) }}</span>
393
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Thurs_M.anticoagulant) }}</span>
394
                   <span v-show="showflag">{{ item.Thurs_M.dialysis_machine_name }}
394
                   <span v-show="showflag">{{ item.Thurs_M.dialysis_machine_name }}
398
               </td>
398
               </td>
399
               <td style="min-width:50px;" v-if="four_day == 4">
399
               <td style="min-width:50px;" v-if="four_day == 4">
400
                 <span v-if="item.Thurs_A.patient_id">
400
                 <span v-if="item.Thurs_A.patient_id">
401
-                  <span>{{ item.Thurs_A.patient }} </span><br />
401
+                  <span>{{ item.Thurs_A.patient }} </span>
402
                   <span v-if="item.Thurs_A.mode_id != 1">{{ item.Thurs_A.mode_name }}</span><br />
402
                   <span v-if="item.Thurs_A.mode_id != 1">{{ item.Thurs_A.mode_name }}</span><br />
403
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Thurs_A.anticoagulant) }}</span>
403
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Thurs_A.anticoagulant) }}</span>
404
 
404
 
409
               </td>
409
               </td>
410
               <td style="min-width:50px;" v-if="four_day == 4">
410
               <td style="min-width:50px;" v-if="four_day == 4">
411
                 <span v-if="item.Thurs_N.patient_id">
411
                 <span v-if="item.Thurs_N.patient_id">
412
-                  <span>{{ item.Thurs_N.patient }} </span><br />
412
+                  <span>{{ item.Thurs_N.patient }} </span>
413
                   <span v-if="item.Thurs_N.mode_id != 1">{{ item.Thurs_N.mode_name }}</span><br />
413
                   <span v-if="item.Thurs_N.mode_id != 1">{{ item.Thurs_N.mode_name }}</span><br />
414
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Thurs_N.anticoagulant) }}</span>
414
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Thurs_N.anticoagulant) }}</span>
415
                   <span v-show="showflag">{{ item.Thurs_N.dialysis_machine_name }}
415
                   <span v-show="showflag">{{ item.Thurs_N.dialysis_machine_name }}
419
               </td>
419
               </td>
420
               <td style="min-width:50px;" v-if="five_day == 5">
420
               <td style="min-width:50px;" v-if="five_day == 5">
421
                 <span v-if="item.Fri_M.patient_id">
421
                 <span v-if="item.Fri_M.patient_id">
422
-                  <span>{{ item.Fri_M.patient }} </span><br />
422
+                  <span>{{ item.Fri_M.patient }} </span>
423
                   <span v-if="item.Fri_M.mode_id != 1">{{ item.Fri_M.mode_name }}</span><br />
423
                   <span v-if="item.Fri_M.mode_id != 1">{{ item.Fri_M.mode_name }}</span><br />
424
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Fri_M.anticoagulant) }} </span>
424
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Fri_M.anticoagulant) }} </span>
425
                   <span v-show="showflag">{{ item.Fri_M.dialysis_machine_name }}
425
                   <span v-show="showflag">{{ item.Fri_M.dialysis_machine_name }}
429
               </td>
429
               </td>
430
               <td style="min-width:50px;" v-if="five_day == 5">
430
               <td style="min-width:50px;" v-if="five_day == 5">
431
                 <span v-if="item.Fri_A.patient_id">
431
                 <span v-if="item.Fri_A.patient_id">
432
-                  <span>{{ item.Fri_A.patient }} </span><br />
432
+                  <span>{{ item.Fri_A.patient }} </span>
433
                   <span v-if="item.Fri_A.mode_id != 1">{{ item.Fri_A.mode_name }}</span><br />
433
                   <span v-if="item.Fri_A.mode_id != 1">{{ item.Fri_A.mode_name }}</span><br />
434
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Fri_A.anticoagulant) }}</span>
434
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Fri_A.anticoagulant) }}</span>
435
                   <span v-show="showflag">{{ item.Fri_A.dialysis_machine_name }}
435
                   <span v-show="showflag">{{ item.Fri_A.dialysis_machine_name }}
439
               </td>
439
               </td>
440
               <td style="min-width:50px;" v-if="five_day == 5">
440
               <td style="min-width:50px;" v-if="five_day == 5">
441
                 <span v-if="item.Fri_N.patient_id">
441
                 <span v-if="item.Fri_N.patient_id">
442
-                  <span>{{ item.Fri_N.patient }} </span><br />
442
+                  <span>{{ item.Fri_N.patient }} </span>
443
                   <span v-if="item.Fri_N.mode_id != 1">{{ item.Fri_N.mode_name }}</span><br />
443
                   <span v-if="item.Fri_N.mode_id != 1">{{ item.Fri_N.mode_name }}</span><br />
444
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Fri_N.anticoagulant) }}</span>
444
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Fri_N.anticoagulant) }}</span>
445
                   <span v-show="showflag">{{ item.Fri_N.dialysis_machine_name }}
445
                   <span v-show="showflag">{{ item.Fri_N.dialysis_machine_name }}
449
               </td>
449
               </td>
450
               <td style="min-width:50px;" v-if="six_day == 6">
450
               <td style="min-width:50px;" v-if="six_day == 6">
451
                 <span v-if="item.Sat_M.patient_id">
451
                 <span v-if="item.Sat_M.patient_id">
452
-                  <span>{{ item.Sat_M.patient }} </span><br />
452
+                  <span>{{ item.Sat_M.patient }} </span>
453
                   <span v-if="item.Sat_M.mode_id != 1">{{ item.Sat_M.mode_name }}</span><br />
453
                   <span v-if="item.Sat_M.mode_id != 1">{{ item.Sat_M.mode_name }}</span><br />
454
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Sat_M.anticoagulant) }}</span>
454
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Sat_M.anticoagulant) }}</span>
455
                   <span v-show="showflag">{{ item.Sat_M.dialysis_machine_name }}
455
                   <span v-show="showflag">{{ item.Sat_M.dialysis_machine_name }}
459
               </td>
459
               </td>
460
               <td style="min-width:50px;" v-if="six_day == 6">
460
               <td style="min-width:50px;" v-if="six_day == 6">
461
                 <span v-if="item.Sat_A.patient_id">
461
                 <span v-if="item.Sat_A.patient_id">
462
-                  <span>{{ item.Sat_A.patient }} </span><br />
462
+                  <span>{{ item.Sat_A.patient }} </span>
463
                   <span v-if="item.Sat_A.mode_id != 1">{{ item.Sat_A.mode_name }}</span><br />
463
                   <span v-if="item.Sat_A.mode_id != 1">{{ item.Sat_A.mode_name }}</span><br />
464
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Sat_A.anticoagulant) }}</span>
464
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Sat_A.anticoagulant) }}</span>
465
                   <span v-show="showflag">{{ item.Sat_A.dialysis_machine_name }}
465
                   <span v-show="showflag">{{ item.Sat_A.dialysis_machine_name }}
469
               </td>
469
               </td>
470
               <td style="min-width:50px;" v-if="six_day == 6">
470
               <td style="min-width:50px;" v-if="six_day == 6">
471
                 <span v-if="item.Sat_N.patient_id">
471
                 <span v-if="item.Sat_N.patient_id">
472
-                  <span>{{ item.Sat_N.patient }} </span><br />
472
+                  <span>{{ item.Sat_N.patient }} </span>
473
                   <span v-if="item.Sat_N.mode_id != 1">{{ item.Sat_N.mode_name }}</span><br />
473
                   <span v-if="item.Sat_N.mode_id != 1">{{ item.Sat_N.mode_name }}</span><br />
474
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Sat_N.anticoagulant) }}</span>
474
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Sat_N.anticoagulant) }}</span>
475
                   <span v-show="showflag">{{ item.Sat_N.dialysis_machine_name }}
475
                   <span v-show="showflag">{{ item.Sat_N.dialysis_machine_name }}
479
               </td>
479
               </td>
480
               <td style="min-width:50px;" v-if="seven_day == 7">
480
               <td style="min-width:50px;" v-if="seven_day == 7">
481
                 <span v-if="item.Sun_M.patient_id">
481
                 <span v-if="item.Sun_M.patient_id">
482
-                  <span>{{ item.Sun_M.patient }} </span><br />
482
+                  <span>{{ item.Sun_M.patient }} </span>
483
                   <span v-if="item.Sun_M.mode_id != 1">{{ item.Sun_M.mode_name }}</span><br />
483
                   <span v-if="item.Sun_M.mode_id != 1">{{ item.Sun_M.mode_name }}</span><br />
484
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Sun_M.anticoagulant) }}</span>
484
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Sun_M.anticoagulant) }}</span>
485
                   <span v-show="showflag">{{ item.Sun_M.dialysis_machine_name }}
485
                   <span v-show="showflag">{{ item.Sun_M.dialysis_machine_name }}
489
               </td>
489
               </td>
490
               <td style="min-width:50px;" v-if="seven_day == 7">
490
               <td style="min-width:50px;" v-if="seven_day == 7">
491
                 <span v-if="item.Sun_A.patient_id">
491
                 <span v-if="item.Sun_A.patient_id">
492
-                  <span>{{ item.Sun_A.patient }} </span><br />
492
+                  <span>{{ item.Sun_A.patient }} </span>
493
                   <span v-if="item.Sun_A.mode_id != 1">{{ item.Sun_A.mode_name }}</span><br />
493
                   <span v-if="item.Sun_A.mode_id != 1">{{ item.Sun_A.mode_name }}</span><br />
494
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Sun_A.anticoagulant) }}</span>
494
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Sun_A.anticoagulant) }}</span>
495
                   <span v-show="showflag">{{ item.Sun_A.dialysis_machine_name }}
495
                   <span v-show="showflag">{{ item.Sun_A.dialysis_machine_name }}
500
               </td>
500
               </td>
501
               <td style="min-width:50px;" v-if="seven_day == 7">
501
               <td style="min-width:50px;" v-if="seven_day == 7">
502
                 <span v-if="item.Sun_N.patient_id">
502
                 <span v-if="item.Sun_N.patient_id">
503
-                  <span>{{ item.Sun_N.patient }} </span><br />
503
+                  <span>{{ item.Sun_N.patient }} </span>
504
                   <span v-if="item.Sun_N.mode_id != 1">{{ item.Sun_N.mode_name }}</span><br />
504
                   <span v-if="item.Sun_N.mode_id != 1">{{ item.Sun_N.mode_name }}</span><br />
505
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Sun_N.anticoagulant) }}</span>
505
                   <span v-if="org_id == 0">{{ getAnticoagulant(item.Sun_N.anticoagulant) }}</span>
506
                   <span v-show="showflag">{{ item.Sun_N.dialysis_machine_name }}
506
                   <span v-show="showflag">{{ item.Sun_N.dialysis_machine_name }}
509
                 </span>
509
                 </span>
510
               </td>
510
               </td>
511
             </template>
511
             </template>
512
-            <template v-if="schedule_type == 0 && org_id == 10721 || org_id == 0">
512
+            <template v-if="schedule_type == 0 && org_id == 10721 ">
513
               <td style="min-width:50px;" v-if="first_day == 1">
513
               <td style="min-width:50px;" v-if="first_day == 1">
514
                 <span v-if="item.Mon_M.patient_id">
514
                 <span v-if="item.Mon_M.patient_id">
515
                   <span>{{ item.Mon_M.patient }}</span>
515
                   <span>{{ item.Mon_M.patient }}</span>