Browse Source

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

XMLWAN 4 years ago
parent
commit
c4c6410324

+ 7 - 3
src/xt_pages/dialysis/schedualPatient.vue View File

@@ -279,11 +279,15 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
279 279
       }
280 280
     },
281 281
     created() {
282
-      if(sessionStorage.getItem('signIn') != null){
282
+      if(sessionStorage.getItem('signInKey') != null){
283 283
         setTimeout(() => {    
284
-          if(sessionStorage.getItem('signIn') == 1){
284
+          if(sessionStorage.getItem('signInKey') == 1){
285 285
             this.$router.replace({ path: '/signIn' })
286
-          }else if(sessionStorage.getItem('signIn') == 2){
286
+          }
287
+        },1000)
288
+      }else if(sessionStorage.getItem('lineUpKey') != null){
289
+        setTimeout(() => { 
290
+          if(sessionStorage.getItem('lineUpKey') == 1){
287 291
             this.$router.replace({ path: '/lineUp' })
288 292
           }
289 293
         },1000)

+ 8 - 8
src/xt_pages/medicalScheduling/class.vue View File

@@ -87,7 +87,7 @@
87 87
                     v-model="form.timeone_start"
88 88
                     :picker-options="{
89 89
                     start: '01:00',
90
-                    step: '00:15',
90
+                    step: '00:05',
91 91
                     end: '24:00'
92 92
                     }"
93 93
                     placeholder="选择时间">
@@ -107,7 +107,7 @@
107 107
                     v-model="form.timeone_end"
108 108
                     :picker-options="{
109 109
                     start: '01:00',
110
-                    step: '00:15',
110
+                    step: '00:05',
111 111
                     end: '24:00'
112 112
                     }"
113 113
                     placeholder="选择时间">
@@ -123,7 +123,7 @@
123 123
                     v-model="form.timetwo_start"
124 124
                     :picker-options="{
125 125
                     start: '01:00',
126
-                    step: '00:15',
126
+                    step: '00:05',
127 127
                     end: '24:00'
128 128
                     }"
129 129
                     placeholder="选择时间">
@@ -142,7 +142,7 @@
142 142
                     v-model="form.timetwo_end"
143 143
                     :picker-options="{
144 144
                     start: '01:00',
145
-                    step: '00:15',
145
+                    step: '00:05',
146 146
                     end: '24:00'
147 147
                     }"
148 148
                     placeholder="选择时间">
@@ -193,7 +193,7 @@
193 193
                     v-model="form.timeone_start"
194 194
                     :picker-options="{
195 195
                     start: '01:00',
196
-                    step: '00:15',
196
+                    step: '00:05',
197 197
                     end: '24:00'
198 198
                     }"
199 199
                     placeholder="选择时间">
@@ -213,7 +213,7 @@
213 213
                     v-model="form.timeone_end"
214 214
                     :picker-options="{
215 215
                     start: '01:00',
216
-                    step: '00:15',
216
+                    step: '00:05',
217 217
                     end: '24:00'
218 218
                     }"
219 219
                     placeholder="选择时间">
@@ -229,7 +229,7 @@
229 229
                     v-model="form.timetwo_start"
230 230
                     :picker-options="{
231 231
                     start: '01:00',
232
-                    step: '00:15',
232
+                    step: '00:05',
233 233
                     end: '24:00'
234 234
                     }"
235 235
                     placeholder="选择时间">
@@ -248,7 +248,7 @@
248 248
                     v-model="form.timetwo_end"
249 249
                     :picker-options="{
250 250
                     start: '01:00',
251
-                    step: '00:15',
251
+                    step: '00:05',
252 252
                     end: '24:00'
253 253
                     }"
254 254
                     placeholder="选择时间">

+ 148 - 5
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -71,15 +71,20 @@
71 71
 
72 72
           <el-button v-loading="loadingtwo" v-if="this.hisPatientInfo.id > 0 && this.order.id == 0" size="small"
73 73
                      @click="open(20)"
