Kaynağa Gözat

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

csx 3 yıl önce
ebeveyn
işleme
3a46483f2f

+ 9 - 0
src/api/his/his.js Dosyayı Görüntüle

472
   });
472
   });
473
 }
473
 }
474
 
474
 
475
+export function preSettle(params) {
476
+  return request({
477
+    url: "/api/presettle/get",
478
+    method: "get",
479
+    params:params,
480
+  });
481
+}
482
+
483
+
475
 
484
 

+ 39 - 21
src/xt_pages/data/components/addInspection.vue Dosyayı Görüntüle

46
                 </el-form-item>
46
                 </el-form-item>
47
 
47
 
48
                 <el-form-item label="组套明细" style="width:50%;">
48
                 <el-form-item label="组套明细" style="width:50%;">
49
-                    <el-select v-model="form.project_detail" filterable placeholder="请选择">
49
+                    <el-select v-model="form.project_detail" filterable placeholder="请选择" @change="changeProject">
50
                         <el-option
50
                         <el-option
51
                                 v-for="item in projectList"
51
                                 v-for="item in projectList"
52
                                 :key="item.id"
52
                                 :key="item.id"
69
                           highlight-current-row ref="tab">
69
                           highlight-current-row ref="tab">
70
                     <el-table-column align="center" prop="name" label="分类" width="120">
70
                     <el-table-column align="center" prop="name" label="分类" width="120">
71
                         <template slot-scope="scope">
71
                         <template slot-scope="scope">
72
-                            <div >{{scope.row.type == 2?getId(scope.row.statistical_classification):'耗材'}}</div>
72
+                            <div>{{scope.row.type == 2?getId(scope.row.statistical_classification):'耗材'}}</div>
73
                         </template>
73
                         </template>
74
                     </el-table-column>
74
                     </el-table-column>
75
                     <el-table-column align="center" prop="name" label="组套明细" width="120">
75
                     <el-table-column align="center" prop="name" label="组套明细" width="120">
123
     saveProjectTeam
123
     saveProjectTeam
124
   } from '@/api/project/project'
124
   } from '@/api/project/project'
125
 
125
 
126
-  import {
127
-    saveTeam
128
-  } from '@/api/his/his'
129
-
126
+  import { saveTeam } from '@/api/his/his'
130
 
127
 
