Преглед на файлове

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

csx преди 4 години
родител
ревизия
a8bd88d032
променени са 50 файла, в които са добавени 3724 реда и са изтрити 549 реда
  1. 2 2
      config/dev.env.js
  2. 2 2
      config/index.js
  3. 1 0
      src/api/config.js
  4. 8 0
      src/api/schedule.js
  5. 1 0
      src/api/stock.js
  6. 33 4
      src/xt_pages/data/components/addDrugs.vue
  7. 9 6
      src/xt_pages/data/components/consumables.vue
  8. 95 7
      src/xt_pages/data/prescription.vue
  9. 1 1
      src/xt_pages/data/showConfig.vue
  10. 16 6
      src/xt_pages/dialysis/PatientBox.vue
  11. 4 1
      src/xt_pages/dialysis/batch_print/batch_print_order_thirty.vue
  12. 1 1
      src/xt_pages/dialysis/components/allSummary.vue
  13. 5 1
      src/xt_pages/dialysis/components/allSummaryDialog.vue
  14. 44 11
      src/xt_pages/dialysis/components/consumablesDialog.vue
  15. 60 0
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  16. 10 0
      src/xt_pages/dialysis/details/NavIgation.vue
  17. 1 0
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  18. 100 317
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  19. 598 27
      src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue
  20. 8 6
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  21. 4 4
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  22. 15 19
      src/xt_pages/dialysis/details/doubleCheck.vue
  23. 24 14
      src/xt_pages/dialysis/details/index.vue
  24. 11 1
      src/xt_pages/dialysis/dialysisDoctorAdvice.vue
  25. 24 0
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  26. 5 1
      src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue
  27. 2139 0
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyFive.vue
  28. 1 1
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue
  29. 8 2
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue
  30. 2 1
      src/xt_pages/management/components/PlanForm.vue
  31. 8 1
      src/xt_pages/management/home.vue
  32. 1 0
      src/xt_pages/medicalScheduling/index.vue
  33. 29 4
      src/xt_pages/stock/Dialog/goodInfoDailog.vue
  34. 38 11
      src/xt_pages/stock/Dialog/goodTypeDialog.vue
  35. 11 3
      src/xt_pages/stock/Dialog/stockInDialog.vue
  36. 3 2
      src/xt_pages/stock/config/goodType.vue
  37. 18 18
      src/xt_pages/stock/detail/stockOutDetail.vue
  38. 1 1
      src/xt_pages/stock/index.vue
  39. 15 3
      src/xt_pages/stock/stockInOrderAdd.vue
  40. 26 0
      src/xt_pages/stock/stockOutOrderAdd.vue
  41. 3 1
      src/xt_pages/user/components/PatientForm.vue
  42. 7 2
      src/xt_pages/user/coursePrint.vue
  43. 117 18
      src/xt_pages/user/dialysisSolution.vue
  44. 6 1
      src/xt_pages/user/vascularAccess.vue
  45. 186 36
      src/xt_pages/workforce/appointment.vue
  46. 5 3
      src/xt_pages/workforce/components/nextTableWeeks.vue
  47. 1 1
      src/xt_pages/workforce/components/tableData.vue
  48. 11 5
      src/xt_pages/workforce/components/tableWeeks.vue
  49. 3 2
      src/xt_pages/workforce/next_remind_print.vue
  50. 3 2
      src/xt_pages/workforce/remind_print.vue

+ 2 - 2
config/dev.env.js Целия файл

@@ -7,8 +7,8 @@ module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9 9
   //BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
-  // BASE_API: '"http://api.xt.test.sgjyun.com"',
11
-  BASE_API: '"http://localhost:9531"',
10
+  BASE_API: '"http://api.xt.test.sgjyun.com"',
11
+  // BASE_API: '"http://localhost:9531"',
12 12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13 13
   SRCM_HOST: '"http://test1.sgjyun.com"',
14 14
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 2 - 2
config/index.js Целия файл

