Browse Source

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

see999 3 years ago
parent
commit
39b58ad5d7
33 changed files with 6467 additions and 6741 deletions
  1. 17 30
      package-lock.json
  2. 1 0
      package.json
  3. 38 0
      src/api/his/his.js
  4. 8 0
      src/api/schedule.js
  5. 2 1
      src/lang/zh.js
  6. 6 0
      src/router/modules/hospitalCharges.js
  7. 55 44
      src/router/modules/workforce.js
  8. 32 32
      src/views/layout/components/Navbar.vue
  9. 94 17
      src/xt_pages/data/components/consumables.vue
  10. 115 6
      src/xt_pages/data/components/drugs.vue
  11. 47 0
      src/xt_pages/data/components/project.vue
  12. 24 0
      src/xt_pages/data/printTemplate/schedulePrint.vue
  13. 4 7
      src/xt_pages/data/specialDictionary.vue
  14. 3 3
      src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue
  15. 46 7
      src/xt_pages/dialysis/bloodPresssWatch.vue
  16. 7 3
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyThree.vue
  17. 468 2229
      src/xt_pages/hospitalStation/chargeDetailManagement.vue
  18. 5 5
      src/xt_pages/hospitalStation/components/deskPrescription.vue
  19. 234 194
      src/xt_pages/hospitalStation/outpatientChargesManagement.vue
  20. 112 0
      src/xt_pages/outpatientCharges/components/registerDialog.vue
  21. 282 176
      src/xt_pages/outpatientCharges/components/registerDialog9504.vue
  22. 5 0
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue
  23. 55 55
      src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue
  24. 3919 3915
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  25. 2 2
      src/xt_pages/qcd/officesControlAnalysis/time.vue
  26. 1 1
      src/xt_pages/stock/Dialog/goodInfoDailog.vue
  27. 2 2
      src/xt_pages/stock/cancelStockOrder.vue
  28. 2 2
      src/xt_pages/stock/drugs/cancelDrugStockOrder.vue
  29. 2 2
      src/xt_pages/stock/drugs/drugStockFlow.vue
  30. 2 2
      src/xt_pages/stock/stockFlow.vue
  31. 3 0
      src/xt_pages/workforce/appointment.vue
  32. 6 6
      src/xt_pages/workforce/scheduleTablePrint.vue
  33. 868 0
      src/xt_pages/workforce/scheduleTablePrintOne.vue

+ 17 - 30
package-lock.json View File

@@ -2767,6 +2767,12 @@
2767 2767
         "randomfill": "^1.0.3"
2768 2768
       }
2769 2769
     },