131
   export default {
128
   export default {
132
     data() {
129
     data() {
133
       return {
130
       return {
134
-        project_name:"",
131
+        project_name: '',
135
         visible: false,
132
         visible: false,
136
         formTitle: '',
133
         formTitle: '',
137
         activeName: 'first',
134
         activeName: 'first',
138
         form: {
135
         form: {
139
           project_team: '',
136
           project_team: '',
140
-          price: '',
137
+          price: 0,
141
           pinyin: '',
138
           pinyin: '',
142
           wubi: '',
139
           wubi: '',
143
           tube_color: '',
140
           tube_color: '',
166
       }
163
       }
167
     },
164
     },
168
     methods: {
165
     methods: {
166
+      changeProject() {
167
+        this.form.number = 1
168
+
169
+      },
169
       querySearch(queryString, cb) {
170
       querySearch(queryString, cb) {
170
-        var restaurants = this.projectList;
171
-        var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
171
+        var restaurants = this.projectList
172
+        var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants
172
         // 调用 callback 返回建议列表的数据
173
         // 调用 callback 返回建议列表的数据
173
-        cb(results);
174
+        cb(results)
174
 
175
 
175
       }, createFilter(queryString) {
176
       }, createFilter(queryString) {
176
         return (restaurant) => {
177
         return (restaurant) => {
177
-          return (restaurant.project_name.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
178
-        };
178
+          return (restaurant.project_name.toLowerCase().indexOf(queryString.toLowerCase()) === 0)
179
+        }
179
       },
180
       },
180
-      handleSelect(val){
181
+      handleSelect(val) {
181
         this.project_name = val.project_name
182
         this.project_name = val.project_name
182
         this.form.project_detail = val.id
183
         this.form.project_detail = val.id
183
       },
184
       },
211
             wubi: this.form.wubi,
212
             wubi: this.form.wubi,
212
             tube_color: this.form.tube_color,
213
             tube_color: this.form.tube_color,
213
             team_type: this.form.team_type,
214
             team_type: this.form.team_type,
214
-            remark: this.form.remark,
215
+            remark: this.form.remark
215
           }
216
           }
216
           let data = {
217
           let data = {
217
-            "info":this.tableData
218
+            'info': this.tableData
218
           }
219
           }
219
-          saveTeam(data,params).then(response => {
220
+          saveTeam(data, params).then(response => {
220
             if (response.data.state == 1) {
221
             if (response.data.state == 1) {
221
               var projectTeam = response.data.data.projectTeam
222
               var projectTeam = response.data.data.projectTeam
222
               console.log('projectTeam', projectTeam)
223
               console.log('projectTeam', projectTeam)
240
       },
241
       },
241
       getlist() {
242
       getlist() {
242
         let params = {
243
         let params = {
243
-          keyword: ""
244
+          keyword: ''
244
 
245
 
245
         }
246
         }
246
         getAllProjectList(params).then(response => {
247
         getAllProjectList(params).then(response => {
310
         for (let i = 0; i < this.projectList.length; i++) {
311
         for (let i = 0; i < this.projectList.length; i++) {
311
           if (this.form.project_detail == this.projectList[i].id) {
312
           if (this.form.project_detail == this.projectList[i].id) {
312
             this.projectList[i].number = this.form.number
313
             this.projectList[i].number = this.form.number
313
-            this.projectList[i].number =  this.projectList[i].number.toString()
314
+            this.projectList[i].number = this.projectList[i].number.toString()
314
             this.tableData.push(this.projectList[i])
315
             this.tableData.push(this.projectList[i])
315
-            this.form.project_detail = ""
316
+            this.form.project_detail = ''
316
             this.form.number = 1
317
             this.form.number = 1
317
           }
318
           }
318
         }
319
         }
343
           cancelButtonText: '取 消',
344
           cancelButtonText: '取 消',
344
           type: 'warning'
345
           type: 'warning'
345
         }).then(() => {
346
         }).then(() => {
346
-            this.tableData.splice(index, 1)
347
+          this.tableData.splice(index, 1)
347
         })
348
         })
348
           .catch(() => {
349
           .catch(() => {
349
           })
350
           })
353
       //获取所以的项目
354
       //获取所以的项目
354
       this.getlist()
355
       this.getlist()
355
 
356
 
357
+    }, watch: {
358
+      'tableData': function() {
359
+        let c = 0
360
+        this.form.price  = 0
361
+        for (let i = 0; i < this.tableData.length; i++) {
362
+          let a = parseFloat(this.tableData[i].number).toFixed(2)
363
+          let b = parseFloat(this.tableData[i].price).toFixed(2)
364
+          console.log(a)
365
+          console.log(b)
366
+
367
+
368
+          c = c + this.form.price + (a * b)
369
+
370
+        }
371
+        this.form.price = c.toFixed(2)
372
+      }
373
+
356
     }
374
     }
357
   }
375
   }
358
 </script>
376
 </script>

+ 22 - 1
src/xt_pages/data/components/editInspection.vue Dosyayı Görüntüle

32
                     </el-select>
32
                     </el-select>
33
                 </el-form-item>
33
                 </el-form-item>
34
                 <el-form-item label="组套类型 : " prop="team_type" style="width:50%">
34
                 <el-form-item label="组套类型 : " prop="team_type" style="width:50%">
35
-                    <el-select v-model="form.team_type" style="width:100%;" placeholder="请选择">
35
+                    <el-select v-model="form.team_type" style="width:100%;" placeholder="请选择" @change="changeProject">
36
                         <el-option
36
                         <el-option
37
                                 v-for="item in options"
37
                                 v-for="item in options"
38
                                 :key="item.value"
38
                                 :key="item.value"
166
       }
166
       }
167
     },
167
     },
168
     methods: {
168
     methods: {
169
+      changeProject() {
170
+        this.form.number = 1
171
+
172
+      },
169
       getDataConfig(module, filed_name) {
173
       getDataConfig(module, filed_name) {
170
         return getDataConfig(module, filed_name)
174
         return getDataConfig(module, filed_name)
171
       },
175
       },
380
     },
384
     },
381
     created() {
385
     created() {
382
       this.getlist()
386
       this.getlist()
387
+    },watch: {
388
+      'tableData': function() {
389
+        let c = 0
390
+        this.form.price  = 0
391
+        for (let i = 0; i < this.tableData.length; i++) {
392
+          let a = parseFloat(this.tableData[i].number).toFixed(2)
393
+          let b = parseFloat(this.tableData[i].price).toFixed(2)
394
+          console.log(a)
395
+          console.log(b)
396
+
397
+
398
+          c = c + this.form.price + (a * b)
399
+
400
+        }
401
+        this.form.price = c.toFixed(2)
402
+      }
403
+
383
     }
404
     }
384
   }
405
   }
385
 </script>
406
 </script>

+ 10 - 10
src/xt_pages/hospitalStation/components/registerDialog9504.vue Dosyayı Görüntüle

50
             </el-form-item>
50
             </el-form-item>
51
 
51
 
52
 
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>
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
 
63
 
64
 
64
 
65
             <el-form-item label="证件类型:" prop="certificates" >
65
             <el-form-item label="证件类型:" prop="certificates" >

+ 5 - 6
src/xt_pages/outpatientCharges/components/chargeDialog.vue Dosyayı Görüntüle

166
     },
166
     },