@@ -29,8 +29,8 @@ module.exports = {
29 29
 
30 30
      // host: 'xt.test.sgjyun.com',
31 31
     //  host: 'xt.kuyicloud.com',
32
-    // host: 'xt.test.sgjyun.com',
33
-    host: 'localhost',
32
+    host: 'xt.test.sgjyun.com',
33
+    // host: 'localhost',
34 34
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
35 35
     autoOpenBrowser: true,
36 36
     errorOverlay: true,

+ 1 - 0
src/api/config.js Целия файл

@@ -71,6 +71,7 @@ export function getSystemPrescription(params) {
71 71
 
72 72
 
73 73
 export function postSystemPrescription(params) {
74
+  console.log("params2222222",params)
74 75
   return request({
75 76
     url: '/api/systemprescription/commit',
76 77
     method: 'post',

+ 8 - 0
src/api/schedule.js Целия файл

@@ -142,4 +142,12 @@ export function getAllZones(params){
142 142
     method:"get",
143 143
     params:params
144 144
   })
145
+}
146
+
147
+export function copyPatientSchedule(params){
148
+  return request({
149
+    url:"/api/schedule/copypatientschedules",
150
+    method:"Get",
151
+    params:params
152
+  })
145 153
 }

+ 1 - 0
src/api/stock.js Целия файл

@@ -121,6 +121,7 @@ export function GetGoodType(params) {
121 121
 }
122 122
 
123 123
 export function createGoodInfo(params) {
124
+  console.log("prams",params)
124 125
   return request({
125 126
     url: '/api/stock/good/info/create',
126 127
     method: 'post',

+ 33 - 4
src/xt_pages/data/components/addDrugs.vue Целия файл

@@ -146,14 +146,24 @@
146 146
               <el-input v-model="form.medical_insurance_number" style="width:160px;" placeholder="" maxlength="30"></el-input>
147 147
             </el-form-item>
148 148
             <el-form-item label="生产厂商 : " prop="manufacturer" >
149
-              <el-select v-model="form.manufacturer" style="width:160px;" placeholder="请选择">
149
+              <!-- <el-select v-model="form.manufacturer" style="width:160px;" placeholder="请选择">
150 150
                 <el-option
151 151
                   v-for="item,index in manufacturers"
152 152
                   :key="index"
153 153
                   :label="item.manufacturer_name"
154 154
                   :value="item.id">
155 155
                 </el-option>
156
-              </el-select>
156
+              </el-select> -->
157
+
158
+            <el-select v-model="form.manufacturer" style="width:160px;" filterable placeholder="请选择">
159
+                  <el-option
160
+                    v-for="item in manufacturerList"
161
+                    :key="item.id"
162
+                    :label="item.manufacturer_name"
163
+                    :value="item.id">
164
+                  </el-option>
165
+            </el-select>
166
+
157 167
             </el-form-item>
158 168
             <el-form-item label="药理分类 : " prop="pharmacology_category">
159 169
               <el-select v-model="form.pharmacology_category" style="width:160px;" placeholder="请选择">
@@ -333,6 +343,7 @@
333 343
   import {
334 344
     getAdviceConfig,
335 345
   } from '@/api/advice'
346
+ import { getManufacturerList } from "@/api/stock";
336 347
   export default {
337 348
     data() {
338 349
       return {
@@ -422,7 +433,10 @@
422 433
           drug_classify: [{ required: true, message: '请选择药物分类',trigger: 'change'  }],
423 434
           drug_dose: [{ required: true, message: '请填写剂量',trigger: 'blur'  }],
424 435
           manufacturer: [{ required: true, message: '请选择生产产商',trigger: 'change'  }]
425
-        }
436
+        },
437
+        page:1,
438
+        limit:500,
439
+        manufacturerList:[]
426 440
       }
427 441
     },
428 442
     props: {
@@ -440,7 +454,7 @@
440 454
         type: Number,
441 455
         default: 1
442 456
       }
443
-
457
+      
444 458
     },
445 459
     methods: {
446 460
       cancle: function(formName) {
@@ -574,11 +588,26 @@
574 588
 
575 589
         return form
576 590
       },
591
+      getlist(){
592
+         var params = {
593
+             page:this.page,
594
+             limit:this.limit
595
+          }
596
+          console.log("params2222222",params)
597
+        getManufacturerList(params).then(response=>{
598
+           var manufacturerList =   response.data.data.manufacturer
599
+           console.log("列表2222222",manufacturerList)
600
+           this.manufacturerList = manufacturerList
601
+        })
602
+      }
577 603
     }, watch: {
578 604
       visible(val) {
579 605
         // this.form = this.formValue
580 606
 
581 607
       }
608
+    },
609
+    created(){
610
+      this.getlist()
582 611
     }
583 612
   }
584 613
 </script>

+ 9 - 6
src/xt_pages/data/components/consumables.vue Целия файл

@@ -286,12 +286,12 @@
286 286
               this.goodInfo.goodInfoDialog.formValue.good_unit =
287 287
                 response.data.data.goodInfo.good_unit
288 288
             }
289
-
289
+           
290 290
             if (response.data.data.goodInfo.manufacturer <= 0) {
291 291
               this.goodInfo.goodInfoDialog.formValue.manufacturer = ''
292 292
             } else {
293
-              this.goodInfo.goodInfoDialog.formValue.manufacturer =
294
-                response.data.data.goodInfo.manufacturer
293
+              this.goodInfo.goodInfoDialog.formValue.manufacturer = response.data.data.goodInfo.manufacturer
294
+             
295 295
             }
296 296
 
297 297
             if (response.data.data.goodInfo.dealer <= 0) {
@@ -500,6 +500,7 @@
500 500
           good_kind:this.good_kind,
501 501
           is_charge: this.is_charge,
502 502
         }
503
+        console.log("222222",params)
503 504
         getGoodInfoList(params).then(response => {
504 505
           if (response.data.state == 0) {
505 506
             this.goodInfo.loading = false
@@ -550,7 +551,8 @@
550 551
 
551 552
           modifyGoodInfo(val).then(response => {
552 553
             if (response.data.state == 0) {
553
-              this.$message.error(response.data.msg)
554
+              // this.$message.error(response.data.msg)
555
+              this.$message.error("同一耗材类型同一规格名称不能重复录入!")
554 556
               return false
555 557
             } else {
556 558
               this.$refs.addConsumable.hide()
@@ -581,8 +583,9 @@
581 583
           //新增
582 584
           createGoodInfo(val).then(response => {
583 585
             if (response.data.state == 0) {
584
-              this.$message.error(response.data.msg)
585
-              return false
586
+              // this.$message.error(response.data.msg)
587
+              // return false
588
+              this.$message.error("同一耗材类型同一规格名称不能重复录入!")
586 589
             } else {
587 590
               this.$refs.addConsumable.hide()
588 591
               this.getList()

+ 95 - 7
src/xt_pages/data/prescription.vue Целия файл

@@ -231,12 +231,26 @@
231 231
 
232 232
                   <el-col :span="8">
233 233
                     <el-form-item label="透析器/灌流器:">
234
-
235 234
                       <el-input
236 235
                         v-model="addPlan.dialyzer_perfusion_apparatus" @focus="showInnerDialog('5')"></el-input>
237 236
                     </el-form-item>
238 237
                   </el-col>
239 238
 
239
+
240
+                  <el-col :span="8" v-if="this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.org_id == 3877">
241
+                    <el-form-item label="透析器:">
242
+                      <el-input
243
+                        v-model="dialysis_dialyszers" @focus="showInnerDialog('6')"></el-input>
244
+                    </el-form-item>
245
+                  </el-col>
246
+
247
+                  <el-col :span="8" v-if="this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.org_id == 3877">
248
+                    <el-form-item label="灌流器:">
249
+                      <el-input
250
+                        v-model="dialysis_irrigation" @focus="showInnerDialog('7')"></el-input>
251
+                    </el-form-item>
252
+                  </el-col>
253
+
240 254
                   <el-col :span="8">
241 255
                     <el-form-item label="碳酸氢盐(mmol/L): " prop="bicarbonate">
242 256
                       <el-input v-model="addPlan.bicarbonate"></el-input>
@@ -803,7 +817,9 @@ export default {
803 817
         displace_liqui_part: "",
804 818
         displace_liqui_value: "",
805 819
         ultrafiltration: "",
806
-        blood_access: ""
820
+        blood_access: "",
821
+        dialysis_dialyszers:"",
822
+        dialysis_irrigation:""
807 823
       },
808 824
       system_prescription: [],
809 825
       isEdit: false,
@@ -831,7 +847,9 @@ export default {
831 847
       body_fluid_option: [],
832 848
       special_medicine_option: [],
833 849
       displace_liqui_part_option: [],
834
-      blood_access_option: []
850
+      blood_access_option: [],
851
+      dialysis_dialyszers:"",
852
+      dialysis_irrigation:"",
835 853
     };
836 854
   },
837 855
   computed: {},
@@ -845,6 +863,28 @@ export default {
845 863
           this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
846 864
           this.InnerDialogProps.selected = this.addPlan.dialyzer_perfusion_apparatus
847 865
           this.InnerDialogProps.isShowTextArea = false
866
+          break
867
+         case '6':
868
+           for(let i=0;i<this.dialyzers.length;i++){
869
+               this.dialyzers[i].name = this.dialyzers[i].specification_name
870
+           }
871
+          this.InnerDialogProps.values = this.dialyzers
872
+          this.InnerDialogProps.titles = '透析器'
873
+          this.InnerDialogProps.type = 'dialyzers'
874
+          this.InnerDialogProps.selected = this.dialysis_dialyszers
875
+          this.InnerDialogProps.isShowTextArea = false
876
+        
877
+          break
878
+        case '7':
879
+          for(let i=0;i<this.irrigations.length;i++){
880
+             this.irrigations[i].name = this.irrigations[i].specification_name
881
+           }
882
+          this.InnerDialogProps.values = this.irrigations
883
+          this.InnerDialogProps.titles = '灌流器'
884
+          this.InnerDialogProps.type = 'irrigations'
885
+          this.InnerDialogProps.selected = this.dialysis_irrigation
886
+          this.InnerDialogProps.isShowTextArea = false
887
+        
848 888
           break
849 889
       }
850 890
     },
@@ -854,7 +894,12 @@ export default {
854 894
         case 'dialyzer_perfusion_apparatus':
855 895
           this.addPlan.dialyzer_perfusion_apparatus = val.value.join(',')
856 896
           break
857
-
897
+        case 'dialyzers':
898
+          this.dialysis_dialyszers = val.value.join(',')
899
+         break
900
+        case 'irrigations':
901
+          this.dialysis_irrigation = val.value.join(',')
902
+        break
858 903
       }
859 904
     },
860 905
     innerDialogCancle: function() {
@@ -915,7 +960,10 @@ export default {
915 960
         displace_liqui_part: "",
916 961
         displace_liqui_value: "",
917 962
         ultrafiltration: "",
918
-        blood_access: ""
963
+        blood_access: "",
964
+        stockType:[],
965
+        irrigations:[],
966
+        dialyzers:[],
919 967
       };
920 968
 
921 969
       for (const key in tempAddPlan) {
@@ -973,6 +1021,10 @@ export default {
973 1021
             }
974 1022
           }
975 1023
           this.addPlan.mode = id;
1024
+          this.addPlan.dialysis_dialyszers = prescription.dialysis_dialyszers
1025
+          this.addPlan.dialysis_irrigation = prescription.dialysis_irrigation
1026
+          this.dialysis_dialyszers = prescription.dialysis_dialyszers
1027
+          this.dialysis_irrigation = prescription.dialysis_irrigation
976 1028
         }
977 1029
       });
978 1030
     },
@@ -991,12 +1043,43 @@ export default {
991 1043
           return false;
992 1044
         } else {
993 1045
           this.system_prescription = response.data.data.prescriptions;
994
-
1046
+          
995 1047
           for (let i = 0; i < this.system_prescription.length; i++) {
996 1048
             if (this.system_prescription[i].mode == 1) {
997 1049
               this.isEdit = true;
998 1050
             }
999 1051
           }
1052
+          this.stockType =  response.data.data.stockType
1053
+          console.log("2333555555555",this.stockType)
1054
+          if(this.stockType.length >0 ){
1055
+               var arr = []
1056
+                var arrTwo = []
1057
+                for(let i=0;i<this.stockType.length;i++){
1058
+                  if(this.stockType[i].stock_attribute == 2){
1059
+                      arr.push(this.stockType[i])
1060
+                  }
1061
+                  if(this.stockType[i].stock_attribute == 3){
1062
+                      arrTwo.push(this.stockType[i])
1063
+                  }
1064
+                }
1065
+                var dialyzator = []
1066
+                var irrigation = []
1067
+                for(let i=0;i<arr.length;i++){
1068
+                  for(let j=0;j<arr[i].GoodInfo.length;j++){
1069
+                      dialyzator.push(arr[i].GoodInfo[j])
1070
+                  }
1071
+                }
1072
+                console.log("透析器",dialyzator)
1073
+                this.dialyzers = dialyzator
1074
+
1075
+                for(let i=0;i<arrTwo.length;i++){
1076
+                  for(let j=0;j<arrTwo[i].GoodInfo.length;j++){
1077
+                      irrigation.push(arrTwo[i].GoodInfo[j])
1078
+                  }
1079
+                }
1080
+                console.log("灌流器",irrigation)
1081
+                this.irrigations = irrigation
1082
+          }
1000 1083
         }
1001 1084
       });
1002 1085
     },
@@ -1024,6 +1107,8 @@ export default {
1024 1107
     savePrescription: function() {
1025 1108
       this.addPlan.anticoagulant_zongliang = this.addPlan.anticoagulant_zongliang.toString();
1026 1109
       if (!this.isEdit) {
1110
+        this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1111
+        this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1027 1112
         postSystemPrescription(this.addPlan).then(response => {
1028 1113
           if (response.data.state == 0) {
1029 1114
             this.$message.error(response.data.msg);
@@ -1043,6 +1128,8 @@ export default {
1043 1128
           }
1044 1129
         });
1045 1130
       } else {
1131
+          this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1132
+          this.addPlan.dialysis_dialyszers  = this.dialysis_dialyszers
1046 1133
         updateSystemPrescription(this.addPlan.id, this.addPlan).then(
1047 1134
           response => {
1048 1135
             if (response.data.state == 0) {
@@ -1088,7 +1175,8 @@ export default {
1088 1175
     )
1089 1176
     this.getAllSystemPrescription();
1090 1177
     this.getSystemPrescription(this.addPlan.mode);
1091
-
1178
+    
1179
+   
1092 1180
   },
1093 1181
   watch: {
1094 1182
     "addPlan.dialysis_duration": function() {

+ 1 - 1
src/xt_pages/data/showConfig.vue Целия файл

@@ -150,7 +150,7 @@ export default {
150 150
   },
151 151
   created() {
152 152
     var filedList = store.getters.xt_user.fileds;
153
-
153
+    
154 154
     for (let i = 0; i < filedList.length; i++) {
155 155
       switch (filedList[i].module) {
156 156
         case 1:

+ 16 - 6
src/xt_pages/dialysis/PatientBox.vue Целия файл

@@ -57,7 +57,12 @@
57 57
         <p>目标超滤量:{{ schedule.prescription ? schedule.prescription.target_ultrafiltration : '' }}
58 58
        
59 59
         </p>
60
-        <p :title="schedule.prescription ? schedule.prescription.dialyzer_perfusion_apparatus : ''">透析器/灌流器:{{ schedule.prescription ? schedule.prescription.dialyzer_perfusion_apparatus : '' }}</p>
60
+        <p :title="schedule.prescription ? schedule.prescription.dialyzer_perfusion_apparatus : ''">
61
+          透析器/灌流器:{{ schedule.prescription ? schedule.prescription.dialyzer_perfusion_apparatus : '' }}
62
+           <span v-if="schedule.prescription!=null">{{schedule.prescription?schedule.prescription.dialysis_dialyszers:''}}</span>
63
+           <span v-if="schedule.prescription!=null && schedule.prescription.dialysis_irrigation!=''">/</span>
64
+           <span v-if="schedule.prescription!=null">{{schedule.prescription?schedule.prescription.dialysis_irrigation:''}}</span>
65
+        </p>
61 66
       </div>
62 67
       <div class="function" :class="functionColor(schedule)" :id="modeColor(schedule.mode_id)">
63 68
         <ul>
@@ -115,6 +120,7 @@
115 120
       :dry_weight="lastDryWeightDislysis"
116 121
       :schedual="temp_schedual"
117 122
       :date='date'
123
+      :stockType="stockType"
118 124
     ></dialysis-prescription-dialog>
119 125
     <treatment-summary-dialog
120 126
       title="治疗小结"
@@ -225,6 +231,7 @@ export default {
225 231
       temp_schedual: null,
226 232
       date:'',
227 233
       modedata:0,
234
+      stockType:"",
228 235
     };
229 236
   },
230 237
   props: {
@@ -391,7 +398,7 @@ export default {
391 398
         var resp = rs.data;
392 399
         if (resp.state == 1) {
393 400
           var patient = resp.data.patient; // 患者信息
394
-          console.log("患者信息",patient)
401
+         
395 402
           var schedual = resp.data.schedual; // 患者排班信息
396 403
           var prescription = resp.data.prescription; // 透析处方
397 404
           if(prescription!=null){
@@ -411,10 +418,10 @@ export default {
411 418
              }
412 419
            }
413 420
           var doctor_advices = resp.data.doctor_advices; // 临时医嘱
414
-          //console.log("力气-------", doctor_advices);
421
+          
415 422
           var double_check = resp.data.double_check; // 双人核对
416 423
           var assessment_after_dislysis = resp.data.assessment_after_dislysis; // 透后评估
417
-          //console.log("透后品谷数", assessment_after_dislysis);
424
+        
418 425
           var treatment_summary = resp.data.treatment_summary; // 治疗小结
419 426
           var monitor_records = resp.data.monitor_records; // 透析监测
420 427
           var dialysis_order = resp.data.dialysis_order; // 透析记录
@@ -447,7 +454,10 @@ export default {
447 454
           var lastDryWeightDislysis = resp.data.lastDryWeightDislysis;
448 455
 
449 456
           var system_prescribe = resp.data.system_prescribe;
450
-
457
+          
458
+          var stockType =  resp.data.stockType
459
+          this.stockType = stockType
460
+          console.log("元单快乐222222",this.stockType)
451 461
           
452 462
           this.$refs.prescription.setLastRecord(
453 463
             schedual,
@@ -601,7 +611,7 @@ export default {
601 611
       this.$emit("advice");
602 612
     },
603 613
     open(schedual){
604
-      console.log("中国2222222",this)
614
+     
605 615
      
606 616
       this.date = schedual.schedule_date
607 617
       this.patient_id = schedual.patient_id

+ 4 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_thirty.vue Целия файл

@@ -52,7 +52,10 @@
52 52
                             <td width="10"></td>
53 53
                             <td width="50">性 别:</td>
54 54
                             <td width="60">
55
-                                <div class="under-line">{{ record.patient.gender ? "男" : "女" }}</div>
55
+                                <div class="under-line">
56
+                                  <span v-if=" record.patient.gender == 1">男</span>
57
+                                  <span v-if=" record.patient.gender == 2">女</span>
58
+                                </div>
56 59
                             </td>
57 60
                             <td width="10"></td>
58 61
                             <td width="50">年 龄:</td>

+ 1 - 1
src/xt_pages/dialysis/components/allSummary.vue Целия файл

@@ -239,7 +239,7 @@ export default {
239 239
           this.getlist()
240 240
           this.getAllMaterial()
241 241
         },
242
-           search(){
242
+          search(){
243 243
           //  if(this.selected_date==""){
244 244
           //     this.start_time = moment(new Date()).add('year',0).format("YYYY-MM-DD")
245 245
           //   }

+ 5 - 1
src/xt_pages/dialysis/components/allSummaryDialog.vue Целия файл

@@ -66,6 +66,7 @@
66 66
 const moment = require('moment')
67 67
 import { parseTime } from "@/utils";
68 68
 import {getGatherList} from "@/api/consumable"
69
+
69 70
 export default {
70 71
     data(){
71 72
         return{
@@ -83,7 +84,8 @@ export default {
83 84
             partitionType: 0,
84 85
             tableData: [],
85 86
             start_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
86
-            end_time:moment(new Date()).add('year',0).format("YYYY-MM-DD")
87
+            end_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
88
+            stockTotal:[]
87 89
         }
88 90
     },
89 91
     created(){
@@ -141,6 +143,8 @@ export default {
141 143
             }
142 144
           })
143 145
         }
146
+
147
+      
144 148
     }
145 149
 }
146 150
 </script>

+ 44 - 11
src/xt_pages/dialysis/components/consumablesDialog.vue Целия файл

@@ -20,24 +20,24 @@
20 20
         placeholder="选择日期"
21 21
         @change="selectEndtime">
22 22
       </el-date-picker>
23
-      <el-button icon="el-icon-printer" type="primary" @click="toPrint">打印</el-button>
23
+      <!-- <el-button icon="el-icon-printer" type="primary" @click="toPrint">打印</el-button> -->
24 24
 
25 25
     </div>
26 26
     <div style="margin-top:10px;">
27 27
       <el-table :data="tableData" border style="width: 100%" height="300px">
28
-        <el-table-column align="center" prop="date" label="商品类型" width="180">
28
+        <el-table-column align="center" prop="date" label="耗材类型" width="180">
29 29
           <template slot-scope="scope">
30
-            {{scope.row.good_type_name}}
30
+            {{scope.row.good_name}}
31 31
           </template>
32 32
         </el-table-column>
33 33
         <el-table-column align="center" prop="name" label="规格名称" width="180">
34 34
           <template slot-scope="scope">
35
-            {{scope.row.good_name}}
35
+            {{scope.row.specification_name}}
36 36
           </template>
37 37
         </el-table-column>
38 38
         <el-table-column align="center" prop="address" label="数量">
39 39
           <template slot-scope="scope">
40
-            {{scope.row.count}}
40
+            {{getStockCount(scope.row.id)}}
41 41
           </template>
42 42
         </el-table-column>
43 43
       </el-table>
@@ -50,7 +50,7 @@
50 50
   const moment = require('moment')
51 51
   import { GetDialysisGoodStatistics } from '@/api/dialysis'
52 52
   import { parseTime } from '@/utils'
53
-
53
+  import { getPrintStockGood } from '@/api/stock'
54 54
   export default {
55 55
     props: {
56 56
       list: Array
@@ -62,7 +62,8 @@
62 62
           end_time:moment(new Date()).add('year', 0).format('YYYY-MM-DD')
63 63
         },
64 64
         visible: false,
65
-        startTime: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
65
+        // startTime: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
66
+        startTime:moment().startOf('month').format("YYYY-MM-DD"),
66 67
         endTime: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
67 68
         schedulArr: [
68 69
           { value: 0, label: '全部班' },
@@ -76,7 +77,8 @@
76 77
         partitionType: 0,
77 78
         tableData: [],
78 79
         start_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
79
-        end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD')
80
+        end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
81
+        stockTotal:[]
80 82
       }
81 83
     },
82 84
     created() {
@@ -119,8 +121,8 @@
119 121
         done()
120 122
       },
121 123
       show() {
122
-        this.GetDialysisGoodStatistics()
123
-
124
+        // this.GetDialysisGoodStatistics()
125
+        this.getlist()
124 126
         this.visible = true
125 127
       },
126 128
 
@@ -136,9 +138,40 @@
136 138
         this.GetDialysisGoodStatistics()
137 139
 
138 140
       },
141
+       getlist(){
142
+          var params = {
143
+            start_time:this.startTime,
144
+            end_time:this.endTime,
145
+            type:3
146
+          }
147
+          console.log("param2222222",params)
148
+          getPrintStockGood(params).then(response=>{
149
+            var stockTotal = response.data.data.stockTotal
150
+            console.log("stocktOTl",stockTotal)
151
+            this.stockTotal = stockTotal
152
+            for (let i = 0; i < response.data.data.list.length; i++) {
153
+               if (response.data.data.list[i].query_warehouseout_info.length > 0) {
154
+                  this.tableData.push(response.data.data.list[i])
155
+               }
156
+             }
157
+             console.log("表哥22222222222",this.tableData) 
158
+          })
159
+       },
160
+
139 161
       toPrint() {
140 162
         this.$router.push('/dialysis/consumables_print?startime=' + this.start_time + '&endtime=' + this.end_time)
141
-      }
163
+      },
164
+      getStockCount(id){
165
+       
166
+       var count = ""
167
+       for(let i=0;i<this.stockTotal.length;i++){
168
+          if(id == this.stockTotal[i].good_id){
169
+             count = this.stockTotal[i].count
170
+          }
171
+       }
172
+       return count
173
+     }
174
+    
142 175
 
143 176
     }
144 177
   }

+ 60 - 0
src/xt_pages/dialysis/details/DialysisPrescription.vue Целия файл

@@ -75,6 +75,18 @@
75 75
           <span class="unit"></span>
76 76
         </li>
77 77
 
78
+        <li v-if="isShow('透析器')">
79
+          <label>透析器 : </label>
80
+          <span class="content">{{ dialysis_dialyszers }}</span>
81
+          <span class="unit"></span>
82
+        </li>
83
+
84
+        <li v-if="isShow('灌流器')">
85
+          <label>灌流器 : </label>
86
+          <span class="content">{{ dialysis_irrigation }}</span>
87
+          <span class="unit"></span>
88
+        </li>
89
+
78 90
         <li v-if="isShow('透析前使用特殊药物')">
79 91
           <label>透析前使用特殊药物: </label>
80 92
           <span class="content">{{ special_medicine }}</span>
@@ -332,6 +344,9 @@ export default {
332 344
     },
333 345
     device_number_map: {
334 346
       type: Object
347
+    },
348
+    preparestock:{
349
+      type:Array
335 350
     }
336 351
   },
337 352
   computed: {
@@ -494,6 +509,50 @@ export default {
494 509
         'dialyzer_perfusion_apparatus'
495 510
       )
496 511
     },
512
+    dialysis_dialyszers:function(){
513
+
514
+      var str = this.getValueStr('dialysis_dialyszers','dialysis_dialyszers')
515
+       console.log("str",str)
516
+      var arr = str.split(",")
517
+
518
+      if (arr.length >0) {
519
+         for(let i=0;i<arr.length;i++){
520
+           for(let j=0;j<this.preparestock.length;j++){
521
+              if(arr[i] == this.preparestock[j].specification_name){
522
+                 if(this.preparestock[j].commdity_code!=""){
523
+                   arr[i] = arr[i]+"("+this.preparestock[j].commdity_code+")"
524
+                 }
525
+              }
526
+           }
527
+         }
528
+      }
529
+      console.log("arr00000",arr)
530
+      var strs = arr.join(',')
531
+      console.log("strs",strs)
532
+      return strs
533
+    },
534
+    dialysis_irrigation:function(){
535
+        var str = this.getValueStr('dialysis_irrigation','dialysis_irrigation')
536
+       console.log("str",str)
537
+      var arr = str.split(",")
538
+
539
+      if (arr.length >0) {
540
+         for(let i=0;i<arr.length;i++){
541
+           for(let j=0;j<this.preparestock.length;j++){
542
+              if(arr[i] == this.preparestock[j].specification_name){
543
+                if(this.preparestock[j].commdity_code!=""){
544
+                  arr[i] = arr[i]+"("+this.preparestock[j].commdity_code+")"
545
+                } 
546
+              }
547
+           }
548
+         }
549
+      }
550
+      console.log("arr00000",arr)
551
+      var strs = arr.join(',')
552
+      console.log("strs",strs)
553
+      return strs
554
+      // return this.getValueStr('dialysis_irrigation','dialysis_irrigation')
555
+    },
497 556
     body_fluid: function() {
498 557
       var id = this.getValueStr('body_fluid', 'body_fluid')
499 558
       if (id == 0) {
@@ -572,6 +631,7 @@ export default {
572 631
     }
573 632
   },
574 633
   created() {
634
+
575 635
     var perfusion_apparatus = this.$store.getters.perfusion_apparatus
576 636
     var map = {}
577 637
     for (let index = 0; index < perfusion_apparatus.length; index++) {

+ 10 - 0
src/xt_pages/dialysis/details/NavIgation.vue Целия файл

@@ -88,6 +88,7 @@
88 88
       :last_prescription="last_dialysis_prescribe"
89 89
       :dry_weight="last_dryWeight_dislysis"
90 90
       :schedual="temp_schedual"
91
+      :stockType="stockType"
91 92
       :lastAssessment="lastAssessment"
92 93
     ></dialysis-prescription-dialog>
93 94
 
@@ -95,8 +96,11 @@
95 96
       title="双人核对"
96 97
       ref="doubleCheck"
97 98
       :patient="patient"
99
+      :predialysis_evaluation="predialysis_evaluation"
100
+      :prescription="prescription"
98 101
       :double_check="double_check"
99 102
       :admin_users="admin_users"
103
+
100 104
     ></double-check-dialog>
101 105
 
102 106
     <accepts-treatment-dialog
@@ -509,6 +513,12 @@ export default {
509 513
         return [];
510 514
       }
511 515
     },
516
+    stockType:{
517
+      type:Array,
518
+      default:()=>{
519
+        return [];
520
+      }
521
+    },
512 522
     lastAssessment:{
513 523
      // 最后一条血管通路(处理今天录的)
514 524
      type: Object,

+ 1 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Целия файл

@@ -1262,6 +1262,7 @@
1262 1262
       this.humor_excessive_symptom_array = getDataConfig('hemodialysis', 'humor_excessive_symptom')
1263 1263
       // console.log("血管通路部位",this.blood_access_part_opera)
1264 1264
       this.internal_fistula = getDataConfig('hemodialysis', 'internal_fistula')
1265
+      console.log("内瘘222222",this.internal_fistula)
1265 1266
       this.internal_fistula_skin = getDataConfig('hemodialysis', 'internal_fistula_skin')
1266 1267
       this.puncture_method = getDataConfig('hemodialysis', 'puncture_method')
1267 1268
       this.machineType = getDataConfig('hemodialysis', 'machine_type')

+ 100 - 317
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Целия файл

@@ -252,7 +252,7 @@
252 252
               ></el-input>
253 253
             </el-form-item>
254 254
           </el-col>
255
-          
255
+
256 256
 
257 257
            <el-col :span="8" v-if="isShows('置换速度')" v-show="totalShow">
258 258
             <el-form-item label="置换速度(ml/min)">
@@ -262,7 +262,7 @@
262 262
             </el-form-item>
263 263
           </el-col>
264 264
 
265
- 
265
+
266 266
           <el-col
267 267
             :span="8"
268 268
             v-if="anticoagulant.gaimingcheng != -1 && isShows('钙名称')"
@@ -368,18 +368,18 @@
368 368
             </el-form-item>
369 369
           </el-col>
370 370
 
371
-          <!-- <el-col :span="8" v-if="isShows('透析器')">
371
+          <el-col :span="8" v-if="isShows('透析器')">
372 372
              <el-form-item label="透析器:">
373
-                  <el-input v-model="dialysisPrescription.dialyzers" @focus="showInnerDialog('7')"></el-input>
373
+                  <el-input v-model="dialysisPrescription.dialysis_dialyszers" @focus="showInnerDialog('7')"></el-input>
374 374
              </el-form-item>
375 375
           </el-col>
376 376
 
377
-ß
377
+
378 378
           <el-col :span="8" v-if="isShows('灌流器')">
379 379
              <el-form-item label="灌流器:">
380
-                  <el-input v-model="dialysisPrescription.irrigation" @focus="showInnerDialog('8')"></el-input>
380
+                  <el-input v-model="dialysisPrescription.dialysis_irrigation" @focus="showInnerDialog('8')"></el-input>
381 381
              </el-form-item>
382
-          </el-col> -->
382
+          </el-col>
383 383
 
384 384
           <el-col :span="8" v-if="isShows('体液过多症状')">
385 385
             <el-form-item label="体液过多症状:">
@@ -400,10 +400,7 @@
400 400
             </el-form-item>
401 401
           </el-col>
402 402
 
403
-          <!-- </el-row>
404
-
405 403
 
406
-          <el-row :gutter="20" > -->
407 404
 
408 405
           <el-col :span="8" v-if="isShows('体液过多其他症状')">
409 406
             <el-form-item label="体液过多其他症状">
@@ -440,9 +437,7 @@
440 437
             </el-form-item>
441 438
           </el-col>
442 439
 
443
-          <!-- </el-row>
444 440
 
445
-          <el-row :gutter="20" > -->
446 441
           <el-col :span="8">
447 442
             <el-form-item
448 443
               label="置换液:"
@@ -530,281 +525,6 @@
530 525
 
531 526
             </el-form-item>
532 527
           </el-col>
533
-
534
-
535
-          <!-- </el-row>
536
-          <el-row :gutter="20" > -->
537
-          <!--          <el-col :span="8" v-if="isShows('实际超滤量')">-->
538
-          <!--            <el-form-item label="实际超滤量(L)">-->
539
-          <!--              <el-input v-model="dialysisPrescription.ultrafiltration"></el-input>-->
540
-          <!--            </el-form-item>-->
541
-          <!--          </el-col>-->
542
-
543
-          <!--透析耗材-->
544
-          <!--<el-col-->
545
-            <!--:span="8"-->
546
-            <!--v-if="isShows('血液透析干粉') && config.is_open == 1"-->
547
-          <!--&gt;-->
548
-            <!--<el-form-item label="血液透析干粉:">-->
549
-              <!--<el-select-->
550
-                <!--v-model="dialysisPrescription.niprocart"-->
551
-                <!--placeholder="请选择"-->
552
-              <!--&gt;-->
553
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
554
-                <!--<el-option-->
555
-                  <!--v-for="(option, index) in niprocart_info"-->
556
-                  <!--:key="index + 'p'"-->
557
-                  <!--:label="option.GoodInfo.specification_name"-->
558
-                  <!--:value="option.GoodInfo.id"-->
559
-                <!--&gt;</el-option>-->
560
-              <!--</el-select>-->
561
-            <!--</el-form-item>-->
562
-          <!--</el-col>-->
563
-
564
-          <!--<el-col-->
565
-            <!--:span="8"-->
566
-            <!--v-if="isShows('一次性使用动静脉穿刺针') && config.is_open == 1"-->
567
-          <!--&gt;-->
568
-            <!--<el-form-item label="一次性使用动静脉穿刺针:">-->
569
-              <!--<el-select-->
570
-                <!--v-model="dialysisPrescription.jms"-->
571
-                <!--placeholder="请选择"-->
572
-              <!--&gt;-->
573
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
574
-
575
-                <!--<el-option-->
576
-                  <!--v-for="(option, index) in jms_info"-->
577
-                  <!--:key="index + 'a'"-->
578
-                  <!--:label="option.GoodInfo.specification_name"-->
579
-                  <!--:value="option.GoodInfo.id"-->
580
-                <!--&gt;</el-option>-->
581
-              <!--</el-select>-->
582
-            <!--</el-form-item>-->
583
-          <!--</el-col>-->
584
-
585
-          <!--<el-col-->
586
-            <!--:span="8"-->
587
-            <!--v-if="isShows('内瘘管翼状针') && config.is_open == 1"-->
588
-          <!--&gt;-->
589
-            <!--<el-form-item label="内瘘管翼状针:">-->
590
-              <!--<el-select-->
591
-                <!--v-model="dialysisPrescription.fistula_needle_set"-->
592
-                <!--placeholder="请选择"-->
593
-              <!--&gt;-->
594
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
595
-
596
-                <!--<el-option-->
597
-                  <!--v-for="(option, index) in fistula_needle_set_info"-->
598
-                  <!--:key="index + 's'"-->
599
-                  <!--:label="option.GoodInfo.specification_name"-->
600
-                  <!--:value="option.GoodInfo.id"-->
601
-                <!--&gt;</el-option>-->
602
-              <!--</el-select>-->
603
-            <!--</el-form-item>-->
604
-          <!--</el-col>-->
605
-
606
-          <!--<el-col-->
607
-            <!--:span="8"-->
608
-            <!--v-if="isShows('内瘘管翼状针16G') && config.is_open == 1"-->
609
-          <!--&gt;-->
610
-            <!--<el-form-item label="内瘘管翼状针16G:">-->
611
-              <!--<el-select-->
612
-                <!--v-model="dialysisPrescription.fistula_needle_set_16"-->
613
-                <!--placeholder="请选择"-->
614
-              <!--&gt;-->
615
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
616
-
617
-                <!--<el-option-->
618
-                  <!--v-for="(option, index) in fistula_needle_set_16_info"-->
619
-                  <!--:key="index + 'd'"-->
620
-                  <!--:label="option.GoodInfo.specification_name"-->
621
-                  <!--:value="option.GoodInfo.id"-->
622
-                <!--&gt;</el-option>-->
623
-              <!--</el-select>-->
624
-            <!--</el-form-item>-->
625
-          <!--</el-col>-->
626
-
627
-          <!--<el-col-->
628
-            <!--:span="8"-->
629
-            <!--v-if="isShows('一次性使用血液灌流器') && config.is_open == 1"-->
630
-          <!--&gt;-->
631
-            <!--<el-form-item label="一次性使用血液灌流器:">-->
632
-              <!--<el-select-->
633
-                <!--v-model="dialysisPrescription.hemoperfusion"-->
634
-                <!--placeholder="请选择"-->
635
-              <!--&gt;-->
636
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
637
-
638
-                <!--<el-option-->
639
-                  <!--v-for="(option, index) in hemoperfusion_info"-->
640
-                  <!--:key="index + 'f'"-->
641
-                  <!--:label="option.GoodInfo.specification_name"-->
642
-                  <!--:value="option.GoodInfo.id"-->
643
-                <!--&gt;</el-option>-->
644
-              <!--</el-select>-->
645
-            <!--</el-form-item>-->
646
-          <!--</el-col>-->
647
-
648
-          <!--<el-col-->
649
-            <!--:span="8"-->
650
-            <!--v-if="isShows('空心纤维血液透析器') && config.is_open == 1"-->
651
-          <!--&gt;-->
652
-            <!--<el-form-item label="空心纤维血液透析器:">-->
653
-              <!--<el-select-->
654
-                <!--v-model="dialysisPrescription.dialyser_sterilised"-->
655
-                <!--placeholder="请选择"-->
656
-              <!--&gt;-->
657
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
658
-
659
-                <!--<el-option-->
660
-                  <!--v-for="(option, index) in dialyser_sterilised_info"-->
661
-                  <!--:key="index + 'g'"-->
662
-                  <!--:label="option.GoodInfo.specification_name"-->
663
-                  <!--:value="option.GoodInfo.id"-->
664
-                <!--&gt;</el-option>-->
665
-              <!--</el-select>-->
666
-            <!--</el-form-item>-->
667
-          <!--</el-col>-->
668
-
669
-          <!--<el-col-->
670
-            <!--:span="8"-->
671
-            <!--v-if="isShows('中空纤维透析器') && config.is_open == 1"-->
672
-          <!--&gt;-->
673
-            <!--<el-form-item label="中空纤维透析器:">-->
674
-              <!--<el-select-->
675
-                <!--v-model="dialysisPrescription.filtryzer"-->
676
-                <!--placeholder="请选择"-->
677
-              <!--&gt;-->
678
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
679
-
680
-                <!--<el-option-->
681
-                  <!--v-for="(option, index) in filtryzer_info"-->
682
-                  <!--:key="index + 'h'"-->
683
-                  <!--:label="option.GoodInfo.specification_name"-->
684
-                  <!--:value="option.GoodInfo.id"-->
685
-                <!--&gt;</el-option>-->
686
-              <!--</el-select>-->
687
-            <!--</el-form-item>-->
688
-          <!--</el-col>-->
689
-
690
-          <!--<el-col :span="8" v-if="isShows('透析器') && config.is_open == 1">-->
691
-            <!--<el-form-item label="透析器:">-->
692
-              <!--<el-select-->
693
-                <!--v-model="dialysisPrescription.dialyzers"-->
694
-                <!--placeholder="请选择"-->
695
-              <!--&gt;-->
696
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
697
-
698
-                <!--<el-option-->
699
-                  <!--v-for="(option, index) in dialyzers_info"-->
700
-                  <!--:key="index + 1"-->
701
-                  <!--:label="option.GoodInfo.specification_name"-->
702
-                  <!--:value="option.GoodInfo.id"-->
703
-                <!--&gt;</el-option>-->
704
-              <!--</el-select>-->
705
-            <!--</el-form-item>-->
706
-          <!--</el-col>-->
707
-
708
-          <!--<el-col :span="8" v-if="isShows('注射器') && config.is_open == 1">-->
709
-            <!--<el-form-item label="注射器:">-->
710
-              <!--<el-select-->
711
-                <!--v-model="dialysisPrescription.injector"-->
712
-                <!--placeholder="请选择"-->
713
-              <!--&gt;-->
714
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
715
-
716
-                <!--<el-option-->
717
-                  <!--v-for="(option, index) in injector_info"-->
718
-                  <!--:key="index + 'j'"-->
719
-                  <!--:label="option.GoodInfo.specification_name"-->
720
-                  <!--:value="option.GoodInfo.id"-->
721
-                <!--&gt;</el-option>-->
722
-              <!--</el-select>-->
723
-            <!--</el-form-item>-->
724
-          <!--</el-col>-->
725
-
726
-          <!--<el-col-->
727
-            <!--:span="8"-->
728
-            <!--v-if="isShows('体外循环血路管') && config.is_open == 1"-->
729
-          <!--&gt;-->
730
-            <!--<el-form-item label="体外循环血路管:">-->
731
-              <!--<el-select-->
732
-                <!--v-model="dialysisPrescription.bloodlines"-->
733
-                <!--placeholder="请选择"-->
734
-              <!--&gt;-->
735
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
736
-
737
-                <!--<el-option-->
738
-                  <!--v-for="(option, index) in bloodlines_info"-->
739
-                  <!--:key="index + 'k'"-->
740
-                  <!--:label="option.GoodInfo.specification_name"-->
741
-                  <!--:value="option.GoodInfo.id"-->
742
-                <!--&gt;</el-option>-->
743
-              <!--</el-select>-->
744
-            <!--</el-form-item>-->
745
-          <!--</el-col>-->
746
-
747
-          <!--<el-col-->
748
-            <!--:span="8"-->
749
-            <!--v-if="isShows('血液净化补液管路(置换管)') && config.is_open == 1"-->
750
-          <!--&gt;-->
751
-            <!--<el-form-item label="血液净化补液管路(置换管):">-->
752
-              <!--<el-select-->
753
-                <!--v-model="dialysisPrescription.tubing_hemodialysis"-->
754
-                <!--placeholder="请选择"-->
755
-              <!--&gt;-->
756
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
757
-
758
-                <!--<el-option-->
759
-                  <!--v-for="(option, index) in tubingHemodialysis_info"-->
760
-                  <!--:key="index + 'x'"-->
761
-                  <!--:label="option.GoodInfo.specification_name"-->
762
-                  <!--:value="option.GoodInfo.id"-->
763
-                <!--&gt;</el-option>-->
764
-              <!--</el-select>-->
765
-            <!--</el-form-item>-->
766
-          <!--</el-col>-->
767
-
768
-          <!--<el-col :span="8" v-if="isShows('护理包') && config.is_open == 1">-->
769
-            <!--<el-form-item label="护理包:">-->
770
-              <!--<el-select-->
771
-                <!--v-model="dialysisPrescription.package"-->
772
-                <!--placeholder="请选择"-->
773
-              <!--&gt;-->
774
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
775
-
776
-                <!--<el-option-->
777
-                  <!--v-for="(option, index) in safe_package_info"-->
778
-                  <!--:key="index + 'z'"-->
779
-                  <!--:label="option.GoodInfo.specification_name"-->
780
-                  <!--:value="option.GoodInfo.id"-->
781
-                <!--&gt;</el-option>-->
782
-              <!--</el-select>-->
783
-            <!--</el-form-item>-->
784
-          <!--</el-col>-->
785
-
786
-          <!--<el-col :span="8" v-if="isShows('A液') && config.is_open == 1">-->
787
-            <!--<el-form-item label="A液:">-->
788
-              <!--<el-select-->
789
-                <!--v-model="dialysisPrescription.a_liquid"-->
790
-                <!--placeholder="请选择"-->
791
-              <!--&gt;-->
792
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
793
-
794
-                <!--<el-option-->
795
-                  <!--v-for="(option, index) in aliquid_info"-->
796
-                  <!--:key="index + 'c'"-->
797
-                  <!--:label="option.GoodInfo.specification_name"-->
798
-                  <!--:value="option.GoodInfo.id"-->
799
-                <!--&gt;</el-option>-->
800
-              <!--</el-select>-->
801
-            <!--</el-form-item>-->
802
-          <!--</el-col>-->
803
-
804
-
805
-
806
-
807
-
808 528
         </el-row>
809 529
 
810 530
         <el-row :gutter="20">
@@ -1162,6 +882,12 @@
1162 882
         }
1163 883
       },
1164 884
       scheudle_mode:Number,
885
+     stockType:{
886
+        type:Array,
887
+        default:()=>{
888
+          return [];
889
+        }
890
+      },
1165 891
       lastAssessment: {
1166 892
         type: Object,
1167 893
         default: () => {
@@ -1287,6 +1013,8 @@
1287 1013
           nucleoprotamine:"",//鱼精蛋白
1288 1014
           no_heparin_remarks:"",
1289 1015
           blood:"",
1016
+          dialysis_dialyszers:"",
1017
+          dialysis_irrigation:"",
1290 1018
           irrigation:"",
1291 1019
           antioxidant_commodity_name:"",
1292 1020
           displace_speed:"",
@@ -1311,7 +1039,7 @@
1311 1039
         doctorAdvices: [],
1312 1040
         dialyzerPerfusionApparatus: [],
1313 1041
         bloods:[],
1314
-        irrigation:[],
1042
+        irrigations:[],
1315 1043
         dialyzers:[],
1316 1044
       }
1317 1045
     },
@@ -1378,6 +1106,25 @@
1378 1106
 
1379 1107
            case '7': // 透析器
1380 1108
 
1109
+            for(let i=0;i<this.dialyzers.length;i++){
1110
+               this.dialyzers[i].name = this.dialyzers[i].specification_name
1111
+            }
1112
+            this.InnerDialogProps.values = this.dialyzers
1113
+            this.InnerDialogProps.titles = '透析器'
1114
+            this.InnerDialogProps.type = 'dialyzers'
1115
+            this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_dialyszers
1116
+            this.InnerDialogProps.isShowTextArea = false
1117
+            break
1118
+           case '8':
1119
+           for(let i=0;i<this.irrigations.length;i++){
1120
+             this.irrigations[i].name = this.irrigations[i].specification_name
1121
+           }
1122
+            this.InnerDialogProps.values = this.irrigations
1123
+            this.InnerDialogProps.titles = '透析器'
1124
+            this.InnerDialogProps.type = 'irrigations'
1125
+            this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_irrigation
1126
+            this.InnerDialogProps.isShowTextArea = false
1127
+            break
1381 1128
         }
1382 1129
       },
1383 1130
       innerDialogComfirm: function(val) {
@@ -1389,6 +1136,12 @@
1389 1136
           case 'blood':
1390 1137
             this.dialysisPrescription.blood = val.value.join(',')
1391 1138
            break
1139
+          case 'dialyzers':
1140
+           this.dialysisPrescription.dialysis_dialyszers = val.value.join(',')
1141
+          break
1142
+          case 'irrigations':
1143
+           this.dialysisPrescription.dialysis_irrigation = val.value.join(',')
1144
+          break
1392 1145
         }
1393 1146
       },
1394 1147
       innerDialogCancle: function() {
@@ -1490,7 +1243,7 @@
1490 1243
           'hemodialysis',
1491 1244
           'dialyzer_perfusion_apparatus'
1492 1245
         )
1493
-
1246
+        console.log("3333333",this.dialyzerPerfusionApparatus)
1494 1247
         this.bloods = getDataConfig(
1495 1248
           'hemodialysis',
1496 1249
           'blood'
@@ -1618,6 +1371,7 @@
1618 1371
                 ParamsQuery['mode'] = '3'
1619 1372
               }
1620 1373
             }
1374
+
1621 1375
             postPrescription(ParamsQuery).then(response => {
1622 1376
               if (response.data.state == 0) {
1623 1377
                 this.$message.error(response.data.msg)
@@ -1838,7 +1592,7 @@
1838 1592
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1839 1593
       },
1840 1594
       show(pre,schedual,last,his_is_open) {
1841
-     
1595
+
1842 1596
         if(his_is_open == 1){
1843 1597
           this.is_open = 0
1844 1598
         }
@@ -1911,8 +1665,8 @@
1911 1665
         } else {
1912 1666
           last_weight_after = this.last_record.weight_after
1913 1667
         }
1914
-        
1915
- 
1668
+
1669
+
1916 1670
 
1917 1671
         if (this.predialysis == null || this.predialysis.id == 0) {
1918 1672
           if(last != null) {
@@ -1934,7 +1688,7 @@
1934 1688
 
1935 1689
             weight_before = 0
1936 1690
 
1937
-           
1691
+
1938 1692
           }
1939 1693
 
1940 1694
         } else {
@@ -1943,29 +1697,29 @@
1943 1697
 
1944 1698
 
1945 1699
           //获取最后一次血管通路
1946
-         if(this.predialysis!=null){
1947
-            if(this.lastAssessment!=null){
1948
-              var blood_id = 0
1949
-              for(let i= 0;i<this.blood_access_option.length;i++){
1950
-                  if(this.lastAssessment.blood_access_part_opera_id == this.blood_access_option[i].name){
1951
-                    blood_id = this.blood_access_option[i].id
1952
-                  }
1953
-              }
1954
-               console.log("中国人名职员",this.lastAssessment)
1955
-               this.dialysisPrescription.blood_access = blood_id
1956
-            }else{
1957
-              if(this.last_prescription!=null){
1958
-                  var blood_id = 0
1959
-                  for(let i= 0;i<this.blood_access_option.length;i++){
1960
-                      if(this.last_prescription.blood_access_part_opera_id == this.blood_access_option[i].name){
1961
-                        blood_id = this.blood_access_option[i].id
1962
-                      }
1963
-                  }   
1964
-                   this.dialysisPrescription.blood_access = blood_id
1965
-              }
1966
-            }
1967
-           
1968
-         }
1700
+        //  if(this.predialysis!=null){
1701
+        //     if(this.lastAssessment!=null){
1702
+        //       var blood_id = 0
1703
+        //       for(let i= 0;i<this.blood_access_option.length;i++){
1704
+        //           if(this.lastAssessment.blood_access_part_opera_id == this.blood_access_option[i].name){
1705
+        //             blood_id = this.blood_access_option[i].id
1706
+        //           }
1707
+        //       }
1708
+        //        console.log("中国人名职员",this.lastAssessment)
1709
+        //        this.dialysisPrescription.blood_access = blood_id
1710
+        //     }else{
1711
+        //       if(this.last_prescription!=null){
1712
+        //           var blood_id = 0
1713
+        //           for(let i= 0;i<this.blood_access_option.length;i++){
1714
+        //               if(this.last_prescription.blood_access_part_opera_id == this.blood_access_option[i].name){
1715
+        //                 blood_id = this.blood_access_option[i].id
1716
+        //               }
1717
+        //           }
1718
+        //            this.dialysisPrescription.blood_access = blood_id
1719
+        //       }
1720
+        //     }
1721
+
1722
+        //  }
1969 1723
 
1970 1724
         if (weight_before > 0 && last_weight_after > 0) {
1971 1725
           this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(
@@ -2050,7 +1804,7 @@
2050 1804
             ParamsQuery['record_date'] = this.record_date
2051 1805
             ParamsQuery['mode'] = '1'
2052 1806
 
2053
-            console.log("第一")
1807
+            console.log("第一",ParamsQuery)
2054 1808
             postPrescription(ParamsQuery).then(response => {
2055 1809
               if (response.data.state == 0) {
2056 1810
                 this.$message.error(response.data.msg)
@@ -3738,7 +3492,36 @@
3738 3492
           }
3739 3493
         }
3740 3494
       },
3495
+      stockType:function(){
3496
+        console.log("stockType",this.stockType)
3497
+        var arr = []
3498
+        var arrTwo = []
3499
+        for(let i=0;i<this.stockType.length;i++){
3500
+          if(this.stockType[i].stock_attribute == 2){
3501
+              arr.push(this.stockType[i])
3502
+          }
3503
+          if(this.stockType[i].stock_attribute == 3){
3504
+              arrTwo.push(this.stockType[i])
3505
+          }
3506
+        }
3507
+        var dialyzator = []
3508
+        var irrigation = []
3509
+        for(let i=0;i<arr.length;i++){
3510
+          for(let j=0;j<arr[i].GoodInfo.length;j++){
3511
+              dialyzator.push(arr[i].GoodInfo[j])
3512
+          }
3513
+        }
3514
+        this.dialyzers = dialyzator
3741 3515
 
3516
+        for(let i=0;i<arrTwo.length;i++){
3517
+           for(let j=0;j<arrTwo[i].GoodInfo.length;j++){
3518
+              irrigation.push(arrTwo[i].GoodInfo[j])
3519
+           }
3520
+        }
3521
+        this.irrigations = irrigation
3522
+        console.log("透析器",this.dialyzers)
3523
+        console.log("灌流器",this.irrigations)
3524
+      }
3742 3525
     }
3743 3526
   }
3744 3527
 </script>

+ 598 - 27
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue Целия файл

@@ -4,45 +4,94 @@
4 4
              :modal-append-to-body="false"
5 5
              width="854px">
6 6
 
7
-    <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="110px">
7
+    <el-form :inline="true" class="demo-form-inline newInline" :model="doubleReview" label-width="105px">
8
+      
8 9
       <el-form-item label="透析物品核查 : ">
9
-        <el-radio v-model="doubleReview.dialysis_item_check" label="1">正确</el-radio>
10
-        <el-radio v-model="doubleReview.dialysis_item_check" label="2">错误</el-radio>
10
+        <el-radio v-model="doubleReview.dialysis_item_check" label="1" @change="changeRadio">正确</el-radio>
11
+        <!-- <el-radio v-model="doubleReview.dialysis_item_check" label="2">错误</el-radio> -->
11 12
       </el-form-item>
12
-      <el-form-item label="差错描述 : " label-width="80px">
13
+      <el-form-item class="newItem" label="差错描述 : " label-width="90px">
13 14
         <el-input v-model="doubleReview.dialysis_item_desc"></el-input>
14 15
       </el-form-item>
15 16
     </el-form>
16
-    <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="110px">
17
+   
18
+   <el-form :inline="true" class="demo-form-inline newCheckBox" :model="doubleReview" label-width="110px">
19
+       <el-checkbox-group v-model="checkList" @change="changeBox">
20
+          <el-checkbox :label="diazes"></el-checkbox>
21
+          <el-checkbox :label="puncture_needle"></el-checkbox>
22
+          <el-checkbox :label="dialysate_formulation"></el-checkbox>
23
+          <el-checkbox :label="kalium"></el-checkbox>
24
+          <el-checkbox :label="calcium"></el-checkbox>
25
+       </el-checkbox-group>
26
+    </el-form>
27
+    <el-form :inline="true" class="demo-form-inline newInline" :model="doubleReview" label-width="105px">
17 28
       <el-form-item label="透析参数核查 : ">
18
-        <el-radio v-model="doubleReview.dialysis_parameter_check" label="1">正确</el-radio>
19
-        <el-radio v-model="doubleReview.dialysis_parameter_check" label="2">错误</el-radio>
29
+        <el-radio v-model="doubleReview.dialysis_parameter_check" label="1" @change="changeRadioTwo">正确</el-radio>
30
+        <!-- <el-radio v-model="doubleReview.dialysis_parameter_check" label="2">错误</el-radio> -->
20 31
       </el-form-item>
21
-      <el-form-item label="差错描述 : " label-width="80px">
32
+      <el-form-item class="newItem" label="差错描述 : " label-width="90px">
22 33
         <el-input v-model="doubleReview.dialysis_parameter_desc"></el-input>
23 34
       </el-form-item>
24 35
     </el-form>
25
-    <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="110px">
36
+    <el-form class="newCheckBox">
37
+     <el-checkbox-group v-model="checkListOne" @change="changeBoxOne" >
38
+        <el-checkbox :label="dialys_mode"></el-checkbox>
39
+        <el-checkbox :label="long_time"></el-checkbox>
40
+        <el-checkbox :label="target_ultrafiltration"></el-checkbox>
41
+        <el-checkbox :label="anticoagulant" ></el-checkbox>
42
+        <el-checkbox :label="anticoagulant_shouji"></el-checkbox>
43
+        <el-checkbox :label="anticoagulant_weichi"></el-checkbox>
44
+        <el-checkbox :label="anticoagulant_zongliang"></el-checkbox>
45
+        <el-checkbox :label="displace_liqui_part"></el-checkbox>
46
+        <el-checkbox :label="replacement_total"></el-checkbox>
47
+        <el-checkbox :label="blood_flow_volume"></el-checkbox>
48
+        <el-checkbox :label="dialysate_flow"></el-checkbox>
49
+     </el-checkbox-group>
50
+    </el-form>
51
+    <el-form :inline="true" class="demo-form-inline newInline" :model="doubleReview" label-width="105px">
26 52
       <el-form-item label="血管通路核查 : ">
27 53
 
28
-        <el-radio v-model="doubleReview.vascular_access_verification" label="1">正确</el-radio>
29
-        <el-radio v-model="doubleReview.vascular_access_verification" label="2">错误</el-radio>
54
+        <el-radio v-model="doubleReview.vascular_access_verification" label="1" @change="changeRadioThree">正确</el-radio>
55
+        <!-- <el-radio v-model="doubleReview.vascular_access_verification" label="2">错误</el-radio> -->
30 56
 
31 57
       </el-form-item>
32
-      <el-form-item label="差错描述 : " label-width="80px">
58
+      <el-form-item class="newItem" label="差错描述 : " label-width="90px">
33 59
         <el-input v-model="doubleReview.vascular_access_desc"></el-input>
34 60
       </el-form-item>
35 61
     </el-form>
36
-    <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="110px">
62
+    <el-form class="newCheckBox">
63
+       <el-checkbox-group v-model="checkListTwo" @change="changeBoxTwo">
64
+        <el-checkbox :label="blood_access_part_opera_id">
65
+
66
+        </el-checkbox>
67
+        <el-checkbox label="动静脉接错"></el-checkbox>
68
+        <el-checkbox label="渗血"></el-checkbox>
69
+        <el-checkbox label="压迫" ></el-checkbox>
70
+        <el-checkbox label="折叠"></el-checkbox>
71
+        <el-checkbox label="滑脱"></el-checkbox>
72
+     </el-checkbox-group>
73
+    </el-form>
74
+    <el-form :inline="true" class="demo-form-inline newInline" :model="doubleReview" label-width="105px">
37 75
       <el-form-item label="管道连接核查 : ">
38
-        <el-radio v-model="doubleReview.pipeline_connection_check" label="1">正确</el-radio>
39
-        <el-radio v-model="doubleReview.pipeline_connection_check" label="2">错误</el-radio>
76
+        <el-radio v-model="doubleReview.pipeline_connection_check" label="1" @change="changeRadioFour">正确</el-radio>
77
+        <!-- <el-radio v-model="doubleReview.pipeline_connection_check" label="2">错误</el-radio> -->
40 78
       </el-form-item>
41
-      <el-form-item label="差错描述 : " label-width="80px">
79
+      <el-form-item class="newItem" label="差错描述 : " label-width="90px">
42 80
         <el-input v-model="doubleReview.pipeline_connection_desc"></el-input>
43 81
       </el-form-item>
44 82
     </el-form>
45
-
83
+    <el-form class="newCheckBox">
84
+      <el-checkbox-group v-model="checkListThree" @change="changeBoxThree">
85
+        <el-checkbox label="泵前补液测管未夹"></el-checkbox>
86
+        <el-checkbox label="肝素管夹未开启"></el-checkbox>
87
+        <el-checkbox label="透析器连接错误"></el-checkbox>
88
+        <el-checkbox label="动静脉壶页面不标准" ></el-checkbox>
89
+        <el-checkbox label="静脉管路未卡入保护夹"></el-checkbox>
90
+        <el-checkbox label="压力传感器夹未打开"></el-checkbox>
91
+        <el-checkbox label="接口连接松动"></el-checkbox>
92
+        <el-checkbox label="管路打折"></el-checkbox>
93
+     </el-checkbox-group>
94
+    </el-form>
46 95
     <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="120px">
47 96
       <el-form-item label="第一核对时间:">
48 97
         <el-time-picker
@@ -99,7 +148,7 @@
99 148
   import { postDoubleCheck } from '@/api/dialysis'
100 149
   import { uParseTime } from '@/utils/tools'
101 150
   import { parseTime } from '@/utils'
102
-
151
+  import { getDataConfig } from '@/utils/data'
103 152
   export default {
104 153
     name: 'doubleCheckDialog',
105 154
     data() {
@@ -128,8 +177,29 @@
128 177
           check_time: 0,
129 178
           first_check_time: 0
130 179
         },
131
-
132
-        record_date: ''
180
+        dialysate_formulation_options:[],
181
+        record_date: '',
182
+        checkList: [],
183
+        checkListOne:[],
184
+        checkListTwo:[],
185
+        checkListThree:[],
186
+        diazes:"透析器/灌流器:",
187
+        puncture_needle:"穿刺针:",
188
+        dialysate_formulation:"透析液配方:",
189
+        kalium:"钾:",
190
+        calcium:"钙:",
191
+        dialys_mode:"透析模式:",
192
+        long_time:"透析时长:",
193
+        target_ultrafiltration:"目标超滤量:",
194
+        anticoagulant:"抗凝剂:",
195
+        anticoagulant_shouji:"首剂:",
196
+        anticoagulant_weichi:"维持:",
197
+        anticoagulant_zongliang:"总量:",
198
+        displace_liqui_part:"置换液:",
199
+        replacement_total:"置换总量:",
200
+        blood_flow_volume:"处方血流量:",
201
+        dialysate_flow:"透析液流量:",
202
+        blood_access_part_opera_id:"通路类型:"
133 203
       }
134 204
     }, methods: {
135 205
       show() {
@@ -187,7 +257,8 @@
187 257
       handleCancle: function() {
188 258
         this.isVisibility = false
189 259
 
190
-      }, handleComfirm: function() {
260
+      }, 
261
+      handleComfirm: function() {
191 262
 
192 263
         if (this.patient.id <= 0) {
193 264
           this.$message.error('没有选择患者')
@@ -259,6 +330,7 @@
259 330
             // }
260 331
 
261 332
             let doublecheck_resp = response.data.data.doubleCheck
333
+         
262 334
             var doubleCheck = this.double_check
263 335
             for (var index in doublecheck_resp) {
264 336
               // doubleCheck[index] = doublecheck_resp[index];
@@ -464,6 +536,355 @@
464 536
           }
465 537
         }
466 538
       },
539
+      changeBox(val){
540
+         
541
+         var arr = []
542
+         var str = val.join(';')
543
+         console.log("strw222222222",str)
544
+        if(str.indexOf('透析器/灌流器')!=-1 && this.prescription!=null){
545
+            arr.push("透析器/灌流器:"+(this.prescription.dialyzer_perfusion_apparatus?this.prescription.dialyzer_perfusion_apparatus:""))
546
+        }
547
+
548
+       if(str.indexOf('透析器/灌流器')!=-1 && this.prescription==null){
549
+            arr.push("透析器/灌流器:")
550
+        }
551
+       
552
+        if(str.indexOf('穿刺针')!=-1 && this.predialysis_evaluation.id!=0){
553
+           arr.push("穿刺针:"+this.predialysis_evaluation.puncture_needle)
554
+        }
555
+
556
+         if(str.indexOf('穿刺针')!=-1 && this.predialysis_evaluation.id==0){
557
+           arr.push("穿刺针:")
558
+        }
559
+        
560
+        if(str.indexOf('透析液配方')!=-1 && this.prescription!=null){
561
+           arr.push("透析液配方:"+this.GetDialysateFormulationById(this.prescription.dialysate_formulation))
562
+        }
563
+
564
+       if(str.indexOf('透析液配方')!=-1 && this.prescription==null){
565
+           arr.push("透析液配方:")
566
+        }
567
+        if(str.indexOf('钾')!=-1 && this.prescription!=null ){
568
+          arr.push("钾:"+(this.prescription.kalium?this.prescription.kalium:""))
569
+        }
570
+        if(str.indexOf('钾')!=-1 && this.prescription==null ){
571
+          arr.push("钾:")
572
+        }
573
+        if(str.indexOf('钙')!=-1 && this.prescription!=null ){
574
+          arr.push("钙:"+(this.prescription.calcium?this.prescription.calcium:""))
575
+        }
576
+        if(str.indexOf('钙')!=-1 && this.prescription==null ){
577
+          arr.push("钙:")
578
+        }
579
+        console.log("arr",arr)
580
+        this.doubleReview.dialysis_item_desc = arr.join(";")
581
+        if(val.length > 0){
582
+          this.doubleReview.dialysis_item_check = 2
583
+        }else{
584
+          this.doubleReview.dialysis_item_check = "1"
585
+        }
586
+      },
587
+      changeBoxOne(val){
588
+         var arr = []
589
+         var str = val.join(';')
590
+         console.log("strw222222222",str)
591
+        if(str.indexOf('透析模式')!=-1 && this.prescription!=null){
592
+            arr.push("透析模式:"+(this.getMode(this.prescription.mode_id)?this.getMode(this.prescription.mode_id):""))
593
+        }
594
+         if(str.indexOf('透析模式')!=-1 && this.prescription==null){
595
+            arr.push("透析模式:")
596
+         } 
597
+
598
+         if(str.indexOf('透析时长')!=-1 && this.prescription!=null){
599
+            arr.push("透析时长:"+(this.prescription.dialysis_duration?this.prescription.dialysis_duration:""))
600
+         }
601
+
602
+        if(str.indexOf('透析时长')!=-1 && this.prescription==null){
603
+            arr.push("透析时长:")
604
+         }
605
+        
606
+        if(str.indexOf("目标超滤量")!=-1 && this.prescription!=null){
607
+           arr.push("目标超滤量:"+(this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:""))
608
+        }
609
+        if(str.indexOf("目标超滤量")!=-1 && this.prescription==null){
610
+           arr.push("目标超滤量:")
611
+        }
612
+        if(str.indexOf("抗凝剂")!=-1 && this.prescription!=null){
613
+           arr.push("抗凝剂:"+(this.prescription.anticoagulant?this.prescription.anticoagulant:""))
614
+        }
615
+       if(str.indexOf("抗凝剂")!=-1 && this.prescription==null){
616
+           arr.push("抗凝剂:")
617
+        }
618
+        if(str.indexOf("首剂")!=-1 && this.prescription!=null){
619
+           arr.push("首剂:"+(this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:""))
620
+        }
621
+        if(str.indexOf("首剂")!=-1 && this.prescription==null){
622
+           arr.push("首剂:")
623
+        }
624
+       if(str.indexOf("维持")!=-1 && this.prescription!=null){
625
+           arr.push("维持:"+(this.prescription.anticoagulant_weichi?this.prescription.anticoagulant_weichi:""))
626
+        }
627
+
628
+        if(str.indexOf("维持")!=-1 && this.prescription==null){
629
+           arr.push("维持:")
630
+        }
631
+
632
+        if(str.indexOf("总量")!=-1 && this.prescription!=null){
633
+           arr.push("总量:"+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:""))
634
+        }
635
+        
636
+        if(str.indexOf("总量")!=-1 && this.prescription==null){
637
+           arr.push("总量:")
638
+        }
639
+
640
+       if(str.indexOf("置换液")!=-1 && this.prescription!=null){
641
+           arr.push("置换液:"+(this.prescription.displace_liqui_part?this.prescription.displace_liqui_part:""))
642
+        } 
643
+
644
+       if(str.indexOf("置换液")!=-1 && this.prescription==null){
645
+           arr.push("置换液:")
646
+        } 
647
+      
648
+       if(str.indexOf("置换总量")!=-1 && this.prescription!=null){
649
+           arr.push("置换总量:"+(this.prescription.replacement_total?this.prescription.replacement_total:""))
650
+        } 
651
+
652
+        if(str.indexOf("置换总量")!=-1 && this.prescription==null){
653
+           arr.push("置换总量:")
654
+        } 
655
+
656
+       if(str.indexOf("处方血流量")!=-1 && this.prescription!=null){
657
+           arr.push("处方血流量:"+(this.prescription.blood_flow_volume?this.prescription.blood_flow_volume:""))
658
+        } 
659
+
660
+       if(str.indexOf("处方血流量")!=-1 && this.prescription==null){
661
+           arr.push("处方血流量:")
662
+        } 
663
+       
664
+       if(str.indexOf("透析液流量")!=-1 && this.prescription!=null){
665
+           arr.push("透析液流量:"+(this.prescription.dialysate_flow?this.prescription.dialysate_flow:""))
666
+        } 
667
+
668
+       if(str.indexOf("透析液流量")!=-1 && this.prescription==null){
669
+           arr.push("透析液流量:")
670
+        } 
671
+        console.log("arr",arr)
672
+        this.doubleReview.dialysis_parameter_desc = arr.join(";")
673
+        if(val.length>0){
674
+          this.doubleReview.dialysis_parameter_check = 2
675
+        }else{
676
+          this.doubleReview.dialysis_parameter_check = "1"
677
+        }
678
+      },
679
+      changeBoxTwo(val){
680
+         var arr = []
681
+         var str = val.join(';')
682
+         console.log("strw222222222",str)
683
+ 
684
+          if(str.indexOf('通路类型')!=-1 && this.predialysis_evaluation.id!=0){
685
+            arr.push("通路类型:"+this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id))
686
+          
687
+          }
688
+
689
+          if(str.indexOf('通路类型')!=-1 && this.predialysis_evaluation.id==0){
690
+            arr.push("通路类型:")
691
+          }
692
+          if(str.indexOf('动静脉接错')!=-1){
693
+             arr.push("动静脉接错:")
694
+          }
695
+          if(str.indexOf('渗血')!=-1){
696
+             arr.push("渗血:")
697
+          }
698
+         if(str.indexOf('压迫')!=-1){
699
+             arr.push("压迫:")
700
+          }
701
+          if(str.indexOf('折叠')!=-1){
702
+             arr.push("折叠:")
703
+          }
704
+          if(str.indexOf('滑脱')!=-1){
705
+             arr.push("滑脱:")
706
+          }
707
+        console.log("arr",arr)
708
+        this.doubleReview.vascular_access_desc = arr.join(";")
709
+        if(val.length>0){
710
+          this.doubleReview.vascular_access_verification = 2
711
+        }else{
712
+          this.doubleReview.vascular_access_verification = "1"
713
+        }
714
+      },
715
+      changeBoxThree(val){
716
+         var arr = []
717
+         var str = val.join(';')
718
+         console.log("strw222222222",str)
719
+         if(str.indexOf('泵前补液测管未夹')!=-1){
720
+           arr.push("泵前补液测管未夹:")
721
+         }
722
+         if(str.indexOf('肝素管夹未开启')!=-1){
723
+           arr.push("肝素管夹未开启:")
724
+         }
725
+         if(str.indexOf('透析器连接错误')!=-1){
726
+           arr.push("透析器连接错误:")
727
+         }
728
+        if(str.indexOf('动静脉壶页面不标准')!=-1){
729
+           arr.push("动静脉壶页面不标准:")
730
+         }
731
+          if(str.indexOf('静脉管路未卡入保护夹')!=-1){
732
+           arr.push("静脉管路未卡入保护夹:")
733
+         }
734
+         if(str.indexOf("压力传感器夹未打开")!=-1){
735
+           arr.push("压力传感器夹未打开")
736
+         }
737
+         if(str.indexOf('接口连接松动')!=-1){
738
+            arr.push("接口连接松动")
739
+         }
740
+         if(str.indexOf("管路打折")!=-1){
741
+           arr.push("管路打折")
742
+         }
743
+         this.doubleReview.pipeline_connection_desc = arr.join(";")
744
+         if(val.length > 0){
745
+          this.doubleReview.pipeline_connection_check = 2
746
+         }else{
747
+           this.doubleReview.pipeline_connection_check = "1"
748
+         }
749
+      },
750
+
751
+      changeRadio(val){
752
+        if(val == 1){
753
+         this.doubleReview.dialysis_item_desc = ""
754
+         this.checkList =[]
755
+        }
756
+      },
757
+      changeRadioTwo(val){
758
+        if(val == 1){
759
+          this.doubleReview.dialysis_parameter_desc = ""
760
+          this.checkListOne = []
761
+        }
762
+      },
763
+      changeRadioThree(val){
764
+         if(val == 1){
765
+           this.doubleReview.vascular_access_desc = ""
766
+           this.checkListTwo = []
767
+         }
768
+      },
769
+      changeRadioFour(val){
770
+         if(val == 1){
771
+           this.doubleReview.pipeline_connection_desc = ""
772
+           this.checkListThree = [] 
773
+         }
774
+      },
775
+
776
+      GetDialysateFormulationById(val) {
777
+         this.dialysate_formulation_options = getDataConfig('hemodialysis','dialysate_formulation')
778
+         console.log("透析液配方",this.dialysate_formulation_options)
779
+        let name = ''
780
+        let dfl = this.dialysate_formulation_options.length
781
+        for (let index = 0; index < dfl; index++) {
782
+          if (this.dialysate_formulation_options[index].id == val) {
783
+            name = this.dialysate_formulation_options[index].name
784
+            break
785
+          }
786
+        }
787
+        return name
788
+     },
789
+      getMode(id){
790
+       var name = ""
791
+        if(id == 1){
792
+          name = "HD"
793
+        }
794
+        if(id == 2){
795
+          name = "HDF"
796
+        }
797
+
798
+        if(id == 3){
799
+          name = "HD+HP"
800
+        }
801
+
802
+        if(id == 4){
803
+          name = "HP"
804
+        }
805
+        if(id == 5){
806
+          name = "HF"
807
+        }
808
+       if(id == 6){
809
+          name = "SCUF"
810
+        }
811
+       if(id == 7){
812
+          name = "IUF"
813
+        }
814
+       if(id == 8){
815
+          name = "HFHD"
816
+        }
817
+
818
+       if(id == 9){
819
+          name = "HFHD+HP"
820
+        }
821
+       if(id == 10){
822
+          name = "PHF"
823
+        }
824
+
825
+       if(id == 11){
826
+          name = "HFR"
827
+        }
828
+
829
+        if(id == 12){
830
+          name = "HDF+HP"
831
+        }
832
+
833
+        if(id == 13){
834
+          name = "CRRT"
835
+        }
836
+
837
+        if(id == 14){
838
+          name = "腹水回输"
839
+        }
840
+        if(id == 19){
841
+          name = "IUF+HD"
842
+        }
843
+        if(id == 20){
844
+          name = "UF"
845
+        }
846
+        return name
847
+     },
848
+
849
+     getAnticoagulant(id){
850
+       var name = ""
851
+       if(id == 1){
852
+         name = "无肝素"
853
+       }
854
+       if(id == 2){
855
+         name = "普通肝素"
856
+       }
857
+       if(id == 3){
858
+         name = "低分子肝素"
859
+       }
860
+       if(id == 4){
861
+         name = "阿加曲班"
862
+       }
863
+       if(id == 5){
864
+         name = "枸橼酸钠"
865
+       }
866
+       if(id == 6){
867
+         name ="低分子肝素钙"
868
+       }
869
+       if(id == 7){
870
+         name = "低分子肝素钠"
871
+       }
872
+       return name
873
+     },
874
+     getBloodAccess(id){
875
+       
876
+        let vascular_access_desc = getDataConfig(
877
+          'hemodialysis',
878
+          'vascular_access_desc'
879
+        )
880
+        var name = ""
881
+        for(let i=0;i<vascular_access_desc.length;i++){
882
+          if(vascular_access_desc[i].id == id){
883
+             name = vascular_access_desc[i].name
884
+          }
885
+        }
886
+        return name
887
+     }
467 888
     },
468 889
 
469 890
     props: {
@@ -485,13 +906,146 @@
485 906
         default: () => {
486 907
           return { id: 0 }
487 908
         }
488
-      }
909
+      },
910
+      predialysis_evaluation: { // 透前评估
911
+        type: Object,
912
+        default: () => {
913
+          return { id: 0 }
914
+        }
915
+      },
916
+      prescription: {
917
+        // 透析处方
918
+        type: Object,
919
+        default: () => {
920
+          return { id: 0 }
921
+        }
922
+      },
489 923
 
490 924
     },
491 925
     watch: {
492 926
       isVisibility(val) {
493
-
494
-      }, 'double_check.id': function() {
927
+      
928
+        if(this.prescription!=null && this.prescription.id!=0){
929
+          this.diazes = this.diazes + this.prescription.dialyzer_perfusion_apparatus
930
+          this.dialysate_formulation = this.dialysate_formulation + this.GetDialysateFormulationById(this.prescription.dialysate_formulation)
931
+         
932
+          this.kalium = this.kalium + (this.prescription.kalium?this.prescription.kalium:"")
933
+         
934
+          this.calcium = this.calcium + (this.prescription.calcium?this.prescription.calcium:"")
935
+          this.dialys_mode = this.dialys_mode + this.getMode(this.prescription.mode_id)
936
+          this.long_time = this.long_time + (this.prescription.dialysis_duration?this.prescription.dialysate_formulation:"")
937
+          this.target_ultrafiltration = this.target_ultrafiltration + (this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:"")
938
+          this.anticoagulant = this.anticoagulant + this.getAnticoagulant(this.prescription.anticoagulant)
939
+          this.anticoagulant_shouji = this.anticoagulant_shouji + (this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:"")
940
+          this.anticoagulant_weichi = this.anticoagulant_weichi + (this.prescription.anticoagulant_weichi?this.prescription.anticoagulant_weichi:"")
941
+          this.anticoagulant_zongliang = this.anticoagulant_zongliang+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:"")
942
+          this.displace_liqui_part = this.displace_liqui_part + (this.prescription.displace_liqui_part?this.prescription.displace_liqui_part:"")
943
+          this.replacement_total = this.replacement_total + (this.prescription.replacement_total?this.prescription.replacement_total:"")
944
+          this.dialysate_flow = this.dialysate_flow + (this.prescription.dialysate_flow?this.prescription.dialysate_flow:"")
945
+        }
946
+        if(this.predialysis_evaluation!=null && this.predialysis_evaluation.id!=0){
947
+          this.puncture_needle = this.puncture_needle + this.predialysis_evaluation.puncture_needle
948
+          this.blood_access_part_opera_id = this.blood_access_part_opera_id + this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id)
949
+        } 
950
+        if(this.double_check !=null && this.double_check.id!=0){
951
+           console.log("双人核对",this.double_check)
952
+           if(this.double_check.dialysis_item_desc.indexOf("透析器/灌流器")!=-1){
953
+             this.checkList.push("透析器/灌流器:"+this.prescription.dialyzer_perfusion_apparatus)
954
+             console.log("222222",this.checkList)
955
+           }
956
+           if(this.double_check.dialysis_item_desc.indexOf("穿刺针")!=-1){
957
+              this.checkList.push("穿刺针:"+(this.predialysis_evaluation.puncture_needle?this.predialysis_evaluation.puncture_needle:""))
958
+           }
959
+           if(this.double_check.dialysis_item_desc.indexOf("透析液配方:")!=-1){
960
+              this.checkList.push("透析液配方:"+this.GetDialysateFormulationById(this.prescription.dialysate_formulation))
961
+           }
962
+           if(this.double_check.dialysis_item_desc.indexOf("钾:")!=-1){
963
+              this.checkList.push("钾:"+(this.prescription.kalium?this.prescription.kalium:""))
964
+           }
965
+           if(this.double_check.dialysis_item_desc.indexOf("钙:")!=-1){
966
+               this.checkList.push("钙:"+(this.prescription.calcium?this.prescription.calcium:""))
967
+           }
968
+           if(this.double_check.dialysis_parameter_desc.indexOf("透析模式:")!=-1){
969
+              this.checkListOne.push("透析模式:"+this.getMode(this.prescription.mode_id))
970
+           }
971
+           if(this.double_check.dialysis_parameter_desc.indexOf("透析时长")!=-1){
972
+              this.checkListOne.push("透析时长:"+(this.prescription.dialysis_duration?this.prescription.dialysate_formulation:""))
973
+           }
974
+           if(this.double_check.dialysis_parameter_desc.indexOf("目标超滤量")!=-1){
975
+              this.checkListOne.push("目标超滤量:"+(this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:""))
976
+           }
977
+           if(this.double_check.dialysis_parameter_desc.indexOf("抗凝剂")!=-1){
978
+              this.checkListOne.push("抗凝剂:"+this.getAnticoagulant(this.prescription.anticoagulant))
979
+           }
980
+           if(this.double_check.dialysis_parameter_desc.indexOf("首剂")!=-1){
981
+              this.checkListOne.push("首剂:"+(this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:""))
982
+           }
983
+           if(this.double_check.dialysis_parameter_desc.indexOf("维持")!=-1){
984
+              this.checkListOne.push("维持:"+(this.prescription.anticoagulant_weichi?this.prescription.anticoagulant_weichi:""))
985
+           }
986
+          if(this.double_check.dialysis_parameter_desc.indexOf("总量")!=-1){
987
+              this.checkListOne.push("总量:"+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:""))
988
+           }
989
+          if(this.double_check.dialysis_parameter_desc.indexOf("置换液")!=-1){
990
+              this.checkListOne.push("置换液:"+(this.prescription.displace_liqui_part?this.prescription.displace_liqui_part:""))
991
+           }
992
+           if(this.double_check.dialysis_parameter_desc.indexOf("置换总量")!=-1){
993
+             this.checkListOne.push("置换总量:"+(this.prescription.replacement_total?this.prescription.replacement_total:""))
994
+           }
995
+           if(this.double_check.dialysis_parameter_desc.indexOf("处方血流量")!=-1){
996
+             this.checkListOne.push("处方血流量:"+(this.prescription.blood_flow_volume?this.prescription.blood_flow_volume:""))
997
+           }
998
+           if(this.double_check.dialysis_parameter_desc.indexOf("透析液流量")!=-1){
999
+             this.checkListOne.push("透析液流量:"+(this.prescription.dialysate_flow?this.prescription.dialysate_flow:""))
1000
+           }
1001
+           if(this.double_check.vascular_access_desc.indexOf("通路类型")!=-1){
1002
+             this.checkListTwo.push("通路类型:"+this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id))
1003
+           }
1004
+
1005
+           if(this.double_check.vascular_access_desc.indexOf("动静脉接错")!=-1){
1006
+             this.checkListTwo.push("动静脉接错")
1007
+           }
1008
+           if(this.double_check.vascular_access_desc.indexOf("渗血")!=-1){
1009
+             this.checkListTwo.push("渗血")
1010
+           }
1011
+           if(this.double_check.vascular_access_desc.indexOf("压迫")!=-1){
1012
+             this.checkListTwo.push("压迫")
1013
+           }
1014
+          if(this.double_check.vascular_access_desc.indexOf("折叠")!=-1){
1015
+             this.checkListTwo.push("折叠")
1016
+           }
1017
+          if(this.double_check.vascular_access_desc.indexOf("滑脱")!=-1){
1018
+             this.checkListTwo.push("滑脱")
1019
+           }
1020
+
1021
+           if(this.double_check.pipeline_connection_desc.indexOf("泵前补液测管未夹")!=-1){
1022
+             this.checkListThree.push("泵前补液测管未夹")
1023
+           }
1024
+           if(this.double_check.pipeline_connection_desc.indexOf("肝素管夹未开启")!=-1){
1025
+             this.checkListThree.push("肝素管夹未开启")
1026
+           }
1027
+           if(this.double_check.pipeline_connection_desc.indexOf("透析器连接错误")!=-1){
1028
+             this.checkListThree.push("透析器连接错误")
1029
+           }
1030
+           if(this.double_check.pipeline_connection_desc.indexOf("动静脉壶页面不标准")!=-1){
1031
+             this.checkListThree.push("动静脉壶页面不标准")
1032
+           }
1033
+           if(this.double_check.pipeline_connection_desc.indexOf("静脉管路未卡入保护夹")!=-1){
1034
+             this.checkListThree.push("静脉管路未卡入保护夹")
1035
+           }
1036
+           if(this.double_check.pipeline_connection_desc.indexOf("压力传感器夹未打开")){
1037
+              this.checkListThree.push("压力传感器夹未打开")
1038
+           }
1039
+           if(this.double_check.pipeline_connection_desc.indexOf("接口连接松动")){
1040
+              this.checkListThree.push("接口连接松动")
1041
+           }
1042
+           if(this.double_check.pipeline_connection_desc.indexOf("管路打折")){
1043
+             this.checkListThree.push("管路打折")
1044
+           }
1045
+           console.log("hhh",this.checkListOne)
1046
+        }
1047
+      }, 
1048
+      'double_check.id': function() {
495 1049
         if (this.double_check.id > 0) {
496 1050
           for (var index in this.doubleReview) {
497 1051
             this.doubleReview[index] = this.double_check[index] + ''
@@ -558,6 +1112,7 @@
558 1112
 
559 1113
     },
560 1114
     created() {
1115
+     
561 1116
       var date = this.$route.query && this.$route.query.date
562 1117
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
563 1118
 
@@ -571,12 +1126,28 @@
571 1126
         this.check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
572 1127
       }
573 1128
       this.first_check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
574
-
1129
+     
575 1130
     }
576 1131
 
577 1132
   }
578 1133
 </script>
579 1134
 
580
-<style scoped>
581
-
1135
+<style lang="scss">
1136
+.newInline{
1137
+  display: flex;
1138
+}
1139
+.newItem{
1140
+  flex: 1;
1141
+  display: flex !important;
1142
+  .el-form-item__content{
1143
+    width: 100%;
1144
+  }
1145
+}
1146
+.newCheckBox{
1147
+  margin-bottom: 10px;
1148
+  .el-checkbox{
1149
+    margin-bottom: 10px;
1150
+  }
1151
+}
582 1152
 </style>
1153
+

+ 8 - 6
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Целия файл

@@ -163,6 +163,7 @@
163 163
                   template_id == 31 ||
164 164
                   template_id == 32 ||
165 165
                   template_id == 34 ||
166
+                  template_id == 35 ||
166 167
                   org_id == 9555)
167 168
             "
168 169
           >
@@ -202,6 +203,7 @@
202 203
                 template_id != 31 &&
203 204
                 template_id != 32 &&
204 205
                 template_id != 34 &&
206
+                template_id != 35 &&
205 207
                 org_id!=9555
206 208
             "
207 209
           >
@@ -219,7 +221,7 @@
219 221
             align="center"
220 222
             label="超滤率(ml/h)"
221 223
             width="100"
222
-            v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34) "
224
+            v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35) "
223 225
           >
224 226
             <template slot-scope="scope">
225 227
               {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : ""  }}
@@ -230,7 +232,7 @@
230 232
             align="center"
231 233
             label="超滤率(L/h)"
232 234
             width="100"
233
-            v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22  && template_id != 23 && template_id != 24 && template_id != 26 && template_id != 29 && template_id != 30 && template_id != 31 && template_id != 34"
235
+            v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22  && template_id != 23 && template_id != 24 && template_id != 26 && template_id != 29 && template_id != 30 && template_id != 31 && template_id != 34 && template_id != 35"
234 236
           >
235 237
             <template slot-scope="scope">
236 238
               {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : ""  }}
@@ -518,12 +520,12 @@
518 520
             </el-form-item>
519 521
           </el-col>
520 522
 
521
-          <el-col :span="8" v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34) ">
523
+          <el-col :span="8" v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35) ">
522 524
             <el-form-item label="超滤率(ml/h)">
