Bläddra i källkod

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

see999 3 år sedan
förälder
incheckning
78450e0568

+ 17 - 0
src/api/schedule.js Visa fil

150
     method:"Get",
150
     method:"Get",
151
     params:params
151
     params:params
152
   })
152
   })
153
+}
154
+
155
+export function saveRemindPrint(params){
156
+   return request({
157
+     url:"/api/schedule/saveremindprint",
158
+     method:"get",
159
+     params:params
160
+   })
161
+}
162
+
163
+export function getRemindPrintList(params){
164
+   
165
+  return request({
166
+    url:"/api/schedule/getremindprintlist",
167
+    method:"get",
168
+    params:params
169
+  })
153
 }
170
 }

+ 6 - 6
src/router/modules/outpatientRecord.js Visa fil

12
     isChild: true
12
     isChild: true
13
   },
13
   },
14
   children: [
14
   children: [
15
-    // {
16
-    //     path: '/outpatientRecord/outpatientRecord',
17
-    //     component: () => import('@/xt_pages/outpatientRecord/outpatientRecord'),
18
-    //     name: 'outpatientSickRecord',
19
-    //     meta: { title: 'outpatientSickRecord', noCache: true }
20
-    // },
15
+    {
16
+        path: '/outpatientRecord/outpatientRecord',
17
+        component: () => import('@/xt_pages/outpatientRecord/outpatientRecord'),
18
+        name: 'outpatientSickRecord',
19
+        meta: { title: 'outpatientSickRecord', noCache: true }
20
+    },
21
     {
21
     {
22
       path: '/outpatientRecord/index',
22
       path: '/outpatientRecord/index',
23
       component: () => import('@/xt_pages/hospitalStation/index'),
23
       component: () => import('@/xt_pages/hospitalStation/index'),

+ 4 - 0
src/store/modules/globalConfig.js Visa fil

1871
         id: 35,
1871
         id: 35,
1872
         name: '本'
1872
         name: '本'
1873
       },
1873
       },
1874
+      {
1875
+        id: 36,
1876
+        name: '轴'
1877
+      },
1874
     ],
1878
     ],
1875
     body_fluid: [{
1879
     body_fluid: [{
1876
       id: 1,
1880
       id: 1,

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue Visa fil

322
                   <div class="inline_block" style="flex:1;">
322
                   <div class="inline_block" style="flex:1;">
323
                     透析(滤)器:
323
                     透析(滤)器:
324
                     <div class="under_line" style="width: 100px;text-align: center">
324
                     <div class="under_line" style="width: 100px;text-align: center">
325
-                      {{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "/" }}
325
+                      <!-- {{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "/" }} -->
326
 
326
 
327
-                      <!-- {{ prescription.dialysis_dialyszers ? prescription.dialysis_dialyszers : "/" }} -->
327
+                      {{ prescription.dialysis_dialyszers ? prescription.dialysis_dialyszers : "/" }}
328
                     </div>
328
                     </div>
329
                   </div>
329
                   </div>
330
                   <div class="inline_block" style="flex:1;">
330
                   <div class="inline_block" style="flex:1;">

+ 148 - 0
src/xt_pages/hospitalStation/summary.vue Visa fil

113
             </el-button>
113
             </el-button>
114
             <el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button>
114
             <el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button>
115
 
115
 
116
+            <el-button size="mini" type="primary" @click="refundOne(scope.row)">
117
+              撤销出院
118
+            </el-button>
119
+
120
+            <el-button size="mini" type="primary" @click="refundTwo(scope.row)">
121
+              撤销明细
122
+            </el-button>
123
+
124
+            <el-button size="mini" type="primary" @click="refundThee(scope.row)">
125
+              撤销入院
126
+            </el-button>
116
           </template>
127
           </template>
117
         </el-table-column>
128
         </el-table-column>
118
       </el-table>
129
       </el-table>
236
       }
247
       }
237
     },
248
     },