74
-                     type="primary">收费
74
+                     type="primary">预结算!
75 75
           </el-button>
76 76
 
77
-
78 77
           <el-button v-loading="loadingtwo" v-if="this.hisPatientInfo.id > 0 && this.order.id == 0" size="small"
79
-                     @click="open(4)"
80
-                     type="primary">预结算
78
+                     @click="open(21)"
79
+                     type="primary">收费!
81 80
           </el-button>
82 81
 
82
+
83
+          <!--<el-button v-loading="loadingtwo" v-if="this.hisPatientInfo.id > 0 && this.order.id == 0" size="small"-->
84
+                     <!--@click="open(4)"-->
85
+                     <!--type="primary">收费-->
86
+          <!--</el-button>-->
87
+
83 88
           <el-button size="small" @click="open(5)" type="primary"
84 89
                      v-if="this.hisPatientInfo.id > 0 && this.order.id > 0 &&  this.order.order_status == 2">退费
85 90
           </el-button>
@@ -562,7 +567,7 @@
562 567
         this.loadingtwo = true
563 568
         if (this.$store.getters.xt_user.org_id == 9919) {
564 569
           var that = this
565
-          axios.get('http://127.0.0.1:9532/api/upload/get', {
570
+          axios.get('http://127.0.0.1:9532/api/settle/get', {
566 571
             params: form
567 572
           })
568 573
             .then(function(response) {
@@ -1511,10 +1516,148 @@
1511 1516
           }
1512 1517
 
1513 1518
         }else if(index == 20){
1519
+          if (this.patientInfo.id == 0) {
1520
+            this.$message({ message: '该选择要收费的患者', type: 'error' })
1521
+            return
1522
+          }
1523
+
1524
+          if (this.hisPatientInfo.id == 0) {
1525
+            this.$message({ message: '该患者尚未挂号,请先挂号', type: 'error' })
1526
+            return
1527
+          }
1528
+
1529
+          let ids = []
1530
+          if (this.activeName == 'first') {
1531
+            for (let i = 0; i < this.prescriptions.length; i++) {
1532
+              for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
1533
+                ids.push(this.prescriptions[i].advices[a].id)
1534
+              }
1535
+              for (let a = 0; a < this.prescriptions[i].addition.length; a++) {
1536
+                ids.push(this.prescriptions[i].addition[a].id)
1537
+              }
1538
+
1539
+              for (let a = 0; a < this.prescriptions[i].project.length; a++) {
1540
+                ids.push(this.prescriptions[i].project[a].id)
1541
+              }
1542
+            }
1543
+            if (ids.length == 0) {
1544
+              this.$message.error('请先到医生工作站开处方再来结算')
1545
+              return
1546
+            }
1547
+          } else {
1548
+            for (let i = 0; i < this.month_prescriptions.length; i++) {
1549
+              for (let a = 0; a < this.month_prescriptions[i].advices.length; a++) {
1550
+                ids.push(this.month_prescriptions[i].advices[a].id)
1551
+              }
1552
+
1553
+              for (let a = 0; a < this.month_prescriptions[i].addition.length; a++) {
1554
+                ids.push(this.month_prescriptions[i].addition[a].id)
1555
+              }
1556
+
1557
+              for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
1558
+                ids.push(this.month_prescriptions[i].project[a].id)
1559
+              }
1560
+            }
1561
+            if (ids.length == 0) {
1562
+              this.$message.error('请先到医生工作站开处方再来结算')
1563
+              return
1564
+            }
1565
+          }
1566
+
1514 1567
 
1568
+          var form = {}
1569
+          form['id'] = this.patientInfo.id
1570
+          form['record_time'] = this.record_date
1571
+          form['admin_user_id'] = this.$store.getters.xt_user.user.id
1515 1572
 
1573
+          if (this.activeName == 'first') {
1574
+            form['settle_accounts_type'] = 1
1516 1575
 
1576
+          } else {
1577
+            form['start_time'] = this.other_start_time
1578
+            form['end_time'] = this.other_end_time
1579
+            form['settle_accounts_type'] = 2
1517 1580
 
1581
+          }
1582
+          this.loadingtwo = true
1583
+          if (this.$store.getters.xt_user.org_id == 9919) {
1584
+            var that = this
1585
+            axios.get('http://127.0.0.1:9532/api/upload/get', {
1586
+              params: form
1587
+            })
1588
+              .then(function(response) {
1589
+                if (response.data.state == 0) {
1590
+                  that.$message.error(response.data.msg)
1591
+                  that.loadingtwo = false
1592
+                  that.$refs.charge.hide()
1593
+                  return false
1594
+                } else {
1595
+                  that.loadingtwo = false
1596
+                  that.state = '预结算'
1597
+                  that.$message({ message: '预结算成功', type: 'success' })
1598
+                }
1599
+              })
1600
+              .catch(function(error) {
1601
+
1602
+              })
1603
+          } else {
1604
+
1605
+          }
1606
+        }else if(index == 21){
1607
+
1608
+          if (this.patientInfo.id == 0) {
1609
+            this.$message({ message: '该选择要收费的患者', type: 'error' })
1610
+            return
1611
+          }
1612
+
1613
+          if (this.hisPatientInfo.id == 0) {
1614
+            this.$message({ message: '该患者尚未挂号,请先挂号', type: 'error' })
1615
+            return
1616
+          }
1617
+
1618
+          let ids = []
1619
+          if (this.activeName == 'first') {
1620
+            for (let i = 0; i < this.prescriptions.length; i++) {
1621
+              for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
1622
+                ids.push(this.prescriptions[i].advices[a].id)
1623
+              }
1624
+              for (let a = 0; a < this.prescriptions[i].addition.length; a++) {
1625
+                ids.push(this.prescriptions[i].addition[a].id)
1626
+              }
1627
+
1628
+              for (let a = 0; a < this.prescriptions[i].project.length; a++) {
1629
+                ids.push(this.prescriptions[i].project[a].id)
1630
+              }
1631
+            }
1632
+            if (ids.length == 0) {
1633
+              this.$message.error('请先到医生工作站开处方再来结算')
1634
+              return
1635
+            }
1636
+
1637
+          } else {
1638
+            for (let i = 0; i < this.month_prescriptions.length; i++) {
1639
+              for (let a = 0; a < this.month_prescriptions[i].advices.length; a++) {
1640
+                ids.push(this.month_prescriptions[i].advices[a].id)
1641
+              }
1642
+
1643
+              for (let a = 0; a < this.month_prescriptions[i].addition.length; a++) {
1644
+                ids.push(this.month_prescriptions[i].addition[a].id)
1645
+              }
1646
+
1647
+              for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
1648
+                ids.push(this.month_prescriptions[i].project[a].id)
1649
+              }
1650
+            }
1651
+            if (ids.length == 0) {
1652
+              this.$message.error('请先到医生工作站开处方再来结算')
1653
+              return
1654
+            }
1655
+          }
1656
+          if (this.activeName == 'first') {
1657
+            this.$refs.charge.show(this.getTotal())
1658
+          } else {
1659
+            this.$refs.charge.show(this.getTotalTwo())
1660
+          }
1518 1661
         }
