6 Commits 2beaaaeb96 ... 67bc70a659

Author SHA1 Message Date
  张保健 67bc70a659 Merge branch '20220812' of http://git.shengws.com/csx/Vue_New into 20220812 1 year ago
  张保健 0f38969552 Merge branch '2022-10-17_vue_schedule_branch' of http://git.shengws.com/csx/Vue_New into 2022-10-17_vue_schedule_branch 1 year ago
  张保健 417a84c786 Merge branch '2022-10-17_vue_schedule_branch' of http://git.shengws.com/csx/Vue_New into 2022-10-17_vue_schedule_branch 1 year ago
  张保健 6167a3cdf6 Merge branch '2022-10-17_vue_schedule_branch' of http://git.shengws.com/csx/Vue_New into 2022-10-17_vue_schedule_branch 1 year ago
  张保健 39d7484399 Merge branch '20220812' of http://git.shengws.com/csx/Vue_New into 2022-10-17_vue_schedule_branch 1 year ago
  张保健 7ee619b5d0 111 1 year ago
44 changed files with 410 additions and 4715 deletions
  1. 2 2
      config/dev.env.js
  2. 2 2
      config/index.js
  3. 1 1
      package.json
  4. 0 10
      src/api/his/his_hospital.js
  5. 0 9
      src/api/schedule.js
  6. 3 4
      src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue
  7. 0 2417
      src/xt_pages/dialysis/batch_print/batch_print_order_sixtyTwo.vue
  8. 30 1116
      src/xt_pages/dialysis/bloodPresssWatch.vue
  9. 1 1
      src/xt_pages/dialysis/details/assessmentAfter.vue
  10. 1 1
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  11. 1 1
      src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue
  12. 5 13
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  13. 1 1
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  14. 0 13
      src/xt_pages/dialysis/schedualPatient.vue
  15. 2 28
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyFour.vue
  16. 28 32
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue
  17. 5 24
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue
  18. 9 15
      src/xt_pages/dialysis/template/DialysisPrintOrderSixtyTwo.vue
  19. 1 0
      src/xt_pages/hospitalStation/invoicePrint.vue
  20. 5 124
      src/xt_pages/hospitalStation/outpatientChargesManagement.vue
  21. 9 9
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue
  22. 6 6
      src/xt_pages/outpatientCharges/statementPrint.vue
  23. 121 18
      src/xt_pages/outpatientCharges/summary.vue
  24. 1 4
      src/xt_pages/outpatientDoctorStation/checkPrint.vue
  25. 0 616
      src/xt_pages/outpatientDoctorStation/checkTemplate/checkPrintTwo.vue
  26. 3 5
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  27. 1 6
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  28. 1 1
      src/xt_pages/outpatientDoctorStation/print.vue
  29. 11 4
      src/xt_pages/outpatientDoctorStation/template/printOne.vue
  30. 3 1
      src/xt_pages/outpatientDoctorStation/template/printThree.vue
  31. 0 4
      src/xt_pages/stock/detail/stockInDetail.vue
  32. 4 8
      src/xt_pages/stock/detail/stockOutDetail.vue
  33. 2 2
      src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue
  34. 2 1
      src/xt_pages/stock/query/goodNewQuery.vue
  35. 0 2
      src/xt_pages/stock/stockFlow.vue
  36. 7 17
      src/xt_pages/user/courseOfDisease.vue
  37. 1 2
      src/xt_pages/user/dialysisSolution.vue
  38. 9 0
      src/xt_pages/workforce/components/ScheduleItem.vue
  39. 62 114
      src/xt_pages/workforce/components/editTableData.vue
  40. 10 2
      src/xt_pages/workforce/components/tableWeeks.vue
  41. 36 35
      src/xt_pages/workforce/components/template_table.vue
  42. 7 22
      src/xt_pages/workforce/remind_print_setting_one.vue
  43. 4 9
      src/xt_pages/workforce/template.vue
  44. 13 13
      src/xt_permission.js

+ 2 - 2
config/dev.env.js View File

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

+ 2 - 2
config/index.js View File

27
     // can be overwritten by process.env.HOST
27
     // can be overwritten by process.env.HOST
28
     // if you want dev by ip, please set host: '0.0.0.0'
28
     // if you want dev by ip, please set host: '0.0.0.0'
29
 
29
 
30
-    // host: 'xt.test.sgjyun.com',
30
+    host: 'xt.test.sgjyun.com',
31
     //  host: 'xt.kuyicloud.com',
31
     //  host: 'xt.kuyicloud.com',
32
    // host: 'xt.test.sgjyun.com',
32
    // host: 'xt.test.sgjyun.com',
33
-    host: 'localhost',
33
+  //  host: 'localhost',
34
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
34
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
35
     autoOpenBrowser: true,
35
     autoOpenBrowser: true,
36
     errorOverlay: true,
36
     errorOverlay: true,

+ 1 - 1
package.json View File

56
     "jszip": "3.1.5",
56
     "jszip": "3.1.5",
57
     "mockjs": "1.0.1-beta3",
57
     "mockjs": "1.0.1-beta3",
58
     "moment": "^2.24.0",
58
     "moment": "^2.24.0",
59
-    "node-sass": "^8.0.0",
59
+    "node-sass": "4.14.1",
60
     "normalize.css": "7.0.0",
60
     "normalize.css": "7.0.0",
61
     "nprogress": "0.2.0",
61
     "nprogress": "0.2.0",
62
     "print-js": "^1.0.50",
62
     "print-js": "^1.0.50",

+ 0 - 10
src/api/his/his_hospital.js View File

19
   });
19
   });
20
 }
20
 }
21
 
21
 
22
-export function exportData(params) {
23
-  return request({
24
-    url: "/api/exportuncharge/get",
25
-    method: "get",
26
-    params:params
27
-  });
28
-}
29
-
30
-
31
-
32
 
22
 
33
 
23
 

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

269
     params: params
269
     params: params
270
   })
270
   })
271
 }
271
 }
272
-
273
-
274
-export function CancelScheduleTwo(id) {
275
-  return request({
276
-    url: '/api/schedule/delete_two?id=' + id,
277
-    method: 'Delete'
278
-  })
279
-}
280
-

+ 3 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue View File

328
                         <td width="60" style="height:20px;line-height:20px">静脉压<br />mmHg</td>
328
                         <td width="60" style="height:20px;line-height:20px">静脉压<br />mmHg</td>
329
                         <td width="60" style="height:20px;line-height:20px">动脉压<br />mmHg</td>
329
                         <td width="60" style="height:20px;line-height:20px">动脉压<br />mmHg</td>
330
                         <td width="60" style="height:20px;line-height:20px">跨膜压<br />mmHg</td>
330
                         <td width="60" style="height:20px;line-height:20px">跨膜压<br />mmHg</td>
331
-                        <!-- <td width="60" style="height:20px;line-height:20px">温度<br />°C</td> -->
331
+                        <td width="60" style="height:20px;line-height:20px">温度<br />°C</td>
332
                         <td width="60" style="height:20px;line-height:20px">超滤率<br />ml/h</td>
332
                         <td width="60" style="height:20px;line-height:20px">超滤率<br />ml/h</td>
333
                         <td width="60" style="height:20px;line-height:20px">超滤量<br />ml</td>
333
                         <td width="60" style="height:20px;line-height:20px">超滤量<br />ml</td>
334
 <!--                        <td width="60" style="height:20px;line-height:20px" v-if="record.prescription.mode_id == 2">置换率<br /><br />ml/h</td>-->
334
 <!--                        <td width="60" style="height:20px;line-height:20px" v-if="record.prescription.mode_id == 2">置换率<br /><br />ml/h</td>-->
352
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.arterial_pressure ? monitor.arterial_pressure : "/" }}</span></td>
352
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.arterial_pressure ? monitor.arterial_pressure : "/" }}</span></td>
353
 
353
 
354
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "/" }}</span></td>
354
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "/" }}</span></td>
355
-                        <!-- <td>&nbsp;<span v-if="monitor.operate_time">{{monitor.dialysate_temperature ? monitor.dialysate_temperature : '/'}}</span></td> -->
355
+                        <td>&nbsp;<span v-if="monitor.operate_time">{{monitor.dialysate_temperature ? monitor.dialysate_temperature : '/'}}</span></td>
356
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : '/'}}</span></td>
356
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : '/'}}</span></td>
357
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "/" }}</span></td>
357
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "/" }}</span></td>
358
 <!--                        <td v-if="record.prescription.mode_id == 2">&nbsp;<span v-if="monitor.operate_time">{{ monitor.replacement_rate ? monitor.replacement_rate : '/'}}</span></td>-->
358
 <!--                        <td v-if="record.prescription.mode_id == 2">&nbsp;<span v-if="monitor.operate_time">{{ monitor.replacement_rate ? monitor.replacement_rate : '/'}}</span></td>-->
716
       .then(rs => {
716
       .then(rs => {
717
         var resp = rs.data
717
         var resp = rs.data
718
         if (resp.state == 1) {
718
         if (resp.state == 1) {
719
-          this.loading = false
720
           this.org_template_info = resp.data.templateInfo
719
           this.org_template_info = resp.data.templateInfo
721
 
720
 
722
           this.records = this.records.concat(resp.data.schedules)
721
           this.records = this.records.concat(resp.data.schedules)
888
           this.adminSign = name
887
           this.adminSign = name
889
           console.log('name是', name)
888
           console.log('name是', name)
890
           console.log('记录', this.records)
889
           console.log('记录', this.records)
891
-          
890
+          this.loading = false
892
         } else {
891
         } else {
893
           this.loading = false
892
           this.loading = false
894
           this.$message.error(resp.msg)
893
           this.$message.error(resp.msg)

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


File diff suppressed because it is too large
+ 30 - 1116
src/xt_pages/dialysis/bloodPresssWatch.vue


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

17
           <span class="content" v-if="actual_ultrafiltration != '0'">{{
17
           <span class="content" v-if="actual_ultrafiltration != '0'">{{
18
             actual_ultrafiltration
18
             actual_ultrafiltration
19
           }}</span>
19
           }}</span>
20
-          <span class="unit" v-if=" actual_ultrafiltration != '0' && ((this.$store.getters.xt_user.template_info.template_id == 6 &&this.$store.getters.xt_user.template_info.org_id != 10447) || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 36 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 44 || this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10340 ||  this.$store.getters.xt_user.template_info.org_id == 10387 ||  this.$store.getters.xt_user.template_info.org_id == 10430 ||  this.$store.getters.xt_user.template_info.org_id == 10432 ||  this.$store.getters.xt_user.template_info.org_id == 10441 ||  this.$store.getters.xt_user.template_info.org_id == 10445  ) " >ml</span>
20
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && (this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 36 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 44 || this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10340 ||  this.$store.getters.xt_user.template_info.org_id == 10387 ||  this.$store.getters.xt_user.template_info.org_id == 10430 ||  this.$store.getters.xt_user.template_info.org_id == 10432 ||  this.$store.getters.xt_user.template_info.org_id == 10441 ||  this.$store.getters.xt_user.template_info.org_id == 10445  ) " >ml</span>
21
           <span class="unit" v-if=" actual_ultrafiltration != '0' && this.$store.getters.xt_user.template_info.template_id != 6 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 36 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 44 && this.$store.getters.xt_user.template_info.template_id != 60 &&  this.$store.getters.xt_user.template_info.org_id != 9555  && this.$store.getters.xt_user.template_info.org_id != 10340 &&  this.$store.getters.xt_user.template_info.org_id!= 10387 &&  this.$store.getters.xt_user.template_info.org_id!= 10430 &&  this.$store.getters.xt_user.template_info.org_id!= 10432 &&  this.$store.getters.xt_user.template_info.org_id!= 10441 &&  this.$store.getters.xt_user.template_info.org_id!= 10445"  >L</span>
21
           <span class="unit" v-if=" actual_ultrafiltration != '0' && this.$store.getters.xt_user.template_info.template_id != 6 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 36 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 44 && this.$store.getters.xt_user.template_info.template_id != 60 &&  this.$store.getters.xt_user.template_info.org_id != 9555  && this.$store.getters.xt_user.template_info.org_id != 10340 &&  this.$store.getters.xt_user.template_info.org_id!= 10387 &&  this.$store.getters.xt_user.template_info.org_id!= 10430 &&  this.$store.getters.xt_user.template_info.org_id!= 10432 &&  this.$store.getters.xt_user.template_info.org_id!= 10441 &&  this.$store.getters.xt_user.template_info.org_id!= 10445"  >L</span>
22
         </li>
22
         </li>
23
         <li v-if="isShow('导管')">
23
         <li v-if="isShow('导管')">

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

28
           <el-col :span="8" v-if="isShow('实际超滤量')">
28
           <el-col :span="8" v-if="isShow('实际超滤量')">
29
             <el-form-item
29
             <el-form-item
30
               label="实际超滤量(ml): "
30
               label="实际超滤量(ml): "
31
-              v-if=" (this.template_id == 6 && this.$store.getters.xt_user.template_info.org_id != 10447) || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.template_id == 56 || this.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445"  >
31
+              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.template_id == 56 || this.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445"  >
32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
33
             </el-form-item>
33
             </el-form-item>
34
             <el-form-item label="实际超滤量(L): " v-else>
34
             <el-form-item label="实际超滤量(L): " v-else>

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

1560
         }
1560
         }
1561
       }
1561
       }
1562
       
1562
       
1563
-      if( this.$store.getters.xt_user.org.id == 0 || this.$store.getters.xt_user.org.id == 9671 || this.$store.getters.xt_user.org.id == 9675 || this.$store.getters.xt_user.org.id == 10340 || this.$store.getters.xt_user.org.id == 10447){
1563
+      if(this.$store.getters.xt_user.org.id == 9671 || this.$store.getters.xt_user.org.id == 9675 || this.$store.getters.xt_user.org.id == 10340){
1564
          var date = new Date()
1564
          var date = new Date()
1565
           var year = date.getFullYear()
1565
           var year = date.getFullYear()
1566
           var month = date.getMonth() + 1
1566
           var month = date.getMonth() + 1

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

594
           <el-table-column
594
           <el-table-column
595
             prop="displacement_flow_quantity"
595
             prop="displacement_flow_quantity"
596
             align="center"
596
             align="center"
597
-            label="电导度(mS/cm)"
597
+            label="电导度(mS/m)"
598
             width="100"
598
             width="100"
599
             v-if="isShow('电导度')"
599
             v-if="isShow('电导度')"
600
           >
600
           >
1322
           </el-col>
1322
           </el-col>
1323
 
1323
 
1324
           <el-col :span="8" v-if="isShow('电导度')">
1324
           <el-col :span="8" v-if="isShow('电导度')">
1325
-            <el-form-item label="电导度(mS/cm):">
1325
+            <el-form-item label="电导度(mS/m):">
1326
               <el-input v-model="form.conductivity"></el-input>
1326
               <el-input v-model="form.conductivity"></el-input>
1327
             </el-form-item>
1327
             </el-form-item>
1328
           </el-col>
1328
           </el-col>
1917
           this.form.breathing_rated = "20"
1917
           this.form.breathing_rated = "20"
1918
         }else if(this.org_id == 10340){
1918
         }else if(this.org_id == 10340){
1919
          this.form.breathing_rated = "20"
1919
          this.form.breathing_rated = "20"
1920
-        }else if(this.org_id == 10447){
1921
-          this.form.breathing_rated = "20"
1922
         } else {
1920
         } else {
1923
           this.form.breathing_rated = "";
1921
           this.form.breathing_rated = "";
1924
         }
1922
         }
1964
         this.form.symptom = resp.monitor.symptom ? resp.monitor.symptom : ""; // this.last_monitor_record.symptom;
1962
         this.form.symptom = resp.monitor.symptom ? resp.monitor.symptom : ""; // this.last_monitor_record.symptom;
1965
        // this.form.dispose = resp.monitor.dispose ? resp.monitor.dispose : ""; // this.last_monitor_record.dispose;
1963
        // this.form.dispose = resp.monitor.dispose ? resp.monitor.dispose : ""; // this.last_monitor_record.dispose;
1966
         this.form.result = resp.monitor.result ? resp.monitor.result : ""; // this.last_monitor_record.result;
1964
         this.form.result = resp.monitor.result ? resp.monitor.result : ""; // this.last_monitor_record.result;
1967
-        //电导度
1968
-        if(this.org_id == 9671 || this.org_id == 10447){
1969
-           this.form.blood_oxygen_saturation = "99"
1970
-        }else{
1971
-           this.form.blood_oxygen_saturation = resp.monitor.blood_oxygen_saturation? resp.monitor.blood_oxygen_saturation: "";
1972
-        }
1973
-       
1965
+        this.form.blood_oxygen_saturation = resp.monitor.blood_oxygen_saturation? resp.monitor.blood_oxygen_saturation: "";
1974
        //针对长沙南雅医院
1966
        //针对长沙南雅医院
1975
        if(this.org_id == 9671 || this.org_id == 10340 || this.org_id == 9675){
1967
        if(this.org_id == 9671 || this.org_id == 10340 || this.org_id == 9675){
1976
           this.form.blood_oxygen_saturation = "/"
1968
           this.form.blood_oxygen_saturation = "/"
1982
         this.form.sodium_concentration = resp.monitor.sodium_concentration
1974
         this.form.sodium_concentration = resp.monitor.sodium_concentration
1983
           ? resp.monitor.sodium_concentration
1975
           ? resp.monitor.sodium_concentration
1984
           : "";
1976
           : "";
1985
-        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id == 10447){
1977
+        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340){
1986
           this.form.conductivity = 14
1978
           this.form.conductivity = 14
1987
         }else{
1979
         }else{
1988
            this.form.conductivity = resp.monitor.conductivity? resp.monitor.conductivity: "";
1980
            this.form.conductivity = resp.monitor.conductivity? resp.monitor.conductivity: "";
2017
         this.form.heparin_amount = resp.monitor.heparin_amount
2009
         this.form.heparin_amount = resp.monitor.heparin_amount
2018
           ? resp.monitor.heparin_amount
2010
           ? resp.monitor.heparin_amount
2019
           : "";
2011
           : "";
2020
-         if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id == 10447){
2012
+         if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340){
2021
             this.form.dialysate_temperature = 36.5
2013
             this.form.dialysate_temperature = 36.5
2022
             
2014
             
2023
          }
2015
          }

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

26
           <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10432  || this.$store.getters.xt_user.template_info.org_id == 10445 )" width="92px"  > 置换量(ml)  </th>
26
           <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10432  || this.$store.getters.xt_user.template_info.org_id == 10445 )" width="92px"  > 置换量(ml)  </th>
