Browse Source

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

XMLWAN 4 years ago
parent
commit
11ff11297b
24 changed files with 5538 additions and 3278 deletions
  1. 12 0
      src/router/modules/dialysis.js
  2. 54 7
      src/xt_pages/data/prescription.vue
  3. 5 5
      src/xt_pages/dialysis/batch_print/batch_print_order_nine.vue
  4. 11 6
      src/xt_pages/dialysis/batch_print/batch_print_order_thirteen.vue
  5. 1970 0
      src/xt_pages/dialysis/batch_print/batch_print_order_twenty.vue
  6. 12 0
      src/xt_pages/dialysis/bloodPresssWatch.vue
  7. 7 4
      src/xt_pages/dialysis/details/NavIgation.vue
  8. 21 1
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  9. 33 70
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  10. 2174 2309
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  11. 17 13
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  12. 1 1
      src/xt_pages/dialysis/details/index.vue
  13. 4 4
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  14. 1 1
      src/xt_pages/dialysis/schedualPatient.vue
  15. 80 41
      src/xt_pages/dialysis/template/DialysisPrintOrderFourteen.vue
  16. 31 6
      src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue
  17. 9 5
      src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue
  18. 511 404
      src/xt_pages/dialysis/template/DialysisPrintOrderTwenty.vue
  19. 10 1
      src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue
  20. 392 379
      src/xt_pages/stock/config/goodInfo.vue
  21. 2 2
      src/xt_pages/user/components/PatientDetail.vue
  22. 3 3
      src/xt_pages/user/components/PatientForm.vue
  23. 49 2
      src/xt_pages/user/dialysisSolution.vue
  24. 129 14
      src/xt_pages/workforce/schedule_print.vue

+ 12 - 0
src/router/modules/dialysis.js View File

219
         noCache: true
219
         noCache: true
220
       }
220
       }
221
     },
221
     },
222
+    {
223
+      path: '/dialysis/print/batch/twenty',
224
+      component: () =>
225
+        import('@/xt_pages/dialysis/batch_print/batch_print_order_twenty'),
226
+      hidden: true,
227
+      is_menu: false,
228
+      name: 'dialysis_batch_twenty',
229
+      meta: {
230
+        title: '批量打印',
231
+        noCache: true
232
+      }
233
+    },
222
     {
234
     {
223
       path: '/dialysis/print/batch/otherone',
235
       path: '/dialysis/print/batch/otherone',
224
       component: () =>
236
       component: () =>

+ 54 - 7
src/xt_pages/data/prescription.vue View File

226
 
226
 
227
                 <el-col :span="8">
227
                 <el-col :span="8">
228
                   <el-form-item label="透析器/灌流器:">
228
                   <el-form-item label="透析器/灌流器:">
229
+
229
                     <el-input
230
                     <el-input
230
-                      v-model="addPlan.dialyzer_perfusion_apparatus"
231
-                    ></el-input>
231
+                      v-model="addPlan.dialyzer_perfusion_apparatus" @focus="showInnerDialog('5')"></el-input>
232
                   </el-form-item>
232
                   </el-form-item>
233
                 </el-col>
233
                 </el-col>
234
 
234
 
420
         </el-col>
420
         </el-col>
421
       </el-row>
421
       </el-row>
422
     </div>
422
     </div>
423
+    <multi-select-box
424
+      :propsForm="InnerDialogProps"
425
+      v-on:dialog-comfirm="innerDialogComfirm"
426
+      v-on:dialog-cancle="innerDialogCancle"
427
+    >
428
+    </multi-select-box>
423
   </div>
429
   </div>
424
 </template>
430
 </template>
425
 
431
 
431
   postSystemPrescription,
437
   postSystemPrescription,
432
   updateSystemPrescription
438
   updateSystemPrescription
433
 } from "@/api/config";
439
 } from "@/api/config";
440
+import { getDataConfig } from '@/utils/data'
441
+import MultiSelectBox from '../dialysis/details/dialog/MultiSelectBox/index'
442
+
434
 
443
 
