Ver código fonte

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

XMLWAN 4 anos atrás
pai
commit
c4c6410324

+ 7 - 3
src/xt_pages/dialysis/schedualPatient.vue Ver arquivo

279
       }
279
       }
280
     },
280
     },
281
     created() {
281
     created() {
282
-      if(sessionStorage.getItem('signIn') != null){
282
+      if(sessionStorage.getItem('signInKey') != null){
283
         setTimeout(() => {    
283
         setTimeout(() => {    
284
-          if(sessionStorage.getItem('signIn') == 1){
284
+          if(sessionStorage.getItem('signInKey') == 1){
285
             this.$router.replace({ path: '/signIn' })
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
             this.$router.replace({ path: '/lineUp' })
291
             this.$router.replace({ path: '/lineUp' })
288
           }
292
           }
289
         },1000)
293
         },1000)

+ 8 - 8
src/xt_pages/medicalScheduling/class.vue Ver arquivo

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

+ 148 - 5
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Ver arquivo

71
 
71
 
72
           <el-button v-loading="loadingtwo" v-if="this.hisPatientInfo.id > 0 && this.order.id == 0" size="small"
72
           <el-button v-loading="loadingtwo" v-if="this.hisPatientInfo.id > 0 && this.order.id == 0" size="small"
73
                      @click="open(20)"
73
                      @click="open(20)"
74
-                     type="primary">收费
74
+                     type="primary">预结算!
75
           </el-button>
75
           </el-button>
76
 
76
 
77
-
78
           <el-button v-loading="loadingtwo" v-if="this.hisPatientInfo.id > 0 && this.order.id == 0" size="small"
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
           </el-button>
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
           <el-button size="small" @click="open(5)" type="primary"
88
           <el-button size="small" @click="open(5)" type="primary"
84
                      v-if="this.hisPatientInfo.id > 0 && this.order.id > 0 &&  this.order.order_status == 2">退费
89
                      v-if="this.hisPatientInfo.id > 0 && this.order.id > 0 &&  this.order.order_status == 2">退费
85
           </el-button>
90
           </el-button>
562
         this.loadingtwo = true
567
         this.loadingtwo = true
563
         if (this.$store.getters.xt_user.org_id == 9919) {
568
         if (this.$store.getters.xt_user.org_id == 9919) {
564
           var that = this
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
             params: form
571
             params: form
567
           })
572
           })
568
             .then(function(response) {
573
             .then(function(response) {
1511
           }
1516
           }
1512
 
1517
 
1513
         }else if(index == 20){
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 Ver arquivo

251
         },
251
         },
252
     },
252
     },
253
     created(){
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
                 this.dialogTableVisible = true
256
                 this.dialogTableVisible = true
257
             }
257
             }
258
-            sessionStorage.removeItem('signIn')
258
+            sessionStorage.removeItem('lineUpKey')
259
+            sessionStorage.removeItem('signInKey')
259
         }
260
         }
260
         this.initData = {
261
         this.initData = {
261
             cmd: "queue/join",
262
             cmd: "queue/join",
328
         }, 1000);
329
         }, 1000);
329
         this.newTimes = setInterval(() => {
330
         this.newTimes = setInterval(() => {
330
             // this.reload()
331
             // this.reload()
331
-            sessionStorage.setItem('signIn',2);
332
+            sessionStorage.setItem('lineUpKey',1);
332
             window.location.reload()
333
             window.location.reload()
333
         }, 1000 * 60 * 30);
334
         }, 1000 * 60 * 30);
334
     },
335
     },

+ 5 - 4
src/xt_pages/sign/signIn.vue Ver arquivo

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

+ 21 - 22
src/xt_pages/workforce/appointment.vue Ver arquivo

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