238
     methods: {
249
     methods: {
250
+      refundOne(row){
251
+        var that = this;
252
+        this.$confirm('是否撤销出院', '撤销出院', {
253
+          confirmButtonText: '确 定',
254
+          cancelButtonText: '取 消',
255
+          type: 'warning'
256
+        }).then(() => {
257
+          let params = {
258
+            'id': row.his_hospital_patient.id,
259
+            'admin_user_id': this.$store.getters.xt_user.user.id,
260
+
261
+          };
262
+          axios.get('http://127.0.0.1:9532/zh/api/outhopitaluncheck/get', {
263
+            params: params
264
+          })
265
+            .then(function(response) {
266
+              if (response.data.state == 0) {
267
+                that.$message.error(response.data.msg);
268
+                return false
269
+              } else {
270
+                if (response.data.data.failed_code == -10) {
271
+                  // that.$message.error(response.data.data.msg)
272
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
273
+                    confirmButtonText: '确 定',
274
+                    type: 'warning'
275
+                  }).then(() => {
276
+
277
+                  }).catch(() => {
278
+                  })
279
+                } else {
280
+                  that.$message({ message: '撤销出院成功', type: 'success', duration: 5000 })
281
+                }
282
+
283
+              }
284
+            })
285
+            .catch(function(error) {
286
+
287
+            })
288
+
289
+        }).catch(() => {
290
+
291
+        })
292
+
293
+
294
+
295
+      },refundThee(row){
296
+
297
+        var that = this;
298
+        this.$confirm('是否撤销入院', '撤销入院', {
299
+          confirmButtonText: '确 定',
300
+          cancelButtonText: '取 消',
301
+          type: 'warning'
302
+        }).then(() => {
303
+          let params = {
304
+            'id': row.his_hospital_patient.id,
305
+            'admin_user_id': this.$store.getters.xt_user.user.id,
306
+
307
+          };
308
+          axios.get('http://127.0.0.1:9532/zh/api/inthopitaluncheck/get', {
309
+            params: params
310
+          })
311
+            .then(function(response) {
312
+              if (response.data.state == 0) {
313
+                that.$message.error(response.data.msg);
314
+                return false
315
+              } else {
316
+                if (response.data.data.failed_code == -10) {
317
+                  // that.$message.error(response.data.data.msg)
318
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
319
+                    confirmButtonText: '确 定',
320
+                    type: 'warning'
321
+                  }).then(() => {
322
+
323
+                  }).catch(() => {
324
+                  })
325
+                } else {
326
+                  that.changeRadioAndPatient(1);
327
+
328
+                  that.$message({ message: '撤销入院成功', type: 'success', duration: 5000 })
329
+                }
330
+
331
+              }
332
+            })
333
+            .catch(function(error) {
334
+
335
+            })
336
+
337
+        }).catch(() => {
338
+
339
+        })
340
+
341
+
342
+      },refundTwo(row){
343
+        var that = this;
344
+        this.$confirm('是否撤销明细', '撤销明细', {
345
+          confirmButtonText: '确 定',
346
+          cancelButtonText: '取 消',
347
+          type: 'warning'
348
+        }).then(() => {
349
+          let params = {
350
+            'order_id': row.id,
351
+            'admin_user_id': this.$store.getters.xt_user.user.id,
352
+          };
353
+          axios.get('http://127.0.0.1:9532/zh/api/refunddetail', {
354
+            params: params
355
+          })
356
+            .then(function(response) {
357
+              if (response.data.state == 0) {
358
+                that.$message.error(response.data.msg);
359
+                that.loadingtwo = false;
360
+                return false
361
+              } else {
362
+                if (response.data.data.failed_code == -10) {
363
+                  // that.$message.error(response.data.data.msg)
364
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
365
+                    confirmButtonText: '确 定',
366
+                    type: 'warning'
367
+                  }).then(() => {
368
+
369
+                  }).catch(() => {
370
+                  })
371
+                } else {
372
+                  that.$message.success("撤销明细成功");
373
+
374
+                  that.changeRadioAndPatient(1);
375
+                }
376
+
377
+              }
378
+            })
379
+            .catch(function(error) {
380
+            })
381
+
382
+        }).catch(() => {
383
+        })
384
+
385
+
386
+      },
239
       uploadInfo(row) {
387
       uploadInfo(row) {
240
         var that = this;
388
         var that = this;
241
         axios.get('http://127.0.0.1:9532/api/settlelist/get', {
389
         axios.get('http://127.0.0.1:9532/api/settlelist/get', {

+ 80 - 82
src/xt_pages/outpatientCharges/components/registerDialog.vue Visa fil

79
 
79
 
80
       <el-form-item label="处方类型:" prop="p_type" :validate-event="is_Name">
80
       <el-form-item label="处方类型:" prop="p_type" :validate-event="is_Name">
81
         <el-select style="margin-right:5px;width:100px;" v-model="form.p_type" placeholder=""
81
         <el-select style="margin-right:5px;width:100px;" v-model="form.p_type" placeholder=""
82
-                   >
82
+        >
83
           <el-option
83
           <el-option
84
             v-for="(item,index) in registers"
84
             v-for="(item,index) in registers"
85
             :key="index"
85
             :key="index"
155
         </div>
155
         </div>
156
       </el-form-item>
156
       </el-form-item>
157
 
157
 
158
-      <el-form-item label="挂号类型:" prop="register" :validate-event="is_Name">
158
+      <el-form-item label="挂号类型:"  >
159
         <el-select v-model="form.register" placeholder="请选择" style="width:100%;">
159
         <el-select v-model="form.register" placeholder="请选择" style="width:100%;">
160
           <el-option
160
           <el-option
161
             v-for="item in register"
161
             v-for="item in register"
166
         </el-select>
166
         </el-select>
167
       </el-form-item>
167
       </el-form-item>
168
       <el-form-item label="挂号费:">
168
       <el-form-item label="挂号费:">
169
-        <el-input  v-model="form.registration_fee"></el-input>
169
+        <el-input v-model="form.registration_fee"></el-input>
170
       </el-form-item>
170
       </el-form-item>
171
       <el-form-item label="诊疗费:">
171
       <el-form-item label="诊疗费:">
172
         <el-input v-model="form.medical_expenses"></el-input>
172
         <el-input v-model="form.medical_expenses"></el-input>
182
 </template>
182
 </template>
183
 
183
 
184
 <script>
184
 <script>
185
-  import {uParseTime,jsGetAge} from "@/utils/tools";
185
+  import {jsGetAge, uParseTime} from "@/utils/tools";
186
   import axios from 'axios'
186
   import axios from 'axios'
187
   import {PostSearch} from '@/api/patient'
187
   import {PostSearch} from '@/api/patient'
188
 
188
 
204
           {value: 16, label: "门诊慢性病"},
204
           {value: 16, label: "门诊慢性病"},
205
           {value: 21, label: "普通住院"},
205
           {value: 21, label: "普通住院"},
206
         ],
206
         ],
207
-        medical_care:[
207
+        medical_care: [
208
           {value: 11, label: "普通门诊"},
208
           {value: 11, label: "普通门诊"},
209
           {value: 12, label: '家庭通道'},
209
           {value: 12, label: '家庭通道'},
210
           {value: 13, label: "门诊大病"},
210
           {value: 13, label: "门诊大病"},
218
         ],
218
         ],
219
 
219
 
220
 
220
 
221
-
222
-
223
         form: {
221
         form: {
224
           id: '',
222
           id: '',
225
           settlement_value: '',
223
           settlement_value: '',
227
           name: '',
225
           name: '',
228
           gender: '',
226
           gender: '',
229
           certificates: 1,
227
           certificates: 1,
230
-          p_type:'',
231
-          sick_type:'',
232
-          diagnosis:'',
228
+          p_type: '',
229
+          sick_type: '',
230
+          diagnosis: '',
233
           medical_care: '',
231
           medical_care: '',
234
           birthday: '',
232
           birthday: '',
235
           age: '',
233
           age: '',
238
           doctor: '',
236
           doctor: '',
239
           id_card_type: 1,
237
           id_card_type: 1,
240
           department: '',
238
           department: '',
241
-          registration_fee: '',
242
-          medical_expenses: '',
239
+          registration_fee: 0,
240
+          medical_expenses: 0,
243
           cost: '',
241
           cost: '',
244
           phone: '',
242
           phone: '',
245
           social_type: '',
243
           social_type: '',
307
           value: 6,
305
           value: 6,
308
           label: "城乡居民大病医疗保险"
306
           label: "城乡居民大病医疗保险"
309
         }, {
307
         }, {
310
-            value: 7,
311
-            label: "生育保险"
312
-          }],
308
+          value: 7,
309
+          label: "生育保险"
310
+        }],
313
         register: [{
311
         register: [{
314
           value: 1,
312
           value: 1,
315
           label: '普通'
313
           label: '普通'
391
     },
389
     },
392
     methods: {
390
     methods: {
393
       handleSelect(val) {
391
       handleSelect(val) {
394
-        this.form.id = val.id
395
-        this.form.name = val.name
396
-        this.form.gender = val.gender
397
-        this.form.birthday = uParseTime(val.birthday, '{y}-{m}-{d}')
398
-        this.form.phone = val.phone
399
-        this.form.id_card = val.id_card_no
400
-        var thisLen =  this.form.id_card.length;
392
+        this.form.id = val.id;
393
+        this.form.name = val.name;
394
+        this.form.gender = val.gender;
395
+        this.form.birthday = uParseTime(val.birthday, '{y}-{m}-{d}');
396
+        this.form.phone = val.phone;
397
+        this.form.id_card = val.id_card_no;
398
+        var thisLen = this.form.id_card.length;
401
         var birth = "";
399
         var birth = "";
402
         if (thisLen == 15) {
400
         if (thisLen == 15) {
403
           birth = "19" + this.form.id_card.substr(6, 6);
401
           birth = "19" + this.form.id_card.substr(6, 6);
405
           birth = this.form.id_card.substr(6, 8);
403
           birth = this.form.id_card.substr(6, 8);
406
         }
404
         }
407
         var births =
405
         var births =
408
-                birth.substr(0, 4) +
409
-                "-" +
410
-                birth.substr(4, 2) +
411
-                "-" +
412
-                birth.substr(6, 2);
406
+          birth.substr(0, 4) +
407
+          "-" +
408
+          birth.substr(4, 2) +
409
+          "-" +
410
+          birth.substr(6, 2);
413
         this.form.age = jsGetAge(births, "-");
411
         this.form.age = jsGetAge(births, "-");
414
       },
412
       },
415
       querySearchAsync(keyword, cb) {
413
       querySearchAsync(keyword, cb) {
416
-        let key = ''
414
+        let key = '';
417
         if (keyword != undefined) {
415
         if (keyword != undefined) {
418
           key = keyword
416
           key = keyword
419
         }
417
         }
420
-        let searchArray = []
418
+        let searchArray = [];
421
         PostSearch(key).then(response => {
419
         PostSearch(key).then(response => {
422
           if (response.data.state == 1) {
420
           if (response.data.state == 1) {
423
-            searchArray = response.data.data.patient
421
+            searchArray = response.data.data.patient;
424
             cb(searchArray)
422
             cb(searchArray)
425
           } else {
423
           } else {
426
             cb([])
424
             cb([])
428
         })
426
         })
429
       },
427
       },
430
       reading(medicalInsuranceCard) {
428
       reading(medicalInsuranceCard) {
431
-        var that = this
429
+        var that = this;
432
         if (this.form.id_card_type.length == 0 || this.form.id_card_type == 0) {
430
         if (this.form.id_card_type.length == 0 || this.form.id_card_type == 0) {
433
-          this.$message.error("请先选择读卡类型")
431
+          this.$message.error("请先选择读卡类型");
434
           return
432
           return
435
         }
433
         }
436
         let params = {
434
         let params = {
437
           'id_card_type': this.form.id_card_type,
435
           'id_card_type': this.form.id_card_type,
438
-          'admin_user_id':this.$store.getters.xt_user.user.id,
436
+          'admin_user_id': this.$store.getters.xt_user.user.id,
439
 
437
 
440
-        }
438
+        };
441
         axios.get('http://127.0.0.1:9532/api/sscard', {
439
         axios.get('http://127.0.0.1:9532/api/sscard', {
442
           params: params
440
           params: params
443
         })
441
         })
444
           .then(function (response) {
442
           .then(function (response) {
445
             if (response.data.state == 0) {
443
             if (response.data.state == 0) {
446
-              that.$message.error(response.data.msg)
444
+              that.$message.error(response.data.msg);
447
               return false
445
               return false
448
             } else {
446
             } else {
449
-              var patient = response.data.data.patient
447
+              var patient = response.data.data.patient;
450
 
448
 
451
               if (that.form.id_card_type == 1) {
449
               if (that.form.id_card_type == 1) {
452
-                this.form.id = patient.id
453
-                that.form.name = patient.name
454
-                that.form.sex = patient.gender
455
-                that.form.age = patient.age
456
-                that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
457
-                that.form.phone = patient.phone
458
-                that.form.idCard = patient.id_card_no
450
+                this.form.id = patient.id;
451
+                that.form.name = patient.name;
452
+                that.form.sex = patient.gender;
453
+                that.form.age = patient.age;
454
+                that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}');
455
+                that.form.phone = patient.phone;
456
+                that.form.idCard = patient.id_card_no;
459
                 that.form.medicalInsuranceCard = response.data.data.number
457
                 that.form.medicalInsuranceCard = response.data.data.number
460
 
458
 
461
               } else if (that.form.id_card_type == 2) {
459
               } else if (that.form.id_card_type == 2) {
462
-                this.form.id = patient.id
463
-                that.form.name = patient.name
464
-                that.form.sex = patient.gender
465
-                that.form.age = patient.age
466
-                that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
467
-                that.form.phone = patient.phone
460
+                this.form.id = patient.id;
461
+                that.form.name = patient.name;
462
+                that.form.sex = patient.gender;
463
+                that.form.age = patient.age;
464
+                that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}');
465
+                that.form.phone = patient.phone;
468
                 that.form.idCard = patient.id_card_no
466
                 that.form.idCard = patient.id_card_no
469
               }
467
               }
470
               that.$message({message: '读卡成功', type: 'success'})
468
               that.$message({message: '读卡成功', type: 'success'})
479
       getDictionaryDataConfig(module, filed_name) {
477
       getDictionaryDataConfig(module, filed_name) {
480
         return getDictionaryDataConfig(module, filed_name)
478
         return getDictionaryDataConfig(module, filed_name)
481
       },
479
       },
482
-    show: function() {
483
-        this.visibility = true
480
+      show: function () {
481
+        this.visibility = true;
484
         // this.form = Object.assign({}, this.resetForm)
482
         // this.form = Object.assign({}, this.resetForm)
485
-        this.form.id = 0
486
-        this.form.settlement_value = ''
487
-        this.form.medical_insurance_card = ''
488
-        this.form.name = ''
489
-        this.form.gender = ''
490
-        this.form.medical_care = ''
491
-        this.form.birthda = ''
492
-        this.form.age = ''
493
-        this.form.id_card = ''
494
-        this.form.register = ''
495
-        this.form.doctor = ''
496
-        this.form.department = ''
497
-        this.form.registration_fee = ''
498
-        this.form.medical_expenses = ''
499
-        this.form.cost = ''
500
-        this.form.phone = ''
501
-        this.form.social_type = ''
502
-
503
-        this.form.p_type = 14
504
-        this.form.sick_type = this.sick[0].id
505
-        this.form.diagnosis = this.diagnoses[0].id
506
-        this.form.id_card_type = 2
507
-        this.form.certificates = 1
508
-
483
+        this.form.id = 0;
484
+        this.form.settlement_value = '';
485
+        this.form.medical_insurance_card = '';
486
+        this.form.name = '';
487
+        this.form.gender = '';
488
+        this.form.medical_care = '';
489
+        this.form.birthda = '';
490
+        this.form.age = '';
491
+        this.form.id_card = '';
492
+        this.form.register = '';
493
+        this.form.doctor = '';
494
+        this.form.department = '';
495
+        this.form.registration_fee = 0;
496
+        this.form.medical_expenses = 0;
497
+        this.form.cost = '';
498
+        this.form.phone = '';
499
+        this.form.social_type = '';
500
+
501
+        this.form.p_type = 14;
502
+        this.form.sick_type = this.sick[0].id;
503
+        this.form.diagnosis = this.diagnoses[0].id;
504
+        this.form.id_card_type = 2;
505
+        this.form.certificates = 1;
506
+        this.form.settlement_value = 1
509
         // this.form.name = patientInfo.name
507
         // this.form.name = patientInfo.name
510
         // this.form.gender = patientInfo.gender
508
         // this.form.gender = patientInfo.gender
511
         // this.form.age = patientInfo.age
509
         // this.form.age = patientInfo.age
519
         // }
517
         // }
520
 
518
 
521
       },
519
       },
522
-      
520
+
523
       hide: function () {
521
       hide: function () {
524
-        this.visibility = false
522
+        this.visibility = false;
525
         this.$refs['formValue'].resetFields()
523
         this.$refs['formValue'].resetFields()
526
       }, cancel: function (formName) {
524
       }, cancel: function (formName) {
527
-        this.$emit('cancel', this.getValue())
525
+        this.$emit('cancel', this.getValue());
528
         this.$refs['formValue'].resetFields()
526
         this.$refs['formValue'].resetFields()
529
       },
527
       },
530
       confirm: function (formName) {
528
       confirm: function (formName) {
531
         this.$refs['formValue'].validate((valid) => {
529
         this.$refs['formValue'].validate((valid) => {
532
           if (valid) {
530
           if (valid) {
533
-            let value = {}
534
-            value = this.getValue()
531
+            let value = {};
532
+            value = this.getValue();
535
             this.$emit('confirm', value)
533
             this.$emit('confirm', value)
536
           }
534
           }
537
         })
535
         })
538
       },
536
       },
539
       getValue: function () {
537
       getValue: function () {
540
-        let form = {}
541
-        form = this.form
538
+        let form = {};
539
+        form = this.form;
542
         return form
540
         return form
543
       }
541
       }
544
     }
542
     }

+ 41 - 12
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Visa fil

204
                                     <ul class="basicUl">
204
                                     <ul class="basicUl">
205
                                         <li style="width:50%;">姓名:{{patientInfo.name}}</li>
205
                                         <li style="width:50%;">姓名:{{patientInfo.name}}</li>
206
                                         <li style="width:50%;">性别:{{patientInfo.gender == 1 ? '男' : '女' }}</li>
206
                                         <li style="width:50%;">性别:{{patientInfo.gender == 1 ? '男' : '女' }}</li>
207
-                                        <li style="width:50%;">年龄:{{patientInfo.age }}</li>
207
+                                        <li style="width:50%;">年龄:{{getAge(patientInfo.id_card_no)}}</li>
208
                                         <li style="width:50%;">电话:{{patientInfo.phone}}</li>
208
                                         <li style="width:50%;">电话:{{patientInfo.phone}}</li>
209
 
209
 
210
                                         <!--<span>过敏病史:</span>-->
210
                                         <!--<span>过敏病史:</span>-->
372
 
372
 
373
 <script>
373
 <script>
374
   import axios from 'axios'
374
   import axios from 'axios'
375
-
375
+  import { jsGetAge, uParseTime } from '@/utils/tools'
376
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
376
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
377
   import noCharge from './components/noCharge'
377
   import noCharge from './components/noCharge'
378
   import charged from './components/charged'
378
   import charged from './components/charged'
524
       this.getPatientList()
524
       this.getPatientList()
525
     },
525
     },
526
     methods: {
526
     methods: {
527
+      getAge(id_card_no){
528
+        if (id_card_no){
529
+
530
+          var thisLen = id_card_no.length;
531
+          var birth = '';
532
+          if (thisLen == 15) {
533
+            birth = '19' + id_card_no.substr(6, 6)
534
+          } else {
535
+            birth = id_card_no.substr(6, 8)
536
+          }
537
+          var births =
538
+            birth.substr(0, 4) +
539
+            '-' +
540
+            birth.substr(4, 2) +
541
+            '-' +
542
+            birth.substr(6, 2);
543
+          return jsGetAge(births, '-')
544
+
545
+        }else{
546
+
547
+          return 0
548
+
549
+        }
550
+
551
+
552
+      },
527
       query() {
553
       query() {
528
         if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990 ) {
554
         if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990 ) {
529
           var that = this;
555
           var that = this;
794
                       for (let i = 0; i < that.patientTableData.length; i++) {
820
                       for (let i = 0; i < that.patientTableData.length; i++) {
795
                         if (this.patientTableData[i].id == this.patientInfo.id) {
821
                         if (this.patientTableData[i].id == this.patientInfo.id) {
796
                           that.$refs.tab.setCurrentRow(that.patientTableData[i]);
822
                           that.$refs.tab.setCurrentRow(that.patientTableData[i]);
797
-                          that.getPatientInformation(that.patientTableData[i].id, that.patientTableData[i].order.number)
823
+                          that.getPatientInformation(that.patientTableData[i].id, that.patientTableData[i].order.number,that.patientTableData[i].his_patient.id)
798
                         }
824
                         }
799
                       }
825
                       }
800
                       that.loadingone = false;
826
                       that.loadingone = false;
886
                       for (let i = 0; i < that.patientTableData.length; i++) {
912
                       for (let i = 0; i < that.patientTableData.length; i++) {
887
                         if (this.patientTableData[i].id == this.patientInfo.id) {
913
                         if (this.patientTableData[i].id == this.patientInfo.id) {
888
                           that.$refs.tab.setCurrentRow(that.patientTableData[i]);
914
                           that.$refs.tab.setCurrentRow(that.patientTableData[i]);
889
-                          that.getPatientInformation(that.patientTableData[i].id, that.patientTableData[i].order.number)
915
+                          that.getPatientInformation(that.patientTableData[i].id, that.patientTableData[i].order.number,that.patientTableData[i].his_patient.id)
890
                         }
916
                         }
891
                       }
917
                       }
892
                       that.$message({ message: '挂号成功', type: 'success' });
918
                       that.$message({ message: '挂号成功', type: 'success' });
966
                       for (let i = 0; i < that.patientTableData.length; i++) {
992
                       for (let i = 0; i < that.patientTableData.length; i++) {
967
                         if (this.patientTableData[i].id == this.patientInfo.id) {
993
                         if (this.patientTableData[i].id == this.patientInfo.id) {
968
                           that.$refs.tab.setCurrentRow(that.patientTableData[i]);
994
                           that.$refs.tab.setCurrentRow(that.patientTableData[i]);
969
-                          that.getPatientInformation(that.patientTableData[i].id, that.patientTableData[i].order.number)
995
+                          that.getPatientInformation(that.patientTableData[i].id, that.patientTableData[i].order.number,that.patientTableData[i].his_patient.id)
970
                         }
996
                         }
971
                       }
997
                       }
972
                       var his_info = response.data.data.his_info;
998
                       var his_info = response.data.data.his_info;
1016
           'patient_id': this.patientInfo.id,
1042
           'patient_id': this.patientInfo.id,
1017
           'type': this.radio,
1043
           'type': this.radio,
1018
           'p_type':2,
1044
           'p_type':2,
1045
+          'his_patient_id':this.hisPatientInfo.id
1019
         };
1046
         };
1020
         getChargeHisPatientInfo(params).then(response => {
1047
         getChargeHisPatientInfo(params).then(response => {
1021
           if (response.data.state == 0) {
1048
           if (response.data.state == 0) {
1196
               for (let i = 0; i < this.patientTableData.length; i++) {
1223
               for (let i = 0; i < this.patientTableData.length; i++) {
1197
                 if (this.patientTableData[i].id == this.patientInfo.id) {
1224
                 if (this.patientTableData[i].id == this.patientInfo.id) {
1198
                   this.$refs.tab.setCurrentRow(this.patientTableData[i]);
1225
                   this.$refs.tab.setCurrentRow(this.patientTableData[i]);
1199
-                  this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order.number)
1226
+                  this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order.number,this.patientTableData[i].his_patient.id)
1200
                 }
1227
                 }
1201
               }
1228
               }
1202
             }
1229
             }
1281
               for (let i = 0; i < this.patientTableData.length; i++) {
1308
               for (let i = 0; i < this.patientTableData.length; i++) {
1282
                 if (this.patientTableData[i].id == this.patientInfo.id) {
1309
                 if (this.patientTableData[i].id == this.patientInfo.id) {
1283
                   this.$refs.tab.setCurrentRow(this.patientTableData[i]);
1310
                   this.$refs.tab.setCurrentRow(this.patientTableData[i]);
1284
-                  this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order.number)
1311
+                  this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order.number,this.patientTableData[i].his_patient.id)
1285
                 }
1312
                 }
1286
               }
1313
               }
1287
             }
1314
             }
2142
             for (let i = 0; i < this.patientTableData.length; i++){
2169
             for (let i = 0; i < this.patientTableData.length; i++){
2143
               if(this.patientInfo.id == this.patientTableData[i].id)
2170
               if(this.patientInfo.id == this.patientTableData[i].id)
2144
               this.$refs.tab.setCurrentRow(this.patientTableData[i]);
2171
               this.$refs.tab.setCurrentRow(this.patientTableData[i]);
2145
-              this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order.number)
2172
+              this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order.number,this.patientTableData[0].his_patient.id)
2146
             }
2173
             }
2147
 
2174
 
2148
           }
2175
           }
2295
 
2322
 
2296
             for (let i = 0; i < this.patientTableData.length; i++){
2323
             for (let i = 0; i < this.patientTableData.length; i++){
2297
                 this.$refs.tab.setCurrentRow(this.patientTableData[0]);
2324
                 this.$refs.tab.setCurrentRow(this.patientTableData[0]);
2298
-                this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].order.number)
2325
+                this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].order.number,this.patientTableData[0].his_patient.id)
2299
             }
2326
             }
2300
 
2327
 
2301
           }
2328
           }