435
 export default {
444
 export default {
436
   name: "prescription",
445
   name: "prescription",
437
-  components: {},
446
+  components: { MultiSelectBox },
438
 
447
 
439
   data() {
448
   data() {
440
     return {
449
     return {
450
+      InnerDialogProps: {
451
+        values: [],
452
+        visibility: false,
453
+        isShowTextArea: true,
454
+        customContent: '',
455
+        titles: '',
456
+        type: '' // 不同弹框类型,用来匹配数据
457
+      },
441
       dialysisTimeShow: new Date(2018, 1, 1, 3, 0),
458
       dialysisTimeShow: new Date(2018, 1, 1, 3, 0),
442
       modeOptions: null,
459
       modeOptions: null,
443
       current_select: 0,
460
       current_select: 0,
444
       mode_name: "HD",
461
       mode_name: "HD",
445
       pageLoading: false,
462
       pageLoading: false,
446
       itemLoading: false,
463
       itemLoading: false,
464
+      dialyzerPerfusionApparatus:[],
447
       treatment_mode: [
465
       treatment_mode: [
448
         // 治疗模式
466
         // 治疗模式
449
         {
467
         {
807
   },
825
   },
808
   computed: {},
826
   computed: {},
809
   methods: {
827
   methods: {
828
+    showInnerDialog: function(val) {
829
+      this.InnerDialogProps.visibility = true
830
+      switch (val) {
831
+        case '5': // 透析器/灌流器
832
+          this.InnerDialogProps.values = this.dialyzerPerfusionApparatus
833
+          this.InnerDialogProps.titles = '透析器/灌流器'
834
+          this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
835
+          this.InnerDialogProps.selected = this.addPlan.dialyzer_perfusion_apparatus
836
+          this.InnerDialogProps.isShowTextArea = false
837
+          break
838
+      }
839
+    },
840
+    innerDialogComfirm: function(val) {
841
+      this.InnerDialogProps.visibility = false
842
+      switch (val.type) {
843
+        case 'dialyzer_perfusion_apparatus':
844
+          this.addPlan.dialyzer_perfusion_apparatus = val.value.join(',')
845
+          break
846
+
847
+      }
848
+    },
849
+    innerDialogCancle: function() {
850
+      this.InnerDialogProps.visibility = false
851
+    },
810
     openEdit() {},
852
     openEdit() {},
811
     tableRows({ row, rowIndex }) {
853
     tableRows({ row, rowIndex }) {
812
       // 把每一行的索引放进row
854
       // 把每一行的索引放进row
882
       );
924
       );
883
 
925
 
884
       getSystemPrescription(params).then(response => {
926
       getSystemPrescription(params).then(response => {
885
-        
927
+
886
         if (response.data.state == 0) {
928
         if (response.data.state == 0) {
887
           this.$message.error(response.data.msg);
929
           this.$message.error(response.data.msg);
888
           return false;
930
           return false;
892
               prescription.anticoagulant = "低分子肝素"
934
               prescription.anticoagulant = "低分子肝素"
893
            }
935
            }
894
           if (prescription.id > 0) {
936
           if (prescription.id > 0) {
895
-            
937
+
896
             for (const key in prescription) {
938
             for (const key in prescription) {
897
               this.addPlan[key] = prescription[key];
939
               this.addPlan[key] = prescription[key];
898
             }
940
             }
928
         } else {
970
         } else {
929
           this.system_prescription = response.data.data.prescriptions;
971
           this.system_prescription = response.data.data.prescriptions;
930
           console.log("为什么",this.system_prescription)
972
           console.log("为什么",this.system_prescription)
931
-          
973
+
932
           for (let i = 0; i < this.system_prescription.length; i++) {
974
           for (let i = 0; i < this.system_prescription.length; i++) {
933
             if (this.system_prescription[i].mode == 1) {
975
             if (this.system_prescription[i].mode == 1) {
934
               this.isEdit = true;
976
               this.isEdit = true;
946
     },
988
     },
947
     changeThisAnticoagulant() {
989
     changeThisAnticoagulant() {
948
       var thismode = parseInt(this.addPlan.anticoagulant);
990
       var thismode = parseInt(this.addPlan.anticoagulant);
949
-     
991
+
950
       if (isNaN(thismode) || thismode <= 0) {
992
       if (isNaN(thismode) || thismode <= 0) {
951
         return false;
993
         return false;
952
       }
994
       }
1019
     this.displace_liqui_part_option = this.$store.getters.displace_liqui;
1061
     this.displace_liqui_part_option = this.$store.getters.displace_liqui;
1020
     this.blood_access_option = this.$store.getters.blood_access;
1062
     this.blood_access_option = this.$store.getters.blood_access;
1021
     this.addPlan.mode = 1;
1063
     this.addPlan.mode = 1;
1064
+    this.dialyzerPerfusionApparatus = getDataConfig(
1065
+      'hemodialysis',
1066
+      'dialyzer_perfusion_apparatus'
1067
+    )
1022
     this.getAllSystemPrescription();
1068
     this.getAllSystemPrescription();
1023
     this.getSystemPrescription(this.addPlan.mode);
1069
     this.getSystemPrescription(this.addPlan.mode);
1070
+
1024
   },
1071
   },
1025
   watch: {
1072
   watch: {
1026
     "addPlan.dialysis_duration": function() {
1073
     "addPlan.dialysis_duration": function() {

+ 5 - 5
src/xt_pages/dialysis/batch_print/batch_print_order_nine.vue View File

1296
                     v-for="(advice, advice_index) in record.advices"
1296
                     v-for="(advice, advice_index) in record.advices"
1297
                     :key="advice_index"
1297
                     :key="advice_index"
1298
                   >
1298
                   >
1299
-                    <td height="32px">
1299
+                    <td height="40px">
1300
                       <span v-if="advice[0].start_time">
1300
                       <span v-if="advice[0].start_time">
1301
                         {{ getTime(advice[0].start_time, "{h}:{i}") }}
1301
                         {{ getTime(advice[0].start_time, "{h}:{i}") }}
1302
                       </span>
1302
                       </span>
1303
                       <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
1303
                       <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
1304
                     </td>
1304
                     </td>
1305
                     <td
1305
                     <td
1306
-                      height="32px"
1306
+                      height="40px"
1307
                       colspan="2"
1307
                       colspan="2"
1308
                       class="advice-name"
1308
                       class="advice-name"
1309
                       style="padding-left:7px;"
1309
                       style="padding-left:7px;"
1342
                   <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
1342
                   <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
1343
                 </td> -->
1343
                 </td> -->
1344
                     <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
1344
                     <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
1345
-                    <td height="32px">
1345
+                    <td height="40px">
1346
                       <span
1346
                       <span
1347
                         v-if="setAdminUserES(advice[0], 'advice_doctor') == ''"
1347
                         v-if="setAdminUserES(advice[0], 'advice_doctor') == ''"
1348
                         >{{ getAdminUser(advice[0], "advice_doctor") }}</span
1348
                         >{{ getAdminUser(advice[0], "advice_doctor") }}</span
1360
                   <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
1360
                   <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
1361
                   <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
1361
                   <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
1362
                 </td> -->
1362
                 </td> -->
1363
-                    <td height="32px">
1363
+                    <td height="40px">
1364
                       <span
1364
                       <span
1365
                         v-if="
1365
                         v-if="
1366
                           setAdminUserES(advice[0], 'execution_staff') == ''
1366
                           setAdminUserES(advice[0], 'execution_staff') == ''
1376
                         style="height: 30px;"
1376
                         style="height: 30px;"
1377
                       />
1377
                       />
1378
                     </td>
1378
                     </td>
1379
-                    <td height="32px">
1379
+                    <td height="40px">
1380
                       <span v-if="advice[0].execution_time">{{
1380
                       <span v-if="advice[0].execution_time">{{
1381
                         getTime(advice[0].execution_time, "{h}:{i}")
1381
                         getTime(advice[0].execution_time, "{h}:{i}")
1382
                       }}</span>
1382
                       }}</span>

+ 11 - 6
src/xt_pages/dialysis/batch_print/batch_print_order_thirteen.vue View File

90
                 </div>
90
                 </div>
91
                 <div class="row">
91
                 <div class="row">
92
                     血管通路 
92
                     血管通路 
93
-                    <div class="inline_block under_line" style="width:93%;text-align: left;">
93
+                    <div class="inline_block under_line" style="width:92%;text-align: left;">
94
                     <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '内瘘-左') || isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '内瘘-右')" showValue="内瘘"></label-box>
94
                     <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '内瘘-左') || isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '内瘘-右')" showValue="内瘘"></label-box>
95
                     (<label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '内瘘-左')" showValue="左"></label-box>
95
                     (<label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '内瘘-左')" showValue="左"></label-box>
96
                         <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '内瘘-右')" showValue="右"></label-box>)
96
                         <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '内瘘-右')" showValue="右"></label-box>)
111
                 </div>
111
                 </div>
112
                 <div class="row">
112
                 <div class="row">
113
                     抗凝药物 
113
                     抗凝药物 
114
-                    <div class="inline_block under_line" style="width:93%;text-align: left;">
114
+                    <div class="inline_block under_line" style="width:92%;text-align: left;">
115
                     <label-box :isChecked="record.prescription.anticoagulant == 2 ? true : false" showValue="普通肝素"></label-box>&nbsp;
115
                     <label-box :isChecked="record.prescription.anticoagulant == 2 ? true : false" showValue="普通肝素"></label-box>&nbsp;
116
                     <label-box :isChecked="record.prescription.anticoagulant == 3 ?  true : record.prescription.anticoagulant == 6 ? true : record.prescription.anticoagulant == 7 ? true : false" showValue="低分子肝素"></label-box>
116
                     <label-box :isChecked="record.prescription.anticoagulant == 3 ?  true : record.prescription.anticoagulant == 6 ? true : record.prescription.anticoagulant == 7 ? true : false" showValue="低分子肝素"></label-box>
117
                     (<label-box :isChecked="record.prescription.anticoagulant == 6 ? true : false" showValue="钙"></label-box>
117
                     (<label-box :isChecked="record.prescription.anticoagulant == 6 ? true : false" showValue="钙"></label-box>
202
                 </div>
202
                 </div>
203
                 <div class="row">
203
                 <div class="row">
204
                     透前评估 
204
                     透前评估 
205
-                    <div class="inline_block under_line" style="width:93%;text-align: left;">
205
+                    <div class="inline_block under_line" style="width:92%;text-align: left;">
206
                     <div class="inline_block" style="margin-right:30px;">
206
                     <div class="inline_block" style="margin-right:30px;">
207
                         体温
207
                         体温
208
                         <div class="inline_block" style="width:50px;text-align:center">
208
                         <div class="inline_block" style="width:50px;text-align:center">
353
                 <table class="print-table" border="1">
353
                 <table class="print-table" border="1">
354
                     <tbody>
354
                     <tbody>
355
                     <tr>
355
                     <tr>
356
-                        <td width="40" style="padding-left:5px;border:none;border-right:1px solid #000;">
356
+                        <td width="40" rowspan="2" style="padding-left:5px;border:none;border-right:1px solid #000;">
357
                         透后评估
357
                         透后评估
358
                         </td>
358
                         </td>
359
 
359
 
386
                             </span>次/分
386
                             </span>次/分
387
                         </div>
387
                         </div>
388
                         </td>
388
                         </td>
389
-                        <td width="50" style="border:none;padding-left:5px">实际置换量:</td>
389
+                        
390
+                    </tr>
391
+                    <tr>
392
+                      <td width="50" style="border:none;padding-left:5px">实际置换量:</td>
390
                         <td width="30" style="text-align:left;border:none;">
393
                         <td width="30" style="text-align:left;border:none;">
391
                         <div>
394
                         <div>
392
                             <span class="under_line" style="width:50px;display:inline-block">
395
                             <span class="under_line" style="width:50px;display:inline-block">
401
                         <label-box :isChecked="record.assessment_after_dislysis.cruor ? (record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅱ度') > -1 ? true : false) : false" showValue="+ +"></label-box>
404
                         <label-box :isChecked="record.assessment_after_dislysis.cruor ? (record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅱ度') > -1 ? true : false) : false" showValue="+ +"></label-box>
402
                         <label-box :isChecked="record.assessment_after_dislysis.cruor ? (record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅲ度') > -1 ? true : false) : false" showValue="+ + +"></label-box>
405
                         <label-box :isChecked="record.assessment_after_dislysis.cruor ? (record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅲ度') > -1 ? true : false) : false" showValue="+ + +"></label-box>
403
                         </td>
406
                         </td>
407
+                        <td width="50" style="text-align:left;border:none;"></td>
408
+                        <td width="110" style="text-align:left;border:none;"></td>
404
                     </tr>
409
                     </tr>
405
                     </tbody>
410
                     </tbody>
406
                 </table>
411
                 </table>
797
       const style2 =
802
       const style2 =
798
         '@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: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 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;}'
803
         '@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: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 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;}'
799
       const style3 =
804
       const style3 =
800
-        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}.row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}'
805
+        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:16px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}.row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}'
801
       printJS({
806
       printJS({
802
         printable: 'print_content',
807
         printable: 'print_content',
803
         type: 'html',
808
         type: 'html',

File diff suppressed because it is too large
+ 1970 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_twenty.vue


+ 12 - 0
src/xt_pages/dialysis/bloodPresssWatch.vue View File

160
           >批量打印</el-button
160
           >批量打印</el-button
161
         >
161
         >
162
       </template>
162
       </template>
163
+      <template v-if="this.template_id == 20">
164
+        <el-button
165
+          size="small"
166
+          icon="el-icon-printer"
167
+          :disabled="selecting_schs.length == 0"
168
+          @click="batchPrintAction"
169
+          type="primary"
170
+          >批量打印</el-button
171
+        >
172
+      </template>
163
     </div>
173
     </div>
164
     <div class="app-container">
174
     <div class="app-container">
165
       <!-- <div class="filter-container">
175
       <!-- <div class="filter-container">
667
         this.$router.push({ path: "/dialysis/print/batch/thirteen" });
677
         this.$router.push({ path: "/dialysis/print/batch/thirteen" });
668
       } else if (this.template_id == 15) {
678
       } else if (this.template_id == 15) {
669
         this.$router.push({ path: "/dialysis/print/batch/fifteen" });
679
         this.$router.push({ path: "/dialysis/print/batch/fifteen" });
680
+      } else if (this.template_id == 20) {
681
+        this.$router.push({ path: "/dialysis/print/batch/twenty" });
670
       }
682
       }
671
     },
683
     },
672
     batchPrintActionOne: function() {
684
     batchPrintActionOne: function() {

+ 7 - 4
src/xt_pages/dialysis/details/NavIgation.vue View File

541
 
541
 
542
       this.$refs.assessmentBefore.setLastRecord(
542
       this.$refs.assessmentBefore.setLastRecord(
543
         lastPredialysisEvaluation,
543
         lastPredialysisEvaluation,
544
-        lastDryWeightDislysis
544
+        lastDryWeightDislysis,
545
+
545
       );
546
       );
546
       this.$refs.prescription.setLastRecord(
547
       this.$refs.prescription.setLastRecord(
547
         schedual,
548
         schedual,
571
       this.$refs.monitor_dialog.show();
572
       this.$refs.monitor_dialog.show();
572
     },
573
     },
573
     showAssessmentAfterDialog: function() {
574
     showAssessmentAfterDialog: function() {
574
-      this.$refs.assessment_after_dislysis.show(this.assessment_after_dislysis);
575
+      this.$refs.assessment_after_dislysis.show(this.assessment_after_dislysis,this.last_assessment_after_dislysis);
575
     },
576
     },
576
     showDoctorAdviceDialog: function() {
577
     showDoctorAdviceDialog: function() {
577
       this.$refs.doctor_advice.show();
578
       this.$refs.doctor_advice.show();
583
       this.$refs.finish_dialog.show(this.dialysis_order);
584
       this.$refs.finish_dialog.show(this.dialysis_order);
584
     },
585
     },
585
     showPrescription: function() {
586
     showPrescription: function() {
586
-      this.$refs.prescription.show(this.prescription);
587
+      this.$refs.prescription.show(this.prescription,this.schedual);
587
     },
588
     },
588
     showAccepts: function() {
589
     showAccepts: function() {
589
       this.$refs.accepts.show(this.receiver_treatment_access);
590
       this.$refs.accepts.show(this.receiver_treatment_access);
590
     },
591
     },
591
     showAssessmentBefore: function() {
592
     showAssessmentBefore: function() {
592
-      this.$refs.assessmentBefore.show(this.predialysis_evaluation);
593
+      console.log(this.last_predialysis_evaluation)
594
+
595
+      this.$refs.assessmentBefore.show(this.predialysis_evaluation,this.last_dryWeight_dislysis,this.last_predialysis_evaluation);
593
     },
596
     },
594
     showDoubleCheck: function() {
597
     showDoubleCheck: function() {
595
       this.$refs.doubleCheck.show();
598
       this.$refs.doubleCheck.show();

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

1013
     },
1013
     },
1014
 
1014
 
1015
     // 数据开始
1015
     // 数据开始
1016
-    show(predialysis) {
1016
+    show(predialysis,last_after) {
1017
       this.isVisibility = true
1017
       this.isVisibility = true
1018
       this.predialysis = predialysis
1018
       this.predialysis = predialysis
1019
       this.form.observation_content = predialysis.observation_content
1019
       this.form.observation_content = predialysis.observation_content
1022
         predialysis.observation_content_other
1022
         predialysis.observation_content_other
1023
       // console.log("透后", predialysis);
1023
       // console.log("透后", predialysis);
1024
 
1024
 
1025
+      if(predialysis != null && predialysis.id == 0){
1026
+        if (last_after != null) {
1027
+          for (var key in last_after){
1028
+            if (key != 'actual_treatment_hour' && key != 'actual_treatment_minute' && key != 'weight_loss' && key != 'weight_after'  && key != 'systolic_blood_pressure' && key != 'diastolic_blood_pressure' && key != 'pulse_frequency' ){
1029
+              this.$set(
1030
+                this.form,
1031
+                key,
1032
+                last_after[key]
1033
+              )
1034
+
1035
+            }
1036
+          }
1037
+        }
1038
+      }
1039
+
1040
+
1041
+
1042
+
1025
       this.getPermission()
1043
       this.getPermission()
1044
+
1045
+
1026
     },
1046
     },
1027
 
1047
 
1028
     hide() {
1048
     hide() {

+ 33 - 70
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

645
         }
645
         }
646
         return false
646
         return false
647
       },
647
       },
648
-      show(assessment) {
648
+      show(assessment, lastDryWeightDislysis,last_predialysis_evaluation) {
649
+        console.log(last_predialysis_evaluation)
650
+
651
+        this.lastPredialysisEvaluation = last_predialysis_evaluation
649
         this.assessment = assessment
652
         this.assessment = assessment
650
-        console.log('透前', assessment)
651
         this.getPermission()
653
         this.getPermission()
652
         this.isVisibility = true
654
         this.isVisibility = true
653
         for (let i = 0; i < this.admin_users.length; i++) {
655
         for (let i = 0; i < this.admin_users.length; i++) {
659
           this.weight_adjust.doctor = this.$store.getters.xt_user.user.id
661
           this.weight_adjust.doctor = this.$store.getters.xt_user.user.id
660
         }
662
         }
661
 
663
 
664
+
665
+
666
+
667
+
662
         if (this.predialysis_evaluation.id == 0) {
668
         if (this.predialysis_evaluation.id == 0) {
663
-          if (this.lastDryWeightDislysis != null) {
664
-            this.weight_adjust.weight = this.lastDryWeightDislysis.dry_weight
665
-            this.assessmentBeforeDislysis.dry_weight = this.lastDryWeightDislysis.dry_weight
669
+
670
+
671
+          if (lastDryWeightDislysis != null) {
672
+            this.weight_adjust.weight = lastDryWeightDislysis.dry_weight
673
+            this.$set(
674
+              this.assessmentBeforeDislysis,
675
+              'dry_weight',
676
+              lastDryWeightDislysis.dry_weight.toString()
677
+            )
678
+
666
           } else {
679
           } else {
667
             if (this.lastPredialysisEvaluation != null) {
680
             if (this.lastPredialysisEvaluation != null) {
668
               this.weight_adjust.weight = this.lastPredialysisEvaluation.dry_weight
681
               this.weight_adjust.weight = this.lastPredialysisEvaluation.dry_weight
669
               this.assessmentBeforeDislysis.dry_weight = this.lastPredialysisEvaluation.dry_weight
682
               this.assessmentBeforeDislysis.dry_weight = this.lastPredialysisEvaluation.dry_weight
670
             }
683
             }
671
           }
684
           }
685
+
672
           if (this.lastPredialysisEvaluation != null) {
686
           if (this.lastPredialysisEvaluation != null) {
673
-            this.$set(
674
-              this.assessmentBeforeDislysis,
675
-              'additional_weight',
676
-              this.lastPredialysisEvaluation['additional_weight'].toString()
677
-            )
687
+            for (var key in this.lastPredialysisEvaluation){
688
+              if (key != 'systolic_blood_pressure' && key != 'diastolic_blood_pressure' && key != 'pulse_frequency' && key != 'dry_weight' && key != 'weight_before'){
689
+                this.$set(
690
+                  this.assessmentBeforeDislysis,
691
+                  key,
692
+                  this.lastPredialysisEvaluation[key]
693
+                )
678
 
694
 
679
-            this.$set(
680
-              this.assessmentBeforeDislysis,
681
-              'internal_fistula',
682
-              this.lastPredialysisEvaluation['internal_fistula']
683
-            )
684
-            this.$set(
685
-              this.assessmentBeforeDislysis,
686
-              'internal_fistula_skin',
687
-              this.lastPredialysisEvaluation['internal_fistula_skin']
688
-            )
689
-            this.$set(
690
-              this.assessmentBeforeDislysis,
691
-              'blood_access_part_id',
692
-              this.lastPredialysisEvaluation['blood_access_part_id']
693
-            )
694
-            this.$set(
695
-              this.assessmentBeforeDislysis,
696
-              'blood_access_part_opera_id',
697
-              this.lastPredialysisEvaluation['blood_access_part_opera_id']
698
-            )
695
+              }
696
+            }
699
           }
697
           }
700
 
698
 
701
         } else {
699
         } else {
703
           this.weight_adjust.weight = this.predialysis_evaluation['dry_weight']
701
           this.weight_adjust.weight = this.predialysis_evaluation['dry_weight']
704
         }
702
         }
705
 
703
 
706
-
707
-
708
-
709
-
710
-
711
-
712
       },
704
       },
713
       hide() {
705
       hide() {
714
         this.isVisibility = false
706
         this.isVisibility = false
808
 
800
 
809
             break
801
             break
810
           case '11': //
802
           case '11': //
811
-            this.InnerDialogProps.values = this.$store.getters.puncture_needle
803
+            this.InnerDialogProps.values =getDataConfig('hemodialysis', 'puncture_needle')
812
             this.InnerDialogProps.titles = '穿刺针'
804
             this.InnerDialogProps.titles = '穿刺针'
813
             this.InnerDialogProps.type = 'puncture_needle'
805
             this.InnerDialogProps.type = 'puncture_needle'
814
             this.InnerDialogProps.selected = this.assessmentBeforeDislysis.puncture_needle
806
             this.InnerDialogProps.selected = this.assessmentBeforeDislysis.puncture_needle
816
 
808
 
817
             break
809
             break
818
         }
810
         }
819
-      }, innerDialogComfirm: function(val) {
811
+      },
812
+      innerDialogComfirm: function(val) {
820
         this.InnerDialogProps.visibility = false
813
         this.InnerDialogProps.visibility = false
821
         switch (val.type) {
814
         switch (val.type) {
822
           case 'last_dialysis_after':
815
           case 'last_dialysis_after':
857
             this.assessmentBeforeDislysis.puncture_needle = val.value.join(',')
850
             this.assessmentBeforeDislysis.puncture_needle = val.value.join(',')
858
             break
851
             break
859
         }
852
         }
860
-      }, innerDialogCancle: function() {
853
+      },
854
+      innerDialogCancle: function() {
861
         this.InnerDialogProps.visibility = false
855
         this.InnerDialogProps.visibility = false
862
       }, handleComfirm: function() {
856
       }, handleComfirm: function() {
863
         var arr = this.assessmentBeforeDislysis
857
         var arr = this.assessmentBeforeDislysis
1019
 
1013
 
1020
       },
1014
       },
1021
       'predialysis_evaluation.id': function() {
1015
       'predialysis_evaluation.id': function() {
1022
-        console.log(this.last_predialysis)
1023
 
1016
 
1024
         if (this.predialysis_evaluation.id > 0) {
1017
         if (this.predialysis_evaluation.id > 0) {
1025
           for (var index in this.assessmentBeforeDislysis) {
1018
           for (var index in this.assessmentBeforeDislysis) {
1026
             this.assessmentBeforeDislysis[index] = this.predialysis_evaluation[index]
1019
             this.assessmentBeforeDislysis[index] = this.predialysis_evaluation[index]
1027
           }
1020
           }
1028
 
1021
 
1029
-          // this.assessmentBeforeDislysis['catheter_bend'] = this.predialysis_evaluation['catheter_bend'].toString()
1030
-          // this.assessmentBeforeDislysis['is_hemorrhage'] = this.predialysis_evaluation['is_hemorrhage'].toString()
1031
           if (this.predialysis_evaluation['catheter_bend'] == 0) {
1022
           if (this.predialysis_evaluation['catheter_bend'] == 0) {
1032
             this.assessmentBeforeDislysis['catheter_bend'] = ''
1023
             this.assessmentBeforeDislysis['catheter_bend'] = ''
1033
           } else {
1024
           } else {
1045
             this.assessmentBeforeDislysis['is_infect'] = this.predialysis_evaluation['is_infect'] + ''
1036
             this.assessmentBeforeDislysis['is_infect'] = this.predialysis_evaluation['is_infect'] + ''
1046
           }
1037
           }
1047
 
1038
 
1048
-          //
1049
-          //
1050
-          // if (this.predialysis_evaluation['puncture_way'] == 0) {
1051
-          //   this.assessmentBeforeDislysis['puncture_way'] = ''
1052
-          // } else {
1053
-          //   this.assessmentBeforeDislysis['puncture_way'] = this.predialysis_evaluation['puncture_way'] + ''
1054
-          // }
1055
-          //
1056
-          //
1057
-          // if (this.predialysis_evaluation['venous_catheterization'] == 0) {
1058
-          //   this.assessmentBeforeDislysis['venous_catheterization'] = ''
1059
-          // } else {
1060
-          //   this.assessmentBeforeDislysis['venous_catheterization'] = this.predialysis_evaluation['venous_catheterization'] + ''
1061
-          // }
1062
-          //
1063
-          //
1064
-          // if (this.predialysis_evaluation['venous_catheterization_part'] == 0) {
1065
-          //   this.assessmentBeforeDislysis['venous_catheterization_part'] = ''
1066
-          // } else {
1067
-          //   this.assessmentBeforeDislysis['venous_catheterization_part'] = this.predialysis_evaluation['venous_catheterization_part'] + ''
1068
-          // }
1069
-          //
1070
-          //
1071
-          // if (this.predialysis_evaluation['emergency_treatment'] == 0) {
1072
-          //   this.assessmentBeforeDislysis['emergency_treatment'] = ''
1073
-          // } else {
1074
-          //   this.assessmentBeforeDislysis['emergency_treatment'] = this.predialysis_evaluation['emergency_treatment'] + ''
1075
-          // }
1076
 
1039
 
1077
           if (this.predialysis_evaluation['blood_access_part_id'] == 0) {
1040
           if (this.predialysis_evaluation['blood_access_part_id'] == 0) {
1078
             this.assessmentBeforeDislysis['blood_access_part_id'] = ''
1041
             this.assessmentBeforeDislysis['blood_access_part_id'] = ''

File diff suppressed because it is too large
+ 2174 - 2309
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue


+ 17 - 13
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

128
               {{ scope.row.transmembrane_pressure ? scope.row.transmembrane_pressure : "" }}
128
               {{ scope.row.transmembrane_pressure ? scope.row.transmembrane_pressure : "" }}
129
             </template>
129
             </template>
130
           </el-table-column>
130
           </el-table-column>
131
-          
131
+
132
           <el-table-column prop="transmembrane_pressure" align="center"  label="跨膜压(mmHg)" width="120" v-if="isShow('跨膜压') && (monitors[0] && monitors[0]['transmembrane_pressure_type'] != 2)" >
132
           <el-table-column prop="transmembrane_pressure" align="center"  label="跨膜压(mmHg)" width="120" v-if="isShow('跨膜压') && (monitors[0] && monitors[0]['transmembrane_pressure_type'] != 2)" >
133
             <template slot-scope="scope">
133
             <template slot-scope="scope">
134
               {{ scope.row.transmembrane_pressure ? scope.row.transmembrane_pressure : "" }}
134
               {{ scope.row.transmembrane_pressure ? scope.row.transmembrane_pressure : "" }}
148
                   template_id == 12 ||
148
                   template_id == 12 ||
149
                   template_id == 13 ||
149
                   template_id == 13 ||
150
                   template_id == 17 ||
150
                   template_id == 17 ||
151
-                  template_id == 18 || 
151
+                  template_id == 18 ||
152
                   template_id == 19 ||
152
                   template_id == 19 ||
153
                   template_id == 20)
153
                   template_id == 20)
154
             "
154
             "
330
               {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : ""  }}
330
               {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : ""  }}
331
             </template>
331
             </template>
332
           </el-table-column>
332
           </el-table-column>
333
-          
333
+
334
           <el-table-column
334
           <el-table-column
335
             prop="heparin"
335
             prop="heparin"
336
             align="center"
336
             align="center"
890
       getTodayMonitor(params).then(rs => {
890
       getTodayMonitor(params).then(rs => {
891
         var resp = rs.data.data
891
         var resp = rs.data.data
892
         this.form.operate_time = resp.monitor.operate_time ? (resp.monitor.operate_time + 3600) * 1000 : Date.parse(new Date())
892
         this.form.operate_time = resp.monitor.operate_time ? (resp.monitor.operate_time + 3600) * 1000 : Date.parse(new Date())
893
+        this.form.temperature = '' // this.last_monitor_record.pulse_frequency;
894
+
893
         this.form.pulse_frequency = '' // this.last_monitor_record.pulse_frequency;
895
         this.form.pulse_frequency = '' // this.last_monitor_record.pulse_frequency;
894
-        this.form.breathing_rated = resp.monitor.breathing_rate ? resp.monitor.breathing_rate : ''
896
+        this.form.breathing_rated =  resp.monitor.breathing_rated ? resp.monitor.breathing_rated : ''
895
         this.form.systolic_bp = '' // this.last_monitor_record.systolic_blood_pressure;
897
         this.form.systolic_bp = '' // this.last_monitor_record.systolic_blood_pressure;
896
         this.form.diastolic_bp = '' // this.last_monitor_record.diastolic_blood_pressure;
898
         this.form.diastolic_bp = '' // this.last_monitor_record.diastolic_blood_pressure;
897
         this.form.blood_flow_volume = resp.monitor.blood_flow_volume ? resp.monitor.blood_flow_volume : ''
899
         this.form.blood_flow_volume = resp.monitor.blood_flow_volume ? resp.monitor.blood_flow_volume : ''
898
         this.form.venous_pressure = '' // this.last_monitor_record.venous_pressure;
900
         this.form.venous_pressure = '' // this.last_monitor_record.venous_pressure;
899
         this.form.venous_pressure_type = resp.monitor.venous_pressure_type ? resp.monitor.venous_pressure_type : 1
901
         this.form.venous_pressure_type = resp.monitor.venous_pressure_type ? resp.monitor.venous_pressure_type : 1
900
-        this.form.arterial_pressure = '' // this.last_monitor_record.arterial_pressure;
902
+        this.form.arterial_pressure = resp.monitor.arterial_pressure ? resp.monitor.arterial_pressure : '' // this.last_monitor_record.arterial_pressure;
901
         this.form.arterial_pressure_type = resp.monitor.arterial_pressure_type ? resp.monitor.arterial_pressure_type : 1
903
         this.form.arterial_pressure_type = resp.monitor.arterial_pressure_type ? resp.monitor.arterial_pressure_type : 1
902
         this.form.transmembrane_pressure = '' // this.last_monitor_record.transmembrane_pressure;
904
         this.form.transmembrane_pressure = '' // this.last_monitor_record.transmembrane_pressure;
903
         this.form.transmembrane_pressure_type = resp.monitor.transmembrane_pressure_type ? resp.monitor.transmembrane_pressure_type : 1
905
         this.form.transmembrane_pressure_type = resp.monitor.transmembrane_pressure_type ? resp.monitor.transmembrane_pressure_type : 1
905
         this.form.ultrafiltration_volume = resp.monitor.ultrafiltration_volume ? resp.monitor.ultrafiltration_volume : ''
907
         this.form.ultrafiltration_volume = resp.monitor.ultrafiltration_volume ? resp.monitor.ultrafiltration_volume : ''
906
         this.form.sodium_concentration = resp.monitor.sodium_concentration ? resp.monitor.sodium_concentration : ''
908
         this.form.sodium_concentration = resp.monitor.sodium_concentration ? resp.monitor.sodium_concentration : ''
907
         this.form.dialysate_temperature = resp.monitor.dialysate_temperature ? resp.monitor.dialysate_temperature : ''
909
         this.form.dialysate_temperature = resp.monitor.dialysate_temperature ? resp.monitor.dialysate_temperature : ''
908
-        this.form.temperature = resp.monitor.temperature ? resp.monitor.temperature : ''
910
+        this.form.temperature =  resp.monitor.temperature ? resp.monitor.temperature : ''
909
         this.form.replacement_rate = resp.monitor.replacement_rate ? resp.monitor.replacement_rate : ''
911
         this.form.replacement_rate = resp.monitor.replacement_rate ? resp.monitor.replacement_rate : ''
910
         this.form.heparin = resp.monitor.heparin ? resp.monitor.heparin : ''
912
         this.form.heparin = resp.monitor.heparin ? resp.monitor.heparin : ''
911
         this.form.dialysate_flow = resp.monitor.dialysate_flow ? resp.monitor.dialysate_flow : ''
913
         this.form.dialysate_flow = resp.monitor.dialysate_flow ? resp.monitor.dialysate_flow : ''
912
-        this.form.displacement_quantity = '' // this.last_monitor_record.displacement_quantity;
913
-        this.form.conductivity = ''
914
-        this.form.displacement_flow_quantity = ''
915
-        this.form.ktv = '' // this.last_monitor_record.ktv;
916
-        this.form.symptom = '' // this.last_monitor_record.symptom;
917
-        this.form.dispose = '' // this.last_monitor_record.dispose;
918
-        this.form.result = '' // this.last_monitor_record.result;
914
+        this.form.displacement_quantity =  resp.monitor.displacement_quantity ? resp.monitor.displacement_quantity : '' // this.last_monitor_record.displacement_quantity;
915
+        this.form.conductivity =   ''
916
+        this.form.displacement_flow_quantity = resp.monitor.displacement_flow_quantity ? resp.monitor.displacement_flow_quantity : ''
917
+        this.form.ktv =  resp.monitor.ktv ? resp.monitor.ktv : '' // this.last_monitor_record.ktv;
918
+        this.form.symptom =  resp.monitor.symptom ? resp.monitor.symptom : '' // this.last_monitor_record.symptom;
919
+        this.form.dispose =  resp.monitor.dispose ? resp.monitor.dispose : '' // this.last_monitor_record.dispose;
920
+        this.form.result =  resp.monitor.result ? resp.monitor.result : '' // this.last_monitor_record.result;
919
         this.form.blood_oxygen_saturation = resp.monitor.blood_oxygen_saturation ? resp.monitor.blood_oxygen_saturation : ''
921
         this.form.blood_oxygen_saturation = resp.monitor.blood_oxygen_saturation ? resp.monitor.blood_oxygen_saturation : ''
922
+
923
+
920
       })
924
       })
921
     },
925
     },
922
 
926
 

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

25
         <el-tab-pane label="候诊区" name="first">
25
         <el-tab-pane label="候诊区" name="first">
26
           <div class="cell clearfix" style="margin-bottom:10px;">
26
           <div class="cell clearfix" style="margin-bottom:10px;">
27
             <el-date-picker v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange" :editable="false" :clearable="false" style="width: 45%;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" ></el-date-picker>
27
             <el-date-picker v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange" :editable="false" :clearable="false" style="width: 45%;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" ></el-date-picker>
28
-            <el-input size="small" style="width:24%;" v-model.trim="search_input" class="filter-item"/>
28
+            <el-input size="small" style="width:24%;" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item"/>
29
             <el-button size="small" class="filter-item" type="primary" style="margin-right:20px;" @click="searchAction">搜索</el-button>
29
             <el-button size="small" class="filter-item" type="primary" style="margin-right:20px;" @click="searchAction">搜索</el-button>
30
           </div>
30
           </div>
31
           <div class="cell clearfix" style="margin-bottom:10px;display:flex;">
31
           <div class="cell clearfix" style="margin-bottom:10px;display:flex;">

+ 4 - 4
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

268
         <div style="width:270px;margin-right:20px;">
268
         <div style="width:270px;margin-right:20px;">
269
             <div class="cell clearfix" style="margin-bottom:10px;">
269
             <div class="cell clearfix" style="margin-bottom:10px;">
270
             <el-date-picker v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange" :editable="false" :clearable="false" style="width: 130px;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" ></el-date-picker>
270
             <el-date-picker v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange" :editable="false" :clearable="false" style="width: 130px;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" ></el-date-picker>
271
-            <el-input size="small" style="width:80px;" v-model.trim="search_input" class="filter-item"/>
271
+            <el-input size="small" style="width:80px;" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item"/>
272
             <el-button size="small" class="filter-item" type="primary" @click="searchAction">搜索</el-button>
272
             <el-button size="small" class="filter-item" type="primary" @click="searchAction">搜索</el-button>
273
           </div>
273
           </div>
274
           <div class="cell clearfix" style="margin-bottom:10px;">
274
           <div class="cell clearfix" style="margin-bottom:10px;">
601
       //
601
       //
602
       tableData: [],
602
       tableData: [],
603
       selected_date: new Date(),
603
       selected_date: new Date(),
604
-      // search_input 和 search_keyword,使输入关键字时不会经常刷新 filtedSchedules
604
+      // search_input 和 search_keyword,使输入关键字时不会经常刷新  filtedSchedules
605
       search_keyword: '', // 确定用于搜索的关键字
605
       search_keyword: '', // 确定用于搜索的关键字
606
       search_input: '', // 输入中的关键字
606
       search_input: '', // 输入中的关键字
607
       patient_state:[
607
       patient_state:[
663
       const style2 =
663
       const style2 =
664
         '@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: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;}';
664
         '@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: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;}';
665
       const style3 =
665
       const style3 =
666
-        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}.row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}';
666
+        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:16px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}.row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}';
667
       // const style3 =
667
       // const style3 =
668
       //   '@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: 16px;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: 16px;padding: 5px 5px;line-height: 18px;}.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:950px;}.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;}';
668
       //   '@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: 16px;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: 16px;padding: 5px 5px;line-height: 18px;}.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:950px;}.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;}';
669
       //
669
       //
670
 
670
 
671
       const style5 =
671
       const style5 =
672
-        '@media print {.dialysis-print-order {width: 960px; margin: 0 auto;}.dialysis-print-order .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.dialysis-print-order .order-title {  margin: auto;  font-weight: 600;  text-align: center;  font-size: 22px;  padding: 10px 20px 0px 20px;}.dialysis-print-order .table-box {  width: 100%;  line-height: 18px;  font-size: 14px;}.dialysis-print-order .print-table {  width: 100%;  text-align: center;  border-collapse: collapse;  line-height: 40px;  font-size: 14px;}.dialysis-print-order .print-table-no {  width: 100%;  text-align: center;  border-collapse: collapse;  font-size: 14px;}.dialysis-print-order .under-line {  border-bottom: 1px solid #999;  width: 95%;  text-align: center;  margin-left: 2px;}.dialysis-print-order .title-box {  text-align: center;  font-size: 16px;}.dialysis-print-order .radio-lebel-box {  font-weight: 400;  cursor: pointer;}.dialysis-print-order .radio-no {  opacity: 0;  outline: none;  position: absolute;  margin: 0;  width: 0;  height: 0;  z-index: -1;}.dialysis-print-order .radio-inner {  white-space: nowrap;  cursor: pointer;  outline: none;  display: inline-block;  line-height: 1;  position: relative;  vertical-align: middle;}.dialysis-print-order .radio-fang {  display: inline-block;  position: relative;  border: 1px solid #000;  box-sizing: border-box;  width: 14px;  height: 14px;  background-color: #fff;  z-index: 1;  transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),    background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);}.dialysis-print-order .is-checked-radio::after {  content: "√";  font-size: 15px;}.dialysis-print-order .print-table-no tr td {  padding: 8px 5px;  line-height: 25px;}.dialysis-print-order .print-table tr td {  padding: 1px 1px;  /*line-height: 25px;*/}.es-img {  height: 25px;}.advice-name {  text-align: left;}.advice-children {  display: flex;}.title-box-pro {  border: 0 #fff;  line-height: 25px;  height: 25px;  text-align: left;  padding-left: 10px !important;}.title-box-pro-tr {  border: 0 #fff;}.text-align-left {  text-align: left !important;  padding-left: 10px !important;  font-size: 14px !important;  line-height: 25px;}.print-table-tr-new td {line-height: 20px !important;}.border-top-solid {border: solid 1px #000;}.print-template-two tr {line-height: 30px;}}';
672
+        '@media print {.dialysis-print-order {width: 960px; margin: 0 auto;}.dialysis-print-order .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.dialysis-print-order .order-title {  margin: auto;  font-weight: 600;  text-align: center;  font-size: 22px;  padding: 10px 20px 0px 20px;}.dialysis-print-order .table-box {  width: 100%;  line-height: 18px;  font-size: 14px;}.dialysis-print-order .print-table {  width: 100%;  text-align: center;  border-collapse: collapse;  line-height: 28px;  font-size: 14px;}.dialysis-print-order .print-table-no {  width: 100%;  text-align: center;  border-collapse: collapse;  font-size: 14px;}.dialysis-print-order .under-line {  border-bottom: 1px solid #999;  width: 95%;  text-align: center;  margin-left: 2px;}.dialysis-print-order .title-box {  text-align: center;  font-size: 16px;}.dialysis-print-order .radio-lebel-box {  font-weight: 400;  cursor: pointer;}.dialysis-print-order .radio-no {  opacity: 0;  outline: none;  position: absolute;  margin: 0;  width: 0;  height: 0;  z-index: -1;}.dialysis-print-order .radio-inner {  white-space: nowrap;  cursor: pointer;  outline: none;  display: inline-block;  line-height: 1;  position: relative;  vertical-align: middle;}.dialysis-print-order .radio-fang {  display: inline-block;  position: relative;  border: 1px solid #000;  box-sizing: border-box;  width: 14px;  height: 14px;  background-color: #fff;  z-index: 1;  transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),    background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);}.dialysis-print-order .is-checked-radio::after {  content: "√";  font-size: 15px;}.dialysis-print-order .print-table-no tr td {  padding: 8px 5px;  line-height: 25px;}.dialysis-print-order .print-table tr td {  padding: 1px 1px;  /*line-height: 25px;*/}.es-img {  height: 25px;}.advice-name {  text-align: left;}.advice-children {  display: flex;}.title-box-pro {  border: 0 #fff;  line-height: 25px;  height: 25px;  text-align: left;  padding-left: 10px !important;}.title-box-pro-tr {  border: 0 #fff;}.text-align-left {  text-align: left !important;  padding-left: 10px !important;  font-size: 14px !important;  line-height: 25px;}.print-table-tr-new td {line-height: 20px !important;}.border-top-solid {border: solid 1px #000;}.print-template-two tr {line-height: 30px;}}';
673
       const style6 =
673
       const style6 =
674
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:16px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:16px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:16px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
674
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:16px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:16px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:16px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
675
 
675
 

+ 1 - 1
src/xt_pages/dialysis/schedualPatient.vue View File

69
       </el-select>
69
       </el-select>
70
       <label class="title"><span class="name">日期查询</span> : </label>
70
       <label class="title"><span class="name">日期查询</span> : </label>
71
       <el-date-picker v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange" :editable="false" :clearable="false" style="width: 196px;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" ></el-date-picker>
71
       <el-date-picker v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange" :editable="false" :clearable="false" style="width: 196px;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" ></el-date-picker>
72
-      <el-input size="small" style="width: 180px;" v-model.trim="search_input" class="filter-item"/>
72
+      <el-input size="small" style="width: 180px;" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item"/>
73
       <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="searchAction">搜索</el-button>
73
       <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="searchAction">搜索</el-button>
74
     </div>
74
     </div>
75
 
75
 

+ 80 - 41
src/xt_pages/dialysis/template/DialysisPrintOrderFourteen.vue View File

22
             </td>
22
             </td>
23
             <td width="30">岁</td>
23
             <td width="30">岁</td>
24
 
24
 
25
-            <td width="50">住院号:</td>
25
+            
26
+            <td width="50">门诊号:</td>
26
             <td width="150">
27
             <td width="150">
27
               <div class="under-line">
28
               <div class="under-line">
28
-                  {{ receiverTreatmentAccess.admission_number ? receiverTreatmentAccess.admission_number : "" }}
29
+                {{ patientInfo.dialysis_no ? patientInfo.dialysis_no : "" }}
29
               </div>
30
               </div>
30
             </td>
31
             </td>
31
             <td width="20"></td>
32
             <td width="20"></td>
32
 
33
 
33
-            <td width="50">门诊号:</td>
34
+            <td width="50">住院号:</td>
34
             <td width="150">
35
             <td width="150">
35
-              <div class="under-line">
36
-                {{ patientInfo.dialysis_no ? patientInfo.dialysis_no : "" }}
36
+              <div class="under-line">&nbsp;
37
+                  {{ receiverTreatmentAccess.admission_number ? receiverTreatmentAccess.admission_number : "/" }}
37
               </div>
38
               </div>
38
             </td>
39
             </td>
39
             <td></td>
40
             <td></td>
45
           <tr>
46
           <tr>
46
             <td width="90">传染病标志:</td>
47
             <td width="90">传染病标志:</td>
47
             <td width="80">
48
             <td width="80">
48
-              <div class="under-line">{{InfectiousDiseases?InfectiousDiseases:''}}</div>
49
+              <div class="under-line">{{InfectiousDiseases?InfectiousDiseases:'阴性'}}</div>
49
             </td>
50
             </td>
50
             <td width="10"></td>
51
             <td width="10"></td>
51
             <td width="110">上次透析时间:</td>
52
             <td width="110">上次透析时间:</td>
52
             <td width="120">
53
             <td width="120">
53
-              <div class="under-line">{{lastpredialysis?getTime(lastpredialysis.assessment_date, "{y}-{m}-{d}"):''}}</div>
54
+              <div class="under-line">&nbsp;{{lastpredialysis?getTime(lastpredialysis.assessment_date, "{y}-{m}-{d}"):''}}</div>
54
             </td>
55
             </td>
55
             <td width="10"></td>
56
             <td width="10"></td>
56
             <td width="110">本次透析时间:</td>
57
             <td width="110">本次透析时间:</td>
57
             <td width="120">
58
             <td width="120">
58
-              <div class="under-line">{{ queryParams.xtdate }}</div>
59
+              <div class="under-line">&nbsp;{{ queryParams.xtdate }}</div>
59
             </td>
60
             </td>
60
             <td width="10"></td>
61
             <td width="10"></td>
61
             <td width="80">透析次数:</td>
62
             <td width="80">透析次数:</td>
62
             <td width="120">
63
             <td width="120">
63
-              <div class="under-line">{{ patientInfo.total_dialysis + patientInfo.user_sys_before_count }}</div>
64
+              <div class="under-line">&nbsp;{{ patientInfo.total_dialysis + patientInfo.user_sys_before_count }}</div>
64
             </td>
65
             </td>
65
             <td></td>
66
             <td></td>
66
           </tr>
67
           </tr>
69
       <table class="table-box" style="margin-top: 10px;">
70
       <table class="table-box" style="margin-top: 10px;">
70
         <tbody>
71
         <tbody>
71
           <tr>
72
           <tr>
73
+            <td width='50'>床位号:</td>
74
+            <td width='100'>
75
+              <div class="under-line">&nbsp;{{ getNumber() }}</div>
76
+            </td>
72
             <td width="40">诊 断:</td>
77
             <td width="40">诊 断:</td>
73
             <td width="">
78
             <td width="">
74
               <div class="under-line" style="text-align:left">&nbsp;{{ patientInfo.diagnose }}</div>
79
               <div class="under-line" style="text-align:left">&nbsp;{{ patientInfo.diagnose }}</div>
98
                     <td width="1"></td>
103
                     <td width="1"></td>
99
                     <td width="40">意识:</td>
104
                     <td width="40">意识:</td>
100
                     <td style="max-width:350px;">
105
                     <td style="max-width:350px;">
101
-                      <div>
106
+                      <div style="display:flex;">
102
                         <label-box style="margin-left:5px;" v-for="(item, index) in consciousness_arr" :key="index" :isChecked="receiverTreatmentAccess.consciousness == item.id ? true : false" :showValue="item.name"></label-box>&nbsp;
107
                         <label-box style="margin-left:5px;" v-for="(item, index) in consciousness_arr" :key="index" :isChecked="receiverTreatmentAccess.consciousness == item.id ? true : false" :showValue="item.name"></label-box>&nbsp;
103
 
108
 
104
                         <!-- <label-box :isChecked='receiverTreatmentAccess.consciousness==1?true:false' showValue='清醒'></label-box>
109
                         <!-- <label-box :isChecked='receiverTreatmentAccess.consciousness==1?true:false' showValue='清醒'></label-box>
118
                         &nbsp;{{ receiverTreatmentAccess.consciousness == 3 ? '昏迷' : receiverTreatmentAccess.consciousness == 4 ? '模糊' : '' }}
123
                         &nbsp;{{ receiverTreatmentAccess.consciousness == 3 ? '昏迷' : receiverTreatmentAccess.consciousness == 4 ? '模糊' : '' }}
119
                       </div>
124
                       </div>
120
                     </td> -->
125
                     </td> -->
121
-                    <td width="10">;</td>
122
                     <td width="40">感染:</td>
126
                     <td width="40">感染:</td>
123
                     <td width="80">
127
                     <td width="80">
124
                         <label-box :isChecked='(predialysis.complication == "" || predialysis.complication == "无") ? true : false' showValue='无'></label-box>
128
                         <label-box :isChecked='(predialysis.complication == "" || predialysis.complication == "无") ? true : false' showValue='无'></label-box>
247
                     <td width="65">穿刺方法:</td>
251
                     <td width="65">穿刺方法:</td>
248
                     <td width="180">
252
                     <td width="180">
249
                       <div>
253
                       <div>
250
-                        <label-box :isChecked="predialysis.puncture_way == 1 ? true : false" showValue="绳梯"></label-box>
254
+                        <label-box :isChecked="predialysis.puncture_way && getPunctureWay(predialysis.puncture_way).indexOf('绳梯') > -1 ? true : false" showValue="绳梯"></label-box>
251
                         &nbsp;
255
                         &nbsp;
252
-                        <label-box :isChecked="predialysis.puncture_way == 4 ? true : false" showValue="定点"></label-box>
256
+                        <label-box :isChecked="predialysis.puncture_way && getPunctureWay(predialysis.puncture_way).indexOf('定点') > -1 ? true : false" showValue="定点"></label-box>
253
                         &nbsp;
257
                         &nbsp;
254
-                        <label-box :isChecked="predialysis.puncture_way == 3 ? true : false" showValue="区域"></label-box>
258
+                        <label-box :isChecked="predialysis.puncture_way && getPunctureWay(predialysis.puncture_way).indexOf('区域') > -1 ? true : false" showValue="区域"></label-box>
255
                         &nbsp;
259
                         &nbsp;
256
                       </div>
260
                       </div>
257
                     </td>
261
                     </td>
389
                       <td width='40'>体重:</td>
393
                       <td width='40'>体重:</td>
390
                       <td width='50'>干体重:</td>
394
                       <td width='50'>干体重:</td>
391
                       <td width="50">
395
                       <td width="50">
392
-                        <div class="under-line">&nbsp;{{ predialysis.dry_weight ? predialysis.dry_weight : "" }}</div>
396
+                        <div class="under-line">&nbsp;{{ predialysis.dry_weight ? predialysis.dry_weight : "/" }}</div>
393
                       </td>
397
                       </td>
394
                       <td width="10">Kg</td>
398
                       <td width="10">Kg</td>
395
                       <td width="30"></td>
399
                       <td width="30"></td>
396
                       <td width='70'>上次透后:</td>
400
                       <td width='70'>上次透后:</td>
397
                       <td width="50">
401
                       <td width="50">
398
-                        <div class="under-line">&nbsp;{{ assessmentafter.weight_after ? assessmentafter.weight_after : "" }}</div>
402
+                        <div class="under-line">&nbsp;{{ assessmentafter.weight_after ? assessmentafter.weight_after : "/" }}</div>
399
                       </td>
403
                       </td>
400
                       <td width="10">Kg</td>
404
                       <td width="10">Kg</td>
401
                       <td width="30"></td>
405
                       <td width="30"></td>
402
                       <td width='70'>本次透前:</td>
406
                       <td width='70'>本次透前:</td>
403
                       <td width="50">
407
                       <td width="50">
404
-                        <div class="under-line">&nbsp;{{ predialysis.weight_before ? predialysis.weight_before : "" }}</div>
408
+                        <div class="under-line">&nbsp;{{ predialysis.weight_before ? predialysis.weight_before : "/" }}</div>
405
                       </td>
409
                       </td>
406
                       <td width="10">Kg</td>
410
                       <td width="10">Kg</td>
407
                       <td width="30"></td>
411
                       <td width="30"></td>
408
                       <td width='70'>本次透后:</td>
412
                       <td width='70'>本次透后:</td>
409
                       <td width="50">
413
                       <td width="50">
410
-                        <div class="under-line">&nbsp;{{ afterdialysis.weight_after ? afterdialysis.weight_after : "" }}</div>
414
+                        <div class="under-line">&nbsp;{{ afterdialysis.weight_after ? afterdialysis.weight_after : "/" }}</div>
411
                       </td>
415
                       </td>
412
                       <td width="10">Kg</td>
416
                       <td width="10">Kg</td>
413
                       <td></td>
417
                       <td></td>
421
                     <td width="70">计划时间:</td>
425
                     <td width="70">计划时间:</td>
422
                     <td width="40">
426
                     <td width="40">
423
                       <div class="under-line">
427
                       <div class="under-line">
424
-                        &nbsp;{{ prescription.dialysis_duration_hour ? prescription.dialysis_duration_hour : "" }}
428
+                        &nbsp;{{ prescription.dialysis_duration_hour ? prescription.dialysis_duration_hour : 0 }}
425
                       </div>
429
                       </div>
426
                     </td>
430
                     </td>
427
                     <td width="10">h</td>
431
                     <td width="10">h</td>
428
                     <td width="40">
432
                     <td width="40">
429
                       <div class="under-line">
433
                       <div class="under-line">
430
-                        &nbsp;{{ prescription.dialysis_duration_minute ? prescription.dialysis_duration_minute : "" }}
434
+                        &nbsp;{{ prescription.dialysis_duration_minute ? prescription.dialysis_duration_minute : 0 }}
431
                       </div>
435
                       </div>
432
                     </td>
436
                     </td>
433
                     <td width="35">min</td>
437
                     <td width="35">min</td>
435
                     <td width="100">实际治疗时间:</td>
439
                     <td width="100">实际治疗时间:</td>
436
                     <td width="40">
440
                     <td width="40">
437
                       <div class="under-line">
441
                       <div class="under-line">
438
-                        &nbsp;{{ afterdialysis.actual_treatment_hour ? afterdialysis.actual_treatment_hour : "" }}
442
+                        &nbsp;{{ afterdialysis.actual_treatment_hour ? afterdialysis.actual_treatment_hour : 0 }}
439
                       </div>
443
                       </div>
440
                     </td>
444
                     </td>
441
                     <td width="10">h</td>
445
                     <td width="10">h</td>
442
                     <td width="40">
446
                     <td width="40">
443
                       <div class="under-line">
447
                       <div class="under-line">
444
-                        &nbsp;{{ afterdialysis.actual_treatment_minute ? afterdialysis.actual_treatment_minute : "" }}
448
+                        &nbsp;{{ afterdialysis.actual_treatment_minute ? afterdialysis.actual_treatment_minute : 0 }}
445
                       </div>
449
                       </div>
446
                     </td>
450
                     </td>
447
                     <td width="35">min</td>
451
                     <td width="35">min</td>
452
               <table class="table-box">
456
               <table class="table-box">
453
                 <tbody>
457
                 <tbody>
454
                   <tr>
458
                   <tr>
455
-                    <td width="90">预设超滤量:</td>
456
                     <td width="80">预设超滤量:</td>
459
                     <td width="80">预设超滤量:</td>
457
                     <td width="50">
460
                     <td width="50">
458
                       <div class="under-line">
461
                       <div class="under-line">
474
                         <div class="under-line">&nbsp;{{ prescription.mode ? prescription.mode : "" }}</div>
477
                         <div class="under-line">&nbsp;{{ prescription.mode ? prescription.mode : "" }}</div>
475
                     </td>
478
                     </td>
476
                     <td width="20"></td>
479
                     <td width="20"></td>
477
-                    <td width="140">透析器/灌流器型号:</td>
480
+                    <td width="80">透析器:</td>
478
                     <td width="80">
481
                     <td width="80">
479
                       <div class="under-line">
482
                       <div class="under-line">
480
-                        &nbsp;{{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "" }}
483
+                        &nbsp;{{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus.indexOf('+') > -1 ? prescription.dialyzer_perfusion_apparatus.split('+')[0] : prescription.dialyzer_perfusion_apparatus : '/' }}
484
+                      </div>
485
+                    </td>
486
+                    <td width="20"></td>
487
+                    <td width="80">灌流器型号:</td>
488
+                    <td width="80">
489
+                      <div class="under-line">
490
+                        &nbsp;{{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus.indexOf('+') > -1 ? prescription.dialyzer_perfusion_apparatus.split('+')[1] : "/" : '/' }}
481
                       </div>
491
                       </div>
482
                     </td>
492
                     </td>
483
                     <td></td>
493
                     <td></td>
661
                     <td></td>
671
                     <td></td>
662
                     <td width="70">主管医生:</td>
672
                     <td width="70">主管医生:</td>
663
                     <td width="100">
673
                     <td width="100">
664
-                      <div>
674
+                      <div style="text-align:left;">
665
                         <span v-if="setAdminUserES(prescription.prescription_doctor) == ''">
675
                         <span v-if="setAdminUserES(prescription.prescription_doctor) == ''">
666
                             {{ getAdminUser(prescription.prescription_doctor) }}
676
                             {{ getAdminUser(prescription.prescription_doctor) }}
667
                         </span>
677
                         </span>
672
                     </td>
682
                     </td>
673
                     <td width="120">穿刺/开管护士:</td>
683
                     <td width="120">穿刺/开管护士:</td>
674
                     <td width="100">
684
                     <td width="100">
675
-                      <div>
685
+                      <div style="text-align:left;">
676
                         <span v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse) == ''">
686
                         <span v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse) == ''">
677
                         {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse) }}</span>
687
                         {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse) }}</span>
678
                         <img style="height:30px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse)" alt="" srcset="" v-else />
688
                         <img style="height:30px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse)" alt="" srcset="" v-else />
680
                     </td>
690
                     </td>
681
                     <td width="70">核对护士:</td>
691
                     <td width="70">核对护士:</td>
682
                     <td width="100">
692
                     <td width="100">
683
-                      <div>
693
+                      <div style="text-align:left;">
684
                         <span v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
694
                         <span v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
685
                             {{ getAdminUser(check == null ? 0 : check.modifier) ? getAdminUser(check == null ? 0 : check.modifier) : "" }}
695
                             {{ getAdminUser(check == null ? 0 : check.modifier) ? getAdminUser(check == null ? 0 : check.modifier) : "" }}
686
                         </span>
696
                         </span>
718
             <td>&nbsp;{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
728
             <td>&nbsp;{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
719
             <td>&nbsp;{{ monitor.temperature ? monitor.temperature : '' }}</td>
729
             <td>&nbsp;{{ monitor.temperature ? monitor.temperature : '' }}</td>
720
             <td>
730
             <td>
721
-              &nbsp;{{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure : "" }}/
722
-              {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
731
+              <span v-if="monitor.systolic_blood_pressure || monitor.diastolic_blood_pressure">
732
+                &nbsp;{{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure : "" }}/
733
+                {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
734
+              </span>
723
             </td>
735
             </td>
724
             <td>&nbsp;{{ monitor.pulse_frequency ? monitor.pulse_frequency : '' }}</td>
736
             <td>&nbsp;{{ monitor.pulse_frequency ? monitor.pulse_frequency : '' }}</td>
725
             <td>&nbsp;{{ monitor.breathing_rate ? monitor.breathing_rate : '' }}</td>
737
             <td>&nbsp;{{ monitor.breathing_rate ? monitor.breathing_rate : '' }}</td>
823
               </table>
835
               </table>
824
 
836
 
825
 
837
 
826
-              <table class="table-box" style="margin-bottom:200px;">
838
+              <table class="table-box" style="margin-bottom:130px;">
827
                 <tbody>
839
                 <tbody>
828
                   <tr>
840
                   <tr>
829
                     <!-- <td width="70">其他记录:</td> -->
841
                     <!-- <td width="70">其他记录:</td> -->
844
                     <td></td>
856
                     <td></td>
845
                     <td width="150">当班责任护士:</td>
857
                     <td width="150">当班责任护士:</td>
846
                     <td width="100">
858
                     <td width="100">
847
-                      <div>
859
+                      <div style="text-align:left">
848
                         <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
860
                         <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
849
                         <img class="es-img" style="height:30px;" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse)" alt="" srcset="" v-else>
861
                         <img class="es-img" style="height:30px;" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse)" alt="" srcset="" v-else>
850
                       </div>
862
                       </div>
852
                     <td width="30"></td>
864
                     <td width="30"></td>
853
                     <td width="70">下机护士:</td>
865
                     <td width="70">下机护士:</td>
854
                     <td width="100">
866
                     <td width="100">
855
-                      <div>
867
+                      <div style="text-align:left">
856
                         <span v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) == ''">
868
                         <span v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) == ''">
857
                           {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) }}</span>
869
                           {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) }}</span>
