浏览代码

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

csx 4 年前
父节点
当前提交
7d453263ed

文件差异内容过多而无法显示
+ 535 - 464
src/xt_pages/data/components/addDrugs.vue


+ 8 - 2
src/xt_pages/data/components/drugs.vue 查看文件

264
           is_charge_predict: '',//是否收费预估项
264
           is_charge_predict: '',//是否收费预估项
265
           is_statistics_work: '',//是否统计工作量
265
           is_statistics_work: '',//是否统计工作量
266
           is_charge_use: '',//是否收费常用项
266
           is_charge_use: '',//是否收费常用项
267
-          drug_code: ''
268
-
267
+          drug_code: '',
268
+          hosp_appr_flag:'',
269
+          lmt_used_flag:'',
269
         },
270
         },
270
         tempFormValue: {
271
         tempFormValue: {
271
           drug_name: '',//药品名称
272
           drug_name: '',//药品名称
316
           social_security_directory_code:'',
317
           social_security_directory_code:'',
317
           is_mark:'',
318
           is_mark:'',
318
           prescription_mark:'',
319
           prescription_mark:'',
320
+          hosp_appr_flag:'',
321
+          lmt_used_flag:'',
319
 
322
 
320
         },
323
         },
321
 
324
 
602
               if(this.formValue.prescription_mark == 0){
605
               if(this.formValue.prescription_mark == 0){
603
                   this.formValue.prescription_mark = ""
606
                   this.formValue.prescription_mark = ""
604
               }
607
               }
608
+              if(this.formValue.hosp_appr_flag == 0){
609
+                this.formValue.hosp_appr_flag = ""
610
+              }
605
               this.$refs.addDrugs.show(id, this.formValue)
611
               this.$refs.addDrugs.show(id, this.formValue)
606
 
612
 
607
             }
613
             }

+ 35 - 25
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

141
                         >退号
141
                         >退号
142
                         </el-button>
142
                         </el-button>
143
 
143
 
144
-                        <el-button
145
-                                v-if="$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919  || this.$store.getters.xt_user.org_id == 9671  || this.$store.getters.xt_user.org_id == 10106"
146
-                                size="small" @click="open(11)" type="primary"
147
-                        >撤销明细
148
-                        </el-button>
144
+                        <!--<el-button-->
145
+                                <!--v-if="$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919  || this.$store.getters.xt_user.org_id == 9671  || this.$store.getters.xt_user.org_id == 10106"-->
146
+                                <!--size="small" @click="open(11)" type="primary"-->
147
+                        <!--&gt;撤销明细-->
148
+                        <!--</el-button>-->
149
 
149
 
150
                     </div>
150
                     </div>
151
                     <!--<el-button size="small" @click="query" type="primary"-->
151
                     <!--<el-button size="small" @click="query" type="primary"-->
1629
           // this.$refs.print.getInfo(this.order.id)
1629
           // this.$refs.print.getInfo(this.order.id)
1630
 
1630
 