2389
             this.cal_three = three_count;
2416
             this.cal_three = three_count;
2390
             this.current_index = 0;
2417
             this.current_index = 0;
2391
             this.$refs.tab.setCurrentRow(this.patientTableData[0]);
2418
             this.$refs.tab.setCurrentRow(this.patientTableData[0]);
2392
-            this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].order.number)
2419
+            this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].order.number,this.patientTableData[0].his_patient.id)
2393
 
2420
 
2394
           }
2421
           }
2395
         })
2422
         })
2574
         this.prescriptions = [];
2601
         this.prescriptions = [];
2575
         this.month_prescriptions = [];
2602
         this.month_prescriptions = [];
2576
 
2603
 
2577
-        this.getPatientInformation(val.id, val.order.number);
2604
+        this.getPatientInformation(val.id, val.order.number,val.his_patient.id);
2578
         this.patient_id = val.id;
2605
         this.patient_id = val.id;
2579
 
2606
 
2580
         for (let i = 0; i < this.patientTableData.length; i++) {
2607
         for (let i = 0; i < this.patientTableData.length; i++) {
2587
       },
2614
       },
2588
 
2615
 
2589
       //获取患者的基本信息
2616
       //获取患者的基本信息
2590
-      getPatientInformation(id, batch_number) {
2617
+      getPatientInformation(id, batch_number,his_patient_id) {
2591
 
2618
 
2592
         let params = {
2619
         let params = {
2593
           'record_date': this.record_date,
2620
           'record_date': this.record_date,
2597
           'end_time': this.other_end_time,
2624
           'end_time': this.other_end_time,
2598
           'type': this.radio,
2625
           'type': this.radio,
2599
           'p_type':2,
2626
           'p_type':2,
2627
+          'his_patient_id':his_patient_id
2628
+
2600
 
2629
 
2601
 
2630
 
2602
         };
2631
         };

+ 2 - 1
src/xt_pages/outpatientCharges/statementPrint.vue Visa fil

175
               console.log(response.data.data.info);
175
               console.log(response.data.data.info);
176
               that.info = response.data.data.info;
176
               that.info = response.data.data.info;
177
               console.log(that.info);
177
               console.log(that.info);
178
-
178
+              that.p_admin = response.data.data.printor_admin;
179
+              that.charge_admin = response.data.data.charge_admin;
179
 
180
 
180
               that.info['p_admin'] =  that.p_admin;
181
               that.info['p_admin'] =  that.p_admin;
181
               that.info['charge_admin'] =  that.charge_admin;
182
               that.info['charge_admin'] =  that.charge_admin;

+ 239 - 202
src/xt_pages/outpatientCharges/summary.vue Visa fil

1
 <template>
1
 <template>
2
-    <div class="main-contain outpatientChargesManagement">
3
-        <div class="position">
4
-            <bread-crumb :crumbs='crumbs'></bread-crumb>
2
+  <div class="main-contain outpatientChargesManagement">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+    </div>
6
+    <div class="app-container">
7
+      <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
8
+        <div>
9
+          <el-input size="small" style="width:150px;" v-model="keywords"
10
+                    class="filter-item"/>
11
+          <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"
12
+                     @click="searchAction">
13
+            搜索
14
+          </el-button>
15
+          <el-select size="small" v-model="admin_user_id" placeholder="请选择"
16
+                     style="width:150px;margin-left:10px;" @change="changeDoctor">
17
+            <el-option
18
+              label="全部"
19
+              value="0">
20
+            </el-option>
21
+            <el-option
22
+              v-for="item,index in doctors"
23
+              :key="index"
24
+              :label="item.user_name"
25
+              :value="item.admin_user_id">
26
+            </el-option>
27
+          </el-select>
28
+          <el-date-picker size="small" v-model="start_time" prefix-icon="el-icon-date"
29
+                          @change="handleStartTimeChange" :editable="false" :clearable="false"
30
+                          style="width: 196px;margin-right:10px;" type="date" placeholder="选择开始日期"
31
+                          format="yyyy-MM-dd"
32
+                          value-format="yyyy-MM-dd"
33
+                          align="right"></el-date-picker>
34
+
35
+          <el-date-picker size="small" v-model="end_time" prefix-icon="el-icon-date"
36
+                          @change="handleEndTimeChange" :editable="false" :clearable="false"
37
+                          style="width: 196px;margin-right:10px;" type="date" placeholder="选择结束日期"
38
+                          format="yyyy-MM-dd"
39
+                          value-format="yyyy-MM-dd"
40
+                          align="right"></el-date-picker>
41
+          <!--<el-radio v-model="radio" label="1">明细</el-radio>-->
42
+          <!--<el-radio v-model="radio" label="2">汇总</el-radio>-->
5
         </div>
43
         </div>
6
-        <div class="app-container">
7
-            <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
8
-                <div>
9
-                    <el-input size="small" style="width:150px;" v-model="keywords"
10
-                              class="filter-item"/>
11
-                    <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"
12
-                               @click="searchAction">
13
-                        搜索
14
-                    </el-button>
15
-                    <el-select size="small" v-model="admin_user_id" placeholder="请选择"
16
-                               style="width:150px;margin-left:10px;" @change="changeDoctor">
17
-                        <el-option
18
-                                label="全部"
19
-                                value="0">
20
-                        </el-option>
21
-                        <el-option
22
-                                v-for="item,index in doctors"
23
-                                :key="index"
24
-                                :label="item.user_name"
25
-                                :value="item.admin_user_id">
26
-                        </el-option>
27
-                    </el-select>
28
-                    <el-date-picker size="small" v-model="start_time" prefix-icon="el-icon-date"
29
-                                    @change="handleStartTimeChange" :editable="false" :clearable="false"
30
-                                    style="width: 196px;margin-right:10px;" type="date" placeholder="选择开始日期"
31
-                                    format="yyyy-MM-dd"
32
-                                    value-format="yyyy-MM-dd"
33
-                                    align="right"></el-date-picker>
34
-
35
-                    <el-date-picker size="small" v-model="end_time" prefix-icon="el-icon-date"
36
-                                    @change="handleEndTimeChange" :editable="false" :clearable="false"
37
-                                    style="width: 196px;margin-right:10px;" type="date" placeholder="选择结束日期"
38
-                                    format="yyyy-MM-dd"
39
-                                    value-format="yyyy-MM-dd"
40
-                                    align="right"></el-date-picker>
41
-                    <!--<el-radio v-model="radio" label="1">明细</el-radio>-->
42
-                    <!--<el-radio v-model="radio" label="2">汇总</el-radio>-->
43
-                </div>
44
-                <div>
45
-                    <!-- <el-popover
46
-                      placement="bottom"
47
-                      width="210"
48
-                      trigger="click">
49
-                      <el-button size="small" ref="button_two" @click="open(1)">打印清单</el-button>
50
-                      <el-button size="small" ref="button_six" @click="open(2)">打印汇总</el-button>
51
-                      <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
52
-
53
-                    </el-popover> -->
54
-                    <el-button size="small" type="primary" @click="export_detail">报表下载</el-button>
55
-                </div>
56
-            </div>
57
-            <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
58
-                      :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
59
-                      highlight-current-row>
60
-                <el-table-column
61
-                        prop="date"
62
-                        label="序号"
63
-                        width="60"
64
-                        align="center"
65
-                        type="index"
66
-                >
67
-                </el-table-column>
68
-                <el-table-column align="center" prop="name" label="就诊号">
69
-                    <template slot-scope="scope">{{ scope.row.his_patient.number }}</template>
70
-                </el-table-column>
71
-                <el-table-column align="center" prop="name" label="患者名字">
72
-                    <template slot-scope="scope">{{ scope.row.patient.name }}</template>
73
-                </el-table-column>
74
-                <!--<el-table-column align="center" prop="name" label="患者类型">-->
75
-                <!--<template slot-scope="scope"></template>-->
76
-                <!--</el-table-column>-->
77
-                <el-table-column align="center" prop="name" label="应收金额">
78
-                    <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
79
-                </el-table-column>
80
-                <el-table-column align="center" prop="name" label="实收金额">
81
-                    <template slot-scope="scope">{{scope.row.reality_price}}</template>
82
-                </el-table-column>
83
-                <el-table-column align="center" prop="name" label="科室">
84
-                    <template slot-scope="scope">{{scope.row.department_name}}</template>
85
-                </el-table-column>
86
-                <el-table-column align="center" prop="name" label="收费日期">
87
-                    <template slot-scope="scope"> {{scope.row.setl_time}}</template>
88
-                </el-table-column>
89
-                <el-table-column align="center" prop="name" label="收费员">
90
-                    <template slot-scope="scope">{{ getName(scope.row.creator) }}</template>
91
-                </el-table-column>
92
-                <el-table-column align="center" prop="name" label="状态">
93
-                    <template slot-scope="scope">
94
-                        <div v-if="scope.row.order_status == 1">待结算</div>
95
-                        <div v-if="scope.row.order_status == 2">已结算</div>
96
-                        <div v-if="scope.row.order_status == 3">已退费</div>
97
-                    </template>
98
-                </el-table-column>
99
-                <el-table-column align="center" prop="name" label="操作">
100
-                    <template slot-scope="scope">
101
-                        <el-button size="mini" type="primary" @click="toDetail(scope.row)">详情</el-button>
102
-                        <el-button size="mini" type="primary" @click="toPrint(scope.row)"
103
-                                   v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9504) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9919) ||  ($store.getters.xt_user.org_id == 10106) ||  (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 4) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9990)">
104
-                            结算单
105
-                        </el-button>
106
-                        <el-button size="mini" type="primary" v-if="scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106" @click="settlementPrint(scope.row)">结算单</el-button>
107
-                        <el-button size="mini" type="primary" @click="toRefund(scope.row)" v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106)">
108
-                            退费
109
-                        </el-button>
110
-                        <el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button>
111
-                    </template>
112
-                </el-table-column>
113
-            </el-table>
114
-            <el-pagination
115
-                    @size-change="handleSizeChange"
116
-                    @current-change="handleCurrentChange"
117
-                    :page-sizes="[10, 50, 100]"
118
-                    :page-size="10"
119
-                    background
120
-                    style="margin-top:20px;float: right"
121
-                    layout="total, sizes, prev, pager, next, jumper"
122
-                    :total="total"
123
-
124
-            >
125
-            </el-pagination>
44
+        <div>
45
+          <!-- <el-popover
46
+            placement="bottom"
47
+            width="210"
48
+            trigger="click">
49
+            <el-button size="small" ref="button_two" @click="open(1)">打印清单</el-button>
50
+            <el-button size="small" ref="button_six" @click="open(2)">打印汇总</el-button>
51
+            <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
52
+
53
+          </el-popover> -->
54
+          <el-button size="small" type="primary" @click="export_detail">报表下载</el-button>
126
         </div>