858
                         <img class="es-img" style="height:30px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse)" alt="" srcset="" v-else />
870
                         <img class="es-img" style="height:30px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse)" alt="" srcset="" v-else />
1103
     }
1115
     }
1104
   },
1116
   },
1105
   methods: {
1117
   methods: {
1118
+    getPunctureWay: function(val) {
1119
+      let puncture_method_name = '/'
1120
+      const puncture_method = getDataConfig("hemodialysis", "puncture_method")
1121
+
1122
+      for (let i = 0; i < puncture_method.length; i++) {
1123
+        if (puncture_method[i].id == val) {
1124
+          puncture_method_name = puncture_method[i].name
1125
+        }
1126
+      }
1127
+      return puncture_method_name
1128
+    },
1106
     getHumorExcessiveSymptom(val) {
1129
     getHumorExcessiveSymptom(val) {
1107
       const humor_excessive_symptom = getDataConfig('hemodialysis', 'humor_excessive_symptom')
1130
       const humor_excessive_symptom = getDataConfig('hemodialysis', 'humor_excessive_symptom')
1108
       var humor_excessive_symptom_name = ''
1131
       var humor_excessive_symptom_name = ''
1184
     },
1207
     },
1185
     getNumber() {
1208
     getNumber() {
1186
       if (this.dialysisOrder != null) {
1209
       if (this.dialysisOrder != null) {
1187
-        return (
1188
-          this.patientInfo.DialysisSchedule.device_zone.name +
1189
-          this.dialysisOrder.DeviceNumber.number
1190
-        )
1210
+        if(this.patientInfo.DialysisSchedule.device_zone.name.indexOf("区") > -1){
1211
+          return (
1212
+            this.patientInfo.DialysisSchedule.device_zone.name +
1213
+            this.dialysisOrder.DeviceNumber.number
1214
+          );
1215
+        } else {
1216
+          return (
1217
+            this.patientInfo.DialysisSchedule.device_zone.name + "区" +
1218
+            this.dialysisOrder.DeviceNumber.number
1219
+          );
1220
+        }
1221
+        
1191
       } else {
1222
       } else {
1192
-        return (
1193
-          this.patientInfo.DialysisSchedule.device_zone.name +
1194
-          this.patientInfo.DialysisSchedule.device_number.number
1195
-        )
1223
+        if(this.patientInfo.DialysisSchedule.device_zone.name.indexOf("区") > -1){
1224
+          return (
1225
+            this.patientInfo.DialysisSchedule.device_zone.name +
1226
+            this.patientInfo.DialysisSchedule.device_number.number
1227
+          );
1228
+        }else{
1229
+          return (
1230
+            this.patientInfo.DialysisSchedule.device_zone.name + "区" +
1231
+            this.patientInfo.DialysisSchedule.device_number.number
1232
+          );
1233
+        }
1234
+        
1196
       }
1235
       }
1197
     },
1236
     },
1198
 
1237
 

+ 31 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue View File

788
         </tr>
788
         </tr>
789
 
789
 
790
         <tr v-for="monitor in monitors" :key="monitor.id">
790
         <tr v-for="monitor in monitors" :key="monitor.id">
791
-          <td>
791
+          <td style="height:40px;">
792
             &nbsp;
792
             &nbsp;
793
             <!-- <template>
793
             <!-- <template>
794
               <span v-if="monitor.monitoring_date">
794
               <span v-if="monitor.monitoring_date">
857
         <!-- <template v-for="group in doctor_advices" > -->
857
         <!-- <template v-for="group in doctor_advices" > -->
858
 
858
 
859
         <tr v-for="(advice, advice_index) in doctor_advices" :key="advice_index">
859
         <tr v-for="(advice, advice_index) in doctor_advices" :key="advice_index">
860
-          <td height="32px">
860
+          <td height="40px">
861
               <span v-if="advice.start_time">
861
               <span v-if="advice.start_time">
862
                 {{ getTime(advice.start_time, "{h}:{i}") }}
862
                 {{ getTime(advice.start_time, "{h}:{i}") }}
863
               </span>
863
               </span>
864
             <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
864
             <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
865
           </td>
865
           </td>
866
-          <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;">
866
+          <td height="40px" colspan="2" class="advice-name" style="padding-left:7px;">
867
             <span v-if="advice.parent_id > 0">---></span>
867
             <span v-if="advice.parent_id > 0">---></span>
868
             <span>{{ advice.advice_name }}</span>
868
             <span>{{ advice.advice_name }}</span>
869
             <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
869
             <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
879
                   <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
879
                   <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
880
                 </td> -->
880
                 </td> -->
881
           <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
881
           <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
882
-          <td height="32px">
882
+          <td height="40px">
883
             <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{ getAdminUser(advice.advice_doctor) }}</span>
883
             <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{ getAdminUser(advice.advice_doctor) }}</span>