2770
+    "crypto-js": {
2771
+      "version": "4.1.1",
2772
+      "resolved": "https://registry.npmmirror.com/crypto-js/-/crypto-js-4.1.1.tgz",
2773
+      "integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==",
2774
+      "dev": true
2775
+    },
2770 2776
     "css-color-names": {
2771 2777
       "version": "0.0.4",
2772 2778
       "resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-0.0.4.tgz",
@@ -4751,8 +4757,7 @@
4751 4757
         "ansi-regex": {
4752 4758
           "version": "2.1.1",
4753 4759
           "bundled": true,
4754
-          "dev": true,
4755
-          "optional": true
4760
+          "dev": true
4756 4761
         },
4757 4762
         "aproba": {
4758 4763
           "version": "1.2.0",
@@ -4775,15 +4780,13 @@
4775 4780
         "balanced-match": {
4776 4781
           "version": "1.0.0",
4777 4782
           "bundled": true,
4778
-          "dev": true,
4779
-          "optional": true
4783
+          "dev": true
4780 4784
         },
4781 4785
         "brace-expansion": {
4782 4786
           "version": "1.1.11",
4783 4787
           "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
4784 4788
           "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
4785 4789
           "dev": true,
4786
-          "optional": true,
4787 4790
           "requires": {
4788 4791
             "balanced-match": "^1.0.0",
4789 4792
             "concat-map": "0.0.1"
@@ -4799,22 +4802,19 @@
4799 4802
         "code-point-at": {
4800 4803
           "version": "1.1.0",
4801 4804
           "bundled": true,
4802
-          "dev": true,
4803
-          "optional": true
4805
+          "dev": true
4804 4806
         },
4805 4807
         "concat-map": {
4806 4808
           "version": "0.0.1",
4807 4809
           "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
4808 4810
           "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
4809
-          "dev": true,
4810
-          "optional": true
4811
+          "dev": true
4811 4812
         },
4812 4813
         "console-control-strings": {
4813 4814
           "version": "1.1.0",
4814 4815
           "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
4815 4816
           "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=",
4816
-          "dev": true,
4817
-          "optional": true
4817
+          "dev": true
4818 4818
         },
4819 4819
         "core-util-is": {
4820 4820
           "version": "1.0.2",
@@ -4944,8 +4944,7 @@
4944 4944
         "inherits": {
4945 4945
           "version": "2.0.3",
4946 4946
           "bundled": true,
4947
-          "dev": true,
4948
-          "optional": true
4947
+          "dev": true
4949 4948
         },
4950 4949
         "ini": {
4951 4950
           "version": "1.3.5",
@@ -4959,7 +4958,6 @@
4959 4958
           "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
4960 4959
           "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
4961 4960
           "dev": true,
4962
-          "optional": true,
4963 4961
           "requires": {
4964 4962
             "number-is-nan": "^1.0.0"
4965 4963
           }
@@ -4976,7 +4974,6 @@
4976 4974
           "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
4977 4975
           "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
4978 4976
           "dev": true,
4979
-          "optional": true,
4980 4977
           "requires": {
4981 4978
             "brace-expansion": "^1.1.7"
4982 4979
           }
@@ -4984,15 +4981,13 @@
4984 4981
         "minimist": {
4985 4982
           "version": "0.0.8",
4986 4983
           "bundled": true,
4987
-          "dev": true,
4988
-          "optional": true
4984
+          "dev": true
4989 4985
         },
4990 4986
         "minipass": {
4991 4987
           "version": "2.3.5",
4992 4988
           "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.3.5.tgz",
4993 4989
           "integrity": "sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA==",
4994 4990
           "dev": true,
4995
-          "optional": true,
4996 4991
           "requires": {
4997 4992
             "safe-buffer": "^5.1.2",
4998 4993
             "yallist": "^3.0.0"
@@ -5013,7 +5008,6 @@
5013 5008
           "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
5014 5009
           "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
5015 5010
           "dev": true,
5016
-          "optional": true,
5017 5011
           "requires": {
5018 5012
             "minimist": "0.0.8"
5019 5013
           }
@@ -5101,8 +5095,7 @@
5101 5095
         "number-is-nan": {
5102 5096
           "version": "1.0.1",
5103 5097
           "bundled": true,
5104
-          "dev": true,
5105
-          "optional": true
5098
+          "dev": true
5106 5099
         },
5107 5100
         "object-assign": {
5108 5101
           "version": "4.1.1",
@@ -5116,7 +5109,6 @@
5116 5109
           "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
5117 5110
           "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
5118 5111
           "dev": true,
5119
-          "optional": true,
5120 5112
           "requires": {
5121 5113
             "wrappy": "1"
5122 5114
           }
@@ -5211,8 +5203,7 @@
5211 5203
         "safe-buffer": {
5212 5204
           "version": "5.1.2",
5213 5205
           "bundled": true,
5214
-          "dev": true,
5215
-          "optional": true
5206
+          "dev": true
5216 5207
         },
5217 5208
         "safer-buffer": {
5218 5209
           "version": "2.1.2",
@@ -5254,7 +5245,6 @@
5254 5245
           "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
5255 5246
           "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
5256 5247
           "dev": true,
5257
-          "optional": true,
5258 5248
           "requires": {
5259 5249
             "code-point-at": "^1.0.0",
5260 5250
             "is-fullwidth-code-point": "^1.0.0",
@@ -5276,7 +5266,6 @@
5276 5266
           "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
5277 5267
           "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
5278 5268
           "dev": true,
5279
-          "optional": true,
5280 5269
           "requires": {
5281 5270
             "ansi-regex": "^2.0.0"
5282 5271
           }
@@ -5324,15 +5313,13 @@
5324 5313
         "wrappy": {
5325 5314
           "version": "1.0.2",
5326 5315
           "bundled": true,
5327
-          "dev": true,
5328
-          "optional": true
5316
+          "dev": true
5329 5317
         },
5330 5318
         "yallist": {
5331 5319
           "version": "3.0.3",
5332 5320
           "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz",
5333 5321
           "integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==",
5334
-          "dev": true,
5335
-          "optional": true
5322
+          "dev": true
5336 5323
         }
5337 5324
       }
5338 5325
     },

+ 1 - 0
package.json View File

@@ -92,6 +92,7 @@
92 92
     "chalk": "2.3.0",
93 93
     "copy-webpack-plugin": "4.3.0",
94 94
     "cross-env": "5.1.1",
95
+    "crypto-js": "^4.1.1",
95 96
     "css-loader": "0.28.7",
96 97
     "eslint": "4.13.1",
97 98
     "eslint-friendly-formatter": "3.0.0",

+ 38 - 0
src/api/his/his.js View File

@@ -364,6 +364,7 @@ export function editTeam(params, data) {
364 364
 }
365 365
 
366 366
 export function createdTemplate(params, data) {
367
+  console.log('param22222222', params)
367 368
   return request({
368 369
     url: '/api/hisprescriptiontemplate/create',
369 370
     method: 'post',
@@ -605,3 +606,40 @@ export function getHisDoctorAdviceInfo(id, params) {
605 606
   })
606 607
 }
607 608
 
609
+export function getHisHospitalPatientList(params) {
610
+  return request({
611
+    url: '/api/hospitalchargedetail/list',
612
+    method: 'get',
613
+    params: params
614
+  })
615
+}
616
+
617
+export function getHisHospitalDetailList(params) {
618
+  return request({
619
+    url: '/api/hospitaldetail/list',
620
+    method: 'get',
621
+    params: params
622
+  })
623
+}
624
+
625
+export function getHisHospitalDetailInfo(params) {
626
+  return request({
627
+    url: '/api/hospitaldetail/info',
628
+    method: 'get',
629
+    params: params
630
+  })
631
+}
632
+
633
+
634
+
635
+export function getMonthHisHospitalDetailInfo(params) {
636
+  return request({
637
+    url: '/api/monthhospitaldetail/get',
638
+    method: 'get',
639
+    params: params
640
+  })
641
+}
642
+
643
+
644
+
645
+

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

@@ -245,3 +245,11 @@ export function getPatientScheduleTemplate(params) {
245 245
     params: params
246 246
   })
247 247
 }
248
+
249
+export function getSolutionSchedule(params) {
250
+  return request({
251
+    url: '/api/schedule/getsolutionschedule',
252
+    method: 'Get',
253
+    params: params
254
+  })
255
+}

+ 2 - 1
src/lang/zh.js View File

@@ -261,7 +261,8 @@ export default {
261 261
 
262 262
     summary_tool: '项目消费明细汇总',
263 263
     labelPrint: '标签打印',
264
-    faPiao: '发票设置'
264
+    faPiao: '发票设置',
265
+    chargeDetailManagement:'收费明细'
265 266
   },
266 267
   navbar: {
267 268
     logOut: '退出登录',

+ 6 - 0
src/router/modules/hospitalCharges.js View File

@@ -42,6 +42,12 @@ export default {
42 42
       name: 'summary',
43 43
       meta: { title: 'summary', noCache: true }
44 44
     },
45
+    {
46
+      path: '/hospitalCharges/chargeDetailManagement',
47
+      component: () => import('@/xt_pages/hospitalStation/chargeDetailManagement'),
48
+      name: 'chargeDetailManagement',
49
+      meta: { title: 'chargeDetailManagement', noCache: true }
50
+    },
45 51
     // {
46 52
     //   path: '/outpatientCharges/incomeStatistics',
47 53
     //   component: () => import('@/xt_pages/outpatientCharges/incomeStatistics'),

+ 55 - 44
src/router/modules/workforce.js View File

@@ -60,49 +60,60 @@ export default {
60 60
       noCache: true
61 61
     }
62 62
   },
63
-    {
64
-      path: '/schedule/remind/print',
65
-      component: () => import('@/xt_pages/workforce/remind_print'),
66
-      name: 'remind_print',
67
-      hidden: true,
68
-      is_menu: false,
69
-      meta: {
70
-        title: 'remind_print',
71
-        noCache: true
72
-      }
73
-    },
74
-    {
75
-      path: '/schedule/remind/print/next',
76
-      component: () => import('@/xt_pages/workforce/next_remind_print'),
77
-      name: 'next_remind_print',
78
-      hidden: true,
79
-      is_menu: false,
80
-      meta: {
81
-        title: 'next_remind_print',
82
-        noCache: true
83
-      }
84
-    },
85
-    {
86
-      path: '/schedule/remind/print/setting',
87
-      component: () => import('@/xt_pages/workforce/remind_print_setting'),
88
-      name: 'remind_print_setting',
89
-      hidden: true,
90
-      is_menu: false,
91
-      meta: {
92
-        title: 'remind_print_setting',
93
-        noCache: true
94
-      }
95
-    },
96
-    {
97
-      path: '/scheduleTablePrint',
98
-      component: () => import('@/xt_pages/workforce/scheduleTablePrint'),
99
-      name: 'scheduleTablePrint',
100
-      hidden: true,
101
-      is_menu: false,
102
-      meta: {
103
-        title: 'scheduleTablePrint',
104
-        noCache: true
105
-      }
106
-    },
63
+  {
64
+    path: '/schedule/remind/print',
65
+    component: () => import('@/xt_pages/workforce/remind_print'),
66
+    name: 'remind_print',
67
+    hidden: true,
68
+    is_menu: false,
69
+    meta: {
70
+      title: 'remind_print',
71
+      noCache: true
72
+    }
73
+  },
74
+  {
75
+    path: '/schedule/remind/print/next',
76
+    component: () => import('@/xt_pages/workforce/next_remind_print'),
77
+    name: 'next_remind_print',
78
+    hidden: true,
79
+    is_menu: false,
80
+    meta: {
81
+      title: 'next_remind_print',
82
+      noCache: true
83
+    }
84
+  },
85
+  {
86
+    path: '/schedule/remind/print/setting',
87
+    component: () => import('@/xt_pages/workforce/remind_print_setting'),
88
+    name: 'remind_print_setting',
89
+    hidden: true,
90
+    is_menu: false,
91
+    meta: {
92
+      title: 'remind_print_setting',
93
+      noCache: true
94
+    }
95
+  },
96
+  {
97
+    path: '/scheduleTablePrint',
98
+    component: () => import('@/xt_pages/workforce/scheduleTablePrint'),
99
+    name: 'scheduleTablePrint',
100
+    hidden: true,
101
+    is_menu: false,
102
+    meta: {
103
+      title: 'scheduleTablePrint',
104
+      noCache: true
105
+    }
106
+  },
107
+  {
108
+    path: '/scheduleTablePrintOne',
109
+    component: () => import('@/xt_pages/workforce/scheduleTablePrintOne'),
110
+    name: 'scheduleTablePrintOne',
111
+    hidden: true,
112
+    is_menu: false,
113
+    meta: {
114
+      title: 'scheduleTablePrintOne',
115
+      noCache: true
116
+    }
117
+  }
107 118
   ]
108 119
 }

+ 32 - 32
src/views/layout/components/Navbar.vue View File

@@ -125,33 +125,33 @@
125 125
       <div>
126 126
         <!-- <i class="el-icon-question"></i>
127 127
         <a href="https://sso.kuyicloud.com/help" target="_blank">帮助中心</a> -->
128
-        <div class="fixedBox">
129
-          <div class="fixed-item" @mouseover="mouseOver" @mouseleave="leave">
130
-            <i class="el-icon-chat-line-round"></i>
131
-            <div class="fixed-text">联系客户经理</div>
132
-            <div class="fixed-wrap" v-show="wrap1">
133
-              <div class="fixed-inner">
134
-                <div class="fixed-inner-item">您的专属客户经理:{{ information.name }}</div>
135
-                <div class="fixed-inner-item">电话:{{ information.phone }}</div>
136
-                <div class="fixed-inner-item">微信:{{ information.wechat }}</div>
137
-                <div class="fixed-inner-item">QQ:{{ information.qqchat }}</div>
138
-                <div class="fixed-inner-item">邮箱:{{ information.email }}</div>
139
-                <div class="fixed-inner-triangle"></div>
140
-              </div>
141
-            </div>
142
-          </div>
143
-          <div class="fixed-item" @mouseover="mouseOver1" @mouseleave="leave1">
144
-            <i class="el-icon-full-screen"></i>
145
-            <div class="fixed-text">微信联系</div>
146
-            <div class="fixed-wrap" v-show="wrap2">
147
-              <div class="fixed-inner">
148
-                <img :src="information.wechat_link" alt="">
149
-                <div>扫码加微信</div>
150
-                <div class="fixed-inner-triangle"></div>
151
-              </div>
152
-            </div>
153
-          </div>
154
-        </div>
128
+<!--        <div class="fixedBox">-->
129
+<!--          <div class="fixed-item" @mouseover="mouseOver" @mouseleave="leave">-->
130
+<!--            <i class="el-icon-chat-line-round"></i>-->
131
+<!--            <div class="fixed-text">联系客户经理</div>-->
132
+<!--            <div class="fixed-wrap" v-show="wrap1">-->
133
+<!--              <div class="fixed-inner">-->
134
+<!--                <div class="fixed-inner-item">您的专属客户经理:{{ information.name }}</div>-->
135
+<!--                <div class="fixed-inner-item">电话:{{ information.phone }}</div>-->
136
+<!--                <div class="fixed-inner-item">微信:{{ information.wechat }}</div>-->
137
+<!--                <div class="fixed-inner-item">QQ:{{ information.qqchat }}</div>-->
138
+<!--                <div class="fixed-inner-item">邮箱:{{ information.email }}</div>-->
139
+<!--                <div class="fixed-inner-triangle"></div>-->
140
+<!--              </div>-->
141
+<!--            </div>-->
142
+<!--          </div>-->
143
+<!--          <div class="fixed-item" @mouseover="mouseOver1" @mouseleave="leave1">-->
144
+<!--            <i class="el-icon-full-screen"></i>-->
145
+<!--            <div class="fixed-text">微信联系</div>-->
146
+<!--            <div class="fixed-wrap" v-show="wrap2">-->
147
+<!--              <div class="fixed-inner">-->
148
+<!--                <img :src="information.wechat_link" alt="">-->
149
+<!--                <div>扫码加微信</div>-->
150
+<!--                <div class="fixed-inner-triangle"></div>-->
151
+<!--              </div>-->
152
+<!--            </div>-->
153
+<!--          </div>-->
154
+<!--        </div>-->
155 155
       </div>
156 156
     </div>
157 157
   </div>
@@ -320,11 +320,11 @@ export default {
320 320
       axios.get('/api/index/gettoken/'+ orgId + '/'+ adminUserId
321 321
         ).then((res) => {
322 322
         console.log('res',res.data)
323
-        
323
+
324 324
         if(res.data.code == 0){
325 325
           let token = res.data.data.token
326 326
           localStorage.setItem("token",token)
327
-          let http = 'wss://socket.sgjyun.com?token=' 
327
+          let http = 'wss://socket.sgjyun.com?token='
328 328
           // let http = 'ws://socket.szjkhd.com?token='//测试
329 329
           console.log(this.$store.state.user.websocket)
330 330
           this.$store.state.user.websocket = new ReconnectingWebSocket(
@@ -336,7 +336,7 @@ export default {
336 336
               this.showWsErr = true;
337 337
               this.wsErrMsg = "网络已断开,请检查网络后重新打开页面";
338 338
               console.log('navigator',navigator)
339
-              let http = 'wss://socket.sgjyun.com?token=' 
339
+              let http = 'wss://socket.sgjyun.com?token='
340 340
               // let http = 'ws://socket.szjkhd.com?token=' //测试
341 341
               let token = localStorage.getItem("token")
342 342
               this.$store.state.user.websocket = new ReconnectingWebSocket(
@@ -351,7 +351,7 @@ export default {
351 351
             this.websocket.send("1");
352 352
           }, 30000);
353 353
         }
354
-        
354
+
355 355
       }).catch(error => {
356 356
           // window.location.href = error.response.data.redirect;
357 357
         });
@@ -375,7 +375,7 @@ export default {
375 375
       })
376 376
     }
377 377
   },
378
-  
378
+
379 379
   created() {
380 380
     this.getConnect()
381 381
     getOrgs().then(response => {

+ 94 - 17
src/xt_pages/data/components/consumables.vue View File

@@ -34,6 +34,15 @@
34 34
             :value="item.value">
35 35
           </el-option>
36 36
         </el-select>
37
+        <span style="color: #909399;font-size:14px;">耗材类型 : &nbsp;</span>
38
+        <el-select v-model="is_type" style="width:140px;margin-right:10px;" placeholder="请选择" @change="changeTypeList">
39
+          <el-option
40
+            v-for="(item,index) in goodTypeList"
41
+            :key="index"
42
+            :label="item.type_name"
43
+            :value="item.id">
44
+          </el-option>
45
+        </el-select>
37 46
 
38 47
       </div>
39 48
       <div>
@@ -63,6 +72,14 @@
63 72
           size="small"
64 73
         >下载日志
65 74
         </el-button>
75
+        <!-- <el-button
76
+          style="margin-left:10px;"
77
+          @click="exportList()"
78
+          class="filter-item"
79
+          type="primary"
80
+          size="small"
81
+        >点击导出
82
+        </el-button> -->
66 83
       </div>
67 84
 
68 85
     <el-table
@@ -94,9 +111,9 @@
94 111
           {{ getGoodTypeByID(scope.row.good_type_id) }}
95 112
         </template>
96 113
       </el-table-column>
97
-      <el-table-column label="耗材编号" width="140" align="center">
114
+      <el-table-column label="注册编码" width="140" align="center">
98 115
         <template slot-scope="scope">
99
-          {{ scope.row.good_number }}
116
+          {{ scope.row.register_number }}
100 117
         </template>
101 118
       </el-table-column>
102 119
 
@@ -146,7 +163,7 @@
146 163
     <el-pagination
147 164
       @size-change="handleSizeChange"
148 165
       @current-change="handleCurrentChange"
149
-      :page-sizes="[10, 50, 100]"
166
+      :page-sizes="[10, 50, 100,500,1000]"
150 167
       :page-size="10"
151 168
       background
152 169
       align="right"
@@ -316,7 +333,6 @@
316 333
               register_number:"",
317 334
             },
318 335
             isVisibility: false,
319
-
320 336
           }
321 337
         },
322 338
         selectDrug:[],
@@ -339,7 +355,10 @@
339 355
         dealers:[],
340 356
         exportLogVisible:false,
341 357
         logs: [],
342
-        goodKindList:[]
358
+        goodKindList:[],
359
+        goodTypeList:[{id:0,type_name:"全部"}],
360
+        is_type:0,
361
+        medicalInsuranceLevelList:[]
343 362
       }
344 363
     },
345 364
     methods: {
@@ -745,6 +764,7 @@
745 764
           is_charge: this.is_charge,
746 765
           is_mark:this.is_record,
747 766
           manufacturer:this.manufacturer,
767
+          is_type:this.is_type,
748 768
         };
749 769
 
750 770
         getGoodInfoList(params).then(response => {
@@ -790,7 +810,7 @@
790 810
         })
791 811
       },
792 812
       goodInfoDialogComfirm: function(val) {
793
-        console.log("val22222",val)
813
+        
794 814
         if (val.isCreated == 2) {
795 815
           //修改
796 816
           val['id'] = this.goodInfo.editGoodId;
@@ -858,9 +878,8 @@
858 878
       },
859 879
       goodInfoDialogCancle: function() {
860 880
         this.$refs.addConsumable.hide()
861
-      },getGoodTypeByID(id){
862
-        console.log( id)
863
-
881
+      },
882
+      getGoodTypeByID(id){
864 883
         let name = ""
865 884
         for(let i = 0;  i < this.goodInfo.goodInfoDialog.formValue.goodType.length;i++){
866 885
           if(this.goodInfo.goodInfoDialog.formValue.goodType[i].id == id){
@@ -883,9 +902,7 @@
883 902
               if (response.data.data.goodType[i].type == 1) {
884 903
                 response.data.data.goodType[i].type_name = response.data.data.goodType[i].type_name + '(系统设定)'
885 904
               }
886
-              this.goodInfo.goodInfoDialog.formValue.goodType.push(
887
-                response.data.data.goodType[i]
888
-              )
905
+              this.goodInfo.goodInfoDialog.formValue.goodType.push(response.data.data.goodType[i])
889 906
             }
890 907
             if (this.goodInfo.goodInfoDialog.formValue.goodType.length <= 0) {
891 908
               this.$message.error('请先新增商品类型');
@@ -941,6 +958,11 @@
941 958
             this.$message.error(response.data.msg);
942 959
             return false
943 960
           } else {
961
+           
962
+            for(let i=0;i<response.data.data.goodType.length;i++){
963
+              this.goodTypeList.push(response.data.data.goodType[i])
964
+            }
965
+ 
944 966
             for (let i = 0; i < response.data.data.goodType.length; i++) {
945 967
               if (response.data.data.goodType[i].type == 1) {
946 968
                 response.data.data.goodType[i].type_name = response.data.data.goodType[i].type_name + '(系统设定)'
@@ -1127,7 +1149,10 @@
1127 1149
         this.getList()
1128 1150
       },
1129 1151
       changeRecord(){
1130
-         this.getList()
1152
+        this.getList()
1153
+      },
1154
+      changeTypeList(){
1155
+        this.getList()
1131 1156
       },
1132 1157
       handleSuccess({ results, header }) {
1133 1158
 
@@ -1473,14 +1498,66 @@
1473 1498
        getInitializtion().then(response=>{
1474 1499
          if(response.data.state == 1){
1475 1500
            var goodKindList = response.data.data.goodKindList;
1476
-
1501
+           
1477 1502
            this.goodKindList = goodKindList
1478
-
1479
-
1503
+           var medicalInsuranceLevelList =  response.data.data.medicalInsuranceLevelList
1504
+           console.log("医保等级",medicalInsuranceLevelList)
1505
+           this.medicalInsuranceLevelList = medicalInsuranceLevelList
1480 1506
          }
1481 1507
        })
1482
-      }
1508
+      },
1509
+      exportList(){
1510
+        import('@/vendor/Export2Excel').then(excel => {
1511
+         console.log("this.table",this.goodInfo.goodInfoData)
1512
+         
1513
+         for(let i=0;i<this.goodInfo.goodInfoData.length;i++){
1514
+           for(let j=0;j<this.goodKindList.length;j++){
1515
+              if(this.goodInfo.goodInfoData[i].good_kind == this.goodKindList[j].value){
1516
+                 this.goodInfo.goodInfoData[i].good_kind_name = this.goodKindList[i].name
1517
+              }
1518
+           }
1519
+           for(let z=0;z<this.goodInfo.goodInfoDialog.formValue.goodType;z++){
1520
+              if(this.goodInfo.goodInfoDialog.formValue[z].id == this.goodInfo.goodInfoData[i].good_type_id){
1521
+                 this.goodInfo.goodInfoData[i].good_type_name = this.goodInfo.goodInfoDialog.formValue[z].name
1522
+              }
1523
+           }
1483 1524
 
1525
+           for(let y=0;y<this.medicalInsuranceLevelList.length;y++){
1526
+              if(this.goodInfo.goodInfoData[i].medical_insurance_level == this.medicalInsuranceLevelList[y].value){
1527
+                 this.goodInfo.goodInfoData[i].medical_insurance_level_name = this.medicalInsuranceLevelList[y].name
1528
+              }
1529
+           }
1530
+
1531
+           for(let s=0;s<this.manufacturers.length;s++){
1532
+             if(this.manufacturers[s].id == this.goodInfo.goodInfoData[i].manufacturer){
1533
+                this.goodInfo.goodInfoData[i].manufacturer_name =  this.manufacturers[s].manufacturer_name
1534
+             }
1535
+           }
1536
+          
1537
+          for(let a=0;a<this.dealers.length;a++){
1538
+             if(this.dealers[a].id == this.goodInfo.goodInfoData[i].dealer){
1539
+                 this.goodInfo.goodInfoData[i].dealer_name = this.dealers[a].dealer_name 
1540
+             } 
1541
+          }
1542
+         }
1543
+        
1544
+         const tHeader = ['耗材名称','耗材种类','耗材类型','医保等级','规格型号','生产厂商','单位','零价','库存警戒','经销商','最新进价','医保编码','社保目录编码']
1545
+         const filterVal = ['good_name', 'good_kind_name','good_type_name','medical_insurance_level_name','specification_name','manufacturer_name','packing_unit','packing_price','stock_warn_count','dealer_name','buy_price','medical_insurance_number','social_security_directory_code'] 
1546
+         
1547
+         const data = this.formatJson(filterVal,this.goodInfo.goodInfoData)
1548
+     
1549
+         excel.export_json_to_excel({
1550
+           header: tHeader,
1551
+           data,
1552
+           filename: '耗材信息'
1553
+         })
1554
+          this.downloadLoading = false
1555
+    
1556
+        })
1557
+       },
1558
+       formatJson(filterVal, jsonData) {
1559
+        return jsonData.map(v => filterVal.map(j => v[j]))
1560
+       },
1484 1561
     },
1485 1562
     created() {
1486 1563
       this.getAllGoodType();

+ 115 - 6
src/xt_pages/data/components/drugs.vue View File

@@ -65,6 +65,14 @@
65 65
           size="small"
66 66
         >下载日志
67 67
         </el-button>
68
+       <!-- <el-button
69
+          style="margin-left:10px;"
70
+          @click="exportList()"
71
+          class="filter-item"
72
+          type="primary"
73
+          size="small"
74
+        >点击导出
75
+        </el-button> -->
68 76
       </div>
69 77
     <el-table :data="list" border style="width: 100%" :row-style="{ color: '#303133' }"
70 78
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}"
@@ -99,6 +107,16 @@
99 107
         <template slot-scope="scope">
100 108
           <div>{{scope.row.retail_price}}</div>
101 109
         </template>
110
+      </el-table-column>
111
+      <el-table-column label="拆零价" width="100" align="center">
112
+        <template slot-scope="scope">
113
+          <div>{{scope.row.min_price}}</div>
114
+        </template>
115
+      </el-table-column>
116
+      <el-table-column label="包装价" width="100" align="center">
117
+        <template slot-scope="scope">
118
+          <div>{{scope.row.retail_price}}</div>
119
+        </template>
102 120
       </el-table-column>
103 121
        <el-table-column prop="date" label="国家编码" width="100" align="center">
104 122
         <template slot-scope="scope">
@@ -120,7 +138,7 @@
120 138
           <div>{{getDealer(scope.row.dealer)}}</div>
121 139
         </template>
122 140
       </el-table-column>
123
-      <el-table-column prop="date" label="备案日期" align="center" width="100">
141
+      <!-- <el-table-column prop="date" label="备案日期" align="center" width="100">
124 142
         <template slot-scope="scope">
125 143
           <span>{{getTime(scope.row.record_date)}}</span>
126 144
         </template>
@@ -129,7 +147,7 @@
129 147
         <template slot-scope="scope">
130 148
           <div>{{scope.row.drug_remark}}</div>
131 149
         </template>
132
-      </el-table-column>
150
+      </el-table-column> -->
133 151
       <el-table-column label="状态" width="60" align="center">
134 152
         <template slot-scope="scope">
135 153
           <div>{{scope.row.drug_status.indexOf('停用') == -1 ? '启用':'停用' }}</div>
@@ -167,7 +185,7 @@
167 185
     <el-pagination
168 186
       @size-change="handleSizeChange"
169 187
       @current-change="handleCurrentChange"
170
-      :page-sizes="[10, 50, 100]"
188
+      :page-sizes="[10, 50, 100,500,1000]"
171 189
       :page-size="10"
172 190
       background
173 191
       align="right"
@@ -221,7 +239,7 @@
221 239
   import selfPayment from './selfPayment'
222 240
   import maintain from './maintain'
223 241
   import addDrugs from './addDrugs'
224
-  import { GetAllManufacturer,postDrugInformation } from '@/api/stock'
242
+  import { GetAllManufacturer,postDrugInformation,getInitializtion } from '@/api/stock'
225 243
   import { getDataConfig,getDictionaryDataConfig } from "@/utils/data";
226 244
   import { uParseTime } from '@/utils/tools'
227 245
   import {
@@ -392,7 +410,15 @@
392 410
         selectDrug:[],
393 411
         dialogVisible:false,
394 412
         exportLogVisible:false,
395
-        logs:[]
413
+        logs:[],
414
+        drugTypeList:[],
415
+        drugCategoryList:[],
416
+        drugDosageFormList:[],
417
+        medicalInsuranceLevelList:[],
418
+        drugControlList:[],
419
+        drugClassifyList:[],
420
+        statisticsCategoryList:[],
421
+        pharmacologyCategoryList:[],
396 422
       }
397 423
     },
398 424
     methods: {
@@ -1451,13 +1477,96 @@
1451 1477
         return getDictionaryDataConfig(module,filed_name)
1452 1478
       },
1453 1479
 
1480
+      exportList(){
1481
+         import('@/vendor/Export2Excel').then(excel => {
1482
+         
1483
+        
1484
+         console.log("this.table",this.list)
1485
+
1486
+         for(let i=0;i<this.list.length;i++){
1487
+          for(let j=0;j<this.drugCategoryList.length;j++){
1488
+              if(this.list[i].drug_category == this.drugCategoryList[j].value){
1489
+                 this.list[i].drug_category_name = this.drugCategoryList[j].name
1490
+              }  
1491
+          }
1492
+           for(let z=0;z<this.drugDosageFormList.length;z++){
1493
+              if(this.list[i].drug_dosage_form == this.drugDosageFormList[z].value){
1494
+                this.list[i].drug_dosage_form_name = this.drugDosageFormList[z].name
1495
+              }
1496
+           }
1497
+           for(let h=0;h<this.drugClassifyList.length;h++){
1498
+              if(this.list[i].drug_classify == this.drugClassifyList[h].value){
1499
+                 this.list[i].drug_classify_name = this.drugClassifyList[h].name
1500
+              }
1501
+           }
1502
+           for(let y=0;y<this.manufacturers.length;y++){
1503
+             if(this.list[i].manufacturer == this.manufacturers[y].id){
1504
+                this.list[i].manufacturer_name = this.manufacturers[y].manufacturer_name
1505
+             }
1506
+           }
1507
+           for(let s=0;s<this.dealer.length;s++){
1508
+             if(this.list[i].dealer == this.dealer[s].id){
1509
+               this.list[i].dealer_name = this.dealer[s].dealer_name
1510
+             }
1511
+           }
1512
+          this.list[i].specification_name = this.list[i].dose + this.list[i].dose_unit + this.list[i].min_number + this.list[i].min_unit + "/"+this.list[i].max_unit
1513
+         }
1514
+
1515
+         const tHeader = ['药品名称','药品规格','剂量','剂量单位','拆零','拆零单位','包装单位','药品类型','库存警戒','产地','药品剂型','拆零零售价','包装零售价','进货价','药物分类','默认单次用量','默认单次用量单位','生产厂商','经销商','医保编码','社保目录编码']
1516
+         const filterVal = ['drug_name', 'specification_name','dose','dose_unit','min_number','min_unit','max_unit','drug_category_name','drug_stock_limit','drug_origin_place','drug_dosage_form_name','min_price','retail_price','last_price','drug_classify_name','drug_dose','drug_dose_unit','manufacturer_name','dealer_name','medical_insurance_number','social_security_directory_code'] 
1517
+         
1518
+         const data = this.formatJson(filterVal,this.list)
1519
+     
1520
+         excel.export_json_to_excel({
1521
+           header: tHeader,
1522
+           data,
1523
+           filename: '药品信息'
1524
+         })
1525
+          this.downloadLoading = false
1526
+    
1527
+        })
1528
+       },
1529
+       formatJson(filterVal, jsonData) {
1530
+        return jsonData.map(v => filterVal.map(j => v[j]))
1531
+       },
1532
+      getInitializtion(){
1533
+        getInitializtion().then(response=>{
1534
+           if(response.data.state ==1){
1535
+             var drugCategoryList =  response.data.data.drugCategoryList
1536
+             console.log("药品类型",drugCategoryList)
1537
+             this.drugCategoryList = drugCategoryList
1538
+             var drugTypeList = response.data.data.drugTypeList
1539
+
1540
+              this.drugTypeList = drugTypeList
1541
+             var drugDosageFormList =  response.data.data.drugDosageFormList
1542
+             console.log("药品剂型",drugDosageFormList)
1543
+             this.drugDosageFormList = drugDosageFormList
1544
+             var medicalInsuranceLevelList =  response.data.data.medicalInsuranceLevelList
1545
+             console.log("医保登记",medicalInsuranceLevelList)
1546
+             this.medicalInsuranceLevelList = medicalInsuranceLevelList
1547
+             var drugControlList = response.data.data.drugControlList
1548
+             console.log("开药控制",drugControlList)
1549
+             this.drugControlList = drugControlList
1550
+             var drugClassifyList = response.data.data.drugClassifyList
1551
+             console.log("药物分类",drugClassifyList)
1552
+             this.drugClassifyList = drugClassifyList
1553
+             var statisticsCategoryList =  response.data.data.statisticsCategoryList
1554
+             console.log("统计分类",statisticsCategoryList)
1555
+             this.statisticsCategoryList = statisticsCategoryList
1556
+             var pharmacologyCategoryList = response.data.data.pharmacologyCategoryList
1557
+             console.log("药理分类",pharmacologyCategoryList)
1558
+             this.pharmacologyCategoryList = pharmacologyCategoryList
1559
+           }
1560
+        })
1561
+      },
1562
+
1454 1563
     },
1455 1564
     created() {
1456 1565
 
1457 1566
       this.getList();
1458 1567
       this.getAllManufacturer();
1459 1568
       this.GetAllConfig()
1460
-
1569
+      this.getInitializtion()
1461 1570
     }
1462 1571
   }
1463 1572
 </script>

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

@@ -61,6 +61,14 @@
61 61
           size="small"
62 62
         >下载日志
63 63
         </el-button>
64
+        <!-- <el-button
65
+          style="margin-left:10px;"
66
+          @click="exportList()"
67
+          class="filter-item"
68
+          type="primary"
69
+          size="small"
70
+        >点击导出
71
+        </el-button> -->
64 72
       </div>
65 73
         <el-table :data="tableData" border style="width: 100%" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}"  @selection-change="handleSelectionChange">
66 74
             <el-table-column
@@ -892,6 +900,45 @@ export default {
892 900
       getDictionaryDataConfig(module, filed_name) {
893 901
           return getDictionaryDataConfig(module, filed_name)
894 902
       },
903
+      exportList(){
904
+        import('@/vendor/Export2Excel').then(excel => {
905
+        
906
+         for(let i=0;i<this.tableData.length;i++){
907
+           for(let j=0;j<this.getDictionaryDataConfig('system','cost_classify').length;j++){
908
+              if(this.tableData[i].cost_classify == this.getDictionaryDataConfig('system','cost_classify')[j].id){
909
+                 this.tableData[i].cost_classify_name = this.getDictionaryDataConfig('system','cost_classify')[j].name 
910
+              }
911
+           }
912
+           for(let y=0;y<this.getDictionaryDataConfig('system','medical_insurance_level').length;y++){
913
+              if(this.tableData[i].medical_coverage == this.getDictionaryDataConfig('system','medical_insurance_level')[y].id){
914
+                 this.tableData[i].medical_coverage_name = this.getDictionaryDataConfig('system','medical_insurance_level')[y].name 
915
+              }
916
+           }
917
+           for(let a=0;a<this.departMentList.length;a++){
918
+             if(this.tableData[i].executive_section == this.departMentList[a].id){
919
+                this.tableData[i].executive_section_name = this.departMentList[a].name
920
+             }
921
+           }
922
+         }
923
+          console.log("this.table",this.tableData)
924
+         const tHeader = ['项目名称','零价','单位','费用类别','执行科室','医保等级','国家编码','社保目录编码']
925
+         const filterVal = ['project_name', 'price','unit','cost_classify_name','executive_section_name','medical_coverage_name','medical_code','social_security_directory_code'] 
926
+         
927
+         const data = this.formatJson(filterVal,this.tableData)
928
+     
929
+         excel.export_json_to_excel({
930
+           header: tHeader,
931
+           data,
932
+           filename: '项目信息'
933
+         })
934
+          this.downloadLoading = false
935
+    
936
+        })
937
+       },
938
+       formatJson(filterVal, jsonData) {
939
+        return jsonData.map(v => filterVal.map(j => v[j]))
940
+       },
941
+     
895 942
     },
896 943
     created(){
897 944
       this.getlist();

+ 24 - 0
src/xt_pages/data/printTemplate/schedulePrint.vue View File

@@ -56,6 +56,30 @@
56 56
         <el-radio v-model="radio" label="2" @change="change">模版二</el-radio
57 57
         >
58 58
         </el-col>
59
+
60
+       <el-col
61
+        :span="6"
62
+        style="margin-left: 100px;margin-right: 100px;text-align: center"
63
+        >
64
+        <div
65
+            @click="imgClick('https://kuyi.shengws.com/tempSchedule2.jpg')"
66
+        >
67
+            <el-tooltip
68
+            class="item"
69
+            effect="dark"
70
+            content="点击查看大图"
71
+            placement="top-start"
72
+            :hide-after="2000"
73
+            >
74
+            <el-image
75
+                style="width: 200px; height: 200px"
76
+                :src="require('@/assets/home/222.jpg')"
77
+            ></el-image>
78
+            </el-tooltip>
79
+        </div>
80
+        <el-radio v-model="radio" label="3" @change="change">模版三</el-radio
81
+        >
82
+        </el-col>
59 83
     </el-row>
60 84
    
61 85
 

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

@@ -18,21 +18,18 @@
18 18
         <inspection v-if="activeName == 4"></inspection>
19 19
         </el-tab-pane>
20 20
         <el-tab-pane label="生产厂商" name="5">
21
-          <!--<manufacturer></manufacturer>-->
21
+         
22 22
           <manufacturer v-if="activeName == 5"></manufacturer>
23 23
         </el-tab-pane>
24 24
         <el-tab-pane label="经销商" name="6">
25
-          <!--<supplier></supplier>-->
25
+         
26 26
           <dealer v-if="activeName == 6"></dealer>
27 27
         </el-tab-pane>
28 28
         <el-tab-pane label="疾病类型" name="7">
29
-        <!--<manufacturer></manufacturer>-->
29
+       
30 30
         <diagnosis v-if="activeName == 7"></diagnosis>
31 31
       </el-tab-pane>
32
-        <!--<el-tab-pane label="医疗类别" name="8">-->
33
-          <!--&lt;!&ndash;<manufacturer></manufacturer>&ndash;&gt;-->
34
-          <!--<diagnosis></diagnosis>-->
35
-        <!--</el-tab-pane>-->
32
+      
36 33
         <el-tab-pane label="附加收费配置" name="8">
37 34
           <addtion v-if="activeName == 8"></addtion>
38 35
         </el-tab-pane>

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

@@ -66,7 +66,7 @@
66 66
                     <div class="inline_block" style="margin-left: 10px;">
67 67
                         透析次数:
68 68
                         <div class="under_line" style="width: 80px;text-align: center;">
69
-                            {{ record.patient.total_dialysis + record.patient.user_sys_before_count }}
69
+                            {{ record.Count + record.patient.user_sys_before_count }}
70 70
                         </div>
71 71
                     </div>
72 72
                 </div>
@@ -713,8 +713,8 @@ export default {
713 713
           this.org_template_info = resp.data.templateInfo
714 714
 
715 715
           this.records = this.records.concat(resp.data.schedules)
716
-
717
-
716
+          console.log("记录23323322332",this.records)
717
+ 
718 718
 
719 719
           for (const recordIndex in this.records) {
720 720
             var dlegh = 0

+ 46 - 7
src/xt_pages/dialysis/bloodPresssWatch.vue View File

@@ -353,8 +353,36 @@
353 353
         <el-button type="primary" @click="changeSearchMode">{{
354 354
           search_mode == 1 ? "改为病人查询" : "改为日期查询"
355 355
         }}</el-button>
356
-
357
-        <!-- <el-button type="primary" :disabled="selecting_schs.length == 0" @click="batchPrintAction">打印</el-button> -->
356
+      </div>
357
+      <div class="cell clearfix"  v-show="search_mode == 2">
358
+         <label class="title">
359
+          <span class="name">日期查询</span>:
360
+        </label>
361
+        <el-date-picker
362
+          v-model="listQuery.start_time"
363
+          prefix-icon="el-icon-date"
364
+          @change="changeStartTime"
365
+          style="width: 250px;"
366
+          type="date"
367
+          placeholder="选择日期时间"
368
+          align="right"
369
+          :picker-options="pickerOptions1"
370
+          format="yyyy-MM-dd"
371
+          value-format="timestamp"
372
+        ></el-date-picker>
373
+        -
374
+        <el-date-picker
375
+          v-model="listQuery.end_time"
376
+          prefix-icon="el-icon-date"
377
+          @change="changeEndTime"
378
+          style="width: 250px;"
379
+          type="date"
380
+          placeholder="选择日期时间"
381
+          align="right"
382
+          :picker-options="pickerOptions1"
383
+          format="yyyy-MM-dd"
384
+          value-format="timestamp"
385
+        ></el-date-picker>
358 386
       </div>
359 387
       <div class="cell clearfix">
360 388
         <label class="title"> <span class="name">排班班次</span> : </label>
@@ -480,7 +508,7 @@
480 508
         align="right"
481 509
         @size-change="handleSizeChange"
482 510
         @current-change="handleCurrentChange"
483
-        :page-sizes="[10, 20, 30, 50]"
511
+        :page-sizes="[10, 20, 30, 50,100]"
484 512
         :page-size="10"
485 513
         background
486 514
         style="margin-top:20px;"
@@ -602,10 +630,13 @@ export default {
602 630
         schedul_type: 0,
603 631
         partition_type: 0,
604 632
         schedul_time: "",
605
-        keywords: ""
633
+        keywords: "",
634
+        start_time:"",
635
+        end_time:"",
606 636
       },
607 637
       selecting_schs: [],
608
-      partitionArr: []
638
+      partitionArr: [],
639
+  
609 640
     };
610 641
   },
611 642
   created() {
@@ -696,6 +727,13 @@ export default {
696 727
       this.listQuery.schedul_time = this.time;
697 728
       this.getSchedualPatientList();
698 729
     },
730
+    changeStartTime(){
731
+      this.getSchedualPatientList()
732
+    },
733
+    changeEndTime(){
734
+      
735
+      this.getSchedualPatientList()
736
+    },
699 737
     getAllZone: function() {
700 738
       GetAllZone().then(response => {
701 739
         if (response.data.state == 0) {
@@ -714,9 +752,10 @@ export default {
714 752
       } else {
715 753
         this.listQuery.schedul_time = "";
716 754
       }
755
+      console.log("params332322332323232",this.listQuery)
717 756
       this.SchedualPatientsTableData = [];
718 757
       getSchedualPatient(this.listQuery).then(response => {
719
-        console.log("排班对于23333223323223232",response.data.data.schedule)
758
+      
720 759
         if (response.data.state == 0) {
721 760
           this.loading = false;
722 761
           this.$message.error(response.data.msg);
@@ -773,7 +812,7 @@ export default {
773 812
              
774 813
 
775 814
               this.SchedualPatientsTableData.push(SchedualPatientsTable);
776
-              console.log("中国222222",this.SchedualPatientsTableData)
815
+             
777 816
             }
778 817
           }
779 818
         }

+ 7 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderFortyThree.vue View File

@@ -254,9 +254,13 @@
254 254
                   <div class="inline_block">
255 255
                       置换方式:
256 256
                       <div class="under_line" style="width: 100px;text-align: center;">
257
-                          <span v-if="prescription.displace_liqui_part == ''">/</span>
258
-                          <span v-if="prescription.displace_liqui_part == 1">前置换</span>
259
-                          <span v-if="prescription.displace_liqui_part == 2">后置换</span>
257
+                        <span v-if="prescription.mode_id == 1"></span>
258
+                        <span v-else>
259
+                           <span v-if="prescription.displace_liqui_part == ''">/</span>
260
+                           <span v-if="prescription.displace_liqui_part == 1">前置换</span>
261
+                           <span v-if="prescription.displace_liqui_part == 2">后置换</span>
262
+                        </span>
263
+                         
260 264
                       </div>
261 265
                   </div>
262 266
                   <div class="inline_block">

File diff suppressed because it is too large
+ 468 - 2229
src/xt_pages/hospitalStation/chargeDetailManagement.vue


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

@@ -1613,7 +1613,7 @@ export default {
1613 1613
             }
1614 1614
           }
1615 1615
 
1616
-          total = total.toFixed(2)
1616
+          total = total.toFixed(3)
1617 1617
         }
1618 1618
       }
1619 1619
       return total
@@ -1643,7 +1643,7 @@ export default {
1643 1643
           }
1644 1644
         }
1645 1645
       }
1646
-      return total.toFixed(2)
1646
+      return total.toFixed(3)
1647 1647
 
1648 1648
     },
1649 1649
     getCurTotal() {
@@ -1658,7 +1658,7 @@ export default {
1658 1658
         for (let a = 0; a < this.curPrescriptions.project.length; a++) {
1659 1659
           total = total + this.curPrescriptions.project[a].price * this.curPrescriptions.project[a].total
1660 1660
         }
1661
-        return total.toFixed(2)
1661
+        return total.toFixed(3)
1662 1662
 
1663 1663
       }
1664 1664
     },
@@ -1683,7 +1683,7 @@ export default {
1683 1683
         }
1684 1684
       }
1685 1685
 
1686
-      return total.toFixed(2)
1686
+      return total.toFixed(3)
1687 1687
     }, getMonthTotal() {
1688 1688
       var total = 0
1689 1689
       for (let i = 0; i < this.month_prescriptions.length; i++) {
@@ -1705,7 +1705,7 @@ export default {
1705 1705
         }
1706 1706
       }
1707 1707
 
1708
-      return total.toFixed(2)
1708
+      return total.toFixed(3)
1709 1709
     },
1710 1710
     createFilter(queryString) {
1711 1711
       return (restaurant) => {

+ 234 - 194
src/xt_pages/hospitalStation/outpatientChargesManagement.vue View File

@@ -95,7 +95,7 @@
95 95
 
96 96
             <!--                        <el-button v-loading="loadingtwo"-->
97 97
             <!--                                   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 && this.order.id == 0)"-->
98
-            <!--                    c               size="small"-->
98
+            <!--                                   size="small"-->
99 99
             <!--                                   @click="open(30)"-->
100 100
             <!--                                   type="primary">上传费用明细-->
101 101
             <!--                        </el-button>-->
@@ -106,23 +106,23 @@
106 106
 <!--            </el-button>-->
107 107
 
108 108
 
109
-<!--            <el-button v-loading="loadingtwo"-->
110
-<!--                       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 && this.order.id == 0))"-->
111
-<!--                       size="small"-->
112
-<!--                       @click="open(8)"-->
113
-<!--                       type="primary">上传费用明细-->
114
-<!--            </el-button>-->
109
+            <el-button v-loading="loadingtwo"
110
+                       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 && this.order.id == 0))"
111
+                       size="small"
112
+                       @click="open(8)"
113
+                       type="primary">上传费用明细
114
+            </el-button>
115 115
 