1519 1662
       },
1520 1663
 

+ 5 - 4
src/xt_pages/sign/lineUp.vue View File

@@ -251,11 +251,12 @@ export default {
251 251
         },
252 252
     },
253 253
     created(){
254
-        if(sessionStorage.getItem('signIn') != null){
255
-            if(sessionStorage.getItem('signIn') == 2){
254
+        if(sessionStorage.getItem('lineUpKey') != null){
255
+            if(sessionStorage.getItem('lineUpKey') == 1){
256 256
                 this.dialogTableVisible = true
257 257
             }
258
-            sessionStorage.removeItem('signIn')
258
+            sessionStorage.removeItem('lineUpKey')
259
+            sessionStorage.removeItem('signInKey')
259 260
         }
260 261
         this.initData = {
261 262
             cmd: "queue/join",
@@ -328,7 +329,7 @@ export default {
328 329
         }, 1000);
329 330
         this.newTimes = setInterval(() => {
330 331
             // this.reload()
331
-            sessionStorage.setItem('signIn',2);
332
+            sessionStorage.setItem('lineUpKey',1);
332 333
             window.location.reload()
333 334
         }, 1000 * 60 * 30);
334 335
     },

+ 5 - 4
src/xt_pages/sign/signIn.vue View File

@@ -170,11 +170,12 @@ export default {
170 170
         },
171 171
     },
172 172
     created(){
173
-        if(sessionStorage.getItem('signIn') != null){
174
-            if(sessionStorage.getItem('signIn') == 1){
173
+        if(sessionStorage.getItem('signInKey') != null){
174
+            if(sessionStorage.getItem('signInKey') == 1){
175 175
                 this.dialogTableVisible = true
176 176
             }
177
-            sessionStorage.removeItem('signIn')
177
+            sessionStorage.removeItem('signInKey')
178
+            sessionStorage.removeItem('lineUpKey')
178 179
         }
179 180
         // if(sessionStorage.getItem('signInKey') != null){
180 181
         //     if(sessionStorage.getItem('signInKey') == 1){
@@ -217,7 +218,7 @@ export default {
217 218
         // this.updateTime();
218 219
         this.newTimes = setInterval(() => {
219 220
             // this.reload()
220
-            sessionStorage.setItem('signIn',1);
221
+            sessionStorage.setItem('signInKey',1);
221 222
             window.location.reload()
222 223
         }, 1000 * 60 * 30);
223 224
     },

+ 21 - 22
src/xt_pages/workforce/appointment.vue View File

@@ -142,7 +142,7 @@
142 142
                 <el-button @click="newVisible=false">取 消</el-button>
143 143
                 <el-button type="primary" @click="submitAction('form')">保 存</el-button>
144 144
             </div>
145
-      </el-dialog>            
145
+      </el-dialog>
146 146
     </div>
147 147
   </div>
148 148
 </template>
@@ -209,7 +209,7 @@
209 209
         clen:7,
210 210
         nowYear: new Date().getFullYear(),
211 211
         schedule_week:0,
212
-       
212
+
213 213
       }
214 214
     },
215 215
     components: {
@@ -219,7 +219,7 @@
219 219
       UploadExcel
220 220
     },
221 221
     methods: {
222
-    
222
+
223 223
       generateTxt: function(log) {
224 224
         var content = ''
225 225
         var errlog = log.err_logs
@@ -280,9 +280,9 @@
280 280
             return false
281 281
           }
282 282
           var partitions = response.data.data.partitions
283
-          // console.log("分区",partitions)
284
-          this.theWeek.lastWeek = this.theWeek.thisWeek - 1
283
+          console.log("分区",partitions)
285 284
           this.theWeek.thisWeek = response.data.data.theWeek
285
+          this.theWeek.lastWeek = this.theWeek.thisWeek - 1
286 286
           this.theWeek.nextWeek = this.theWeek.thisWeek + 1
287 287
           this.theWeek.nextTwoWeek = this.theWeek.thisWeek + 2
288 288
           // 在控制变量改变的时候进行 强制渲染更新
@@ -527,7 +527,7 @@
527 527
 
528 528
           var data = []
529 529
           console.log("33333",this.tableList)
530
-        
530
+
531 531
          this.tableList.map(item=>{
532 532
            data.push(Object.values(item))
533 533
 
@@ -548,7 +548,7 @@
548 548
        return jsonData.map(v => filterVal.map(j => v[j]))
549 549
       },
550 550
 
551
-     
551
+
552 552
       printScheduleAction: function() {
553 553
         var date = new Date().getTime()
554 554
         if (this.activeName == 'lastWeek') {
@@ -806,14 +806,14 @@
806 806
             isHas_56 && isHas_57 && isHas_58 && isHas_59 && isHas_60 &&
807 807
             isHas_61 && isHas_62 && isHas_63 && isHas_64 && isHas_65)) {
808 808
 
809
-         
809
+
810 810
 
811 811
             this.dialogVisible = true
812 812
             return
813 813
           }
814 814
         } else {
815 815
 
816
-        
816
+
817 817
 
818 818
           this.dialogVisible = true
819 819
           return
@@ -859,21 +859,21 @@
859 859
           }
860 860
         }
861 861
 
862
-      
862
+
863 863
         for (let i = 0; i < zones.length; i++) {
864
-         
864
+
865 865
 
866 866
           if (!total_zones.includes(zones[i])) {
867 867
             is_system_zone = false
868 868
           }
869 869
         }
870 870
 
871
-     
871
+
872 872
 
873 873
 
874 874
         for (let i = 0; i < deviceNumber.length; i++) {
875 875
           if (!total_device_number.includes(deviceNumber[i])) {
876
-           
876
+
877 877
             is_device_number = false
878 878
           }
879 879
         }
@@ -903,7 +903,7 @@
903 903
               let obj = {}
904 904
 
905 905
               obj['name'] = results[i + 1][key].replace(/\s/g, '')
906
-             
906
+
907 907
               if (tempObj[key] == '上午') {
908 908
                 obj['schedule_type'] = 1
909 909
               } else if (tempObj[key] == '下午') {
@@ -1022,7 +1022,7 @@
1022 1022
               return cur
1023 1023
             }, []) // 设置cur默认类型为数组,并且初始值为空的数组
1024 1024
 
1025
-           
1025
+
1026 1026
             if (tempObjArr[i][key].length > arr.length) {    //比对原数组和去重后的原数组总数,不同的话则存在重复元素
1027 1027
               is_exist_repeat = true
1028 1028
             }
@@ -1035,7 +1035,7 @@
1035 1035
 
1036 1036
 
1037 1037
         if (headers.length > 65 || !is_system_zone || !is_device_number) {
1038
-         
1038
+
1039 1039
 
1040 1040
           this.dialogVisible = true
1041 1041
           return
@@ -2190,7 +2190,7 @@
2190 2190
                var end = this.getTimestamp(end_time) - 28800
2191 2191
               console.log("end",end)
2192 2192
               var scheduleList = response.data.data.list
2193
-             
2193
+
2194 2194
               var week= []
2195 2195
               var nextWeek = []
2196 2196
               var lastWeek = []
@@ -2527,7 +2527,6 @@
2527 2527
                   }
2528 2528
                 }