1631
         } else if (index == 10) {
1631
         } else if (index == 10) {
1632
-          let params = {
1632
+          var that = this
1633
+          this.$confirm('是否退号', '退号', {
1634
+            confirmButtonText: '确 定',
1635
+            cancelButtonText: '取 消',
1636
+            type: 'warning'
1637
+          }).then(() => {
1638
+            let params = {
1639
+              'patient_id': this.patientInfo.id,
1640
+              'record_time': this.record_date,
1641
+              'org_id': this.$store.getters.xt_user.org_id,
1642
+              'admin_user_id': this.$store.getters.xt_user.user.id,
1643
+            }
1644
+            axios.get('http://127.0.0.1:9532/api/refundnumber/post', {
1645
+              params: params
1646
+            })
1647
+              .then(function(response) {
1648
+                if (response.data.state == 0) {
1649
+                  that.$message.error(response.data.msg)
1650
+                  return false
1651
+                } else {
1652
+                  that.radio = 1
1653
+                  that.changeRadio(1)
1654
+                  that.$message({ message: '退号成功', type: 'success',duration:5000 })
1633
 
1655
 
1634
-            'patient_id': this.patientInfo.id,
1635
-            'record_time': this.record_date,
1636
-            'org_id': this.$store.getters.xt_user.org_id
1637
-          }
1638
-          axios.get('http://127.0.0.1:9532/api/refundnumber/post', {
1639
-            params: params
1656
+                }
1657
+              })
1658
+              .catch(function(error) {
1659
+              })
1660
+          }).catch(() => {
1640
           })
1661
           })
1641
-            .then(function(response) {
1642
-              if (response.data.state == 0) {
1643
-                that.$message.error(response.data.msg)
1644
-                that.loadingtwo = false
1645
-                return false
1646
-              } else {
1647
-                that.$message({ message: '退号成功', type: 'success' })
1648
-                that.loadingtwo = false
1649
-              }
1650
-            })
1651
-            .catch(function(error) {
1652
-            })
1653
         } else if (index == 11) {
1662
         } else if (index == 11) {
1654
           let params = {
1663
           let params = {
1655
             'order_id': this.order.id,
1664
             'order_id': this.order.id,
1667
                 that.loadingtwo = false
1676
                 that.loadingtwo = false
1668
                 return false
1677
                 return false
1669
               } else {
1678
               } else {
1670
-                that.$message({ message: '退号成功', type: 'success' })
1679
+                // that.$message({ message: '退号成功', type: 'success' })
1680
+                that.$message({ message: '退明细成功', type: 'success',duration:5000 })
1671
                 that.loadingtwo = false
1681
                 that.loadingtwo = false
1672
               }
1682
               }
1673
             })
1683
             })

+ 59 - 6
src/xt_pages/outpatientRecord/outpatientRecord.vue 查看文件

12
                                @click="searchAction">
12
                                @click="searchAction">
13
                         搜索
13
                         搜索
14
                     </el-button>
14
                     </el-button>
15
+                    <!--<el-select v-model="is_put_on_record" style="width:160px;" placeholder="请选择" @change="changeStatus">-->
16
+                        <!--<el-option-->
17
+                                <!--v-for="item,index in datas"-->
18
+                                <!--:key="index"-->
19
+                                <!--:label="item.name"-->
20
+                                <!--:value="item.id">-->
21
+                        <!--</el-option>-->
22
+                    <!--</el-select>-->
15
                 </div>
23
                 </div>
16
                 <!--<el-button size="small" type="primary" @click="dialogFormVisible = t 。rue">医保对账</el-button>-->
24
                 <!--<el-button size="small" type="primary" @click="dialogFormVisible = t 。rue">医保对账</el-button>-->
17
             </div>
25
             </div>
109
 
117
 
110
                 <el-table-column prop="date" label="操作" width="80" align="center" fixed="right">
118
                 <el-table-column prop="date" label="操作" width="80" align="center" fixed="right">
111
                     <template slot-scope="scope">
119
                     <template slot-scope="scope">
112
-                        <el-button type="primary" size="small" icon="el-icon-refresh-left">
113
-                            <span v-if="scope.row.record.is_cancel == 0 ||scope.row.record.is_cancel == 2" @click="putOnRecord(1,scope.row)">备案</span>
114
-                            <span v-if="scope.row.record.is_cancel == 1" @click="putOnRecord(2,scope.row)">撤消</span>
120
+                        <el-button type="primary" size="small" icon="el-icon-tickets" v-if="scope.row.record.is_cancel == 0 ||scope.row.record.is_cancel == 2" >
121
+                            <span @click="putOnRecord(1,scope.row)">备案</span>
122
+                        </el-button>
123
+
124
+                        <el-button type="danger" size="small" icon="el-icon-tickets" v-if="scope.row.record.is_cancel == 1" >
125
+                            <span @click="putOnRecord(2,scope.row)">撤消</span>
115
                         </el-button>
126
                         </el-button>
116
                     </template>
127
                     </template>
117
                 </el-table-column>
128
                 </el-table-column>
166
     },
177
     },
