Selaa lähdekoodia

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

csx 3 vuotta sitten
vanhempi
commit
7174664647

+ 1 - 0
src/xt_pages/dialysis/details/NavIgation.vue Näytä tiedosto

@@ -137,6 +137,7 @@
137 137
       :admin_users="admin_users"
138 138
       :dialysis_order="dialysis_order"
139 139
       :his_is_open="his_is_open"
140
+      :predialysis="predialysis_evaluation"
140 141
     ></doctor-advice-dialog>
141 142
 
142 143
     <computer-dialog

+ 8 - 1
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Näytä tiedosto

@@ -641,6 +641,7 @@
641 641
     </el-dialog>
642 642
 
643 643
     <add-group-advice
644
+      :predialysis="predialysis"
644 645
       :adviceTemplates="adviceTemplates"
645 646
       :executionFrequencyOptions="executionFrequencyOptions"
646 647
       :unitsOption="unitsOption"
@@ -714,7 +715,13 @@
714 715
         default: () => {
715 716
           return []
716 717
         }
717
-      }
718
+      },
719
+      predialysis: {
720
+        type: Object,
721
+        default: () => {
722
+          return { id: 0 }
723
+        }
724
+      },
718 725
     },
719 726
     data() {
720 727
       return {

+ 54 - 0
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue Näytä tiedosto

@@ -680,6 +680,12 @@ export default {
680 680
         return [];
681 681
       }
682 682
     },
683
+    predialysis: {
684
+      type: Object,
685
+      default: () => {
686
+        return { id: 0 }
687
+      }
688
+    },
683 689
    
684 690
   },