27
           <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432  && this.$store.getters.xt_user.template_info.org_id != 10445)" width="92px" > 置换量(L) </th>
27
           <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432  && this.$store.getters.xt_user.template_info.org_id != 10445)" width="92px" > 置换量(L) </th>
28
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
28
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
29
-          <th v-if="isShow('电导度')" width="92px">电导度(mS/cm)</th>
29
+          <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
30
           <th v-if="isShow('置换液流量') && template_id != 27" width="92px">置换液流量(ml/h)</th>
30
           <th v-if="isShow('置换液流量') && template_id != 27" width="92px">置换液流量(ml/h)</th>
31
           <th v-if="isShow('置换液流量') && template_id == 27" width="92px">置换液流量(ml/min)</th>
31
           <th v-if="isShow('置换液流量') && template_id == 27" width="92px">置换液流量(ml/min)</th>
32
           <th v-if="isShow('透析液流量')" width="92px">透析液流量(ml/h)</th>
32
           <th v-if="isShow('透析液流量')" width="92px">透析液流量(ml/h)</th>

+ 0 - 13
src/xt_pages/dialysis/schedualPatient.vue View File

184
           {value: 1,label: '待开处方'},
184
           {value: 1,label: '待开处方'},
185
           {value: 2,label: '待开小结'},
185
           {value: 2,label: '待开小结'},
186
           {value: 3,label: '待医嘱核对'},
186
           {value: 3,label: '待医嘱核对'},
187
-          {value:4,label:'待消毒'},
188
         ],
187
         ],
189
         treatStateVal: 0,
188
         treatStateVal: 0,
190
         allPatient:[],
189
         allPatient:[],
826
             }
825
             }
827
           }
826
           }
828
           arr2 = arr
827
           arr2 = arr
829
-        }else if(this.treatStateVal == 4){
830
-         let arr = []
831
-          arr = JSON.parse(JSON.stringify(arr1))
832
-          for (let i = 0; i < arr.length; i++) {
833
-            for (let j = 0; j < arr[i].schedules.length; j++) {
834
-              if (arr[i].schedules.length > 0 && (arr[i].schedules[j].device_information != null)) {
835
-                // 删除元素后改变i的值
836
-                arr[i].schedules.splice(j--, 1);
837
-              }
838
-            }
839
-          }
840
-          arr2 = arr
841
         }
828
         }
842
 
829
 
843
 
830
 

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

3
     <div class="dialysis-print-order">
3
     <div class="dialysis-print-order">
4
       <div class="order-yy-name">{{ orgname }}</div>
4
       <div class="order-yy-name">{{ orgname }}</div>
5
       <div class="order-title">血液透析(滤过)记录表单</div>
5
       <div class="order-title">血液透析(滤过)记录表单</div>
6
-      <div style="display:flex;justify-content: space-between;">
7
-        <div class="order-name" style="margin: 0;">姓 名:&nbsp;{{ patientInfo.name }}</div>
8
-            <div class="order-name" style="margin: 0;">门诊/住院号:&nbsp;
9
-            <span v-if="receiverTreatmentAccess.admission_number">
10
-              {{ receiverTreatmentAccess.admission_number }}
11
-            </span>
12
-            <span v-else-if="patientInfo.admission_number">
13
-              {{ patientInfo.admission_number }}
14
-            </span>
15
-            <span v-else>
16
-              {{ "/" }}
17
-            </span>
18
-            </div>
19
-          </div>
20
-      
6
+      <div class="order-name">姓 名:&nbsp;{{ patientInfo.name }}</div>
21
       <table class="print-table" border="1">
7
       <table class="print-table" border="1">
22
         <tbody>
8
         <tbody>
23
           <tr>
9
           <tr>
851
             <td v-if="advice_index === 2">{{ predialysis.dry_weight }}kg</td>
837
             <td v-if="advice_index === 2">{{ predialysis.dry_weight }}kg</td>
852
             <td v-if="advice_index === 3">较干体重增加量:</td>
838
             <td v-if="advice_index === 3">较干体重增加量:</td>
853
             <td v-if="advice_index === 3">
839
             <td v-if="advice_index === 3">
854
-              <span v-if="org_id==10345">
855
-                {{
856
-                predialysis.weight_before == 0
857
-                  ? 0
858
-                  : (
859
-                      predialysis.weight_before - predialysis.dry_weight
860
-                    ).toFixed(2)
861
-              }}kg
862
-              </span>
863
-              <span v-else>
864
-                {{
840
+              {{
865
                 afterdialysis.weight_after == 0
841
                 afterdialysis.weight_after == 0
866
                   ? 0
842
                   ? 0
867
                   : (
843
                   : (
868
                       afterdialysis.weight_after - predialysis.dry_weight
844
                       afterdialysis.weight_after - predialysis.dry_weight
869
                     ).toFixed(2)
845
                     ).toFixed(2)
870
               }}kg
846
               }}kg
871
-              </span>
872
-              
873
             </td>
847
             </td>
874
             <td v-if="advice_index === 4">净脱水量:</td>
848
             <td v-if="advice_index === 4">净脱水量:</td>
875
             <td v-if="advice_index === 4">
849
             <td v-if="advice_index === 4">

+ 28 - 32
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue View File

100
                       class="under_line"
100
                       class="under_line"
101
                       style="width: 50px; text-align: center"
101
                       style="width: 50px; text-align: center"
102
                     >
102
                     >
103
+                      <!-- <span>{{
104
+                        (dialysisOrder &&
105
+                          dialysisOrder != null &&
106
+                          dialysisOrder.DeviceNumber &&
107
+                          dialysisOrder.DeviceNumber.number.length > 0) ||
108
+                        (dialysisOrder &&
109
+                          dialysisOrder != null &&
110
+                          receiverTreatmentAccess.condition &&
111
+                          receiverTreatmentAccess.condition != 1)
112
+                          ? patientInfo.DialysisSchedule.device_number.number
113
+                          : dialysisOrder.DeviceNumber.number
114
+                      }}</span> -->
115
+
103
                       <span
116
                       <span
104
                         v-if="
117
                         v-if="
105
                           dialysisOrder == null ||
118
                           dialysisOrder == null ||
1143
                                     : "/"
1156
                                     : "/"
1144
                                 }}
1157
                                 }}
1145
                               </div>
1158
                               </div>
1146
-                               <span v-if="prescription.anticoagulant == 7"
1147
-                                >iu</span
1148
-                              >
1149
-                               <span v-if="prescription.anticoagulant == 6"
1150
-                                >iu</span
1151
-                              >
1152
-                               <span v-if="prescription.anticoagulant == 5"
1153
-                                >ml</span
1154
-                              >
1155
                               <span v-if="prescription.anticoagulant == 4"
1159
                               <span v-if="prescription.anticoagulant == 4"
1156
                                 >mg</span
1160
                                 >mg</span
1157
                               >
1161
                               >
1189
                                     : "0"
1193
                                     : "0"
1190
                                 }}
1194
                                 }}
1191
                               </div>
1195
                               </div>
1192
-                              <span v-if="prescription.anticoagulant == 7"
1193
-                                >iu/h</span
1194
-                              >
1195
-                              <span v-if="prescription.anticoagulant == 6"
1196
-                                >iu/h</span
1197
-                              >
1198
                               <span v-if="prescription.anticoagulant == 5"
1196
                               <span v-if="prescription.anticoagulant == 5"
1199
                                 >ml/h</span
1197
                                 >ml/h</span
1200
                               >
1198
                               >
1262
                                     : "/"
1260
                                     : "/"
1263
                                 }}
1261
                                 }}
1264
                               </div>
1262
                               </div>
1265
-                              <span v-if="prescription.anticoagulant == 7"
1266
-                                >iu</span
1267
-                              >
1268
-                              <span v-if="prescription.anticoagulant == 6"
1269
-                                >iu</span
1270
-                              >
1271
-                              <span v-if="prescription.anticoagulant == 5"
1272
-                                >ml</span
1273
-                              >
1274
                               <span v-if="prescription.anticoagulant == 4"
1263
                               <span v-if="prescription.anticoagulant == 4"
1275
                                 >mg</span
1264
                                 >mg</span
1276
                               >
1265
                               >
1435
                                 </td>
1424
                                 </td>
1436
                                 <td width="200">病情变化及处理</td>
1425
                                 <td width="200">病情变化及处理</td>
1437
 
1426
 
1427
+                                <!-- <td width="100">时间</td>
1428
+                    <td width="30">T<br>C°</td>
1429
+                    <td width="30">P<br/>次/分</td>
1430
+                    <td width="30">R<br/>次/分</td>
1431
+                    <td width="100">BP<br/>mmHg</td>
1432
+                    <td width="60">静脉压/动脉压<br/>mmHg</td>
1433
+                    <td width="80">血流量<br/>ml/min</td>
1434
+                    <td width="90">超滤量累计L</td>
1435
+                    <td width="80">钠浓度<br/>mmol/L</td>
1436
+                    <td width="240">病情特殊情况处理<br/>及专科护理措施记录</td>
1437
+                    <td  width="100">护士签名</td> -->
1438
                               </tr>
1438
                               </tr>
1439
 
1439
 
1440
                               <tr
1440
                               <tr
3379
         var leftAdvice = [];
3379
         var leftAdvice = [];
3380
         var rightAdvice = [];
3380
         var rightAdvice = [];
3381
         var adlen = advices.length;
3381
         var adlen = advices.length;
3382
-        console.log("adlen----------------------",adlen)
3382
+
3383
         var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
3383
         var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
3384
         for (var i = 0; i < halfLen; i++) {
3384
         for (var i = 0; i < halfLen; i++) {
3385
           leftAdvice.push(advices[i]);
3385
           leftAdvice.push(advices[i]);
3404
           this.advices.push(item);
3404
           this.advices.push(item);
3405
         }
3405
         }
3406
         this.loading = false;
3406
         this.loading = false;
3407
-        this.doctor_advices =response.data.data.advices == null ? [] : response.data.data.advices;
3408
-        console.log("zhonguog---------------------------------",this.doctor_advices)
3407
+        this.doctor_advices =
3408
+          response.data.data.advices == null ? [] : response.data.data.advices;
3409
         for (let index = 0; index < this.doctor_advices.length; index++) {
3409
         for (let index = 0; index < this.doctor_advices.length; index++) {
3410
           this.doctor_advices[index]["isShow"] = 2;
3410
           this.doctor_advices[index]["isShow"] = 2;
3411
         }
3411
         }
3505
         }
3505
         }
3506
 
3506
 
3507
         this.totollength = this.doctor_advices.length + this.monitors.length;
3507
         this.totollength = this.doctor_advices.length + this.monitors.length;
3508
-        console.log("totalpath-------------------------------",this.totollength)
3509
-        if (this.totollength > 58) {
3508
+        if (this.totollength > 18) {
3510
           var temp_advice_length = 17 - this.monitors.length;
3509
           var temp_advice_length = 17 - this.monitors.length;
3511
-          console.log("temp_advice_length-----------",temp_advice_length)
3512
           var doctor_advices_1 = [];
3510
           var doctor_advices_1 = [];
3513
           var doctor_advices_2 = [];
3511
           var doctor_advices_2 = [];
3514
           for (let index = 0; index < this.doctor_advices.length; index++) {
3512
           for (let index = 0; index < this.doctor_advices.length; index++) {
3515
             const element = this.doctor_advices[index];
3513
             const element = this.doctor_advices[index];
3516
-
3517
             if (temp_advice_length > index) {
3514
             if (temp_advice_length > index) {
3518
               doctor_advices_1.push(element);
3515
               doctor_advices_1.push(element);
3519
             } else {
3516
             } else {
3523
           this.doctor_advices = doctor_advices_1;
3520
           this.doctor_advices = doctor_advices_1;
3524
           this.doctor_advices_2 = doctor_advices_2;
3521
           this.doctor_advices_2 = doctor_advices_2;
3525
         }
3522
         }
3526
-        console.log("doctor_advice----------",this.doctor_advices)
3527
 
3523
 
3528
         this.patientInfo.name = this.nameSplit(this.patientInfo.name);
3524
         this.patientInfo.name = this.nameSplit(this.patientInfo.name);
3529
       } else {
3525
       } else {

+ 5 - 24
src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue View File

586
                         </td>
586
                         </td>
587
                         <td height="30px" colspan="2" class="advice-name" style="padding:4px 5px;">
587
                         <td height="30px" colspan="2" class="advice-name" style="padding:4px 5px;">
588
                           <span v-if="advice.parent_id > 0">---></span>
588
                           <span v-if="advice.parent_id > 0">---></span>
589
-                          
590
-                          <span v-if="advice.project&&advice.project.project_name">{{ advice.project.project_name }}</span>
591
-                          <span v-else>{{ advice.advice_name }}</span>
592
-                          <span v-if="advice.project&&advice.count">{{ advice.count }}{{ advice.unit }}</span>
589
+                          <span>{{ advice.advice_name }}</span>
593
                           <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
590
                           <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
594
                           <span v-if="advice.prescribing_number">&nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
591
                           <span v-if="advice.prescribing_number">&nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
595
-                          <span v-if="advice.single_dose != 0&&!advice.project">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
592
+                          <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
596
                           <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
593
                           <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
597
                           <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
594
                           <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
598
                           <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
595
                           <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
1401
           ].name
1398
           ].name
1402
           this.AlPanel = this.anticoagulantsConfit[thisALID]
1399
           this.AlPanel = this.anticoagulantsConfit[thisALID]
1403
         }
1400
         }
1404
-        // this.advices = response.data.data.projects
1401
+
1405
         this.advices = response.data.data.advices
1402
         this.advices = response.data.data.advices
1406
         console.log("医嘱数据2222222222",this.advices)
1403
         console.log("医嘱数据2222222222",this.advices)
1407
-        let doctorAdevieInfo = []
1408
-        let ad_arr = JSON.parse(JSON.stringify(response.data.data.projects))
1409
-        ad_arr.forEach(el => {
1410
-          if(el.project&&el.project.project_name!=""){
1411
-            doctorAdevieInfo.push(el)
1412
-          }
1413
-        });
1414
-        let ad_arr2= JSON.parse(JSON.stringify(response.data.data.advices))
1415
-        ad_arr2.forEach(el => {
1416
-          doctorAdevieInfo.push(el)
1417
-        });
1418
-        console.log(doctorAdevieInfo,'doctorAdevieInfo')
1419
-        // doctorAdevieInfo.push(JSON.parse(JSON.stringify(response.data.data.advices)))
1404
+
1405
+        var doctorAdevieInfo = JSON.parse(JSON.stringify(response.data.data.advices))
1420
         this.tableAdvice = doctorAdevieInfo;
1406
         this.tableAdvice = doctorAdevieInfo;