2529 2529
              }
2530
-             console.log("list22222222222",list)
2531 2530
              this.tableList = list
2532 2531
            }
2533 2532
          })
@@ -2563,7 +2562,7 @@
2563 2562
       getTime(val) {
2564 2563
         return uParseTime(val, '{y}-{m}-{d}')
2565 2564
       },
2566
-      
2565
+
2567 2566
       copySchedule(){
2568 2567
         this.newVisible = true
2569 2568
       },
@@ -2643,7 +2642,7 @@
2643 2642
               copy_endtime:copy_endtime,
2644 2643
             }
2645 2644
            console.log("parasm",params)
2646
-        
2645
+
2647 2646
            this.$refs[formName].validate(valid=>{
2648 2647
               if(valid){
2649 2648
                 copyPatientSchedule(params).then(response=>{
@@ -2663,7 +2662,7 @@
2663 2662
      var start_time = moment().weekday(1).format('YYYY-MM-DD');
2664 2663
      console.log("开始时间",start_time)
2665 2664
      this.start_time = start_time
2666
-    
2665
+
2667 2666
      var end_time = this.getNextWeek(2)
2668 2667
      console.log("结束时间222222",end_time)
2669 2668
      this.end_time = end_time
@@ -2702,7 +2701,7 @@
2702 2701
           }
2703 2702
 
2704 2703
         }
2705
-       
2704
+
2706 2705
     }
2707 2706
   }
2708 2707
 </script>