884
             <img style="height:30px;" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else />
884
             <img style="height:30px;" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else />
885
           </td>
885
           </td>
886
-          <td height="32px">
886
+          <td height="40px">
887
             <span v-if="setAdminUserES(advice.execution_staff) == ''">{{ getAdminUser(advice.execution_staff) }}</span>
887
             <span v-if="setAdminUserES(advice.execution_staff) == ''">{{ getAdminUser(advice.execution_staff) }}</span>
888
             <img style="height:30px;" :src="setAdminUserES(advice.execution_staff)" alt srcset v-else />
888
             <img style="height:30px;" :src="setAdminUserES(advice.execution_staff)" alt srcset v-else />
889
           </td>
889
           </td>
890
-          <td height="32px">
890
+          <td height="40px">
891
             <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
891
             <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
892
           </td>
892
           </td>
893
         </tr>
893
         </tr>
2071
               this.doctor_advices.push(obj1)
2071
               this.doctor_advices.push(obj1)
2072
               this.doctor_advices.push(obj2)
2072
               this.doctor_advices.push(obj2)
2073
               this.doctor_advices.push(obj3)
2073
               this.doctor_advices.push(obj3)
2074
+              this.doctor_advices.push(obj3)
2075
+              this.doctor_advices.push(obj3)
2074
             }