116 116
             <!--<el-button size="small" @click="open(1)" type="primary">打印</el-button>-->
117 117
             <el-button v-loading="loadingone" size="small"
118
-                       v-if="(this.activeName == 'first' &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
118
+                       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)"
119 119
 
120 120
                        @click="open(2)"
121 121
                        type="primary">出院
122 122
             </el-button>
123 123
 
124 124
             <el-button v-loading="loadingone" size="small"
125
-                       v-if="(this.activeName == 'first' &&this.hisPatientInfo.balance_accounts_type == 2  && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
125
+                       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)"
126 126
 
127 127
                        @click="open(2)"
128 128
                        type="primary">出院
@@ -137,27 +137,27 @@
137 137
             </el-button>
138 138
 
139 139
             <el-button v-loading="loadingtwo"
140
-                       v-if="(this.activeName == 'first' &&this.hisPatientInfo.balance_accounts_type == 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1  && this.order.order_status != 2)"
140
+                       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 == 1  && this.order.order_status != 2)"
141 141
                        size="small"
142 142
                        @click="open(3)"
143 143
                        type="primary">收费
144 144
             </el-button>
145 145
 
146 146
             <el-button size="small" @click="open(4)" type="primary"
147
-                       v-if="this.activeName == 'first' &&this.hisPatientInfo.id > 0 && this.order.id > 0 &&  this.order.order_status == 2">
147
+                       v-if="this.activeName == 'third' &&this.hisPatientInfo.id > 0 && this.order.id > 0 &&  this.order.order_status == 2">
148 148
               退费
149 149
             </el-button>
150
-            <el-button v-if="this.activeName == 'first' &&this.order.order_status == 2" size="small" @click="open(5)"
150
+            <el-button v-if="this.activeName == 'third' &&this.order.order_status == 2" size="small" @click="open(5)"
151 151
                        type="primary"
152 152
             >结算单
153 153
             </el-button>
154 154
 
155
-<!--            <el-button-->
156
-<!--                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)"-->
155
+            <el-button
156
+                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)"
157 157
 
158
-<!--                size="small" @click="open(9)" type="primary"-->
159
-<!--            >撤销明细-->
160
-<!--            </el-button>-->
158
+                size="small" @click="open(9)" type="primary"
159
+            >撤销明细
160
+            </el-button>
161 161
 
162 162
             <!--                        <el-button-->
163 163
             <!--                                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)"-->
@@ -167,13 +167,13 @@
167 167
             <!--                        </el-button>-->
168 168
 
169 169
             <el-button
170
-                v-if="(this.activeName == 'first' &&this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1)"
170
+                v-if="(this.activeName == 'third' &&this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1)"
171 171
                 size="small" @click="open(6)" type="primary"
172 172
             >撤销出院
173 173
             </el-button>
174 174
 
175 175
             <el-button
176
-                v-if="(this.activeName == 'first' &&this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
176
+                v-if="(this.activeName == 'third' &&this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
177 177
                 size="small" @click="open(7)" type="primary"
178 178
             >撤销入院
179 179
             </el-button>
@@ -189,184 +189,185 @@
189 189
 
190 190
         <div class="mainCenter" v-loading="loading">
191 191
           <el-tabs class="settlementTabs" v-model="activeName" @tab-click="handleClick">