55
         </div>
127
-
128
-        <el-dialog
129
-                class="centerDialog"
130
-                width="1200px"
131
-                title="打印"
132
-                :visible.sync="statementVisible">
133
-            <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
134
-            <new-statement-print ref="print" :paramsObj='orderObj'></new-statement-print>
135
-        </el-dialog>
136
-        <el-dialog
137
-                class="centerDialog"
138
-                width="900px"
139
-                title="打印"
140
-                :visible.sync="listVisible">
141
-            <listPrint></listPrint>
142
-        </el-dialog>
143
-        <el-dialog
144
-                class="centerDialog"
145
-                width="900px"
146
-                title="打印"
147
-                :visible.sync="allListVisible">
148
-            <allListPrint :paramsObj='paramsObj'></allListPrint>
149
-        </el-dialog>
150
-
151
-        <el-dialog
152
-                class="centerDialog"
153
-                width="1200px"
154
-                title="打印"
155
-                :visible.sync="statementVisible9504">
156
-            <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
157
-            <!--<new-statement-print ref="print" :paramsObj='orderObj9504'></new-statement-print>-->
158
-            <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
159
-        </el-dialog>
160
-
161
-        <el-dialog
162
-                class="centerDialog"
163
-                width="1200px"
164
-                title="打印"
165
-                :visible.sync="invoiceVisible">
166
-            <invoice-print ref="print" :invoiceParams='invoiceParams'></invoice-print>
167
-        </el-dialog>
168
-        <el-dialog
169
-                class="centerDialog"
170
-                width="1200px"
171
-                title="打印"
172
-                :visible.sync="settlementVisible">
173
-            <settlement-print ref="print" :paramsObj='settlementObj'></settlement-print>
174
-        </el-dialog>
175
-
56
+      </div>
57
+      <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
58
+                :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
59
+                highlight-current-row>
60
+        <el-table-column
61
+          prop="date"
62
+          label="序号"
63
+          width="60"
64
+          align="center"
65
+          type="index"
66
+        >
67
+        </el-table-column>
68
+        <el-table-column align="center" prop="name" label="就诊号">
69
+          <template slot-scope="scope">{{ scope.row.his_patient.number }}</template>
70
+        </el-table-column>
71
+        <el-table-column align="center" prop="name" label="患者名字">
72
+          <template slot-scope="scope">{{ scope.row.patient.name }}</template>
73
+        </el-table-column>
74
+        <!--<el-table-column align="center" prop="name" label="患者类型">-->
75
+        <!--<template slot-scope="scope"></template>-->
76
+        <!--</el-table-column>-->
77
+
78
+        <el-table-column align="center" prop="name" label="应收金额">
79
+          <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
80
+        </el-table-column>
81
+        <el-table-column align="center" prop="name" label="实收金额">
82
+          <template slot-scope="scope">{{scope.row.reality_price}}</template>
83
+        </el-table-column>
84
+        <el-table-column align="center" prop="name" label="科室">
85
+          <template slot-scope="scope">{{scope.row.department_name}}</template>
86
+        </el-table-column>
87
+        <el-table-column align="center" prop="name" label="收费日期">
88
+          <template slot-scope="scope"> {{scope.row.setl_time?scope.row.setl_time:getTimes(scope.row.settle_accounts_date)}}</template>
89
+        </el-table-column>
90
+        <el-table-column align="center" prop="name" label="收费员">
91
+          <template slot-scope="scope">{{ getName(scope.row.creator) }}</template>
92
+        </el-table-column>
93
+        <el-table-column align="center" prop="name" label="状态">
94
+          <template slot-scope="scope">
95
+            <div v-if="scope.row.order_status == 1">待结算</div>
96
+            <div v-if="scope.row.order_status == 2">已结算</div>
97
+            <div v-if="scope.row.order_status == 3">已退费</div>
98
+          </template>
99
+        </el-table-column>
100
+        <el-table-column align="center" prop="name" label="操作">
101
+          <template slot-scope="scope">
102
+            <el-button size="mini" type="primary" @click="toDetail(scope.row)">详情</el-button>
103
+            <el-button size="mini" type="primary" @click="toPrint(scope.row)"
104
+                       v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9504) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9919) ||  ($store.getters.xt_user.org_id == 10106) ||  (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 4) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9990)">
105
+              结算单
106
+            </el-button>
107
+            <el-button size="mini" type="primary"
108
+                       v-if="scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106"
109
+                       @click="settlementPrint(scope.row)">结算单
110
+            </el-button>
111
+            <el-button size="mini" type="primary" @click="toRefund(scope.row)">
112
+              退费
113
+            </el-button>
114
+            <el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button>
115
+          </template>
116
+        </el-table-column>
117
+      </el-table>
118
+      <el-pagination
119
+        @size-change="handleSizeChange"
120
+        @current-change="handleCurrentChange"
121
+        :page-sizes="[10, 50, 100]"
122
+        :page-size="10"
123
+        background
124
+        style="margin-top:20px;float: right"
125
+        layout="total, sizes, prev, pager, next, jumper"
126
+        :total="total"
127
+
128
+      >
129
+      </el-pagination>
176
     </div>