167
     methods: {
167
     methods: {
168
       show: function (total,order) {
168
       show: function (total,order) {
169
-        this.total = total
169
+        this.form.total = total
170
         this.form.private_price = total
170
         this.form.private_price = total
171
         this.form.pay_price = total
171
         this.form.pay_price = total
172
         this.form.total = total + this.form.medical_insurance_price
172
         this.form.total = total + this.form.medical_insurance_price
178
         this.order = order
178
         this.order = order
179
 
179
 
180
         if(this.order && this.order.id > 0){
180
         if(this.order && this.order.id > 0){
181
-          this.total = this.order.medfee_sumamt
182
-          this.medical_insurance_price = this.order.fund_pay_sumamt
183
-          this.private_price =  this.order.psn_part_amt
184
-
185
-
181
+          this.form.total = this.order.medfee_sumamt
182
+          this.form.pay_price = this.order.medfee_sumamt
183
+          this.form.medical_insurance_price = this.order.fund_pay_sumamt
184
+          this.form.private_price =  this.order.psn_part_amt
186
         }
185
         }
187
 
186
 
188
         this.visibility = true
187
         this.visibility = true

+ 44 - 44
src/xt_pages/outpatientCharges/components/registerDialog.vue Dosyayı Görüntüle

50
             </el-form-item>
50
             </el-form-item>
51
 
51
 
52
 
52
 
53
-            <el-form-item label="医疗类别:">
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>
53
+            <!--<el-form-item label="医疗类别:">-->
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
 
63
 
64
 
64
 
65
             <el-form-item label="证件类型:" prop="certificates" :validate-event="is_Name">
65
             <el-form-item label="证件类型:" prop="certificates" :validate-event="is_Name">
77
                 <el-input v-model="form.id_card"></el-input>
77
                 <el-input v-model="form.id_card"></el-input>
78
             </el-form-item>
78
             </el-form-item>
79
 
79
 
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=""
82
-                >
83
-                    <el-option
84
-                            v-for="(item,index) in registers"
85
-                            :key="index"
86
-                            :label="item.label"
87
-                            :value="item.value">
88
-                    </el-option>
89
-                </el-select>
90
-            </el-form-item>
91
-            <el-form-item label="大病类别:" prop="sick_type" :validate-event="is_Name">
92
-                <el-select style="margin-right:5px;width:100px;" v-model="form.sick_type" placeholder="">
93
-                    <el-option
94
-                            v-for="(item,index) in sick"
95
-                            :key="index"
96
-                            :label="item.class_name"
97
-                            :value="item.id">
98
-                    </el-option>
99
-                </el-select>
100
-            </el-form-item>
101
-
102
-            <el-form-item label="诊断:" prop="diagnosis" :validate-event="is_Name">
103
-                <el-select style="margin-right:5px;width:100px;" v-model="form.diagnosis" placeholder="">
104
-                    <el-option
105
-                            v-for="(item,index) in diagnoses"
106
-                            :key="index"
107
-                            :label="item.class_name"
108
-                            :value="item.id">
109
-                    </el-option>
110
-                </el-select>
111
-            </el-form-item>
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=""-->
82
+                <!--&gt;-->
83
+                    <!--<el-option-->
84
+                            <!--v-for="(item,index) in registers"-->
85
+                            <!--:key="index"-->
86
+                            <!--:label="item.label"-->
87
+                            <!--:value="item.value">-->
88
+                    <!--</el-option>-->
89
+                <!--</el-select>-->
90
+            <!--</el-form-item>-->
91
+            <!--<el-form-item label="大病类别:" prop="sick_type" :validate-event="is_Name">-->
92
+                <!--<el-select style="margin-right:5px;width:100px;" v-model="form.sick_type" placeholder="">-->
93
+                    <!--<el-option-->
94
+                            <!--v-for="(item,index) in sick"-->
95
+                            <!--:key="index"-->
96
+                            <!--:label="item.class_name"-->
97
+                            <!--:value="item.id">-->
98
+                    <!--</el-option>-->
99
+                <!--</el-select>-->
100
+            <!--</el-form-item>-->
101
+
102
+            <!--<el-form-item label="诊断:" prop="diagnosis" :validate-event="is_Name">-->
103
+                <!--<el-select style="margin-right:5px;width:100px;" v-model="form.diagnosis" placeholder="">-->
104
+                    <!--<el-option-->
105
+                            <!--v-for="(item,index) in diagnoses"-->
106
+                            <!--:key="index"-->
107
+                            <!--:label="item.class_name"-->
108
+                            <!--:value="item.id">-->
109
+                    <!--</el-option>-->
110
+                <!--</el-select>-->
111
+            <!--</el-form-item>-->
112
 
112
 
113
 
113
 
114
             <el-form-item label="结算类型:">
114
             <el-form-item label="结算类型:">
334
           certificates: [{ required: true, message: '证件类型不能为空', trigger: 'change' }],
334
           certificates: [{ required: true, message: '证件类型不能为空', trigger: 'change' }],
335
           id_card_type: [{ required: true, message: '读卡类型不能为空', trigger: 'change' }],
335
           id_card_type: [{ required: true, message: '读卡类型不能为空', trigger: 'change' }],
336
           p_type: [{ required: true, message: '处方类型不能为空', trigger: 'change' }],
336
           p_type: [{ required: true, message: '处方类型不能为空', trigger: 'change' }],
337
-          sick_type: [{ required: true, message: '大病类别不能为空', trigger: 'change' }],
338
-          diagnosis: [{ required: true, message: '诊断不能为空', trigger: 'change' }]
337
+          // sick_type: [{ required: true, message: '大病类别不能为空', trigger: 'change' }],
338
+          // diagnosis: [{ required: true, message: '诊断不能为空', trigger: 'change' }]
339
         },
339
         },
340
         visibility: false,
340
         visibility: false,
341
         labelPosition: 'right',
341
         labelPosition: 'right',

+ 18 - 9
src/xt_pages/outpatientCharges/costComparison.vue Dosyayı Görüntüle

576
 
576
 
577
             for (let i = 0; i < this.fromData.length; i++) {
577
             for (let i = 0; i < this.fromData.length; i++) {
578
               let obj = {
578
               let obj = {
579
-                '结算金额': this.fromData[i].medfee_sumamt,
579
+                '序号': i+1,
580
                 '姓名': this.fromData[i].psn_name,
580
                 '姓名': this.fromData[i].psn_name,
581
-                '身份证': this.fromData[i].id_card_no,
581
+                '单位名称': this.fromData[i].psn_name,
582
                 '个人编号': this.fromData[i].psn_no,
582
                 '个人编号': this.fromData[i].psn_no,
583
-                '门诊流水号': this.fromData[i].mdtrt_id,
583
+                '门诊号': this.fromData[i].mdtrt_id,
584
                 '挂号日期': this.getTimes(this.fromData[i].settle_accounts_date),
584
                 '挂号日期': this.getTimes(this.fromData[i].settle_accounts_date),
585
-                '起付线': this.fromData[i].act_pay_dedc,
585
+                '挂号科室': this.getTimes(this.fromData[i].settle_accounts_date),
586
+                '门诊费用': this.fromData[i].medfee_sumamt,
587
+                '自费': this.fromData[i].psn_cash_pay,
588
+                '起付线I': this.fromData[i].act_pay_dedc,
589
+                '按比例自付II': this.fromData[i].psn_cash_pay,
590
+                '小计I+II': this.fromData[i].act_pay_dedc + this.fromData[i].psn_cash_pay,
586
                 '统筹基金': this.fromData[i].fund_pay_sumamt,
591
                 '统筹基金': this.fromData[i].fund_pay_sumamt,
587
-                '个人支付': this.fromData[i].psn_cash_pay,
588
-                '个账支付': this.fromData[i].acct_pay,
589
-                '现金支付': this.fromData[i].cash_pay,
590
-                '总费用': this.fromData[i].sumamt,
591
-                '冲销标志': '已结算'
592
+                '公务员补助': this.fromData[i].cvlserv_pay,
593
+                '单位补充保险': this.fromData[i].hifes_pay,
594
+                '大额医疗保险应付': this.fromData[i].hifob_pay,
595
+                '大额合计': this.fromData[i].hifob_pay,
596
+                '诊断':"",
597
+                "血透次数":1,
598
+                "置留管数量":1,
599
+                "备注":"",
600
+
592
               }
601
               }
593
               list.push(obj)
602
               list.push(obj)
594
             }
603
             }

+ 3 - 0
src/xt_pages/outpatientCharges/incomeStatistics.vue Dosyayı Görüntüle

112
         <el-table-column align="center" prop="name" label="姓名">
112
         <el-table-column align="center" prop="name" label="姓名">
113
           <template slot-scope="scope" >{{ scope.row.psn_name }}</template>
113
           <template slot-scope="scope" >{{ scope.row.psn_name }}</template>
114
         </el-table-column>
114
         </el-table-column>
115
+        <el-table-column align="center" prop="name" label="姓名">
116
+          <template slot-scope="scope" >{{ scope.row.psn_name }}</template>
117
+        </el-table-column>
115
         <el-table-column align="center" prop="name" label="总金额">
118
         <el-table-column align="center" prop="name" label="总金额">
116
           <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
119
           <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
117
         </el-table-column>
120
         </el-table-column>

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1634 - 765
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue


+ 1 - 1
src/xt_pages/outpatientCharges/summary.vue Dosyayı Görüntüle

66
         >
66
         >
67
         </el-table-column>
67
         </el-table-column>
68
         <el-table-column align="center" width="100" prop="name" label="就诊号">
68
         <el-table-column align="center" width="100" prop="name" label="就诊号">
69
-          <template slot-scope="scope">{{ scope.row.his_patient.number }}</template>
69
+          <template slot-scope="scope">{{ scope.row.mdtrt_id }}</template>
70
         </el-table-column>
70
         </el-table-column>
71
         <el-table-column align="center" width="90" prop="name" label="患者名字">
71
         <el-table-column align="center" width="90" prop="name" label="患者名字">
72
           <template slot-scope="scope">{{ scope.row.patient.name }}</template>
72
           <template slot-scope="scope">{{ scope.row.patient.name }}</template>

+ 44 - 11
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Dosyayı Görüntüle

126
                                         value-format="yyyy-MM-dd HH:mm"
126
                                         value-format="yyyy-MM-dd HH:mm"
127
                                         placeholder="选择日期">
127
                                         placeholder="选择日期">
128
                                 </el-date-picker>
128
                                 </el-date-picker>
129
+
130
+                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"  v-if="($store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10138)" >
131
+                                    <el-option
132
+                                            v-for="(item,index) in medical_care"
133
+                                            :key="index"
134
+                                            :label="item.label"
135
+                                            :value="item.value">
136
+                                    </el-option>
137
+                                </el-select>
138
+                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"  v-else >
139
+                                    <el-option
140
+                                            v-for="(item,index) in register"
141
+                                            :key="index"
142
+                                            :label="item.label"
143
+                                            :value="item.value">
144
+                                    </el-option>
145
+                                </el-select>
146
+
129
                                 <div style="float: right;margin-bottom:5px;margin-right:1%;">
147
                                 <div style="float: right;margin-bottom:5px;margin-right:1%;">
130
                                     <el-button
148
                                     <el-button
131
                                             round
149
                                             round
511
           { value: 21, label: '普通住院' }
529
           { value: 21, label: '普通住院' }
512
 
530
 
513
         ],
531
         ],