192
-<!--            <el-tab-pane label="日结" name="first">-->
193
-<!--              <div style="display:flex;height:100%;">-->
194
-<!--                <div class="centerLeft">-->
195
-<!--                  <div class="tabsBox">-->
196
-<!--                    &lt;!&ndash;<el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button>&ndash;&gt;-->
197
-<!--                    <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card"-->
198
-<!--                             @tab-click="tabclickEvent">-->
199
-<!--                      <el-tab-pane-->
200
-<!--                          v-for="(item, index) in prescriptions"-->
201
-<!--                          :key="index"-->
202
-<!--                          :label="item.name"-->
203
-<!--                          :name="item.name"-->
204
-<!--                      >-->
205
-<!--                      </el-tab-pane>-->
206
-
207
-<!--                      &lt;!&ndash;<div class="RP">&ndash;&gt;-->
208
-<!--                      &lt;!&ndash;Rp&ndash;&gt;-->
209
-<!--                      &lt;!&ndash;<el-date-picker&ndash;&gt;-->
210
-<!--                      &lt;!&ndash;v-model="record_date"&ndash;&gt;-->
211
-<!--                      &lt;!&ndash;type="date"&ndash;&gt;-->
212
-<!--                      &lt;!&ndash;:clearable="false"&ndash;&gt;-->
213
-<!--                      &lt;!&ndash;@change="changeDate"&ndash;&gt;-->
214
-<!--                      &lt;!&ndash;format="yyyy-MM-dd"&ndash;&gt;-->
215
-<!--                      &lt;!&ndash;value-format="yyyy-MM-dd"&ndash;&gt;-->
216
-<!--                      &lt;!&ndash;placeholder="选择日期">&ndash;&gt;-->
217
-<!--                      &lt;!&ndash;</el-date-picker>&ndash;&gt;-->
218
-<!--                      &lt;!&ndash;</div>&ndash;&gt;-->
219
-<!--                      &lt;!&ndash;<charge-prescription-table ref="prescription_tables"&ndash;&gt;-->
220
-<!--                      &lt;!&ndash;:prescription="curPrescriptions"></charge-prescription-table>&ndash;&gt;-->
221
-<!--                      &lt;!&ndash;<charge-prescription-table ref="prescription_tables" :prescription="curPrescriptions"></charge-prescription-table>&ndash;&gt;-->
222
-<!--                      <charge-prescription-table ref="prescription_tables"-->
223
-<!--                                                 :manufacturers="manufacturers"-->
224
-<!--                                                 :prescription="curPrescriptions"></charge-prescription-table>-->
225
-
226
-<!--                    </el-tabs>-->
227
-
228
-<!--                  </div>-->
229
-<!--                  <div class="costBox">-->
230
-<!--                    <span>当前处方总费用:<span style="color:red;">{{ total }}元</span></span>-->
231
-<!--                    <span v-if="this.curPrescriptions.order_status  == 1">待结算</span>-->
232
-<!--                    <span v-if="this.curPrescriptions.order_status  == 2">已结算</span>-->
233
-<!--                    <span v-if="this.curPrescriptions.order_status  == 3">已退费</span>-->
234
-<!--                  </div>-->
235
-<!--                </div>-->
236
-<!--                <div class="centerRight">-->
237
-<!--                  <p class="centerRightTitle">人员信息</p>-->
238
-<!--                  <div style="display:flex;justify-content: space-between;line-height:30px;">-->
239
-<!--                    <span style="font-size:14px;">人员编码:{{ patientInfo.dialysis_no }}</span>-->
240
-<!--                    <span style="font-size:14px;">日期:{{ record_date }}</span>-->
241
-<!--                  </div>-->
242
-<!--                  <ul class="basicUl">-->
243
-<!--                    <li style="width:50%;">姓名:{{ patientInfo.name }}</li>-->
244
-<!--                    <li style="width:50%;">性别:{{ patientInfo.gender == 1 ? '男' : '女' }}</li>-->
245
-<!--                    <li style="width:50%;">年龄:{{ patientInfo.age }}</li>-->
246
-<!--                    <li style="width:50%;">电话:{{ patientInfo.phone }}</li>-->
247
-
248
-<!--                    &lt;!&ndash;<span>过敏病史:</span>&ndash;&gt;-->
249
-<!--                    &lt;!&ndash;<el-autocomplete&ndash;&gt;-->
250
-<!--                    &lt;!&ndash;style="width:100%;"&ndash;&gt;-->
251
-<!--                    &lt;!&ndash;class="inline-input"&ndash;&gt;-->
252
-<!--                    &lt;!&ndash;v-model="sick_history"&ndash;&gt;-->
253
-<!--                    &lt;!&ndash;:fetch-suggestions="querySearch2"&ndash;&gt;-->
254
-<!--                    &lt;!&ndash;placeholder="请输入内容"&ndash;&gt;-->
255
-<!--                    &lt;!&ndash;&gt;</el-autocomplete>&ndash;&gt;-->
256
-<!--                    &lt;!&ndash;<li style="width:100%;">地址:{{patientInfo.home_address}}</li>&ndash;&gt;-->
257
-<!--                    &lt;!&ndash;<li style="width:100%;">过敏史及其他病史:{{info.sick_history}}</li>&ndash;&gt;-->
258
-<!--                  </ul>-->
259
-<!--                  <p class="centerRightTitle" style="padding-top: 10px;">诊断信息</p>-->
260
-<!--                  <div style="display:flex;justify-content: space-between;line-height:30px;">-->
261
-<!--                    <span style="font-size:14px;">住院编号:{{ hisPatientInfo.number }}</span>-->
262
-<!--                  </div>-->
263
-<!--                  <ul class="basicUl">-->
264
-<!--                    <li style="width:50%;">医生:{{ info.doctor }}</li>-->
265
-<!--                    <li style="width:50%;">科室:{{ info.departments }}</li>-->
266
-<!--                    <li style="width:100%;">总费用:{{ getTotal() }}</li>-->
267
-
268
-<!--                    <li style="width:100%;">判断结果:{{ info.diagnosis }}</li>-->
269
-<!--                    <li style="width:100%;">是否有传染病:</li>-->
270
-<!--                    <li style="width:100%;">血压:</li>-->
271
-<!--                  </ul>-->
272
-<!--                </div>-->
273
-<!--              </div>-->
274
-<!--            </el-tab-pane>-->
275
-<!--            <el-tab-pane label="月结" name="second">-->
276
-<!--              <div style="display:flex;height:100%;">-->
277
-<!--                <div class="centerLeft">-->
278
-<!--                  <div class="tabsBox">-->
279
-<!--                    &lt;!&ndash; <el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button> &ndash;&gt;-->
280
-<!--                    <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card"-->
281
-<!--                             @tab-click="tabclickEventTwo">-->
282
-
283
-<!--                      <el-tab-pane-->
284
-<!--                          v-for="(item, index) in month_prescriptions"-->
285
-<!--                          :key="index"-->
286
-<!--                          :label="item.name"-->
287
-<!--                          :name="item.name">-->
288
-<!--                      </el-tab-pane>-->
289
-
290
-<!--                      <div class="RP">-->
291
-<!--                        Rp-->
292
-<!--                        <el-date-picker-->
293
-<!--                            v-model="other_start_time"-->
294
-<!--                            prefix-icon="el-icon-date"-->
295
-<!--                            @change="changeTime"-->
296
-<!--                            :editable="false"-->
297
-<!--                            style="width: 150px;"-->
298
-<!--                            type="date"-->
299
-<!--                            :picker-options="pickerOptions"-->
300
-<!--                            placeholder="选择开始时间"-->
301
-<!--                            align="right"-->
302
-<!--                            format="yyyy-MM-dd"-->
303
-<!--                            value-format="yyyy-MM-dd">-->
304
-<!--                        </el-date-picker>-->
305
-<!--                        <span class>-</span>-->
306
-<!--                        <el-date-picker-->
307
-<!--                            v-model="other_end_time"-->
308
-<!--                            prefix-icon="el-icon-date"-->
309
-<!--                            @change="changeEndTime"-->
310
-<!--                            :editable="false"-->
311
-<!--                            style="width: 150px;"-->
312
-<!--                            type="date"-->
313
-<!--                            placeholder="选择结束时间"-->
314
-<!--                            align="right"-->
315
-<!--                            format="yyyy-MM-dd"-->
316
-<!--                            value-format="yyyy-MM-dd">-->
317
-<!--                        </el-date-picker>-->
318
-<!--                      </div>-->
319
-<!--                      &lt;!&ndash;<prescription-table :preTableData='preTableData'></prescription-table>&ndash;&gt;-->
320
-<!--                      &lt;!&ndash;<month-prescription-table ref="prescription_tables"&ndash;&gt;-->
321
-<!--                      &lt;!&ndash;:activeType="activeType"  :prescription="curMonthPrescriptions"></month-prescription-table>&ndash;&gt;-->
322
-<!--                      <charge-month-prescription-table-->
323
-<!--                          :prescription="curMonthPrescriptions"></charge-month-prescription-table>-->
324
-
325
-<!--                    </el-tabs>-->
326
-
327
-<!--                  </div>-->
328
-<!--                  <div class="costBox">-->
329
-<!--                    <span>当前处方总费用:<span style="color:red;">{{ month_total }}元</span></span>-->
330
-<!--                    &lt;!&ndash;<span>{{ state }}</span>&ndash;&gt;-->
331
-<!--                  </div>-->
332
-<!--                </div>-->
333
-<!--                <div class="centerRight">-->
334
-<!--                  <p class="centerRightTitle">人员信息</p>-->
335
-<!--                  <div style="display:flex;justify-content: space-between;line-height:30px;">-->
336
-<!--                    <span style="font-size:14px;">人员编码:{{ patientInfo.dialysis_no }}</span>-->
337
-<!--                    <span style="font-size:14px;">日期:{{ record_date }}</span>-->
338
-<!--                  </div>-->
339
-
340
-<!--                  <ul class="basicUl">-->
341
-<!--                    <li style="width:50%;">姓名:{{ patientInfo.name }}</li>-->
342
-<!--                    <li style="width:50%;">性别:{{ patientInfo.gender == 1 ? '男' : '女' }}</li>-->
343
-<!--                    <li style="width:50%;">年龄:{{ patientInfo.age }}</li>-->
344
-<!--                    <li style="width:50%;">电话:{{ patientInfo.phone }}</li>-->
345
-<!--                    <li style="width:100%;">过敏史及其他病史:{{ info.sick_history }}</li>-->
346
-
347
-<!--                  </ul>-->
348
-<!--                  <p class="centerRightTitle" style="padding-top: 10px;">诊断信息</p>-->
349
-<!--                  <div style="display:flex;justify-content: space-between;line-height:30px;">-->
350
-<!--                    <span style="font-size:14px;">门诊编号:{{ hisPatientInfo.number }}</span>-->
351
-<!--                  </div>-->
352
-<!--                  <ul class="basicUl">-->
353
-<!--                    <li style="width:50%;">医生:{{ info.doctor }}</li>-->
354
-<!--                    <li style="width:50%;">科室:{{ getDepartment(info.departments) }}</li>-->
355
-<!--                    <li style="width:100%;" v-if="activeName == 'first'">总费用:{{ getTotal() }}</li>-->
356
-<!--                    <li style="width:100%;" v-if="activeName == 'second'">总费用:{{ getTotalTwo() }}-->
357
-<!--                    </li>-->
358
-
359
-<!--                    <li style="width:100%;">判断结果:{{ info.diagnosis }}</li>-->
360
-<!--                    &lt;!&ndash;<li style="width:100%;">是否有传染病:</li>&ndash;&gt;-->
361
-<!--                    &lt;!&ndash;<li style="width:100%;">血压:</li>&ndash;&gt;-->
362
-<!--                  </ul>-->
363
-<!--                </div>-->
364
-<!--              </div>-->
365
-<!--            </el-tab-pane>-->
366
-            <el-tab-pane label="结算" name="first">
192
+            <el-tab-pane label="日结" name="first">
193
+              <div style="display:flex;height:100%;">
194
+                <div class="centerLeft">
195
+                  <div class="tabsBox">
196
+                    <!--<el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button>-->
197
+                    <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card"
198
+                             @tab-click="tabclickEvent">
199
+                      <el-tab-pane
200
+                          v-for="(item, index) in prescriptions"
201
+                          :key="index"
202
+                          :label="item.name"
203
+                          :name="item.name"
204
+                      >
205
+                      </el-tab-pane>
206
+
207
+                      <!--<div class="RP">-->
208
+                      <!--Rp-->
209
+                      <!--<el-date-picker-->
210
+                      <!--v-model="record_date"-->
211
+                      <!--type="date"-->
212
+                      <!--:clearable="false"-->
213
+                      <!--@change="changeDate"-->
214
+                      <!--format="yyyy-MM-dd"-->
215
+                      <!--value-format="yyyy-MM-dd"-->
216
+                      <!--placeholder="选择日期">-->
217
+                      <!--</el-date-picker>-->
218
+                      <!--</div>-->
219
+                      <!--<charge-prescription-table ref="prescription_tables"-->
220
+                      <!--:prescription="curPrescriptions"></charge-prescription-table>-->
221
+                      <!--<charge-prescription-table ref="prescription_tables" :prescription="curPrescriptions"></charge-prescription-table>-->
222
+                      <charge-prescription-table ref="prescription_tables"
223
+                                                 :manufacturers="manufacturers"
224
+                                                 :prescription="curPrescriptions"></charge-prescription-table>
225
+
226
+                    </el-tabs>
227
+
228
+                  </div>
229
+                  <div class="costBox">
230
+                    <span>当前处方总费用:<span style="color:red;">{{ total }}元</span></span>
231
+                    <span v-if="this.curPrescriptions.order_status  == 1">待结算</span>
232
+                    <span v-if="this.curPrescriptions.order_status  == 2">已结算</span>
233
+                    <span v-if="this.curPrescriptions.order_status  == 3">已退费</span>
234
+                  </div>
235
+                </div>
236
+                <div class="centerRight">
237
+                  <p class="centerRightTitle">人员信息</p>
238
+                  <div style="display:flex;justify-content: space-between;line-height:30px;">
239
+                    <span style="font-size:14px;">人员编码:{{ patientInfo.dialysis_no }}</span>
240
+                    <span style="font-size:14px;">日期:{{ record_date }}</span>
241
+                  </div>
242
+                  <ul class="basicUl">
243
+                    <li style="width:50%;">姓名:{{ patientInfo.name }}</li>
244
+                    <li style="width:50%;">性别:{{ patientInfo.gender == 1 ? '男' : '女' }}</li>
245
+                    <li style="width:50%;">年龄:{{ patientInfo.age }}</li>
246
+                    <li style="width:50%;">电话:{{ patientInfo.phone }}</li>
247
+
248
+                    <!--<span>过敏病史:</span>-->
249
+                    <!--<el-autocomplete-->
250
+                    <!--style="width:100%;"-->
251
+                    <!--class="inline-input"-->
252
+                    <!--v-model="sick_history"-->
253
+                    <!--:fetch-suggestions="querySearch2"-->
254
+                    <!--placeholder="请输入内容"-->
255
+                    <!--&gt;</el-autocomplete>-->
256
+                    <!--<li style="width:100%;">地址:{{patientInfo.home_address}}</li>-->
257
+                    <!--<li style="width:100%;">过敏史及其他病史:{{info.sick_history}}</li>-->
258
+                  </ul>
259
+                  <p class="centerRightTitle" style="padding-top: 10px;">诊断信息</p>
260
+                  <div style="display:flex;justify-content: space-between;line-height:30px;">
261
+                    <span style="font-size:14px;">住院编号:{{ hisPatientInfo.number }}</span>
262
+                  </div>
263
+                  <ul class="basicUl">
264
+                    <li style="width:50%;">医生:{{ info.doctor }}</li>
265
+                    <li style="width:50%;">科室:{{ info.departments }}</li>
266
+                    <li style="width:100%;">总费用:{{ getTotal() }}</li>
267
+
268
+                    <li style="width:100%;">判断结果:{{ info.diagnosis }}</li>
269
+                    <li style="width:100%;">是否有传染病:</li>
270
+                    <li style="width:100%;">血压:</li>
271
+                  </ul>
272
+                </div>
273
+              </div>
274
+            </el-tab-pane>
275
+            <el-tab-pane label="月结" name="second">
367 276
               <div style="display:flex;height:100%;">
368 277
                 <div class="centerLeft">
369 278
                   <div class="tabsBox">