2076
             }
2075
             if (this.doctor_advices.length === 1) {
2077
             if (this.doctor_advices.length === 1) {
2076
               var obj = { advice_name: '', start_time: '' }
2078
               var obj = { advice_name: '', start_time: '' }
2079
               this.doctor_advices.push(obj)
2081
               this.doctor_advices.push(obj)
2080
               this.doctor_advices.push(obj1)
2082
               this.doctor_advices.push(obj1)
2081
               this.doctor_advices.push(obj2)
2083
               this.doctor_advices.push(obj2)
2084
+              this.doctor_advices.push(obj2)
2085
+              this.doctor_advices.push(obj2)
2082
             }
2086
             }
2083
             if (this.doctor_advices.length === 2) {
2087
             if (this.doctor_advices.length === 2) {
2084
               var obj = { advice_name: '', start_time: '' }
2088
               var obj = { advice_name: '', start_time: '' }
2085
               var obj1 = { advice_name: '', start_time: '' }
2089
               var obj1 = { advice_name: '', start_time: '' }
2086
               this.doctor_advices.push(obj)
2090
               this.doctor_advices.push(obj)
2087
               this.doctor_advices.push(obj1)
2091
               this.doctor_advices.push(obj1)
2092
+              this.doctor_advices.push(obj1)
2093
+              this.doctor_advices.push(obj1)
2088
             }
2094
             }
2089
             if (this.doctor_advices.length === 3) {
2095
             if (this.doctor_advices.length === 3) {
2090
               // eslint-disable-next-line no-redeclare
2096
               // eslint-disable-next-line no-redeclare
2091
               var obj = { advice_name: '', start_time: '' }
2097
               var obj = { advice_name: '', start_time: '' }
2092
               this.doctor_advices.push(obj)
2098
               this.doctor_advices.push(obj)
2099
+              this.doctor_advices.push(obj)
2100
+              this.doctor_advices.push(obj)
2101
+            }
2102
+            if (this.doctor_advices.length === 2) {
2103
+              // eslint-disable-next-line no-redeclare
2104
+              var obj = { advice_name: '', start_time: '' }
2105
+              this.doctor_advices.push(obj)
2106
+              this.doctor_advices.push(obj)
2107
+              this.doctor_advices.push(obj)
2108
+              this.doctor_advices.push(obj)
2109
+            }
2110
+            if (this.doctor_advices.length === 1) {
2111
+              // eslint-disable-next-line no-redeclare
2112
+              var obj = { advice_name: '', start_time: '' }
2113
+              this.doctor_advices.push(obj)
2114
+              this.doctor_advices.push(obj)
2115
+              this.doctor_advices.push(obj)
2116
+              this.doctor_advices.push(obj)
2117
+              this.doctor_advices.push(obj)
2093
             }
2118
             }
2094
 
2119
 
2095
             if (this.doctor_advices.length > 0) {
2120
             if (this.doctor_advices.length > 0) {

+ 9 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue View File

77
       </div>
77
       </div>
78
       <div class="row">
78
       <div class="row">
79
         血管通路 
79
         血管通路 
80
-        <div class="inline_block under_line" style="width:93%;text-align: left;">
80
+        <div class="inline_block under_line" style="width:92%;text-align: left;">
81
           <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('内瘘-右') > -1 ? true : false" showValue="内瘘"></label-box>
81
           <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('内瘘-右') > -1 ? true : false" showValue="内瘘"></label-box>
82
           (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : false" showValue="左"></label-box>
82
           (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : false" showValue="左"></label-box>
83
               <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-右') > -1 ? true : false" showValue="右"></label-box>)
83
               <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-右') > -1 ? true : false" showValue="右"></label-box>)
98
       </div>
98
       </div>
99
       <div class="row">
99
       <div class="row">
100
         抗凝药物 
100
         抗凝药物 
101
-        <div class="inline_block under_line" style="width:93%;text-align: left;">
101
+        <div class="inline_block under_line" style="width:92%;text-align: left;">
102
           <label-box :isChecked="prescription.anticoagulant == '普通肝素' ? true : false" showValue="普通肝素"></label-box>&nbsp;
102
           <label-box :isChecked="prescription.anticoagulant == '普通肝素' ? true : false" showValue="普通肝素"></label-box>&nbsp;
103
           <label-box :isChecked="prescription.anticoagulant == '低分子肝素钙' ? true : prescription.anticoagulant == '低分子肝素钠' ? true : false" showValue="低分子肝素"></label-box>
103
           <label-box :isChecked="prescription.anticoagulant == '低分子肝素钙' ? true : prescription.anticoagulant == '低分子肝素钠' ? true : false" showValue="低分子肝素"></label-box>
104
           (<label-box :isChecked="prescription.anticoagulant == '低分子肝素钙' ? true : false" showValue="钙"></label-box>
104
           (<label-box :isChecked="prescription.anticoagulant == '低分子肝素钙' ? true : false" showValue="钙"></label-box>
189
       </div>
189
       </div>
190
       <div class="row">
190
       <div class="row">
191
         透前评估 
191
         透前评估 
192
-        <div class="inline_block under_line" style="width:93%;text-align: left;">
192
+        <div class="inline_block under_line" style="width:92%;text-align: left;">
193
           <div class="inline_block" style="margin-right:30px;">
193
           <div class="inline_block" style="margin-right:30px;">
194
             体温
194
             体温
195
             <div class="inline_block" style="width:50px;text-align:center">
195
             <div class="inline_block" style="width:50px;text-align:center">
304
       <table class="print-table" border="1">
304
       <table class="print-table" border="1">
305
         <tbody>
305
         <tbody>
306
           <tr style="height:40px;line-height:40px">
306
           <tr style="height:40px;line-height:40px">
307
-            <td width="40" style="padding-left:5px;border:none;border-right:1px solid #000;">
307
+            <td width="40" rowspan="2" style="padding-left:5px;border:none;border-right:1px solid #000;">
308
               透后评估
308
               透后评估
309
             </td>
309
             </td>
310
 
310
 
337
                 </span>次/分
337
                 </span>次/分
338
               </div>
338
               </div>
339
             </td>
339
             </td>
340
-
340
+          </tr>
341
+            
342
+          <tr style="height:40px;line-height:40px">
341
             <td width="50" style="border:none;padding-left:5px">实际置换量:</td>
343
             <td width="50" style="border:none;padding-left:5px">实际置换量:</td>
342
             <td width="30" style="text-align:left;border:none;">
344
             <td width="30" style="text-align:left;border:none;">
343
               <div>
345
               <div>
354
               <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器-Ⅱ度') > -1 ? true : false) :false" showValue="+ +"></label-box>
356
               <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器-Ⅱ度') > -1 ? true : false) :false" showValue="+ +"></label-box>
355
               <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器-Ⅲ度') > -1 ? true : false) :false" showValue="+ + +"></label-box>
357
               <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器-Ⅲ度') > -1 ? true : false) :false" showValue="+ + +"></label-box>
356
             </td>
358
             </td>
359
+            <td width="50" style="text-align:left;border:none;"></td>
360
+            <td width="110" style="text-align:left;border:none;"></td>
357
           </tr>
361
           </tr>
358
         </tbody>
362
         </tbody>
359
       </table>
363
       </table>

File diff suppressed because it is too large
+ 511 - 404
src/xt_pages/dialysis/template/DialysisPrintOrderTwenty.vue


+ 10 - 1
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue View File

980
                   </div>
980
                   </div>
981
                   kg
981
                   kg
982
                 </div>
982
                 </div>
983
+                <div class="inline_block" v-if="orgid == 9566">
984
+                  医生签名:
985
+                  <div class="under_line" style="width: 70px;text-align: left">
986
+                      <span v-if="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) == ''"> {{ getAdminUser(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:prescription.creater)) }} </span>
987
+                      <img style="height:30px;" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:''))" alt="" srcset="" v-else />
988
+                  </div>
989
+                </div>
983
               </div>
990
               </div>
984
             </td>
991
             </td>
985
           </tr>
992
           </tr>
1304
         zongliang_unit: "mg",
1311
         zongliang_unit: "mg",
1305
         gaimingcheng_unit: "",
1312
         gaimingcheng_unit: "",
1306
         gaijiliang_unit: ""
1313
         gaijiliang_unit: ""
1307
-      }
1314
+      },
1315
+      orgid:''
1308
     };
1316
     };
1309
   },
1317
   },
1310
   methods: {
1318
   methods: {
1918
     }
1926
     }
1919
   },
1927
   },