1421
-        // console.log(this.tableAdvice,'this.tableAdvice')
1422
-        // if(!this.tableAdvice[0].advice_name){
1423
-        //   console.log("不存在")
1424
-        // }
1425
         if (this.tableAdvice.length < 7) {
1407
         if (this.tableAdvice.length < 7) {
1426
           var nl = 6 - this.tableAdvice.length;
1408
           var nl = 6 - this.tableAdvice.length;
1427
           for (let index = 0; index < nl; index++) {
1409
           for (let index = 0; index < nl; index++) {
1542
           this.doctor_advices[index]['isShow'] = 2
1524
           this.doctor_advices[index]['isShow'] = 2
1543
         }
1525
         }
1544
 
1526
 
1545
-
1546
         // if (this.doctor_advices.length > 0) {
1527
         // if (this.doctor_advices.length > 0) {
1547
         //   var group = this.newAdviceGroupObject()
1528
         //   var group = this.newAdviceGroupObject()
1548
         //   var initGroupBlock = function(group, advice) {
1529
         //   var initGroupBlock = function(group, advice) {

+ 9 - 15
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyTwo.vue View File

872
             </td>
872
             </td>
873
           </tr>
873
           </tr>
874
 
874
 
875
-          <!-- <tr>
875
+          <tr>
876
             <td style="text-align: left" colspan="8">
876
             <td style="text-align: left" colspan="8">
877
               <span style="display: inline-block; margin-left: 15px"
877
               <span style="display: inline-block; margin-left: 15px"
878
                 >出血影响因素:</span
878
                 >出血影响因素:</span
925
               >其他:
925
               >其他:
926
               <span>{{ predialysis.hemorrhage_other }}</span>
926
               <span>{{ predialysis.hemorrhage_other }}</span>
927
             </td>
927
             </td>
928
-          </tr> -->
928
+          </tr>
929
         </table>
929
         </table>
930
 
930
 
931
         <table class="print-table" border="1" style="line-height: 30px">
931
         <table class="print-table" border="1" style="line-height: 30px">
959
               超滤率
959
               超滤率
960
               <br />ml/h
960
               <br />ml/h
961
             </td>
961
             </td>
962
-            <!-- <td style="min-width: 60px">
962
+            <td style="min-width: 60px">
963
               超滤量
963
               超滤量
964
               <br />ml
964
               <br />ml
965
-            </td> -->
965
+            </td>
966
             <td style="min-width: 60px">
966
             <td style="min-width: 60px">
967
               电导度
967
               电导度
968
               <br />
968
               <br />
990
             <td>{{ monitor.pulse_frequency }}</td>
990
             <td>{{ monitor.pulse_frequency }}</td>
991
             <td>{{ monitor.blood_flow_volume }}</td>
991
             <td>{{ monitor.blood_flow_volume }}</td>
992
             <td>{{ monitor.venous_pressure }}</td>
992
             <td>{{ monitor.venous_pressure }}</td>
993
-            <td>{{ monitor.arterial_pressure ? monitor.arterial_pressure : "" }}</td>
993
+            <td>
994
+              {{ monitor.arterial_pressure ? monitor.arterial_pressure : "" }}
995
+            </td>
994
             <td>{{ monitor.transmembrane_pressure }}</td>
996
             <td>{{ monitor.transmembrane_pressure }}</td>
995
             <td>{{ monitor.ultrafiltration_rate }}</td>
997
             <td>{{ monitor.ultrafiltration_rate }}</td>
996
-            <!-- <td>{{ monitor.ultrafiltration_volume }}</td> -->
998
+            <td>{{ monitor.ultrafiltration_volume }}</td>
997
             <td>{{ monitor.conductivity ? monitor.conductivity : "" }}</td>
999
             <td>{{ monitor.conductivity ? monitor.conductivity : "" }}</td>
998
             <td>
1000
             <td>
999
               <span style="line-height: 18px; display: block">
1001
               <span style="line-height: 18px; display: block">
1084
                   :isChecked="afterdialysis.cruor.indexOf('透析器-3级') > -1"
1086
                   :isChecked="afterdialysis.cruor.indexOf('透析器-3级') > -1"
1085
                 ></label-box
1087
                 ></label-box
1086
                 >&nbsp;&nbsp;
1088
                 >&nbsp;&nbsp;
1087
-                <label-box
1088
-                  showValue="无"
1089
-                  :isChecked="afterdialysis.cruor.indexOf('透析器-0度') <= 0&&
1090
-                  afterdialysis.cruor.indexOf('透析器-Ⅲ度') <= 0&&
1091
-                  afterdialysis.cruor.indexOf('透析器-Ⅰ度') <= 0&&
1092
-                  afterdialysis.cruor.indexOf('透析器-Ⅱ度') <= 0"
1093
-                ></label-box
1094
-                >
1095
-                <!-- {{ getCruor(afterdialysis.cruor) }} -->
1089
+                {{ getCruor(afterdialysis.cruor) }}
1096
               </span>
1090
               </span>
1097
             </td>
1091
             </td>
1098
           </tr>
1092
           </tr>

+ 1 - 0
src/xt_pages/hospitalStation/invoicePrint.vue View File

46
 export default {
46
 export default {
47
   name: "invoicePrint",
47
   name: "invoicePrint",
48
   components: {
48
   components: {
49
+    PrintNight,
49
     printOne,
50
     printOne,
50
     printTwo,
51
     printTwo,
51
     printThree,
52
     printThree,

+ 5 - 124
src/xt_pages/hospitalStation/outpatientChargesManagement.vue View File

92
 
92
 
93
           <div>
93
           <div>
94
             <div>入院时间:{{this.hisPatientInfo&&this.hisPatientInfo.in_hosptial_time?this.hisPatientInfo.in_hosptial_time:""}}</div>
94
             <div>入院时间:{{this.hisPatientInfo&&this.hisPatientInfo.in_hosptial_time?this.hisPatientInfo.in_hosptial_time:""}}</div>
95
-            <el-button
96
-              size="small"
97
-              @click="exportUnchargeData"
98
-              type="primary">导出未收费数据</el-button>
99
-
100
-<!--            -->
101
-<!--            <el-button  size="small"-->
102
-<!--                       @click="open(1)"-->
103
-<!--                       type="primary">入院登记-->
104
-<!--            </el-button>-->
95
+            <el-button  size="small"
96
+                       @click="open(1)"
97
+                       type="primary">入院登记
98
+            </el-button>
105
 
99
 
106
             <el-button v-loading="loadingone" size="small"
100
             <el-button v-loading="loadingone" size="small"
107
                        v-if="(this.activeName == 'third' &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
101
                        v-if="(this.activeName == 'third' &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
280
                 <el-button type="primary" @click="comfirmTime">确 定</el-button>
274
                 <el-button type="primary" @click="comfirmTime">确 定</el-button>
281
              </span>
275
              </span>
282
     </el-dialog>
276
     </el-dialog>
283
-
284
-    <el-dialog
285
-      title="导出时间"
286
-      :visible.sync="dialogExportVisible"
287
-      width="30%"
288
-    >
289
-      <el-date-picker v-model="export_start_time" type="datetime" format="yyyy-MM-dd"
290
-                      value-format="yyyy-MM-dd"
291
-                      placeholder="请选择导出开始时间">
292
-      </el-date-picker>
293
-
294
-      <el-date-picker v-model="export_end_time" type="datetime" format="yyyy-MM-dd"
295
-                      value-format="yyyy-MM-dd"
296
-                      placeholder="请选择导出结束时间">
297
-      </el-date-picker>
298
-
299
-      <span slot="footer" class="dialog-footer">
300
-                <el-button @click="dialogExportVisible = false">取 消</el-button>
301
-                <el-button type="primary" @click="comfirmExportTime">确 定</el-button>
302
-             </span>
303
-    </el-dialog>
304
-
305
   </div>
277
   </div>
306
 
278
 
307
 </template>
279
 </template>
327
   Outhopitaluncheck,
299
   Outhopitaluncheck,
328
   Settle
300
   Settle
329
 } from '@/api/his/his'
301
 } from '@/api/his/his'
330
-
331
-import {
332
-  exportData
333
-} from '@/api/his/his_hospital'
334
-
335
-
336
 import { uParseTime } from '@/utils/tools'
302
 import { uParseTime } from '@/utils/tools'
337
 
303
 
338
 import RegisterDialog from './components/registerDialog'
304
 import RegisterDialog from './components/registerDialog'
468
       department: [],
434
       department: [],
469
       invoiceVisible: false,
435
       invoiceVisible: false,
470
       invoiceParams: {},
436
       invoiceParams: {},
471
-      out_hospital_time: moment(new Date()).add('year',0).format("YYYY-MM-DD HH:mm:ss"),
472
-      dialogExportVisible:false,
473
-      export_start_time: moment(new Date()).add('year',0).format("YYYY-MM-DD"),
474
-      export_end_time: moment(new Date()).add('year',0).format("YYYY-MM-DD"),
437
+      out_hospital_time: moment(new Date()).add('year',0).format("YYYY-MM-DD HH:mm:ss")
475
 
438
 
476
     }
439
     }
477
   },
440
   },
494
     this.getPatientList()
457
     this.getPatientList()
495
   },
458
   },