532
+        medical_care:[
533
+          {value: 11, label: "普通门诊"},
534
+          {value: 12, label: '家庭通道'},
535
+          {value: 13, label: "门诊大病"},
536
+          {value: 14, label: "重疾特药"},
537
+          {value: 15, label: "门诊慢病"},
538
+          {value: 16, label: "门诊特检"},
539
+          {value: 17, label: "健康体检"},
540
+          {value: 18, label: "预防接种"},
541
+          {value: 19, label: "门诊输血"},
542
+          {value: 91, label: "新冠肺炎门诊"},
543
+        ],
544
+
514
         isLastOrNextVisible: false,
545
         isLastOrNextVisible: false,
515
         multipleTableHeight: '',
546
         multipleTableHeight: '',
516
         register_type: '',
547
         register_type: '',
1267
             (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
1298
             (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
1268
             ':' + (min < 10 ? '0' + min : min)
1299
             ':' + (min < 10 ? '0' + min : min)
1269
           this.prescriptions[i]['pre_time'] = nowTime
1300
           this.prescriptions[i]['pre_time'] = nowTime
1301
+          this.prescriptions[i]['med_type'] = ""
1270
           this.prescriptions[i].name = '处方' + (i + 1)
1302
           this.prescriptions[i].name = '处方' + (i + 1)
1271
           if (i == 0) {
1303
           if (i == 0) {
1272
             if (this.prescriptions[0].advices.length > 0 && this.prescriptions[0].project.length == 0) {
1304
             if (this.prescriptions[0].advices.length > 0 && this.prescriptions[0].project.length == 0) {
1319
         for (let i = 0; i < this.prescriptions.length; i++) {
1351
         for (let i = 0; i < this.prescriptions.length; i++) {
1320
           this.prescriptions[i].name = '处方' + (i + 1)
1352
           this.prescriptions[i].name = '处方' + (i + 1)
1321
           this.prescriptions[i]['pre_time'] = nowTime
1353
           this.prescriptions[i]['pre_time'] = nowTime
1354
+          this.prescriptions[i]['med_type'] = ""
1355
+
1322
           if (i == 0) {
1356
           if (i == 0) {
1323
             if (this.prescriptions[0].advices.length > 0 && this.prescriptions[0].project.length == 0) {
1357
             if (this.prescriptions[0].advices.length > 0 && this.prescriptions[0].project.length == 0) {
1324
               this.customTabIndex = 1
1358
               this.customTabIndex = 1
2092
               'prescriptions': this.prescriptions
2126
               'prescriptions': this.prescriptions
2093
             }
2127
             }
2094
             isLoading = true
2128
             isLoading = true
2095
-
2096
-            // createHisPrescription(data, params).then(response => {
2097
-            //   if (response.data.state == 1) {
2098
-            //     this.$emit('change', this.patientInfo.id)
2099
-            //     this.$message.success('保存成功')
2100
-            //   } else {
2101
-            //     this.$message.error(response.data.msg)
2102
-            //   }
2103
-            // })
2129
+            createHisPrescription(data, params).then(response => {
2130
+              if (response.data.state == 1) {
2131
+                this.$emit('change', this.patientInfo.id)
2132
+                this.$message.success('保存成功')
2133
+              } else {
2134
+                this.$message.error(response.data.msg)
2135
+              }
2136
+            })
2104
           } else if (index == 2) {
2137
           } else if (index == 2) {
2105
             this.$router.push('/outpatientDoctorStation/print')
2138
             this.$router.push('/outpatientDoctorStation/print')
2106
           } else if (index == 4) {
2139
           } else if (index == 4) {
2222
           advices: [],
2255
           advices: [],
2223
           project: [],
2256
           project: [],
2224
           addition: [],
2257
           addition: [],
2225
-          pre_time: this.prescriptions[0].pre_time
2226
-          // pre_time: nowTime
2258
+          pre_time: this.prescriptions[0].pre_time,
2259
+          med_type: ""
2227
 
2260
 
2228
         })
2261
         })
2229
         this.editableTabsValue = newTabName
2262
         this.editableTabsValue = newTabName

+ 32 - 13
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Dosyayı Görüntüle

1301
                   project: tempProject,
1301
                   project: tempProject,
1302
                   addition: tempAddition,
1302
                   addition: tempAddition,
1303
                   order_status: prescription.order_status,
1303
                   order_status: prescription.order_status,
1304
-                  pre_time: preTime
1304
+                  pre_time: preTime,
1305
+                  med_type:parseInt(prescription.med_type),
1305
                 };
1306
                 };
1306
                 this.prescriptions.push(obj)
1307
                 this.prescriptions.push(obj)
1307
               }
1308
               }
1380
                     project: tempProject,
1381
                     project: tempProject,
1381
                     addition: tempAddition,
1382
                     addition: tempAddition,
1382
                     order_status: 1,
1383
                     order_status: 1,
1383
-                    pre_time: preTime
1384
+                    pre_time: preTime,
1385
+                    med_type: "",
1384
                   };
1386
                   };
