瀏覽代碼

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

csx 3 年之前
父節點
當前提交
3a46483f2f

+ 9 - 0
src/api/his/his.js 查看文件

@@ -472,4 +472,13 @@ export function createdTemplate(params,data) {
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 查看文件

@@ -46,7 +46,7 @@
46 46
                 </el-form-item>
47 47
 
48 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 50
                         <el-option
51 51
                                 v-for="item in projectList"
52 52
                                 :key="item.id"
@@ -69,7 +69,7 @@
69 69
                           highlight-current-row ref="tab">
70 70
                     <el-table-column align="center" prop="name" label="分类" width="120">
71 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 73
                         </template>
74 74
                     </el-table-column>
75 75
                     <el-table-column align="center" prop="name" label="组套明细" width="120">
@@ -123,21 +123,18 @@
123 123
     saveProjectTeam
124 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 128
   export default {
132 129
     data() {
133 130
       return {
134
-        project_name:"",
131
+        project_name: '',
135 132
         visible: false,
136 133
         formTitle: '',
137 134
         activeName: 'first',
138 135
         form: {
139 136
           project_team: '',
140
-          price: '',
137
+          price: 0,
141 138
           pinyin: '',
142 139
           wubi: '',
143 140
           tube_color: '',
@@ -166,18 +163,22 @@
166 163
       }
167 164
     },
168 165
     methods: {
166
+      changeProject() {
167
+        this.form.number = 1
168
+
169
+      },
169 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 173
         // 调用 callback 返回建议列表的数据
173
-        cb(results);
174
+        cb(results)
174 175
 
175 176
       }, createFilter(queryString) {
176 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 182
         this.project_name = val.project_name
182 183
         this.form.project_detail = val.id
183 184
       },
@@ -211,12 +212,12 @@
211 212
             wubi: this.form.wubi,
212 213
             tube_color: this.form.tube_color,
213 214
             team_type: this.form.team_type,
214
-            remark: this.form.remark,
215
+            remark: this.form.remark
215 216
           }
216 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 221
             if (response.data.state == 1) {
221 222
               var projectTeam = response.data.data.projectTeam
222 223
               console.log('projectTeam', projectTeam)
@@ -240,7 +241,7 @@
240 241
       },
241 242
       getlist() {
242 243
         let params = {
243
-          keyword: ""
244
+          keyword: ''
244 245
 
245 246
         }
246 247
         getAllProjectList(params).then(response => {
@@ -310,9 +311,9 @@
310 311
         for (let i = 0; i < this.projectList.length; i++) {
311 312
           if (this.form.project_detail == this.projectList[i].id) {
312 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 315
             this.tableData.push(this.projectList[i])
315
-            this.form.project_detail = ""
316
+            this.form.project_detail = ''
316 317
             this.form.number = 1
317 318
           }
318 319
         }
@@ -343,7 +344,7 @@
343 344
           cancelButtonText: '取 消',
344 345
           type: 'warning'
345 346
         }).then(() => {
346
-            this.tableData.splice(index, 1)
347
+          this.tableData.splice(index, 1)
347 348
         })
348 349
           .catch(() => {
349 350
           })
@@ -353,6 +354,23 @@
353 354
       //获取所以的项目
354 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 376
 </script>

+ 22 - 1
src/xt_pages/data/components/editInspection.vue 查看文件

@@ -32,7 +32,7 @@
32 32
                     </el-select>
33 33
                 </el-form-item>
34 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 36
                         <el-option
37 37
                                 v-for="item in options"
38 38
                                 :key="item.value"
@@ -166,6 +166,10 @@
166 166
       }
167 167
     },
168 168
     methods: {
169
+      changeProject() {
170
+        this.form.number = 1
171
+
172
+      },
169 173
       getDataConfig(module, filed_name) {
170 174
         return getDataConfig(module, filed_name)
171 175
       },
@@ -380,6 +384,23 @@
380 384
     },
381 385
     created() {
382 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 406
 </script>

+ 10 - 10
src/xt_pages/hospitalStation/components/registerDialog9504.vue 查看文件

@@ -50,16 +50,16 @@
50 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 65
             <el-form-item label="证件类型:" prop="certificates" >

+ 5 - 6
src/xt_pages/outpatientCharges/components/chargeDialog.vue 查看文件

@@ -166,7 +166,7 @@
166 166
     },
167 167
     methods: {
168 168
       show: function (total,order) {
169
-        this.total = total
169
+        this.form.total = total
170 170
         this.form.private_price = total
171 171
         this.form.pay_price = total
172 172
         this.form.total = total + this.form.medical_insurance_price
@@ -178,11 +178,10 @@
178 178
         this.order = order
179 179
 
180 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 187
         this.visibility = true

+ 44 - 44
src/xt_pages/outpatientCharges/components/registerDialog.vue 查看文件

@@ -50,16 +50,16 @@
50 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 65
             <el-form-item label="证件类型:" prop="certificates" :validate-event="is_Name">
@@ -77,38 +77,38 @@
77 77
                 <el-input v-model="form.id_card"></el-input>
78 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 114
             <el-form-item label="结算类型:">
@@ -334,8 +334,8 @@
334 334
           certificates: [{ required: true, message: '证件类型不能为空', trigger: 'change' }],
335 335
           id_card_type: [{ required: true, message: '读卡类型不能为空', trigger: 'change' }],
336 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 340
         visibility: false,
341 341
         labelPosition: 'right',

+ 18 - 9
src/xt_pages/outpatientCharges/costComparison.vue 查看文件

@@ -576,19 +576,28 @@
576 576
 
577 577
             for (let i = 0; i < this.fromData.length; i++) {
578 578
               let obj = {
579
-                '结算金额': this.fromData[i].medfee_sumamt,
579
+                '序号': i+1,
580 580
                 '姓名': this.fromData[i].psn_name,
581
-                '身份证': this.fromData[i].id_card_no,
581
+                '单位名称': this.fromData[i].psn_name,
582 582
                 '个人编号': this.fromData[i].psn_no,
583
-                '门诊流水号': this.fromData[i].mdtrt_id,
583
+                '门诊号': this.fromData[i].mdtrt_id,
584 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 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 602
               list.push(obj)
594 603
             }

+ 3 - 0
src/xt_pages/outpatientCharges/incomeStatistics.vue 查看文件

@@ -112,6 +112,9 @@
112 112
         <el-table-column align="center" prop="name" label="姓名">
113 113
           <template slot-scope="scope" >{{ scope.row.psn_name }}</template>
114 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 118
         <el-table-column align="center" prop="name" label="总金额">
116 119
           <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
117 120
         </el-table-column>

文件差異過大導致無法顯示
+ 1634 - 765
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue


+ 1 - 1
src/xt_pages/outpatientCharges/summary.vue 查看文件

@@ -66,7 +66,7 @@
66 66
         >
67 67
         </el-table-column>
68 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 70
         </el-table-column>
71 71
         <el-table-column align="center" width="90" prop="name" label="患者名字">
72 72
           <template slot-scope="scope">{{ scope.row.patient.name }}</template>

+ 44 - 11
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

@@ -126,6 +126,24 @@
126 126
                                         value-format="yyyy-MM-dd HH:mm"
127 127
                                         placeholder="选择日期">
128 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 147
                                 <div style="float: right;margin-bottom:5px;margin-right:1%;">
130 148
                                     <el-button
131 149
                                             round
@@ -511,6 +529,19 @@
511 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 545
         isLastOrNextVisible: false,
515 546
         multipleTableHeight: '',
516 547
         register_type: '',
@@ -1267,6 +1298,7 @@
1267 1298
             (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
1268 1299
             ':' + (min < 10 ? '0' + min : min)
1269 1300
           this.prescriptions[i]['pre_time'] = nowTime
1301
+          this.prescriptions[i]['med_type'] = ""
1270 1302
           this.prescriptions[i].name = '处方' + (i + 1)
1271 1303
           if (i == 0) {
1272 1304
             if (this.prescriptions[0].advices.length > 0 && this.prescriptions[0].project.length == 0) {
@@ -1319,6 +1351,8 @@
1319 1351
         for (let i = 0; i < this.prescriptions.length; i++) {
1320 1352
           this.prescriptions[i].name = '处方' + (i + 1)
1321 1353
           this.prescriptions[i]['pre_time'] = nowTime
1354
+          this.prescriptions[i]['med_type'] = ""
1355
+
1322 1356
           if (i == 0) {
1323 1357
             if (this.prescriptions[0].advices.length > 0 && this.prescriptions[0].project.length == 0) {
1324 1358
               this.customTabIndex = 1
@@ -2092,15 +2126,14 @@
2092 2126
               'prescriptions': this.prescriptions
2093 2127
             }
2094 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 2137
           } else if (index == 2) {
2105 2138
             this.$router.push('/outpatientDoctorStation/print')
2106 2139
           } else if (index == 4) {
@@ -2222,8 +2255,8 @@
2222 2255
           advices: [],
2223 2256
           project: [],
2224 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 2262
         this.editableTabsValue = newTabName

+ 32 - 13
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

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

+ 108 - 59
src/xt_pages/outpatientRegistration/index.vue 查看文件

@@ -136,16 +136,16 @@
136 136
                         </el-select>
137 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 150
                     <el-form-item label="医生:" prop="doctor" :validate-event="is_Name">
151 151
                         <el-select v-model="form.doctor" placeholder="请选择" @change="changeDoctor">
@@ -315,61 +315,61 @@
315 315
             <div class="nameTitle">患者挂号信息:</div>
316 316
             <div class="formMain">
317 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 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 323
                                     :label="item.label"
336 324
                                     :value="item.value">
337 325
                             </el-option>
338 326
                         </el-select>
339 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 374
                     <el-form-item label="医生:" prop="doctor" :validate-event="is_Name">
375 375
                         <el-select v-model="form.doctor" placeholder="请选择" @change="changeDoctor">
@@ -737,8 +737,57 @@
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 791
         var that = this
743 792
         if (this.form.id_card_type.length == 0 || this.form.id_card_type == 0) {
744 793
           this.$message.error('请先选择读卡类型')
@@ -747,7 +796,7 @@
747 796
         let params = {
748 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 800
           params: params
752 801
         })
753 802
           .then(function(response) {