瀏覽代碼

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 年之前
父節點
當前提交
68a9ad296f

+ 5 - 0
package-lock.json 查看文件

@@ -14394,6 +14394,11 @@
14394 14394
       "resolved": "https://registry.npmjs.org/vue/-/vue-2.5.16.tgz",
14395 14395
       "integrity": "sha512-/ffmsiVuPC8PsWcFkZngdpas19ABm5mh2wA7iDqcltyCTwlgZjHGeJYOXkBMo422iPwIcviOtrTCUpSfXmToLQ=="
14396 14396
     },
14397
+    "vue-calendar-component": {
14398
+      "version": "2.8.2",
14399
+      "resolved": "https://registry.npmjs.org/vue-calendar-component/-/vue-calendar-component-2.8.2.tgz",
14400
+      "integrity": "sha512-BJh7xOBzM7QVcapcN4EbPQ1eZ8Pii1/oy+dzqjZTilRSIDD7SRPdFpnUJwZvs8lCrhtBAyJbYFsdm2SogXWHVQ=="
14401
+    },
14397 14402
     "vue-clipboard": {
14398 14403
       "version": "0.0.1",
14399 14404
       "resolved": "https://registry.npmjs.org/vue-clipboard/-/vue-clipboard-0.0.1.tgz",

+ 1 - 0
package.json 查看文件

@@ -73,6 +73,7 @@
73 73
     "sortablejs": "1.7.0",
74 74
     "v-fit-columns": "^0.2.0",
75 75
     "vue": "2.5.16",
76
+    "vue-calendar-component": "^2.8.2",
76 77
     "vue-clipboard": "0.0.1",
77 78
     "vue-clipboard2": "^0.3.1",
78 79
     "vue-count-to": "1.0.13",

+ 3 - 1
src/xt_pages/dialysis/details/consumable/dialysisGood.vue 查看文件

@@ -98,7 +98,9 @@
98 98
           :label="item.filed_name_cn"
99 99
         >
100 100
           <template slot-scope="scope">
101
-             {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_solution)}}
101
+            <!-- <span v-if="scope.row.dialysis_prescription==null"> {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_solution)}}</span>
102
+            <span v-if="scope.row.dialysis_prescription!=null"> {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_prescription)}}</span> -->
103
+            {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_solution)}}
102 104
           </template>
103 105
 
104 106
         </el-table-column>

+ 2 - 0
src/xt_pages/dialysis/details/consumable/dialysisGoodPrint.vue 查看文件

@@ -42,6 +42,8 @@
42 42
                 <td>{{item.patient.dialysis_no}}</td>
43 43
                 <td v-for="(it,index) in rowList" :key="index">
44 44
                   {{getName(item.rowList[index].filed_name_cn,item.dialysis_solution)}}
45
+                  <!-- <span v-if="item.dialysis_prescription==null"> {{getName(item.rowList[index].filed_name_cn,item.dialysis_solution)}}</span>
46
+                  <span v-if="item.dialysis_prescription!=null"> {{getName(item.rowList[index].filed_name_cn,item.dialysis_prescription)}}</span> -->
45 47
                 </td>
46 48
                </tr>
47 49
               </tbody>

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue 查看文件

@@ -372,7 +372,7 @@
372 372
           </el-form-item>
373 373
         </el-col>
374 374
 
375
-        <el-col :span="8" v-if="isShow('透析中入量') && (org_id==10485 || org_id ==10460)">
375
+        <el-col :span="8" v-if="isShow('透析中入量') && (org_id==10485 || org_id ==10460 || org_id ==10551)">
376 376
           <el-form-item label="透析中入量: " :prop="isName('透析中入量')" :rules="isCheckmust('透析中入量')">
377 377
             <el-input v-model="form.dialysis_intakes"></el-input>
378 378
           </el-form-item>

+ 91 - 27
src/xt_pages/dialysis/details/index.vue 查看文件

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

+ 3 - 3
src/xt_pages/dialysis/doctorAdviceStaticPrint.vue 查看文件