1385
                   this.prescriptions.push(obj)
1387
                   this.prescriptions.push(obj)
1386
                 }
1388
                 }
1394
                   addition: [],
1396
                   addition: [],
1395
                   order_status: 0,
1397
                   order_status: 0,
1396
                   pre_time: nowTime,
1398
                   pre_time: nowTime,
1399
+                  med_type:"",
1397
 
1400
 
1398
                 };
1401
                 };
1399
                 this.prescriptions.push(obj)
1402
                 this.prescriptions.push(obj)
1704
                         project: tempProject,
1707
                         project: tempProject,
1705
                         addition: tempAddition,
1708
                         addition: tempAddition,
1706
                         order_status: prescription.order_status,
1709
                         order_status: prescription.order_status,
1707
-                        pre_time: preTime
1710
+                        pre_time: preTime,
1711
+                        med_type: parseInt(prescription.med_type),
1708
                       };
1712
                       };
1709
                       this.prescriptions.push(obj)
1713
                       this.prescriptions.push(obj)
1710
                     }
1714
                     }
1784
                           project: tempProject,
1788
                           project: tempProject,
1785
                           addition: tempAddition,
1789
                           addition: tempAddition,
1786
                           order_status: 1,
1790
                           order_status: 1,
1787
-                          pre_time: preTime
1791
+                          pre_time: preTime,
1792
+                          med_type: "",
1788
                         };
