Bladeren bron

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

陈少旭 1 jaar geleden
bovenliggende
commit
f0781267d1

+ 5 - 0
package-lock.json Bestand weergeven

@@ -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 Bestand weergeven

@@ -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",

+ 2 - 2
src/xt_pages/Pharmacy/PatientDispensing.vue Bestand weergeven

@@ -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) {
@@ -704,8 +705,7 @@ export default {
704 705
         confirmButtonText: "确 定",
705 706
         cancelButtonText: "取 消",
706 707
         type: "warning",
707
-      })
708
-        .then(() => {
708
+      }).then(() => {
709 709
           drugwithdrawal(params).then((res) => {
710 710
             if (res.data.state == 1) {
711 711
               this.$message.success("操作成功");

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Bestand weergeven

@@ -954,7 +954,7 @@
954 954
                       </div>
955 955
 
956 956
                       <div class="inline_block" style="flex: 1"
957
-                        v-if="(org_id==10440 ||  org_id ==0 || org_id==10469 || org_id==10490 || org_id==10478  || org_id==10495 || org_id == 10460 || org_id ==10624)&& org_id!=10510">
957
+                        v-if="(org_id==10440 ||  org_id ==0 || org_id==10469 || org_id==10490 || org_id==10478  || org_id==10495 || org_id == 10460 || org_id ==10624 || org_i==10624)&& org_id!=10510">
958 958
                         上次透后体重:
959 959
                         <div
960 960
                           class="under_line"

+ 3 - 1
src/xt_pages/dialysis/details/consumable/dialysisGood.vue Bestand weergeven

@@ -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>

+ 3 - 1
src/xt_pages/dialysis/details/consumable/dialysisGoodPrint.vue Bestand weergeven

@@ -41,7 +41,9 @@
41 41
                  <td>{{item.patient.name}}</td>
42 42
                 <td>{{item.patient.dialysis_no}}</td>
43 43
                 <td v-for="(it,index) in rowList" :key="index">
44
-                  {{getName(item.rowList[index].filed_name_cn,item.dialysis_solution)}}
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>

+ 2 - 2
src/xt_pages/dialysis/details/consumable/dialysisParameter.vue Bestand weergeven

@@ -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 Bestand weergeven

@@ -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>

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Bestand weergeven

@@ -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>

+ 6 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Bestand weergeven

@@ -2847,10 +2847,15 @@ mu
2847 2847
               this.dialysisPrescription.dialysate_temperature = 36.5
2848 2848
               this.dialysisPrescription.prescribing_number = 1
2849 2849
             }
2850
-            if(this.$store.getters.xt_user.org.id == 10447 || this.$store.getters.xt_user.org.id == 10600){
2850
+            if(this.$store.getters.xt_user.org.id == 10447 || this.$store.getters.xt_user.org.id == 10600 ){
2851 2851
               this.dialysisPrescription.dialysate_flow = 500
2852 2852
             }
2853 2853
 
2854
+            if(this.$store.getters.xt_user.org.id == 10375){
2855
+              this.dialysisPrescription.dialysate_flow = 500
2856
+              this.dialysisPrescription.bicarbonate = 32
2857
+            }
2858
+
2854 2859
             if(this.$store.getters.xt_user.org.id == 10598 || this.$store.getters.xt_user.org.id == 10612){
2855 2860
                if(this.dialysisPrescription.dialysis_duration_minute == ""){
2856 2861
                  this.dialysisPrescription.dialysis_duration_minute =0

+ 115 - 40
src/xt_pages/dialysis/details/index.vue Bestand weergeven

@@ -17,14 +17,14 @@
17 17
           type="primary"
18 18
           @click="next"
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
-          
27
-          >透析历史</el-button> -->
26
+
27
+          >透析历史</el-button>
28 28
 
29 29
         <el-button
30 30
           size="small"
@@ -43,7 +43,6 @@
43 43
 
44 44
       </div>
45 45
     </div>
46
-
47 46
     <div
48 47
       class="loadingBox"
49 48
       v-loading="loading"
@@ -1191,7 +1190,6 @@
1191 1190
 
1192 1191
     </div>
1193 1192
     </div>
1194
-
1195 1193
     <!-- 透析历史 -->
1196 1194
     <el-dialog class="history"
1197 1195
       :title="'患者信息(姓名:'+patient.name+'、透析号:'+patient.dialysis_no +')' "
@@ -1199,7 +1197,7 @@
1199 1197
       width="50%"
1200 1198
       >
1201 1199
       <div>
1202
-        <div >
1200
+         <div >
1203 1201
           透析频率:
1204 1202
           <div class="touxipl"></div>
1205 1203
         </div>
@@ -1207,20 +1205,22 @@
1207 1205
           <div style="border-left: 2px solid #409eff;color: #409eff;padding: 0 10px;">
1208 1206
             <span>已排详情</span>
1209 1207
           </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
-
1208
+          <div @click="viewDayWork">
1209
+            <el-calendar v-model="time_value">
1210
+                <template
1211
+                  slot="dateCell"
1212
+                  slot-scope="{date, data}" >
1213
+                    <p :class="data.isSelected ? 'is-selected' : ''" style="text-align: center;" >
1214
+                      {{ data.day.split('-').slice(2).join('-') }}<br/>
1215
+                      <span v-for="(item,index) in orderList" :key="index" style="background: red;color: white;text-align: center;">
1216
+                        <span v-if="data.day == item.order_date">
1217
+                          {{ getModeId(item.mode_id) }}
1218
+                          <span v-if="item.schedual_type_name ==1">上午</span>
1219
+                          <span v-if="item.schedual_type_name ==2">下午</span>
1220
+                          <span v-if="item.schedual_type_name ==3">晚上</span>
1221
+                        </span>
1222
+                      </span>
1223
+                    </p>
1224 1224
               </template>
1225 1225
             </el-calendar>
1226 1226
           </div>
@@ -1261,6 +1261,7 @@ import BreadCrumb from '@/xt_pages/components/bread-crumb'
1261 1261
 import print from 'print-js'
1262 1262
 import { uParseTime } from '@/utils/tools'
1263 1263
 import Calendar from 'vue-calendar-component'
1264
+import data from '../../../store/modules/data'
1264 1265
 export default {
1265 1266
   name: 'index',
1266 1267
   components: {
@@ -1408,14 +1409,14 @@ export default {
1408 1409
       norefresh:true,
1409 1410
       historyclick:false,
1410 1411
       time_value:new Date(),
1411
-      
1412
-      startTime:'',
1413
-      endTime:'',
1414
-      
1412
+
1413
+      start_time:moment().startOf('months').format('YYYY-MM-DD'),
1414
+      end_time:moment().endOf('months').format('YYYY-MM-DD'),
1415
+      orderList:[]
1415 1416
     }
1416 1417
   },
1417 1418
   created() {
1418
-    
1419
+
1419 1420
    this.blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
1420 1421
    this.org_id = this.$store.getters.xt_user.org.id,
1421 1422
    this.printDate = moment().format("YYYY-MM-DD HH:mm:ss")
@@ -1620,7 +1621,7 @@ export default {
1620 1621
     // this.getmonth(this.time_value)
1621 1622
     // this.handlePick(this.time_value)
1622 1623
   },
1623
- 
1624
+
1624 1625
   beforeDestroy(){
1625 1626
 
1626 1627
     let unObj = {
@@ -2098,7 +2099,7 @@ export default {
2098 2099
       }
2099 2100
     },
2100 2101
     requestDialysisSchedules: function() {
2101
-      console.log("时间人民站起来了呃")
2102
+
2102 2103
       var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
2103 2104
       getDialysisSchedules(ymd).then(rs => {
2104 2105
         var resp = rs.data
@@ -2922,29 +2923,103 @@ export default {
2922 2923
     },
2923 2924
     // 透析历史
2924 2925
     history_click(){
2925
-      this.historyclick =true
2926
+      this.getPatientDialysisRecordList()
2926 2927
       // this.getmonth(this.time_value2)
2927 2928
       // console.log('time_value',moment(this.time_value2).format('YYYY-MM-DD'));
2928 2929
     },
2930
+    getPatientDialysisRecordList(){
2931
+      var params= {
2932
+        patient_id:this.$route.query.patient_id,
2933
+        start_time:this.start_time,
2934
+        end_time:this.end_time,
2935
+      }
2936
+      getPatientDialysisRecordList(params).then(response=>{
2937
+         if(response.data.state == 1){
2938
+           var list  = response.data.data.list
2939
+           this.historyclick =true
2940
+           if(list!=null && list.length>0){
2941
+             for(let i=0;i<list.length;i++){
2942
+
2943
+               list[i].order_date =""
2944
+               if(this.org_id ==9538 || this.org_id ==10101||this.org_id ==10353){
2945
+                  list[i].order_date = this.getOrderTime(list[i].dialysis_date)
2946
+                  list[i].schedual_type_name= list[i].schedual_type
2947
+               }else{
2948
+                 list[i].order_date = this.getOrderTime(list[i].schedule_date)
2949
+                 list[i].schedual_type_name= list[i].schedule_type
2950
+               }
2951
+
2952
+             }
2953
+           }
2954
+           console.log("list------",list)
2955
+           this.orderList = []
2956
+           this.orderList = list
2957
+         }
2958
+      })
2959
+    },
2929 2960
     // 获取每个月的第一天和最后一天
2930 2961
     getmonth(val){
2931
-      const months= new Date(val).getMonth()
2932
-      let startTime =  moment().month(months).startOf('month').format('YYYY-MM-DD')
2933
-      
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);
2962
+      // const months= new Date(val).getMonth()
2963
+      // let startTime =  moment().month(months).startOf('month').format('YYYY-MM-DD')
2964
+      // //   //某月最后一天
2965
+      // let endTime = moment().month(months).endOf('month').format('YYYY-MM-DD')
2966
+      // this.startTime = startTime
2967
+      // this.endTime = endTime
2968
+      // console.log('time_value333333',this.startTime,this.endTime);
2969
+    },
2970
+    getOrderTime(val){
2971
+      // console.log('77778888',val,this.dialysis_date=uParseTime(val, "{y}-{m}-{d}"));
2972
+      if (val < 0) {
2973
+        return "";
2974
+      }
2975
+      if (val == "") {
2976
+        return "";
2977
+      } else {
2978
+        return uParseTime(val, "{y}-{m}-{d}");
2979
+      }
2980
+    },
2981
+    viewDayWork(val){
2982
+      const len = (val.target.innerText).split(' ')
2983
+      console.log("val33333333333333444",len)
2984
+      if(val.target.innerText == '下个月'){
2985
+        this.time_value()
2986
+      }else if(val.target.innerText == '上个月'){
2987
+        this.time_value()
2988
+      }else if(val.target.innerText =='今天'){
2989
+        this.time_value()
2990
+      }else{
2991
+        // console.log('4444',this.orderList);
2992
+        if(len.length>1){
2993
+          var patient_id = this.$route.query.patient_id
2994
+          var start_time = this.timestamp(this.start_time)
2995
+          this.$router.push({
2996
+            path: "/dialysis/details",
2997
+            query: { patient_id:patient_id , date: start_time}
2998
+          });
2999
+          this.history_click = false
3000
+        }else{
3001
+          this.time_value()
3002
+        }
3003
+        
3004
+      }
3005
+    },
3006
+    timestamp(start_time) {
3007
+      // 使用 Date 对象和它的 getTime 方法将日期字符串转换为时间戳
3008
+      return new Date(start_time).getTime()/1000 - 28800;
2939 3009
     }
3010
+
2940 3011
   },
2941 3012
   watch:{
2942 3013
     time_value:{
2943 3014
       handler(newValue,oldValue){
3015
+        console.log("newValue----------",newValue)
2944 3016
         // this.initData()
2945 3017
         this.time_value = newValue
2946
-        this.getmonth(this.time_value)
3018
+        // this.getmonth(this.time_value)
2947 3019
         console.log('yyyyyyyyyyy',moment(this.time_value).format('YYYY-MM-DD'),moment(oldValue).format('YYYY-MM-DD'))
3020
+
3021
+        this.start_time = moment(this.time_value).format('YYYY-MM-DD')
3022
+        this.end_time =   moment(oldValue).format('YYYY-MM-DD')
2948 3023
       }
2949 3024
     }
2950 3025
   }
@@ -3124,10 +3199,10 @@ export default {
3124 3199
       }
3125 3200
     }
3126 3201
     .el-dialog__body{
3127
-      padding: 15px 10px 
3202
+      padding: 15px 10px
3128 3203
     }
3129 3204
   }
3130
-  
3205
+
3131 3206
 }
3132 3207
 .Calendar{
3133 3208
     color: #000 !important;

+ 3 - 3
src/xt_pages/dialysis/doctorAdviceStaticPrint.vue Bestand weergeven

@@ -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,

+ 3 - 3
src/xt_pages/dialysis/longSignPrint.vue Bestand weergeven

@@ -32,11 +32,11 @@
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;
39
+                                <span>执行者:</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
40 40
                                 <span>核对者:</span>
41 41
                            </div> 
42 42
                              
@@ -53,7 +53,7 @@
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 ==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>  
57 57
                             <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{its.execution_frequency}}</div>  
58 58
                             <div>给药途径:{{its.delivery_way}}</div>  
59 59
                             <div v-if="org_id == 0 || org_id==10223">

+ 20 - 31
src/xt_pages/dialysis/newDoctorAdvice.vue Bestand weergeven

@@ -42,7 +42,7 @@
42 42
 
43 43
        
44 44
       </div>
45
-      <div class="filter-container" v-if="org_id == 0 || org_id ==10101">
45
+      <div class="filter-container">
46 46
       <el-input style="width:200px" placeholder="请输入药品名称" v-model="keyword"></el-input>
47 47
        <el-button type="primary" @click="toSeachOne">搜索</el-button>
48 48
 
@@ -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
 
@@ -1477,26 +1477,30 @@ export default {
1477 1477
         return name
1478 1478
     },
1479 1479
     getAdviceContent(row, isChild) {
1480
+         console.log("rwoo22222222222222333",row)
1480 1481
         let tempSingleDoseDesc = ''
1481 1482
         let tempDrugSpecDesc = ''
1482 1483
         let tempPrescribingNumberDesc = ''
1483 1484
 
1484 1485
         if (row.prescribing_number) {
1485
-          tempPrescribingNumberDesc =
1486
-            row.prescribing_number + '' + row.prescribing_number_unit
1486
+          tempPrescribingNumberDesc = row.prescribing_number + '' + row.prescribing_number_unit
1487
+         
1487 1488
         }
1488 1489
 
1489 1490
         if (row.single_dose) {
1490 1491
           if (this.template_id != 6) {
1491
-            tempSingleDoseDesc =
1492
-              ' 单次用量 ' + '  ' + row.single_dose + '' + row.single_dose_unit
1492
+            tempSingleDoseDesc =' 单次用量 ' + '  ' + row.single_dose + '' + row.single_dose_unit
1493
+           
1493 1494
           } else {
1494
-            tempSingleDoseDesc = row.single_dose ? row.single_dose : '' + '' + row.single_dose_unit ? row.single_dose_unit : ''
1495
+            tempSingleDoseDesc = row.single_dose  + row.single_dose_unit
1496
+            
1495 1497
           }
1496 1498
         }
1497 1499
 
1498 1500
         if (row.advice_desc) {
1499
-          tempDrugSpecDesc = '(' + row.advice_desc + row.drug_spec_unit + ')'
1501
+           tempDrugSpecDesc = '(' + row.advice_desc + row.drug_spec_unit + ')' 
1502
+         
1503
+          
1500 1504
         }
1501 1505
 
1502 1506
         if (isChild == 1) {
@@ -1507,30 +1511,15 @@ export default {
1507 1511
           // console.log(11,row.delivery_way)
1508 1512
           // console.log(22,row.execution_frequency)
1509 1513
 
1510
-          return (
1511
-            row.advice_name +
1512
-            tempDrugSpecDesc +
1513
-            ' ' +
1514
-            tempPrescribingNumberDesc +
1515
-            tempSingleDoseDesc +
1516
-            ' ' +
1517
-            row.delivery_way +
1518
-            ' ' +
1519
-            row.execution_frequency
1520
-          )
1514
+          return (row.advice_name + tempDrugSpecDesc + ' ' + tempPrescribingNumberDesc + tempSingleDoseDesc +' ' + row.delivery_way +' ' +row.execution_frequency)
1521 1515
         } else {
1522 1516
           // 是子药
1523
-          return (
1524
-            row.advice_name +
1525
-            tempDrugSpecDesc +
1526
-            ' ' +
1527
-            tempPrescribingNumberDesc +
1528
-            tempSingleDoseDesc
1529
-          )
1517
+          return (row.advice_name +tempDrugSpecDesc +' ' + tempPrescribingNumberDesc + tempSingleDoseDesc)
1518
+         
1530 1519
         }
1531 1520
     },
1532 1521
     handleSelectionChange(val){
1533
-      console.log("val88888888",val)
1522
+     
1534 1523
       this.selecting_schs = val;
1535 1524
       this.is_status = 1
1536 1525
     },
@@ -1862,9 +1851,9 @@ export default {
1862 1851
                if(newHisArr!=null && newHisArr.length > 0){
1863 1852
                   let dataInfoOne = {}
1864 1853
                   newHisArr.forEach((item, index) => {
1865
-                  let { advice_name } = item
1866
-                  if (!dataInfoOne[advice_name]) {
1867
-                    dataInfoOne[advice_name] = {
1854
+                  let { drug_id } = item
1855
+                  if (!dataInfoOne[drug_id]) {
1856
+                    dataInfoOne[drug_id] = {
1868 1857
                       advice_name:item.advice_name,
1869 1858
                       child: [],
1870 1859
                       count:0,

+ 4 - 4
src/xt_pages/dialysis/signPrint.vue Bestand weergeven

@@ -31,11 +31,11 @@
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">
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 39
                                 <span>核对者:</span>
40 40
                            </div> 
41 41
                              
@@ -52,11 +52,11 @@
52 52
                             规格:{{getSpecialName(its.drug_id)}} 
53 53
                             
54 54
                             </div>  
55
-                            <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>  
55
+                            <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>  
56 56
                             <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138 && org_id!=10223">执行频率:{{its.execution_frequency}}</div>  
57 57
                             <div>给药途径:{{its.delivery_way}}</div>  
58 58
                             <div v-if="org_id == 0 || org_id==10223">
59
-                                <span>配药者:</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
59
+                                <span>执行者:</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
60 60
                                 <span>核对者:</span>
61 61
                            </div> 
62 62
                         </div>

+ 9 - 9
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Bestand weergeven

@@ -1052,10 +1052,10 @@
1052 1052
                         class="under_line"
1053 1053
                         style="width: 100px; text-align: center"
1054 1054
                       >
1055
-                        <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956 || org_id == 10440 || org_id == 0 || org_id == 10469 || org_id == 10478 || org_id == 10490 || org_id ==10495 || org_id == 10460 || org_id==10585 || org_id ==10567 || org_id ==10598">{{
1055
+                        <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956 || org_id == 10440 || org_id == 0 || org_id == 10469 || org_id == 10478 || org_id == 10490 || org_id ==10495 || org_id == 10460 || org_id==10585 || org_id ==10567 || org_id ==10598 || org_id ==10624">{{
1056 1056
                           lastafterdialysis.weight_after
1057 1057
                         }}</span>
1058
-                        <span v-if="org_id != 10290 && org_id != 10318  && org_id!= 10217 && org_id!=10188 && org_id!=9956 && org_id != 10440 && org_id!=0 && org_id!=10469 && org_id!=10478 && org_id!=10490 && org_id!=10495 && org_id!=10460 && org_id!=10585 && org_id!=10567 && org_id!=10598">{{
1058
+                        <span v-if="org_id != 10290 && org_id != 10318  && org_id!= 10217 && org_id!=10188 && org_id!=9956 && org_id != 10440 && org_id!=0 && org_id!=10469 && org_id!=10478 && org_id!=10490 && org_id!=10495 && org_id!=10460 && org_id!=10585 && org_id!=10567 && org_id!=10598&&org_id!=10624">{{
1059 1059
                           predialysis.weight_after_last_transparency
1060 1060
                             ? predialysis.weight_after_last_transparency
1061 1061
                             : "未称重"
@@ -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
 

+ 13 - 0
src/xt_pages/outpatientDoctorStation/batch_replacement.vue Bestand weergeven

@@ -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
     },

+ 6 - 1
src/xt_pages/outpatientDoctorStation/template/prinSeven.vue Bestand weergeven

@@ -21,6 +21,11 @@
21 21
         >
22 22
           {{ orgname }}处方笺
23 23
         </div>
24
+        <div class="printTitle" v-else>
25
+          <span>{{ orgname }}处方笺</span>
26
+          <span style="font-size: 14px;font-weight: normal;color: red;" 
27
+            v-if="prescriptions[index].med_type == '1112'">(精)</span>
28
+        </div>
24 29
         <div >
25 30
           <div  style="display: flex;border-top: 2px solid #000;margin-top: 10px;line-height: 24px;padding: 0 10px;">
26 31
             <p style="width: 200px;">姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
@@ -802,7 +807,7 @@ export default{
802 807
     var xtuser = this.$store.getters.xt_user;
803 808
     this.orgname = xtuser.org.org_name;
804 809
     this.org_id = xtuser.org.id;
805
-
810
+    console.log('jjjjjj',this.orgname);
806 811
     // for(let j=0;j<this.advicess.length;j++){
807 812
     //   console.log('44444444');
808 813
     //   for(let x=j+1;x<this.advicess.length;x++){

+ 2 - 2
src/xt_pages/role/admin.vue Bestand weergeven

@@ -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