279
+                    <!-- <el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button> -->
280
+                    <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card"
281
+                             @tab-click="tabclickEventTwo">
282
+
283
+                      <el-tab-pane
284
+                          v-for="(item, index) in month_prescriptions"
285
+                          :key="index"
286
+                          :label="item.name"
287
+                          :name="item.name">
288
+                      </el-tab-pane>
289
+
290
+                      <div class="RP">
291
+                        Rp
292
+                        <el-date-picker
293
+                            v-model="other_start_time"
294
+                            prefix-icon="el-icon-date"
295
+                            @change="changeTime"
296
+                            :editable="false"
297
+                            style="width: 150px;"
298
+                            type="date"
299
+                            :picker-options="pickerOptions"
300
+                            placeholder="选择开始时间"
301
+                            align="right"
302
+                            format="yyyy-MM-dd"
303
+                            value-format="yyyy-MM-dd">
304
+                        </el-date-picker>
305
+                        <span class>-</span>
306
+                        <el-date-picker
307
+                            v-model="other_end_time"
308
+                            prefix-icon="el-icon-date"
309
+                            @change="changeEndTime"
310
+                            :editable="false"
311
+                            style="width: 150px;"
312
+                            type="date"
313
+                            placeholder="选择结束时间"
314
+                            align="right"
315
+                            format="yyyy-MM-dd"
316
+                            value-format="yyyy-MM-dd">
317
+                        </el-date-picker>
318
+                      </div>
319
+                      <!--<prescription-table :preTableData='preTableData'></prescription-table>-->
320
+                      <!--<month-prescription-table ref="prescription_tables"-->
321
+                      <!--:activeType="activeType"  :prescription="curMonthPrescriptions"></month-prescription-table>-->
322
+                      <charge-month-prescription-table
323
+                          :prescription="curMonthPrescriptions"></charge-month-prescription-table>
324
+
325
+                    </el-tabs>
326
+
327
+                  </div>
328
+                  <div class="costBox">
329
+                    <span>当前处方总费用:<span style="color:red;">{{ month_total }}元</span></span>
330
+                    <!--<span>{{ state }}</span>-->
331
+                  </div>
332
+                </div>
333
+                <div class="centerRight">
334
+                  <p class="centerRightTitle">人员信息</p>
335
+                  <div style="display:flex;justify-content: space-between;line-height:30px;">
336
+                    <span style="font-size:14px;">人员编码:{{ patientInfo.dialysis_no }}</span>
337
+                    <span style="font-size:14px;">日期:{{ record_date }}</span>
338
+                  </div>
339
+
340
+                  <ul class="basicUl">
341
+                    <li style="width:50%;">姓名:{{ patientInfo.name }}</li>
342
+                    <li style="width:50%;">性别:{{ patientInfo.gender == 1 ? '男' : '女' }}</li>
343
+                    <li style="width:50%;">年龄:{{ patientInfo.age }}</li>
344
+                    <li style="width:50%;">电话:{{ patientInfo.phone }}</li>
345
+                    <li style="width:100%;">过敏史及其他病史:{{ info.sick_history }}</li>
346
+
347
+                  </ul>
348
+                  <p class="centerRightTitle" style="padding-top: 10px;">诊断信息</p>
349
+                  <div style="display:flex;justify-content: space-between;line-height:30px;">
350
+                    <span style="font-size:14px;">门诊编号:{{ hisPatientInfo.number }}</span>
351
+                  </div>
352
+                  <ul class="basicUl">
353
+                    <li style="width:50%;">医生:{{ info.doctor }}</li>
354
+                    <li style="width:50%;">科室:{{ getDepartment(info.departments) }}</li>
355
+                    <li style="width:100%;" v-if="activeName == 'first'">总费用:{{ getTotal() }}</li>
356
+                    <li style="width:100%;" v-if="activeName == 'second'">总费用:{{ getTotalTwo() }}
357
+                    </li>
358
+
359
+                    <li style="width:100%;">判断结果:{{ info.diagnosis }}</li>
360
+                    <!--<li style="width:100%;">是否有传染病:</li>-->
361
+                    <!--<li style="width:100%;">血压:</li>-->
362
+                  </ul>
363
+                </div>
364
+              </div>
365
+            </el-tab-pane>
366
+            <el-tab-pane label="结算" name="third">
367
+              <div style="display:flex;height:100%;">
368
+                <div class="centerLeft">
369
+                  <div class="tabsBox">
370
+                    <!-- <el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button> -->
370 371
                     <el-tabs class="preTabs" v-model="editSettletableTabsValue" type="border-card"
371 372
                              @tab-click="tabclickEventThree">
372 373
 
@@ -379,16 +380,55 @@
379 380
                       <settle-prescription-table
380 381
                           :prescription="curSettlePrescriptions"
381 382
                       ></settle-prescription-table>
383
+
384
+                      <!--                                <charge-month-prescription-table-->
385
+                      <!--                                    :prescription="curMonthPrescriptions"></charge-month-prescription-table>-->
386
+
382 387
                     </el-tabs>
383 388
 
384 389
                   </div>
385 390
                   <div class="costBox">
386 391
                     <span>当前处方总费用:<span style="color:red;">{{ settle_total }}元</span></span>
392
+                    <!--<span>{{ state }}</span>-->
387 393
                   </div>
388 394
                 </div>
395
+                <!--                          <div class="centerRight">-->
396
+                <!--                            <p class="centerRightTitle">人员信息</p>-->
397
+                <!--                            <div style="display:flex;justify-content: space-between;line-height:30px;">-->
398
+                <!--                              <span style="font-size:14px;">人员编码:{{patientInfo.dialysis_no}}</span>-->
399
+                <!--                              <span style="font-size:14px;">日期:{{record_date}}</span>-->
400
+                <!--                            </div>-->
401
+
402
+                <!--                            <ul class="basicUl">-->
403
+                <!--                              <li style="width:50%;">姓名:{{patientInfo.name}}</li>-->
404
+                <!--                              <li style="width:50%;">性别:{{patientInfo.gender == 1 ? '男' : '女' }}</li>-->
405
+                <!--                              <li style="width:50%;">年龄:{{patientInfo.age }}</li>-->
406
+                <!--                              <li style="width:50%;">电话:{{patientInfo.phone}}</li>-->
407
+                <!--                              <li style="width:100%;">过敏史及其他病史:{{info.sick_history}}</li>-->
408
+
409
+                <!--                            </ul>-->
410
+                <!--                            <p class="centerRightTitle" style="padding-top: 10px;">诊断信息</p>-->
411
+                <!--                            <div style="display:flex;justify-content: space-between;line-height:30px;">-->
412
+                <!--                              <span style="font-size:14px;">门诊编号:{{ hisPatientInfo.number}}</span>-->
413
+                <!--                            </div>-->
414
+                <!--                            <ul class="basicUl">-->
415
+                <!--                              <li style="width:50%;">医生:{{ info.doctor }}</li>-->
416
+                <!--                              <li style="width:50%;">科室:{{ getDepartment(info.departments) }}</li>-->
417
+                <!--                              <li style="width:100%;" v-if="activeName == 'first'">总费用:{{ getTotal() }}</li>-->
418
+                <!--                              <li style="width:100%;" v-if="activeName == 'second'">总费用:{{ getTotalTwo() }}-->
419
+                <!--                              </li>-->
420
+
421
+                <!--                              <li style="width:100%;">判断结果:{{info.diagnosis}}</li>-->
422
+                <!--                              &lt;!&ndash;<li style="width:100%;">是否有传染病:</li>&ndash;&gt;-->
423
+                <!--                              &lt;!&ndash;<li style="width:100%;">血压:</li>&ndash;&gt;-->
424
+                <!--                            </ul>-->
425
+                <!--                          </div>-->
389 426
               </div>
390 427
             </el-tab-pane>
428
+
391 429
           </el-tabs>
430
+
431
+
392 432
         </div>
393 433
       </div>
394 434
     </div>

+ 112 - 0
src/xt_pages/outpatientCharges/components/registerDialog.vue View File

@@ -192,6 +192,11 @@
192 192
           </el-option>
193 193
         </el-select>
194 194
       </el-form-item>
195
+
196
+
197
+      <el-button style="margin-left:10px;" type="primary" @click="check11" >查普通门诊待遇</el-button>
198
+      <el-button style="margin-left:10px;" type="primary" @click="check14" >查门诊大病待遇</el-button>
199
+
195 200
     </el-form>
196 201
 
197 202
     <span slot="footer" class="dialog-footer">
@@ -203,11 +208,13 @@
203 208
 </template>
204 209
 
205 210
 <script>
211
+
206 212
   import { jsGetAge, uParseTime } from '@/utils/tools'
207 213
   import axios from 'axios'
208 214
   import { PostSearch } from '@/api/patient'
209 215
 
210 216
   import { getDictionaryDataConfig } from '@/utils/data'
217
+  import cryptoJs from 'crypto-js'
211 218
 
212 219
   export default {
213 220
 
@@ -399,6 +406,111 @@
399 406
       diagnoses: Array
400 407
     },