1793
                         };
1789
                         this.prescriptions.push(obj)
1794
                         this.prescriptions.push(obj)
1790
                       }
1795
                       }
1799
                         addition: [],
1804
                         addition: [],
1800
                         order_status: 0,
1805
                         order_status: 0,
1801
                         pre_time: nowTime,
1806
                         pre_time: nowTime,
1807
+                        med_type:"",
1802
 
1808
 
1803
                       };
1809
                       };
1804
                       this.prescriptions.push(obj)
1810
                       this.prescriptions.push(obj)
2098
                         project: tempProject,
2104
                         project: tempProject,
2099
                         addition: tempAddition,
2105
                         addition: tempAddition,
2100
                         order_status: prescription.order_status,
2106
                         order_status: prescription.order_status,
2101
-                        pre_time: preTime
2107
+                        pre_time: preTime,
2108
+                        med_type:parseInt(prescription.med_type),
2102
                       };
2109
                       };
2103
                       this.prescriptions.push(obj)
2110
                       this.prescriptions.push(obj)
2104
                     }
2111
                     }
2178
                           project: tempProject,
2185
                           project: tempProject,
2179
                           addition: tempAddition,
2186
                           addition: tempAddition,
2180
                           order_status: 1,
2187
                           order_status: 1,
2181
-                          pre_time: preTime
2188
+                          pre_time: preTime,
2189
+                          med_type: "",
2182
                         };
2190
                         };
2183
                         this.prescriptions.push(obj)
2191
                         this.prescriptions.push(obj)
2184
                       }
2192
                       }
2192
                         addition: [],
2200
                         addition: [],
2193
                         order_status: 0,
2201
                         order_status: 0,
2194
                         pre_time: nowTime,
2202
                         pre_time: nowTime,
2203
+                        med_type: "",
2195
 
2204
 
2196
                       };
2205
                       };
2197
                       this.prescriptions.push(obj)
2206
                       this.prescriptions.push(obj)
2490
                         project: tempProject,
2499
                         project: tempProject,
2491
                         addition: tempAddition,
2500
                         addition: tempAddition,
2492
                         order_status: prescription.order_status,
2501
                         order_status: prescription.order_status,
2493
-                        pre_time: preTime
2502
+                        pre_time: preTime,
2503
+                        med_type: parseInt(prescription.med_type),
2494
                       };
2504
                       };
2495
                       this.prescriptions.push(obj)
2505
                       this.prescriptions.push(obj)
2496
                     }
2506
                     }
2570
                           project: tempProject,
2580
                           project: tempProject,
2571
                           addition: tempAddition,
2581
                           addition: tempAddition,
2572
                           order_status: 1,
2582
                           order_status: 1,
2573
-                          pre_time: preTime
2583
+                          pre_time: preTime,
2584
+                          med_type:"",
2574
                         };
2585
                         };
2575
                         this.prescriptions.push(obj)
2586
                         this.prescriptions.push(obj)
2576
                       }
2587
                       }
2584
                         addition: [],
2595
                         addition: [],
2585
                         order_status: 0,
2596
                         order_status: 0,
2586
                         pre_time: nowTime,
2597
                         pre_time: nowTime,
2598
+                        med_type: "",
2587
 
2599
 
2588
                       };
2600
                       };
2589
                       this.prescriptions.push(obj)
2601
                       this.prescriptions.push(obj)
2938
                       project: tempProject,
2950
                       project: tempProject,
2939
                       addition: tempAddition,
2951
                       addition: tempAddition,
2940
                       order_status: prescription.order_status,
2952
                       order_status: prescription.order_status,
2941
-                      pre_time: preTime
2953
+                      pre_time: preTime,
2954
+                      med_type: parseInt(prescription.med_type)
2942
                     };
2955
                     };
2943
                     this.prescriptions.push(obj)
2956
                     this.prescriptions.push(obj)
2944
                   }
2957
                   }
3018
                         project: tempProject,
3031
                         project: tempProject,
3019
                         addition: tempAddition,
3032
                         addition: tempAddition,
3020
                         order_status: 1,
3033
                         order_status: 1,
3021
-                        pre_time: preTime
3034
+                        pre_time: preTime,
3035
+                        med_type:"",
3022
                       };
3036
                       };
3023
                       this.prescriptions.push(obj)
3037
                       this.prescriptions.push(obj)
3024
                     }
3038
                     }
3033
                       addition: [],
3047
                       addition: [],
3034
                       order_status: 0,
3048
                       order_status: 0,
3035
                       pre_time: nowTime,
3049
                       pre_time: nowTime,
3050
+                      med_type: "",
3036
 
3051
 
3037
                     };
3052
                     };
3038
                     this.prescriptions.push(obj)
3053
                     this.prescriptions.push(obj)
3331
                     project: tempProject,
3346
                     project: tempProject,
3332
                     addition: tempAddition,
3347
                     addition: tempAddition,
3333
                     order_status: prescription.order_status,
3348
                     order_status: prescription.order_status,
3334
-                    pre_time: preTime
3349
+                    pre_time: preTime,
3350
+                    med_type: parseInt(prescription.med_type)
3335
                   };
3351
                   };
3336
                   this.prescriptions.push(obj)
3352
                   this.prescriptions.push(obj)
3337
                 }
3353
                 }
3411
                       project: tempProject,
3427
                       project: tempProject,
3412
                       addition: tempAddition,
3428
                       addition: tempAddition,
3413
                       order_status: 1,
3429
                       order_status: 1,