523 525
               <el-input v-model="form.ultrafiltration_rate"></el-input>
524 526
             </el-form-item>
525 527
           </el-col>
526
-          <el-col :span="8" v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id != 29 && template_id != 30 && template_id != 31 && template_id != 34">
528
+          <el-col :span="8" v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id != 29 && template_id != 30 && template_id != 31 && template_id != 34 && template_id != 35">
527 529
             <el-form-item label="超滤率(L/h)">
528 530
               <el-input v-model="form.ultrafiltration_rate"></el-input>
529 531
             </el-form-item>
@@ -531,7 +533,7 @@
531 533
 
532 534
           <el-col
533 535
             :span="8"
534
-            v-if=" isShow('超滤量') && (template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || org_id == 9555) " >
536
+            v-if=" isShow('超滤量') && (template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || org_id == 9555) " >
535 537
             <el-form-item label="超滤量(ml):">
536 538
               <el-input v-model="form.ultrafiltration_volume"></el-input>
537 539
             </el-form-item>
@@ -539,7 +541,7 @@
539 541
 
540 542
           <el-col
541 543
             :span="8"
542
-            v-if=" isShow('超滤量') && template_id != 6 && template_id !=9 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id!=27 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && org_id !=9555" >
544
+            v-if=" isShow('超滤量') && template_id != 6 && template_id !=9 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id!=27 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && org_id !=9555" >
543 545
             <el-form-item label="超滤量(L):">