496
   methods: {
459
   methods: {
497
-    comfirmExportTime(){
498
-      let params = {
499
-        'patient_id': this.patientInfo.id,
500
-        'start_time': this.export_start_time,
501
-        'end_time': this.export_end_time,
502
-      }
503
-      exportData(params).then(response => {
504
-        if (response.data.state == 0) {
505
-          this.$message.error(response.data.msg)
506
-          this.dialogExportVisible = false
507
-          return false
508
-        } else {
509
-          this.dialogExportVisible = false
510
-          var prescriptions = response.data.data.month_prescriptions
511
-          var patient_ids = this.unique_patient(prescriptions)
512
-          let list=  []
513
-          for(var i = 0;i < patient_ids.length; i++){
514
-            let obj = {}
515
-            let total = 0
516
-            obj["患者姓名"] = patient_ids[i].patient.name
517
-            for(let b = 0; b < prescriptions.length; b++){
518
-              if(patient_ids[i].patient_id == prescriptions[b].patient_id){
519
-                if (prescriptions[b].type == 1) {
520
-                  if (prescriptions[b].advices != null) {
521
-                    console.log("~~~~~~~~~~~~~~~~~1111")
522
-
523
-                    for (let a = 0; a < prescriptions[b].advices.length; a++) {
524
-                      total = total + parseFloat(prescriptions[b].advices[a].price * prescriptions[b].advices[a].prescribing_number)
525
-                    }
526
-                  }
527
-                } else {
528
-                  if (prescriptions[b].project != null) {
529
-                    console.log("~~~~~~~~~~~~~~~~~22222")
530
-                    for (let c = 0; c < prescriptions[b].project.length; c++) {
531
-                      total = total + parseFloat(prescriptions[b].project[c].price  * prescriptions[b].project[c].count)
532
-                    }
533
-                  }
534
-                }
535
-              }
536
-            }
537
-            obj["总金额"] = total.toFixed(2)
538
-            list.push(obj)
539
-          }
540
-          import("@/vendor/Export2Excel").then((excel) => {
541
-            const tHeader = [
542
-              "患者姓名",
543
-              "总金额"
544
-            ];
545
-            const filterVal = [
546
-              "患者姓名",
547
-              "总金额"
548
-            ];
549
-            const data = this.formatJson(filterVal, list);
550
-            excel.export_json_to_excel({
551
-              header: tHeader,
552
-              data,
553
-              filename: "消费明细",
554
-            });
555
-          });
556
-        }
557
-      })
558
-    },
559
     comfirmTime() {
460
     comfirmTime() {
560
       var that = this
461
       var that = this
561
       let params = {
462
       let params = {
1387
     },
1288
     },
1388
     formatJson(filterVal, jsonData) {
1289
     formatJson(filterVal, jsonData) {
1389
       return jsonData.map(v => filterVal.map(j => v[j]))
1290
       return jsonData.map(v => filterVal.map(j => v[j]))
1390
-    },exportUnchargeData(){
1391
-
1392
-      this.dialogExportVisible = true
1393
-
1394
     },
1291
     },
1395
     open(index) {
1292
     open(index) {
1396
       if (index == 1){
1293
       if (index == 1){
2974
       this.curSettlePrescriptions = this.settle_prescriptions[0]
2871
       this.curSettlePrescriptions = this.settle_prescriptions[0]
2975
 
2872
 
2976
     },
2873
     },
2977
-    unique_patient(array) {
2978
-      // res用来存储结果
2979
-      var res = []
2980
-      for (var i = 0, arrayLen = array.length; i < arrayLen; i++) {
2981
-        for (var j = 0, resLen = res.length; j < resLen; j++) {
2982
-          if (array[i].patient_id === res[j].patient_id) {
2983
-            break
2984
-          }
2985
-        }
2986
-        // 如果array[i]是唯一的,那么执行完循环,j等于resLen
2987
-        if (j === resLen) {
2988
-          res.push(array[i])
2989
-        }
2990
-      }
2991
-      return res
2992
-    },
2993
     unique_two(array) {
2874
     unique_two(array) {
2994
       // res用来存储结果
2875
       // res用来存储结果
2995
       var res = []
2876
       var res = []

+ 9 - 9
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

83
 
83
 
84
         <div class="mainCell fixedCell" style="margin-bottom:10px;">
84
         <div class="mainCell fixedCell" style="margin-bottom:10px;">
85
 
85
 
86
-<!--          <div v-if="org_id == 10340 || org_id == 0">-->
87
-<!--                        <el-button  size="small"-->
88
-<!--                                   @click="openZb(4)"-->
89
-<!--                                   v-if=" this.order.id == 0"-->
90
-<!--                          type="primary">记账-->
91
-<!--                        </el-button>-->
92
-<!--          </div>-->
93
-
94
-          <div  v-if="org_id != 10340">
86
+          <div v-if="org_id == 10340 || org_id == 0">
87
+                        <el-button  size="small"
88
+                                   @click="openZb(4)"
89
+                                   v-if=" this.order.id == 0"
90
+                          type="primary">记账
91
+                        </el-button>
92
+          </div>
93
+
94
+          <div  v-if="org_id != 10340 && org_id != 0">
95
 <!--            <el-button size="small"-->
95
 <!--            <el-button size="small"-->
96
 <!--                       @click="openZb(1)"-->
96
 <!--                       @click="openZb(1)"-->
97
 <!--                       type="primary">登记-->
97
 <!--                       type="primary">登记-->

+ 6 - 6
src/xt_pages/outpatientCharges/statementPrint.vue View File

42
       <!--      <print-other :info="info" v-if="org_id == 9919"></print-other>-->
42
       <!--      <print-other :info="info" v-if="org_id == 9919"></print-other>-->
43
       <!--      <printOne :info=" info" v-if="org_id == 10215 && this.paramsObj.balance_accounts_type == 2"></printOne>-->
43
       <!--      <printOne :info=" info" v-if="org_id == 10215 && this.paramsObj.balance_accounts_type == 2"></printOne>-->
44
       <printFive
44
       <printFive
45
-          v-if="org_id == 0"
45
+          v-if="org_id == 0  || org_id == 10191"
46
           :info="info"
46
           :info="info"
47
           :paramsObj="paramsObj"
47
           :paramsObj="paramsObj"
48
           :balanceAccounts="balanceAccounts"
48
           :balanceAccounts="balanceAccounts"
55
          :balanceAccounts="balanceAccounts"
55
          :balanceAccounts="balanceAccounts"
56
      >
56
      >
57
      </printSeven>
57
      </printSeven>
58
-   <printOne :info="info" :paramsObj="paramsObj" v-else></printOne>
58
+   <printOne :info="info" v-else></printOne>
59
 <!--      <printOne :info="info" v-if="org_id != 9990 &&-->
59
 <!--      <printOne :info="info" v-if="org_id != 9990 &&-->
60
 <!--          org_id != 10138 &&-->
60
 <!--          org_id != 10138 &&-->
61
 <!--          org_id != 9504 &&-->
61
 <!--          org_id != 9504 &&-->
271
             scanStyles: false,
271
             scanStyles: false,
272
           });
272
           });
273
         } else if (
273
         } else if (
274
-            this.$store.getters.xt_user.org_id == 0
275
-
274
+            this.$store.getters.xt_user.org_id == 0 ||
275
+            this.$store.getters.xt_user.org_id == 10191
276
         ) {
276
         ) {
277
           const style =
277
           const style =
278
               "@media print {.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 14px;border-color: #000;} .statementTable thead{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;} .statementTable tbody{text-align:left;} .statementTable tbody .view_tr{text-align:center;border: 1px solid;} tbody .dashed_tr{border: 1px dashed;text-align:center} .list_table{width: 100%;margin-bottom: 100px;} tbody tr td div{height:25px;}}";
278
               "@media print {.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 14px;border-color: #000;} .statementTable thead{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;} .statementTable tbody{text-align:left;} .statementTable tbody .view_tr{text-align:center;border: 1px solid;} tbody .dashed_tr{border: 1px dashed;text-align:center} .list_table{width: 100%;margin-bottom: 100px;} tbody tr td div{height:25px;}}";
386
       // console.log(json, "json");
386
       // console.log(json, "json");
387
       // this.info = json.data.info
387
       // this.info = json.data.info
388
       //
388
       //
389
-      if (obj.balance_accounts_type == 2) {
389
+      if (obj.balance_accounts_type == 2 ) {
390
         let params = {
390
         let params = {
391
           his_patient_id: obj.his_patient_id,
391
           his_patient_id: obj.his_patient_id,
392
           id: obj.order_id,
392
           id: obj.order_id,
828
         }
828
         }
829
 
829
 
830
       } else {
830
       } else {
831
-        if (this.$store.getters.xt_user.org_id == 10191) {
831
+        if (this.org_id == 10191 || this.org_id == 0) {
832
           let params = {
832
           let params = {
833
             his_patient_id: obj.his_patient_id,
833
             his_patient_id: obj.his_patient_id,
834
             id: obj.order_id,
834
             id: obj.order_id,

+ 121 - 18
src/xt_pages/outpatientCharges/summary.vue View File

109
           </el-button
109
           </el-button
110
           >
110
           >
111
           <el-button v-if="$store.getters.xt_user.org_id == 10106 || $store.getters.xt_user.org_id == 0" size="small" type="primary" @click="export_detail_ten">报表下载2</el-button>
111
           <el-button v-if="$store.getters.xt_user.org_id == 10106 || $store.getters.xt_user.org_id == 0" size="small" type="primary" @click="export_detail_ten">报表下载2</el-button>
112
+          <el-button v-if="$store.getters.xt_user.org_id == 10318 || $store.getters.xt_user.org_id == 0" size="small" type="primary" @click="export_detail_ten_two">报表下载3</el-button>
112
 
113
 
113
           <!--          <el-button size="small" type="primary" @click="export_detail_two"-->
114
           <!--          <el-button size="small" type="primary" @click="export_detail_two"-->
114
           <!--          >报表下载2-->
115
           <!--          >报表下载2-->
118
           <!--                    <el-button size="small" type="primary" @click="export_detail_three">报表下载2</el-button>-->
119
           <!--                    <el-button size="small" type="primary" @click="export_detail_three">报表下载2</el-button>-->
119
           <!--          <el-button size="small" type="primary" @click="export_detail_four">报表下载3</el-button>-->
120
           <!--          <el-button size="small" type="primary" @click="export_detail_four">报表下载3</el-button>-->
120
           <!--          <el-button size="small" type="primary" @click="export_detail_five">报表下载3</el-button>-->
121
           <!--          <el-button size="small" type="primary" @click="export_detail_five">报表下载3</el-button>-->
121
-          <!--          <el-button size="small" type="primary" @click="export_detail_six">报表下载9</el-button>-->
122
+<!--                    <el-button size="small" type="primary" @click="export_detail_six">报表下载9</el-button>-->
122
           <!--          <el-button size="small" type="primary" @click="export_detail_seven">报表下载4</el-button>-->
123
           <!--          <el-button size="small" type="primary" @click="export_detail_seven">报表下载4</el-button>-->
123
 
124
 
124
 
125
 
355
 
356
 
356
 import {getHisDataFive, getHisDataSix, getHisDataThree, getHisDataTwo,getAllOrders} from "../../api/his/his";
357
 import {getHisDataFive, getHisDataSix, getHisDataThree, getHisDataTwo,getAllOrders} from "../../api/his/his";
357
 
358
 
358
-import {handleData10106} from "../../api/his/his_export";
359
+import {handleData10106,handleData10318} from "../../api/his/his_export";
359
 
360
 
360
 export default {
361
 export default {
361
   name: "OutpatientChargesSummary",
362
   name: "OutpatientChargesSummary",
1220
           var tarList = []
1221
           var tarList = []
1221
           for (let i = 0; i < list.length; i++) {
1222
           for (let i = 0; i < list.length; i++) {
1222
             let obj = {
1223
             let obj = {
1223
-              "周期": "2022年第季度",
1224
+              "周期": "2022年第季度",
1224
               "类别": "门诊",
1225
               "类别": "门诊",
1225
               "医保目录编码": list[i].code,
1226
               "医保目录编码": list[i].code,
1226
               "医保目录名称": list[i].name,
1227
               "医保目录名称": list[i].name,
1631
       });
1632
       });
1632
 
1633
 
1633
     },
1634
     },
1635
+    export_detail_ten_two(){
1636
+      let params = {
1637
+        start_time:this.start_time,
1638
+        end_time:this.end_time
1639
+      };
1640
+      handleData10318(params).then((response) => {
1641
+        if (response.data.state == 0) {
1642
+          this.$message.error(response.data.msg);
1643
+          return false;
1644
+        } else {
1645
+          let list = [];
1646
+          for (let i = 0; i < response.data.data.order.length; i++) {
1647
+            let order = response.data.data.order[i];
1648
+
1649
+
1650
+            let obj = {
1651
+              姓名: order.patient.name,
1652
+              身份证: order.patient.id_card_no,
1653
+              西药费:0,
1654
+              化验费:0,
1655
+              检查费:0,
1656
+              治疗费:0,
1657
+              材料费:0,
1658
+              中成药费:0,
1659
+              备注: "就诊日期:" + this.getTimes(order.settle_accounts_date) + " 医保报销: "+order.fund_pay_sumamt + " 现金:"+order.psn_cash_pay,
1660
+            }
1661
+            let xiyaoPrice = 0
1662
+            let huaYanPrice = 0
1663
+            let jianChaPrice = 0
1664
+            let zhiLiaoPrice = 0
1665
+            let cailiaoPrice = 0
1666
+            let zhongchengyaoPrice = 0
1667
+
1668
+              for (let b = 0; b < order.info.length; b++) {
1669
+                if(order.info[b].med_chrgitm_type ==  '09'){
1670
+                  xiyaoPrice = xiyaoPrice + order.info[b].det_item_fee_sumamt
1671
+                }
1672
+                if(order.info[b].med_chrgitm_type ==  '04'){
1673
+                  huaYanPrice = huaYanPrice + order.info[b].det_item_fee_sumamt
1674
+                }
1675
+                if(order.info[b].med_chrgitm_type ==  '03'){
1676
+                  jianChaPrice = jianChaPrice + order.info[b].det_item_fee_sumamt
1677
+                }
1678
+                if(order.info[b].med_chrgitm_type ==  '05'){
1679
+                  zhiLiaoPrice = zhiLiaoPrice + order.info[b].det_item_fee_sumamt
1680
+                }
1681
+                if(order.info[b].med_chrgitm_type ==  '08'){
1682
+                  cailiaoPrice = cailiaoPrice + order.info[b].det_item_fee_sumamt
1683
+                }
1684
+                if(order.info[b].med_chrgitm_type ==  '11'){
1685
+                  zhongchengyaoPrice = zhongchengyaoPrice + order.info[b].det_item_fee_sumamt
1686
+                }
1687
+              }
1688
+            obj.西药费 = xiyaoPrice
1689
+            obj.化验费 = huaYanPrice
1690
+            obj.检查费 = jianChaPrice
1691
+            obj.治疗费 = zhiLiaoPrice
1692
+            obj.材料费 = cailiaoPrice
1693
+            obj.中成药费 = zhongchengyaoPrice
1634
 
1694
 
1695
+
1696
+            list.push(obj)
1697
+          }
1698
+
1699
+          import("@/vendor/Export2Excel").then((excel) => {
1700
+            const tHeader = [
1701
+              "姓名",
1702
+              "身份证",
1703
+              "西药费",
1704
+              "化验费",
1705
+              "检查费",
1706
+              "治疗费",
1707
+              "材料费",
1708
+              "中成药费",
1709
+              "备注",
1710
+            ];
1711
+            const filterVal = [
1712
+              "姓名",
1713
+              "身份证",
1714
+              "西药费",
1715
+              "化验费",
1716
+              "检查费",
1717
+              "治疗费",
1718
+              "材料费",
1719
+              "中成药费",
1720
+              "备注",
1721
+            ];
1722
+            const data = this.formatJson(filterVal, list);
1723
+            excel.export_json_to_excel({
1724
+              header: tHeader,
1725
+              data,
1726
+              filename: "消费明细",
1727
+            });
1728
+          });
1729
+
1730
+
1731
+        }
1732
+      });
1733
+
1734
+
1735
+    },
1635
     GetGoodName(id) {
1736
     GetGoodName(id) {
1636
       switch (id) {
1737
       switch (id) {
1637
         case 254:
1738
         case 254:
1824
 
1925
 
1825
             } else if (order.his_patient.insuplc_admdvs == "440704"){
1926
             } else if (order.his_patient.insuplc_admdvs == "440704"){
1826
 
1927
 
1827
-              insuplc_admdvs_name = "江区"
1928
+              insuplc_admdvs_name = "江区"
1828
 
1929
 
1829
 
1930
 
1830
             } else if (order.his_patient.insuplc_admdvs == "440705"){
1931
             } else if (order.his_patient.insuplc_admdvs == "440705"){
1831
 
1932
 
1832
-              insuplc_admdvs_name = "新会区"
1933
+              insuplc_admdvs_name = "蓬江区"
1833
 
1934
 
1834
 
1935
 
1835
             }else if (order.his_patient.insuplc_admdvs == "440781"){
1936
             }else if (order.his_patient.insuplc_admdvs == "440781"){
1836
 
1937
 
1837
-              insuplc_admdvs_name = "台山市"
1938
+              insuplc_admdvs_name = "蓬江区"
1939
+
1838
 
1940
 
1839
             }else if (order.his_patient.insuplc_admdvs == "440783"){
1941
             }else if (order.his_patient.insuplc_admdvs == "440783"){
1840
-              insuplc_admdvs_name = "开平市"
1942
+
1943
+              insuplc_admdvs_name = "蓬江区"
1944
+
1841
 
1945
 
1842
             }else if (order.his_patient.insuplc_admdvs == "440784"){
1946
             }else if (order.his_patient.insuplc_admdvs == "440784"){
1843
-              insuplc_admdvs_name = "鹤山市"
1947
+
1948
+
1844
 
1949
 
1845
             }else if (order.his_patient.insuplc_admdvs == "440785"){
1950
             }else if (order.his_patient.insuplc_admdvs == "440785"){
1846
-              insuplc_admdvs_name = "恩平市"
1951
+
1952
+
1847
 
1953
 
1848
             }else if (order.his_patient.insuplc_admdvs == "440799"){
1954
             }else if (order.his_patient.insuplc_admdvs == "440799"){
1849
-              insuplc_admdvs_name = "市直"
1955
+
1956
+
1957
+
1850
             }
1958
             }
1851
 
1959
 
1960
+
1961
+
1852
             let obj = {
1962
             let obj = {
1853
               就诊号: order.mdtrt_id,
1963
               就诊号: order.mdtrt_id,
1854
               患者姓名: name,
1964
               患者姓名: name,
1855
               开处时间: time,
1965
               开处时间: time,
1856
               险种类型: insutypeName,
1966
               险种类型: insutypeName,
1857
               参保所属医保区划: order.his_patient.insuplc_admdvs,
1967
               参保所属医保区划: order.his_patient.insuplc_admdvs,
1858
-              参保号:order.his_patient.id_card_no,
1859
-              属地名称: insuplc_admdvs_name,
1968
+              属地名称: order.his_patient.insuplc_admdvs,
1860
               应收金额: order.medfee_sumamt,
1969
               应收金额: order.medfee_sumamt,
1861
               实收金额: order.medfee_sumamt,
1970
               实收金额: order.medfee_sumamt,
1862
               医保统筹金额: order.hifp_pay,
1971
               医保统筹金额: order.hifp_pay,
1890
               "患者姓名",
1999
               "患者姓名",
1891
               "开处时间",
2000
               "开处时间",
1892
               "险种类型",
2001
               "险种类型",
1893
-              "参保所属医保区划",
1894
-              "参保号",
1895
-             "属地名称",
1896
               "应收金额",
2002
               "应收金额",
1897
               "实收金额",
2003
               "实收金额",
1898
               "医保统筹金额",
2004
               "医保统筹金额",
1922
               "患者姓名",
2028
               "患者姓名",
1923
               "开处时间",
2029
               "开处时间",
1924
               "险种类型",
2030
               "险种类型",
1925
-              "参保所属医保区划",
1926
-              "参保号",
1927
-              "属地名称",
1928
               "应收金额",
2031
               "应收金额",
1929
               "实收金额",
2032
               "实收金额",
1930
               "医保统筹金额",
2033
               "医保统筹金额",

+ 1 - 4
src/xt_pages/outpatientDoctorStation/checkPrint.vue View File

13
       </template> -->
13
       </template> -->
14
 
14
 
15
       <div class='dialysisPage' style="padding-top:40px;">
15
       <div class='dialysisPage' style="padding-top:40px;">
16
-        <printOne v-if="$store.getters.xt_user.org_id != 0 && $store.getters.xt_user.org_id != 10402" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printOne>
17
-        <check-print-two v-else :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></check-print-two>
16
+        <printOne :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printOne>
18
       </div>
17
       </div>
19
   </div>
18
   </div>
20
 </template>
19
 </template>
26
 import print from "print-js";
25
 import print from "print-js";
27
 import printOne from "./checkTemplate/printOne"
26
 import printOne from "./checkTemplate/printOne"
28
 import { getAllDoctorList,getAllHisPatientList } from "@/api/project/project"
27
 import { getAllDoctorList,getAllHisPatientList } from "@/api/project/project"
29
-import CheckPrintTwo from "./checkTemplate/checkPrintTwo";
30
 export default {
28
 export default {
31
   name: "dialysisPrintOrder",
29
   name: "dialysisPrintOrder",
32
   components: {
30
   components: {
33
-    CheckPrintTwo,
34
     BreadCrumb,
31
     BreadCrumb,
35
     printOne,
32
     printOne,
36
   },
33
   },

+ 0 - 616
src/xt_pages/outpatientDoctorStation/checkTemplate/checkPrintTwo.vue View File

1
-<template>
2
-  <div>
3
-    <div id="prescription-print3" class="prescription-print">
4
-
5
-      <div class="printTitle">检验申请单</div>
6
-
7
-      <div style="border: 1px solid #000">
8
-        <div
9
-          style="
10
-            display: flex;
11
-            justify-content: space-between;
12
-            border-bottom: 1px solid #000;
13
-            line-height: 40px;
14
-            padding: 0 10px;
15
-          "
16
-        >
17
-          <div>是否急诊:否</div>
18
-          <div>
19
-            结算方式:{{
20
-              faber && faber.transBody
21
-                ? getName(faber.transBody.outputlist1)
22
-                : ""
23
-            }}
24
-          </div>
25
-          <div>金额:{{ total }}</div>
26
-        </div>
27
-        <div
28
-          style="
29
-            display: flex;
30
-            justify-content: space-between;
31
-            border-bottom: 1px solid #000;
32
-            line-height: 40px;
33
-            padding: 0 10px;
34
-          "
35
-        >
36
-          <div>
37
-            姓名:{{
38
-              advicePrint[0].patient.name
39
-                ? advicePrint[0].patient.name.indexOf("(") > -1
40
-                ? advicePrint[0].patient.name.substring(
41
-                  0,
42
-                  advicePrint[0].patient.name.indexOf("(")
43
-                )
44
-                : advicePrint[0].patient.name
45
-                : ""
46
-            }}
47
-          </div>
48
-          <div>
49
-            性别:
50
-            <span v-if="advicePrint[0].patient.gender == 1">男</span>
51
-            <span v-if="advicePrint[0].patient.gender == 2">女</span>
52
-          </div>
53
-          <div>
54
-            年龄:{{
55
-              advicePrint[0].patient.age ? advicePrint[0].patient.age : ""
56
-            }}岁
57
-          </div>
58
-        </div>
59
-        <div style="margin-bottom: 20px; padding: 10px 10px 0">
60
-          病史摘要:{{
61
-            history.history_of_present_illness
62
-              ? history.history_of_present_illness
63
-              : ""
64
-          }}
65
-        </div>
66
-        <!-- <div style="margin-bottom:20px;padding:0 10px;">体格检查:
67
-                    <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
68
-                    <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
69
-                    <span>呼吸:{{ history.breathing ? history.breathing + '次/分' : '/' }}</span>
70
-                    <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
71
-                </div> -->
72
-        <div style="margin-bottom: 20px; padding: 0 10px">
73
-          临床诊断:{{ getDiagnosis(advicePrint[0].info.diagnosis) }}
74
-        </div>
75
-        <div style="display: flex; margin-bottom: 20px; padding: 0 10px">
76
-          <div>检验项目:</div>
77
-          <div>
78
-            <div v-for="item in projectPrint" style="margin-bottom: 10px">
79
-              {{ item.project.project_name }}
80
-            </div>
81
-            <!--            <div v-for="item in singleProjectPrint" style="margin-bottom: 10px">-->
82
-            <!--              {{ item.project.project_name }}-->
83
-            <!--            </div>-->
84
-          </div>
85
-        </div>
86
-        <div
87
-          style="
88
-            display: flex;
89
-            justify-content: space-between;
90
-            border-top: 1px solid #000;
91
-            line-height: 40px;
92
-            padding: 0 10px;
93
-          "
94
-        >
95
-          <div>开单医生:{{ doctor ? doctor : "" }}</div>
96
-          <div>
97
-            开单日期:
98
-            {{ getTime(pre_time) ? getTime(pre_time).split(" ")[0] : "" }}
99
-          </div>
100
-          <div>
101
-            医生签字:
102
-
103
-            <img
104
-              v-if="setAdminUserES(advicePrint[0].creator)"
105
-              style="height: 30px"
106
-              :src="setAdminUserES(advicePrint[0].creator)"
107
-              alt=""
108
-              srcset=""
109
-            />
110
-            <span
111
-              style="width: 100px; display: inline-block"
112
-              v-else-if="advicePrint[0].doctor != ''"
113
-            >
114
-              {{ advicePrint[0].doctor ? advicePrint[0].doctor : "" }}
115
-            </span>
116
-            <span v-else>
117
-
118
-            </span>
119
-          </div>
120
-        </div>
121
-      </div>
122
-    </div>
123
-
124
-  </div>
125
-</template>
126
-<script>
127
-import { jsGetAge, uParseTime } from "@/utils/tools";
128
-import {
129
-  getAllDoctorList,
130
-  getPrescriptionPrint,
131
-  getHisPatientDetail,
132
-  getPatientCaseHistory,
133
-} from "@/api/project/project";
134
-import { getInitData } from "@/api/his/his";
135
-export default {
136
-  props: {
137
-    patient_id: Number,
138
-    record_date: String,
139
-    prescription_id: Number,
140
-    ids: String,
141
-  },
142
-  data() {
143
-    return {
144
-      doctorList_1: [],
145
-      doctorList: [],
146
-      advicePrint: {},
147
-      patient: {},
148
-      tableData: [],
149
-      prescriptionInfo: [],
150
-      hisPatient: {},
151
-      department: [],
152
-      prescriptions: [],
153
-      projectList: [],
154
-      doc_name: "",
155
-      orgname: "",
156
-      diagnoses: [],
157
-      pageArr: [],
158
-      faber: {},
159
-      total: 0,
160
-      projectPrint: [],
161
-      time: "",
162
-      doctor: "",
163
-      org_id: "",
164
-      singleProjectPrint: [],
165
-      operatorMaps: {},
166
-    };
167
-  },
168
-  methods: {
169
-    getPatientCaseHistory() {
170
-      const params = {
171
-        patient_id: this.patient_id,
172
-      };
173
-      getPatientCaseHistory(params).then((response) => {
174
-        if (response.data.state == 1) {
175
-          var history = response.data.data.history;
176
-          // console.log("中国history222222", history);
177
-          this.history = history;
178
-        }
179
-      });
180
-    },
181
-    getAllDoctorList() {
182
-      getAllDoctorList().then((response) => {
183
-        if (response.data.state == 1) {
184
-          var doctor = response.data.data.doctor;
185
-
186
-          this.doctorList = doctor;
187
-        }
188
-      });
189
-    },
190
-
191
-    getDoctor(id) {
192
-      var name = "";
193
-      for (let i = 0; i < this.doctorList.length; i++) {
194
-        if (id == this.doctorList[i].admin_user_id) {
195
-          name = this.doctorList[i].user_name;
196
-        }
197
-      }
198
-      return name;
199
-    },
200
-    getTime(value, temp) {
201
-      if (value != undefined) {
202
-        return uParseTime(value, temp);
203
-      }
204
-      return "";
205
-    },
206
-
207
-    getPrescriptionPrint() {
208
-      var params = {
209
-        // patient_id:this.patient_id,
210
-        // record_date:this.record_date,
211
-        // prescription_id:this.prescription_id,
212
-        patient_id: this.patient_id,
213
-        record_date: this.record_date,
214
-        prescription_id: this.prescription_id,
215
-        ids: this.ids,
216
-        p_type: 2,
217
-      };
218
-      // console.log("params", params);
219
-      getPrescriptionPrint(params).then((response) => {
220
-        if (response.data.state == 1) {
221
-          var advicePrint = response.data.data.advicePrint;
222
-          // console.log("adviceprint9999", advicePrint);
223
-          this.advicePrint = advicePrint;
224
-          this.prescriptions = advicePrint;
225
-          // console.log("处方222222", this.prescriptions);
226
-          var hisPatient = response.data.data.hisPatient;
227
-          // console.log("hisPatient", hisPatient);
228
-          this.hisPatient = hisPatient;
229
-          let projectPrint = [];
230
-          let total = 0;
231
-          this.advicePrint.map((item) => {
232
-            // console.log("imte233232323232323223", item.project);
233
-            if (item.project.length > 0) {
234
-              item.project.map((it) => {
235
-                if (it.type == 2) {
236
-                  if (it.project.cost_classify == 3) {
237
-                    projectPrint.push(it);
238
-                    total += it.project.price * parseInt(it.count);
239
-                  }
240
-                }
241
-              });
242
-            }
243
-          });
244
-          this.doctorList_1 = response.data.data.eles;
245
-          // console.log(this.doctorList_1, "医生列表");
246
-          if (this.doctorList_1.length > 0) {
247
-            var operatorsLen = this.doctorList_1.length;
248
-            for (var index = 0; index < operatorsLen; index++) {
249
-              this.$set(
250
-                this.operatorMaps,
251
-                this.doctorList_1[index].creator,
252
-                this.doctorList_1[index]
253
-              );
254
-            }
255
-          }
256
-          let data2 = [];
257
-          projectPrint.map((item) => {
258
-            data2.push(item);
259
-          });
260
-          this.projectPrint = data2;
261
-          console.log("列表", this.projectPrint);
262
-          this.total = total.toFixed(2);
263
-          this.pre_time = this.advicePrint[0].pre_time;
264
-          this.doctor = this.advicePrint[0].doctor;
265
-
266
-          var projectlist = response.data.data.projectlist;
267
-
268
-          var projectlist = response.data.data.projectlist;
269
-          // console.log("所有项目列表", projectlist);
270
-          this.projectList = projectlist;
271
-          this.getPage();
272
-          let outputlist1Name = response.data.data.his.patient_info
273
-            ? JSON.parse(response.data.data.his.patient_info)
274
-            : {};
275
-          this.faber = outputlist1Name;
276
-        }
277
-      });
278
-    },
279
-    // 电子签名
280
-    setAdminUserES(id) {
281
-      // console.log(id, "id");
282
-      if (id == 0) {
283
-        return "";
284
-      }
285
-      if (id in this.operatorMaps) {
286
-        // console.log(this.operatorMaps, "this.operatorMaps");
287
-        return this.operatorMaps[id].url;
288
-      } else {
289
-        // console.log("po");
290
-        return "";
291
-      }
292
-    },
293
-    getHisPatientDetail() {
294
-      const params = {
295
-        patient_id: this.patient_id,
296
-      };
297
-      getHisPatientDetail(params).then((response) => {
298
-        if (response.data.state == 1) {
299
-          var hisPatient = response.data.data.hisPatient;
300
-          // console.log("挂号病人", hisPatient);
301
-          this.hisPatient = hisPatient;
302
-        }
303
-      });
304
-    },
305
-    getInitData() {
306
-      getInitData().then((response) => {
307
-        if (response.data.state == 1) {
308
-          this.department = response.data.data.department;
309
-          this.diagnoses = response.data.data.diagnose.sort(this.compare("id"));
310
-          // console.log("争端", this.diagnoses);
311
-        }
312
-      });
313
-    },
314
-    getDepart(id) {
315
-      var name = "";
316
-      for (let i = 0; i < this.department.length; i++) {
317
-        if (id == this.department[i].id) {
318
-          name = this.department[i].name;
319
-        }
320
-      }
321
-      return name;
322
-    },
323
-    getTotalOne(id) {
324
-      var total = 0;
325
-      var addtotal = 0;
326
-      for (let i = 0; i < this.prescriptions.length; i++) {
327
-        if (id == this.prescriptions[i].id) {
328
-          if (this.prescriptions[i].project != null) {
329
-            for (let a = 0; a < this.prescriptions[i].project.length; a++) {
330
-              total =
331
-                total +
332
-                this.prescriptions[i].project[a].price *
333
-                this.prescriptions[i].project[a].count;
334
-            }
335
-          }
336
-
337
-          if (this.prescriptions[i].additionalcharge != null) {
338
-            for (
339
-              let a = 0;
340
-              a < this.prescriptions[i].additionalcharge.length;
341
-              a++
342
-            ) {
343
-              addtotal =
344
-                addtotal +
345
-                this.prescriptions[i].additionalcharge[a].price *
346
-                this.prescriptions[i].additionalcharge[a].count;
347
-            }
348
-          }
349
-          addtotal = Math.floor(addtotal * 100) / 100;
350
-        }
351
-      }
352
-
353
-      for (let i = 0; i < this.prescriptions.length; i++) {
354
-        if (id == this.prescriptions[i].id) {
355
-          if (this.prescriptions[i].advices != null) {
356
-            for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
357
-              total =
358
-                total +
359
-                this.prescriptions[i].advices[a].price *
360
-                this.prescriptions[i].advices[a].prescribing_number;
361
-            }
362
-          }
363
-
364
-          if (this.prescriptions[i].additionalcharge != null) {
365
-            for (
366
-              let a = 0;
367
-              a < this.prescriptions[i].additionalcharge.length;
368
-              a++
369
-            ) {
370
-              addtotal =
371
-                addtotal +
372
-                this.prescriptions[i].additionalcharge[a].price *
373
-                this.prescriptions[i].additionalcharge[a].count;
374
-            }
375
-          }
376
-          addtotal = Math.floor(addtotal * 100) / 100;
377
-        }
378
-      }
379
-
380
-      return total + addtotal;
381
-    },
382
-
383
-    getProjectName(id) {
384
-      var project_name = "";
385
-      for (let i = 0; i < this.projectList.length; i++) {
386
-        if (id == this.projectList[i].id) {
387
-          project_name = this.projectList[i].project_name;
388
-        }
389
-      }
390
-      return project_name;
391
-    },
392
-
393
-    getDiagnosis(ids) {
394
-      let newIds = ids.split(",").sort(function (a, b) {
395
-        return a - b;
396
-      });
397
-
398
-      var name = "";
399
-      let nameArr = [];
400
-      for (let i = 0; i < this.diagnoses.length; i++) {
401
-        // if(id == this.diagnoses[i].id){
402
-        //    name = this.diagnoses[i].class_name
403
-        // }
404
-
405
-        if (newIds.indexOf(this.diagnoses[i].id.toString()) > -1) {
406
-          // name += diagnoses[i].class_name + ' '
407
-          nameArr.push(this.diagnoses[i].class_name);
408
-        }
409
-      }
410
-      let newNameArr = [];
411
-      nameArr.map((item, index) => {
412
-        if (item == "尿毒症") {
413
-          newNameArr.push(item);
414
-          nameArr.splice(index, 1, "");
415
-        }
416
-      });
417
-      newNameArr.push(...nameArr);
418
-      return newNameArr.join(" ");
419
-    },
420
-    compare(property) {
421
-      return function (a, b) {
422
-        var value1 = a[property];
423
-        var value2 = b[property];
424
-        return value1 - value2; //升序排序
425
-      };
426
-    },
427
-    getPage() {
428
-      this.page = 1;
429
-      this.pageArr = [];
430
-
431
-      this.advicePrint.map((item) => {
432
-        let arr = [];
433
-        item.pageArr = [];
434
-        if (item.advices.length <= 5) {
435
-          this.page = 1;
436
-          arr.push(item.advices.length);
437
-          item.pageArr.push(arr);
438
-        } else if (item.advices.length > 5) {
439
-          this.page = parseInt(item.advices.length / 5);
440
-          let num = item.advices.length % 5;
441
-          for (var i = 0; i < this.page; i++) {
442
-            item.pageArr.push([5]);
443
-          }
444
-          if (num != 0) {
445
-            item.pageArr.push([num]);
446
-          }
447
-        }
448
-      });
449
-      // console.log('this.pageArr',this.pageArr)
450
-    },
451
-    getName(list) {
452
-      console.log("list", list);
453
-      let new_list = [];
454
-      for (let i = 0; i < list.length; i++) {
455
-        if (list[i].aac031 == "1") {
456
-          new_list.push(list[i]);
457
-        }
458
-      }
459
-
460
-      switch (new_list[0].bcc334) {
461
-        case "A31001":
462
-          return "深圳医保1档";
463
-          break;
464
-        case "A31002":
465
-          return "深圳医保2档";
466
-
467
-          break;
468
-        case "A31003":
469
-          return "深圳医保3档";
470
-
471
-          break;
472
-        case "A31004":
473
-          return "二档(少儿)";
474
-
475
-          break;
476
-        case "A31005":
477
-          return "学生二档";
478
-
479
-          break;
480
-        case "A31006":
481
-          return "大学生二档";
482
-
483
-          break;
484
-        case "A32001":
485
-          return "在职公务员";
486
-          break;
487
-        case "A32002":
488
-          return "在职驻深公务员";
489
-
490
-          break;
491
-        case "A39301":
492
-          return "家属统筹医疗";
493
-
494
-          break;
495
-        case "A41001":
496
-          return "工伤在职";
497
-
498
-          break;
499
-        case "A51001":
500
-          return "生育在职";
501
-
502
-          break;
503
-        case "A52001":
504
-          return "生育医疗一档";
505
-
506
-          break;
507
-        case "A52002":
508
-          return "生育医疗一档";
509
-
510
-          break;
511
-        case "C31001":
512
-          return "一档医疗退休";
513
-
514
-          break;
515
-        case "C31002":
516
-          return "二档医疗退休";
517
-          break;
518
-      }
519
-    },
520
-  },
521
-  created() {
522
-    this.getAllDoctorList();
523
-    this.getInitData();
524
-    this.getPrescriptionPrint();
525
-    this.getHisPatientDetail();
526
-    this.getPatientCaseHistory();
527
-    var xtuser = this.$store.getters.xt_user;
528
-    this.orgname = xtuser.org.org_name;
529
-    this.org_id = this.$store.getters.xt_user.org_id;
530
-  },
531
-  watch: {
532
-    ids: function (val) {
533
-      this.ids = val;
534
-      this.getPrescriptionPrint();
535
-    },
536
-  },
537
-};
538
-</script>
539
-
540
-
541
-<style lang="scss" scoped>
542
-.prescription-print {
543
-  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
544
-  0 0 60px rgba(0, 0, 0, 0.06) inset;
545
-  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
546
-  0 0 40px rgba(0, 0, 0, 0.06) inset;
547
-  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
548
-  margin-bottom: 20px;
549
-  padding: 20px 10px;
550
-}
551
-.printTitle {
552
-  font-size: 22px;
553
-  text-align: center;
554
-  font-weight: bold;
555
-  margin-bottom: 10px;
556
-}
557
-.infoTitle {
558
-  display: flex;
559
-  margin-top: 10px;
560
-  line-height: 24px;
561
-}
562
-.infoTitle div {
563
-  width: 200px;
564
-}
565
-.infoMain {
566
-  display: flex;
567
-  flex-wrap: wrap;
568
-  margin-top: 10px;
569
-}
570
-.infoMain div {
571
-  width: 50%;
572
-  line-height: 24px;
573
-}
574
-.prescriptionBox {
575
-  padding: 0 10px;
576
-  min-height: 400px;
577
-}
578
-.Rp {
579
-  font-size: 22px;
580
-  font-weight: bold;
581
-}
582
-.drugsBox {
583
-  padding-left: 40px;
584
-  margin-bottom: 10px;
585
-}
586
-.drugsBox div {
587
-  line-height: 20px;
588
-}
589
-.drugsOne {
590
-  line-height: 24px;
591
-}
592
-.drugsOne span {
593
-  margin-right: 20px;
594
-}
595
-.doctorBox {
596
-  display: flex;
597
-  justify-content: space-between;
598
-  padding: 0 10px;
599
-  line-height: 24px;
600
-  border-bottom: 2px solid #000;
601
-}
602
-.actionBar {
603
-  display: flex;
604
-  justify-content: space-between;
605
-  line-height: 24px;
606
-  padding: 0 10px;
607
-}
608
-.actionBar p {
609
-  width: 150px;
610
-}
611
-.under_line {
612
-  display: inline-block;
613
-  border-bottom: 1px solid #000;
614
-  flex: 1;
615
-}
616
-</style>

+ 3 - 5
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

508
       additions: Array,
508
       additions: Array,
509
       patientInfo: Object,
509
       patientInfo: Object,
510
       hisPatientInfo: Object,
510
       hisPatientInfo: Object,
511
-      goodOutOpen:Object,
512
       prescriptions: Array,
511
       prescriptions: Array,
513
       record_date: String,
512
       record_date: String,
514
       search_keyword: '',
513
       search_keyword: '',
2548
                           }
2547
                           }
2549
                         }
2548
                         }
2550
                       }
2549
                       }
2551
-                     // console.log("new233223322323",newArr)
2550
+                      console.log("new233223322323",newArr)
2552
                       if(newArr.length > 0){
2551
                       if(newArr.length > 0){
2553
                         for(let i=0;i<newArr.length;i++){
2552
                         for(let i=0;i<newArr.length;i++){
2554
                           if(newArr[i].is_user!=1){
2553
                           if(newArr[i].is_user!=1){
2566
                     }
2565
                     }
2567
                   }
2566
                   }
2568
                 }
2567
                 }
2569
-               
2570
-              //  console.log("good_isopen--------------------",this.goodOutOpen)
2571
-               if(this.goodOutOpen.is_open == 1){
2568
+
2569
+               if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 9679){
2572
                   var project_arr = []
2570
                   var project_arr = []
2573
                   //耗材
2571
                   //耗材
2574
                   for(let i=0;i<this.prescriptions.length;i++){
2572
                   for(let i=0;i<this.prescriptions.length;i++){

+ 1 - 6
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

165
                            :org_id="org_id"
165
                            :org_id="org_id"
166
                            ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
166
                            ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
167
                            v-on:getSunziValue = "getSunziValue"
167
                            v-on:getSunziValue = "getSunziValue"
168
-                           :hisPatientInfo="hisPatientInfo" :goodOutOpen="goodOutOpen" @event1="changetwo($event)" @editKeepLoad="editKeepLoad"
168
+                           :hisPatientInfo="hisPatientInfo" @event1="changetwo($event)" @editKeepLoad="editKeepLoad"
169
                            v-if="titleType == '电子处方'" style="flex:1;"></desk-prescription>
169
                            v-if="titleType == '电子处方'" style="flex:1;"></desk-prescription>
170
 
170
 
171
 
171
 
607
       printList:[],
607
       printList:[],
608
       printDate:'',
608
       printDate:'',
609
       anticoagulants_confit:null,
609
       anticoagulants_confit:null,
610
-      goodOutOpen:{}
611
     }
610
     }
612
   },
611
   },
613
 
612
 
1434
           this.sick = response.data.data.sick
1433
           this.sick = response.data.data.sick
1435
           this.diagnoses = response.data.data.diagnose
1434
           this.diagnoses = response.data.data.diagnose
1436
           this.additions = response.data.data.additions
1435
           this.additions = response.data.data.additions
1437
-          
1438
-          var goodOutOpen = response.data.data.goodOutOpen
1439
-          console.log("goodOutOpen----------------------",goodOutOpen)
1440
-          this.goodOutOpen = goodOutOpen
1441
 
1436
 
1442
         }
1437
         }
1443
       })
1438
       })

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

18
 9675:测试
18
 9675:测试
19
  -->
19
  -->
20
     <div class="dialysisPage" style="padding-top: 40px">
20
     <div class="dialysisPage" style="padding-top: 40px">
21
-      <div v-if="org_id != 10138 && org_id != 10278 && org_id != 10243 && org_id != 0">
21
+      <div v-if="org_id != 10138 && org_id != 10278 && org_id != 10243">
22
 
22
 
23
         <printOne v-if="org_id != 10088 && org_id != 10215" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
23
         <printOne v-if="org_id != 10088 && org_id != 10215" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
24
 
24
 

+ 11 - 4
src/xt_pages/outpatientDoctorStation/template/printOne.vue View File

127
           <div style="text-align: center">(以下空白)</div>
127
           <div style="text-align: center">(以下空白)</div>
128
         </div>
128
         </div>
129
         <div class="doctorBox" v-if="org_id != 10188">
129
         <div class="doctorBox" v-if="org_id != 10188">
130
-          <p>
130
+          <p v-if="org_id == 10217 || org_id == 0">
131
             医师:
131
             医师:
132
-            <!-- {{ item.doctor ? item.doctor : "" }} -->
133
             <span
132
             <span
134
               style="width: 100px; display: inline-block"
133
               style="width: 100px; display: inline-block"
135
               v-if="item.creator == ''"
134
               v-if="item.creator == ''"
143
               {{ doc_name }}
142
               {{ doc_name }}
144
             </span>
143
             </span>
145
             <img
144
             <img
146
-              style="height: 50px"
145
+              style="height: 50px;"
147
               :src="setAdminUserES(item.creator,item.doctor)"
146
               :src="setAdminUserES(item.creator,item.doctor)"
148
               alt=""
147
               alt=""
149
               srcset=""
148
               srcset=""
150
-              v-else
149
+
151
             />
150
             />
152
           </p>
151
           </p>
152
+          <p v-else>
153
+            医师: {{ item.doctor ? item.doctor : "" }}
154
+          </p>
153
           <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
155
           <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
154
         </div>
156
         </div>
155
         <div class="doctorBox" v-else>
157
         <div class="doctorBox" v-else>
234
   methods: {
236
   methods: {
235
     // 电子签名
237
     // 电子签名
236
     setAdminUserES(id,name) {
238
     setAdminUserES(id,name) {
239
+      console.log(id)
240
+      console.log(name)
241
+      console.log(this.operatorMaps)
242
+
243
+
237
       if (id == 0) {
244
       if (id == 0) {
238
         return "";
245
         return "";
239
       }
246
       }

+ 3 - 1
src/xt_pages/outpatientDoctorStation/template/printThree.vue View File

71
             <div style="width: 13%;"></div>
71
             <div style="width: 13%;"></div>
72
             <div style="width: 33%; display: flex">
72
             <div style="width: 33%; display: flex">
73
               处方编号:<span class="under_line">{{
73
               处方编号:<span class="under_line">{{
74
-              item.id
74
+                item.prescription_number.substring(
75
+                  item.prescription_number.length - 6
76
+                )
75
               }}</span>
77
               }}</span>
76
             </div>
78
             </div>
77
           </div>
79
           </div>

+ 0 - 4
src/xt_pages/stock/detail/stockInDetail.vue View File

460
     handleSizeChange(val) {
460
     handleSizeChange(val) {
461
       this.limit = val;
461
       this.limit = val;
462
       this.GetCancelStock();
462
       this.GetCancelStock();
463
-      this.getGoodDetailPrintList()
464
     },
463
     },
465
     handleCurrentChange(val) {
464
     handleCurrentChange(val) {
466
       this.page = val;
465
       this.page = val;
467
       this.GetCancelStock();
466
       this.GetCancelStock();
468
-      this.getGoodDetailPrintList()
469
     },
467
     },
470
     startTimeChange(val) {
468
     startTimeChange(val) {
471
 
469
 
476
       } else {
474
       } else {
477
 
475
 
478
         this.GetCancelStock();
476
         this.GetCancelStock();
479
-        this.getPrintStockGood()
480
 
477
 
481
       }
478
       }
482
     },
479
     },
488
       } else {
485
       } else {
489
 
486
 
490
         this.GetCancelStock();
487
         this.GetCancelStock();
491
-        this.getPrintStockGood()
492
       }
488
       }
493
     },
489
     },