3414
-                      pre_time: preTime
3430
+                      pre_time: preTime,
3431
+                      med_type:"",
3415
                     };
3432
                     };
3416
                     this.prescriptions.push(obj)
3433
                     this.prescriptions.push(obj)
3417
                   }
3434
                   }
3425
                     addition: [],
3442
                     addition: [],
3426
                     order_status: 0,
3443
                     order_status: 0,
3427
                     pre_time: nowTime,
3444
                     pre_time: nowTime,
3445
+                    med_type:"",
3446
+
3428
 
3447
 
3429
                   };
3448
                   };
3430
                   this.prescriptions.push(obj)
3449
                   this.prescriptions.push(obj)
3638
                 list[i].prescription_number = list[i].prescription_number + i
3657
                 list[i].prescription_number = list[i].prescription_number + i
3639
                 arr.push(list[i])
3658
                 arr.push(list[i])
3640
               }
3659
               }
3641
-              
3660
+
3642
             }
3661
             }
3643
             this.tableData = arr
3662
             this.tableData = arr
3644
           }
3663
           }

+ 108 - 59
src/xt_pages/outpatientRegistration/index.vue Dosyayı Görüntüle

136
                         </el-select>
136
                         </el-select>
137
                     </el-form-item>
137
                     </el-form-item>
138
 
138
 
139
-                    <el-form-item label="医疗类别:" :validate-event="is_Name" prop="medicalCare">
140
-                        <el-select v-model="form.medicalCare" placeholder="请选择">
141
-                            <el-option
142
-                                    v-for="(item,index) in medical_care"
143
-                                    :key="index"
144
-                                    :label="item.label"
145
-                                    :value="item.value">
146
-                            </el-option>
147
-                        </el-select>
148
-                    </el-form-item>
139
+                    <!--<el-form-item label="医疗类别:" :validate-event="is_Name" prop="medicalCare">-->
140
+                        <!--<el-select v-model="form.medicalCare" placeholder="请选择">-->
141
+                            <!--<el-option-->
142
+                                    <!--v-for="(item,index) in medical_care"-->
143
+                                    <!--:key="index"-->
144
+                                    <!--:label="item.label"-->
145
+                                    <!--:value="item.value">-->
146
+                            <!--</el-option>-->
147
+                        <!--</el-select>-->
148
+                    <!--</el-form-item>-->
149
 
149
 
150
                     <el-form-item label="医生:" prop="doctor" :validate-event="is_Name">
150
                     <el-form-item label="医生:" prop="doctor" :validate-event="is_Name">
151
                         <el-select v-model="form.doctor" placeholder="请选择" @change="changeDoctor">
151
                         <el-select v-model="form.doctor" placeholder="请选择" @change="changeDoctor">
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="挂号类型:" >-->
319
-                        <!--<el-select v-model="form.register" placeholder="请选择">-->
320
-                            <!--<el-option-->
321
-                                    <!--v-for="item in his_registers"-->
322
-                                    <!--:key="item.value"-->
323
-                                    <!--:label="item.label"-->
324
-                                    <!--:value="item.value">-->
325
-                            <!--</el-option>-->
326
-                        <!--</el-select>-->
327
-                    <!--</el-form-item>-->
328
-
329
-                    <el-form-item label="处方类型:" prop="p_type" :validate-event="is_Name">
330
-                        <el-select style="margin-right:5px;width:100px;" v-model="form.p_type" placeholder=""
331
-                        >
318
+                    <el-form-item label="挂号类型:" >
319
+                        <el-select v-model="form.register" placeholder="请选择">
332
                             <el-option
320
                             <el-option
333
-                                    v-for="(item,index) in registers"
334
-                                    :key="index"
321
+                                    v-for="item in his_registers"
322
+                                    :key="item.value"
335
                                     :label="item.label"
323
                                     :label="item.label"
336
                                     :value="item.value">
324
                                     :value="item.value">
337
                             </el-option>
325
                             </el-option>
338
                         </el-select>
326
                         </el-select>
339
                     </el-form-item>
327
                     </el-form-item>
340
-                    <el-form-item label="大病类别:" prop="sick_type" :validate-event="is_Name">
341
-                        <el-select style="margin-right:5px;width:100px;" v-model="form.sick_type" placeholder="">
342
-                            <el-option
343
-                                    v-for="(item,index) in sick"
344
-                                    :key="index"
345
-                                    :label="item.class_name"
346
-                                    :value="item.id">
347
-                            </el-option>
348
-                        </el-select>
349
-                    </el-form-item>
350
 
328
 