544 546
               <el-input v-model="form.ultrafiltration_volume"></el-input>
545 547
             </el-form-item>

+ 4 - 4
src/xt_pages/dialysis/details/dialysisMonitoring.vue Целия файл

@@ -14,10 +14,10 @@
14 14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15 15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16 16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
17
-          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || this.$store.getters.xt_user.template_info.org_id == 9555)" width="76px" > 超滤量(ml)</th>
18
-          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && this.$store.getters.xt_user.template_info.org_id != 9555"  width="76px"> 超滤量(L) </th>
19
-          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34)" width="50px"> 超滤率 <br />(ml/h) </th>
20
-          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34" width="50px"> 超滤率 <br />(L/h) </th>
17
+          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || this.$store.getters.xt_user.template_info.org_id == 9555)" width="76px" > 超滤量(ml)</th>
18
+          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && this.$store.getters.xt_user.template_info.org_id != 9555"  width="76px"> 超滤量(L) </th>
19
+          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35)" width="50px"> 超滤率 <br />(ml/h) </th>
20
+          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35" width="50px"> 超滤率 <br />(L/h) </th>
21 21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
22 22
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
23 23
           <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29) " width="92px" > 置换率(ml/min) </th>

+ 15 - 19
src/xt_pages/dialysis/details/doubleCheck.vue Целия файл

