瀏覽代碼

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

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

@@ -141,11 +141,11 @@
141 141
                         >退号
142 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 150
                     </div>
151 151
                     <!--<el-button size="small" @click="query" type="primary"-->
@@ -1629,27 +1629,36 @@
1629 1629
           // this.$refs.print.getInfo(this.order.id)
1630 1630
 
1631 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 1662
         } else if (index == 11) {
1654 1663
           let params = {
1655 1664
             'order_id': this.order.id,
@@ -1667,7 +1676,8 @@
1667 1676
                 that.loadingtwo = false
1668 1677
                 return false
1669 1678
               } else {
1670
-                that.$message({ message: '退号成功', type: 'success' })
1679
+                // that.$message({ message: '退号成功', type: 'success' })
1680
+                that.$message({ message: '退明细成功', type: 'success',duration:5000 })
1671 1681
                 that.loadingtwo = false
1672 1682
               }
1673 1683
             })

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

@@ -12,6 +12,14 @@
12 12
                                @click="searchAction">
13 13
                         搜索
14 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 23
                 </div>
16 24
                 <!--<el-button size="small" type="primary" @click="dialogFormVisible = t 。rue">医保对账</el-button>-->
17 25
             </div>
@@ -109,9 +117,12 @@
109 117
 
110 118
                 <el-table-column prop="date" label="操作" width="80" align="center" fixed="right">
111 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 126
                         </el-button>
116 127
                     </template>
117 128
                 </el-table-column>
@@ -166,6 +177,19 @@
166 177
     },
167 178
     data() {
168 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 193
         currentObject: null,
170 194
         crumbs: [
171 195
           { path: false, name: '门诊收费' },
@@ -254,6 +278,10 @@
254 278
       }
255 279
     },
256 280
     methods: {
281
+      changeStatus(id){
282
+        this.keywords = ""
283
+        this.getList()
284
+      },
257 285
       getName(value){
258 286
         console.log(value)
259 287
         for(let i = 0; i < this.insutype_arr.length; i++){
@@ -380,6 +408,26 @@
380 408
 
381 409
       },
382 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 431
         let params = {
384 432
           record_type: 0,
385 433
           patient_id: this.currentObject.id,
@@ -407,8 +455,8 @@
407 455
                 that.dialogFormVisible = false
408 456
                 for (let i = 0; i < that.tableData.length; i++) {
409 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 460
                     that.tableData[i].record.trt_dcla_detl_sn = response.data.data.result.trt_dcla_detl_sn
413 461
                     that.tableData[i].record.psn_no = response.data.data.result.psn_no
414 462
                     that.tableData[i].record.doctor_id = response.data.data.result.doctor_id
@@ -453,7 +501,8 @@
453 501
         let params = {
454 502
           'page': this.page,
455 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 507
         this.tableData = []
459 508
         this.patientLoading = true
@@ -478,6 +527,10 @@
478 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
           }