494
     getTimestamp(time) {
490
     getTimestamp(time) {

+ 4 - 8
src/xt_pages/stock/detail/stockOutDetail.vue View File

791
       },
791
       },
792
 
792
 
793
     exportList(){
793
     exportList(){
794
-      
795
-       console.log("到处数据------------------------",this.tableOut)
794
+      console.log("shij232333",this.tableOut)
795
+     
796
        for(let i=0;i<this.tableOut.length;i++){
796
        for(let i=0;i<this.tableOut.length;i++){
797
         this.tableOut[i].index = i+1
797
         this.tableOut[i].index = i+1
798
         this.tableOut[i].good_name = this.tableOut[i].good_name
798
         this.tableOut[i].good_name = this.tableOut[i].good_name
820
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
820
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
821
         }else if(this.orgId == 10188){
821
         }else if(this.orgId == 10188){
822
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
822
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
823
-        }else if(this.orgId == 10402){
824
-          this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
825
         }else{
823
         }else{
826
           this.tableOut[i].total_price = (this.getStockCount(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
824
           this.tableOut[i].total_price = (this.getStockCount(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
827
         }
825
         }
830
 
828
 
831
          this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
829
          this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
832
         }
830
         }
833
-        //手动自动出库
834
-        if(this.orgId == 10210 || this.orgId == 9675  || this.orgId == 9956 || this.orgId == 10217 || this.orgId == 10188 || this.orgId == 10191 || this.orgId == 10402){
831
+        if(this.orgId == 10210 || this.orgId == 9675  || this.orgId == 9956 || this.orgId == 10217 || this.orgId == 10188 || this.orgId == 10191){
835
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
832
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
836
           console.log("out_count232233232332",this.tableOut[i].out_count)
833
           console.log("out_count232233232332",this.tableOut[i].out_count)
837
         }
834
         }
838
-        //自动出库
839
-        if(this.orgId!=10265 && this.orgId !=10215  && this.orgId != 9671 &&this.orgId!=10210&&this.orgId!=9675 && this.orgId!=9956&& this.orgId!=10217 && this.orgId!=10188 && this.orgId!=10191 && this.orgId!=9919  && this.orgId!=10402){
835
+        if(this.orgId!=10265 && this.orgId !=10215  && this.orgId != 9671 &&this.orgId!=10210&&this.orgId!=9675 && this.orgId!=9956&& this.orgId!=10217 && this.orgId!=10188 && this.orgId!=10191 && this.orgId!=9919){
840
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
836
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
841
         }
837
         }
842
        }
838
        }

+ 2 - 2
src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue View File

7
     </div>
7
     </div>
8
     <div class="app-container ">
8
     <div class="app-container ">
9
       <div id="dialysis-print-box">
9
       <div id="dialysis-print-box">
10
-        <div v-if="orgId!=9671 && orgId!=9675 && orgId!=10210 && orgId!=10188 && orgId!=10127 && orgId!=10164 && orgId!=3877 && orgId!=10387">
10
+        <div v-if="orgId!=9671 && orgId!=9675 && orgId!=10210 && orgId!=10188 && orgId!=10127 && orgId!=10164 && orgId!=3877">
11
         <div class="dialysis-print-order" v-for="(it,index) in tableList" :key="index">
11
         <div class="dialysis-print-order" v-for="(it,index) in tableList" :key="index">
12
          <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
12
          <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
13
           <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
13
           <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
78
       </div> 
78
       </div> 
79
 
79
 
80
 
80
 
81
-      <div v-if="orgId == 9671 || orgId == 9675 ||  orgId == 10210 || orgId == 10188 || orgId == 10127 || orgId ==10164 || orgId ==3877 || orgId == 10387">
81
+      <div v-if="orgId == 9671 || orgId == 9675 ||  orgId == 10210 || orgId == 10188 || orgId == 10127 || orgId ==10164 || orgId ==3877">
82
        <div class="dialysis-print-order" v-for="(it,index) in tableData" :key="index" >
82
        <div class="dialysis-print-order" v-for="(it,index) in tableData" :key="index" >
83
          <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
83
          <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
84
           <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
84
           <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>

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

681
        if(response.data.state == 1){
681
        if(response.data.state == 1){
682
          this.dialogVisible = true
682
          this.dialogVisible = true
683
          var list = response.data.data.list
683
          var list = response.data.data.list
684
-         console.log("list2332323232wo",list)
685
          this.tableData = list
684
          this.tableData = list
686
          this.totalone = response.data.data.total
685
          this.totalone = response.data.data.total
687
       
686
       
687
+        //  this.flushList =  response.data.data.flushList
688
+        
688
        }
689
        }
689
      })