351
-                    <el-form-item label="诊断:" prop="diagnosis" :validate-event="is_Name">
352
-                        <el-select style="margin-right:5px;width:100px;" v-model="form.diagnosis" placeholder="">
353
-                            <el-option
354
-                                    v-for="(item,index) in diagnoses"
355
-                                    :key="index"
356
-                                    :label="item.class_name"
357
-                                    :value="item.id">
358
-                            </el-option>
359
-                        </el-select>
360
-                    </el-form-item>
329
+                    <!--<el-form-item label="处方类型:" prop="p_type" :validate-event="is_Name">-->
330
+                        <!--<el-select style="margin-right:5px;width:100px;" v-model="form.p_type" placeholder=""-->
331
+                        <!--&gt;-->
332
+                            <!--<el-option-->
333
+                                    <!--v-for="(item,index) in registers"-->
334
+                                    <!--:key="index"-->
335
+                                    <!--:label="item.label"-->
336
+                                    <!--:value="item.value">-->
337
+                            <!--</el-option>-->
338
+                        <!--</el-select>-->
339
+                    <!--</el-form-item>-->
340
+                    <!--<el-form-item label="大病类别:" prop="sick_type" :validate-event="is_Name">-->
341
+                        <!--<el-select style="margin-right:5px;width:100px;" v-model="form.sick_type" placeholder="">-->
342
+                            <!--<el-option-->
343
+                                    <!--v-for="(item,index) in sick"-->
344
+                                    <!--:key="index"-->
345
+                                    <!--:label="item.class_name"-->
346
+                                    <!--:value="item.id">-->
347
+                            <!--</el-option>-->
348
+                        <!--</el-select>-->
349
+                    <!--</el-form-item>-->
350
+
351
+                    <!--<el-form-item label="诊断:" prop="diagnosis" :validate-event="is_Name">-->
352
+                        <!--<el-select style="margin-right:5px;width:100px;" v-model="form.diagnosis" placeholder="">-->
353
+                            <!--<el-option-->
354
+                                    <!--v-for="(item,index) in diagnoses"-->
355
+                                    <!--:key="index"-->
356
+                                    <!--:label="item.class_name"-->
357
+                                    <!--:value="item.id">-->
358
+                            <!--</el-option>-->
359
+                        <!--</el-select>-->
360
+                    <!--</el-form-item>-->
361
 
361
 
362
 
362
 
363
-                    <el-form-item label="医疗类别:">
364
-                        <el-select v-model="form.medicalCare" placeholder="请选择">
365
-                            <el-option
366
-                                    v-for="(item,index) in medical_care"
367
-                                    :key="index"
368
-                                    :label="item.label"
369
-                                    :value="item.value">
370
-                            </el-option>
371
-                        </el-select>
372
-                    </el-form-item>
363
+                    <!--<el-form-item label="医疗类别:">-->
364
+                        <!--<el-select v-model="form.medicalCare" placeholder="请选择">-->
365
+                            <!--<el-option-->
366
+                                    <!--v-for="(item,index) in medical_care"-->
367
+                                    <!--:key="index"-->
368
+                                    <!--:label="item.label"-->
369
+                                    <!--:value="item.value">-->
370
+                            <!--</el-option>-->
371
+                        <!--</el-select>-->
372
+                    <!--</el-form-item>-->
373
 
373
 
374
                     <el-form-item label="医生:" prop="doctor" :validate-event="is_Name">
374
                     <el-form-item label="医生:" prop="doctor" :validate-event="is_Name">
375
                         <el-select v-model="form.doctor" placeholder="请选择" @change="changeDoctor">
375
                         <el-select v-model="form.doctor" placeholder="请选择" @change="changeDoctor">
737
 
737
 
738
           })
738
           })
739
       },
739
       },
740
-
741
-      reading(medicalInsuranceCard) {
740
+      // reading() {
741
+      //   var that = this
742
+      //   if (this.form.id_card_type.length == 0 || this.form.id_card_type == 0) {
743
+      //     this.$message.error('请先选择读卡类型')
744
+      //     return
745
+      //   }
746
+      //   let params = {
747
+      //     'id_card_type': this.form.id_card_type,
748
+      //     'admin_user_id': this.$store.getters.xt_user.user.id,
749
+      //     'certificates':this.form.certificates,
750
+      //   }
751
+      //   axios.get('http://127.0.0.1:9532/api/readcard', {
752
+      //     params: params
753
+      //   })
754
+      //     .then(function(response) {
755
+      //       if (response.data.state == 0) {
756
+      //         that.$message.error(response.data.msg)
757
+      //         return false
758
+      //       } else {
759
+      //         var patient = response.data.data.patient
760
+      //
761
+      //         if (that.form.id_card_type == 1) {
762
+      //           this.form.id = patient.id
763
+      //           that.form.name = patient.name
764
+      //           that.form.sex = patient.gender
765
+      //           that.form.age = patient.age
766
+      //           that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
767
+      //           that.form.phone = patient.phone
768
+      //           that.form.idCard = patient.id_card_no
769
+      //           that.form.medicalInsuranceCard = response.data.data.number
770
+      //
771
+      //         } else if (that.form.id_card_type == 2) {
772
+      //           this.form.id = patient.id
773
+      //           that.form.name = patient.name
774
+      //           that.form.sex = patient.gender
775
+      //           that.form.age = patient.age
776
+      //           that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
777
+      //           that.form.phone = patient.phone
778
+      //           that.form.idCard = patient.id_card_no
779
+      //         }
780
+      //         that.$message({ message: '读卡成功', type: 'success' })
781
+      //       }
782
+      //     })
783
+      //     .catch(function(error) {
784
+      //
785
+      //     })
786
+      //
787
+      // },
788
+
789
+
790
+      reading() {
742
         var that = this
791
         var that = this
743
         if (this.form.id_card_type.length == 0 || this.form.id_card_type == 0) {
792
         if (this.form.id_card_type.length == 0 || this.form.id_card_type == 0) {
744
           this.$message.error('请先选择读卡类型')
793
           this.$message.error('请先选择读卡类型')
747
         let params = {
796
         let params = {
748
           'id_card_type': this.form.id_card_type
797
           'id_card_type': this.form.id_card_type
749
         }
798
         }
750
-        axios.get('http://127.0.0.1:9532/api/sscard', {
799
+        axios.get('http://127.0.0.1:9532/api/readcard', {
751
           params: params
800
           params: params
752
         })
801
         })
753
           .then(function(response) {
802
           .then(function(response) {