Browse Source

新分支

28169 1 year ago
parent
commit
04e3ed7b75

+ 1 - 0
src/xt_pages/Pharmacy/PatientDispensing.vue View File

@@ -409,6 +409,7 @@ export default {
409 409
     },
410 410
     //选中行数
411 411
     handleCurrentChange(val) {
412
+      console.log("state--",this.state)
412 413
       this.currentRow = val;
413 414
       console.log("this.currentRow", this.currentRow);
414 415
       if (this.state == 1) {

+ 2 - 2
src/xt_pages/dialysis/details/consumable/dialysisParameter.vue View File

@@ -267,13 +267,13 @@
267 267
            </template>
268 268
         </el-table-column>
269 269
 
270
-        <el-table-column align="center" label="封管液" v-if="dialysisSett.blood_access==1">
270
+        <el-table-column align="center" label="封管液" v-if="dialysisSett.blood_access==1 && org_id!=10629">
271 271
            <template slot-scope="scope">
272 272
              <span v-if="getBloodAccessOption(scope.row.dialysis_solution.blood_access).indexOf('导管')!==-1">1</span>
273 273
            </template>
274 274
         </el-table-column>
275 275
 
276
-        <el-table-column align="center" label="促红" v-if="org_id!=10599">
276
+        <el-table-column align="center" label="促红" v-if="org_id!=10599 && org_id!=10629">
277 277
            <template slot-scope="scope">
278 278
               {{ scope.row.advice_spc }}
279 279
            </template>

+ 5 - 5
src/xt_pages/dialysis/details/consumable/dialysisParameterPrint.vue View File

@@ -49,11 +49,11 @@
49 49
                 <td width="100" v-if="dialysisSett.calcium==1">钙</td>
50 50
                 <td width="100" v-if="dialysisSett.bicarbonate == 1">碳酸氢盐</td>
51 51
                 <td width="100" v-if="dialysisSett.blood_access==1">血管通路</td>
52
-                <td width="100" v-if="dialysisSett.sealing_fluid_dispose == 1">封管液</td>
52
+                <td width="100" v-if="dialysisSett.sealing_fluid_dispose == 1 && org_id!=10629">封管液</td>
53 53
                 <td width="100"  v-if="dialysisSett.glucose==1">葡萄糖</td>
54 54
                 <td width="100"  v-if="dialysisSett.blood_flow_volume==1">血流量</td>
55
-                <td v-if="org_id!=10587 && org_id!=0 && org_id!=10599">封管液</td>
56
-                <td v-if="org_id!=10587 && org_id!=0 && org_id!=10599">促红</td>
55
+                <td v-if="org_id!=10587 && org_id!=0 && org_id!=10599 && org_id!=10629">封管液</td>
56
+                <td v-if="org_id!=10587 && org_id!=0 && org_id!=10599 && org_id!=10629">促红</td>
57 57
               </tr>
58 58
               </thead>
59 59
               <tbody>
@@ -175,13 +175,13 @@
175 175
                    <span>{{item.dialysis_solution.blood_flow_volume?item.dialysis_solution.blood_flow_volume:""}}</span> 
176 176
                 </td>
177 177
                 
178
-                <td v-if="org_id!=10587 && org_id!=0 && org_id!=10599">
178
+                <td v-if="org_id!=10587 && org_id!=0 && org_id!=10599 && org_id!=10629">
179 179
                   <span v-if="getBloodAccessOption(item.dialysis_solution.blood_access).indexOf('导管')!==-1">1</span>
180 180
                   <span v-else></span>
181 181
                 </td>
182 182
                 
183 183
                 
184
-                <td v-if="org_id!=10587&& org_id!=0 && org_id!=10599">
184
+                <td v-if="org_id!=10587&& org_id!=0 && org_id!=10599 && org_id!=10629">
185 185
                   {{ item.advice_spc }}
186 186
                 </td>
187 187
                </tr>

+ 95 - 30
src/xt_pages/dialysis/details/index.vue View File

@@ -19,12 +19,12 @@
19 19
           >下一位</el-button
20 20
         >   
21 21
 
22
-        <!-- <el-button
22
+        <el-button
23 23
           size="small"
24 24
           type="primary"
25 25
           @click="history_click"
26 26
           
27
-          >透析历史</el-button> -->
27
+          >透析历史</el-button>
28 28
 
29 29
         <el-button
30 30
           size="small"
@@ -1199,29 +1199,33 @@
1199 1199
       width="50%"
1200 1200
       >
1201 1201
       <div>
1202
-        <div >
1202
+        <!-- <div >
1203 1203
           透析频率:
1204 1204
           <div class="touxipl"></div>
1205
-        </div>
1205
+        </div> -->
1206 1206
         <div style="margin: 20px 0;">
1207 1207
           <div style="border-left: 2px solid #409eff;color: #409eff;padding: 0 10px;">
1208 1208
             <span>已排详情</span>
1209 1209
           </div>
1210
-          <div>
1211
-            <el-calendar v-model="time_value" >  
1212
-              <template
1213
-                slot="dateCell"
1214
-                slot-scope="{date, data}" @click="viewDayWork(data)">
1215
-                <P v-if="data.day.split('-').slice(1).join('-')=='03-06'"
1216
-                  style="background: red;color: white;text-align: center;">
1217
-                  HD
1218
-                </P>
1219
-                <p :class="data.isSelected ? 'is-selected' : ''" style="text-align: center;">
1220
-                  {{ data.day.split('-').slice(2).join('-') }} {{ data.isSelected ? '✔️' : ''}}<br/>
1221
-                  <span v-if="data.day.split('-').slice(1).join('-')=='03-06'">上午 门诊</span>
1222
-                </p>
1223
-
1210
+          <div @click="viewDayWork">
1211
+            <el-calendar v-model="time_value">  
1212
+              
1213
+                <template
1214
+                  slot="dateCell"
1215
+                  slot-scope="{date, data}">
1216
+                    <p :class="data.isSelected ? 'is-selected' : ''" style="text-align: center;">
1217
+                      {{ data.day.split('-').slice(2).join('-') }}<br/>
1218
+                      <span v-for="(item,index) in orderList" :key="index" style="background: red;color: white;text-align: center;">
1219
+                        <span v-if="data.day == item.order_date">
1220
+                          {{ getModeId(item.mode_id) }}
1221
+                          <span v-if="item.schedual_type_name ==1">上午</span>
1222
+                          <span v-if="item.schedual_type_name ==2">下午</span>
1223
+                          <span v-if="item.schedual_type_name ==3">晚上</span>
1224
+                        </span>
1225
+                      </span>
1226
+                    </p>
1224 1227
               </template>
1228
+            
1225 1229
             </el-calendar>
1226 1230
           </div>
1227 1231
         </div>
@@ -1261,6 +1265,7 @@ import BreadCrumb from '@/xt_pages/components/bread-crumb'
1261 1265
 import print from 'print-js'
1262 1266
 import { uParseTime } from '@/utils/tools'
1263 1267
 import Calendar from 'vue-calendar-component'
1268
+import data from '../../../store/modules/data'
1264 1269
 export default {
1265 1270
   name: 'index',
1266 1271
   components: {
@@ -1409,9 +1414,9 @@ export default {
1409 1414
       historyclick:false,
1410 1415
       time_value:new Date(),
1411 1416
       
1412
-      startTime:'',
1413
-      endTime:'',
1414
-      
1417
+      start_time:moment().startOf('months').format('YYYY-MM-DD'),
1418
+      end_time:moment().endOf('months').format('YYYY-MM-DD'),
1419
+      orderList:[]
1415 1420
     }
1416 1421
   },
1417 1422
   created() {
@@ -2098,7 +2103,7 @@ export default {
2098 2103
       }
2099 2104
     },
2100 2105
     requestDialysisSchedules: function() {
2101
-      console.log("时间人民站起来了呃")
2106
+     
2102 2107
       var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
2103 2108
       getDialysisSchedules(ymd).then(rs => {
2104 2109
         var resp = rs.data
@@ -2922,29 +2927,89 @@ export default {
2922 2927
     },
2923 2928
     // 透析历史
2924 2929
     history_click(){
2925
-      this.historyclick =true
2930
+      this.getPatientDialysisRecordList()
2926 2931
       // this.getmonth(this.time_value2)
2927 2932
       // console.log('time_value',moment(this.time_value2).format('YYYY-MM-DD'));
2928 2933
     },
2934
+    getPatientDialysisRecordList(){
2935
+      var params= {
2936
+        patient_id:this.$route.query.patient_id,
2937
+        start_time:this.start_time,
2938
+        end_time:this.end_time,
2939
+      }
2940
+      getPatientDialysisRecordList(params).then(response=>{
2941
+         if(response.data.state == 1){
2942
+           var list  = response.data.data.list
2943
+           this.historyclick =true
2944
+           if(list!=null && list.length>0){
2945
+             for(let i=0;i<list.length;i++){
2946
+              
2947
+               list[i].order_date =""
2948
+               if(this.org_id ==9538 || this.org_id ==10101||this.org_id ==10353){
2949
+                  list[i].order_date = this.getOrderTime(list[i].dialysis_date) 
2950
+                  list[i].schedual_type_name= list[i].schedual_type
2951
+               }else{
2952
+                 list[i].order_date = this.getOrderTime(list[i].schedule_date) 
2953
+                 list[i].schedual_type_name= list[i].schedule_type
2954
+               }
2955
+              
2956
+             }
2957
+           }
2958
+           console.log("list------",list)
2959
+           this.orderList = []
2960
+           this.orderList = list
2961
+         }
2962
+      })
2963
+    },
2929 2964
     // 获取每个月的第一天和最后一天
2930 2965
     getmonth(val){
2931
-      const months= new Date(val).getMonth()
2932
-      let startTime =  moment().month(months).startOf('month').format('YYYY-MM-DD')
2966
+      // const months= new Date(val).getMonth()
2967
+      // let startTime =  moment().month(months).startOf('month').format('YYYY-MM-DD')
2933 2968
       
2934
-      //   //某月最后一天
2935
-      let endTime = moment().month(months).endOf('month').format('YYYY-MM-DD')
2936
-      this.startTime = startTime
2937
-      this.endTime = endTime
2938
-      console.log('time_value333333',this.startTime,this.endTime);
2969
+      // //   //某月最后一天
2970
+      // let endTime = moment().month(months).endOf('month').format('YYYY-MM-DD')
2971
+      // this.startTime = startTime
2972
+      // this.endTime = endTime
2973
+      // console.log('time_value333333',this.startTime,this.endTime);
2974
+    },
2975
+    getOrderTime(val){
2976
+      if (val < 0) {
2977
+        return "";
2978
+      }
2979
+      if (val == "") {
2980
+        return "";
2981
+      } else {
2982
+        return uParseTime(val, "{y}-{m}-{d}");
2983
+      }
2984
+    },
2985
+    viewDayWork(val){
2986
+      console.log("val33333333333333",val)
2987
+      var patient_id = this.$route.query.patient_id
2988
+      var start_time = this.timestamp(this.start_time)
2989
+      this.$router.push({
2990
+        path: "/dialysis/details",
2991
+        query: { patient_id:patient_id , date: start_time}
2992
+      });
2993
+      this.history_click = false
2994
+    },
2995
+    timestamp(start_time) {
2996
+      // 使用 Date 对象和它的 getTime 方法将日期字符串转换为时间戳
2997
+      return new Date(start_time).getTime()/1000 - 28800;
2939 2998
     }
2999
+  
2940 3000
   },
2941 3001
   watch:{
2942 3002
     time_value:{
2943 3003
       handler(newValue,oldValue){
3004
+        console.log("newValue----------",newValue)
2944 3005
         // this.initData()
2945 3006
         this.time_value = newValue
2946 3007
         this.getmonth(this.time_value)
2947 3008
         console.log('yyyyyyyyyyy',moment(this.time_value).format('YYYY-MM-DD'),moment(oldValue).format('YYYY-MM-DD'))
3009
+
3010
+        this.start_time = moment(this.time_value).format('YYYY-MM-DD')
3011
+        this.end_time =   moment(oldValue).format('YYYY-MM-DD')
3012
+
2948 3013
       }
2949 3014
     }
2950 3015
   }

+ 1 - 0
src/xt_pages/dialysis/longSignPrint.vue View File

@@ -37,6 +37,7 @@
37 37
                             <div v-if="org_id!=10278">给药途径:{{it.delivery_way}}</div>  
38 38
                             <div v-if="org_id == 0 || org_id==10223">
39 39
                                 <span>配药者:</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
40
+                                <span>执行者:</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
40 41
                                 <span>核对者:</span>
41 42
                            </div> 
42 43
                              

+ 1 - 0
src/xt_pages/dialysis/signPrint.vue View File

@@ -36,6 +36,7 @@
36 36
                             <div v-if="org_id!=10278">给药途径:{{it.delivery_way}}</div>  
37 37
                             <div v-if="org_id == 0 || org_id==10223">
38 38
                                 <span>配药者:</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
39
+                                <span>执行者:</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
39 40
                                 <span>核对者:</span>
40 41
                            </div> 
41 42
                              

+ 13 - 0
src/xt_pages/outpatientDoctorStation/batch_replacement.vue View File

@@ -519,6 +519,7 @@ export default {
519 519
     this.getdrugconfigs();
520 520
     let tableHeight = document.body.clientHeight - 263;
521 521
     this.tableHeight = tableHeight;
522
+    this.getusernames();
522 523
   },
523 524
   mounted() {
524 525
     const that = this;
@@ -544,6 +545,16 @@ export default {
544 545
     },
545 546
   },
546 547
   methods: {
548
+    getusernames(){
549
+      var params = {}
550
+      gethisusertoalive(params).then((res) =>{
551
+        console.log("this.res",res)
552
+        if (res.data.state == 1){
553
+          this.tableData = res.data.data.list;
554
+          console.log("this.tableData", this.tableData);
555
+        }
556
+      });
557
+    },
547 558
     save() {
548 559
       var tmp = this.modeOptions[this.modeOptions_value].name;
549 560
       var tmp2 = "";
@@ -740,6 +751,7 @@ export default {
740 751
       console.log(">>>>>>>", this.new_type);
741 752
       this.id = "";
742 753
       this.tableData = [];
754
+      this.getusernames()
743 755
     },
744 756
     changeid(item, index) {
745 757
       console.log("");
@@ -831,6 +843,7 @@ export default {
831 843
       replacepeoplename(params).then((res) => {
832 844
         if (res.data.state == 1) {
833 845
           this.tableData = res.data.data.list;
846
+          
834 847
         }
835 848
       });
836 849
     },