401 408
     methods: {
409
+      check11(){
410
+
411
+
412
+
413
+        if(this.form.social_type == 0 || this.form.social_type == ''){
414
+          this.$message.error("社保类型不能为空")
415
+          return
416
+        }
417
+        var that = this
418
+        let params={
419
+          id_card_no: this.form.id_card_no,
420
+          admin_user_id:this.$store.getters.xt_user.user.id,
421
+          med_type: 11,
422
+          insutype: this.form.social_type
423
+        }
424
+        axios.get('http://127.0.0.1:9532/api/treatment/check', {
425
+          params: params,
426
+          headers: {
427
+            'Permission': 5
428
+          }
429
+        })
430
+          .then(function(response) {
431
+            if (response.data.state == 0) {
432
+              that.$message.error(response.data.msg)
433
+              that.loadingone = false
434
+              return false
435
+            } else {
436
+              that.loadingone = false
437
+              if (response.data.data.failed_code == -10) {
438
+                // that.$message.error(response.data.data.msg)
439
+                that.$confirm(response.data.data.msg, '医保错误信息', {
440
+                  confirmButtonText: '确 定',
441
+                  type: 'warning'
442
+                }).then(() => {
443
+
444
+
445
+                }).catch(() => {
446
+                })
447
+              } else {
448
+                var result_desc = '';
449
+                result_desc = response.data.data.msg
450
+                that.$alert(result_desc, '结果', {
451
+                  confirmButtonText: '确定',
452
+                  callback: action => {
453
+                    this.dialogFormVisible = false
454
+                  }
455
+                });
456
+              }
457
+            }
458
+          })
459
+          .catch(function(error) {
460
+          })
461
+      },
462
+      check14(){
463
+        if(this.form.social_type == 0 || this.form.social_type == ''){
464
+          this.$message.error("社保类型不能为空")
465
+          return
466
+        }
467
+        var that = this
468
+        let params={
469
+          id_card_no: this.form.id_card_no,
470
+          admin_user_id:this.$store.getters.xt_user.user.id,
471
+          med_type: "14",
472
+          insutype: this.form.social_type
473
+        }
474
+        axios.get('http://127.0.0.1:9532/api/treatment/check', {
475
+          params: params,
476
+          headers: {
477
+            'Permission': 5
478
+          }
479
+        })
480
+          .then(function(response) {
481
+            if (response.data.state == 0) {
482
+              that.$message.error(response.data.msg)
483
+              that.loadingone = false
484
+              return false
485
+            } else {
486
+              that.loadingone = false
487
+              if (response.data.data.failed_code == -10) {
488
+                // that.$message.error(response.data.data.msg)
489
+                that.$confirm(response.data.data.msg, '医保错误信息', {
490
+                  confirmButtonText: '确 定',
491
+                  type: 'warning'
492
+                }).then(() => {
493
+
494
+
495
+                }).catch(() => {
496
+                })
497
+              } else {
498
+                var result_desc = '';
499
+                result_desc = response.data.data.msg
500
+                that.$alert(result_desc, '结果', {
501
+                  confirmButtonText: '确定',
502
+                  callback: action => {
503
+                    this.dialogFormVisible = false
504
+                  }
505
+                });
506
+              }
507
+            }
508
+          })
509
+          .catch(function(error) {
510
+
511
+          })
512
+
513
+      },
402 514
       changeDoctor() {
403 515
         for (let i = 0; i < this.doctors.length; i++) {
404 516
           if (this.doctors[i].admin_user_id == this.form.doctor) {

+ 282 - 176
src/xt_pages/outpatientCharges/components/registerDialog9504.vue View File

@@ -1,174 +1,178 @@
1 1
 <template>
2
-    <el-dialog width="854px" class="registerDialog" :title="titles" :visible.sync="visibility"
3
-               :close-on-click-modal="isClose"
4
-               :close-on-press-escape="isClose">
5
-
6
-        <el-form :model="form" :rules="rules" ref="formValue" label-width="100px">
7
-            <el-form-item label="患者姓名:" prop="name" >
8
-                <el-autocomplete
9
-                        class="checkSearch"
10
-                        popper-class="my-autocomplete"
11
-                        v-model="form.name"
12
-                        :fetch-suggestions="querySearchAsync"
13
-                        :trigger-on-focus="false"
14
-                        placeholder="请输入病人名字"
15
-                        @select="handleSelect"
16
-                        style="width:160px;"
17
-                >
18
-                    <i class="el-icon-search el-input__icon" slot="suffix"></i>
19
-                    <template slot-scope="{ item }">
20
-                        <div class="name">{{ item.name }}</div>
21
-                    </template>
22
-                </el-autocomplete>
23
-            </el-form-item>
24
-
25
-            <el-form-item label="性别:" prop="gender" >
26
-                <el-select v-model="form.gender" placeholder="请选择" style="width:100%;">
27
-                    <el-option
28
-                            v-for="item in sex"
29
-                            :key="item.value"
30
-                            :label="item.label"
31
-                            :value="item.value">
32
-                    </el-option>
33
-                </el-select>
34
-
35
-
36
-            </el-form-item>
37
-
38
-            <!-- <el-form-item label="年龄:" prop="age" >
39
-                <el-input v-model="form.age"></el-input>
40
-            </el-form-item> -->
41
-
42
-
43
-            <el-form-item label="出生日期:" prop="birthday" >
44
-                <el-date-picker v-model="form.birthday" type="date" format="yyyy-MM-dd"
45
-                                value-format="yyyy-MM-dd" placeholder="选择日期" style="width:100%;"></el-date-picker>
46
-            </el-form-item>
47
-
48
-            <el-form-item label="手机号码:" prop="phone">
49
-                <el-input v-model="form.phone"></el-input>
50
-            </el-form-item>
51
-
52
-
53
-            <!--<el-form-item label="医疗类别:" prop="medical_care">-->
54
-                <!--<el-select v-model="form.medical_care"  placeholder="请选择" style="width:100%;">-->
55
-                    <!--<el-option-->
56
-                            <!--v-for="(item,index) in medical_care"-->
57
-                            <!--:key="index"-->
58
-                            <!--:label="item.label"-->
59
-                            <!--:value="item.value">-->
60
-                    <!--</el-option>-->
61
-                <!--</el-select>-->
62
-            <!--</el-form-item>-->
63
-
64
-
65
-            <el-form-item label="证件类型:" prop="certificates" >
66
-                <el-select v-model="form.certificates" placeholder="请选择" style="width:100%;">
67
-                    <el-option
68
-                            v-for="item in certificates"
69
-                            :key="item.value"
70
-                            :label="item.label"
71
-                            :value="item.value">
72
-                    </el-option>
73
-                </el-select>
74
-            </el-form-item>
75
-
76
-            <el-form-item label="证件号码:" prop="id_card">
77
-                <el-input v-model="form.id_card"></el-input>
78
-            </el-form-item>
79
-
80
-
81
-
82
-
83
-            <el-form-item label="结算类型:">
84
-                <el-select v-model="form.settlement_value" placeholder="请选择" style="width:100%;">
85
-                    <el-option
86
-                            v-for="item in settlement"
87
-                            :key="item.value"
88
-                            :label="item.label"
89
-                            :value="item.value">
90
-                    </el-option>
91
-                </el-select>
92
-            </el-form-item>
93
-
94
-
95
-            <el-form-item label="社保类型:">
96
-                <el-select v-model="form.social_type" placeholder="请选择" style="width:100%;">
97
-                    <el-option
98
-                            v-for="item in medicalCare"
99
-                            :key="item.value"
100
-                            :label="item.label"
101
-                            :value="item.value">
102
-                    </el-option>
103
-                </el-select>
104
-            </el-form-item>
105
-
106
-
107
-            <el-form-item label="读卡类型:" prop="id_card_type">
108
-                <el-select v-model="form.id_card_type" placeholder="请选择">
109
-                    <el-option
110
-                            v-for="item in IDCardTypes"
111
-                            :key="item.value"
112
-                            :label="item.label"
113
-                            :value="item.value">
114
-                    </el-option>
115
-                </el-select>
116
-            </el-form-item>
117
-
118
-
119
-            <el-form-item class="specialFormItem" label="医保卡号:">
120
-                <div style="display:flex;">
121
-                    <el-input v-model="form.medical_insurance_card"></el-input>
122
-                    <el-button style="margin-left:10px;" type="primary" @click="reading" v-loading="read_loading">读卡</el-button>
123
-
124
-                </div>
125
-            </el-form-item>
126
-
127
-            <el-form-item label="挂号类型:" prop="register" >
128
-                <el-select v-model="form.register" placeholder="请选择" style="width:100%;" @change="changeRegister">
129
-                    <el-option
130
-                            v-for="item in register"
131
-                            :key="item.value"
132
-                            :label="item.label"
133
-                            :value="item.value">
134
-                    </el-option>
135
-                </el-select>
136
-            </el-form-item>
137
-            <el-form-item label="挂号费:">
138
-                <el-input readonly v-model="form.registration_fee"></el-input>
139
-            </el-form-item>
140
-            <el-form-item label="诊疗费:">
141
-                <el-input readonly v-model="form.medical_expenses"></el-input>
142
-            </el-form-item>
143
-
144
-            <el-form-item label="医生:" prop="doctor" >
145
-                <el-select v-model="form.doctor" placeholder="请选择" @change="changeDoctor">
146
-                    <el-option
147
-                            v-for="(item,index) in doctors"
148
-                            :key="index"
149
-                            :label="item.user_name"
150
-                            :value="item.admin_user_id">
151
-                    </el-option>
152
-                </el-select>
153
-            </el-form-item>
154
-
155
-            <el-form-item label="科室:" prop="department" >
156
-                <el-select v-model="form.department" placeholder="请选择">
157
-                    <el-option
158
-                            v-for="(item,index) in departments"
159
-                            :key="index"
160
-                            :label="item.name"
161
-                            :value="item.id">
162
-                    </el-option>
163
-                </el-select>
164
-            </el-form-item>
165
-        </el-form>
166
-
167
-        <span slot="footer" class="dialog-footer">
2
+  <el-dialog width="854px" class="registerDialog" :title="titles" :visible.sync="visibility"
3
+             :close-on-click-modal="isClose"
4
+             :close-on-press-escape="isClose">
5
+
6
+    <el-form :model="form" :rules="rules" ref="formValue" label-width="100px">
7
+      <el-form-item label="患者姓名:" prop="name" >
8
+        <el-autocomplete
9
+          class="checkSearch"
10
+          popper-class="my-autocomplete"
11
+          v-model="form.name"
12
+          :fetch-suggestions="querySearchAsync"
13
+          :trigger-on-focus="false"
14
+          placeholder="请输入病人名字"
15
+          @select="handleSelect"
16
+          style="width:160px;"
17
+        >
18
+          <i class="el-icon-search el-input__icon" slot="suffix"></i>
19
+          <template slot-scope="{ item }">
20
+            <div class="name">{{ item.name }}</div>
21
+          </template>
22
+        </el-autocomplete>
23
+      </el-form-item>
24
+
25
+      <el-form-item label="性别:" prop="gender" >
26
+        <el-select v-model="form.gender" placeholder="请选择" style="width:100%;">
27
+          <el-option
28
+            v-for="item in sex"
29
+            :key="item.value"
30
+            :label="item.label"
31
+            :value="item.value">
32
+          </el-option>
33
+        </el-select>
34
+
35
+
36
+      </el-form-item>
37
+
38
+      <!-- <el-form-item label="年龄:" prop="age" >
39
+          <el-input v-model="form.age"></el-input>
40
+      </el-form-item> -->
41
+
42
+
43
+      <el-form-item label="出生日期:" prop="birthday" >
44
+        <el-date-picker v-model="form.birthday" type="date" format="yyyy-MM-dd"
45
+                        value-format="yyyy-MM-dd" placeholder="选择日期" style="width:100%;"></el-date-picker>
46
+      </el-form-item>
47
+
48
+      <el-form-item label="手机号码:" prop="phone">
49
+        <el-input v-model="form.phone"></el-input>
50
+      </el-form-item>
51
+
52
+
53
+      <!--<el-form-item label="医疗类别:" prop="medical_care">-->
54
+      <!--<el-select v-model="form.medical_care"  placeholder="请选择" style="width:100%;">-->
55
+      <!--<el-option-->
56
+      <!--v-for="(item,index) in medical_care"-->
57
+      <!--:key="index"-->
58
+      <!--:label="item.label"-->
59
+      <!--:value="item.value">-->
60
+      <!--</el-option>-->
61
+      <!--</el-select>-->
62
+      <!--</el-form-item>-->
63
+
64
+
65
+      <el-form-item label="证件类型:" prop="certificates" >
66
+        <el-select v-model="form.certificates" placeholder="请选择" style="width:100%;">
67
+          <el-option
68
+            v-for="item in certificates"
69
+            :key="item.value"
70
+            :label="item.label"
71
+            :value="item.value">
72
+          </el-option>
73
+        </el-select>
74
+      </el-form-item>
75
+
76
+      <el-form-item label="证件号码:" prop="id_card">
77
+        <el-input v-model="form.id_card"></el-input>
78
+      </el-form-item>
79
+
80
+
81
+
82
+
83
+      <el-form-item label="结算类型:">
84
+        <el-select v-model="form.settlement_value" placeholder="请选择" style="width:100%;">
85
+          <el-option
86
+            v-for="item in settlement"
87
+            :key="item.value"
88
+            :label="item.label"
89
+            :value="item.value">
90
+          </el-option>
91
+        </el-select>
92
+      </el-form-item>
93
+
94
+
95
+      <el-form-item label="社保类型:">
96
+        <el-select v-model="form.social_type" placeholder="请选择" style="width:100%;">
97
+          <el-option
98
+            v-for="item in medicalCare"
99
+            :key="item.value"
100
+            :label="item.label"
101
+            :value="item.value">
102
+          </el-option>
103
+        </el-select>
104
+      </el-form-item>
105
+
106
+
107
+      <el-form-item label="读卡类型:" prop="id_card_type">
108
+        <el-select v-model="form.id_card_type" placeholder="请选择">
109
+          <el-option
110
+            v-for="item in IDCardTypes"
111
+            :key="item.value"
112
+            :label="item.label"
113
+            :value="item.value">
114
+          </el-option>
115
+        </el-select>
116
+      </el-form-item>
117
+
118
+
119
+      <el-form-item class="specialFormItem" label="医保卡号:">
120
+        <div style="display:flex;">
121
+          <el-input v-model="form.medical_insurance_card"></el-input>
122
+          <el-button style="margin-left:10px;" type="primary" @click="reading" v-loading="read_loading">读卡</el-button>
123
+
124
+        </div>
125
+      </el-form-item>
126
+
127
+      <el-form-item label="挂号类型:" prop="register" >
128
+        <el-select v-model="form.register" placeholder="请选择" style="width:100%;" @change="changeRegister">
129
+          <el-option
130
+            v-for="item in register"
131
+            :key="item.value"
132
+            :label="item.label"
133
+            :value="item.value">
134
+          </el-option>
135
+        </el-select>
136
+      </el-form-item>
137
+      <el-form-item label="挂号费:">
138
+        <el-input readonly v-model="form.registration_fee"></el-input>
139
+      </el-form-item>
140
+      <el-form-item label="诊疗费:">
141
+        <el-input readonly v-model="form.medical_expenses"></el-input>
142
+      </el-form-item>
143
+
144
+      <el-form-item label="医生:" prop="doctor" >
145
+        <el-select v-model="form.doctor" placeholder="请选择" @change="changeDoctor">
146
+          <el-option
147
+            v-for="(item,index) in doctors"
148
+            :key="index"
149
+            :label="item.user_name"
150
+            :value="item.admin_user_id">
151
+          </el-option>
152
+        </el-select>
153
+      </el-form-item>
154
+
155
+      <el-form-item label="科室:" prop="department" >
156
+        <el-select v-model="form.department" placeholder="请选择">
157
+          <el-option
158
+            v-for="(item,index) in departments"
159
+            :key="index"
160
+            :label="item.name"
161
+            :value="item.id">
162
+          </el-option>
163
+        </el-select>
164
+      </el-form-item>
165
+
166
+      <el-button style="margin-left:10px;" type="primary" @click="check11" >查普通门诊待遇</el-button>
167
+      <el-button style="margin-left:10px;" type="primary" @click="check14" >查门诊大病待遇</el-button>
168
+
169
+    </el-form>
170
+
171
+    <span slot="footer" class="dialog-footer">
168 172
     <el-button @click="cancel('formValue')">取 消</el-button>
169 173
     <el-button type="primary" @click="confirm('formValue')">挂 号</el-button>
170 174
   </span>
171
-    </el-dialog>
175
+  </el-dialog>
172 176
 
173 177
 </template>
174 178
 
@@ -377,6 +381,108 @@
377 381
       diagnoses: Array,
378 382
     },
379 383
     methods: {
384
+      check11(){
385
+        if(this.form.social_type == 0 || this.form.social_type == ''){
386
+          this.$message.error("社保类型不能为空")
387
+          return
388
+        }
389
+        var that = this
390
+        let params={
391
+          id_card_no: this.form.id_card_no,
392
+          admin_user_id:this.$store.getters.xt_user.user.id,
393
+          med_type: 11,
394
+          insutype: this.form.social_type
395
+        }
396
+        axios.get('http://127.0.0.1:9532/api/treatment/check', {
397
+          params: params,
398
+          headers: {
399
+            'Permission': 5
400
+          }
401
+        })
402
+          .then(function(response) {
403
+            if (response.data.state == 0) {
404
+              that.$message.error(response.data.msg)
405
+              that.loadingone = false
406
+              return false
407
+            } else {
408
+              that.loadingone = false
409
+              if (response.data.data.failed_code == -10) {
410
+                // that.$message.error(response.data.data.msg)
411
+                that.$confirm(response.data.data.msg, '医保错误信息', {
412
+                  confirmButtonText: '确 定',
413
+                  type: 'warning'
414
+                }).then(() => {
415
+
416
+
417
+                }).catch(() => {
418
+                })
419
+              } else {
420
+                var result_desc = '';
421
+                result_desc = response.data.data.msg
422
+                that.$alert(result_desc, '结果', {
423
+                  confirmButtonText: '确定',
424
+                  callback: action => {
425
+                    this.dialogFormVisible = false
426
+                  }
427
+                });
428
+              }
429
+            }
430
+          })
431
+          .catch(function(error) {
432
+          })
433
+      },
434
+      check14(){
435
+        if(this.form.social_type == 0 || this.form.social_type == ''){
436
+          this.$message.error("社保类型不能为空")
437
+          return
438
+        }
439
+        var that = this
440
+        let params={
441
+          id_card_no: this.form.id_card_no,
442
+          admin_user_id:this.$store.getters.xt_user.user.id,
443
+          med_type: "14",
444
+          insutype: this.form.social_type
445
+        }
446
+        axios.get('http://127.0.0.1:9532/api/treatment/check', {
447
+          params: params,
448
+          headers: {
449
+            'Permission': 5
450
+          }
451
+        })
452
+          .then(function(response) {
453
+            if (response.data.state == 0) {
454
+              that.$message.error(response.data.msg)
455
+              that.loadingone = false
456
+              return false
457
+            } else {
458
+              that.loadingone = false
459
+              if (response.data.data.failed_code == -10) {
460
+                // that.$message.error(response.data.data.msg)
461
+                that.$confirm(response.data.data.msg, '医保错误信息', {
462
+                  confirmButtonText: '确 定',
463
+                  type: 'warning'
464
+                }).then(() => {
465
+
466
+
467
+                }).catch(() => {
468
+                })
469
+              } else {
470
+                var result_desc = '';
471
+                result_desc = response.data.data.msg
472
+                that.$alert(result_desc, '结果', {
473
+                  confirmButtonText: '确定',
474
+                  callback: action => {
475
+                    this.dialogFormVisible = false
476
+                  }
477
+                });
478
+              }
479
+            }
480
+          })
481
+          .catch(function(error) {
482
+
483
+          })
484
+
485
+      },
380 486
       changeDoctor() {
381 487
         for (let i = 0; i < this.doctors.length; i++) {
382 488
           if (this.doctors[i].admin_user_id == this.form.doctor) {
@@ -562,16 +668,16 @@
562 668
 </script>
563 669
 
564 670
 <style lang="scss" scoped>
565
-    .registerDialog {
671
+  .registerDialog {
566 672
 
567
-    .el-form {
568
-        display: flex;
569
-        flex-wrap: wrap;
570
-    }
673
+  .el-form {
674
+    display: flex;
675
+    flex-wrap: wrap;
676
+  }
571 677
 
572
-    .el-form-item {
573
-        width: 50%;
574
-    }
678
+  .el-form-item {
679
+    width: 50%;
680
+  }
575 681
 
576
-    }
682
+  }
577 683
 </style>

+ 5 - 0
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -525,6 +525,7 @@
525 525
   import ChargeMonthPrescriptionTable from './components/chargeMonthPrescriptionTable'
526 526
   import NewStatementPrintTwo from './newStatementPrintTwo'
527 527
   import RegisterDialog9504 from './components/registerDialog9504'
528
+  import cryptoJs from 'crypto-js'
528 529
 
529 530
   const moment = require('moment')
530 531
   export default {
@@ -1018,9 +1019,13 @@
1018 1019
         }
1019 1020
       },
1020 1021
       confirm(forms) {
1022
+        var param =  "_api_access_key="+"1781ce9fb73a478289326c16ba8bf2c4"+"&_api_name="+"hssServives"+"&_api_timestamp="+ Date.now()+"&_api_version="+"1.0.0";
1023
+        var signature = cryptoJs.enc.Base64.stringify(cryptoJs.HmacSHA1(param, "b5DPOGjc08DAAMJ8FP31pwwNHKo="));
1021 1024
         forms['record_time'] = this.record_date
1022 1025
         forms['admin_user_id'] = this.$store.getters.xt_user.user.id
1023 1026
         forms['org_id'] = this.$store.getters.xt_user.org_id
1027
+        forms['key'] = signature
1028
+
1024 1029
 
1025 1030
         this.loadingone = true
1026 1031
         var that = this

+ 55 - 55
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue View File

@@ -495,65 +495,65 @@
495 495
         }
496 496
       },
497 497
       changePrescribingNumber(scope) {
498
-         var max_number = 0 
499
-         if(scope.row.prescribing_number_unit == scope.row.drug.max_unit){
500
-            max_number = parseInt(scope.row.prescribing_number) * scope.row.drug.min_number 
501
-         }
502
-         if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
503
-           max_number = parseInt(scope.row.prescribing_number)
504
-         }
505
-         console.log("修改的数量",max_number)
506
-         //查询该药品库存
507
-         if(this.drugList.length > 0){
508
-            var stock_number = 0
509
-            for(let i=0;i<this.drugList.length;i++){
510
-              if(scope.row.id == this.drugList[i].id){
511
-                 for(let j=0;j<this.drugList[i].stock_in.length;j++){
512
-                    stock_number += this.drugList[i].stock_in[j].stock_max_number * this.drugList[i].min_number + this.drugList[i].stock_in[j].stock_min_number
513
-                 }
514
-              }
515
-            }
516
-            console.log("库存数量",stock_number)
517
-         }
518
-        if(scope.row.advice_id > 0){
519
-          //获取该药品上一次出库的的数量
520
-          getHisDoctorAdviceInfo(scope.row.advice_id).then(response=>{
521
-            if(response.data.state == 1){
522
-               var out_count  = 0
523
-               var adviceList = response.data.data.advice
524
-               if(adviceList.prescribing_number_unit == adviceList.drug.max_number){
525
-                   out_count = adviceList.prescribing_number * adviceList.drug.min_number
526
-               }
527
-               if(adviceList.prescribing_number_unit == adviceList.drug.min_unit){
528
-                  out_count = adviceList.prescribing_number
529
-               }
498
+        //  var max_number = 0 
499
+        //  if(scope.row.prescribing_number_unit == scope.row.drug.max_unit){
500
+        //     max_number = parseInt(scope.row.prescribing_number) * scope.row.drug.min_number 
501
+        //  }
502
+        //  if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
503
+        //    max_number = parseInt(scope.row.prescribing_number)
504
+        //  }
505
+        //  console.log("修改的数量",max_number)
506
+        //  //查询该药品库存
507
+        //  if(this.drugList.length > 0){
508
+        //     var stock_number = 0
509
+        //     for(let i=0;i<this.drugList.length;i++){
510
+        //       if(scope.row.id == this.drugList[i].id){
511
+        //          for(let j=0;j<this.drugList[i].stock_in.length;j++){
512
+        //             stock_number += this.drugList[i].stock_in[j].stock_max_number * this.drugList[i].min_number + this.drugList[i].stock_in[j].stock_min_number
513
+        //          }
514
+        //       }
515
+        //     }
516
+        //     console.log("库存数量",stock_number)
517
+        //  }
518
+        // if(scope.row.advice_id > 0){
519
+        //   //获取该药品上一次出库的的数量
520
+        //   getHisDoctorAdviceInfo(scope.row.advice_id).then(response=>{
521
+        //     if(response.data.state == 1){
522
+        //        var out_count  = 0
523
+        //        var adviceList = response.data.data.advice
524
+        //        if(adviceList.prescribing_number_unit == adviceList.drug.max_number){
525
+        //            out_count = adviceList.prescribing_number * adviceList.drug.min_number
526
+        //        }
527
+        //        if(adviceList.prescribing_number_unit == adviceList.drug.min_unit){
528
+        //           out_count = adviceList.prescribing_number
529
+        //        }
530 530
                
531
-               //如果更改的数量大于修改之前的数量
532
-               if(max_number > out_count){
533
-                 if((max_number - out_count)>stock_number){
534
-                   this.$message.error(scope.row.drug_name + '库存不足')
535
-                 }
536
-               }
537
-            }
538
-          })
539
-        }
540
-
541
-        if(scope.row.advice_id == 0){
542
-           if(max_number > stock_number){
543
-            this.$message.error(scope.row.drug_name + '库存不足')
544
-           }
545
-        }
546
-        
531
+        //        //如果更改的数量大于修改之前的数量
532
+        //        if(max_number > out_count){
533
+        //          if((max_number - out_count)>stock_number){
534
+        //            this.$message.error(scope.row.drug_name + '库存不足')
535
+        //          }
536
+        //        }
537
+        //     }
538
+        //   })
539
+        // }
547 540
 
548
-        // if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
549
-        //   if (parseInt(scope.row.prescribing_number) > scope.row.drug.total) {
550
-        //     this.$message.error(scope.row.drug_name + '库存不足')
551
-        //   }
552
-        // } else {
553
-        //   if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total) {
541
+        // if(scope.row.advice_id == 0){
542
+        //    if(max_number > stock_number){
554 543
         //     this.$message.error(scope.row.drug_name + '库存不足')
555
-        //   }
544
+        //    }
556 545
         // }
546
+        
547
+
548
+        if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
549
+          if (parseInt(scope.row.prescribing_number) > scope.row.drug.total) {
550
+            this.$message.error(scope.row.drug_name + '库存不足')
551
+          }
552
+        } else {
553
+          if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total) {
554
+            this.$message.error(scope.row.drug_name + '库存不足')
555
+          }
556
+        }
557 557
       },
558 558
       getProjectSingleDose(scope) {
559 559
         this.prescription.project[scope.$index].total = scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.number_days ? scope.row.number_days : 1)

File diff suppressed because it is too large
+ 3919 - 3915
src/xt_pages/outpatientDoctorStation/doctorDesk.vue


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

@@ -180,8 +180,8 @@ export default {
180 180
       ],originType:0,
181 181
       originState: [
182 182
         { value: 0, label: '全部', source: 0},
183
-        { value: 1, label: '住院', source: 1},
184
-        { value: 2, label: '门诊', source: 2}
183
+        { value: 2, label: '住院', source: 2},
184
+        { value: 1, label: '门诊', source: 1}
185 185
       ],
186 186
       crumbs: [
187 187
         { path: false, name: '质控管理' },

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

@@ -48,7 +48,7 @@
48 48
 
49 49
 
50 50
             <el-form-item label="规格型号 : " prop="specification_name">
51
-              <el-input v-model="form.specification_name" placeholder="" maxlength="30"></el-input>
51
+              <el-input v-model="form.specification_name" placeholder=""></el-input>
52 52
             </el-form-item>
53 53
             <el-form-item prop="packing_unit"  label="包装单位:">
54 54
               <el-select v-model="form.packing_unit" style="width:160px;" placeholder="包装单位" @change="changePackingUnit">

+ 2 - 2
src/xt_pages/stock/cancelStockOrder.vue View File

@@ -198,11 +198,11 @@
198 198
             </template>
199 199
           </el-table-column>
200 200
 
201
-         <el-table-column label="批次" align="center">
201
+         <!-- <el-table-column label="批次" align="center">
202 202
             <template slot-scope="scope">
203 203
               {{ scope.row.number}}
204 204
             </template>
205
-          </el-table-column>
205
+          </el-table-column> -->
206 206
 
207 207
          <el-table-column label="品名/注册证号(备案凭证号)" align="center">
208 208
             <template slot-scope="scope">

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

@@ -201,11 +201,11 @@
201 201
               </template> 
202 202
             </el-table-column>
203 203
 
204
-            <el-table-column label="批次" align="center">
204
+            <!-- <el-table-column label="批次" align="center">
205 205
               <template slot-scope="scope">
206 206
                 {{ scope.row.batch_number}}
207 207
               </template>
208
-            </el-table-column>
208
+            </el-table-column> -->
209 209
 
210 210
             <el-table-column label="品名/注册证号(备案凭证号)" align="center">
211 211
               <template slot-scope="scope">

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

@@ -118,11 +118,11 @@
118 118
             
119 119
            </template>
120 120
         </el-table-column>
121
-        <el-table-column prop="drug_name" label="批号" align="center">
121
+        <!-- <el-table-column prop="drug_name" label="批号" align="center">
122 122
            <template slot-scope="scope">
123 123
              <span>{{scope.row.batch_number}}</span>
124 124
            </template>
125
-        </el-table-column>
125
+        </el-table-column> -->
126 126
         <!-- <el-table-column prop="drug_name" label="生产商" align="center">
127 127
            <template slot-scope="scope">
128 128
              {{getManufacturer(scope.row.manufacturer)}}

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

@@ -98,11 +98,11 @@
98 98
          </template>
99 99
        </el-table-column> -->
100 100
 
101
-       <el-table-column label="批次" align="center">
101
+       <!-- <el-table-column label="批次" align="center">
102 102
          <template slot-scope="scope">
103 103
            <span>{{scope.row.number}}</span>
104 104
          </template>
105
-       </el-table-column>
105
+       </el-table-column> -->
106 106
 
107 107
     
108 108
         <el-table-column prop="drug_name" label="单价"  align="center">

+ 3 - 0
src/xt_pages/workforce/appointment.vue View File

@@ -674,6 +674,9 @@
674 674
         if(this.templateObj.template_id == 2){
675 675
           this.$router.push({path: '/scheduleTablePrint?partition_id='+this.partition_id+"&weekTime="+this.activeName})
676 676
         }
677
+        if(this.templateObj.template_id == 3){
678
+          this.$router.push({path: '/scheduleTablePrintOne?partition_id='+this.partition_id+"&weekTime="+this.activeName})
679
+        }
677 680
        
678 681
       }, 
679 682
       isShow() {

+ 6 - 6
src/xt_pages/workforce/scheduleTablePrint.vue View File

@@ -42,13 +42,15 @@
42 42
                 <td style="min-width:50px;">{{ item.cut }}</td>
43 43
                 <td style="min-width:50px;">
44 44
                     <span v-if="item.Mon_M.patient_id">
45
-                        <div>{{ item.Mon_M.patient }}</div>
46
-                        <div v-if="item.Mon_M.mode_name != 'HD'">{{ item.Mon_M.mode_name }}</div>
45
+                        <div>{{ item.Mon_M.patient }} </div>
46
+                        <div v-if="item.Mon_M.mode_name != 'HD'">
47
+                            {{ item.Mon_M.mode_name }}
48
+                     </div>
47 49
                     </span>
48 50
                 </td>
49 51
                 <td style="min-width:50px;">
50 52
                     <span v-if="item.Mon_A.patient_id">
51
-                        <div>{{ item.Mon_A.patient }}</div>
53
+                        <div>{{ item.Mon_A.patient }} </div>
52 54
                         <div v-if="item.Mon_A.mode_name != 'HD'">{{ item.Mon_A.mode_name }}</div>
53 55
                     </span>
54 56
                 </td>
@@ -209,9 +211,7 @@ export default {
209 211
     created(){
210 212
         this.getAllZones()
211 213
         this.modeOptions = this.$store.getters.treatment_mode;
212
-        this.partition_id = this.$route.query.partition_id
213
-       
214
-        
214
+        this.partition_id = this.$route.query.partition_id   
215 215
     },
216 216
     methods:{
217 217
          getAllZones(){

+ 868 - 0
src/xt_pages/workforce/scheduleTablePrintOne.vue View File

@@ -0,0 +1,868 @@
1
+<template>
2
+    <div>
3
+        <el-button type="primary" @click="printAction">打印</el-button>
4
+        <table id="scheduleTable" class="scheduleTable" border="1" cellspacing="0">
5
+            <tr>
6
+                <td rowspan="2">分区</td>
7
+                <td rowspan="2">机号</td>
8
+                <td colspan="3">周一({{ weekTitle[0] }})</td>
9
+                <td colspan="3">周二({{ weekTitle[1] }})</td>
10
+                <td colspan="3">周三({{ weekTitle[2] }})</td>
11
+                <td colspan="3">周四({{ weekTitle[3] }})</td>
12
+                <td colspan="3">周五({{ weekTitle[4] }})</td>
13
+                <td colspan="3">周六({{ weekTitle[5] }})</td>
14
+                <td colspan="3">周日({{ weekTitle[6] }})</td>
15
+                <td>总数</td>
16
+            </tr>
17
+            <tr>
18
+                <td>上午</td>
19
+                <td>下午</td>
20
+                <td>晚上</td>
21
+                <td>上午</td>
22
+                <td>下午</td>
23
+                <td>晚上</td>
24
+                <td>上午</td>
25
+                <td>下午</td>
26
+                <td>晚上</td>
27
+                <td>上午</td>
28
+                <td>下午</td>
29
+                <td>晚上</td>
30
+                <td>上午</td>
31
+                <td>下午</td>
32
+                <td>晚上</td>
33
+                <td>上午</td>
34
+                <td>下午</td>
35
+                <td>晚上</td>
36
+                <td>上午</td>
37
+                <td>下午</td>
38
+                <td>晚上</td>
39
+            </tr>
40
+            <tr v-for="(item,index) in scheduleZone" :key="index">
41
+                <td style="min-width:50px;">{{ item.area }}</td>
42
+                <td style="min-width:50px;">{{ item.cut }}</td>
43
+                <td style="min-width:50px;">
44
+                    <span v-if="item.Mon_M.patient_id">
45
+                        <div>{{ item.Mon_M.patient }} </div>
46
+                        <div v-if="item.Mon_M.mode_name != 'HD'">
47
+                            {{ item.Mon_M.mode_name }}
48
+                     </div>
49
+                    </span>
50
+                </td>
51
+                <td style="min-width:50px;">
52
+                    <span v-if="item.Mon_A.patient_id">
53
+                        <div>{{ item.Mon_A.patient }} </div>
54
+                        <div v-if="item.Mon_A.mode_name != 'HD'">{{ item.Mon_A.mode_name }}</div>
55
+                    </span>
56
+                </td>
57
+                <td style="min-width:50px;">
58
+                    <span v-if="item.Mon_N.patient_id">
59
+                        <div>{{ item.Mon_N.patient }}</div>
60
+                        <div v-if="item.Mon_N.mode_name != 'HD'">{{ item.Mon_N.mode_name }}</div>
61
+                    </span>
62
+                </td>
63
+                <td style="min-width:50px;">
64
+                    <span v-if="item.Tue_M.patient_id">
65
+                        <div>{{ item.Tue_M.patient }}</div>
66
+                        <div v-if="item.Tue_M.mode_name != 'HD'">{{ item.Tue_M.mode_name }}</div>
67
+                    </span>
68
+                </td>
69
+                <td style="min-width:50px;">
70
+                    <span v-if="item.Tue_A.patient_id">
71
+                        <div>{{ item.Tue_A.patient }}</div>
72
+                        <div v-if="item.Tue_A.mode_name != 'HD'">{{ item.Tue_A.mode_name }}</div>
73
+                    </span>
74
+                </td>
75
+                <td style="min-width:50px;">
76
+                    <span v-if="item.Tue_N.patient_id">
77
+                        <div>{{ item.Tue_N.patient }}</div>
78
+                        <div v-if="item.Tue_N.mode_name != 'HD'">{{ item.Tue_N.mode_name }}</div>
79
+                    </span>
80
+                </td>
81
+                <td style="min-width:50px;">
82
+                    <span v-if="item.Wed_M.patient_id">
83
+                        <div>{{ item.Wed_M.patient }}</div>
84
+                        <div v-if="item.Wed_M.mode_name != 'HD'">{{ item.Wed_M.mode_name }}</div>
85
+                    </span>
86
+                </td>
87
+                <td style="min-width:50px;">
88
+                    <span v-if="item.Wed_A.patient_id">
89
+                        <div>{{ item.Wed_A.patient }}</div>
90
+                        <div v-if="item.Wed_A.mode_name != 'HD'">{{ item.Wed_A.mode_name }}</div>
91
+                    </span>
92
+                </td>
93
+                <td style="min-width:50px;"> 
94
+                    <span v-if="item.Wed_N.patient_id">
95
+                        <div>{{ item.Wed_N.patient }}</div>
96
+                        <div v-if="item.Wed_N.mode_name != 'HD'">{{ item.Wed_N.mode_name }}</div>
97
+                    </span>
98
+                </td>
99
+                <td style="min-width:50px;">
100
+                    <span v-if="item.Thurs_M.patient_id">
101
+                        <div>{{ item.Thurs_M.patient }}</div>
102
+                        <div v-if="item.Thurs_M.mode_name != 'HD'">{{ item.Thurs_M.mode_name }}</div>
103
+                    </span>
104
+                </td>
105
+                <td style="min-width:50px;">
106
+                    <span v-if="item.Thurs_A.patient_id">
107
+                        <div>{{ item.Thurs_A.patient }}</div>
108
+                        <div v-if="item.Thurs_A.mode_name != 'HD'">{{ item.Thurs_A.mode_name }}</div>
109
+                    </span>
110
+                </td>
111
+                <td style="min-width:50px;">
112
+                    <span v-if="item.Thurs_N.patient_id">
113
+                        <div>{{ item.Thurs_N.patient }}</div>
114
+                        <div v-if="item.Thurs_N.mode_name != 'HD'">{{ item.Thurs_N.mode_name }}</div>
115
+                    </span>
116
+                </td>
117
+                <td style="min-width:50px;">
118
+                    <span v-if="item.Fri_M.patient_id">
119
+                        <div>{{ item.Fri_M.patient }}</div>
120
+                        <div v-if="item.Fri_M.mode_name != 'HD'">{{ item.Fri_M.mode_name }}</div>
121
+                    </span>
122
+                </td>
123
+                <td style="min-width:50px;">
124
+                    <span v-if="item.Fri_A.patient_id">
125
+                        <div>{{ item.Fri_A.patient }}</div>
126
+                        <div v-if="item.Fri_A.mode_name != 'HD'">{{ item.Fri_A.mode_name }}</div>
127
+                    </span>
128
+                </td>
129
+                <td style="min-width:50px;">
130
+                    <span v-if="item.Fri_N.patient_id">
131
+                        <div>{{ item.Fri_N.patient }}</div>
132
+                        <div v-if="item.Sat_M.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</div>
133
+                    </span>
134
+                </td>
135
+                <td style="min-width:50px;">
136
+                    <span v-if="item.Sat_M.patient_id">
137
+                        <div>{{ item.Sat_M.patient }}</div>
138
+                        <div v-if="item.Sat_M.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</div>
139
+                    </span>
140
+                </td>
141
+                <td style="min-width:50px;">
142
+                    <span v-if="item.Sat_A.patient_id">
143
+                        <div>{{ item.Sat_A.patient }}</div>
144
+                        <div v-if="item.Sat_A.mode_name != 'HD'">{{ item.Sat_A.mode_name }}</div>
145
+                    </span>
146
+                </td>
147
+                <td style="min-width:50px;">
148
+                    <span v-if="item.Sat_N.patient_id">
149
+                        <div>{{ item.Sat_N.patient }}</div>
150
+                        <div v-if="item.Sat_N.mode_name != 'HD'">{{ item.Sat_N.mode_name }}</div>
151
+                    </span>
152
+                </td>
153
+                <td style="min-width:50px;">
154
+                    <span v-if="item.Sun_M.patient_id">
155
+                        <div>{{ item.Sun_M.patient }}</div>
156
+                        <div v-if="item.Sun_M.mode_name != 'HD'">{{ item.Sun_M.mode_name }} FX80</div>
157
+                    </span>
158
+                </td>
159
+                <td style="min-width:50px;">
160
+                    <span v-if="item.Sun_A.patient_id">
161
+                        <div>{{ item.Sun_A.patient }}</div>
162
+                        <div v-if="item.Sun_A.mode_name != 'HD'">{{ item.Sun_A.mode_name }} FX80</div>
163
+                    </span>
164
+                </td>
165
+                <td style="min-width:50px;">
166
+                    <span v-if="item.Sun_N.patient_id">
167
+                        <div>{{ item.Sun_N.patient }}</div>
168
+                        <div v-if="item.Sun_N.mode_name != 'HD'">{{ item.Sun_N.mode_name }} FX80</div>
169
+                    </span>
170
+                </td>
171
+                <td>{{item.total}}</td>
172
+            </tr>
173
+        </table>
174
+    </div>
175
+</template>
176
+
177
+
178
+
179
+<script>
180
+import {getSchedulesOne,getWeekPanelsOne,getPatientSheduleCount,getAllZones,getSolutionSchedule} from "@/api/schedule";
181
+import print from 'print-js'
182
+export default {
183
+    props:{
184
+        scheduleZoneProp: {
185
+            type: Array,
186
+            dafault: []
187
+        },
188
+    },
189
+    data(){
190
+        return{
191
+            schedule_type:'',
192
+            partition_id:'',
193
+            theType:2,
194
+            scheduleZone:[],
195
+            weekTitle:[],
196
+            scheduleZoneRow: [],
197
+            partitions: {},
198
+            theWeek: {
199
+              lastWeek: 0,
200
+              thisWeek: 0,
201
+              nextWeek: 0,
202
+              nextTwoWeek: 0
203
+           },
204
+           scheduleCountList:[],
205
+           total:0,
206
+           zones:[],
207
+           zoneIdList:[],
208
+           strArr:"",
209
+           solutionList:[]
210
+        }
211
+    },
212
+    created(){
213
+        this.getAllZones()
214
+        this.modeOptions = this.$store.getters.treatment_mode;
215
+        this.partition_id = this.$route.query.partition_id   
216
+        this.getSolutionSchedule()
217
+    },
218
+    methods:{
219
+         getAllZones(){
220
+           getAllZones().then(response=>{
221
+             if(response.data.state == 1){
222
+                var zones = response.data.data.zones
223
+               for(let i=0;i<zones.length;i++){
224
+                    this.zoneIdList.push(zones[i].id)
225
+                }
226
+                this.zones.push(...zones)
227
+                var strArr =  this.zoneIdList.join(",")
228
+                
229
+                this.strArr = strArr
230
+                this.getWeekPanels()
231
+                //统计患者排班数量
232
+                this.getPatientSheduleCount()
233
+            }
234
+          })
235
+        },
236
+        getWeekPanels() {
237
+             this.scheduleZone = []
238
+              var partionStr = this.partition_id
239
+              var arr = this.zoneIdList.join(',')
240
+               var str = ""
241
+                if(partionStr == 0){
242
+                    str = arr
243
+                }
244
+                if(partionStr != 0){
245
+                    str = partionStr
246
+                }
247
+            getWeekPanelsOne(1,str).then(response => {
248
+                if (response.data.state == 0) {
249
+                    return false
250
+                }
251
+                var partitions = response.data.data.partitions
252
+                console.log("分区",partitions)
253
+                this.theWeek.thisWeek = response.data.data.theWeek
254
+                this.theWeek.lastWeek = this.theWeek.thisWeek - 1
255
+                this.theWeek.nextWeek = this.theWeek.thisWeek + 1
256
+                this.theWeek.nextTwoWeek = this.theWeek.thisWeek + 2
257
+                var that = this
258
+                if (partitions.length > 0) {
259
+                    partitions.forEach(function(partition) {
260
+                        if (partition.jihaos.length == 0) {
261
+                            return false
262
+                        }
263
+                        that.scheduleZoneRow.push(partition.jihaos.length)
264
+                        that.partitions[partition.id] = partition
265
+                        partition.jihaos.forEach(function(jihao) {
266
+                            var thisPa = {
267
+                            area: partition.name,
268
+                            zone_id: partition.id,
269
+                            zone_type: partition.type,
270
+                            cut: jihao.number,
271
+                            jihao_id: jihao.id,
272
+                            Mon_M: {
273
+                                schedule_id: 0,
274
+                                mode_id: 0,
275
+                                mode_name: '',
276
+                                patient_id: 0,
277
+                                patient: ''
278
+                            },
279
+                            Mon_A: {
280
+                                schedule_id: 0,
281
+                                mode_id: 0,
282
+                                mode_name: '',
283
+                                patient_id: 0,
284
+                                patient: ''
285
+                            },
286
+                            Mon_N: {
287
+                                schedule_id: 0,
288
+                                mode_id: 0,
289
+                                mode_name: '',
290
+                                patient_id: 0,
291
+                                patient: ''
292
+                            },
293
+                            Tue_M: {
294
+                                schedule_id: 0,
295
+                                mode_id: 0,
296
+                                mode_name: '',
297
+                                patient_id: 0,
298
+                                patient: ''
299
+                            },
300
+                            Tue_A: {
301
+                                schedule_id: 0,
302
+                                mode_id: 0,
303
+                                mode_name: '',
304
+                                patient_id: 0,
305
+                                patient: ''
306
+                            },
307
+                            Tue_N: {
308
+                                schedule_id: 0,
309
+                                mode_id: 0,
310
+                                mode_name: '',
311
+                                patient_id: 0,
312
+                                patient: ''
313
+                            },
314
+                            Wed_M: {
315
+                                schedule_id: 0,
316
+                                mode_id: 0,
317
+                                mode_name: '',
318
+                                patient_id: 0,
319
+                                patient: ''
320
+                            },
321
+                            Wed_A: {
322
+                                schedule_id: 0,
323
+                                mode_id: 0,
324
+                                mode_name: '',
325
+                                patient_id: 0,
326
+                                patient: ''
327
+                            },
328
+                            Wed_N: {
329
+                                schedule_id: 0,
330
+                                mode_id: 0,
331
+                                mode_name: '',
332
+                                patient_id: 0,
333
+                                patient: ''
334
+                            },
335
+                            Thurs_M: {
336
+                                schedule_id: 0,
337
+                                mode_id: 0,
338
+                                mode_name: '',
339
+                                patient_id: 0,
340
+                                patient: ''
341
+                            },
342
+                            Thurs_A: {
343
+                                schedule_id: 0,
344
+                                mode_id: 0,
345
+                                mode_name: '',
346
+                                patient_id: 0,
347
+                                patient: ''
348
+                            },
349
+                            Thurs_N: {
350
+                                schedule_id: 0,
351
+                                mode_id: 0,
352
+                                mode_name: '',
353
+                                patient_id: 0,
354
+                                patient: ''
355
+                            },
356
+                            Fri_M: {
357
+                                schedule_id: 0,
358
+                                mode_id: 0,
359
+                                mode_name: '',
360
+                                patient_id: 0,
361
+                                patient: ''
362
+                            },
363
+                            Fri_A: {
364
+                                schedule_id: 0,
365
+                                mode_id: 0,
366
+                                mode_name: '',
367
+                                patient_id: 0,
368
+                                patient: ''
369
+                            },
370
+                            Fri_N: {
371
+                                schedule_id: 0,
372
+                                mode_id: 0,
373
+                                mode_name: '',
374
+                                patient_id: 0,
375
+                                patient: ''
376
+                            },
377
+                            Sat_M: {
378
+                                schedule_id: 0,
379
+                                mode_id: 0,
380
+                                mode_name: '',
381
+                                patient_id: 0,
382
+                                patient: ''
383
+                            },
384
+                            Sat_A: {
385
+                                schedule_id: 0,
386
+                                mode_id: 0,
387
+                                mode_name: '',
388
+                                patient_id: 0,
389
+                                patient: ''
390
+                            },
391
+                            Sat_N: {
392
+                                schedule_id: 0,
393
+                                mode_id: 0,
394
+                                mode_name: '',
395
+                                patient_id: 0,
396
+                                patient: ''
397
+                            },
398
+                            Sun_A: {
399
+                                schedule_id: 0,
400
+                                mode_id: 0,
401
+                                mode_name: '',
402
+                                patient_id: 0,
403
+                                patient: ''
404
+                            },
405
+                            Sun_N: {
406
+                                schedule_id: 0,
407
+                                mode_id: 0,
408
+                                mode_name: '',
409
+                                patient_id: 0,
410
+                                patient: ''
411
+                            },
412
+                            Sun_M: {
413
+                                schedule_id: 0,
414
+                                mode_id: 0,
415
+                                mode_name: '',
416
+                                patient_id: 0,
417
+                                patient: ''
418
+                            },
419
+                            total: 0
420
+                            }
421
+                            that.scheduleZone.push(thisPa)
422
+
423
+                        })
424
+                    })
425
+                }
426
+                this.getSchedules()
427
+            })
428
+        },
429
+        getSchedules() {
430
+            var theType = 2;
431
+            if(this.$route.query.weekTime == "lastWeek"){
432
+               theType = 1
433
+            }
434
+           if(this.$route.query.weekTime == "thisWeek"){
435
+               theType = 2
436
+            }
437
+            if(this.$route.query.weekTime == "nextWeek"){
438
+               theType = 3
439
+            }
440
+           if(this.$route.query.weekTime == "nextTwoWeek"){
441
+               theType = 4
442
+            }
443
+            var partionStr = this.partition_id
444
+            var arr = this.zoneIdList.join(',')
445
+            var str = ""
446
+            if(partionStr == 0){
447
+                str = arr
448
+            }
449
+            if(partionStr != 0){
450
+                str = partionStr
451
+            }
452
+            const params = {
453
+                weekTime:theType,
454
+                patitionid:str,
455
+                schedule_type:this.schedule_type,
456
+            }
457
+            getSchedulesOne(params).then(response => {
458
+                if (response.data.state == 1) {
459
+                    this.weekTitle = response.data.data.weekTitle;
460
+                    this.weekDays = response.data.data.days;
461
+                    this.toDay = response.data.data.today;
462
+                    var theSchedules = response.data.data.schdules;
463
+                    var that = this;
464
+                    that.scheduleZone.forEach(function(zone, index) {
465
+                        
466
+                        that.scheduleZone[index].Mon_M = {
467
+                            mode_id: 0,
468
+                            mode_name: "",
469
+                            patient_id: 0,
470
+                            patient: ""
471
+                        };
472
+                        that.scheduleZone[index].Mon_A = {
473
+                            mode_id: 0,
474
+                            mode_name: "",
475
+                            patient_id: 0,
476
+                            patient: ""
477
+                        };
478
+                        that.scheduleZone[index].Mon_N = {
479
+                            mode_id: 0,
480
+                            mode_name: "",
481
+                            patient_id: 0,
482
+                            patient: ""
483
+                        };
484
+                        that.scheduleZone[index].Tue_M = {
485
+                            mode_id: 0,
486
+                            mode_name: "",
487
+                            patient_id: 0,
488
+                            patient: ""
489
+                        };
490
+                        that.scheduleZone[index].Tue_A = {
491
+                            mode_id: 0,
492
+                            mode_name: "",
493
+                            patient_id: 0,
494
+                            patient: ""
495
+                        };
496
+                        that.scheduleZone[index].Tue_N = {
497
+                            mode_id: 0,
498
+                            mode_name: "",
499
+                            patient_id: 0,
500
+                            patient: ""
501
+                        };
502
+                        that.scheduleZone[index].Wed_M = {
503
+                            mode_id: 0,
504
+                            mode_name: "",
505
+                            patient_id: 0,
506
+                            patient: ""
507
+                        };
508
+                        that.scheduleZone[index].Wed_A = {
509
+                            mode_id: 0,
510
+                            mode_name: "",
511
+                            patient_id: 0,
512
+                            patient: ""
513
+                        };
514
+                        that.scheduleZone[index].Wed_N = {
515
+                            mode_id: 0,
516
+                            mode_name: "",
517
+                            patient_id: 0,
518
+                            patient: ""
519
+                        };
520
+                        that.scheduleZone[index].Thurs_M = {
521
+                            mode_id: 0,
522
+                            mode_name: "",
523
+                            patient_id: 0,
524
+                            patient: ""
525
+                        };
526
+                        that.scheduleZone[index].Thurs_A = {
527
+                            mode_id: 0,
528
+                            mode_name: "",
529
+                            patient_id: 0,
530
+                            patient: ""
531
+                        };
532
+                        that.scheduleZone[index].Thurs_N = {
533
+                            mode_id: 0,
534
+                            mode_name: "",
535
+                            patient_id: 0,
536
+                            patient: ""
537
+                        };
538
+                        that.scheduleZone[index].Fri_M = {
539
+                            mode_id: 0,
540
+                            mode_name: "",
541
+                            patient_id: 0,
542
+                            patient: ""
543
+                        };
544
+                        that.scheduleZone[index].Fri_A = {
545
+                            mode_id: 0,
546
+                            mode_name: "",
547
+                            patient_id: 0,
548
+                            patient: ""
549
+                        };
550
+                        that.scheduleZone[index].Fri_N = {
551
+                            mode_id: 0,
552
+                            mode_name: "",
553
+                            patient_id: 0,
554
+                            patient: ""
555
+                        };
556
+                        that.scheduleZone[index].Sat_M = {
557
+                            mode_id: 0,
558
+                            mode_name: "",
559
+                            patient_id: 0,
560
+                            patient: ""
561
+                        };
562
+                        that.scheduleZone[index].Sat_A = {
563
+                            mode_id: 0,
564
+                            mode_name: "",
565
+                            patient_id: 0,
566
+                            patient: ""
567
+                        };
568
+                        that.scheduleZone[index].Sat_N = {
569
+                            mode_id: 0,
570
+                            mode_name: "",
571
+                            patient_id: 0,
572
+                            patient: ""
573
+                        };
574
+                        that.scheduleZone[index].Sun_A = {
575
+                            mode_id: 0,
576
+                            mode_name: "",
577
+                            patient_id: 0,
578
+                            patient: ""
579
+                        };
580
+                        that.scheduleZone[index].Sun_N = {
581
+                            mode_id: 0,
582
+                            mode_name: "",
583
+                            patient_id: 0,
584
+                            patient: ""
585
+                        };
586
+                        that.scheduleZone[index].Sun_M = {
587
+                            mode_id: 0,
588
+                            mode_name: "",
589
+                            patient_id: 0,
590
+                            patient: ""
591
+                        };
592
+                        that.scheduleZone[index].total = 0;
593
+                        
594
+                        if (response.data.data.schdules.length > 0) {
595
+                            theSchedules.forEach(function(schedule, sindex) {
596
+
597
+                                if (zone.jihao_id == schedule.bed_id) {
598
+                                    // if(zone.zone_id == schedule.partition_id && zone.jihao_id == schedule.bed_id) {
599
+                                    var weekPath = that.weekPath(
600
+                                        schedule.schedule_week,
601
+                                        schedule.schedule_type
602
+                                    );
603
+
604
+                                    if (weekPath.length == 2) {
605
+                                        // console.log(schedule);
606
+
607
+                                        var weekPathKey = weekPath[0] + "_" + weekPath[1];
608
+                                        that.scheduleZone[index][weekPathKey] = {
609
+                                        schedule_id: schedule.id,
610
+                                        mode_id: schedule.mode_id,
611
+                                        patient_id: schedule.patient_id,
612
+                                        patient: schedule.patient,
613
+                                        patient_contagions: schedule.patient_contagions,
614
+                                        mode_name:
615
+                                            typeof that.modeOptions[schedule.mode_id] ===
616
+                                            "undefined"
617
+                                            ? ""
618
+                                            : that.modeOptions[schedule.mode_id].name
619
+                                        };
620
+                                        that.scheduleZone[index].total += 1;
621
+                                        
622
+                                    }
623
+                                    
624
+                                }
625
+                                
626
+                            });
627
+                        }
628
+                       
629
+                    });
630
+                    var newArr= [{"area":"总数","cut":0,"Fri_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Fri_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Fri_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Mon_A":{mode_id:0,mode_name:"",patient:"",patient_id:"1"},"Mon_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Mon_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sat_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sat_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sat_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sun_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sun_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sun_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Thurs_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Thurs_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Thurs_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Tue_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Tue_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Tue_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Wed_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Wed_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Wed_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"jihao_id":"","total":"","zone_id":"","zone_type":""}]
631
+                     
632
+                     
633
+                     for(let i=0;i<newArr.length;i++){
634
+                       for(let j=0;j<this.scheduleCountList.length;j++){
635
+                            newArr[i].cut = this.total
636
+                         //礼拜一上午
637
+                          if(this.scheduleCountList[j].schedule_week == 1 && this.scheduleCountList[j].schedule_type == 1){
638
+                            
639
+                              newArr[i].Mon_M.patient = this.scheduleCountList[j].Count
640
+                          } 
641
+                        //礼拜一下午
642
+                         if(this.scheduleCountList[j].schedule_week == 1 && this.scheduleCountList[j].schedule_type == 2){
643
+                           
644
+                              newArr[i].Mon_A.patient = this.scheduleCountList[j].Count
645
+                          } 
646
+
647
+                         //礼拜一晚上
648
+                         if(this.scheduleCountList[j].schedule_week == 1 && this.scheduleCountList[j].schedule_type == 3){
649
+                            
650
+                              newArr[i].Mon_N.patient = this.scheduleCountList[j].Count
651
+                          } 
652
+                         
653
+                        //礼拜二上午
654
+                         if(this.scheduleCountList[j].schedule_week == 2 && this.scheduleCountList[j].schedule_type == 1){
655
+                            
656
+                              newArr[i].Tue_M.patient = this.scheduleCountList[j].Count
657
+                          } 
658
+                         //礼拜二下午
659
+                         if(this.scheduleCountList[j].schedule_week == 2 && this.scheduleCountList[j].schedule_type == 2){
660
+                            
661
+                              newArr[i].Tue_A.patient = this.scheduleCountList[j].Count
662
+                          } 
663
+                        
664
+                         //礼拜二晚上
665
+                         if(this.scheduleCountList[j].schedule_week == 2 && this.scheduleCountList[j].schedule_type == 3){
666
+                            
667
+                              newArr[i].Tue_N.patient = this.scheduleCountList[j].Count
668
+                          } 
669
+
670
+                         //礼拜三上午
671
+                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 1){
672
+                            
673
+                              newArr[i].Wed_M.patient = this.scheduleCountList[j].Count
674
+                          } 
675
+
676
+                         //礼拜三下午
677
+                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 2){
678
+                            
679
+                              newArr[i].Wed_A.patient = this.scheduleCountList[j].Count
680
+                          }
681
+
682
+                         //礼拜三晚上
683
+                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 3){
684
+                            
685
+                              newArr[i].Wed_N.patient = this.scheduleCountList[j].Count
686
+                          }
687
+
688
+
689
+
690
+                        //礼拜四上午
691
+                         if(this.scheduleCountList[j].schedule_week == 4 && this.scheduleCountList[j].schedule_type == 1){
692
+                            
693
+                              newArr[i].Thurs_M.patient = this.scheduleCountList[j].Count
694
+                          } 
695
+
696
+                         //礼拜四下午
697
+                         if(this.scheduleCountList[j].schedule_week == 4 && this.scheduleCountList[j].schedule_type == 2){
698
+                            
699
+                              newArr[i].Thurs_A.patient = this.scheduleCountList[j].Count
700
+                          }
701
+
702
+                         //礼拜四晚上
703
+                         if(this.scheduleCountList[j].schedule_week == 4 && this.scheduleCountList[j].schedule_type == 3){
704
+                            
705
+                              newArr[i].Thurs_N.patient = this.scheduleCountList[j].Count
706
+                          }
707
+
708
+
709
+                        //礼拜五上午
710
+                         if(this.scheduleCountList[j].schedule_week == 5 && this.scheduleCountList[j].schedule_type == 1){
711
+                            
712
+                              newArr[i].Fri_M.patient = this.scheduleCountList[j].Count
713
+                          } 
714
+
715
+                         //礼拜五下午
716
+                         if(this.scheduleCountList[j].schedule_week == 5 && this.scheduleCountList[j].schedule_type == 2){
717
+                            
718
+                              newArr[i].Fri_A.patient = this.scheduleCountList[j].Count
719
+                          }
720
+
721
+                         //礼拜五晚上
722
+                         if(this.scheduleCountList[j].schedule_week == 5 && this.scheduleCountList[j].schedule_type == 3){
723
+                            
724
+                              newArr[i].Fri_N.patient = this.scheduleCountList[j].Count
725
+                          }
726
+
727
+
728
+                        //礼拜六上午
729
+                         if(this.scheduleCountList[j].schedule_week == 6 && this.scheduleCountList[j].schedule_type == 1){
730
+                            
731
+                              newArr[i].Sat_M.patient = this.scheduleCountList[j].Count
732
+                          } 
733
+
734
+                         //礼拜六下午
735
+                         if(this.scheduleCountList[j].schedule_week == 6 && this.scheduleCountList[j].schedule_type == 2){
736
+                            
737
+                              newArr[i].Sat_A.patient = this.scheduleCountList[j].Count
738
+                          }
739
+
740
+                         //礼拜六晚上
741
+                         if(this.scheduleCountList[j].schedule_week == 6 && this.scheduleCountList[j].schedule_type == 3){
742
+                            
743
+                              newArr[i].Sat_N.patient = this.scheduleCountList[j].Count
744
+                          }
745
+                         
746
+
747
+                          //礼拜日上午
748
+                         if(this.scheduleCountList[j].schedule_week == 7 && this.scheduleCountList[j].schedule_type == 1){
749
+                            
750
+                              newArr[i].Sun_M.patient = this.scheduleCountList[j].Count
751
+                          } 
752
+
753
+                         //礼拜日下午
754
+                         if(this.scheduleCountList[j].schedule_week == 7 && this.scheduleCountList[j].schedule_type == 2){
755
+                            
756
+                              newArr[i].Sun_A.patient = this.scheduleCountList[j].Count
757
+                          }
758
+
759
+                         //礼拜日晚上
760
+                         if(this.scheduleCountList[j].schedule_week == 7 && this.scheduleCountList[j].schedule_type == 3){
761
+                            
762
+                              newArr[i].Sun_N.patient = this.scheduleCountList[j].Count
763
+                          }
764
+
765
+
766
+                       }
767
+                     }
768
+                    console.log("newArr222222222",newArr)
769
+                    that.scheduleZone.push(...newArr)
770
+                    console.log('总数据77777777777',that.scheduleZone)
771
+                    
772
+                } else {
773
+                    this.$message.error("网络错误");
774
+                    return false;
775
+                }
776
+            });
777
+        },
778
+        weekPath(week, schedule_type) {
779
+            var weekArr = {
780
+                1: "Mon",
781
+                2: "Tue",
782
+                3: "Wed",
783
+                4: "Thurs",
784
+                5: "Fri",
785
+                6: "Sat",
786
+                7: "Sun"
787
+            };
788
+            var typeArr = { 1: "M", 2: "A", 3: "N" };
789
+            if (
790
+                typeof weekArr[week] === "undefined" ||
791
+                typeof typeArr[schedule_type] === "undefined"
792
+            ) {
793
+                return [];
794
+            }
795
+            return [weekArr[week], typeArr[schedule_type]];
796
+        },
797
+        printAction: function() {
798
+            const style = '@media print {#scheduleTable{font-size:16px;} .scheduleTable tr td{text-align: center;padding: 5px;}}'
799
+
800
+            printJS({
801
+            printable: 'scheduleTable',
802
+            type: 'html',
803
+            documentTitle: '  ',
804
+            style: style,
805
+            scanStyles: false
806
+            })
807
+        },
808
+        getPatientSheduleCount(){
809
+            var theType = 2;
810
+            if(this.$route.query.weekTime == "lastWeek"){
811
+               theType = 1
812
+            }
813
+           if(this.$route.query.weekTime == "thisWeek"){
814
+               theType = 2
815
+            }
816
+            if(this.$route.query.weekTime == "nextWeek"){
817
+               theType = 3
818
+            }
819
+           if(this.$route.query.weekTime == "nextTwoWeek"){
820
+               theType = 4
821
+            }
822
+           var partionStr = this.partition_id
823
+           console.log("partionStr",partionStr)
824
+            var arr = this.zoneIdList.join(',')
825
+            var str = ""
826
+            if(partionStr == 0){
827
+                str = arr
828
+            }
829
+            if(partionStr != 0){
830
+                str = partionStr
831
+            }
832
+            var params = {
833
+             weekTime:theType,
834
+             partition_id:str,
835
+
836
+            }
837
+           getPatientSheduleCount(params).then(response=>{
838
+               if(response.data.state == 1){
839
+                  var list = response.data.data.list
840
+                  console.log("list22222",list)
841
+                  
842
+                  this.scheduleCountList = list
843
+                  var total = response.data.data.total
844
+                  console.log("totalw222",total)
845
+                  this.total = total
846
+               }
847
+           }) 
848
+        },
849
+        getSolutionSchedule(){
850
+          getSolutionSchedule().then(response=>{
851
+             if(response.data.state ==1){
852
+               var solution = response.data.data.solution
853
+               console.log("solution",solution)
854
+               this.solutionList = solution
855
+             }  
856
+          })  
857
+        }
858
+    }
859
+}
860
+</script>
861
+
862
+
863
+<style lang="scss">
864
+td{
865
+    text-align: center;
866
+    padding: 5px;
867
+}
868
+</style>