690
      })
690
    
691
    

+ 0 - 2
src/xt_pages/stock/stockFlow.vue View File

131
              <span > {{getManufacturer(scope.row.manufacturer)}}</span>
131
              <span > {{getManufacturer(scope.row.manufacturer)}}</span>
132
            </template>
132
            </template>
133
         </el-table-column>
133
         </el-table-column>
134
-
135
-     
136
        </el-table>
134
        </el-table>
137
        
135
        
138
       <el-pagination
136
       <el-pagination

+ 7 - 17
src/xt_pages/user/courseOfDisease.vue View File

57
                 <el-table-column label="记录时间" align="center">
57
                 <el-table-column label="记录时间" align="center">
58
                   <template slot-scope="scope">
58
                   <template slot-scope="scope">
59
                     {{ recordTime(scope.row.record_time) }}
59
                     {{ recordTime(scope.row.record_time) }}
60
-                   
61
                   </template>
60
                   </template>
62
                 </el-table-column>
61
                 </el-table-column>
63
                 <el-table-column label="记录医生" align="center">
62
                 <el-table-column label="记录医生" align="center">
87
               <label class="title"><span class="name">病程日期</span> : </label>
86
               <label class="title"><span class="name">病程日期</span> : </label>
88
               <el-date-picker v-model="course_of_disease_time" prefix-icon="el-icon-date" :editable="false"
87
               <el-date-picker v-model="course_of_disease_time" prefix-icon="el-icon-date" :editable="false"
89
                               style="width: 200px;"
88
                               style="width: 200px;"
90
-                              type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm:ss"
91
-                              value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
89
+                              type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm"
90
+                              value-format="yyyy-MM-dd HH:mm"></el-date-picker>
92
 
91
 
93
               <label class="title"><span class="name">日常病程</span> : </label>
92
               <label class="title"><span class="name">日常病程</span> : </label>
94
               <el-select v-model="select_template" placeholder="可选择病程模板" @change="didSelectTemplate">
93
               <el-select v-model="select_template" placeholder="可选择病程模板" @change="didSelectTemplate">
133
               <el-date-picker v-model="edit_course_of_disease_time" prefix-icon="el-icon-date" :editable="false"
132
               <el-date-picker v-model="edit_course_of_disease_time" prefix-icon="el-icon-date" :editable="false"
134
                               style="width: 200px;"
133
                               style="width: 200px;"
135
                               type="datetime"
134
                               type="datetime"
136
-                              placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm:ss"
137
-                              value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
135
+                              placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm"
136
+                              value-format="yyyy-MM-dd HH:mm"></el-date-picker>
138
 
137
 
139
               <label class="title"><span class="name">日常病程</span> : </label>
138
               <label class="title"><span class="name">日常病程</span> : </label>
140
               <el-select v-model="select_template" placeholder="可选择病程模板" @change="didEditSelectTemplate">
139
               <el-select v-model="select_template" placeholder="可选择病程模板" @change="didEditSelectTemplate">
186
     modifyCourseOfDiseaseRecord,
185
     modifyCourseOfDiseaseRecord,
187
     GetCoursePrintData
186
     GetCoursePrintData
188
   } from '@/api/patient'
187
   } from '@/api/patient'
189
-  import { parseTime, } from '@/utils'
190
-  import { uParseTime } from '@/utils/tools'
191
-
188
+  import { parseTime } from '@/utils'
192
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
189
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
193
 
190
 
194
   export default {
191
   export default {
288
         this.current_select_record = record
285
         this.current_select_record = record
289
       },
286
       },
290
       recordTime: function(timestamp) {
287
       recordTime: function(timestamp) {
291
-       
292
-        if(timestamp < 0){
293
-           return ""
294
-         }
295
-         if(timestamp == ""){
296
-          return ""
297
-         }else {
298
-          return uParseTime(timestamp, '{y}-{m}-{d} {h}:{i}:{s}')
299
-         }
288
+        var time = new Date(timestamp * 1000)
289
+        return parseTime(time, '{y}-{m}-{d} {h}:{m}')
300
       },
290
       },