130
     </div>
131
+
132
+    <el-dialog
133
+      class="centerDialog"
134
+      width="1200px"
135
+      title="打印"
136
+      :visible.sync="statementVisible">
137
+      <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
138
+      <new-statement-print ref="print" :paramsObj='orderObj'></new-statement-print>
139
+    </el-dialog>
140
+    <el-dialog
141
+      class="centerDialog"
142
+      width="900px"
143
+      title="打印"
144
+      :visible.sync="listVisible">
145
+      <listPrint></listPrint>
146
+    </el-dialog>
147
+    <el-dialog
148
+      class="centerDialog"
149
+      width="900px"
150
+      title="打印"
151
+      :visible.sync="allListVisible">
152
+      <allListPrint :paramsObj='paramsObj'></allListPrint>
153
+    </el-dialog>
154
+
155
+    <el-dialog
156
+      class="centerDialog"
157
+      width="1200px"
158
+      title="打印"
159
+      :visible.sync="statementVisible9504">
160
+      <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
161
+      <!--<new-statement-print ref="print" :paramsObj='orderObj9504'></new-statement-print>-->
162
+      <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
163
+    </el-dialog>
164
+
165
+    <el-dialog
166
+      class="centerDialog"
167
+      width="1200px"
168
+      title="打印"
169
+      :visible.sync="invoiceVisible">
170
+      <invoice-print ref="print" :invoiceParams='invoiceParams'></invoice-print>
171
+    </el-dialog>
172
+    <el-dialog
173
+      class="centerDialog"
174
+      width="1200px"
175
+      title="打印"
176
+      :visible.sync="settlementVisible">
177
+      <settlement-print ref="print" :paramsObj='settlementObj'></settlement-print>
178
+    </el-dialog>
179
+
180
+  </div>
177
 </template>
181
 </template>
178
 
182
 
179
 
183
 
180
 <script>
184
 <script>
181
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
185
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
182
-  import { getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund} from '@/api/his/his'
183
-  import { uParseTime } from '@/utils/tools'
186
+  import {getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund} from '@/api/his/his'
187
+  import {uParseTime} from '@/utils/tools'
184
   import NewStatementPrint from './newStatementPrint'
188
   import NewStatementPrint from './newStatementPrint'
185
   import listPrint from './listPrint'
189
   import listPrint from './listPrint'
186
   import allListPrint from './allListPrint'
190
   import allListPrint from './allListPrint'
187
   import NewStatementPrintTwo from './newStatementPrintTwo'
191
   import NewStatementPrintTwo from './newStatementPrintTwo'
188
-  import { fetchAllAdminUsers } from '@/api/doctor'
192
+  import {fetchAllAdminUsers} from '@/api/doctor'
189
   import axios from 'axios'
193
   import axios from 'axios'
190
   import invoicePrint from './invoicePrint'
194
   import invoicePrint from './invoicePrint'
191
   import settlementPrint from './settlementPrint'
195
   import settlementPrint from './settlementPrint'
207
         statementVisible9504: false,
211
         statementVisible9504: false,
208
         orderObj9504: {},
212
         orderObj9504: {},
209
         crumbs: [
213
         crumbs: [
210
-          { path: false, name: '门诊收费' },
211
-          { path: false, name: '项目消费明细汇总' }
214
+          {path: false, name: '门诊收费'},
215
+          {path: false, name: '项目消费明细汇总'}
212
         ],
216
         ],
213
         tableData: [],
217
         tableData: [],
214
         limit: 10,
218
         limit: 10,
221
         admin_user_id: '',
225
         admin_user_id: '',
222
         listVisible: false,
226
         listVisible: false,
223
         allListVisible: false,
227
         allListVisible: false,
224
-        adminUserOptions:[],
225
-        invoiceVisible:false,
226
-        paramsObj:{},
227
-        invoiceParams:{},
228
-        settlementVisible:false,
229
-        settlementObj:{}
228
+        adminUserOptions: [],
229
+        invoiceVisible: false,
230
+        paramsObj: {},
231
+        invoiceParams: {},
232
+        settlementVisible: false,
233
+        settlementObj: {}
230
 
234
 
231
       }
235
       }
232
     },
236
     },
246
           }
250
           }
247
         }
251
         }
248
 
252
 