1920
   created() {
1928
   created() {
1929
+    this.orgid = this.$store.getters.xt_user.org.id;
1921
     var xtuser = this.$store.getters.xt_user;
1930
     var xtuser = this.$store.getters.xt_user;
1922
     this.orgname = xtuser.org.org_name;
1931
     this.orgname = xtuser.org.org_name;
1923
     // this.orgname = "遂溪方济医院";
1932
     // this.orgname = "遂溪方济医院";

+ 392 - 379
src/xt_pages/stock/config/goodInfo.vue View File

16
         icon="el-icon-circle-plus-outline"
16
         icon="el-icon-circle-plus-outline"
17
         type="primary"
17
         type="primary"
18
         @click="showInfoDialog"
18
         @click="showInfoDialog"
19
-        >新增</el-button
19
+      >新增
20
+      </el-button
20
       >
21
       >
21
     </div>
22
     </div>
22
 
23
 
34
         type="primary"
35
         type="primary"
35
         icon="el-icon-search"
36
         icon="el-icon-search"
36
         @click="search"
37
         @click="search"
37
-        >搜索</el-button
38
+      >搜索
39
+      </el-button
38
       >
40
       >
39
     </div>
41
     </div>
40
 
42
 
134
 </template>
136
 </template>
135
 
137
 
136
 <script>
138
 <script>
137
-import GoodInfoDailog from "../Dialog/goodInfoDailog";
138
-import {
139
-  createGoodInfo,
140
-  deleteGoodInfo,
141
-  GetAllDeals,
142
-  GetAllGoodType,
143
-  GetAllManufacturer,
144
-  GetGoodInfo,
145
-  GetGoodInfoByGoodId,
146
-  getGoodInfoList,
147
-  modifyGoodInfo
148
-} from "@/api/stock";
139
+  import GoodInfoDailog from '../Dialog/goodInfoDailog'
140
+  import {
141
+    createGoodInfo,
142
+    deleteGoodInfo,
143
+    GetAllDeals,
144
+    GetAllGoodType,
145
+    GetAllManufacturer,
146
+    GetGoodInfo,
147
+    GetGoodInfoByGoodId,
148
+    getGoodInfoList,
149
+    modifyGoodInfo
150
+  } from '@/api/stock'
149
 
151
 
150
-export default {
151
-  components: {
152
-    GoodInfoDailog
153
-  },
154
-  name: "goodInfo",
155
-  data() {
156
-    return {
157
-      signAndWeighBoxPatients: "sign-and-weigh-box-patients",
158
-      total: 0,
159
-      pageTotal: 0,
160
-      pageSelect: 0,
161
-      page: 1,
162
-      limit: 10,
163
-      keywords: "",
164
-      goodInfo: {
165
-        loading: false,
166
-        goodInfoData: [],
167
-        good_code: "",
168
-        editGoodId: "",
169
-        editGoodIndex: "",
170
-        goodInfoDialog: {
171
-          goodInfoTitle: "新增商品信息",
172
-          isCreated: 1, //1.创建 2.编辑 3.查看详情
173
-          formValue: {
174
-            good_id: "",
175
-            specification_name: "",
176
-            buy_price: "",
177
-            sell_price: "",
178
-            remark: "",
179
-            manufacturer: "",
180
-            good_type_id: "",
181
-            dealer: "",
182
-            expiry_date_warn_day_count: "",
183
-            stock_warn_count: "",
184
-            is_reuse: "2",
185
-            dealers: [],
186
-            manufacturers: [],
187
-            goodType: [],
188
-            goodUnit: []
189
-          },
152
+  export default {
153
+    components: {
154
+      GoodInfoDailog
155
+    },
156
+    name: 'goodInfo',
157
+    data() {
158
+      return {
159
+        signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
160
+        total: 0,
161
+        pageTotal: 0,
162
+        pageSelect: 0,
163
+        page: 1,
164
+        limit: 10,
165
+        keywords: '',
166
+        goodInfo: {
167
+          loading: false,
168
+          goodInfoData: [],
169
+          good_code: '',
170
+          editGoodId: '',
171
+          editGoodIndex: '',
172
+          goodInfoDialog: {
173
+            goodInfoTitle: '新增商品信息',
174
+            isCreated: 1, //1.创建 2.编辑 3.查看详情
175
+            formValue: {
176
+              good_id: '',
177
+              specification_name: '',
178
+              buy_price: '',
179
+              sell_price: '',
180
+              remark: '',
181
+              manufacturer: '',
182
+              good_type_id: '',
183
+              dealer: '',
184
+              expiry_date_warn_day_count: '',
185
+              stock_warn_count: '',
186
+              is_reuse: '2',
187
+              dealers: [],
188
+              manufacturers: [],
189
+              goodType: [],
190
+              goodUnit: []
191
+            },
190
 
192
 
191
-          isVisibility: false
193
+            isVisibility: false
194
+          }
192
         }
195
         }
193
       }
196
       }
194
-    };
195
-  },
196
-  methods: {
197
-    search: function() {
198
-      this.getList();
199
     },
197
     },
200
-    handleGoodInfoEdit: function(index, row) {
201
-      this.getAllDealer();
202
-      this.getAllManufacturer();
203
-      this.getAllGoodType();
204
-      this.goodInfo.editGoodId = row.id;
205
-      this.goodInfo.editGoodIndex = index;
206
-
207
-      let params = {
208
-        id: row.id
209
-      };
210
-      GetGoodInfo(params).then(response => {
211
-        if (response.data.state == 0) {
212
-          this.$message.error(response.data.msg);
213
-          return false;
214
-        } else {
215
-          console.log(response.data.data.goodInfo);
216
-
217
-          if (response.data.data.goodInfo.good_unit <= 0) {
218
-            this.goodInfo.goodInfoDialog.formValue.good_unit = "";
219
-          } else {
220
-            this.goodInfo.goodInfoDialog.formValue.good_unit =
221
-              response.data.data.goodInfo.good_unit;
222
-          }
198
+    methods: {
199
+      search: function() {
200
+        this.getList()
201
+      },
202
+      handleGoodInfoEdit: function(index, row) {
203
+        this.getAllDealer()
204
+        this.getAllManufacturer()
205
+        this.getAllGoodType()
206
+        this.goodInfo.editGoodId = row.id
207
+        this.goodInfo.editGoodIndex = index
223
 
208
 
224
-          if (response.data.data.goodInfo.manufacturer <= 0) {
225
-            this.goodInfo.goodInfoDialog.formValue.manufacturer = "";
209
+        let params = {
210
+          id: row.id
211
+        }
212
+        GetGoodInfo(params).then(response => {
213
+          if (response.data.state == 0) {
214
+            this.$message.error(response.data.msg)
215
+            return false
226
           } else {
216
           } else {
227
-            this.goodInfo.goodInfoDialog.formValue.manufacturer =
228
-              response.data.data.goodInfo.manufacturer;
229
-          }
217
+            console.log(response.data.data.goodInfo)
230
 
218
 
231
-          if (response.data.data.goodInfo.dealer <= 0) {
232
-            this.goodInfo.goodInfoDialog.formValue.dealer = "";
233
-          } else {
234
-            this.goodInfo.goodInfoDialog.formValue.dealer =
235
-              response.data.data.goodInfo.dealer;
236
-          }
219
+            if (response.data.data.goodInfo.good_unit <= 0) {
220
+              this.goodInfo.goodInfoDialog.formValue.good_unit = ''
221
+            } else {
222
+              this.goodInfo.goodInfoDialog.formValue.good_unit =
223
+                response.data.data.goodInfo.good_unit
224
+            }
237
 
225
 
238
-          this.goodInfo.goodInfoDialog.formValue.specification_name =
239
-            response.data.data.goodInfo.specification_name;
240
-          this.goodInfo.goodInfoDialog.formValue.buy_price =
241
-            response.data.data.goodInfo.buy_price;
242
-          this.goodInfo.goodInfoDialog.formValue.sell_price =
243
-            response.data.data.goodInfo.sell_price;
244
-          this.goodInfo.goodInfoDialog.formValue.expiry_date_warn_day_count =
245
-            response.data.data.goodInfo.expiry_date_warn_day_count;
246
-          this.goodInfo.goodInfoDialog.formValue.stock_warn_count =
247
-            response.data.data.goodInfo.stock_warn_count;
248
-          this.goodInfo.goodInfoDialog.formValue.is_reuse = response.data.data.goodInfo.is_reuse.toString();
249
-          this.goodInfo.goodInfoDialog.formValue.remark =
250
-            response.data.data.goodInfo.remark;
251
-          this.goodInfo.goodInfoDialog.isCreated = 2;
252
-          this.goodInfo.good_code = response.data.data.goodInfo.good_code;
253
-          this.goodInfo.goodInfoDialog.formValue.good_id =
254
-            response.data.data.goodInfo.good_type_id;
255
-          this.$refs.dialog.show();
256
-        }
257
-      });
258
-    },
259
-    handleGoodInfoDelete: function(index, row) {
260
-      this.$confirm("确认删除这条商品信息?", "删除商品信息", {
261
-        confirmButtonText: "确定",
262
-        cancelButtonText: "取消",
263
-        type: "warning"
264
-      })
265
-        .then(() => {
266
-          let params = {
267
-            id: row.id
268
-          };
226
+            if (response.data.data.goodInfo.manufacturer <= 0) {
227
+              this.goodInfo.goodInfoDialog.formValue.manufacturer = ''
228
+            } else {
229
+              this.goodInfo.goodInfoDialog.formValue.manufacturer =
230
+                response.data.data.goodInfo.manufacturer
231
+            }
269
 
232
 
270
-          deleteGoodInfo(params).then(response => {
271
-            if (response.data.state == 0) {
272
-              this.$message.error(response.data.msg);
273
-              return false;
233
+            if (response.data.data.goodInfo.dealer <= 0) {
234
+              this.goodInfo.goodInfoDialog.formValue.dealer = ''
274
             } else {
235
             } else {
275
-              this.goodInfo.goodInfoData.splice(index, 1);
276
-              this.$message.success("删除成功");
236
+              this.goodInfo.goodInfoDialog.formValue.dealer =
237
+                response.data.data.goodInfo.dealer
277
             }
238
             }
278
-          });
239
+
240
+            this.goodInfo.goodInfoDialog.formValue.specification_name =
241
+              response.data.data.goodInfo.specification_name
242
+            this.goodInfo.goodInfoDialog.formValue.buy_price =
243
+              response.data.data.goodInfo.buy_price
244
+            this.goodInfo.goodInfoDialog.formValue.sell_price =
245
+              response.data.data.goodInfo.sell_price
246
+            this.goodInfo.goodInfoDialog.formValue.expiry_date_warn_day_count =
247
+              response.data.data.goodInfo.expiry_date_warn_day_count
248
+            this.goodInfo.goodInfoDialog.formValue.stock_warn_count =
249
+              response.data.data.goodInfo.stock_warn_count
250
+            this.goodInfo.goodInfoDialog.formValue.is_reuse = response.data.data.goodInfo.is_reuse.toString()
251
+            this.goodInfo.goodInfoDialog.formValue.remark =
252
+              response.data.data.goodInfo.remark
253
+            this.goodInfo.goodInfoDialog.isCreated = 2
254
+            this.goodInfo.good_code = response.data.data.goodInfo.good_code
255
+            this.goodInfo.goodInfoDialog.formValue.good_id =
256
+              response.data.data.goodInfo.good_type_id
257
+            this.$refs.dialog.show()
258
+          }
279
         })
259
         })
280
-        .catch(() => {});
281
-    },
282
-    showGoodInfoDetails: function(index, row) {
283
-      let params = {
284
-        id: row.id
285
-      };
286
-      GetGoodInfo(params).then(response => {
287
-        if (response.data.state == 0) {
288
-          this.$message.error(response.data.msg);
289
-          return false;
290
-        } else {
291
-          this.goodInfo.goodInfoDialog.formValue.specification_name =
292
-            response.data.data.goodInfo.specification_name;
293
-          this.goodInfo.goodInfoDialog.formValue.good_unit =
294
-            response.data.data.goodInfo.good_unit;
295
-          this.goodInfo.goodInfoDialog.formValue.buy_price =
296
-            response.data.data.goodInfo.buy_price;
297
-          this.goodInfo.goodInfoDialog.formValue.sell_price =
298
-            response.data.data.goodInfo.sell_price;
299
-          this.goodInfo.goodInfoDialog.formValue.manufacturer =
300
-            response.data.data.goodInfo.manufacturer;
301
-          this.goodInfo.goodInfoDialog.formValue.dealer =
302
-            response.data.data.goodInfo.dealer;
303
-          this.goodInfo.goodInfoDialog.formValue.expiry_date_warn_day_count =
304
-            response.data.data.goodInfo.expiry_date_warn_day_count;
305
-          this.goodInfo.goodInfoDialog.formValue.stock_warn_count =
306
-            response.data.data.goodInfo.stock_warn_count;
307
-          this.goodInfo.goodInfoDialog.formValue.is_reuse = response.data.data.goodInfo.is_reuse.toString();
260
+      },
261
+      handleGoodInfoDelete: function(index, row) {
262
+        this.$confirm('确认删除这条商品信息?', '删除商品信息', {
263
+          confirmButtonText: '确定',
264
+          cancelButtonText: '取消',
265
+          type: 'warning'
266
+        })
267
+          .then(() => {
268
+            let params = {
269
+              id: row.id
270
+            }
308
 
271
 
309
-          this.goodInfo.goodInfoDialog.formValue.remark =
310
-            response.data.data.goodInfo.remark;
311
-          this.goodInfo.goodInfoDialog.isCreated = 3;
312
-          this.goodInfo.goodInfoDialog.isVisibility = true;
272
+            deleteGoodInfo(params).then(response => {
273
+              if (response.data.state == 0) {
274
+                this.$message.error(response.data.msg)
275
+                return false
276
+              } else {
277
+                this.goodInfo.goodInfoData.splice(index, 1)
278
+                this.$message.success('删除成功')
279
+              }
280
+            })
281
+          })
282
+          .catch(() => {
283
+          })
284
+      },
285
+      showGoodInfoDetails: function(index, row) {
286
+        let params = {
287
+          id: row.id
313
         }
288
         }
314
-      });
315
-    },
316
-    getList() {
317
-      this.goodInfo.loading = true;
318
-      let params = {
319
-        page: this.page,
320
-        limit: this.limit,
321
-        keyword: this.keywords
322
-      };
323
-      getGoodInfoList(params).then(response => {
324
-        if (response.data.state == 0) {
325
-          this.goodInfo.loading = false;
326
-          this.$message.error(response.data.msg);
327
-          return false;
328
-        } else {
329
-          this.goodInfo.loading = false;
330
-          this.total = response.data.data.total;
331
-          this.goodInfo.goodInfoData = [];
332
-          for (let i = 0; i < response.data.data.list.length; i++) {
333
-            this.goodInfo.goodInfoData.push(response.data.data.list[i]);
289
+        GetGoodInfo(params).then(response => {
290
+          if (response.data.state == 0) {
291
+            this.$message.error(response.data.msg)
292
+            return false
293
+          } else {
294
+            this.goodInfo.goodInfoDialog.formValue.specification_name =
295
+              response.data.data.goodInfo.specification_name
296
+            this.goodInfo.goodInfoDialog.formValue.good_unit =
297
+              response.data.data.goodInfo.good_unit
298
+            this.goodInfo.goodInfoDialog.formValue.buy_price =
299
+              response.data.data.goodInfo.buy_price
300
+            this.goodInfo.goodInfoDialog.formValue.sell_price =
301
+              response.data.data.goodInfo.sell_price
302
+            this.goodInfo.goodInfoDialog.formValue.manufacturer =
303
+              response.data.data.goodInfo.manufacturer
304
+            this.goodInfo.goodInfoDialog.formValue.dealer =
305
+              response.data.data.goodInfo.dealer
306
+            this.goodInfo.goodInfoDialog.formValue.expiry_date_warn_day_count =
307
+              response.data.data.goodInfo.expiry_date_warn_day_count
308
+            this.goodInfo.goodInfoDialog.formValue.stock_warn_count =
309
+              response.data.data.goodInfo.stock_warn_count
310
+            this.goodInfo.goodInfoDialog.formValue.is_reuse = response.data.data.goodInfo.is_reuse.toString()
311
+
312
+            this.goodInfo.goodInfoDialog.formValue.remark =
313
+              response.data.data.goodInfo.remark
314
+            this.goodInfo.goodInfoDialog.isCreated = 3
315
+            this.goodInfo.goodInfoDialog.isVisibility = true
334
           }
316
           }
317
+        })
318
+      },
319
+      getList() {
320
+        this.goodInfo.loading = true
321
+        let params = {
322
+          page: this.page,
323
+          limit: this.limit,
324
+          keyword: this.keywords
335
         }
325
         }
336
-      });
337
-    },
338
-    tableRowClassName({ row, rowIndex }) {
339
-      //把每一行的索引放进row
340
-      row.index = rowIndex;
341
-    },
342
-    onRowClick(row, event, column) {
343
-      this.goodInfo.goodInfoData = [];
344
-      this.goodType.tableCurrentIndex = row.index;
345
-      this.goodInfo.goodInfoDialog.formValue.good_id = row.id;
346
-      let params = {
347
-        id: row.id
348
-      };
349
-      this.goodInfo.loading = true;
350
-      GetGoodInfoByGoodId(params).then(response => {
351
-        if (response.data.state == 0) {
352
-          this.goodInfo.loading = false;
353
-          this.$message.error(response.data.msg);
354
-          return false;
355
-        } else {
356
-          this.goodInfo.loading = false;
357
-          for (let i = 0; i < response.data.data.list.length; i++) {
358
-            this.goodInfo.goodInfoData.push(response.data.data.list[i]);
326
+        getGoodInfoList(params).then(response => {
327
+          if (response.data.state == 0) {
328
+            this.goodInfo.loading = false
329
+            this.$message.error(response.data.msg)
330
+            return false
331
+          } else {
332
+            this.goodInfo.loading = false
333
+            this.total = response.data.data.total
334
+            this.goodInfo.goodInfoData = []
335
+            for (let i = 0; i < response.data.data.list.length; i++) {
336
+              this.goodInfo.goodInfoData.push(response.data.data.list[i])
337
+            }
359
           }
338
           }
339
+        })
340
+      },
341
+      tableRowClassName({ row, rowIndex }) {
342
+        //把每一行的索引放进row
343
+        row.index = rowIndex
344
+      },
345
+      onRowClick(row, event, column) {
346
+        this.goodInfo.goodInfoData = []
347
+        this.goodType.tableCurrentIndex = row.index
348
+        this.goodInfo.goodInfoDialog.formValue.good_id = row.id
349
+        let params = {
350
+          id: row.id
360
         }
351
         }
361
-      });
362
-    },
363
-    goodInfoDialogComfirm: function(val) {
364
-      if (val.isCreated == 2) {
365
-        //修改
366
-        val["id"] = this.goodInfo.editGoodId;
367
-        val["good_code"] = this.goodInfo.good_code;
368
-
369
-        modifyGoodInfo(val).then(response => {
352
+        this.goodInfo.loading = true
353
+        GetGoodInfoByGoodId(params).then(response => {
370
           if (response.data.state == 0) {
354
           if (response.data.state == 0) {
371
-            this.$message.error(response.data.msg);
372
-            return false;
355
+            this.goodInfo.loading = false
356
+            this.$message.error(response.data.msg)
357
+            return false
373
           } else {
358
           } else {
374
-            this.$refs.dialog.hide();
359
+            this.goodInfo.loading = false
360
+            for (let i = 0; i < response.data.data.list.length; i++) {
361
+              this.goodInfo.goodInfoData.push(response.data.data.list[i])
362
+            }
363
+          }
364
+        })
365
+      },
366
+      goodInfoDialogComfirm: function(val) {
367
+        if (val.isCreated == 2) {
368
+          //修改
369
+          val['id'] = this.goodInfo.editGoodId
370
+          val['good_code'] = this.goodInfo.good_code
375
 
371
 
376
-            this.goodInfo.goodInfoData[
377
-              this.goodInfo.editGoodIndex
378
-            ].specification_name =
379
-              response.data.data.goodInfo.specification_name;
380
-            this.goodInfo.goodInfoData[this.goodInfo.editGoodIndex].good_unit =
381
-              response.data.data.goodInfo.good_unit;
382
-            this.goodInfo.goodInfoData[
383
-              this.goodInfo.editGoodIndex
384
-            ].buy_price = response.data.data.goodInfo.buy_price.toString();
385
-            this.goodInfo.goodInfoData[
386
-              this.goodInfo.editGoodIndex
387
-            ].sell_price = response.data.data.goodInfo.sell_price.toString();
388
-            this.goodInfo.goodInfoData[
389
-              this.goodInfo.editGoodIndex
390
-            ].expiry_date_warn_day_count = response.data.data.goodInfo.expiry_date_warn_day_count.toString();
391
-            this.goodInfo.goodInfoData[
392
-              this.goodInfo.editGoodIndex
393
-            ].stock_warn_count = response.data.data.goodInfo.stock_warn_count.toString();
372
+          modifyGoodInfo(val).then(response => {
373
+            if (response.data.state == 0) {
374
+              this.$message.error(response.data.msg)
375
+              return false
376
+            } else {
377
+              this.$refs.dialog.hide()
394
 
378
 
395
-            this.$message.success("修改成功");
396
-          }
397
-        });
398
-      } else if (val.isCreated == 1) {
399
-        //新增
400
-        createGoodInfo(val).then(response => {
401
-          if (response.data.state == 0) {
402
-            this.$message.error(response.data.msg);
403
-            return false;
404
-          } else {
405
-            this.$refs.dialog.hide();
379
+              this.goodInfo.goodInfoData[
380
+                this.goodInfo.editGoodIndex
381
+                ].specification_name =
382
+                response.data.data.goodInfo.specification_name
383
+              this.goodInfo.goodInfoData[this.goodInfo.editGoodIndex].good_unit =
384
+                response.data.data.goodInfo.good_unit
385
+              this.goodInfo.goodInfoData[
386
+                this.goodInfo.editGoodIndex
387
+                ].buy_price = response.data.data.goodInfo.buy_price.toString()
388
+              this.goodInfo.goodInfoData[
389
+                this.goodInfo.editGoodIndex
390
+                ].sell_price = response.data.data.goodInfo.sell_price.toString()
391
+              this.goodInfo.goodInfoData[
392
+                this.goodInfo.editGoodIndex
393
+                ].expiry_date_warn_day_count = response.data.data.goodInfo.expiry_date_warn_day_count.toString()
394
+              this.goodInfo.goodInfoData[
395
+                this.goodInfo.editGoodIndex
396
+                ].stock_warn_count = response.data.data.goodInfo.stock_warn_count.toString()
406
 
397
 
407
-            this.goodInfo.goodInfoData.unshift(response.data.data.goodInfo);
398
+              this.$message.success('修改成功')
399
+            }
400
+          })
401
+        } else if (val.isCreated == 1) {
402
+          //新增
403
+          createGoodInfo(val).then(response => {
404
+            if (response.data.state == 0) {
405
+              this.$message.error(response.data.msg)
406
+              return false
407
+            } else {
408
+              this.$refs.dialog.hide()
408
 
409
 
409
-            this.$message.success("新增成功");
410
-          }
411
-        });
412
-      }
413
-    },
414
-    goodInfoDialogCancle: function() {
415
-      this.$refs.dialog.hide();
416
-    },
417
-    showInfoDialog: function() {
418
-      this.$refs.dialog.show();
419
-      this.getAllDealer();
420
-      this.getAllManufacturer();
421
-      this.goodInfo.goodInfoDialog.formValue.goodType = [];
422
-      GetAllGoodType().then(response => {
423
-        if (response.data.state == 0) {
424
-          this.$message.error(response.data.msg);
425
-          return false;
426
-        } else {
427
-          for (let i = 0; i < response.data.data.goodType.length; i++) {
428
-            this.goodInfo.goodInfoDialog.formValue.goodType.push(
429
-              response.data.data.goodType[i]
430
-            );
431
-          }
432
-          if (this.goodInfo.goodInfoDialog.formValue.goodType.length <= 0) {
433
-            this.$message.error("请先新增商品类型");
434
-            return;
410
+              this.goodInfo.goodInfoData.unshift(response.data.data.goodInfo)
411
+
412
+              this.$message.success('新增成功')
413
+            }
414
+          })
415
+        }
416
+      },
417
+      goodInfoDialogCancle: function() {
418
+        this.$refs.dialog.hide()
419
+      },
420
+      showInfoDialog: function() {
421
+        this.$refs.dialog.show()
422
+        this.getAllDealer()
423
+        this.getAllManufacturer()
424
+        this.goodInfo.goodInfoDialog.formValue.goodType = []
425
+        GetAllGoodType().then(response => {
426
+          if (response.data.state == 0) {
427
+            this.$message.error(response.data.msg)
428
+            return false
435
           } else {
429
           } else {
436
-            this.goodInfo.goodInfoDialog.isVisibility = true;
437
-            this.goodInfo.goodInfoDialog.isCreated = 1;
430
+            for (let i = 0; i < response.data.data.goodType.length; i++) {
431
+              if (response.data.data.goodType[i].type == 1) {
432
+                response.data.data.goodType[i].type_name = response.data.data.goodType[i].type_name + '(系统设定)'
433
+              }
434
+              this.goodInfo.goodInfoDialog.formValue.goodType.push(
435
+                response.data.data.goodType[i]
436
+              )
437
+            }
438
+            if (this.goodInfo.goodInfoDialog.formValue.goodType.length <= 0) {
439
+              this.$message.error('请先新增商品类型')
440
+              return
441
+            } else {
442
+              this.goodInfo.goodInfoDialog.isVisibility = true
443
+              this.goodInfo.goodInfoDialog.isCreated = 1
444
+            }
438
           }
445
           }
439
-        }
440
-      });
441
-      this.goodInfo.goodInfoDialog.formValue.good_id = "";
442
-      this.goodInfo.goodInfoDialog.formValue.specification_name = "";
443
-      this.goodInfo.goodInfoDialog.formValue.buy_price = "";
444
-      this.goodInfo.goodInfoDialog.formValue.sell_price = "";
445
-      this.goodInfo.goodInfoDialog.formValue.remark = "";
446
-      this.goodInfo.goodInfoDialog.formValue.manufacturer = "";
447
-      this.goodInfo.goodInfoDialog.formValue.good_type_id = "";
448
-      this.goodInfo.goodInfoDialog.formValue.dealer = "";
449
-      this.goodInfo.goodInfoDialog.formValue.expiry_date_warn_day_count = "";
450
-      this.goodInfo.goodInfoDialog.formValue.stock_warn_count = "";
451
-      this.goodInfo.goodInfoDialog.formValue.is_reuse = "2";
452
-    },
453
-    getAllDealer: function() {
454
-      this.goodInfo.goodInfoDialog.formValue.dealers = [];
455
-      GetAllDeals().then(response => {
456
-        if (response.data.state == 0) {
457
-          this.$message.error(response.data.msg);
458
-          return false;
459
-        } else {
460
-          for (let i = 0; i < response.data.data.dealer.length; i++) {
461
-            this.goodInfo.goodInfoDialog.formValue.dealers.push(
462
-              response.data.data.dealer[i]
463
-            );
446
+        })
447
+        this.goodInfo.goodInfoDialog.formValue.good_id = ''
448
+        this.goodInfo.goodInfoDialog.formValue.specification_name = ''
449
+        this.goodInfo.goodInfoDialog.formValue.buy_price = ''
450
+        this.goodInfo.goodInfoDialog.formValue.sell_price = ''
451
+        this.goodInfo.goodInfoDialog.formValue.remark = ''
452
+        this.goodInfo.goodInfoDialog.formValue.manufacturer = ''
453
+        this.goodInfo.goodInfoDialog.formValue.good_type_id = ''
454
+        this.goodInfo.goodInfoDialog.formValue.dealer = ''
455
+        this.goodInfo.goodInfoDialog.formValue.expiry_date_warn_day_count = ''
456
+        this.goodInfo.goodInfoDialog.formValue.stock_warn_count = ''
457
+        this.goodInfo.goodInfoDialog.formValue.is_reuse = '2'
458
+      },
459
+      getAllDealer: function() {
460
+        this.goodInfo.goodInfoDialog.formValue.dealers = []
461
+        GetAllDeals().then(response => {
462
+          if (response.data.state == 0) {
463
+            this.$message.error(response.data.msg)
464
+            return false
465
+          } else {
466
+            for (let i = 0; i < response.data.data.dealer.length; i++) {
467
+              this.goodInfo.goodInfoDialog.formValue.dealers.push(
468
+                response.data.data.dealer[i]
469
+              )
470
+            }
464
           }
471
           }
465
-        }
466
-      });
467
-    },
468
-    getAllManufacturer: function() {
469
-      this.goodInfo.goodInfoDialog.formValue.manufacturers = [];
470
-      GetAllManufacturer().then(response => {
471
-        if (response.data.state == 0) {
472
-          this.$message.error(response.data.msg);
473
-          return false;
474
-        } else {
475
-          for (let i = 0; i < response.data.data.manufacturer.length; i++) {
476
-            this.goodInfo.goodInfoDialog.formValue.manufacturers.push(
477
-              response.data.data.manufacturer[i]
478
-            );
472
+        })
473
+      },
474
+      getAllManufacturer: function() {
475
+        this.goodInfo.goodInfoDialog.formValue.manufacturers = []
476
+        GetAllManufacturer().then(response => {
477
+          if (response.data.state == 0) {
478
+            this.$message.error(response.data.msg)
479
+            return false
480
+          } else {
481
+            for (let i = 0; i < response.data.data.manufacturer.length; i++) {
482
+              this.goodInfo.goodInfoDialog.formValue.manufacturers.push(
483
+                response.data.data.manufacturer[i]
484
+              )
485
+            }
479
           }
486
           }
480
-        }
481
-      });
482
-    },
483
-    getAllGoodType: function() {
484
-      this.goodInfo.goodInfoDialog.formValue.goodType = [];
485
-      GetAllGoodType().then(response => {
486
-        if (response.data.state == 0) {
487
-          this.$message.error(response.data.msg);
488
-          return false;
489
-        } else {
490
-          for (let i = 0; i < response.data.data.goodType.length; i++) {
491
-            this.goodInfo.goodInfoDialog.formValue.goodType.push(
492
-              response.data.data.goodType[i]
493
-            );
487
+        })
488
+      },
489
+      getAllGoodType: function() {
490
+        this.goodInfo.goodInfoDialog.formValue.goodType = []
491
+        GetAllGoodType().then(response => {
492
+          if (response.data.state == 0) {
493
+            this.$message.error(response.data.msg)
494
+            return false
495
+          } else {
496
+            for (let i = 0; i < response.data.data.goodType.length; i++) {
497
+              if (response.data.data.goodType[i].type == 1) {
498
+                response.data.data.goodType[i].type_name = response.data.data.goodType[i].type_name + '(系统设定)'
499
+              }
500
+              this.goodInfo.goodInfoDialog.formValue.goodType.push(
501
+                response.data.data.goodType[i]
502
+              )
503
+              console.log(this.goodInfo.goodInfoDialog.formValue.goodType)
504
+            }
494
           }
505
           }
495
-        }
496
-      });
497
-    },
498
-    handleSizeChange(val) {
499
-      this.limit = val;
500
-      this.getList();
506
+        })
507
+      },
508
+      handleSizeChange(val) {
509
+        this.limit = val
510
+        this.getList()
511
+      },
512
+      handleCurrentChange(val) {
513
+        this.page = val
514
+        this.getList()
515
+      }
501
     },
516
     },
502
-    handleCurrentChange(val) {
503
-      this.page = val;
504
-      this.getList();
517
+    created() {
518
+      this.getList()
519
+      // this.getAllDealer()
520
+      // this.getAllManufacturer()
521
+      // this.getAllGoodType()
522
+      this.goodInfo.goodInfoDialog.formValue.goodUnit = this.$store.getters.good_unit
505
     }
523
     }
506
-  },
507
-  created() {
508
-    this.getList();
509
-    // this.getAllDealer()
510
-    // this.getAllManufacturer()
511
-    // this.getAllGoodType()
512
-    this.goodInfo.goodInfoDialog.formValue.goodUnit = this.$store.getters.good_unit;
513
   }
524
   }
514
-};
515
 </script>
525
 </script>
516
 
526
 
517
 <style rel="stylesheet/css" lang="scss" scoped>
527
 <style rel="stylesheet/css" lang="scss" scoped>
518
-.information {
519
-  border: 1px #dcdfe6 solid;
520
-  padding: 30px 20px 30px 20px;
528
+  .information {
529
+    border: 1px #dcdfe6 solid;
530
+    padding: 30px 20px 30px 20px;
521
 
531
 
522
   .border {
532
   .border {
523
     border-bottom: 1px #dcdfe6 solid;
533
     border-bottom: 1px #dcdfe6 solid;
524
     margin: 0px 0 20px 0;
534
     margin: 0px 0 20px 0;
525
   }
535
   }
526
-}
527
 
536
 
528
-.title {
529
-  height: 44px;
530
-  line-height: 44px;
531
-  padding: 0 0 0 10px;
532
-  margin: 0 0 10px 0;
533
-}
537
+  }
538
+
539
+  .title {
540
+    height: 44px;
541
+    line-height: 44px;
542
+    padding: 0 0 0 10px;
543
+    margin: 0 0 10px 0;
544
+  }
534
 
545
 
535
-.edit_separater {
536
-  border-top: 1px solid rgb(233, 233, 233);
537
-  margin-top: 15px;
538
-  margin-bottom: 15px;
539
-}
546
+  .edit_separater {
547
+    border-top: 1px solid rgb(233, 233, 233);
548
+    margin-top: 15px;
549
+    margin-bottom: 15px;
550
+  }
540
 </style>
551
 </style>
541
 
552
 
542
 <style>
553
 <style>
543
-.sign-and-weigh-box .sign-and-weigh-box-patients .cell {
544
-  font-size: 12px;
545
-}
554
+  .sign-and-weigh-box .sign-and-weigh-box-patients .cell {
555
+    font-size: 12px;
556
+  }
557
+
558
+  .sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
559
+    background: #6fb5fa;
560
+  }
546
 
561
 
547
-.sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
548
-  background: #6fb5fa;
549
-}
550
-.el-table td,
551
-.el-table th.is-leaf,
552
-.el-table--border,
553
-.el-table--group {
554
-  border-color: #d0d3da;
555
-}
556
-.el-table--border::after,
557
-.el-table--group::after,
558
-.el-table::before {
559
-  background-color: #d0d3da;
560
-}
562
+  .el-table td,
563
+  .el-table th.is-leaf,
564
+  .el-table--border,
565
+  .el-table--group {
566
+    border-color: #d0d3da;
567
+  }
568
+
569
+  .el-table--border::after,
570
+  .el-table--group::after,
571
+  .el-table::before {
572
+    background-color: #d0d3da;
573
+  }
561
 </style>