167
     data() {
178
     data() {
168
       return {
179
       return {
180
+        is_put_on_record:0,
181
+        datas: [
182
+          {
183
+            id: 0,
184
+            name: '全部'
185
+          }, {
186
+            id: 1,
187
+            name: '已备案'
188
+          }, {
189
+            id: 2,
190
+            name: '未备案'
191
+          }
192
+        ],
169
         currentObject: null,
193
         currentObject: null,
170
         crumbs: [
194
         crumbs: [
171
           { path: false, name: '门诊收费' },
195
           { path: false, name: '门诊收费' },
254
       }
278
       }
255
     },
279
     },
256
     methods: {
280
     methods: {
281
+      changeStatus(id){
282
+        this.keywords = ""
283
+        this.getList()
284
+      },
257
       getName(value){
285
       getName(value){
258
         console.log(value)
286
         console.log(value)
259
         for(let i = 0; i < this.insutype_arr.length; i++){
287
         for(let i = 0; i < this.insutype_arr.length; i++){
380
 
408
 
381
       },
409
       },
382
       confirm() {
410
       confirm() {
411
+        if(this.currentObject.record.doctor_id == '' || this.currentObject.record.doctor_id  == 0){
412
+          this.$message.error("请选择医生")
413
+          return
414
+        }
415
+
416
+        if(this.currentObject.record.department_id == '' || this.currentObject.record.department_id  == 0){
417
+          this.$message.error("请选择科室")
418
+          return
419
+        }
420
+
421
+        if(this.currentObject.record.sick_type == '' || this.currentObject.record.sick_type  == 0){
422
+          this.$message.error("请选择疾病类型")
423
+          return
424
+        }
425
+
426
+        if(this.currentObject.record.insutype_value == '' || this.currentObject.record.insutype_value  == 0){
427
+          this.$message.error("请选择险种")
428
+          return
429
+        }
430
+
383
         let params = {
431
         let params = {
384
           record_type: 0,
432
           record_type: 0,
385
           patient_id: this.currentObject.id,
433
           patient_id: this.currentObject.id,
407
                 that.dialogFormVisible = false
455
                 that.dialogFormVisible = false
408
                 for (let i = 0; i < that.tableData.length; i++) {
456
                 for (let i = 0; i < that.tableData.length; i++) {
409
                   if (that.tableData[i].id == that.currentObject.id) {
457
                   if (that.tableData[i].id == that.currentObject.id) {
410
-                    that.tableData[i].record.is_cancel == 1
411
-                    that.tableData[i].record.id == response.data.data.result.id
458
+                    that.tableData[i].record.is_cancel =response.data.data.result.is_cancel
459
+                    that.tableData[i].record.id = response.data.data.result.id
412
                     that.tableData[i].record.trt_dcla_detl_sn = response.data.data.result.trt_dcla_detl_sn
460
                     that.tableData[i].record.trt_dcla_detl_sn = response.data.data.result.trt_dcla_detl_sn
413
                     that.tableData[i].record.psn_no = response.data.data.result.psn_no
461
                     that.tableData[i].record.psn_no = response.data.data.result.psn_no
414
                     that.tableData[i].record.doctor_id = response.data.data.result.doctor_id
462
                     that.tableData[i].record.doctor_id = response.data.data.result.doctor_id
453
         let params = {
501
         let params = {
454
           'page': this.page,
502
           'page': this.page,
455
           'limit': this.limit,
503
           'limit': this.limit,
456
-          'keywords': this.keywords
504
+          'keywords': this.keywords,
505
+          'is_put_on_record':this.is_put_on_record
457
         }
506
         }
458
         this.tableData = []
507
         this.tableData = []
459
         this.patientLoading = true
508
         this.patientLoading = true
478
                 this.tableData[i].record.department_id = ''
527
                 this.tableData[i].record.department_id = ''
479
               }
528
               }
480
 
529
 
530
+              if (this.tableData[i].record.sick_type == 0) {
531
+                this.tableData[i].record.sick_type = ''
532
+              }
533
+
481
             }
534
             }
482
 
535
 
483
           }
536
           }