28169 před 1 rokem
rodič
revize
04e3ed7b75

+ 1 - 0
src/xt_pages/Pharmacy/PatientDispensing.vue Zobrazit soubor

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

+ 2 - 2
src/xt_pages/dialysis/details/consumable/dialysisParameter.vue Zobrazit soubor

267
            </template>
267
            </template>
268
         </el-table-column>
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
            <template slot-scope="scope">
271
            <template slot-scope="scope">
272
              <span v-if="getBloodAccessOption(scope.row.dialysis_solution.blood_access).indexOf('导管')!==-1">1</span>
272
              <span v-if="getBloodAccessOption(scope.row.dialysis_solution.blood_access).indexOf('导管')!==-1">1</span>
273
            </template>
273
            </template>
274
         </el-table-column>
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
            <template slot-scope="scope">
277
            <template slot-scope="scope">
278
               {{ scope.row.advice_spc }}
278
               {{ scope.row.advice_spc }}
279
            </template>
279
            </template>

+ 5 - 5
src/xt_pages/dialysis/details/consumable/dialysisParameterPrint.vue Zobrazit soubor

49
                 <td width="100" v-if="dialysisSett.calcium==1">钙</td>
49
                 <td width="100" v-if="dialysisSett.calcium==1">钙</td>
50
                 <td width="100" v-if="dialysisSett.bicarbonate == 1">碳酸氢盐</td>
50
                 <td width="100" v-if="dialysisSett.bicarbonate == 1">碳酸氢盐</td>
51
                 <td width="100" v-if="dialysisSett.blood_access==1">血管通路</td>
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
                 <td width="100"  v-if="dialysisSett.glucose==1">葡萄糖</td>
53
                 <td width="100"  v-if="dialysisSett.glucose==1">葡萄糖</td>
54
                 <td width="100"  v-if="dialysisSett.blood_flow_volume==1">血流量</td>
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
               </tr>
57
               </tr>
58
               </thead>
58
               </thead>
59
               <tbody>
59
               <tbody>
175
                    <span>{{item.dialysis_solution.blood_flow_volume?item.dialysis_solution.blood_flow_volume:""}}</span> 
175
                    <span>{{item.dialysis_solution.blood_flow_volume?item.dialysis_solution.blood_flow_volume:""}}</span> 
176
                 </td>
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
                   <span v-if="getBloodAccessOption(item.dialysis_solution.blood_access).indexOf('导管')!==-1">1</span>
179
                   <span v-if="getBloodAccessOption(item.dialysis_solution.blood_access).indexOf('导管')!==-1">1</span>
180
                   <span v-else></span>
180
                   <span v-else></span>
181
                 </td>
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
                   {{ item.advice_spc }}
185
                   {{ item.advice_spc }}
186
                 </td>
186
                 </td>
187
                </tr>
187
                </tr>

+ 95 - 30
src/xt_pages/dialysis/details/index.vue Zobrazit soubor

19
           >下一位</el-button
19
           >下一位</el-button
20
         >   
20
         >   
21
 
21
 
22
-        <!-- <el-button
22
+        <el-button
23
           size="small"
23
           size="small"
24
           type="primary"
24
           type="primary"
25
           @click="history_click"
25
           @click="history_click"
26
           
26
           
27
-          >透析历史</el-button> -->
27
+          >透析历史</el-button>
28
 
28
 
29
         <el-button
29
         <el-button
30
           size="small"
30
           size="small"
1199
       width="50%"
1199
       width="50%"
1200
       >
1200
       >
1201
       <div>
1201
       <div>
1202
-        <div >
1202
+        <!-- <div >
1203
           透析频率:
1203
           透析频率:
1204
           <div class="touxipl"></div>
1204
           <div class="touxipl"></div>
1205
-        </div>
1205
+        </div> -->
1206
         <div style="margin: 20px 0;">
1206
         <div style="margin: 20px 0;">
1207
           <div style="border-left: 2px solid #409eff;color: #409eff;padding: 0 10px;">
1207
           <div style="border-left: 2px solid #409eff;color: #409eff;padding: 0 10px;">
1208
             <span>已排详情</span>
1208
             <span>已排详情</span>
1209
           </div>
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
               </template>
1227
               </template>
1228
+            
1225
             </el-calendar>
1229
             </el-calendar>
1226
           </div>
1230
           </div>
1227
         </div>
1231
         </div>
1261
 import print from 'print-js'
1265
 import print from 'print-js'
1262
 import { uParseTime } from '@/utils/tools'
1266
 import { uParseTime } from '@/utils/tools'
1263
 import Calendar from 'vue-calendar-component'
1267
 import Calendar from 'vue-calendar-component'
1268
+import data from '../../../store/modules/data'
1264
 export default {
1269
 export default {
1265
   name: 'index',
1270
   name: 'index',
1266
   components: {
1271
   components: {
1409
       historyclick:false,
1414
       historyclick:false,
1410
       time_value:new Date(),
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
   created() {
1422
   created() {
2098
       }
2103
       }
2099
     },
2104
     },
2100
     requestDialysisSchedules: function() {
2105
     requestDialysisSchedules: function() {
2101
-      console.log("时间人民站起来了呃")
2106
+     
2102
       var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
2107
       var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
2103
       getDialysisSchedules(ymd).then(rs => {
2108
       getDialysisSchedules(ymd).then(rs => {
2104
         var resp = rs.data
2109
         var resp = rs.data
2922
     },
2927
     },
2923
     // 透析历史
2928
     // 透析历史
2924
     history_click(){
2929
     history_click(){
2925
-      this.historyclick =true
2930
+      this.getPatientDialysisRecordList()
2926
       // this.getmonth(this.time_value2)
2931
       // this.getmonth(this.time_value2)
2927
       // console.log('time_value',moment(this.time_value2).format('YYYY-MM-DD'));
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
     getmonth(val){
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
   watch:{
3001
   watch:{
2942
     time_value:{
3002
     time_value:{
2943
       handler(newValue,oldValue){
3003
       handler(newValue,oldValue){
3004
+        console.log("newValue----------",newValue)
2944
         // this.initData()
3005
         // this.initData()
2945
         this.time_value = newValue
3006
         this.time_value = newValue
2946
         this.getmonth(this.time_value)
3007
         this.getmonth(this.time_value)
2947
         console.log('yyyyyyyyyyy',moment(this.time_value).format('YYYY-MM-DD'),moment(oldValue).format('YYYY-MM-DD'))
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 Zobrazit soubor

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

+ 1 - 0
src/xt_pages/dialysis/signPrint.vue Zobrazit soubor

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

+ 13 - 0
src/xt_pages/outpatientDoctorStation/batch_replacement.vue Zobrazit soubor

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