574
 </style>

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

245
             <el-col :span="24">
245
             <el-col :span="24">
246
               <el-form-item label="传染病 : " required prop="is_infectious">
246
               <el-form-item label="传染病 : " required prop="is_infectious">
247
                 <el-radio-group v-model="form.is_infectious" disabled>
247
                 <el-radio-group v-model="form.is_infectious" disabled>
248
-                  <el-radio :label="1"></el-radio>
249
-                  <el-radio :label="2"></el-radio>
248
+                  <el-radio :label="1">阴性</el-radio>
249
+                  <el-radio :label="2">阳性</el-radio>
250
                 </el-radio-group>
250
                 </el-radio-group>
251
                 <el-checkbox-group
251
                 <el-checkbox-group
252
                   v-model="form.contagions"
252
                   v-model="form.contagions"

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

301
               <el-col :span="24">
301
               <el-col :span="24">
302
                 <el-form-item label="传染病 : " prop="contagions">
302
                 <el-form-item label="传染病 : " prop="contagions">
303
                   <el-radio-group v-model="form.is_infectious">
303
                   <el-radio-group v-model="form.is_infectious">
304
-                    <el-radio :label="1"></el-radio>
305
-                    <el-radio :label="2"></el-radio>
304
+                    <el-radio :label="1">阴性</el-radio>
305
+                    <el-radio :label="2">阳性</el-radio>
306
                   </el-radio-group>
306
                   </el-radio-group>
307
                   <el-checkbox-group
307
                   <el-checkbox-group
308
                     v-model="form.contagions"
308
                     v-model="form.contagions"
932
   homeTelephone: "",