@@ -201,9 +201,9 @@
201 201
                if(newHisArr!=null && newHisArr.length > 0){
202 202
                   let dataInfoOne = {}
203 203
                   newHisArr.forEach((item, index) => {
204
-                  let { advice_name } = item
205
-                  if (!dataInfoOne[advice_name]) {
206
-                    dataInfoOne[advice_name] = {
204
+                  let { drug_id } = item
205
+                  if (!dataInfoOne[drug_id]) {
206
+                    dataInfoOne[drug_id] = {
207 207
                       advice_name:item.advice_name,
208 208
                       child: [],
209 209
                       count:0,

+ 2 - 3
src/xt_pages/dialysis/longSignPrint.vue 查看文件

@@ -32,11 +32,10 @@
32 32
                             规格:{{it.advice_desc}} {{ it.drug_spec_unit }}
33 33
                             
34 34
                             </div>  
35
-                            <div v-if="(org_id ==0 || org_id==10440 || org_id == 10478 || org_id ==10223 || org_id ==10617) && org_id!=10278">单次用量:{{it.single_dose}}{{it.single_dose_unit }}</div>  
35
+                            <div v-if="(org_id ==0 || org_id==10440 || org_id == 10478 || org_id ==10223 || org_id ==10617 || org_id ==10598) && org_id!=10278">单次用量:{{it.single_dose}}{{it.single_dose_unit }}</div>  
36 36
                             <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138 && org_id!=10223">执行频率:{{it.execution_frequency}}</div>  
37 37
                             <div v-if="org_id!=10278">给药途径:{{it.delivery_way}}</div>  
38 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;
40 39
                                 <span>执行者:</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
41 40
                                 <span>核对者:</span>
42 41
                            </div> 
@@ -54,7 +53,7 @@
54 53
                             规格:{{getSpecialName(its.drug_id)}} 
55 54
                             
56 55
                             </div>  
57
-                            <div v-if=" org_id ==0 || org_id==10440 || org_id == 10478 || org_id ==10223  || org_id ==10617">单次用量:{{its.single_dose}}{{its.single_dose_unit }}</div>  
56
+                            <div v-if=" org_id ==0 || org_id==10440 || org_id == 10478 || org_id ==10223  || org_id ==10617|| org_id ==10598">单次用量:{{its.single_dose}}{{its.single_dose_unit }}</div>  
58 57
                             <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{its.execution_frequency}}</div>  
59 58
                             <div>给药途径:{{its.delivery_way}}</div>  
60 59
                             <div v-if="org_id == 0 || org_id==10223">

+ 7 - 6
src/xt_pages/dialysis/newDoctorAdvice.vue 查看文件

@@ -183,9 +183,9 @@
183 183
       </div> -->
184 184
 
185 185
       <div style="margin-top: 10px;margin-bottom:10px">
186
-        <el-button type="primary" size="small" @click="toStatic" v-if="org_id!=9671  && org_id!=10340 && org_id!=0 ">统计</el-button>
186
+        <el-button type="primary" size="small" @click="toStatic" v-if="org_id!=9671  && org_id!=10340">统计</el-button>
187 187
 
188
-        <el-button type="primary" size="small" @click="toStaticOne" v-if="org_id == 9671 || org_id==10340 || org_id == 0">统计</el-button>
188
+        <el-button type="primary" size="small" @click="toStaticOne" v-if="org_id == 9671 || org_id==10340">统计</el-button>
189 189
       </div>
190 190
 
191 191
 
@@ -1492,11 +1492,12 @@ export default {
1492 1492
               ' 单次用量 ' + '  ' + row.single_dose + '' + row.single_dose_unit
1493 1493
           } else {
1494 1494
             tempSingleDoseDesc = row.single_dose ? row.single_dose : '' + '' + row.single_dose_unit ? row.single_dose_unit : ''
1495
+            
1495 1496
           }
1496 1497
         }
1497 1498
 
1498 1499
         if (row.advice_desc) {
1499
-          tempDrugSpecDesc = '(' + row.advice_desc + row.drug_spec_unit + ')'
1500
+          tempDrugSpecDesc = '(' + row.advice_desc + row.drug_spec_unit + ')' 
1500 1501
         }
1501 1502
 
1502 1503
         if (isChild == 1) {
@@ -1862,9 +1863,9 @@ export default {
1862 1863
                if(newHisArr!=null && newHisArr.length > 0){
1863 1864
                   let dataInfoOne = {}
1864 1865
                   newHisArr.forEach((item, index) => {
1865
-                  let { advice_name } = item
1866
-                  if (!dataInfoOne[advice_name]) {
1867
-                    dataInfoOne[advice_name] = {
1866
+                  let { drug_id } = item
1867
+                  if (!dataInfoOne[drug_id]) {
1868
+                    dataInfoOne[drug_id] = {
1868 1869
                       advice_name:item.advice_name,
1869 1870
                       child: [],
1870 1871
                       count:0,

+ 3 - 3
src/xt_pages/dialysis/signPrint.vue 查看文件

@@ -31,7 +31,7 @@
31 31
                             <div v-if="org_id ==0 || org_id ==10223">
32 32
                                 规格:{{it.advice_desc }} {{ it.drug_spec_unit }}
33 33
                             </div> 
34
-                            <div v-if="(org_id ==0 || org_id==10440 || org_id == 10478 || org_id ==10571 || org_id ==10223 || org_id ==10617) && org_id!=10278">单次用量:{{it.single_dose}}{{it.single_dose_unit }}</div>  
34
+                            <div v-if="(org_id ==0 || org_id==10440 || org_id == 10478 || org_id ==10571 || org_id ==10223 || org_id ==10617 || org_id ==10598) && org_id!=10278">单次用量:{{it.single_dose}}{{it.single_dose_unit }}</div>  
35 35
                             <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138 && org_id!=10223">执行频率:{{it.execution_frequency}}</div>  
36 36
                             <div v-if="org_id!=10278">给药途径:{{it.delivery_way}}</div>  
37 37
                             <div v-if="org_id == 0 || org_id==10223">
@@ -53,11 +53,11 @@
53 53
                             规格:{{getSpecialName(its.drug_id)}} 
54 54
                             
55 55
                             </div>  
56
-                            <div v-if=" org_id ==0 || org_id==10440 || org_id == 10478 || org_id ==10571 || org_id ==10223 || org_id ==10617">单次用量:{{its.single_dose}}{{its.single_dose_unit }}</div>  
56
+                            <div v-if=" org_id ==0 || org_id==10440 || org_id == 10478 || org_id ==10571 || org_id ==10223 || org_id ==10617 || org_id ==10598">单次用量:{{its.single_dose}}{{its.single_dose_unit }}</div>  
57 57
                             <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138 && org_id!=10223">执行频率:{{its.execution_frequency}}</div>  
58 58
                             <div>给药途径:{{its.delivery_way}}</div>  
59 59
                             <div v-if="org_id == 0 || org_id==10223">
60
-                                <span>配药者:</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
60
+                                <span>执行者:</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
61 61
                                 <span>核对者:</span>
62 62
                            </div> 
63 63
                         </div>

+ 7 - 7
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue 查看文件

@@ -2824,7 +2824,12 @@
2824 2824
                       style="flex: 1"
2825 2825
                       v-if="org_id != 10223 && org_id!=10375 && org_id!=10598"
2826 2826
                     >
2827
-
2827
+                      <span v-if="org_id!=10460">
2828
+                          透析中入量(L):
2829
+                       </span>
2830
+                      <span v-if="org_id==10460">
2831
+                        透析中入量(ml):
2832
+                      </span>
2828 2833
                       <div
2829 2834
                         class="under_line"
2830 2835
                         style="width: 70px; text-align: center"
@@ -2835,12 +2840,7 @@
2835 2840
                             : "/"
2836 2841
                         }}
2837 2842
                       </div>
2838
-                      <span v-if="org_id!=10460">
2839
-                          透析中入量(L):
2840
-                        </span>
2841
-                        <span v-if="org_id==10460">
2842
-                          透析中入量(ml):
2843
-                        </span>
2843
+                      
2844 2844
                       {{ getUnit(afterdialysis.dialysis_intakes_unit) }}
2845 2845
                     </div>
2846 2846
 

+ 2 - 2
src/xt_pages/role/admin.vue 查看文件

@@ -25,12 +25,12 @@
25 25
         >医药师登记</el-button>
26 26
 
27 27
 
28
-        <el-button
28
+        <!-- <el-button
29 29
           type="primary"
30 30
           size="small"
31 31
           icon="el-icon-circle-plus-outline"
32 32
           style="float:left"
33
-          @click="toJiaBan">首拼</el-button> 
33
+          @click="toJiaBan">首拼</el-button>  -->
34 34
 
35 35
           
36 36