685 691
   methods: {
@@ -1483,6 +1489,54 @@ export default {
1483 1489
       var xtuser = this.$store.getters.xt_user;
1484 1490
       // this.orgname = xtuser.org.org_name;
1485 1491
       this.adminusername = xtuser.user.user_name;
1492
+      if(this.$store.getters.xt_user.org.id == 10101){
1493
+        if (this.predialysis.id > 0 && this.predialysis.created_time > 0) {
1494
+          var date = new Date(this.predialysis.created_time * 1000)
1495
+          var year = date.getFullYear()
1496
+          var month = date.getMonth() + 1
1497
+          var day = date.getDate()
1498
+
1499
+          var hours = date.getHours()
1500
+          var minites = date.getMinutes()
1501
+
1502
+          if (month < 10) {
1503
+            month = '0' + month
1504
+          }
1505
+          if (day < 10) {
1506
+            day = '0' + day
1507
+          }
1508
+          if (hours < 10) {
1509
+            hours = '0' + hours
1510
+          }
1511
+          if (minites < 10) {
1512
+            minites = '0' + minites
1513
+          }
1514
+          
1515
+          this.groupForm.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
1516
+        } else {
1517
+          var date = new Date()
1518
+          var year = date.getFullYear()
1519
+          var month = date.getMonth() + 1
1520
+          var day = date.getDate()
1521
+
1522
+          var hours = date.getHours()
1523
+          var minites = date.getMinutes()
1524
+
1525
+          if (month < 10) {
1526
+            month = '0' + month
1527
+          }
1528
+          if (day < 10) {
1529
+            day = '0' + day
1530
+          }
1531
+          if (hours < 10) {
1532
+            hours = '0' + hours
1533
+          }
1534
+          if (minites < 10) {
1535
+            minites = '0' + minites
1536
+          }
1537
+          this.groupForm.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
1538
+        }
1539
+      }
1486 1540
     },
1487 1541
     selectAllTemplateAdvice(selection) {
1488 1542
       console.log("params",selection)

+ 78 - 28
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Näytä tiedosto

@@ -1954,7 +1954,7 @@
1954 1954
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1955 1955
       },
1956 1956
       show(pre, schedual, last, his_is_open) {
1957
-        console.log('pre222222', pre)
1957
+        console.log('pre222222', this.predialysis)
1958 1958
         if (pre != undefined) {
1959 1959
           if (pre.oxygen_uptake == 1) {
1960 1960
             this.oxygenShow = true
@@ -1968,37 +1968,87 @@
1968 1968
         if (his_is_open == 1) {
1969 1969
           this.is_open = 0
1970 1970
         }
1971
-        var date = new Date()
1972
-        var year = date.getFullYear()
1973
-        var month = date.getMonth() + 1
1974
-        var day = date.getDate()
1971
+        
1972
+        if(this.$store.getters.xt_user.org.id == 10101){
1973
+          if (this.predialysis.id > 0 && this.predialysis.created_time > 0) {
1974
+            var date = new Date(this.predialysis.created_time * 1000)
1975
+            var year = date.getFullYear()
1976
+            var month = date.getMonth() + 1
1977
+            var day = date.getDate()
1975 1978
 
1976
-        var hours = date.getHours()
1977
-        var minites = date.getMinutes()
1979
+            var hours = date.getHours()
1980
+            var minites = date.getMinutes()
1978 1981
 
1979
-        if (month < 10) {
1980
-          month = '0' + month
1981
-        }
1982
-        if (day < 10) {
1983
-          day = '0' + day
1984
-        }
1985
-        if (hours < 10) {
1986
-          hours = '0' + hours
1987
-        }
1988
-        if (minites < 10) {
1989
-          minites = '0' + minites
1990
-        }
1991
-        if (this.$store.getters.xt_user.org.id == 10016 || this.$store.getters.xt_user.org.id == 10101) {
1992
-          this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
1993
-        } else {
1994
-          if (schedual.schedule_type == 1) {
1995
-            this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
1996
-          } else if (schedual.schedule_type == 2) {
1997
-            this.start_time = year + '-' + month + '-' + day + ' ' + '12:00'
1998
-          } else if (schedual.schedule_type == 3) {
1999
-            this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
1982
+            if (month < 10) {
1983
+              month = '0' + month
1984
+            }
1985
+            if (day < 10) {
1986
+              day = '0' + day
1987
+            }
1988
+            if (hours < 10) {
1989
+              hours = '0' + hours
1990
+            }
1991
+            if (minites < 10) {
1992
+              minites = '0' + minites
1993
+            }
1994
+            this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
1995
+          } else {
1996
+            var date = new Date()
1997
+            var year = date.getFullYear()
1998
+            var month = date.getMonth() + 1
1999
+            var day = date.getDate()
2000
+
2001
+            var hours = date.getHours()
2002
+            var minites = date.getMinutes()
2003
+
2004
+            if (month < 10) {
2005
+              month = '0' + month
2006
+            }
2007
+            if (day < 10) {
2008
+              day = '0' + day
2009
+            }
2010
+            if (hours < 10) {
2011
+              hours = '0' + hours
2012
+            }
2013
+            if (minites < 10) {
2014
+              minites = '0' + minites
2015
+            }
2016
+            this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
2017
+          }
2018
+        }else{
2019
+          var date = new Date()
2020
+          var year = date.getFullYear()
2021
+          var month = date.getMonth() + 1
2022
+          var day = date.getDate()
2023
+
2024
+          var hours = date.getHours()
2025
+          var minites = date.getMinutes()
2026
+
2027
+          if (month < 10) {
2028
+            month = '0' + month
2029
+          }
2030
+          if (day < 10) {
2031
+            day = '0' + day
2032
+          }
2033
+          if (hours < 10) {
2034
+            hours = '0' + hours
2035
+          }
2036
+          if (minites < 10) {
2037
+            minites = '0' + minites
2038
+          }
2039
+          if (this.$store.getters.xt_user.org.id == 10016) {
2040
+            this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
2041
+          } else {
2042
+            if (schedual.schedule_type == 1) {
2043
+              this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
2044
+            } else if (schedual.schedule_type == 2) {
2045
+              this.start_time = year + '-' + month + '-' + day + ' ' + '12:00'
2046
+            } else if (schedual.schedule_type == 3) {
2047
+              this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
2048
+            }
2000 2049
           }
2001 2050
         }
2051
+        
2002 2052
 
2003 2053
         if (pre.anticoagulant == 3) {
2004 2054
           this.dialysisPrescription.anticoagulant = '低分子肝素'

+ 4 - 4
src/xt_pages/outpatientCharges/statementTemplate/printFour.vue Näytä tiedosto

@@ -88,8 +88,8 @@
88 88
                                 <div style="border-left:1px solid #000;border-right:1px solid #000;width:40%;text-align:center;">
89 89
                                     <p class="chargeP">
90 90
                                         <span v-if='item.type == 1'>{{item.advice.advice_name}}</span>
91
-                                        <span v-if='item.type == 2'>{{item.project.project.project_name}}</span>
92
-                                        <span v-if='item.type == 3'>{{item.project.good_info.specification_name}}</span>
91
+                                        <span v-if='item.project.type == 2'>{{item.project.project.project_name}}</span>
92
+                                        <span v-if='item.project.type == 3'>{{item.project.good_info.specification_name}}</span>
93 93
                                     </p>
94 94
                                 </div>
95 95
                                 <div style="border-right:1px solid #000;width:15%;text-align:center;">
@@ -111,7 +111,7 @@
111 111
                                 </div>
112 112
                                 <div style="width:15%;text-align:center;">
113 113
                                     <p class="chargeP">
114
-                                        <span>{{item.cnt * item.pric}}元</span>
114
+                                        <span>{{(item.cnt * item.pric).toFixed(2)}}元</span>
115 115
                                     </p>
116 116
                                 </div>
117 117
                             </div>
@@ -216,7 +216,7 @@
216 216
                               </div>
217 217
                               <div style="width:15%;text-align:center;">
218 218
                                   <p class="chargeP">
219
-                                      <span>{{item.cnt * item.pric}}元</span>
219
+                                      <span>{{(item.cnt * item.pric).toFixed(2)}}元</span>
220 220
                                   </p>
221 221
                               </div>
222 222
                           </div>

+ 14 - 3
src/xt_pages/outpatientDoctorStation/checkTemplate/printOne.vue Näytä tiedosto

@@ -29,7 +29,7 @@
29 29
                 <div style="display:flex;margin-bottom:20px;padding:0 10px;">
30 30
                     <div>检验项目:</div>
31 31
                     <div>
32
-                        <div v-for="item in projectPrint" style="margin-bottom:10px;">{{ item.project.project_name }}</div>
32
+                        <div v-for="item in projectPrint" style="margin-bottom:10px;">{{ item.team.project_team }}</div>
33 33
                     </div>
34 34
                 </div>
35 35
                 <div style="display:flex;justify-content: space-between;border-top:1px solid #000;line-height:40px;padding:0 10px;">
@@ -152,11 +152,22 @@ export default {
152 152
                 
153 153
               }
154 154
             })
155
+            let data = []
156
+            projectPrint.map(item => {
157
+              if(item.team.id != 0){
158
+                let status = data.some(it => (it.team.id == item.team.id))
159
+                if(!status){
160
+                  data.push(item)
161
+                }
162
+              }
163
+              
164
+            })
165
+          
155 166
             this.total = total
156 167
             this.pre_time = this.advicePrint[0].pre_time
157 168
             this.doctor = this.advicePrint[0].doctor
158
-            this.projectPrint = projectPrint
159
-            console.log('this.projectPrint',projectPrint)
169
+            this.projectPrint = data
170
+            console.log('99999999999999999',projectPrint)
160 171
             var projectlist =  response.data.data.projectlist
161 172
 
162 173
             var projectlist =  response.data.data.projectlist

+ 8 - 8
src/xt_pages/workforce/components/tableWeeks.vue Näytä tiedosto

@@ -234,14 +234,14 @@
234 234
 
235 235
             <el-table-column label="抗凝剂(商品名称)" min-width="70" align="center">
236 236
                 <template slot-scope="scope">
237
-                    <span v-if="scope.row.prescription.anticoagulant === 1">无肝素</span>
238
-                    <span v-if="scope.row.prescription.anticoagulant === 2">普通肝素</span>
239
-                    <span v-if="scope.row.prescription.anticoagulant === 3">低分子肝素</span>
240
-                    <span v-if="scope.row.prescription.anticoagulant === 4">阿加曲班</span>
241
-                    <span v-if="scope.row.prescription.anticoagulant === 5">枸橼酸钠</span>
242
-                    <span v-if="scope.row.prescription.anticoagulant === 6">低分子肝素钙</span>
243
-                    <span v-if="scope.row.prescription.anticoagulant === 7">低分子肝素钠</span>
244
-                    <span v-if="scope.row.prescription.antioxidant_commodity_name!=''">
237
+                    <span v-if="scope.row.dialysissolution.anticoagulant === 1">无肝素</span>
238
+                    <span v-if="scope.row.dialysissolution.anticoagulant === 2">普通肝素</span>
239
+                    <span v-if="scope.row.dialysissolution.anticoagulant === 3">低分子肝素</span>
240
+                    <span v-if="scope.row.dialysissolution.anticoagulant === 4">阿加曲班</span>
241
+                    <span v-if="scope.row.dialysissolution.anticoagulant === 5">枸橼酸钠</span>
242
+                    <span v-if="scope.row.dialysissolution.anticoagulant === 6">低分子肝素钙</span>
243
+                    <span v-if="scope.row.dialysissolution.anticoagulant === 7">低分子肝素钠</span>
244
+                    <span v-if="scope.row.dialysissolution.antioxidant_commodity_name!=''">
245 245
              (<span>{{scope.row.prescription.antioxidant_commodity_name}}</span>)
246 246
           </span>
247 247
                 </template>