301
       doctorName: function(doctor_id) {
291
       doctorName: function(doctor_id) {
302
         for (let index = 0; index < this.doctors.length; index++) {
292
         for (let index = 0; index < this.doctors.length; index++) {

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

312
           </el-col>
312
           </el-col>
313
 
313
 
314
           <el-col :span="8" v-if="isShows('抗凝剂')">
314
           <el-col :span="8" v-if="isShows('抗凝剂')">
315
-            
316
             <el-form-item label="抗凝剂:" prop="anticoagulant">
315
             <el-form-item label="抗凝剂:" prop="anticoagulant">
317
               <el-select
316
               <el-select
318
                 v-model="addPlan.anticoagulant"
317
                 v-model="addPlan.anticoagulant"
2536
       this.anticoagulantsSet = this.$store.getters.anticoagulants_set
2535
       this.anticoagulantsSet = this.$store.getters.anticoagulants_set
2537
       this.replacementWays = this.$store.getters.replacement_ways
2536
       this.replacementWays = this.$store.getters.replacement_ways
2538
       this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
2537
       this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
2539
-      console.log("抗凝剂22333223wo",this.anticoagulantsConfit)
2538
+
2540
       this.blood_filters = this.$store.getters.blood_filters
2539
       this.blood_filters = this.$store.getters.blood_filters
2541
       this.perfusion_apparatus = this.$store.getters.perfusion_apparatus
2540
       this.perfusion_apparatus = this.$store.getters.perfusion_apparatus
2542
       this.hemodialysis_machines = this.$store.getters.hemodialysis_machines
2541
       this.hemodialysis_machines = this.$store.getters.hemodialysis_machines

+ 9 - 0
src/xt_pages/workforce/components/ScheduleItem.vue View File

1
 <template>
1
 <template>
2
     <div >
2
     <div >
3
+        <el-tooltip placement="right" :disabled="scheduleDetail.patient.length>0?false:true" >
4
+            <div slot="content">
5
+                {{scheduleDetail.patient}}
6
+                <br/>
7
+                <span v-if="scheduleDetail.mode_name.length>0">({{scheduleDetail.mode_name}})</span>
8
+              <span >{{scheduleDetail.dialysis_machine_name}}</span>
9
+
10
+            </div>
3
             <div>
11
             <div>
4
                 <span :class='modeColor(scheduleDetail.mode_name)'>{{scheduleDetail.patient}}</span><br/>
12
                 <span :class='modeColor(scheduleDetail.mode_name)'>{{scheduleDetail.patient}}</span><br/>
5
                 <span v-if="scheduleDetail.mode_name.length>0" :class='modeColor(scheduleDetail.mode_name)'>({{scheduleDetail.mode_name}})</span>
13
                 <span v-if="scheduleDetail.mode_name.length>0" :class='modeColor(scheduleDetail.mode_name)'>({{scheduleDetail.mode_name}})</span>
6
               <span >{{scheduleDetail.dialysis_machine_name}}</span>
14
               <span >{{scheduleDetail.dialysis_machine_name}}</span>
7
 
15
 
8
             </div>
16
             </div>
17
+        </el-tooltip>
9
     </div>
18
     </div>
10
 </template>
19
 </template>
11
 
20
 

+ 62 - 114
src/xt_pages/workforce/components/editTableData.vue View File

1827
       </div>
1827
       </div>
1828
       <span slot="footer" class="dialog-footer">
1828
       <span slot="footer" class="dialog-footer">
1829
          <el-button
1829
          <el-button
1830
-           type="danger"
1831
-           @click="tipDialogVisibleTwo = true"
1830
+           type="primary"
1831
+           @click="coverSch()"
1832
          >替换</el-button>
1832
          >替换</el-button>
1833
             <el-button
1833
             <el-button
1834
               type="primary"
1834
               type="primary"
1835
-              @click="tipDialogVisibleThree = true"
1835
+              @click="changeSchTwo()"
1836
             >交换</el-button>
1836
             >交换</el-button>
1837
         <el-button @click="tipDialogVisible = false">取 消</el-button>
1837
         <el-button @click="tipDialogVisible = false">取 消</el-button>
1838
       </span>
1838
       </span>
1839
     </el-dialog>
1839
     </el-dialog>
1840
 
1840
 
1841
-    <el-dialog
1842
-      title="提示"
1843
-      :visible.sync="tipDialogVisibleTwo"
1844
-      width="300px"
1845
-    >
1846
-      <div>
1847
-        是否将此位置排班替换
1848
-      </div>
1849
-      <span slot="footer" class="dialog-footer">
1850
-         <el-button
1851
-           type="primary"
1852
-           @click="coverSch()"
1853
-         >确定</el-button>
1854
-
1855
-        <el-button @click="tipDialogVisibleTwo = false">取 消</el-button>
1856
-      </span>
1857
-    </el-dialog>
1858
-
1859
-
1860
-    <el-dialog
1861
-      title="提示"
1862
-      :visible.sync="tipDialogVisibleThree"
1863
-      width="300px"
1864
-    >
1865
-      <div>
1866
-        是否将此位置排班互换
1867
-      </div>
1868
-      <span slot="footer" class="dialog-footer">
1869
-         <el-button
1870
-           type="primary"
1871
-           @click="changeSchTwo()"
1872
-         >确定</el-button>
1873
-        <el-button @click="tipDialogVisibleThree = false">取 消</el-button>
1874
-      </span>
1875
-    </el-dialog>
1876
-
1877
 
1841
 
1878
   </div>
1842
   </div>
1879
 </template>
1843
 </template>
1893
   BatchSmartSch,
1857
   BatchSmartSch,
1894
 } from "@/api/schedule_template/sch_template";
1858
 } from "@/api/schedule_template/sch_template";
1895
 import {
1859
 import {
1896
-  CancelScheduleTwo,
1897
   CancelSchedule,
1860
   CancelSchedule,
1898
   ChangeSchedule,
1861
   ChangeSchedule,
1899
   CreateSchedule,
1862
   CreateSchedule,
1967
 
1930
 
1968
   data() {
1931
   data() {
1969
     return {
1932
     return {
1970
-      tipDialogVisibleTwo:false,
1971
-      tipDialogVisibleThree:false,
1972
       cur_date:"",
1933
       cur_date:"",
1973
       dataloading:false,
1934
       dataloading:false,
1974
       current_patient_data:[],
1935
       current_patient_data:[],
1977
       saveloading: false,
1938
       saveloading: false,
1978
       zones: [],
1939
       zones: [],
1979
       weeks: weekOptions,
1940
       weeks: weekOptions,
1980
-      first_weeks:[],
1981
       smart_keyword: "",
1941
       smart_keyword: "",
1982
       cur_smart_patient_id: 0,
1942
       cur_smart_patient_id: 0,
1983
       cur_smart_patient_name: "",
1943
       cur_smart_patient_name: "",
2392
     },
2352
     },
2393
     handleClick() {
2353
     handleClick() {
2394
       if (this.editableTabsValue == "1") {
2354
       if (this.editableTabsValue == "1") {
2395
-
2396
-        console.log(this.first_weeks)
2397
-        console.log(this.weeks)
2398
-
2399
-
2400
         for (let i = 0; i < this.weeks.length; i++) {
2355
         for (let i = 0; i < this.weeks.length; i++) {
2401
           var tempDate = new Date();
2356
           var tempDate = new Date();
2402
           var day = tempDate.getDay();
2357
           var day = tempDate.getDay();
2409
             this.weeks[i].is_edit = false;
2364
             this.weeks[i].is_edit = false;
2410
           }
2365
           }
2411
         }
2366
         }
2412
-
2413
-        for(let i = 0; i < this.weeks.length; i++){
2414
-          for(let b = 0; b < this.first_weeks.length; b++){
2415
-            if(this.weeks[i].week_type == this.first_weeks[b].week_type && this.first_weeks[b].order_id > 0){
2416
-              console.log(this.weeks[i].week_type)
2417
-              console.log(this.first_weeks[b].week_type)
2418
-              console.log(this.first_weeks[b].order_id)
2419
-
2420
-              this.weeks[i].is_edit = false
2421
-            }
2422
-
2423
-          }
2424
-        }
2425
-
2426
-
2427
-
2428
       } else {
2367
       } else {
2429
         for (let i = 0; i < this.weeks.length; i++) {
2368
         for (let i = 0; i < this.weeks.length; i++) {
2430
           this.weeks[i].is_edit = true;
2369
           this.weeks[i].is_edit = true;
2592
       console.log(delTempData)
2531
       console.log(delTempData)
2593
 
2532
 
2594
 
2533
 
2595
-      if(saveOrEditTempData.length > 0 ){
2596
-        for (let i = 0; i < delTempData.length; i++) {
2597
-          for (let  b = 0; b < saveOrEditTempData.length; b++) {
2598
-            if(saveOrEditTempData[b].sch_id&&delTempData[i].sch_id&&delTempData[i].sch_id == saveOrEditTempData[b].sch_id){
2599
-              delTempData.splice(i,1)
2600
-            }
2534
+
2535
+      for (let i = 0; i < delTempData.length; i++) {
2536
+        for (let  b = 0; b < saveOrEditTempData.length; b++) {
2537
+          if(delTempData[i].sch_id == saveOrEditTempData[b].sch_id){
2538
+            delTempData.splice(i,1)
2601
           }
2539
           }
2602
         }
2540
         }
2603
-
2604
       }
2541
       }
2542
+      console.log(delTempData)
2543
+
2605
       for (let i = 0; i < saveOrEditTempData.length; i++) {
2544
       for (let i = 0; i < saveOrEditTempData.length; i++) {
2606
         if (saveOrEditTempData[i].bed_id == "" || saveOrEditTempData[i].zone_id == "") {
2545
         if (saveOrEditTempData[i].bed_id == "" || saveOrEditTempData[i].zone_id == "") {
2607
           this.$message.error("分区或者床位不能空");
2546
           this.$message.error("分区或者床位不能空");
2610
       }
2549
       }
2611
 
2550
 
2612
 
2551
 
2613
-      if (saveOrEditTempData.length > 0 || delTempData.length > 0) {
2552
+      if (saveOrEditTempData.length > 0 ) {
2553
+
2614
 
2554
 
2615
         let obj = {
2555
         let obj = {
2616
           smart_schs: saveOrEditTempData,
2556
           smart_schs: saveOrEditTempData,
2684
       return "";
2624
       return "";
2685
     },
2625
     },
2686
     handleSelect(val) {
2626
     handleSelect(val) {
2687
-      this.first_weeks = []
2688
-        this.dataloading = true
2627
+      this.dataloading = true
2689
       getSmartSchByPatient(val.id).then((response) => {
2628
       getSmartSchByPatient(val.id).then((response) => {
2690
         this.dataloading = false
2629
         this.dataloading = false
2691
         var sch = response.data.data.sch
2630
         var sch = response.data.data.sch
2746
                   ) {
2685
                   ) {
2747
                     this.weeks[b].is_edit = true;
2686
                     this.weeks[b].is_edit = true;
2748
                   } else {
2687
                   } else {
2749
-                    let obj = {
2750
-                      week_type:this.weeks[b].week_type,
2751
-                      order_id:schedules[i].order.id,
2752
-                    }
2753
-                    this.first_weeks.push(obj)
2754
                     this.weeks[b].is_edit = false;
2688
                     this.weeks[b].is_edit = false;
2755
                   }
2689
                   }
2756
                   this.editableTabs[0].checkedWeek.push(this.weeks[b]);
2690
                   this.editableTabs[0].checkedWeek.push(this.weeks[b]);
3012
           tableWeekArrage: [],
2946
           tableWeekArrage: [],
3013
         },
2947
         },
3014
       ];
2948
       ];
3015
-      this.first_weeks = []
2949
+
3016
       getPatientSmartSch(params).then((response) => {
2950
       getPatientSmartSch(params).then((response) => {
3017
         if (response.data.state == 0) {
2951
         if (response.data.state == 0) {
3018
           return false;
2952
           return false;
3064
                 is_edit = true;
2998
                 is_edit = true;
3065
               }
2999
               }
3066
               obj.is_edit = is_edit;
3000
               obj.is_edit = is_edit;
3067
-              console.log("schedules[i].order.id")
3068
 
3001
 
3069
-              console.log(schedules[i].order.id)
3070
 
3002
 
3071
               for (let b = 0; b < this.weeks.length; b++) {
3003
               for (let b = 0; b < this.weeks.length; b++) {
3072
                 if (schedules[i].schedule_week == this.weeks[b].week_type) {
3004
                 if (schedules[i].schedule_week == this.weeks[b].week_type) {
3074
                       this.weeks[b].week_type >= day &&
3006
                       this.weeks[b].week_type >= day &&
3075
                       schedules[i].order.id == 0
3007
                       schedules[i].order.id == 0
3076
                   ) {
3008
                   ) {
3009
+
3077
                     this.weeks[b].is_edit = true;
3010
                     this.weeks[b].is_edit = true;
3078
                   } else {
3011
                   } else {
3079
-                    let obj = {
3080
-                      week_type:this.weeks[b].week_type,
3081
-                      order_id:schedules[i].order.id,
3082
-                    }
3083
-                    this.first_weeks.push(obj)
3084
                     this.weeks[b].is_edit = false;
3012
                     this.weeks[b].is_edit = false;
3085
                   }
3013
                   }
3086
 
3014
 
3345
     dragendTwo(event) {},
3273
     dragendTwo(event) {},
3346
     isEditForDate(day){
3274
     isEditForDate(day){
3347
       var week = this.weekDay(day);
3275
       var week = this.weekDay(day);
3276
+      console.log(this.weekDays[week[0] - 1].valueOf())
3277
+      console.log( new Date(this.weekDays[week[0] - 1]).valueOf() /1000 )
3278
+      console.log(this.weekDays[week[0] - 1] >= this.cur_date)
3348
       if( new Date(this.weekDays[week[0] - 1]).valueOf() /1000 >= this.cur_date){
3279
       if( new Date(this.weekDays[week[0] - 1]).valueOf() /1000 >= this.cur_date){
3349
         return true
3280
         return true
3350
       }else{
3281
       }else{
3354
     },
3285
     },
3355
     drag(e, day, index, name, row) {
3286
     drag(e, day, index, name, row) {
3356
       e.preventDefault();
3287
       e.preventDefault();
3288
+      console.log("拖动前")
3289
+      console.log(row)
3357
       for (var key in row) {
3290
       for (var key in row) {
3358
         if (key == day) {
3291
         if (key == day) {
3359
           console.log(row[key].patient_id)
3292
           console.log(row[key].patient_id)
3360
 
3293
 
3361
           if(row[key].patient_id > 0 ) {
3294
           if(row[key].patient_id > 0 ) {
3362
             this.cur_drag_obj = 2
3295
             this.cur_drag_obj = 2
3296
+            console.log(row)
3363
             var week = this.weekDay(day);
3297
             var week = this.weekDay(day);
3364
             this.cur_drag_info.schedule_date = this.weekDays[week[0] - 1];
3298
             this.cur_drag_info.schedule_date = this.weekDays[week[0] - 1];
3365
             this.cur_drag_info.schedule_type = week[1];
3299
             this.cur_drag_info.schedule_type = week[1];
3382
     allowDrop(e) {
3316
     allowDrop(e) {
3383
       e.preventDefault();
3317
       e.preventDefault();
3384
     },coverSch(){
3318
     },coverSch(){
3385
-      let params={
3386
-        id_one:this.cur_drag_info.id,
3387
-        id_two:this.currentData.id
3388
-
3389
-      }
3390
-      CoverSch(params).then((response) => {
3391
-        if (response.data.state == 0) {
3392
-          this.$message.error(response.data.msg);
3393
-          this.tipDialogVisibleTwo = false
3319
+      this.$confirm('是否将此位置排班替换?', '替换', {
3320
+        confirmButtonText: '确 定',
3321
+        cancelButtonText: '取 消',
3322
+        type: 'warning'
3323
+      }).then(() => {
3324
+        let params={
3325
+          id_one:this.cur_drag_info.id,
3326
+          id_two:this.currentData.id
3394
 
3327
 
3395
-        } else {
3396
-          this.$message.success("替换成功");
3397
-          this.tipDialogVisible = false
3398
-          this.tipDialogVisibleTwo = false
3399
-          this.getSchedules();
3400
         }
3328
         }
3401
-      });
3329
+        CoverSch(params).then((response) => {
3330
+          if (response.data.state == 0) {
3331
+            this.$message.error(response.data.msg);
3332
+          } else {
3333
+            this.$message.success("替换成功");
3334
+            this.tipDialogVisible = false
3335
+            this.getSchedules();
3336
+
3337
+          }
3338
+        });
3339
+
3340
+      })
3341
+        .catch(() => {
3342
+        })
3343
+
3402
     },changeSchTwo(){
3344
     },changeSchTwo(){
3345
+      this.$confirm('是否将此位置排班互换?', '交换', {
3346
+        confirmButtonText: '确 定',
3347
+        cancelButtonText: '取 消',
3348
+        type: 'warning'
3349
+      }).then(() => {
3403
         let params={
3350
         let params={
3404
           id_one:this.cur_drag_info.id,
3351
           id_one:this.cur_drag_info.id,
3405
           id_two:this.currentData.id
3352
           id_two:this.currentData.id
3408
         ExchangeSch(params).then((response) => {
3355
         ExchangeSch(params).then((response) => {
3409
           if (response.data.state == 0) {
3356
           if (response.data.state == 0) {
3410
             this.$message.error(response.data.msg);
3357
             this.$message.error(response.data.msg);
3411
-            this.tipDialogVisibleThree = false
3412
           } else {
3358
           } else {
3413
             this.$message.success("交换成功");
3359
             this.$message.success("交换成功");
3414
             this.tipDialogVisible = false
3360
             this.tipDialogVisible = false
3415
-            this.tipDialogVisibleThree = false
3416
             this.getSchedules();
3361
             this.getSchedules();
3417
 
3362
 
3418
           }
3363
           }
3419
         });
3364
         });
3365
+      })
3366
+        .catch(() => {
3367
+        })
3368
+
3420
     },
3369
     },
3421
     //        ----------------------------------
3370
     //        ----------------------------------
3422
     //        | !在html里面的chedule-item里绑定的|
3371
     //        | !在html里面的chedule-item里绑定的|
3458
             if(this.cur_drag_obj == 2 ){
3407
             if(this.cur_drag_obj == 2 ){
3459
               if(this.cur_drag_info.schedule_date == this.currentData.schedule_date){ //同一天
3408
               if(this.cur_drag_info.schedule_date == this.currentData.schedule_date){ //同一天
3460
                 if(row[key].patient_id == 0) { //空床位
3409
                 if(row[key].patient_id == 0) { //空床位
3461
-                  CancelScheduleTwo(this.cur_drag_info.id).then((response) => {
3410
+                  CancelSchedule(this.cur_drag_info.id).then((response) => {
3462
                     if (response.data.state == 0) {
3411
                     if (response.data.state == 0) {
3463
                       this.$message.error(response.data.msg);
3412
                       this.$message.error(response.data.msg);
3464
                     } else {
3413
                     } else {
3488
                           }
3437
                           }
3489
                         }
3438
                         }
3490
                       });
3439
                       });
3491
-                      //接口提交排班数据
3492
-                      that.currentData.mode_id = that.cur_drag_info.mode_id;
3493
-                      that.currentData.id = 0;
3494
-                      that.currentData.contagions = [];
3495
-                      that.currentData.patient_id = that.cur_drag_info.patient_id;
3496
-                      that.currentData.patient = that.cur_drag_info.patient_name;
3497
-                      that.setSchedule();
3498
                     }
3440
                     }
3499
                   });
3441
                   });
3500
-
3442
+                  //接口提交排班数据
3443
+                  this.currentData.mode_id = this.cur_drag_info.mode_id;
3444
+                  this.currentData.id = 0;
3445
+                  this.currentData.contagions = [];
3446
+                  this.currentData.patient_id = this.cur_drag_info.patient_id;
3447
+                  this.currentData.patient = this.cur_drag_info.patient_name;
3448
+                  this.setSchedule();
3501
                 }else{  //非空,替換或者交換位置
3449
                 }else{  //非空,替換或者交換位置
3502
                   this.tipDialogVisible = true
3450
                   this.tipDialogVisible = true
3503
                 }
3451
                 }
4395
 
4343
 
4396
     // 删除某一单元格内的患者透析排班
4344
     // 删除某一单元格内的患者透析排班
4397
     deletePatientMode(row) {
4345
     deletePatientMode(row) {
4398
-      console.log(row)
4346
+
4399
       if (row.schedule_id > 0) {
4347
       if (row.schedule_id > 0) {
4400
         this.CancelSchedule(row.schedule_id);
4348
         this.CancelSchedule(row.schedule_id);
4401
       }
4349
       }

+ 10 - 2
src/xt_pages/workforce/components/tableWeeks.vue View File

221
             </el-table-column>
221
             </el-table-column>
222
             <el-table-column label="透析器/灌流器" min-width="100" align="center">
222
             <el-table-column label="透析器/灌流器" min-width="100" align="center">
223
                 <template slot-scope="scope">
223
                 <template slot-scope="scope">
224
+                    <!-- <span v-if="org_id!=9987&&org_id!=10131&&org_id!=10215 &&org_id!=10233 && org_id!=10290">
225
+                      <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus!=''">
226
+                        <span>{{ scope.row.prescription.dialyzer_perfusion_apparatus }}</span>
227
+                      </span>
228
+
229
+                      <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus==''&& scope.row.dialysissolution.id > 0 && scope.row.prescription.dialysis_dialyszers == ''">{{scope.row.dialysissolution.dialysis_dialyszers}}</span>
230
+                    </span> -->
231
+
232
+                    <!-- <span v-if="org_id==10131 || org_id == 10215 || org_id == 10233">{{scope.row.dialysissolution.dialyzer_perfusion_apparatus}}</span> -->
224
                     
233
                     
234
+                      <!-- {{scope.row.prescription.dialysis_dialyszers}} -->
225
                     <span v-if="scope.row.prescription.dialysis_dialyszers =='' ">
235
                     <span v-if="scope.row.prescription.dialysis_dialyszers =='' ">
226
                        {{scope.row.dialysissolution.dialysis_dialyszers}}
236
                        {{scope.row.dialysissolution.dialysis_dialyszers}}
227
                     </span>
237
                     </span>
228
                     <span v-if="scope.row.prescription.dialysis_dialyszers !=''">{{scope.row.prescription.dialysis_dialyszers}}</span>
238
                     <span v-if="scope.row.prescription.dialysis_dialyszers !=''">{{scope.row.prescription.dialysis_dialyszers}}</span>
229
-
230
                     <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus =='' ">
239
                     <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus =='' ">
231
                        {{scope.row.dialysissolution.dialyzer_perfusion_apparatus}}
240
                        {{scope.row.dialysissolution.dialyzer_perfusion_apparatus}}
232
                     </span>
241
                     </span>
233
-
234
                     <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus !=''">{{scope.row.prescription.dialyzer_perfusion_apparatus}}</span>
242
                     <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus !=''">{{scope.row.prescription.dialyzer_perfusion_apparatus}}</span>
235
   
243
   
236
                     <span v-if="scope.row.prescription.dialysis_irrigation==''">/{{scope.row.dialysissolution.dialysis_irrigation}}</span>
244
                     <span v-if="scope.row.prescription.dialysis_irrigation==''">/{{scope.row.dialysissolution.dialysis_irrigation}}</span>

+ 36 - 35
src/xt_pages/workforce/components/template_table.vue View File

1594
 
1594
 
1595
       this.smartVisible = true;
1595
       this.smartVisible = true;
1596
     },
1596
     },
1597
-    SetSmartSch(tempData) {
1598
-        this.saveActionThree(tempData);
1597
+    SetSmartSch(tempData,delData) {
1598
+        this.saveActionThree(tempData,delData);
1599
     },
1599
     },
1600
     check(tempData) {
1600
     check(tempData) {
1601
       let isJiXu = true;
1601
       let isJiXu = true;
1647
     batchSetSch() {
1647
     batchSetSch() {
1648
       this.smartSaveLoading = true;
1648
       this.smartSaveLoading = true;
1649
       var tempData = [];
1649
       var tempData = [];
1650
-      // var delData = [];
1650
+      var delData = [];
1651
       for (let b = 0; b < this.editableTabs.length; b++) {
1651
       for (let b = 0; b < this.editableTabs.length; b++) {
1652
         for (let c = 0; c < this.editableTabs[b].tableWeekArrage.length; c++) {
1652
         for (let c = 0; c < this.editableTabs[b].tableWeekArrage.length; c++) {
1653
           let obj = {
1653
           let obj = {
1667
         }
1667
         }
1668
       }
1668
       }
1669
 
1669
 
1670
-      // for (let b = 0; b < this.current_patient_data.length; b++) {
1671
-      //   for (let c = 0; c < this.current_patient_data[b].tableWeekArrage.length; c++) {
1672
-      //     let obj = {
1673
-      //       time_type: this.current_patient_data[b].tableWeekArrage[c].time_type,
1674
-      //       jihao_id: this.current_patient_data[b].tableWeekArrage[c].device_number_id,
1675
-      //       schedule_week: this.getWeekByzhongwen(
1676
-      //         this.current_patient_data[b].tableWeekArrage[c].week
1677
-      //       ),
1678
-      //       mode_id: this.current_patient_data[b].tableWeekArrage[c].treat_mode,
1679
-      //       sch_id: this.current_patient_data[b].tableWeekArrage[c].id,
1680
-      //       zone_id: this.current_patient_data[b].tableWeekArrage[c].zone_id,
1681
-      //       t_id: this.current_patient_data[b].name,
1682
-      //       title:this.current_patient_data[b].title,
1683
-      //       patient_id: this.cur_smart_patient_id,
1684
-      //     };
1685
-      //     delData.push(obj);
1686
-      //   }
1687
-      // }
1688
-      // console.log(tempData)
1689
-      // console.log(delData)
1670
+      for (let b = 0; b < this.current_patient_data.length; b++) {
1671
+        for (let c = 0; c < this.current_patient_data[b].tableWeekArrage.length; c++) {
1672
+          let obj = {
1673
+            time_type: this.current_patient_data[b].tableWeekArrage[c].time_type,
1674
+            jihao_id: this.current_patient_data[b].tableWeekArrage[c].device_number_id,
1675
+            schedule_week: this.getWeekByzhongwen(
1676
+              this.current_patient_data[b].tableWeekArrage[c].week
1677
+            ),
1678
+            mode_id: this.current_patient_data[b].tableWeekArrage[c].treat_mode,
1679
+            sch_id: this.current_patient_data[b].tableWeekArrage[c].id,
1680
+            zone_id: this.current_patient_data[b].tableWeekArrage[c].zone_id,
1681
+            t_id: this.current_patient_data[b].name,
1682
+            title:this.current_patient_data[b].title,
1683
+            patient_id: this.cur_smart_patient_id,
1684
+          };
1685
+          delData.push(obj);
1686
+        }
1687
+      }
1688
+      console.log(tempData)
1689
+      console.log(delData)
1690
 
1690
 
1691
-      // for (let i = 0; i < delData.length; i++) {
1692
-      //   for (let  b = 0; b < tempData.length; b++) {
1693
-      //     if(delData[i].sch_id == tempData[b].sch_id){
1694
-      //       delData.splice(i,1)
1695
-      //     }
1696
-      //   }
1697
-      // }
1691
+      for (let i = 0; i < delData.length; i++) {
1692
+        for (let  b = 0; b < tempData.length; b++) {
1693
+          if(delData[i].sch_id == tempData[b].sch_id){
1694
+            delData.splice(i,1)
1695
+          }
1696
+        }
1697
+      }
1698
 
1698
 
1699
+      console.log(delData)
1699
       for (let i = 0; i < tempData.length; i++) {
1700
       for (let i = 0; i < tempData.length; i++) {
1700
         if (tempData[i].jihao_id == "" || tempData[i].zone_id == "") {
1701
         if (tempData[i].jihao_id == "" || tempData[i].zone_id == "") {
1701
           this.$message.error("分区或者床位不能空");
1702
           this.$message.error("分区或者床位不能空");
1705
         }
1706
         }
1706
       }
1707
       }
1707
       this.isEdit = true
1708
       this.isEdit = true
1708
-      console.log("saveData")
1709
-      console.log(tempData)
1710
-      this.$emit("saveData", tempData);
1709
+      this.$emit("saveData", tempData,delData);
1711
     },changeJihao(){
1710
     },changeJihao(){
1711
+
1712
       this.$forceUpdate()
1712
       this.$forceUpdate()
1713
+
1713
     },
1714
     },
1714
     changeSch(row) {
1715
     changeSch(row) {
1715
 
1716
 
2939
         });
2940
         });
2940
       }
2941
       }
2941
     },
2942
     },
2942
-    saveActionThree: function (val) {
2943
+    saveActionThree: function (val,delData) {
2943
       updateEditSchedules(
2944
       updateEditSchedules(
2944
         JSON.stringify(val),
2945
         JSON.stringify(val),
2945
-        JSON.stringify([]),
2946
+        JSON.stringify(delData),
2946
       ).then((rs) => {
2947
       ).then((rs) => {
2947
         var resp = rs.data;
2948
         var resp = rs.data;
2948
         if (resp.state == 1) {
2949
         if (resp.state == 1) {

+ 7 - 22
src/xt_pages/workforce/remind_print_setting_one.vue View File

17
     <div class="app-container" style="background-color: white;">
17
     <div class="app-container" style="background-color: white;">
18
       <div id="print_content">
18
       <div id="print_content">
19
         <div class="print_main_content">
19
         <div class="print_main_content">
20
-          <div class="table_panel">
20
+          <div class="table_panel" v-loding="loading"  element-loading-text="拼命加载中">
21
             <div v-for="(main_collection,index) in scheduleData" :key="index" :class="(org_id == 9671 || org_id == 10340) && parseInt((index+1)%8) == 0  ? 'page-break-after':''">
21
             <div v-for="(main_collection,index) in scheduleData" :key="index" :class="(org_id == 9671 || org_id == 10340) && parseInt((index+1)%8) == 0  ? 'page-break-after':''">
22
              
22
              
23
+
23
               <div class="signPrint" style="font-size:16px;">
24
               <div class="signPrint" style="font-size:16px;">
24
                 <div style="font-size:24px;font-weight: 400;">姓名:
25
                 <div style="font-size:24px;font-weight: 400;">姓名:
25
                   <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
26
                   <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
153
                     <span>上次脱水量:{{ main_collection.prescription.target_ultrafiltration }}ml</span>
154
                     <span>上次脱水量:{{ main_collection.prescription.target_ultrafiltration }}ml</span>
154
                 </div>
155
                 </div>
155
                 <div class="printCell" v-if="org_id==9671 || org_id==9675 || org_id==10340">
156
                 <div class="printCell" v-if="org_id==9671 || org_id==9675 || org_id==10340">
156
-                    <span>上次透析时长:<span v-if="main_collection.lastafterweight!=null">{{ main_collection.lastafterweight.actual_treatment_hour?main_collection.lastafterweight.actual_treatment_hour:"" }}小时{{ main_collection.lastafterweight.actual_treatment_minute?main_collection.lastafterweight.actual_treatment_minute:"" }}分钟</span></span>
157
+                    <span>上次透析时长:{{ main_collection.lastafterweight.actual_treatment_hour }}小时{{ main_collection.lastafterweight.actual_treatment_minute }}分钟</span>
157
                 </div>
158
                 </div>
158
                 <div class="printCell">身份证:
159
                 <div class="printCell">身份证:
159
                     <span v-if="type ==1">{{main_collection.patient.id_card_no}} </span>
160
                     <span v-if="type ==1">{{main_collection.patient.id_card_no}} </span>
236
         printObj: {},
237
         printObj: {},
237
         type: 1,
238
         type: 1,
238
         printDate: '',
239
         printDate: '',
239
-        loading: false
240
+        loading:false,
240
       }
241
       }
241
     },
242
     },
242
     components: {
243
     components: {
263
           week_time: this.week_time,
264
           week_time: this.week_time,
264
           zone: this.zone
265
           zone: this.zone
265
         }
266
         }
266
-
267
-      const loading = this.$loading({
268
-        lock: true,
269
-        text: "Loading",
270
-        spinner: "el-icon-loading",
271
-        background: "rgba(0, 0, 0, 0.7)",
272
-      });
273
-  
274
-       
267
+      
268
+        this.loading = true
275
         getScheduleList(params).then(response => {
269
         getScheduleList(params).then(response => {
276
           if (response.data.state == 1) {
270
           if (response.data.state == 1) {
277
             var list = response.data.data.list
271
             var list = response.data.data.list
278
-            loading.close();
279
-          
272
+            this.loading = false
280
             for (let i = 0; i < list.length; i++) {
273
             for (let i = 0; i < list.length; i++) {
281
               list[i].sort = list[i].number.sort
274
               list[i].sort = list[i].number.sort
282
             }
275
             }
316
             }
309
             }
317
             var str = year + '年' + month + '月' + day + '日  ' + days
310
             var str = year + '年' + month + '月' + day + '日  ' + days
318
             this.currentDate = str
311
             this.currentDate = str
319
-            
320
           }
312
           }
321
         })
313
         })
322
 
314
 
491
         })
483
         })
492
       },
484
       },
493
       getNextScheduleWeekDay() {
485
       getNextScheduleWeekDay() {
494
-       const loading = this.$loading({
495
-          lock: true,
496
-          text: 'Loading',
497
-          spinner: 'el-icon-loading',
498
-          background: 'rgba(0, 0, 0, 0.7)'
499
-        })
500
         const start = moment().weekday(1).format('YYYY-MM-DD') // 本周一
486
         const start = moment().weekday(1).format('YYYY-MM-DD') // 本周一
501
         const end = moment().weekday(7).format('YYYY-MM-DD')
487
         const end = moment().weekday(7).format('YYYY-MM-DD')
502
         var zone = this.zone
488
         var zone = this.zone
538
         getNextScheduleWeekDayOne(params).then(response => {
524
         getNextScheduleWeekDayOne(params).then(response => {
539
           this.scheduleData = []
525
           this.scheduleData = []
540
           if (response.data.state == 1) {
526
           if (response.data.state == 1) {
541
-            loading.close()
542
             var scheduleData = response.data.data.schedule
527
             var scheduleData = response.data.data.schedule
543
 
528
 
544
             for (let i = 0; i < scheduleData.length; i++) {
529
             for (let i = 0; i < scheduleData.length; i++) {

+ 4 - 9
src/xt_pages/workforce/template.vue View File

3188
       })
3188
       })
3189
 
3189
 
3190
 
3190
 
3191
-    },saveData(val){
3191
+    },saveData(val,del_data){
3192
       var tempDataOne = []
3192
       var tempDataOne = []
3193
       for(let i = 0; i < val.length; i++){
3193
       for(let i = 0; i < val.length; i++){
3194
           tempDataOne.push(val[i])
3194
           tempDataOne.push(val[i])
3195
       }
3195
       }
3196
-      this.$refs.table.SetSmartSch(tempDataOne)
3196
+      if(tempDataOne.length > 0){
3197
+        this.$refs.table.SetSmartSch(tempDataOne,del_data)
3198
+      }
3197
     },
3199
     },
3198
     getWeekPanels(val) {
3200
     getWeekPanels(val) {
3199
       getWeekPanels(1,val).then(response => {
3201
       getWeekPanels(1,val).then(response => {
4231
 
4233
 
4232
     },
4234
     },
4233
     submitAction() {
4235
     submitAction() {
4234
-     const loading = this.$loading({
4235
-        lock: true,
4236
-        text: 'Loading',
4237
-        spinner: 'el-icon-loading',
4238
-        background: 'rgba(0, 0, 0, 0.7)'
4239
-      })
4240
       var template
4236
       var template
4241
       if (this.form.firstWeek == 1) {
4237
       if (this.form.firstWeek == 1) {
4242
         template = this.first_template
4238
         template = this.first_template
4266
       }
4262
       }
4267
       synchroSchedule(params).then(response => {
4263
       synchroSchedule(params).then(response => {
4268
         if (response.data.state == 1) {
4264
         if (response.data.state == 1) {
4269
-          loading.close()
4270
           var msg = response.data.data.msg
4265
           var msg = response.data.data.msg
4271
           this.$message.success("同步成功!")
4266
           this.$message.success("同步成功!")
4272
           this.newVisible = false
4267
           this.newVisible = false

+ 13 - 13
src/xt_permission.js View File

12
 
12
 
13
 router.beforeEach((to, from, next) => {
13
 router.beforeEach((to, from, next) => {
14
   // 线上注释
14
   // 线上注释
15
-  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-    store.dispatch('VerifyConfigList', []).then(() => {
17
-      next()
18
-    })
19
-  }
20
-  if (store.getters.permission_routers === undefined) {
21
-    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-      next()
23
-    })
24
-  } else {
25
-    next()
26
-  }
27
-  return
15
+  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+  //   store.dispatch('VerifyConfigList', []).then(() => {
17
+  //     next()
18
+  //   })
19
+  // }
20
+  // if (store.getters.permission_routers === undefined) {
21
+  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+  //     next()
23
+  //   })
24
+  // } else {
25
+  //   next()
26
+  // }
27
+  // return
28
   // 线上注释
28
   // 线上注释
29
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))