@@ -7,24 +7,22 @@
7 7
           <label>透析物品核查 : </label>
8 8
           <span class="content">{{ dialysis_item_check }}</span>
9 9
         </li>
10
-        <li>
11
-          <label>透析参数核查 : </label>
12
-          <span class="content">{{ dialysis_parameter_check }}</span>
13
-        </li>
14
-        <li>
15
-          <label>血管通路核查 : </label>
16
-          <span class="content">{{ vascular_access_verification }}</span>
17
-        </li>
18
-      </ul>
19
-      <ul>
20 10
         <li>
21 11
           <label>{{ dialysis_item_desc_title }}</label>
22 12
           <span class="content">{{ dialysis_item_desc }}</span>
23 13
         </li>
14
+        <li>
15
+          <label>透析参数核查 : </label>
16
+          <span class="content">{{ dialysis_parameter_check }}</span>
17
+        </li>
24 18
         <li>
25 19
           <label>{{ dialysis_parameter_desc_title }}</label>
26 20
           <span class="content">{{ dialysis_parameter_desc }}</span>
27 21
         </li>
22
+        <li>
23
+          <label>血管通路核查 : </label>
24
+          <span class="content">{{ vascular_access_verification }}</span>
25
+        </li>
28 26
         <li>
29 27
           <label>{{ vascular_access_desc_title }}</label>
30 28
           <span class="content">{{ vascular_access_desc }}</span>
@@ -32,9 +30,13 @@
32 30
       </ul>
33 31
       <ul>
34 32
           <li>
35
-          <label>管道连接核查 : </label>
36
-          <span class="content">{{ pipeline_connection_check }}</span>
37
-        </li>
33
+            <label>管道连接核查 : </label>
34
+            <span class="content">{{ pipeline_connection_check }}</span>
35
+          </li>
36
+          <li>
37
+            <label>{{ pipeline_connection_desc_title }}</label>
38
+            <span class="content">{{ pipeline_connection_desc }}</span>
39
+          </li>
38 40
           <li>
39 41
           <label>第一次核对人员 : </label>
40 42
           <span class="content">{{getCreaterName(record.creater)}}</span>
@@ -44,12 +46,6 @@
44 46
           <span class="content">{{getCreateTime(record.first_check_time,record.creater)}}</span>
45 47
         </li>
46 48
       </ul>
47
-      <ul>
48
-          <li>
49
-          <label>{{ pipeline_connection_desc_title }}</label>
50
-          <span class="content">{{ pipeline_connection_desc }}</span>
51
-        </li>
52
-      </ul>
53 49
       <ul>
54 50
 
55 51
         <li>

+ 24 - 14
src/xt_pages/dialysis/details/index.vue Целия файл

@@ -267,6 +267,7 @@
267 267
         :system_prescribe="system_prescribe"
268 268
         :his_is_open="his_is_open"
269 269
         :lastAssessment="lastAssessment"
270
+        :stockType="stockType"
270 271
       >
271 272
       </nav-igation>
272 273
 
@@ -283,6 +284,7 @@
283 284
         :prescription="prescription"
284 285
         :solution="solution"
285 286
         :device_map="device_map"
287
+        :preparestock="preparestock"
286 288
         title="透析处方"
287 289
       ></dialysis-prescription>
288 290
 
@@ -681,7 +683,8 @@ export default {
681 683
       curPatient:{},
682 684
 
683 685
       queueConfig:{},
684
-      stockType:[]
686
+      stockType:[],
687
+      preparestock:[]
685 688
     }
686 689
   },