249
-      },toRefund(row){
250
-        if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106) {
253
+      }, toRefund(row) {
254
+        if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
251
           var that = this;
255
           var that = this;
252
           this.$confirm('是否退费', '退费', {
256
           this.$confirm('是否退费', '退费', {
253
             confirmButtonText: '确 定',
257
             confirmButtonText: '确 定',
263
             axios.get('http://127.0.0.1:9532/api/refund/post', {
267
             axios.get('http://127.0.0.1:9532/api/refund/post', {
264
               params: params
268
               params: params
265
             })
269
             })
266
-              .then(function(response) {
270
+              .then(function (response) {
267
                 if (response.data.state == 0) {
271
                 if (response.data.state == 0) {
268
                   that.$message.error(response.data.msg);
272
                   that.$message.error(response.data.msg);
269
                   return false
273
                   return false
278
                     }).catch(() => {
282
                     }).catch(() => {
279
                     })
283
                     })
280
                   } else {
284
                   } else {
281
-                    that.$message({ message: '退费成功', type: 'success', duration: 5000 });
285
+                    that.$message({message: '退费成功', type: 'success', duration: 5000});
282
                     that.getHisOrderList()
286
                     that.getHisOrderList()
283
 
287
 
284
                   }
288
                   }
285
                 }
289
                 }
286
               })
290
               })
287
-              .catch(function(error) {
291
+              .catch(function (error) {
288
               })
292
               })
289
           }).catch(() => {
293
           }).catch(() => {
290
           })
294
           })
306
                 this.$message.error(response.data.msg);
310
                 this.$message.error(response.data.msg);
307
                 return false
311
                 return false
308
               } else {
312
               } else {
309
-                this.$message({ message: '退费成功', type: 'success' });
313
+                this.$message({message: '退费成功', type: 'success'});
310
                 this.getHisOrderList()
314
                 this.getHisOrderList()
311
               }
315
               }
312
             })
316
             })
333
         }
337
         }
334
 
338
 
335
       },
339
       },