932
   homeTelephone: "",
933
   relative_phone: "",
933
   relative_phone: "",
934
   relative_relations: "",
934
   relative_relations: "",
935
-  lapseto: "",
935
+  lapseto: 1,
936
   homeAddress: "",
936
   homeAddress: "",
937
   work: "",
937
   work: "",
938
   unit_address: "",
938
   unit_address: "",

+ 49 - 2
src/xt_pages/user/dialysisSolution.vue View File

381
           <el-col :span="8" v-if="isShows('透析器/灌流器')">
381
           <el-col :span="8" v-if="isShows('透析器/灌流器')">
382
             <el-form-item label="透析器/灌流器:">
382
             <el-form-item label="透析器/灌流器:">
383
               <el-input
383
               <el-input
384
-                v-model="addPlan.dialyzer_perfusion_apparatus"
385
-              ></el-input>
384
+              v-model="addPlan.dialyzer_perfusion_apparatus" @focus="showInnerDialog('5')"></el-input>
386
             </el-form-item>
385
             </el-form-item>
387
           </el-col>
386
           </el-col>
388
 
387
 
572
         >
571
         >
573
       </span>
572
       </span>
574
     </el-dialog>
573
     </el-dialog>
574
+
575
+    <multi-select-box
576
+      :propsForm="InnerDialogProps"
577
+      v-on:dialog-comfirm="innerDialogComfirm"
578
+      v-on:dialog-cancle="innerDialogCancle">
579
+    </multi-select-box>
580
+
581
+
575
   </div>
582
   </div>
576
 </template>
583
 </template>
577
 
584
 
595
 import store from '@/store'
602
 import store from '@/store'
596
 
603
 
597
 import { GetDeviceInfo } from '@/api/dialysis'
604
 import { GetDeviceInfo } from '@/api/dialysis'
605
+import MultiSelectBox from '../dialysis/details/dialog/MultiSelectBox/index'
598
 
606
 
599
 const periodWeek = [
607
 const periodWeek = [
600
   { value: '每周', label: '每周' },
608
   { value: '每周', label: '每周' },
639
       callback()
647
       callback()
640
     }
648
     }
641
     return {
649
     return {
650
+      InnerDialogProps: {
651
+        values: [],
652
+        visibility: false,
653
+        isShowTextArea: true,
654
+        customContent: '',
655
+        titles: '',
656
+        type: '' // 不同弹框类型,用来匹配数据
657
+      },
642
       deviceList: [],
658
       deviceList: [],
643
       dialysisTimeShow: new Date(2018, 1, 1, 3, 0),
659
       dialysisTimeShow: new Date(2018, 1, 1, 3, 0),
644
       isEdit: false,
660
       isEdit: false,
800
       blood_filters: null,
816
       blood_filters: null,
801
       perfusion_apparatus: null,
817
       perfusion_apparatus: null,
802
       hemodialysis_machines: null,
818
       hemodialysis_machines: null,
819
+      dialyzerPerfusionApparatus: [],
803
       solution_detail: {
820
       solution_detail: {
804
         id: 0,
821
         id: 0,
805
         affirm_state: 0,
822
         affirm_state: 0,
857
     }
874
     }
858
   },
875
   },
859
   components: {
876
   components: {
877
+    MultiSelectBox,
860
     tableTitle,
878
     tableTitle,
861
     PatientSidebar
879
     PatientSidebar
862
   },
880
   },
863
   methods: {
881
   methods: {
882
+    showInnerDialog: function(val) {
883
+      this.InnerDialogProps.visibility = true
884
+      switch (val) {
885
+        case '5': // 透析器/灌流器
886
+          this.InnerDialogProps.values = this.dialyzerPerfusionApparatus
887
+          this.InnerDialogProps.titles = '透析器/灌流器'
888
+          this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
889
+          this.InnerDialogProps.selected = this.addPlan.dialyzer_perfusion_apparatus
890
+          this.InnerDialogProps.isShowTextArea = false
891
+          break
892
+      }
893
+    },
894
+    innerDialogComfirm: function(val) {
895
+      this.InnerDialogProps.visibility = false
896
+      switch (val.type) {
897
+        case 'dialyzer_perfusion_apparatus':
898
+          this.addPlan.dialyzer_perfusion_apparatus = val.value.join(',')
899
+          break
900
+
901
+      }
902
+    },
903
+    innerDialogCancle: function() {
904
+      this.InnerDialogProps.visibility = false
905
+    },
864
     changeBodyFluid: function() {},
906
     changeBodyFluid: function() {},
865
     GetDeviceData: function() {
907
     GetDeviceData: function() {
866
       const params = {}
908
       const params = {}
1656
     this.blood_access_option = this.$store.getters.blood_access
1698
     this.blood_access_option = this.$store.getters.blood_access
1657
     this.blood_access_option = getDataConfig('hemodialysis', 'vascular_access_desc')
1699
     this.blood_access_option = getDataConfig('hemodialysis', 'vascular_access_desc')
1658
 
1700
 
1701
+    this.dialyzerPerfusionApparatus = getDataConfig(
1702
+      'hemodialysis',
1703
+      'dialyzer_perfusion_apparatus'
1704
+    )
1705
+
1659
     this.queryParams.id = this.patientID
1706
     this.queryParams.id = this.patientID
1660
     // this.fetchAllDoctorAndNurse();
1707
     // this.fetchAllDoctorAndNurse();
1661
     this.fetchAllAdminUsers()
1708
     this.fetchAllAdminUsers()

+ 129 - 14
src/xt_pages/workforce/schedule_print.vue View File

58
                 <td :width="td_4_width" valign="top">
58
                 <td :width="td_4_width" valign="top">
59
                   <div class="proj" v-if="Object.keys(main_collection.hdf).length > 0">
59
                   <div class="proj" v-if="Object.keys(main_collection.hdf).length > 0">
60
                     <div class="proj_title">血滤:</div>
60
                     <div class="proj_title">血滤:</div>
61
-                    <div class="proj_item">
62
-                      {{ patient_names(main_collection.hdf) }}
61
+                    <div class="proj_item" v-html="patient_other_names(main_collection.hdf)">
63
                     </div>
62
                     </div>
64
                   </div>
63
                   </div>
65
                   <div class="proj" v-if="Object.keys(main_collection.hd_hp).length > 0">
64
                   <div class="proj" v-if="Object.keys(main_collection.hd_hp).length > 0">
66
                     <div class="proj_title">灌流:</div>
65
                     <div class="proj_title">灌流:</div>
67
-                    <div class="proj_item">
68
-                      {{ patient_names(main_collection.hd_hp) }}
66
+                    <div class="proj_item" v-html="patient_other_names(main_collection.hd_hp)">>
69
                     </div>
67
                     </div>
70
                   </div>
68
                   </div>
71
                 </td>
69
                 </td>
111
               evening: { /* zone_name: [ schedule, ... ] */ }
109
               evening: { /* zone_name: [ schedule, ... ] */ }
112
             },
110
             },
113
             hdf: [ /* schedule, ... */],
111
             hdf: [ /* schedule, ... */],
114
-            hd_hp: [ /* schedule, ... */]
112
+            hd_hp: [ /* schedule, ... */],
113
+
114
+            new_hdf:{
115
+              am: { /* zone_name: [ schedule, ... ] */ },
116
+              pm: { /* zone_name: [ schedule, ... ] */ },
117
+              evening: { /* zone_name: [ schedule, ... ] */ }
118
+            },
119
+            new_hd_hp:{
120
+              am: { /* zone_name: [ schedule, ... ] */ },
121
+              pm: { /* zone_name: [ schedule, ... ] */ },
122
+              evening: { /* zone_name: [ schedule, ... ] */ }
123
+            }
124
+
115
           },
125
           },
116
           {
126
           {
117
             day: 2,
127
             day: 2,
122
               evening: { /* zone_name: [ schedule, ... ] */ }
132
               evening: { /* zone_name: [ schedule, ... ] */ }
123
             },
133
             },
124
             hdf: [ /* schedule, ... */],
134
             hdf: [ /* schedule, ... */],
125
-            hd_hp: [ /* schedule, ... */]
135
+            hd_hp: [ /* schedule, ... */],
136
+            new_hdf:{
137
+              am: { /* zone_name: [ schedule, ... ] */ },
138
+              pm: { /* zone_name: [ schedule, ... ] */ },
139
+              evening: { /* zone_name: [ schedule, ... ] */ }
140
+            },
141
+            new_hd_hp:{
142
+              am: { /* zone_name: [ schedule, ... ] */ },
143
+              pm: { /* zone_name: [ schedule, ... ] */ },
144
+              evening: { /* zone_name: [ schedule, ... ] */ }
145
+            }
126
           },
146
           },
127
           {
147
           {
128
             day: 3,
148
             day: 3,
133
               evening: { /* zone_name: [ schedule, ... ] */ }
153
               evening: { /* zone_name: [ schedule, ... ] */ }
134
             },
154
             },
135
             hdf: [ /* schedule, ... */],
155
             hdf: [ /* schedule, ... */],
136
-            hd_hp: [ /* schedule, ... */]
156
+            hd_hp: [ /* schedule, ... */],
157
+            new_hdf:{
158
+              am: { /* zone_name: [ schedule, ... ] */ },
159
+              pm: { /* zone_name: [ schedule, ... ] */ },
160
+              evening: { /* zone_name: [ schedule, ... ] */ }
161
+            },
162
+            new_hd_hp:{
163
+              am: { /* zone_name: [ schedule, ... ] */ },
164
+              pm: { /* zone_name: [ schedule, ... ] */ },
165
+              evening: { /* zone_name: [ schedule, ... ] */ }
166
+            }
137
           },
167
           },
138
           {
168
           {
139
             day: 4,
169
             day: 4,
144
               evening: { /* zone_name: [ schedule, ... ] */ }
174
               evening: { /* zone_name: [ schedule, ... ] */ }
145
             },
175
             },
146
             hdf: [ /* schedule, ... */],
176
             hdf: [ /* schedule, ... */],
147
-            hd_hp: [ /* schedule, ... */]
177
+            hd_hp: [ /* schedule, ... */],
178
+            new_hdf:{
179
+              am: { /* zone_name: [ schedule, ... ] */ },
180
+              pm: { /* zone_name: [ schedule, ... ] */ },
181
+              evening: { /* zone_name: [ schedule, ... ] */ }
182
+            },
183
+            new_hd_hp:{
184
+              am: { /* zone_name: [ schedule, ... ] */ },
185
+              pm: { /* zone_name: [ schedule, ... ] */ },
186
+              evening: { /* zone_name: [ schedule, ... ] */ }
187
+            }
148
           },
188
           },
149
           {
189
           {
150
             day: 5,
190
             day: 5,
155
               evening: { /* zone_name: [ schedule, ... ] */ }
195
               evening: { /* zone_name: [ schedule, ... ] */ }
156
             },
196
             },
157
             hdf: [ /* schedule, ... */],
197
             hdf: [ /* schedule, ... */],
158
-            hd_hp: [ /* schedule, ... */]
198
+            hd_hp: [ /* schedule, ... */],
199
+            new_hdf:{
200
+              am: { /* zone_name: [ schedule, ... ] */ },
201
+              pm: { /* zone_name: [ schedule, ... ] */ },
202
+              evening: { /* zone_name: [ schedule, ... ] */ }
203
+            },
204
+            new_hd_hp:{
205
+              am: { /* zone_name: [ schedule, ... ] */ },
206
+              pm: { /* zone_name: [ schedule, ... ] */ },
207
+              evening: { /* zone_name: [ schedule, ... ] */ }
208
+            }
159
           },
209
           },
160
           {
210
           {
161
             day: 6,
211
             day: 6,
166
               evening: { /* zone_name: [ schedule, ... ] */ }
216
               evening: { /* zone_name: [ schedule, ... ] */ }
167
             },
217
             },
168
             hdf: [ /* schedule, ... */],
218
             hdf: [ /* schedule, ... */],
169
-            hd_hp: [ /* schedule, ... */]
219
+            hd_hp: [ /* schedule, ... */],
220
+            new_hdf:{
221
+              am: { /* zone_name: [ schedule, ... ] */ },
222
+              pm: { /* zone_name: [ schedule, ... ] */ },
223
+              evening: { /* zone_name: [ schedule, ... ] */ }
224
+            },
225
+            new_hd_hp:{
226
+              am: { /* zone_name: [ schedule, ... ] */ },
227
+              pm: { /* zone_name: [ schedule, ... ] */ },
228
+              evening: { /* zone_name: [ schedule, ... ] */ }
229
+            }
170
           },
230
           },
171
           {
231
           {
172
             day: 7,
232
             day: 7,
177
               evening: { /* zone_name: [ schedule, ... ] */ }
237
               evening: { /* zone_name: [ schedule, ... ] */ }
178
             },
238
             },
179
             hdf: [ /* schedule, ... */],
239
             hdf: [ /* schedule, ... */],
180
-            hd_hp: [ /* schedule, ... */]
240
+            hd_hp: [ /* schedule, ... */],
241
+            new_hdf:{
242
+              am: { /* zone_name: [ schedule, ... ] */ },
243
+              pm: { /* zone_name: [ schedule, ... ] */ },
244
+              evening: { /* zone_name: [ schedule, ... ] */ }
245
+            },
246
+            new_hd_hp:{
247
+              am: { /* zone_name: [ schedule, ... ] */ },
248
+              pm: { /* zone_name: [ schedule, ... ] */ },
249
+              evening: { /* zone_name: [ schedule, ... ] */ }
250
+            }
181
           }
251
           }
182
         ]
252
         ]
183
       }
253
       }
204
           }
274
           }
205
 
275
 
206
           var schedules = resp.data.schedules
276
           var schedules = resp.data.schedules
207
-          console.log(schedules)
208
 
277
 
209
           for (let index = 0; index < schedules.length; index++) {
278
           for (let index = 0; index < schedules.length; index++) {
210
             const schedule = schedules[index]
279
             const schedule = schedules[index]
211
-            console.log(schedule)
212
             if (schedule.patient == null || schedule.zone == null) {
280
             if (schedule.patient == null || schedule.zone == null) {
213
               continue
281
               continue
214
             }
282
             }
219
             var main_collection = this.schedules[weekday - 1]
287
             var main_collection = this.schedules[weekday - 1]
220
 
288
 
221
             var time_type_schedules
289
             var time_type_schedules
290
+            var other_time_type_schedules
291
+
222
             if (time_type == 1) {
292
             if (time_type == 1) {
223
               time_type_schedules = main_collection.all.am
293
               time_type_schedules = main_collection.all.am
224
             } else if (time_type == 2) {
294
             } else if (time_type == 2) {
235
 
305
 
236
             if (schedule.mode.id == 2) { // HDF
306
             if (schedule.mode.id == 2) { // HDF
237
               main_collection.hdf.push(schedule)
307
               main_collection.hdf.push(schedule)
308
+
309
+
238
             } else if (schedule.mode.id == 3) { // HD+HF
310
             } else if (schedule.mode.id == 3) { // HD+HF
239
               main_collection.hd_hp.push(schedule)
311
               main_collection.hd_hp.push(schedule)
240
             }
312
             }
313
+
241
           }
314
           }
242
 
315
 
243
-          console.log(this.schedules)
244
 
316
 
245
         } else {
317
         } else {
246
           this.$message.error(resp.msg)
318
           this.$message.error(resp.msg)
266
 
338
 
267
         return names.join('、')
339
         return names.join('、')
268
       },
340
       },
341
+      patient_other_names: function(schedules) {
342
+        let am = []
343
+        let pm = []
344
+        let evening = []
345
+
346
+        var names = []
347
+        for (let index = 0; index < schedules.length; index++) {
348
+          const schedule = schedules[index]
349
+          console.log(schedule)
350
+
351
+          names.push(schedule.patient.name)
352
+
353
+          if(schedule.schedule_type == 1){
354
+            am.push(schedule.patient.name)
355
+
356
+          }else if(schedule.schedule_type == 2){
357
+            pm.push(schedule.patient.name)
358
+
359
+
360
+          }else if(schedule.schedule_type == 3){
361
+            evening.push(schedule.patient.name)
362
+          }
363
+        }
364
+        const obj = {}
365
+        names = names.reduce((cur, next) => {
366
+          obj[next] ? '' : obj[next] = true && cur.push(next)
367
+          return cur
368
+        }, []) // 设置cur默认类型为数组,并且初始值为空的数组
369
+        var str= ""
370
+
371
+        if(am.length > 0){
372
+          str = "上午:"+ am.join("、") +"<br/>"
373
+        }
374
+
375
+        if(pm.length > 0){
376
+          str = str + "下午:"+ pm.join("、")+"<br/>"
377
+        }
378
+
379
+        if(evening.length > 0){
380
+          str = str + "晚上:"+ evening.join("、")
381
+        }
382
+        return str
383
+      },
269
       printAction: function() {
384
       printAction: function() {
270
         const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
385
         const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
271
 
386