687 690
   created() {
@@ -971,24 +974,24 @@ export default {
971 974
 
972 975
       this.doctor_advices = []
973 976
       getDialysisScheduleDetail(this.patient_id, dateStr).then(rs => {
974
-        
977
+
975 978
         var resp = rs.data
976 979
         if (resp.state == 1) {
977 980
           var patient = resp.data.patient // 患者信息
978 981
           var schedual = resp.data.schedual // 患者排班信息
979
-        
982
+
980 983
           var prescription = resp.data.prescription // 透析处方
981 984
           if (prescription != null) {
982 985
             if (prescription.body_fluid == -2) {
983 986
               prescription.body_fluid = 0
984 987
             }
985 988
           }
986
-        
989
+
987 990
           var solution = resp.data.solution // 透析方案
988 991
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
989
-         
992
+
990 993
           var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
991
-         
994
+           console.log("透器评估",predialysis_evaluation)
992 995
           if (predialysis_evaluation != null) {
993 996
             if (predialysis_evaluation.blood_access_part_id == -2) {
994 997
               predialysis_evaluation.blood_access_part_id = 0
@@ -1018,7 +1021,7 @@ export default {
1018 1021
           var aliquid_info = resp.data.aliquid_info
1019 1022
 
1020 1023
           var lastPredialysisEvaluation = resp.data.lastPredialysisEvaluation
1021
-        
1024
+
1022 1025
           if (lastPredialysisEvaluation != null) {
1023 1026
             if (lastPredialysisEvaluation.blood_access_part_id == -2) {
1024 1027
               lastPredialysisEvaluation.blood_access_part_id = 0
@@ -1028,9 +1031,9 @@ export default {
1028 1031
           var lastAssessmentAfterDislysis = resp.data.lastAssessmentAfterDislysis
1029 1032
           var lastDialysisPrescribe = resp.data.lastDialysisPrescribe
1030 1033
           var lastDryWeightDislysis = resp.data.lastDryWeightDislysis
1031
-         
1034
+
1032 1035
           var system_prescribe = resp.data.system_prescribe
1033
-           
1036
+
1034 1037
           var lastAssessment =  resp.data.lastAssessment
1035 1038
           console.log("最后一次血管通路",lastAssessment)
1036 1039
           this.$refs.nav.setLastRecord(
@@ -1115,19 +1118,26 @@ export default {
1115 1118
           this.dialysis_order =
1116 1119
             dialysis_order == null ? { id: 0 } : dialysis_order
1117 1120
 
1118
-         
1121
+
1119 1122
 
1120 1123
           this.admin_users = resp.data.doctors
1121 1124
           this.devices = resp.data.devices
1122 1125
           this.device_numbers = resp.data.device_numbers
1123 1126
 
1124 1127
           var his_doctor_advices = resp.data.his_advices
1125
-          
1128
+
1126 1129
           this.his_is_open = resp.data.is_open_config.is_open
1127 1130
           console.log(this.his_is_open)
1128
-          
1129
-      
1130
-          
1131
+
1132
+
1133
+
1134
+          var stockType =  resp.data.stockType
1135
+          this.stockType = stockType
1136
+          console.log("stockTYPW",stockType)
1137
+
1138
+          var prepare = resp.data.prepare
1139
+          this.preparestock = prepare
1140
+          console.log("prepare222222",prepare)
1131 1141
           for (let i = 0; i <  this.doctor_advices.length; i++){
1132 1142
             this.doctor_advices[i]['origin'] = 1
1133 1143
           }

+ 11 - 1
src/xt_pages/dialysis/dialysisDoctorAdvice.vue Целия файл

@@ -114,6 +114,8 @@
114 114
         <el-table-column prop="date" label="透析器" align="center" min-width="26px">
115 115
           <template slot-scope="scope">
116 116
             <span>{{ scope.row.dialyzer_perfusion_apparatus }}</span>
117
+            <span v-if="scope.row.dialysis_dialyszers!=''">{{scope.row.dialysis_dialyszers}}</span>
118
+            <span v-if="scope.row.dialysis_irrigation!=''">{{scope.row.dialysis_irrigation}}</span>
117 119
           </template>
118 120
         </el-table-column>
119 121
         <el-table-column prop="start_time" label="开始时间" align="center" min-width="35px">
@@ -234,7 +236,11 @@
234 236
         </el-table-column>
235 237
         <el-table-column prop="date" label="透析器" align="center" min-width="26px">
236 238
           <template slot-scope="scope">
237
-            <span>{{ scope.row.dialyzer_perfusion_apparatus }}</span>
239
+            <span>
240
+              {{ scope.row.dialyzer_perfusion_apparatus }}
241
+              <span v-if="scope.row.dialysis_dialyszers!=''">{{scope.row.dialysis_dialyszers}}</span>
242
+              <span v-if="scope.row.dialysis_irrigation!=''">{{scope.row.dialysis_irrigation}}</span>
243
+            </span>
238 244
           </template>
239 245
         </el-table-column>
240 246
         <el-table-column prop="start_time" label="开始时间" align="center" min-width="35px">
@@ -496,6 +502,8 @@ export default {
496 502
                 it.name = item.patient.name
497 503
                     if(item.prescription != null){
498 504
                        it.dialyzer_perfusion_apparatus = item.prescription.dialyzer_perfusion_apparatus
505
+                       it.dialysis_dialyszers = item.prescription.dialysis_dialyszers
506
+                       it.dialysis_irrigation = item.prescription.dialysis_irrigation
499 507
                     }
500 508
                     it.schedule_type = item.schedule_type
501 509
                     it.zoneId = item.device_number.zone.id
@@ -554,6 +562,8 @@ export default {
554 562
                 it.name = item.patient.name
555 563
                     if(item.prescription != null){
556 564
                        it.dialyzer_perfusion_apparatus = item.prescription.dialyzer_perfusion_apparatus
565
+                       it.dialysis_dialyszers = item.prescription.dialysis_dialyszers
566
+                       it.dialysis_irrigation = item.prescription.dialysis_irrigation
557 567
                     }
558 568
                     it.schedule_type = item.schedule_type
559 569
                     it.zoneId = item.device_number.zone.id

+ 24 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue Целия файл

@@ -485,6 +485,16 @@
485 485
           >打印</el-button
486 486
         >
487 487
       </template>
488
+      <template v-if="org_template_info.template_id == 35">
489
+        <el-button
490
+          :loading="loading"
491
+          size="small"
492
+          icon="el-icon-printer"
493
+          @click="printThisPage"
494
+          type="primary"
495
+          >打印</el-button
496
+        >
497
+      </template>
488 498
     </div>
489 499
     <div class="app-container" style="min-height:0;">
490 500
       <!--<div class="order-print-btn"-->
@@ -735,6 +745,11 @@
735 745
             v-if="org_template_info.template_id == 34"
736 746
           >
737 747
           </DialysisPrintOrderThirtyFour>
748
+          <DialysisPrintOrderThirtyFive
749
+            v-bind:childResponse="childResponse"
750
+            v-if="org_template_info.template_id == 35"
751
+          >
752
+          </DialysisPrintOrderThirtyFive>
738 753
         </div>
739 754
       </el-container>
740 755
     </div>
@@ -788,9 +803,11 @@ import DialysisPrintOrderThirtyOne from "./template/DialysisPrintOrderThirtyOne"
788 803
 import DialysisPrintOrderThirtyTwo from "./template/DialysisPrintOrderThirtyTwo";
789 804
 import DialysisPrintOrderThirtyThree from "./template/DialysisPrintOrderThirtyThree";
790 805
 import DialysisPrintOrderThirtyFour from "./template/DialysisPrintOrderThirtyFour";
806
+import DialysisPrintOrderThirtyFive from "./template/DialysisPrintOrderThirtyFive";
791 807
 export default {
792 808
   name: "dialysisPrintOrder",
793 809
   components: {
810
+    DialysisPrintOrderThirtyFive,
794 811
     DialysisPrintOrderThirtyFour,
795 812
     DialysisPrintOrderThirtyThree,
796 813
     DialysisPrintOrderThirtyTwo,
@@ -1223,6 +1240,13 @@ export default {
1223 1240
           style: style2,
1224 1241
           scanStyles: false
1225 1242
         });
1243
+      } else if (this.org_template_info.template_id == 35) {
1244
+        printJS({
1245
+          printable: "dialysis-print-box",
1246
+          type: "html",
1247
+          style: style,
1248
+          scanStyles: false
1249
+        });
1226 1250
       }
1227 1251
     },
1228 1252
     printThisOnePage() {

+ 5 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue Целия файл

@@ -509,7 +509,11 @@
509 509
                     <td width="140">透析器/灌流器型号:</td>
510 510
                     <td width="">
511 511
                       <div class="under-line">
512
-                        &nbsp;{{ prescription.dialyzer_perfusion_apparatus }}
512
+                          <span v-if="org_id ==9987 || org_id== 3877 || org_id == 4 || org_id == 9671">
513
+                            <span>{{prescription.dialysis_dialyszers}}</span>
514
+                            <span v-if="prescription.dialysis_irrigation!=''">/{{prescription.dialysis_irrigation}}</span>
515
+                          </span>
516
+                        &nbsp;<span else>{{ prescription.dialyzer_perfusion_apparatus }}</span> 
513 517
                       </div>
514 518
                     </td>
515 519
                   </tr>

Файловите разлики са ограничени, защото са твърде много
+ 2139 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyFive.vue


+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue Целия файл

@@ -874,7 +874,7 @@
874 874
             <td style="line-height:20px;" width="40">钠<br />浓<br />度<br /><span style="font-size:10px; !important">mmol/L</span></td>
875 875
             <td style="line-height:20px;" width="40">电<br />导<br />度<br /><span style="font-size:10px; !important">ms/cm</span></td>
876 876
             
877
-            <td style="line-height:20px;" width="60">透析液<br />温度<br /><span style="font-size:10px; !important">ml</span></td>
877
+            <td style="line-height:20px;" width="60">透析液<br />温度<br /><span style="font-size:10px; !important"></span></td>
878 878
             <td style="line-height:20px;" width="">病情变化及处理</td>
879 879
             <td style="line-height:20px;" width="60">签名</td>
880 880
           </tr>

+ 8 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue Целия файл

@@ -661,12 +661,18 @@
661 661
                     <td width="60">
662 662
                         <div class="under-line">&nbsp;{{ (prescription.anticoagulant == '阿加曲班' || prescription.anticoagulant == '普通肝素') && prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : "" }}</div>
663 663
                     </td>
664
-                    <td width="10">ml,</td>
664
+                    <td width="15">
665
+                      <span v-if="prescription.anticoagulant =='阿加曲班'">ml,</span>
666
+                      <span v-if="prescription.anticoagulant =='普通肝素'">iu,</span>
667
+                     </td>
665 668
                     <td width="60">追加量</td>
666 669
                     <td width="60">
667 670
                         <div class="under-line">&nbsp;{{ (prescription.anticoagulant == '阿加曲班' || prescription.anticoagulant == '普通肝素') && prescription.anticoagulant_weichi ? prescription.anticoagulant_weichi : "" }}</div>
668 671
                     </td>
669
-                    <td width="10">ml</td>
672
+                    <td width="10">
673
+                      <span v-if="prescription.anticoagulant =='阿加曲班'">ml</span>
674
+                      <span v-if="prescription.anticoagulant =='普通肝素'">iu/h</span>
675
+                    </td>
670 676
                     <td width="10">)</td>
671 677
                     <td width="100">
672 678
                         <label-box :isChecked="prescription.anticoagulant == '无肝素' ? true : false" showValue="无肝素"></label-box>

+ 2 - 1
src/xt_pages/management/components/PlanForm.vue Целия файл

@@ -183,7 +183,8 @@ export default {
183 183
         { id: 1, name: "0.22%季铵盐" },
184 184
         { id: 2, name: "500mg/l含氯消毒剂" },
185 185
         { id: 3, name: "1000mg/l含氯消毒剂" },
186
-        { id: 4, name: "1500mg/l含氯消毒剂" }
186
+        { id: 4, name: "1500mg/l含氯消毒剂" },
187
+        { id: 5,  name:"消毒湿巾"}
187 188
       ],
188 189
       // 夜路消毒方式
189 190
       sterilizeType: [

+ 8 - 1
src/xt_pages/management/home.vue Целия файл

@@ -2329,7 +2329,8 @@ export default {
2329 2329
           { id: 1, name: '0.22%季铵盐' },
2330 2330
           { id: 2, name: '500mg/l含氯消毒剂' },
2331 2331
           { id: 3, name: '1000mg/l含氯消毒剂' },
2332
-          { id: 4, name: '1500mg/l含氯消毒剂' }
2332
+          { id: 4, name: '1500mg/l含氯消毒剂' },
2333
+          { id: 5,  name:  "消毒湿巾"}
2333 2334
         ],
2334 2335
         // 夜路消毒方式
2335 2336
         sterilizeType: [
@@ -3212,6 +3213,9 @@ export default {
3212 3213
               if (plan[index].machine_disinfectant === 4) {
3213 3214
                 plan[index].machine_disinfectant = '1500mg/l含氯消毒剂'
3214 3215
               }
3216
+              if(plan[index].machine_disinfectant === 5){
3217
+                 plan[index].machine_disinfectant = "消毒湿巾"
3218
+              }
3215 3219
 
3216 3220
               if (plan[index].disinfectan_way === 0) {
3217 3221
                 plan[index].disinfectan_way = '/'
@@ -3346,6 +3350,9 @@ export default {
3346 3350
               if (plandetail[index].machine_disinfectant === 4) {
3347 3351
                 plandetail[index].machine_disinfectant = '1500mg/l含氯消毒剂'
3348 3352
               }
3353
+              if(plandetail[index].machine_disinfectant === 5){
3354
+                  plandetail[index].machine_disinfectant = "消毒湿巾"
3355
+              }
3349 3356
 
3350 3357
               if (plandetail[index].disinfectan_way === 0) {
3351 3358
                 plandetail[index].disinfectan_way = '/'

+ 1 - 0
src/xt_pages/medicalScheduling/index.vue Целия файл

@@ -1794,6 +1794,7 @@ export default {
1794 1794
                 start_time:this.getTimestamp(this.weekDayArr[0]),
1795 1795
                 end_time:this.getTimestamp(this.weekDayArr[6])
1796 1796
             }
1797
+           
1797 1798
             copyStaffSchedule(params).then(response=>{
1798 1799
                 if(response.data.state == 1){
1799 1800
                 var msg =  response.data.data.msg

+ 29 - 4
src/xt_pages/stock/Dialog/goodInfoDailog.vue Целия файл

@@ -54,14 +54,23 @@
54 54
               <el-input v-model="form.specification_name" placeholder="" maxlength="30"></el-input>
55 55
             </el-form-item>
56 56
             <el-form-item label="生产厂商 : " prop="manufacturer" style="width:100%">
57
-              <el-select v-model="form.manufacturer" style="width:100%" placeholder="请选择">
57
+              <!-- <el-select v-model="form.manufacturer" style="width:100%" placeholder="请选择" filterable>
58 58
                 <el-option
59
-                  v-for="item,index in form.manufacturers"
59
+                  v-for="(item,index) in form.manufacturers"
60 60
                   :key="index"
61 61
                   :label="item.manufacturer_name"
62 62
                   :value="item.id">
63 63
                 </el-option>
64
-              </el-select>
64
+              </el-select> -->
65
+
66
+               <el-select v-model="form.manufacturer" style="width:100%;" filterable placeholder="请选择">
67
+                  <el-option
68
+                    v-for="(item,index) in form.manufacturers"
69
+                    :key="index"
70
+                    :label="item.manufacturer_name"
71
+                    :value="item.id">
72
+                  </el-option>
73
+             </el-select>
65 74
             </el-form-item>
66 75
             <el-form-item label="单位 : " prop="good_unit">
67 76
               <el-select v-model="form.good_unit" style="width:160px;" placeholder="请选择">
@@ -241,7 +250,7 @@
241 250
 
242 251
 <script>
243 252
   import { getDictionaryDataConfig,getDataConfig } from '@/utils/data'
244
-
253
+  import { getManufacturerList } from "@/api/stock";
245 254
   export default {
246 255
     name: 'goodInfoDailog',
247 256
     data() {
@@ -418,6 +427,7 @@
418 427
         })
419 428
       },
420 429
       getValue: function() {
430
+        console.log("生产吃",this.form.manufacturer)
421 431
         const form = {}
422 432
         form['specification_name'] = this.form.specification_name
423 433
         form['good_unit'] = this.form.good_unit
@@ -458,6 +468,18 @@
458 468
         return form
459 469
       }, changeSelected: function(val) {
460 470
         console.log(val)
471
+      },
472
+      getlist(){
473
+         var params = {
474
+             page:this.page,
475
+             limit:this.limit
476
+          }
477
+          console.log("params2222222",params)
478
+        getManufacturerList(params).then(response=>{
479
+           var manufacturerList =   response.data.data.manufacturer
480
+           console.log("列表2222222",manufacturerList)
481
+           this.manufacturerList = manufacturerList
482
+        })
461 483
       }
462 484
     },
463 485
     watch: {
@@ -469,6 +491,9 @@
469 491
           this.good_unit = ''
470 492
         }
471 493
       }
494
+    },
495
+    created(){
496
+      this.getlist()
472 497
     }
473 498
   }
474 499
 

+ 38 - 11
src/xt_pages/stock/Dialog/goodTypeDialog.vue Целия файл

@@ -12,15 +12,18 @@
12 12
       <el-row>
13 13
         <el-col>
14 14
           <el-form-item label="耗材属性">
15
-              <el-radio v-model="formValue.stock_attribute" label="1">无</el-radio>
16
-              <el-radio v-model="formValue.stock_attribute" label="2">透析器</el-radio>
17
-              <el-radio v-model="formValue.stock_attribute" label="3">灌流器</el-radio>
15
+            
16
+              <el-radio-group v-model="formValue.stock_attribute" @change="changeRadio">
17
+                  <el-radio label="1">无</el-radio>
18
+                  <el-radio label="2">透析器</el-radio>
19
+                  <el-radio label="3">灌流器</el-radio>
20
+              </el-radio-group>
18 21
           </el-form-item>
19 22
         </el-col>
20 23
       </el-row>
21 24
       <el-row>
22 25
         <el-col>
23
-          <el-form-item label="耗材出库" prop="out_stock">
26
+          <el-form-item label="耗材出库" prop="out_stock" v-show="showAttribute">
24 27
              <el-radio v-model="formValue.out_stock" label="1">是</el-radio>
25 28
              <el-radio v-model="formValue.out_stock" label="2">否</el-radio>
26 29
           </el-form-item>     
@@ -67,7 +70,8 @@ export default {
67 70
         ]
68 71
       },
69 72
        out_stock: '1',
70
-       stock_attribute:"1"
73
+       stock_attribute:"1",
74
+       showAttribute:false
71 75
     };
72 76
   },
73 77
   props: {
@@ -84,7 +88,15 @@ export default {
84 88
     }
85 89
   },
86 90
   methods: {
87
-    show:function(){
91
+    show:function(val){
92
+      console.log("val22222222",this.formValue)
93
+      if(this.formValue.stock_attribute == "1"){
94
+        this.showAttribute = false
95
+      }
96
+      if(this.formValue.stock_attribute == "2" || this.formValue.stock_attribute =="3"){
97
+        this.showAttribute = true
98
+      }
99
+   
88 100
       this.visibility = true
89 101
 
90 102
     },hide:function(){
@@ -109,20 +121,35 @@ export default {
109 121
       form['out_stock'] = this.formValue.out_stock;
110 122
       form["stock_attribute"] = this.formValue.stock_attribute
111 123
       return form;
124
+    },
125
+
126
+    changeRadio(val){
127
+      if(val == 1){
128
+        this.showAttribute = false
129
+      }
130
+      if(val == 2 || val == 3){
131
+        this.showAttribute = true
132
+      }
112 133
     }
113 134
   },
135
+  
114 136
   watch: {
115 137
     visibility(val) {
116
-      !val &&
117
-        setTimeout(() => {
138
+      
139
+      !val && setTimeout(() => {
140
+        
118 141
           this.$refs["formValue"].resetFields();
119 142
           this.formValue.remark = "";
120 143
           this.formValue.type_name = "";
121 144
           this.formValue.stock_attribute="1";
122 145
           this.formValue.out_stock = "1"
123
-        }, 0);
124
-    }
125
-  }
146
+       }, 0);
147
+    },
148
+    
149
+   
150
+  },
151
+
152
+ 
126 153
 };
127 154
 </script>
128 155
 

+ 11 - 3
src/xt_pages/stock/Dialog/stockInDialog.vue Целия файл

@@ -49,6 +49,12 @@
49 49
             type="selection"
50 50
             width="55">
51 51
           </el-table-column>
52
+           <el-table-column
53
+            align="center"
54
+            label="耗材名称"
55
+            property="good_name"
56
+            style="word-break: keep-all;white-space:nowrap;"
57
+          ></el-table-column>
52 58
           <el-table-column
53 59
             align="center"
54 60
             label="规格名称"
@@ -136,7 +142,7 @@
136 142
         }
137 143
       },
138 144
        goodTypeTableChange: function(currentRow, oldCurrentRow) {
139
-        
145
+        console.log("currentRow2233333",currentRow)
140 146
         let keyName = ""
141 147
         var arr = []
142 148
         for(let i= 0;i<this.propForm.goods.length;i++){
@@ -149,12 +155,14 @@
149 155
         }
150 156
         this.currentGoodTypeId = parseInt(keyName)
151 157
         this.goodInfoTableData = arr[keyName]
158
+        
152 159
         for(let i=0;i<arr.length;i++){
153 160
           for(var key in arr[i]){
154 161
               this.goodInfo = arr[i][keyName]
155 162
               this.goodInfoTableData = arr[i][keyName]
156 163
           }
157
-         }
164
+        }
165
+        console.log("22222222哈哈哈哈哈哈哈哈哈",this.goodInfoTableData)
158 166
        },
159 167
       cancle: function(formName) {
160 168
         this.goodInfo = []
@@ -236,7 +244,7 @@
236 244
       changeGoodInfoTableData: function(val) {
237 245
       },
238 246
       changeAllGoodInfoTableData: function(selection) {
239
-        console.log("888878888888",this.propForm.goods)
247
+        console.log("888878888888",selection)
240 248
         var arr = []
241 249
         var id = 0
242 250
          for(let i=0;i<this.propForm.goods.length;i++){

+ 3 - 2
src/xt_pages/stock/config/goodType.vue Целия файл

@@ -339,12 +339,13 @@ export default {
339 339
         });
340 340
       } else if (val.isCreated == 1) {
341 341
         //新增
342
-        console.log("val22222",val)
342
+        
343 343
        
344 344
         createGoodType(val).then(response => {
345 345
           
346 346
           if (response.data.state == 0) {
347
-            this.$message.error(response.data.msg);
347
+            // this.$message.error(response.data.msg);
348
+            this.$message.error("透析器或灌流器商品类型已存在!")
348 349
             return false;
349 350
           } else {
350 351
             this.$refs.dialog.hide();

+ 18 - 18
src/xt_pages/stock/detail/stockOutDetail.vue Целия файл

@@ -322,17 +322,17 @@ export default {
322 322
       this.cancelStockDate = [];
323 323
       getStockDetail(Params).then(response => {
324 324
         if (response.data.state == 0) {
325
-          
325
+
326 326
           this.$message.error(response.data.msg);
327 327
           return false;
328 328
         } else {
329
-          
329
+
330 330
           this.total = response.data.data.total;
331 331
           for (let i = 0; i < response.data.data.list.length; i++) {
332 332
             var obj = response.data.data.list[i];
333 333
             obj["is_total"] = 0;
334 334
             this.cancelStockDate.push(obj);
335
-            
335
+
336 336
           }
337 337
           this.cancelStockDate.push({
338 338
             warehouse_out_order_number: "合计",
@@ -369,14 +369,14 @@ export default {
369 369
           this.$message.error(response.data.msg);
370 370
           return false;
371 371
         } else {
372
-          
372
+
373 373
           this.total = response.data.data.total;
374
-         
374
+
375 375
           for (let i = 0; i < response.data.data.list.length; i++) {
376 376
             var obj = response.data.data.list[i];
377 377
             obj["is_total"] = 0;
378 378
             this.cancelStockDate.push(obj);
379
-           
379
+
380 380
           }
381 381
           this.cancelStockDate.push({
382 382
             warehouse_out_order_number: "合计",
@@ -386,7 +386,7 @@ export default {
386 386
               warehouse_out_time: 0
387 387
             }
388 388
           });
389
-        
389
+
390 390
         }
391 391
       });
392 392
     },
@@ -644,7 +644,7 @@ export default {
644 644
                 this.tableList.push(list[i])
645 645
               }
646 646
             }
647
-          console.log("表哥",this.tableList)
647
+          // console.log("表哥",this.tableList)
648 648
           }
649 649
       })
650 650
     },
@@ -663,10 +663,10 @@ export default {
663 663
        array = stock.query_warehousing_info
664 664
         let total_price = 0.0
665 665
         for (let i = 0; i < array.length; i++) {
666
-         total_price = total_price + array[i].warehousing_count * array[i].price  
666
+         total_price = total_price + array[i].warehousing_count * array[i].price
667 667
         }
668 668
         return  Math.floor(total_price * 100) / 100
669
-      }, 
669
+      },
670 670
       calTotalPrice() {
671 671
         var amountPrice = 0
672 672
         for (let i = 0; i < this.tableList.length; i++) {
@@ -675,15 +675,15 @@ export default {
675 675
           len = obj.query_warehouseout_info.length
676 676
           let total_price = 0.0
677 677
           for (let a = 0; a < len; a++) {
678
-           total_price = total_price + obj.query_warehouseout_info[a].total_price   
678
+           total_price = total_price + obj.query_warehouseout_info[a].total_price
679 679
           }
680 680
 
681 681
           amountPrice = amountPrice +  Math.floor(total_price* 100) / 100
682 682
         }
683 683
         return Math.floor(amountPrice* 100) / 100
684
-      }, 
684
+      },
685 685
       getStockCount(id){
686
-        
686
+
687 687
         var count = ""
688 688
         for(let i=0;i<this.stockTotal.length;i++){
689 689
             if(id == this.stockTotal[i].good_id){
@@ -709,10 +709,10 @@ export default {
709 709
         r2 = Number(total.toString().replace('.', ''))
710 710
         return r1 * r2 / Math.pow(10, m)
711 711
       },
712
-   
712
+
713 713
 
714 714
      exportList(){
715
-     
715
+
716 716
       var obj = {index:"合计",total:0}
717 717
        obj.total = this.calTotalPrice()
718 718
        for(let i=0;i<this.tableList.length;i++){
@@ -727,13 +727,13 @@ export default {
727 727
        import('@/vendor/Export2Excel').then(excel => {
728 728
        const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','出货价','总价','备注']
729 729
        const filterVal = ['index','good_name', 'specification_name', 'min_unit','count','price','total','remark']
730
-       
731 730
 
732
-      
731
+
732
+
733 733
 
734 734
        const data = this.formatJson(filterVal, this.tableList)
735 735
        console.log("data",data)
736
-     
736
+
737 737
         excel.export_json_to_excel({
738 738
            header: tHeader,
739 739
            data,

+ 1 - 1
src/xt_pages/stock/index.vue Целия файл

@@ -13,7 +13,7 @@
13 13
           <!--<el-tab-pane label="经销商">-->
14 14
             <!--<dealer></dealer>-->
15 15
           <!--</el-tab-pane>-->
16
-          <el-tab-pane label="商品类型" name="first">
16
+          <el-tab-pane label="耗材类型" name="first">
17 17
             <good-type></good-type>
18 18
           </el-tab-pane>
19 19
           <!--<el-tab-pane label="商品信息">-->

+ 15 - 3
src/xt_pages/stock/stockInOrderAdd.vue Целия файл

@@ -58,13 +58,13 @@
58 58
                   style="width: 100%"
59 59
                   max-height="450" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
60 60
         >
61
-
61
+      
62 62
           <el-table-column align="center" width="200">
63
-
63
+            
64 64
             <template slot="header" slot-scope="scope">
65 65
               <span>耗材类型<span style="color: red">*</span></span>
66 66
             </template>
67
-
67
+     
68 68
             <template slot-scope="scope">
69 69
               <el-form-item style="padding-top: 15px;margin-left: 10px;margin-right: 10px">
70 70
                 <el-input placeholder="请输入耗材类型" v-model="scope.row.good_type_id"
@@ -74,6 +74,15 @@
74 74
             </template>
75 75
           </el-table-column>
76 76
           <el-table-column align="center" width="200">
77
+             <template slot="header" slot-scope="scope">
78
+              <span>耗材名称</span>
79
+            </template>
80
+            <template slot-scope="scope">
81
+               <el-input v-model="scope.row.good_name" :disabled="true"></el-input>
82
+            </template>
83
+          </el-table-column>
84
+          <el-table-column align="center" width="200">
85
+            
77 86
             <template slot="header" slot-scope="scope">
78 87
               <span>规格名称<span style="color: red">*</span></span>
79 88
             </template>
@@ -373,6 +382,7 @@
373 382
               this.recordInfo.recordData[this.currentIndex].good_id = val.selectedGoodInfo[i].id
374 383
               this.recordInfo.recordData[this.currentIndex].price = val.selectedGoodInfo[i].buy_price.toString()
375 384
               this.recordInfo.recordData[this.currentIndex].good_unit = val.selectedGoodInfo[i].good_unit
385
+              this.recordInfo.recordData[this.currentIndex].good_name = val.selectedGoodInfo[i].good_name
376 386
             } else {
377 387
               const tempForm = {}
378 388
               tempForm['good_type_id'] =val.selectedGoodInfo[i].good_type_id
@@ -386,6 +396,7 @@
386 396
               tempForm['dealer'] = ''
387 397
               tempForm['manufacturer'] = ''
388 398
               tempForm['good_unit'] = val.selectedGoodInfo[i].good_unit
399
+              tempForm['good_name'] = val.selectedGoodInfo[i].good_name
389 400
               this.recordInfo.recordData.splice(this.currentIndex + 1, 0, tempForm)
390 401
             }
391 402
           }
@@ -501,6 +512,7 @@
501 512
             for (let i = 0; i < response.data.data.info.length; i++) {
502 513
               this.recordInfo.recordData.push(response.data.data.info[i])
503 514
             }
515
+            console.log("333333333",this.recordInfo.recordData)
504 516
           }
505 517
         })
506 518
       }, getTime(val, temp) {

+ 26 - 0
src/xt_pages/stock/stockOutOrderAdd.vue Целия файл

@@ -126,6 +126,23 @@
126 126
               </el-form-item>
127 127
             </template>
128 128
           </el-table-column>
129
+           <el-table-column min-width="35" align="center">
130
+            <template slot="header" slot-scope="scope">
131
+              <span>耗材名称</span>
132
+            </template>
133
+
134
+            <template slot-scope="scope">
135
+              <el-form-item style="padding-top: 15px">
136
+                <el-input
137
+                  placeholder=""
138
+                  v-model="scope.row.good_id"
139
+                  :value="typeNameOne(scope.row.good_id)"
140
+                  :disabled="true"
141
+                ></el-input>
142
+              </el-form-item>
143
+            </template>
144
+          </el-table-column>
145
+          
129 146
           <el-table-column min-width="35" align="center">
130 147
             <template slot="header" slot-scope="scope">
131 148
               <span>规格名称<span style="color: red">*</span></span>
@@ -447,6 +464,15 @@ export default {
447 464
       }
448 465
       return name;
449 466
     },
467
+    typeNameOne:function(good_info_id){
468
+       let name = ''
469
+      for (let i = 0; i < this.goodInfo.length; i++) {
470
+        if (this.goodInfo[i].id == good_info_id) {
471
+          name = this.goodInfo[i].good_name
472
+        }
473
+      }
474
+      return name
475
+    },
450 476
     specificationName: function(good_info_id) {
451 477
       let name = ''
452 478
       for (let i = 0; i < this.goodInfo.length; i++) {

+ 3 - 1
src/xt_pages/user/components/PatientForm.vue Целия файл

@@ -1400,6 +1400,7 @@ export default {
1400 1400
       this.submitForm(formName, "renew");
1401 1401
     },
1402 1402
     onSubmit(formName) {
1403
+      console.log("2222",this.form)
1403 1404
       this.submitForm(formName, "redict");
1404 1405
     },
1405 1406
     submitForm(formName, action) {
@@ -1603,6 +1604,7 @@ export default {
1603 1604
           if (response.data.state == 1) {
1604 1605
             this.$emit("tran-patient-info", response.data.data.patient);
1605 1606
             var patietInfo = response.data.data.patient;
1607
+            console.log("9999999",response.data.data.patient)
1606 1608
             this.form.avatar = patietInfo.avatar;
1607 1609
             this.form.name = patietInfo.name;
1608 1610
             this.form.alias = patietInfo.alias;
@@ -1644,7 +1646,7 @@ export default {
1644 1646
             if (patietInfo.source == 1 || patietInfo.source == 2) {
1645 1647
               this.form.source = patietInfo.source;
1646 1648
             }
1647
-            if (patietInfo.lapseto == 1 || patietInfo.lapseto == 2) {
1649
+            if (patietInfo.lapseto == 1 || patietInfo.lapseto == 2 || patietInfo.lapseto == 3) {
1648 1650
               this.form.lapseto = patietInfo.lapseto;
1649 1651
             }
1650 1652
             if (

+ 7 - 2
src/xt_pages/user/coursePrint.vue Целия файл

@@ -50,7 +50,7 @@
50 50
 
51 51
           <div class="row" style="padding: 2px 0;line-height:24px;">
52 52
             <div class="inline_block" style="width:100%;">
53
-              <div v-html="record.content">{{record.content}}</div>
53
+              <div v-html="record.content" class="printP">{{record.content}}</div>
54 54
             </div>
55 55
           </div>
56 56
 
@@ -101,6 +101,7 @@
101 101
         var resp = rs.data
102 102
         if (resp.state == 1) {
103 103
           this.record = resp.data.record
104
+          this.record.content = resp.data.record.content.replace(new RegExp('<p>','g'),"<div>").replace(new RegExp('</p>','g'),"</div>")
104 105
           this.patient = resp.data.patient
105 106
 
106 107
           this.loading = false
@@ -114,7 +115,7 @@
114 115
     },
115 116
     methods: {
116 117
       printAction: function() {
117
-        const style = '@media print {.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; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;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 0;}.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 td {border: 1px solid;font-size: 16px;padding: 5px 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-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:1000px;}.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%;}.print-yema5{position: absolute;top:1370px;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;}'
118
+        const style = '@media print {.printP div{margin-bottom:5px;} .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; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;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 0;}.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 td {border: 1px solid;font-size: 16px;padding: 5px 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-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:1000px;}.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%;}.print-yema5{position: absolute;top:1370px;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;}'
118 119
         printJS({
119 120
           printable: 'print_content',
120 121
           type: 'html',
@@ -294,6 +295,10 @@
294 295
     left: 50%;
295 296
   }
296 297
   .did_checke::after {content: "\221A";font-size: 8px;margin-left: 2px;margin-top: 2px;position: absolute;}
298
+  .printP{
299
+    line-height: 20px;
300
+    font-weight: bold;
301
+  }
297 302
 </style>
298 303
 
299 304
 

+ 117 - 18
src/xt_pages/user/dialysisSolution.vue Целия файл

@@ -85,7 +85,7 @@
85 85
             <span>{{ getAdminUserName(scope.row.registrars_id) }}</span>
86 86
           </template>
87 87
         </el-table-column>
88
-        
88
+
89 89
         <el-table-column
90 90
           prop="created_time"
91 91
           align="center"
@@ -215,7 +215,7 @@
215 215
               <el-input v-model="addPlan.blood_flow_volume"></el-input>
216 216
             </el-form-item>
217 217
           </el-col>
218
-       
218
+
219 219
 
220 220
           <el-col :span="8" v-if="isShows('透析液配方')">
221 221
             <el-form-item label="透析液配方:">
@@ -229,7 +229,7 @@
229 229
               </el-select>
230 230
             </el-form-item>
231 231
           </el-col>
232
-         
232
+
233 233
           <el-col :span="8" v-if="isShows('抗凝剂')">
234 234
             <el-form-item label="抗凝剂:" prop="anticoagulant">
235 235
               <el-select
@@ -349,6 +349,21 @@
349 349
             </el-form-item>
350 350
           </el-col>
351 351
 
352
+
353
+
354
+
355
+          <el-col :span="8" v-if="isShows('透析器')">
356
+            <el-form-item label="透析器:">
357
+              <el-input v-model="dialysis_dialyszers" @focus="showInnerDialog('6')"></el-input>
358
+            </el-form-item>
359
+          </el-col>
360
+
361
+          <el-col :span="8" v-if="isShows('灌流器')">
362
+             <el-form-item label="灌流器:">
363
+               <el-input v-model="dialysis_irrigation" @focus="showInnerDialog('7')"></el-input>
364
+             </el-form-item>
365
+          </el-col>
366
+
352 367
           <el-col :span="8" v-if="isShows('碳酸氢盐')">
353 368
             <el-form-item label="碳酸氢盐(mmol/L): " prop="bicarbonate">
354 369
               <el-input v-model="addPlan.bicarbonate"></el-input>
@@ -689,7 +704,9 @@ export default {
689 704
         displace_liqui_part: '',
690 705
         displace_liqui_value: '',
691 706
         ultrafiltration: '',
692
-        blood_access: ''
707
+        blood_access: '',
708
+        dialysis_dialyszers:'',
709
+        dialysis_irrigation:'',
693 710
       },
694 711
       childPlan: {
695 712
         mode: '',
@@ -812,11 +829,16 @@ export default {
812 829
         page: 1,
813 830
         limit: 10,
814 831
         id: 0
815
-      }
832
+      },
833
+     stockType:[],
834
+     irrigations:[],
835
+     dialyzers:[],
836
+     dialysis_dialyszers:'',
837
+     dialysis_irrigation:"",
816 838
     }
817 839
   },
818 840
   watch: {
819
-   
841
+
820 842
    'dialysisTimeShow':function(){
821 843
       var val = this.addPlan.dialysis_duration_hour+":"+this.addPlan.dialysis_duration_minute
822 844
       var valTime = val.split(':')
@@ -826,7 +848,7 @@ export default {
826 848
    },
827 849
 
828 850
     'addPlan.dialysis_duration': function() {
829
-    
851
+
830 852
       this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
831 853
         this.addPlan.anticoagulant_shouji,
832 854
         this.addPlan.dialysis_duration,
@@ -834,7 +856,7 @@ export default {
834 856
       )
835 857
     },
836 858
     'addPlan.anticoagulant_shouji': function() {
837
-      
859
+
838 860
       this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
839 861
         this.addPlan.anticoagulant_shouji,
840 862
         this.addPlan.dialysis_duration,
@@ -852,7 +874,7 @@ export default {
852 874
   },
853 875
 
854 876
 
855
-  
877
+
856 878
   components: {
857 879
     MultiSelectBox,
858 880
     tableTitle,
@@ -868,15 +890,47 @@ export default {
868 890
           this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
869 891
           this.InnerDialogProps.selected = this.addPlan.dialyzer_perfusion_apparatus
870 892
           this.InnerDialogProps.isShowTextArea = false
893
+          break
894
+        case '6':
895
+           for(let i=0;i<this.dialyzers.length;i++){
896
+               this.dialyzers[i].name = this.dialyzers[i].specification_name
897
+           }
898
+           console.log("2222222",this.dialyzers)
899
+          this.InnerDialogProps.values = this.dialyzers
900
+          this.InnerDialogProps.titles = '透析器'
901
+          this.InnerDialogProps.type = 'dialyzers'
902
+          this.InnerDialogProps.selected = this.dialysis_dialyszers
903
+          this.InnerDialogProps.isShowTextArea = false
904
+
905
+          break
906
+        case '7':
907
+          for(let i=0;i<this.irrigations.length;i++){
908
+             this.irrigations[i].name = this.irrigations[i].specification_name
909
+           }
910
+          this.InnerDialogProps.values = this.irrigations
911
+          this.InnerDialogProps.titles = '灌流器'
912
+          this.InnerDialogProps.type = 'irrigations'
913
+          this.InnerDialogProps.selected = this.dialysis_irrigation
914
+          this.InnerDialogProps.isShowTextArea = false
915
+
871 916
           break
872 917
       }
873 918
     },
874 919
     innerDialogComfirm: function(val) {
920
+
875 921
       this.InnerDialogProps.visibility = false
876 922
       switch (val.type) {
877 923
         case 'dialyzer_perfusion_apparatus':
878 924
           this.addPlan.dialyzer_perfusion_apparatus = val.value.join(',')
879 925
           break
926
+        case 'dialyzers':
927
+          this.dialysis_dialyszers = val.value.join(',')
928
+          console.log("3333333",this.addPlan.dialysis_dialyszers)
929
+
930
+          break
931
+        case 'irrigations':
932
+          this.dialysis_irrigation = val.value.join(',')
933
+          break
880 934
 
881 935
       }
882 936
     },
@@ -892,7 +946,7 @@ export default {
892 946
     },
893 947
 
894 948
     selectnDialysisTime(val) {
895
-     
949
+
896 950
       var valTime = val.split(':')
897 951
       this.addPlan.dialysis_duration = parseFloat(valTime[0]) + parseFloat((valTime[1] / 60).toFixed(2))
898 952
       console.log("透析时长",this.addPlan.dialysis_duration)
@@ -1177,7 +1231,7 @@ export default {
1177 1231
         }
1178 1232
       })
1179 1233
     },
1180
-    submitEditSolution(formName) {
1234
+      submitEditSolution(formName) {
1181 1235
       this.$refs[formName].validate(valid => {
1182 1236
         if (valid) {
1183 1237
           let mode = '2'
@@ -1187,6 +1241,8 @@ export default {
1187 1241
           ) {
1188 1242
             mode = '3'
1189 1243
           }
1244
+          this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1245
+          this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1190 1246
           console.log("2233333",this.addPlan)
1191 1247
           
1192 1248
           editPatientDialysisSolution(this.patientID,this.addPlan.id,this.addPlan, mode).then(response => {
@@ -1223,11 +1279,14 @@ export default {
1223 1279
       })
1224 1280
     },
1225 1281
     submitNewSolution(formName) {
1226
-     
1282
+
1227 1283
       this.addPlan.anticoagulant_zongliang = this.addPlan.anticoagulant_zongliang.toString()
1228 1284
       this.$refs[formName].validate(valid => {
1229 1285
         if (valid) {
1230 1286
           const mode = '1'
1287
+          this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1288
+          this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1289
+          console.log("add",this.addPlan)
1231 1290
           createPatientDialysisSolution(
1232 1291
             this.patientID,
1233 1292
             this.addPlan,
@@ -1291,13 +1350,13 @@ export default {
1291 1350
         }else{
1292 1351
           this.addPlan.anticoagulant = row.anticoagulant
1293 1352
         }
1294
-        
1353
+
1295 1354
       }
1296 1355
       this.addPlan.replacement_total = row.replacement_total
1297 1356
 
1298 1357
       this.addPlan.target_ktv = row.target_ktv.toString()
1299 1358
       this.addPlan.target_ultrafiltration = row.target_ultrafiltration.toString()
1300
-      
1359
+
1301 1360
       this.addPlan.dialysis_duration = parseFloat(row.dialysis_duration_hour) + parseFloat((row.dialysis_duration_minute / 60).toFixed(2))
1302 1361
       this.addPlan.dialysis_duration_hour = row.dialysis_duration_hour
1303 1362
       this.addPlan.dialysis_duration_minute = row.dialysis_duration_minute
@@ -1317,7 +1376,10 @@ export default {
1317 1376
       this.addPlan.remark = row.remark
1318 1377
 
1319 1378
       this.addPlan.dialyzer_perfusion_apparatus = row.dialyzer_perfusion_apparatus.toString()
1320
-
1379
+      this.addPlan.dialysis_irrigation = row.dialysis_irrigation
1380
+      this.addPlan.dialysis_dialyszers = row.dialysis_dialyszers
1381
+      this.dialysis_irrigation = row.dialysis_irrigation
1382
+      this.dialysis_dialyszers = row.dialysis_dialyszers
1321 1383
      if(row.body_fluid == 0){
1322 1384
        this.addPlan.body_fluid = ""
1323 1385
       }else{
@@ -1333,6 +1395,10 @@ export default {
1333 1395
 
1334 1396
       this.addPlan.registrars_id = row.registrars_id
1335 1397
       this.addPlan.created_time =  row.created_time
1398
+      this.addPlan.dialysis_irrigation = row.dialysis_irrigation
1399
+      this.addPlan.dialysis_dialyszers = row.dialysis_dialyszers
1400
+      this.dialysis_irrigation = row.dialysis_irrigation
1401
+      this.dialysis_dialyszers = row.dialysis_dialyszers
1336 1402
       this.dialogVisible = true
1337 1403
       this.isEdit = true
1338 1404
       if(row.dialysate_formulation==0){
@@ -1461,6 +1527,39 @@ export default {
1461 1527
         if (response.data.state == 1) {
1462 1528
           this.tableData = response.data.data.solutions
1463 1529
           this.total = response.data.data.total
1530
+
1531
+            this.stockType = response.data.data.stockType
1532
+            console.log("2333555555555",this.stockType)
1533
+            if(this.stockType.length >0 ){
1534
+               var arr = []
1535
+                var arrTwo = []
1536
+                for(let i=0;i<this.stockType.length;i++){
1537
+                  if(this.stockType[i].stock_attribute == 2){
1538
+                      arr.push(this.stockType[i])
1539
+                  }
1540
+                  if(this.stockType[i].stock_attribute == 3){
1541
+                      arrTwo.push(this.stockType[i])
1542
+                  }
1543
+                }
1544
+                var dialyzator = []
1545
+                var irrigation = []
1546
+                for(let i=0;i<arr.length;i++){
1547
+                  for(let j=0;j<arr[i].GoodInfo.length;j++){
1548
+                      dialyzator.push(arr[i].GoodInfo[j])
1549
+                  }
1550
+                }
1551
+                console.log("透析器",dialyzator)
1552
+                this.dialyzers = dialyzator
1553
+
1554
+                for(let i=0;i<arrTwo.length;i++){
1555
+                  for(let j=0;j<arrTwo[i].GoodInfo.length;j++){
1556
+                      irrigation.push(arrTwo[i].GoodInfo[j])
1557
+                  }
1558
+                }
1559
+                console.log("灌流器",irrigation)
1560
+                this.irrigations = irrigation
1561
+            }
1562
+
1464 1563
         }
1465 1564
       })
1466 1565
     },
@@ -1688,7 +1787,8 @@ export default {
1688 1787
     }
1689 1788
 
1690 1789
     this.GetDeviceData()
1691
-
1790
+    this.fetchAllAdminUsers()
1791
+    this.fetchPatientDialysisSolutions()
1692 1792
     this.modeOptions = this.$store.getters.treatment_mode
1693 1793
     this.anticoagulantsSet = this.$store.getters.anticoagulants_set
1694 1794
     this.replacementWays = this.$store.getters.replacement_ways
@@ -1714,8 +1814,7 @@ export default {
1714 1814
 
1715 1815
     this.queryParams.id = this.patientID
1716 1816
     // this.fetchAllDoctorAndNurse();
1717
-    this.fetchAllAdminUsers()
1718
-    this.fetchPatientDialysisSolutions()
1817
+
1719 1818
   }
1720 1819
 }
1721 1820
 </script>

+ 6 - 1
src/xt_pages/user/vascularAccess.vue Целия файл

@@ -508,6 +508,8 @@
508 508
                    this.user_status = ""
509 509
                    this.stop_reason = ""
510 510
                    this.remark = ""
511
+                }else{
512
+                   this.$message.error("该日期数据已存在!")
511 513
                 }
512 514
              })
513 515
            }  
@@ -644,7 +646,8 @@
644 646
                 user_status:this.form.user_status,
645 647
                 stop_reason:this.form.stop_reason,
646 648
                 remark:this.form.remark,
647
-                stop_time:this.form.stop_time
649
+                stop_time:this.form.stop_time,
650
+                patient_id:this.patientID
648 651
               }
649 652
               console.log("编辑",params)
650 653
               updatedVasularAccess(params).then(response=>{
@@ -654,6 +657,8 @@
654 657
                   this.$message.success("保存成功")
655 658
                   this.editDialogVisible = false
656 659
                   this.getlist()
660
+                }else{
661
+                   this.$message.error("该日期数据已存在!")
657 662
                 }
658 663
               })
659 664
            }

+ 186 - 36
src/xt_pages/workforce/appointment.vue Целия файл

@@ -84,8 +84,8 @@
84 84
           </el-button>
85 85
 
86 86
           <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印</el-button>
87
-          <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板
88
-          </el-button>
87
+          <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板</el-button>
88
+          <el-button type="primary" size="small" @click="copySchedule">复制排班</el-button>
89 89
         </div>
90 90
     </div>
91 91
     <div class="app-container">
@@ -122,6 +122,27 @@
122 122
 
123 123
       <table-data :week-time="activeName" :partitions-prop="partitions" :schedule-zone-row-prop="scheduleZoneRow"
124 124
                   :schedule-zone-prop="scheduleZone" title="" @event1="changePartition" @event2="changeSchedule"></table-data>
125
+
126
+
127
+       <el-dialog title="复制排班" width="600px" :visible.sync="newVisible">
128
+            <el-form :model="form"  ref="form" label-width="90px" :rules="rules">
129
+                <el-form-item label="复制到 : " required  prop="copyWeek">
130
+                    <el-select v-model="form.copyWeek" placeholder="请选择">
131
+                        <el-option
132
+                        v-for="item in typeOptions"
133
+                        :key="item.value"
134
+                        :label="item.label"
135
+                        :value="item.value">
136
+                        </el-option>
137
+                    </el-select>
138
+                </el-form-item>
139
+
140
+            </el-form>
141
+            <div slot="footer" class="dialog-footer">
142
+                <el-button @click="newVisible=false">取 消</el-button>
143
+                <el-button type="primary" @click="submitAction('form')">保 存</el-button>
144
+            </div>
145
+      </el-dialog>            
125 146
     </div>
126 147
   </div>
127 148
 </template>
@@ -130,7 +151,7 @@
130 151
   import moment from 'moment'
131 152
   import { parseTime } from '@/utils'
132 153
   import tableData from './components/tableData'
133
-  import { exportSchedule, getWeekPanels, initDate,getThreeWeekList } from '@/api/schedule'
154
+  import { exportSchedule, getWeekPanels, initDate,getThreeWeekList,copyPatientSchedule } from '@/api/schedule'
134 155
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
135 156
   import UploadExcel from '@/xt_pages/components/UploadExcel'
136 157
   import ScheduleUploadExcel from './components/scheduleUploadExcel/index'
@@ -169,7 +190,25 @@
169 190
         partition_id:0,
170 191
         start_time:"",
171 192
         end_time:"",
172
-        export_type:0
193
+        export_type:0,
194
+        form:{
195
+          copyWeek:"",
196
+        },
197
+        newVisible:false,
198
+        typeOptions:[],
199
+        timeOptions:[],
200
+        copyWeek:'',
201
+        weekList: [],
202
+        currentFirstDate1: '',
203
+        rules: {
204
+           copyWeek: [{ required: true, message: "请选择复制时间段", trigger: "blur" }],
205
+         },
206
+        weekNum:'',
207
+        weekDayArr:[],
208
+        todayDate:'',
209
+        clen:7,
210
+        nowYear: new Date().getFullYear(),
211
+        schedule_week:0,
173 212
       }
174 213
     },
175 214
     components: {
@@ -505,20 +544,7 @@
505 544
        return jsonData.map(v => filterVal.map(j => v[j]))
506 545
       },
507 546
 
508
-      //  formatJson(filterVal, jsonData) {
509
-      //    console.log("jsonData",jsonData)
510
-      //   return jsonData.map(v =>
511
-      //     filterVal.map(j => {
512
-      //       console.log("v",j)
513
-      //       console.log("8888888",v[j])
514
-      //       if (j === 'timestamp') {
515
-      //         return parseTime(v[j])
516
-      //       } else {
517
-      //         return v[j]
518
-      //       }
519
-      //     })
520
-      //   )
521
-      // },
547
+     
522 548
       printScheduleAction: function() {
523 549
         var date = new Date().getTime()
524 550
         if (this.activeName == 'lastWeek') {
@@ -998,8 +1024,7 @@
998 1024
               return cur
999 1025
             }, []) // 设置cur默认类型为数组,并且初始值为空的数组
1000 1026
 
1001
-            console.log("长度11111111111",tempObjArr[i][key].length)
1002
-            console.log("长度22222222222",arr.length)
1027
+           
1003 1028
             if (tempObjArr[i][key].length > arr.length) {    //比对原数组和去重后的原数组总数,不同的话则存在重复元素
1004 1029
               is_exist_repeat = true
1005 1030
             }
@@ -1012,7 +1037,7 @@
1012 1037
 
1013 1038
 
1014 1039
         if (headers.length > 65 || !is_system_zone || !is_device_number) {
1015
-          console.log("ssssssszzzzzzzqqqqqqqq")
1040
+         
1016 1041
 
1017 1042
           this.dialogVisible = true
1018 1043
           return
@@ -1932,7 +1957,7 @@
1932 1957
        },
1933 1958
 
1934 1959
 
1935
-       getThreeWeekList(){
1960
+     getThreeWeekList(){
1936 1961
           var params ={
1937 1962
               start_time:this.start_time,
1938 1963
               end_time:this.end_time,
@@ -2067,30 +2092,28 @@
2067 2092
 
2068 2093
 
2069 2094
                const start_time = moment().weekday(1).format('YYYY-MM-DD'); //本周一
2070
-               var start = this.getTimestamp(start_time)
2095
+               var start = this.getTimestamp(start_time) - 28800
2071 2096
                console.log("start",start)
2072
-              const end_time = moment().weekday(7).format('YYYY-MM-DD');
2073
-              var end = this.getTimestamp(end_time)
2074
-
2075
-
2097
+               const end_time = moment().weekday(7).format('YYYY-MM-DD');
2098
+               var end = this.getTimestamp(end_time) - 28800
2076 2099
               console.log("end",end)
2077 2100
               var scheduleList = response.data.data.list
2078
-              console.log("排班列表22222",scheduleList)
2101
+             
2079 2102
               var week= []
2080 2103
               var nextWeek = []
2081 2104
               var lastWeek = []
2082 2105
               var next_start = this.getNextWeekOne(1)
2083
-              var nextstart = this.getTimestamp(next_start)
2084
-              // console.log("下周开始时间",nextstart)
2106
+              var nextstart = this.getTimestamp(next_start) - 28800
2107
+              console.log("下周开始时间",nextstart)
2085 2108
               var next_end = this.getNextWeek(1)
2086
-              var nextend = this.getTimestamp(next_end)
2087
-              // console.log("下周结束时间",nextend)
2109
+              var nextend = this.getTimestamp(next_end) - 28800
2110
+              console.log("下周结束时间",nextend)
2088 2111
               var last_start = this.getNextWeekOne(2)
2089 2112
               var last_end = this.getNextWeek(2)
2090
-              var laststart = this.getTimestamp(last_start)
2091
-              // console.log("下下周数据时间",laststart)
2092
-              var lastend = this.getTimestamp(last_end)
2093
-              // console.log("下下周数据时间",lastend)
2113
+              var laststart = this.getTimestamp(last_start) - 28800
2114
+              console.log("下下周数据时间",laststart)
2115
+              var lastend = this.getTimestamp(last_end) - 28800
2116
+              console.log("下下周数据时间",lastend)
2094 2117
 
2095 2118
               if(this.export_type == 0){
2096 2119
                 for(let i = 0;i<scheduleList.length;i++){
@@ -2447,19 +2470,146 @@
2447 2470
       getTime(val) {
2448 2471
         return uParseTime(val, '{y}-{m}-{d}')
2449 2472
       },
2473
+      
2474
+      copySchedule(){
2475
+        this.newVisible = true
2476
+      },
2450 2477
 
2478
+       getYearWeek(year,month,date){
2479
+        /*
2480
+            dateNow是当前日期
2481
+            dateFirst是当年第一天
2482
+            dataNumber是当前日期是今年第多少天
2483
+            用dataNumber + 当前年的第一天的周差距的和在除以7就是本年第几周
2484
+        */
2485
+        let dateNow = new Date(year, parseInt(month) - 1, date);
2486
+        let dateFirst = new Date(year, 0, 1);
2487
+        let dataNumber = Math.round((dateNow.valueOf() - dateFirst.valueOf()) / 86400000);
2488
+        return Math.ceil((dataNumber + ((dateFirst.getDay() + 1) - 1)) / 7);
2489
+        },
2490
+        getTimestamp(time) { //把时间日期转成时间戳
2491
+        return (new Date(time)).getTime() / 1000
2492
+      },
2451 2493
 
2494
+        formatDate(date){
2495
+            var year = date.getFullYear()+'.'
2496
+            var month = (date.getMonth()+1)+'.';
2497
+            var day = date.getDate();
2498
+            return year+month+day
2499
+        },
2500
+        formatDateTwo(date){
2501
+            var year = date.getFullYear()+'.'
2502
+            var month = (date.getMonth()+1)+'.';
2503
+            var day = date.getDate();
2504
+            return year+month+day
2505
+        },
2506
+        addDate(date,n){
2507
+            date.setDate(date.getDate()+n);
2508
+            return date;
2509
+        },
2510
+            //
2511
+        setDate(date){
2512
+            var week = date.getDay()-1;
2513
+            date = this.addDate(date,week*-1);
2514
+            this.currentFirstDate = new Date(date);
2515
+            this.currentDate = new Date(date)
2516
+            for(var i = 0;i<this.clen; i++){
2517
+                this.weekDayArr.push(this.formatDate(i==0 ? date : this.addDate(date,1)))
2518
+            }
2519
+        },
2520
+       setDate1 (date) {
2521
+            var week = date.getDay() - 1
2522
+            date = this.addDate(date, week * -1)
2523
+            this.currentDate = new Date(date)
2524
+            let arr1 = []
2525
+            for (var i = 0; i < this.clen; i++) {
2526
+                arr1.push(this.formatDate(i == 0 ? date : this.addDate(date, 1)))
2527
+            }
2528
+            this.weekList.push(arr1)
2529
+            let num = this.weekNum
2530
+            this.currentFirstDate1 = num + 1
2531
+        },
2532
+        getTimestamp(time) { //把时间日期转成时间戳
2533
+          return (new Date(time)).getTime() / 1000
2534
+        },
2535
+        submitAction(formName){
2536
+            var label = ""
2537
+            for(let i=0;i<this.timeOptions.length;i++){
2538
+               if(this.form.copyWeek == this.timeOptions[i].value){
2539
+                 label = this.timeOptions[i].label
2540
+               }
2541
+            }
2542
+           var start = label.split('~')
2543
+           var copy_startime = this.getTimestamp(start[0])
2544
+           var copy_endtime = this.getTimestamp(start[1])
2545
+
2546
+            const params = {
2547
+              start_time:this.getTimestamp(this.weekDayArr[0]),
2548
+              end_time:this.getTimestamp(this.weekDayArr[6]),
2549
+              copy_startime:copy_startime,
2550
+              copy_endtime:copy_endtime,
2551
+            }
2552
+           console.log("parasm",params)
2553
+        
2554
+           this.$refs[formName].validate(valid=>{
2555
+              if(valid){
2556
+                copyPatientSchedule(params).then(response=>{
2557
+                   if(response.data.state == 1){
2558
+                     var msg = response.data.data.msg
2559
+                     this.$message.success("复制成功")
2560
+                     this.newVisible = false
2561
+                   }else{
2562
+                    this.$message.error("复制失败")
2563
+                  }
2564
+                })
2565
+              }
2566
+           })
2567
+        },
2452 2568
     },
2453 2569
     created() {
2454 2570
      var start_time = moment().weekday(1).format('YYYY-MM-DD');
2571
+     console.log("开始时间",start_time)
2455 2572
      this.start_time = start_time
2573
+    
2456 2574
      var end_time = this.getNextWeek(2)
2575
+     console.log("结束时间222222",end_time)
2457 2576
      this.end_time = end_time
2458 2577
       this.getWeekPanels()
2459 2578
       this.getInitDate()
2460 2579
 
2461 2580
       //获取三周排班数据
2462 2581
       this.getThreeWeekList()
2582
+
2583
+
2584
+     let year = new Date().getFullYear()
2585
+     let month = new Date().getMonth() + 1
2586
+     let date = new Date().getDate()
2587
+     this.weekNum = this.getYearWeek(year,month,date)
2588
+     this.todayDate=this.formatDate(new Date())
2589
+     this.setDate(new Date())
2590
+
2591
+     for (var i = 0; i <= 9; i++) {
2592
+       this.setDate1(this.addDate(this.currentDate, 7))
2593
+     }
2594
+     let newNum = 0
2595
+     for(let i = 0; i < this.weekList.length; i++){
2596
+         if(this.weekNum + i + 1 <= 53){
2597
+             let num = this.weekNum + i + 1
2598
+            let str = this.weekList[i][0] + '~' + this.weekList[i][6] + '(' + num + ')'
2599
+             this.typeOptions.push({value:i,label:str})
2600
+            let stt = this.weekList[i][0] +"~"+this.weekList[i][6]
2601
+            this.timeOptions.push({value:i,label:stt})
2602
+        }else{
2603
+
2604
+            newNum++
2605
+            let str = this.weekList[i][0] + '~' + this.weekList[i][6] + '(' + newNum + ')'
2606
+            this.typeOptions.push({value:i,label:str})
2607
+            let stt = this.weekList[i][0] +"~"+this.weekList[i][6]
2608
+            this.timeOptions.push({value:i,label:stt})
2609
+          }
2610
+
2611
+        }
2612
+       
2463 2613
     }
2464 2614
   }
2465 2615
 </script>

+ 5 - 3
src/xt_pages/workforce/components/nextTableWeeks.vue Целия файл

@@ -79,9 +79,11 @@
79 79
           }}
80 80
         </template>
81 81
       </el-table-column>
82
-      <el-table-column label="透析器" min-width="100" align="center">
82
+      <el-table-column label="透析器/灌流器" min-width="100" align="center">
83 83
         <template slot-scope="scope">
84
-          {{ scope.row.prescription.dialyzer_perfusion_apparatus }}
84
+          <span > {{ scope.row.prescription.dialyzer_perfusion_apparatus }}</span>
85
+          {{scope.row.prescription.dialysis_dialyszers}}
86
+          <span v-if="scope.row.prescription.dialysis_irrigation!=''">/{{scope.row.prescription.dialysis_irrigation}}</span>
85 87
         </template>
86 88
       </el-table-column>
87 89
       <el-table-column label="抗凝剂" min-width="100" align="center">
@@ -254,7 +256,7 @@ export default {
254 256
              scheduleData[i].sort = scheduleData[i].number.sort
255 257
            }
256 258
           var arr =   scheduleData.sort(this.compare('sort'))
257
-          // console.log("元旦快乐",arr)
259
+           console.log("元旦快乐",arr)
258 260
           this.scheduleData = arr
259 261
         
260 262
          

+ 1 - 1
src/xt_pages/workforce/components/tableData.vue Целия файл

@@ -917,7 +917,7 @@ export default {
917 917
           this.toDay = response.data.data.today;
918 918
           var theSchedules = response.data.data.schdules;
919 919
           
920
-          console.log("中国4444444444444",this.scheduleZone)
920
+        
921 921
         
922 922
           var that = this;
923 923
           this.scheduleZone.forEach(function(zone, index) {

+ 11 - 5
src/xt_pages/workforce/components/tableWeeks.vue Целия файл

@@ -25,7 +25,7 @@
25 25
           </li>
26 26
         </ul>
27 27
       </div>
28
-      
28
+
29 29
       <div  class="title"><span class="name">班 次</span> :</div>
30 30
       <div class="time">
31 31
         <ul class>
@@ -79,11 +79,14 @@
79 79
           }}
80 80
         </template>
81 81
       </el-table-column>
82
-      <el-table-column label="透析器" min-width="100" align="center">
82
+      <el-table-column label="透析器/灌流器" min-width="100" align="center">
83 83
         <template slot-scope="scope">
84 84
           {{ scope.row.prescription.dialyzer_perfusion_apparatus }}
85
+          {{scope.row.prescription.dialysis_dialyszers}}
86
+          <span v-if="scope.row.prescription.dialysis_irrigation!=''">/{{scope.row.prescription.dialysis_irrigation}}</span>
85 87
         </template>
86 88
       </el-table-column>
89
+
87 90
       <el-table-column label="抗凝剂" min-width="100" align="center">
88 91
         <template slot-scope="scope">
89 92
           <span v-if="scope.row.prescription.anticoagulant === 1">无肝素</span>
@@ -208,7 +211,7 @@ export default {
208 211
   },
209 212
   watch: {
210 213
     weekTime: function() {
211
-     
214
+
212 215
       var theType = this.weekType(this.weekTime);
213 216
       this.getSchedules(theType);
214 217
     }
@@ -232,7 +235,7 @@ export default {
232 235
           week_type:this.week_type,
233 236
           week_time:this.week_time,
234 237
         }
235
-       
238
+
236 239
       getScheduleWeekDay(params).then(response => {
237 240
         this.scheduleData = [];
238 241
         if (response.data.state == 1) {
@@ -241,7 +244,9 @@ export default {
241 244
              scheduleData[i].sort = scheduleData[i].number.sort
242 245
            }
243 246
           var arr = scheduleData.sort(this.compare('sort'))
244
-          
247
+
248
+          var arr =   scheduleData.sort(this.compare('sort'))
249
+        //  console.log("元旦快乐",arr)
245 250
           this.scheduleData = arr
246 251
         } else {
247 252
           this.$message.error("网络错误");
@@ -449,6 +454,7 @@ export default {
449 454
     //   week_type: this.week_type
450 455
     // };
451 456
     this.getScheduleWeekDay();
457
+    console.log("org2222222",this.$store.getters.xt_user.org.id)
452 458
   }
453 459
 };
454 460
 </script>

+ 3 - 2
src/xt_pages/workforce/next_remind_print.vue Целия файл

@@ -38,7 +38,7 @@
38 38
                   <td width="70">班次</td>
39 39
                   <td width="70">机号</td>
40 40
                   <td width="120">透析模式</td>
41
-                  <td width="100">透析器</td>
41
+                  <td width="100">透析器/灌流器</td>
42 42
                   <td width="120">抗凝剂</td>
43 43
                   <td width="100">总量</td>
44 44
                   <td width="300">长期医嘱</td>
@@ -60,7 +60,8 @@
60 60
                 </td>
61 61
                 <td :width="td_1_width">
62 62
                   {{main_collection.prescription.dialyzer_perfusion_apparatus}}
63
-
63
+                  {{main_collection.prescription.dialysis_dialyszers}} 
64
+                  <span v-if="main_collection.prescription.dialysis_irrigation!=''">/ {{main_collection.prescription.dialysis_irrigation}}</span>
64 65
 
65 66
                 </td>
66 67
                 <td :width="td_1_width">

+ 3 - 2
src/xt_pages/workforce/remind_print.vue Целия файл

@@ -38,7 +38,7 @@
38 38
                   <td width="70">班次</td>
39 39
                   <td width="70">机号</td>
40 40
                   <td width="120">透析模式</td>
41
-                  <td width="100">透析器</td>
41
+                  <td width="100">透析器/灌流器</td>
42 42
                   <td width="120">抗凝剂</td>
43 43
                   <td width="100">总量</td>
44 44
                   <td width="300">长期医嘱</td>
@@ -60,7 +60,8 @@
60 60
                 </td>
61 61
                 <td :width="td_1_width">
62 62
                   {{main_collection.prescription.dialyzer_perfusion_apparatus}}
63
-
63
+                  {{main_collection.prescription.dialysis_dialyszers}} 
64
+                  <span v-if="main_collection.prescription.dialysis_irrigation!=''">/ {{main_collection.prescription.dialysis_irrigation}}</span>
64 65
 
65 66
                 </td>
66 67
                 <td :width="td_1_width">