336
-      settlementPrint(row){
340
+      settlementPrint(row) {
337
         this.settlementVisible = true;
341
         this.settlementVisible = true;
338
         let obj = {
342
         let obj = {
339
           order_id: row.id
343
           order_id: row.id
360
               let department = '';
364
               let department = '';
361
               let doctor_name = '';
365
               let doctor_name = '';
362
               let balance_accounts = '';
366
               let balance_accounts = '';
363
-
364
               let order_status = '';
367
               let order_status = '';
368
+              let charge_name = '';
365
 
369
 
370
+              let insutypeName = "";
371
+
372
+              let time = "";
366
               if (order.his_patient != null && order.his_patient.number.length > 0) {
373
               if (order.his_patient != null && order.his_patient.number.length > 0) {
367
                 number = order.his_patient.number
374
                 number = order.his_patient.number
368
 
375
 
369
               }
376
               }
370
 
377
 
378
+
371
               if (order.his_patient != null) {
379
               if (order.his_patient != null) {
372
                 if (order.his_patient.balance_accounts_type == 1) {
380
                 if (order.his_patient.balance_accounts_type == 1) {
373
                   balance_accounts = '自费'
381
                   balance_accounts = '自费'
392
                 doctor_name = order.p_info.doctor
400
                 doctor_name = order.p_info.doctor
393
               }
401
               }
394
 
402
 
403
+              if (order.creator != null) {
404
+                charge_name = this.getName(order.creator)
405
+              }
406
+              if (order.insutype == '390') {
407
+
408
+                insutypeName = "城乡居民基本医疗保险"
409
+              } else if (order.insutype == '310') {
410
+                insutypeName = "职工基本医疗保险"
411
+
412
+
413
+              }
414
+
415
+
395
               if (order.order_status == 1) {
416
               if (order.order_status == 1) {
396
                 order_status = '待结算'
417
                 order_status = '待结算'
397
               }
418
               }
404
                 order_status = '已退费'
425
                 order_status = '已退费'
405
               }
426
               }
406
 
427
 
428
+              if (order.settle_type == 2) {
429
+                time = this.getTimes(order.settle_start_time)
430
+              } else {
431
+                time = this.getTimes(order.settle_accounts_date)
432
+              }
433
+
434
+
407
               let obj = {
435
               let obj = {
408
-                '就诊号': number,
436
+                '就诊号': order.mdtrt_id,
409
                 '患者姓名': name,
437
                 '患者姓名': name,
438
+                '开处时间': time,
439
+                '险种类型': insutypeName,
410
                 '应收金额': order.medfee_sumamt,
440
                 '应收金额': order.medfee_sumamt,
411
                 '实收金额': order.medfee_sumamt,
441
                 '实收金额': order.medfee_sumamt,
442
+                '医保统筹金额': order.fund_pay_sumamt,
443
+                '大额基金金额': order.hifob_pay,
444
+                '大病基金金额': order.hifmi_pay,
445
+                '补充保险基金金额': order.hifes_pay,
446
+                '医疗救助基金金额': order.maf_pay,
447
+                '公务员基金': order.cvlserv_pay,
448
+                '个人支付基金': order.psn_cash_pay,
449
+                '个人账户支付金额': order.acct_pay,
412
                 '科室': department,
450
                 '科室': department,
413
                 '医生姓名': doctor_name,
451
                 '医生姓名': doctor_name,
414
                 '收费类别': balance_accounts,
452
                 '收费类别': balance_accounts,
415
-                '收费者姓名': doctor_name,
453
+                '收费者姓名': charge_name,
416
                 '总金额': order.medfee_sumamt,
454
                 '总金额': order.medfee_sumamt,
417
                 '现金支付': '',
455
                 '现金支付': '',
418
                 '账户支付': '',
456
                 '账户支付': '',
419
                 '支付宝支付': '',
457
                 '支付宝支付': '',
420
                 '微信支付': '',
458
                 '微信支付': '',
421
                 '其他支付': '',
459
                 '其他支付': '',
422
-                '收费日期': '',
460
+                '收费时间': order.setl_time,
423
                 '收费状态': order_status,
461
                 '收费状态': order_status,
424
                 '退费日期': ''
462
                 '退费日期': ''
425
               };
463
               };
426
               list.push(obj)
464
               list.push(obj)
427
             }
465
             }
428
             import('@/vendor/Export2Excel').then(excel => {
466
             import('@/vendor/Export2Excel').then(excel => {
429
-              const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期'];
430
-              const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期'];
467
+              const tHeader = ['就诊号', '患者姓名', '开处时间','险种类型', '应收金额', '实收金额', '医保统筹金额', '大额基金金额', '大病基金金额', '补充保险基金金额', '医疗救助基金金额', '公务员基金', '个人支付基金', '个人账户支付金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期'];
468
+              const filterVal = ['就诊号', '患者姓名','开处时间','险种类型', '应收金额', '实收金额', '医保统筹金额', '大额基金金额', '大病基金金额', '补充保险基金金额', '医疗救助基金金额', '公务员基金', '个人支付基金', '个人账户支付金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期'];
431
               const data = this.formatJson(filterVal, list);
469
               const data = this.formatJson(filterVal, list);
432
               excel.export_json_to_excel({
470
               excel.export_json_to_excel({
433
                 header: tHeader,
471
                 header: tHeader,
517
           this.allListVisible = true
555
           this.allListVisible = true
518
         }
556
         }
519
       },
557
       },
520
-      invoicePrint(obj){
558
+      invoicePrint(obj) {
521
         console.log(obj);
559
         console.log(obj);
522
         let paramsObj = {
560
         let paramsObj = {
523
           order_id: obj.id,
561
           order_id: obj.id,
524
           patient_id: obj.patient_id,
562
           patient_id: obj.patient_id,
525
-          name:obj.patient.name,
526
-          age:obj.age,
527
-          gend:obj.gend,
528
-          setl_time:obj.setl_time
563
+          name: obj.patient.name,
564
+          age: obj.age,
565
+          gend: obj.gend,
566
+          setl_time: obj.setl_time
529
         };
567
         };
530
         this.invoiceParams = paramsObj;
568
         this.invoiceParams = paramsObj;
531
         this.invoiceVisible = true
569
         this.invoiceVisible = true
538
       this.getHisOrderList()
576
       this.getHisOrderList()
539
 
577
 
540
 
578
 
541
-
542
     }
579
     }
543
   }
580
   }
544
 </script>
581
 </script>

+ 18 - 4
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Visa fil

515
         departmentOptions: [],
515
         departmentOptions: [],
516
         departmentValue: '',
516
         departmentValue: '',
517
         total: 0,
517
         total: 0,
518
-        state1: 1,
519
         request_record_date: '',
518
         request_record_date: '',
520
         state2: '',
519
         state2: '',
521
         customTabIndex: 1,
520
         customTabIndex: 1,
551
         sick: [],
550
         sick: [],
552
         diagnoses: [],
551
         diagnoses: [],
553
         diagnose: 1,
552
         diagnose: 1,
553
+        state1: 1,
554
         curTotal: 0,
554
         curTotal: 0,
555
         prescription_id: 0,
555
         prescription_id: 0,
556
         tempDrugs: [],
556
         tempDrugs: [],
1711
 
1711
 
1712
       },
1712
       },
1713
       setData(data, info, admin_info, doctors, department, hisPatientInfo, month_data) {
1713
       setData(data, info, admin_info, doctors, department, hisPatientInfo, month_data) {
1714
+
1715
+
1716
+
1717
+
1718
+
1714
         for (let i = 0; i < doctors.length; i++){
1719
         for (let i = 0; i < doctors.length; i++){
1715
           if(doctors[i].user_type == 1){
1720
           if(doctors[i].user_type == 1){
1716
             doctors.splice(i,1)
1721
             doctors.splice(i,1)
1745
 
1750
 
1746
         this.diagnose = info.diagnosis;
1751
         this.diagnose = info.diagnosis;
1747
         if (this.diagnose == 0) {
1752
         if (this.diagnose == 0) {
1748
-          this.diagnose = ''
1753
+          for(let i = 0; i < this.diagnoses.length;i++){
1754
+            this.diagnose = this.diagnoses[0].id
1755
+          }
1756
+
1749
         }
1757
         }
1750
         if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
1758
         if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
1751
           this.curStatus = 1;
1759
           this.curStatus = 1;
1765
 
1773
 
1766
         this.state1 = info.sick_type;
1774
         this.state1 = info.sick_type;
1767
         if (this.state1 == 0) {
1775
         if (this.state1 == 0) {
1768
-          this.state1 = ''
1776
+          this.state1 = '';
1777
+          for(let i = 0; i < this.sick.length;i++){
1778
+            this.state1 = this.sick[0].id
1779
+          }
1780
+
1769
         }
1781
         }
1770
         this.state2 = info.sick_history;
1782
         this.state2 = info.sick_history;
1771
         if (this.state2 == 0) {
1783
         if (this.state2 == 0) {
1822
           }
1834
           }
1823
         }
1835
         }
1824
         if (info.register_type == 0) {
1836
         if (info.register_type == 0) {
1825
-          this.register_type = ''
1837
+          for(let i = 0; i < this.register.length;i++){
1838
+            this.register_type = this.register[0].value
1839
+          }
1826
         } else {
1840
         } else {
1827
           this.register_type = info.register_type
1841
           this.register_type = info.register_type
1828
         }
1842
         }

+ 52 - 3
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Visa fil

9
           <p style="font-size:14px;">未就诊:<span>{{cal_one}}</span>人</p>
9
           <p style="font-size:14px;">未就诊:<span>{{cal_one}}</span>人</p>
10
           <p style="font-size:14px;">已就诊:<span>{{cal_two}}</span>人</p>
10
           <p style="font-size:14px;">已就诊:<span>{{cal_two}}</span>人</p>
11
         </div>
11
         </div>
12
+        <div class="mainCell">
13
+          <el-radio-group v-model="schedule_type" @change="changeScheduleType">
14
+            <el-radio :label="1">上午</el-radio>
15
+            <el-radio :label="2">下午</el-radio>
16
+            <el-radio :label="3">晚上</el-radio>
17
+            <el-radio :label="0">全部</el-radio>
18
+          </el-radio-group>
19
+        </div>
12
         <div class="mainCell">
20
         <div class="mainCell">
13
           <el-radio-group v-model="radio" @change="change">
21
           <el-radio-group v-model="radio" @change="change">
14
             <el-radio :label="1">未就诊</el-radio>
22
             <el-radio :label="1">未就诊</el-radio>
195
         cal_one: 0,
203
         cal_one: 0,
196
         cal_two: 0,
204
         cal_two: 0,
197
         radio: 1,
205
         radio: 1,
206
+        schedule_type:0,
198
         record_date: '',
207
         record_date: '',
199
         crumbs: [
208
         crumbs: [
200
           {path: false, name: '门诊医生站'},
209
           {path: false, name: '门诊医生站'},
236
         this.radio = 2;
245
         this.radio = 2;
237
         let params = {
246
         let params = {
238
           'record_date': this.record_date,
247
           'record_date': this.record_date,
239
-          'type': this.radio
248
+          'type': this.radio,
249
+          'sch_type':this.schedule_type,
250
+
240
         };
251
         };
241
         this.patientTableData = [];
252
         this.patientTableData = [];
242
 
253
 
325
       //   })
336
       //   })
326
       //
337
       //
327
       // },
338
       // },
339
+      changeScheduleType() {
340
+        let params = {
341
+          'record_date': this.record_date,
342
+          'type': this.radio,
343
+          'sch_type':this.schedule_type,
344
+        };
345
+        this.patientTableData = [];
346
+
347
+        getSchedulePatientList(params).then(response => {
348
+          if (response.data.state == 0) {
349
+            this.$message.error(response.data.msg);
350
+            return false
351
+          } else {
352
+            this.patientTableData = response.data.data.list;
353
+            this.patientTableDataTwo = response.data.data.list;
354
+            this.cal_one = response.data.data.total_one;
355
+            this.cal_two = response.data.data.total_two;
356
+            this.admin_info = response.data.data.info;
357
+
358
+            if (this.patientTableData.length > 0) {
359
+              this.$refs.tab.setCurrentRow(this.patientTableData[0]);
360
+              this.oldCurrentRow = this.patientTableData[0];
361
+
362
+              this.getPatientInfo(this.patientTableData[0])
363
+            }
364
+
365
+            this.prescriptionList = response.data.data.list.prescription
366
+
367
+            // this.patientid = this.patientTableData[0].patient_id
368
+
369
+          }
370
+        })
371
+      },
372
+
328
       change() {
373
       change() {
329
         let params = {
374
         let params = {
330
           'record_date': this.record_date,
375
           'record_date': this.record_date,
331
-          'type': this.radio
376
+          'type': this.radio,
377
+          'sch_type':this.schedule_type,
378
+
332
         };
379
         };
333
         this.patientTableData = [];
380
         this.patientTableData = [];
334
 
381
 
703
       getList() {
750
       getList() {
704
         let params = {
751
         let params = {
705
           'record_date': this.record_date,
752
           'record_date': this.record_date,
706
-          'type': this.radio
753
+          'type': this.radio,
754
+          'sch_type':this.schedule_type,
755
+
707
         };
756
         };
708
         this.patientTableData = [];
757
         this.patientTableData = [];
709
         getSchedulePatientList(params).then(response => {
758
         getSchedulePatientList(params).then(response => {

+ 7 - 10
src/xt_pages/outpatientRegistration/index.vue Visa fil

315
             <div class="nameTitle">患者挂号信息:</div>
315
             <div class="nameTitle">患者挂号信息:</div>
316
             <div class="formMain">
316
             <div class="formMain">
317
                 <el-form class="basicForm" :model="form" :rules="rules" ref="form" label-width="100px">
317
                 <el-form class="basicForm" :model="form" :rules="rules" ref="form" label-width="100px">
318
-                    <el-form-item label="挂号类型:" prop="register" :validate-event="is_Name">
318
+                    <el-form-item label="挂号类型:" >
319
                         <el-select v-model="form.register" placeholder="请选择">
319
                         <el-select v-model="form.register" placeholder="请选择">
320
                             <el-option
320
                             <el-option
321
                                     v-for="item in his_registers"
321
                                     v-for="item in his_registers"
611
           name: [{ required: true, message: '患者姓名不能为空', trigger: 'blur' }],
611
           name: [{ required: true, message: '患者姓名不能为空', trigger: 'blur' }],
612
           sex: [{ required: true, message: '患者性别不能为空', trigger: 'blur' }],
612
           sex: [{ required: true, message: '患者性别不能为空', trigger: 'blur' }],
613
           idCard: [{ required: true, message: '证件号码不能为空', trigger: 'blur' }],
613
           idCard: [{ required: true, message: '证件号码不能为空', trigger: 'blur' }],
614
-          register: [{ required: true, message: '请选择挂号类型', trigger: 'blur' }],
615
           doctor: [{ required: true, message: '请选择医生', trigger: 'blur' }],
614
           doctor: [{ required: true, message: '请选择医生', trigger: 'blur' }],
616
           department: [{ required: true, message: '请填写科室', trigger: 'blur' }],
615
           department: [{ required: true, message: '请填写科室', trigger: 'blur' }],
617
           age: [{ required: true, message: '患者年龄不能为空', trigger: 'blur' }],
616
           age: [{ required: true, message: '患者年龄不能为空', trigger: 'blur' }],
642
     },
641
     },
643
     methods: {
642
     methods: {
644
       changeReg() {
643
       changeReg() {
645
-        console.log(this.form.register);
646
         if (this.form.register != 4) {
644
         if (this.form.register != 4) {
647
           this.form.registrationFee = 10
645
           this.form.registrationFee = 10
648
         } else {
646
         } else {
1122
           this.$message.error('患者性别不能为空')
1120
           this.$message.error('患者性别不能为空')
1123
         }
1121
         }
1124
 
1122
 
1125
-        if (this.form.register == '') {
1126
-          this.$message.error('挂号类型不能为空');
1127
-          this.is_Name = true;
1128
-          return
1129
-        }
1130
-
1131
         if (this.form.doctor == '') {
1123
         if (this.form.doctor == '') {
1132
           this.$message.error('医生不能为空');
1124
           this.$message.error('医生不能为空');
1133
           this.is_Name = true;
1125
           this.is_Name = true;
1444
             this.sick = response.data.data.sick;
1436
             this.sick = response.data.data.sick;
1445
             this.diagnoses = response.data.data.diagnose;
1437
             this.diagnoses = response.data.data.diagnose;
1446
 
1438
 
1439
+            for(let i = 0; i < this.department.length;i++){
1440
+              this.form.department = this.department[0].id
1441
+            }
1447
             this.form.p_type = 14;
1442
             this.form.p_type = 14;
1448
             this.form.sick_type = this.sick[0].id;
1443
             this.form.sick_type = this.sick[0].id;
1449
             this.form.diagnosis = this.diagnoses[0].id
1444
             this.form.diagnosis = this.diagnoses[0].id
1455
 
1450
 
1456
     },
1451
     },
1457
     created() {
1452
     created() {
1458
-
1459
       if(this.$store.getters.xt_user.org_id == 9504 ||  this.$store.getters.xt_user.org_id == 10028){
1453
       if(this.$store.getters.xt_user.org_id == 9504 ||  this.$store.getters.xt_user.org_id == 10028){
1460
         this.form.certificates = 2;
1454
         this.form.certificates = 2;
1461
         this.form.id_card_type = 1
1455
         this.form.id_card_type = 1
1462
       }else{
1456
       }else{
1457
+        this.form.settlementValue = 1;
1458
+        this.form.registrationFee = 0;
1459
+        this.form.medicalExpenses = 0;
1463
         this.form.certificates = 1;
1460
         this.form.certificates = 1;
1464
         this.form.id_card_type = 2
1461
         this.form.id_card_type = 2
1465
       }
1462
       }

+ 131 - 33
src/xt_pages/workforce/components/tableWeeks.vue Visa fil

34
           </li>
34
           </li>
35
         </ul>
35
         </ul>
36
       </div>
36
       </div>
37
-
38
-      <div  class="title"><span class="name">班 次</span> :</div>
37
+    </div>
38
+    <div  class="cell clearfix">
39
+     <div  class="title"><span class="name">班 次</span> :</div>
39
       <div class="time">
40
       <div class="time">
40
         <ul class>
41
         <ul class>
41
           <li
42
           <li
226
 </template>
227
 </template>
227
 
228
 
228
 <script>
229
 <script>
229
-import { getSchedules, getScheduleWeekDay } from "@/api/schedule";
230
+import { getSchedules, getScheduleWeekDay,saveRemindPrint,getRemindPrintList } from "@/api/schedule";
230
 import WeekItem from "./WeekItem";
231
 import WeekItem from "./WeekItem";
231
 
232
 
232
 export default {
233
 export default {
241
   data() {
242
   data() {
242
     return {
243
     return {
243
       weekArr: [
244
       weekArr: [
245
+        { id: 0, name: "全部" },
244
         { id: 1, name: "周一" },
246
         { id: 1, name: "周一" },
245
         { id: 2, name: "周二" },
247
         { id: 2, name: "周二" },
246
         { id: 3, name: "周三" },
248
         { id: 3, name: "周三" },
273
       modeOptions: null,
275
       modeOptions: null,
274
       org_id:0,
276
       org_id:0,
275
       dialogVisible:false,
277
       dialogVisible:false,
276
-      prescription_status:true,
277
-      week:true,
278
-      name:true,
279
-      zone:true,
280
-      classes:true,
281
-      number:true,
282
-      mode:true,
283
-      dialyzers:true,
284
-      perfusion_apparatus:true,
285
-      anticoagulant:true,
286
-      anticoagulant_zongliang:true,
278
+      prescription_status:false,
279
+      week:false,
280
+      name:false,
281
+      zone:false,
282
+      classes:false,
283
+      number:false,
284
+      mode:false,
285
+      dialyzers:false,
286
+      perfusion_apparatus:false,
287
+      anticoagulant:false,
288
+      anticoagulant_zongliang:false,
287
       doctor_advice:false,
289
       doctor_advice:false,
288
       form:{
290
       form:{
291
+        id:0,
289
         prescription_status:"",
292
         prescription_status:"",
290
         week:"",
293
         week:"",
291
         name:"",
294
         name:"",
323
       }
326
       }
324
      },
327
      },
325
     getScheduleWeekDay() {
328
     getScheduleWeekDay() {
326
-        const params = {
327
-          week_type:this.week_type,
328
-          week_time:this.week_time,
329
-        }
330
-
329
+     
330
+      const params = {
331
+        week_type:this.week_type,
332
+        week_time:this.week_time,
333
+       }
334
+      console.log("param22222",params)
331
       getScheduleWeekDay(params).then(response => {
335
       getScheduleWeekDay(params).then(response => {
332
         this.scheduleData = [];
336
         this.scheduleData = [];
333
         if (response.data.state == 1) {
337
         if (response.data.state == 1) {
531
       }
535
       }
532
     },
536
     },
533
     printActionSetting(){
537
     printActionSetting(){
538
+       this.getlist()
534
        this.dialogVisible = true
539
        this.dialogVisible = true
540
+
535
     },
541
     },
536
     saveRemindPrint(){
542
     saveRemindPrint(){
537
-       console.log("3333333",this.prescription_status)
543
+       console.log("455555555",this.perfusion_apparatus)
544
+
545
+      if(this.perfusion_apparatus == true){
546
+         console.log("3333")
547
+          this.form.perfusion_apparatus = 1
548
+       }
549
+       if(this.perfusion_apparatus == false){
550
+          this.form.perfusion_apparatus = 2
551
+       }
538
        if(this.prescription_status == true){
552
        if(this.prescription_status == true){
539
          this.form.prescription_status = 1
553
          this.form.prescription_status = 1
540
        }
554
        }
583
        if(this.dialyzers == false){
597
        if(this.dialyzers == false){
584
           this.form.dialyzers = 2
598
           this.form.dialyzers = 2
585
        }
599
        }
586
-       if(this.perfusion_apparatus == true){
587
-          this.form.perfusion_apparatus = 1
588
-       }
589
-       if(this.perfusion_apparatus == false){
590
-          this.form.perfusion_apparatus = 2
591
-       }
600
+     
592
        if(this.anticoagulant == true){
601
        if(this.anticoagulant == true){
593
-          this.anticoagulant = 1
602
+          this.form.anticoagulant = 1
594
        }
603
        }
595
        if(this.anticoagulant == false){
604
        if(this.anticoagulant == false){
596
-         this.anticoagulant = 2
605
+         this.form.anticoagulant = 2
597
        }
606
        }
598
        if(this.anticoagulant_zongliang == true){
607
        if(this.anticoagulant_zongliang == true){
599
           this.form.anticoagulant_zongliang  = 1
608
           this.form.anticoagulant_zongliang  = 1
607
        if(this.doctor_advice == false){
616
        if(this.doctor_advice == false){
608
           this.form.doctor_advice = 2
617
           this.form.doctor_advice = 2
609
        }
618
        }
619
+       console.log("555555555",this.form.prescription_status)
610
         var params = {
620
         var params = {
621
+          id:this.form.id,
611
           prescription_status:this.form.prescription_status,
622
           prescription_status:this.form.prescription_status,
612
           week:this.form.week,
623
           week:this.form.week,
613
           name:this.form.name,
624
           name:this.form.name,
616
           number:this.form.number,
627
           number:this.form.number,
617
           mode:this.form.mode,
628
           mode:this.form.mode,
618
           dialyzers:this.form.dialyzers,
629
           dialyzers:this.form.dialyzers,
619
-          perfusion_apparatus:this.form.prescription_apparaus,
630
+          perfusion_apparatus:this.form.perfusion_apparatus,
620
           anticoagulant:this.form.anticoagulant,
631
           anticoagulant:this.form.anticoagulant,
621
           anticoagulant_zongliang:this.form.anticoagulant_zongliang,
632
           anticoagulant_zongliang:this.form.anticoagulant_zongliang,
622
           doctor_advice:this.form.doctor_advice,
633
           doctor_advice:this.form.doctor_advice,
623
         }
634
         }
624
-      saveRemindPrint().then(response=>{
625
-
635
+       console.log("params",params)
636
+      saveRemindPrint(params).then(response=>{
637
+          if(response.data.state == 1){
638
+             var settting = response.data.data.setting
639
+             this.$message.success("保存成功")
640
+             this.dialogVisible = false
641
+             this.getlist()
642
+          }
643
+      })
644
+    },
645
+    getlist(){
646
+      getRemindPrintList().then(response=>{
647
+         if(response.data.state == 1){
648
+            var list = response.data.data.list
649
+            console.log("list222332",list)
650
+            if(list.anticoagulant == 1){
651
+              console.log("进来22222")
652
+              this.anticoagulant = true
653
+            }
654
+            if(list.anticoagulant == 2){
655
+               this.anticoagulant = false
656
+            }
657
+            if(list.anticoagulant_zongliang == 1){
658
+              this.anticoagulant_zongliang = true
659
+            }
660
+            if(list.anticoagulant_zongliang == 2){
661
+               this.anticoagulant_zongliang = false 
662
+            }
663
+            if(list.classes == 1 ){
664
+                this.classes = true
665
+            }
666
+            if(list.classes == 2){
667
+                this.classes = false
668
+            }
669
+            if(list.dialyzers == 1){
670
+               this.dialyzers = true
671
+            }
672
+            if(list.dialyzers == 2){
673
+               this.dialyzers = false
674
+            }
675
+            if(list.doctor_advice == 1){
676
+               this.doctor_advice = true
677
+            }
678
+            if(list.doctor_advice == 2){
679
+               this.doctor_advice = false
680
+            }
681
+            if(list.name == 1){
682
+               this.name = true
683
+            }
684
+            if(list.name == 2){
685
+               this.name = false
686
+            }
687
+            if(list.number == 1){
688
+               this.number = true
689
+            }
690
+            if(list.number == 2){
691
+              this.number = false
692
+            }
693
+            if(list.perfusion_apparatus == 1){
694
+              this.perfusion_apparatus = true
695
+            }
696
+            if(list.perfusion_apparatus == 2){
697
+               this.perfusion_apparatus = false
698
+            }
699
+            if(list.prescription_status == 1){
700
+               this.prescription_status = true
701
+            }
702
+            if(list.prescription_status == 2){
703
+               this.prescription_status = false
704
+            }
705
+            if(list.week == 1){
706
+               this.week = true
707
+            } 
708
+            if(list.week == 2){
709
+               this.week = false
710
+            }
711
+            if(list.zone == 1){
712
+               this.zone = true
713
+            }
714
+            if(list.zone == 2){
715
+               this.zone = false
716
+            }
717
+            if(list.mode ==1){
718
+               this.mode = true
719
+            }
720
+            if(list.mode == 2){
721
+              this.mode = false
722
+            }
723
+            this.form.id = list.id
724
+         }
626
       })
725
       })
627
     }
726
     }
628
   },
727
   },
632
   created() {
731
   created() {
633
     this.modeOptions = this.$store.getters.treatment_mode;
732
     this.modeOptions = this.$store.getters.treatment_mode;
634
     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit;
733
     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit;
635
-    console.log("抗凝机", this.anticoagulants_confit);
636
     this.week_type = new Date().getDay();
734
     this.week_type = new Date().getDay();
637
     if (this.week_type == 0) {
735
     if (this.week_type == 0) {
638
       this.week_type = 7;
736
       this.week_type = 7;
641
     //   week_type: this.week_type
739
     //   week_type: this.week_type
642
     // };
740
     // };
643
     this.getScheduleWeekDay();
741
     this.getScheduleWeekDay();
644
-    console.log("org2222222",this.$store.getters.xt_user.org.id)
645
     this.org_id = this.$store.getters.xt_user.org.id
742
     this.org_id = this.$store.getters.xt_user.org.id
743
+    // this.getlist()
646
   }
744
   }
647
 };
745
 };
648
 </script>
746
 </script>