Просмотр исходного кода

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

28169 4 месяцев назад
Родитель
Сommit
6059f9af9e

+ 22 - 15
src/xt_pages/dialysis/batch_print/batch_print_order_eightyTwo.vue Просмотреть файл

@@ -112,24 +112,31 @@
112 112
               </div>
113 113
             </div>
114 114
           </div>
115
-          <div class="row">
116
-            血管通路
117
-            <div class="inline_block under_line" style="width:230px;text-align: center;">
118
-              {{ record.assessment_before_dislysis.blood_access_part_id ? 
119
-                record.assessment_before_dislysis.blood_access_part_id :'/'  
120
-              }}
121
-              {{ bloodAccessParOperaName(record.assessment_before_dislysis.blood_access_part_opera_id)}}
115
+          <div class="row" style="display: flex;">
116
+            <div style="flex: 1;">
117
+              血管通路
118
+              <div class="inline_block under_line" style="width:230px;text-align: center;">
119
+                {{ record.assessment_before_dislysis.blood_access_part_id ? 
120
+                  record.assessment_before_dislysis.blood_access_part_id :'/'  
121
+                }}
122
+                {{ bloodAccessParOperaName(record.assessment_before_dislysis.blood_access_part_opera_id)}}
123
+              </div>
122 124
             </div>
123
-            导管
124
-            <div class="inline_block under_line" style="width:200px;text-align: center;">
125
-              {{ record.assessment_before_dislysis.catheter ? record.assessment_before_dislysis.catheter : "/" }}
125
+            <div style="flex: 1;">
126
+              导管
127
+              <div class="inline_block under_line" style="width:200px;text-align: center;">
128
+                {{ record.assessment_before_dislysis.catheter ? record.assessment_before_dislysis.catheter : "/" }}
129
+              </div>
126 130
             </div>
127
-            内瘘
128
-            <div class="inline_block under_line" style="width:200px;text-align: center;">
129
-              {{ record.assessment_before_dislysis.internal_fistula ? 
130
-                record.assessment_before_dislysis.internal_fistula : "/" 
131
-              }}
131
+            <div style="flex: 1;">
132
+              内瘘
133
+              <div class="inline_block under_line" style="width:200px;text-align: center;">
134
+                {{ record.assessment_before_dislysis.internal_fistula ? 
135
+                  record.assessment_before_dislysis.internal_fistula : "/" 
136
+                }}
137
+              </div>
132 138
             </div>
139
+            
133 140
           </div>
134 141
           <div class="row">
135 142
             抗凝药物&nbsp;&nbsp;

+ 32 - 60
src/xt_pages/dialysis/template/DialysisPrintOrdereightytwo.vue Просмотреть файл

@@ -92,20 +92,28 @@
92 92
               </div>
93 93
             </div>
94 94
         </div>
95
-        <div class="row">
96
-          血管通路
97
-          <div class="inline_block under_line" style="width:200px;text-align: center;">
98
-            {{ predialysis.blood_access_part_id ? predialysis.blood_access_part_id :'/'  }}
99
-            {{ predialysis.blood_access_part_opera_name?predialysis.blood_access_part_opera_name:"/" }}
95
+        <div class="row" style="display: flex;">
96
+          <div style="flex: 1;">
97
+            血管通路
98
+            <div class="inline_block under_line" style="width:200px;text-align: center;">
99
+              {{ predialysis.blood_access_part_id ? predialysis.blood_access_part_id :'/'  }}
100
+              {{ predialysis.blood_access_part_opera_name?predialysis.blood_access_part_opera_name:"/" }}
101
+            </div>
100 102
           </div>
101
-          导管
102
-          <div class="inline_block under_line" style="width:200px;text-align: center;">
103
-            {{ predialysis.catheter ? predialysis.catheter : "/" }}
103
+          <div style="flex: 1;">
104
+            导管
105
+            <div class="inline_block under_line" style="width:200px;text-align: center;">
106
+              {{ predialysis.catheter ? predialysis.catheter : "/" }}
107
+            </div>
104 108
           </div>
105
-          内瘘
106
-          <div class="inline_block under_line" style="width:200px;text-align: center;">
107
-            {{ predialysis.internal_fistula ? predialysis.internal_fistula : "/" }}
109
+          <div style="flex: 1;">
110
+            内瘘
111
+            <div class="inline_block under_line" style="width:200px;text-align: center;">
112
+              {{ predialysis.internal_fistula ? predialysis.internal_fistula : "/" }}
113
+            </div>
108 114
           </div>
115
+          
116
+          
109 117
         </div>
110 118
 
111 119
         <div class="row">
@@ -114,7 +122,7 @@
114 122
         <div class="row">
115 123
           抗凝药物&nbsp;&nbsp;
116 124
           <div class="inline_block under_line" style="width:90%;text-align: left;">
117
-            {{ prescription.anticoagulant ? prescription.anticoagulant : '/' }}
125
+            {{ getanticoag(prescription.anticoagulant) ? getanticoag(prescription.anticoagulant) : '/' }}
118 126
             <div class="inline_block">&nbsp;&nbsp;&nbsp;
119 127
               剂量:首剂
120 128
               <div class="inline_block" style="width:50px;text-align:center">
@@ -1313,51 +1321,6 @@ export default {
1313 1321
           this.doctorForm.url = doctorname.url
1314 1322
           var prescription = response.data.data.dialysisPrescription
1315 1323
           console.log('透析处方', prescription)
1316
-          if (prescription.anticoagulant === 1) {
1317
-            prescription.anticoagulant = '无肝素'
1318
-          }
1319
-          if (prescription.anticoagulant === 2) {
1320
-            prescription.anticoagulant = '普通肝素'
1321
-          }
1322
-          if (prescription.anticoagulant === 3) {
1323
-            prescription.anticoagulant = '低分子肝素'
1324
-          }
1325
-          if (prescription.anticoagulant === 4) {
1326
-            prescription.anticoagulant = '阿加曲班'
1327
-          }
1328
-          if (prescription.anticoagulant === 5) {
1329
-            prescription.anticoagulant = '枸橼酸钠'
1330
-          }
1331
-          if (prescription.anticoagulant == 6) {
1332
-            prescription.anticoagulant = '低分子肝素钙'
1333
-          }
1334
-          if (prescription.anticoagulant == 7) {
1335
-            prescription.anticoagulant = '低分子肝素钠'
1336
-          }
1337
-          if (prescription.anticoagulant == 8) {
1338
-            prescription.anticoagulant = '依诺肝素'
1339
-          }
1340
-          if (prescription.anticoagulant == 9) {
1341
-            prescription.anticoagulant = '达肝素'
1342
-          }
1343
-          if (prescription.anticoagulant == 10) {
1344
-            prescription.anticoagulant = '体外抗凝'
1345
-          }
1346
-          if (prescription.anticoagulant == 11) {
1347
-            prescription.anticoagulant = '那屈肝素'
1348
-          }
1349
-          if (prescription.anticoagulant == 12) {
1350
-            prescription.anticoagulant = '无抗凝剂'
1351
-          }
1352
-          if (prescription.anticoagulant == 13) {
1353
-            prescription.anticoagulant = '那屈肝素钙'
1354
-          }
1355
-          if (prescription.anticoagulant == 14) {
1356
-            prescription.anticoagulant = '肝素钙注射液'
1357
-          }
1358
-          if (prescription.anticoagulant == 15) {
1359
-            prescription.anticoagulant = '甲磺酸萘莫司他'
1360
-          }
1361 1324
           if (prescription.blood_access === 1) {
1362 1325
             prescription.blood_access = '正常'
1363 1326
           }
@@ -1763,7 +1726,7 @@ export default {
1763 1726
       const options = this.anticoagulantsConfit
1764 1727
       if(val != ''){
1765 1728
         for(let i in options){
1766
-          if(val == options[i].name){
1729
+          if(val == options[i].id){
1767 1730
             return options[i].shouji_unit
1768 1731
           }
1769 1732
         }
@@ -1776,7 +1739,7 @@ export default {
1776 1739
       const options = this.anticoagulantsConfit
1777 1740
       if(val != ''){
1778 1741
         for(let i in options){
1779
-          if(val == options[i].name){
1742
+          if(val == options[i].id){
1780 1743
             return options[i].weichi_unit
1781 1744
           }
1782 1745
         }
@@ -1788,7 +1751,7 @@ export default {
1788 1751
       const options = this.anticoagulantsConfit
1789 1752
       if(val != ''){
1790 1753
         for(let i in options){
1791
-          if(val == options[i].name){
1754
+          if(val == options[i].id){
1792 1755
             return options[i].zongliang_unit
1793 1756
           }
1794 1757
         }
@@ -1796,6 +1759,15 @@ export default {
1796 1759
         return ''
1797 1760
       }
1798 1761
     },
1762
+    getanticoag(id){
1763
+     const option = this.anticoagulantsConfit
1764
+      for(let i in option){
1765
+        if(option[i].id==id){
1766
+          return option[i].name
1767
+        }
1768
+      }
1769
+    },
1770
+    
1799 1771
   },
1800 1772
   watch: {
1801 1773
     'patientInfo.gender': function() {

+ 90 - 8
src/xt_pages/user/courseOfDisease_new.vue Просмотреть файл

@@ -5,7 +5,6 @@
5 5
       </div> -->
6 6
   <div class="patient-container">
7 7
     <PatientSidebar :id="patient_id" defaultActive="3-5"></PatientSidebar>
8
-
9 8
     <div v-loading="loading">
10 9
       <div class="patient-app-container advice-container app-container" style="">
11 10
         <div style="display: flex;">
@@ -85,6 +84,46 @@
85 84
               <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;margin-bottom: 5px;">
86 85
                 病程内容
87 86
               </span>
87
+              <div style="display:flex;">
88
+                <div>
89
+                  取值时间:
90
+                  <el-select v-model="quzhi_date" @change="datachange" placeholder="请选择" style="width: 120px;">
91
+                    <el-option
92
+                      v-for="item in quzhi_options"
93
+                      :key="item.value"
94
+                      :label="item.label"
95
+                      :value="item.value">
96
+                    </el-option>
97
+                  </el-select>
98
+                </div>
99
+                <div style="margin:0 10px">
100
+                  <el-date-picker
101
+                  @change="changStartDate"
102
+                    v-model="start_date"
103
+                    type="date"
104
+                    value-format="yyyy-MM-dd"
105
+                    placeholder="选择日期"
106
+                    style="width: 150px;">
107
+                  </el-date-picker>
108
+                  <span>-</span>
109
+                  <el-date-picker
110
+                  @change="changEndDate"
111
+                    v-model="end_date"
112
+                    type="date"
113
+                    value-format="yyyy-MM-dd"
114
+                    placeholder="选择日期"
115
+                    style="width: 150px;">
116
+                  </el-date-picker>
117
+                </div>
118
+                <!-- <div>
119
+                  <el-button type="primary" size="small" @click="autotext_click">
120
+                    生成
121
+                  </el-button>
122
+                  <el-button type="primary" size="small" @click="auto_dialog=false">
123
+                    取消
124
+                  </el-button>
125
+                </div> -->
126
+              </div>
88 127
               <div style="margin: 10px 0;">
89 128
                 <el-button type="primary" size="small" @click="template_click">
90 129
                   {{ add_index ==0 ? '设置模板' : '模板库' }}
@@ -165,7 +204,53 @@
165 204
         width="70%"
166 205
         top="0"
167 206
         >
168
-     
207
+        <div>
208
+          <!-- <div style="display:flex;"> -->
209
+            <!-- <div>
210
+              取值时间:
211
+              <el-select v-model="quzhi_date" @change="datachange" placeholder="请选择" style="width: 120px;">
212
+                <el-option
213
+                  v-for="item in quzhi_options"
214
+                  :key="item.value"
215
+                  :label="item.label"
216
+                  :value="item.value">
217
+                </el-option>
218
+              </el-select>
219
+            </div>
220
+            <div style="margin:0 10px">
221
+              <el-date-picker
222
+               @change="changStartDate"
223
+                v-model="start_date"
224
+                type="date"
225
+                value-format="yyyy-MM-dd"
226
+                placeholder="选择日期"
227
+                style="width: 150px;">
228
+              </el-date-picker>
229
+              <span>-</span>
230
+              <el-date-picker
231
+               @change="changEndDate"
232
+                v-model="end_date"
233
+                type="date"
234
+                value-format="yyyy-MM-dd"
235
+                placeholder="选择日期"
236
+                style="width: 150px;">
237
+              </el-date-picker>
238
+            </div> -->
239
+            <div style="text-align: right;margin-bottom: 10px;">
240
+              <el-button type="primary" size="small" @click="autotext_click">
241
+                生成
242
+              </el-button>
243
+              <el-button type="primary" size="small" @click="auto_dialog=false">
244
+                取消
245
+              </el-button>
246
+            </div>
247
+          <!-- </div> -->
248
+          <div v-show="AuToShow">
249
+            <text_content @new_content="newcontent" :patient="patient" :prescriptionList="prescriptionList" :berforList="berforList" 
250
+            :monitorList="monitorList" :dryweightList="dryweightList" :inpectionList="inpectionList" :dialysisOrderList="dialysisOrderList" 
251
+            :start_date="start_date" :end_date="end_date" :patient_id="patient_id" :num="num"></text_content>
252
+          </div>
253
+        </div>
169 254
 
170 255
       </el-dialog>
171 256
 
@@ -267,12 +352,12 @@
267 352
         patient:{},
268 353
         AuToShow:false,
269 354
 
270
-        num:22222222,
355
+        num:22222222
271 356
       //   name:"",
272 357
       //  gander:"",
273 358
       //  age:0,
274 359
       //  dialysis_no:"",
275
-       patient_new:{},
360
+      //  patient_new:{},
276 361
       //  prescriptionList:[],
277 362
       //  berforList:[],
278 363
       //  monitorList:[],
@@ -531,10 +616,9 @@
531 616
         //     }
532 617
         //   }
533 618
         // })
534
-         this.getAutoPatientContent()
535 619
          this.AuToShow = true
536 620
 
537
-      
621
+      //  this.getAutoPatientContent()
538 622
       },
539 623
       // 本周
540 624
       getFirstDayOfWeek(date){
@@ -713,8 +797,6 @@
713 797
           if(response.data.state == 1){
714 798
           
715 799
             var prescription =  response.data.data.prescription
716
-
717
-            this.patient_new = response.data.data.patient
718 800
             var hd_total =0
719 801
             var hdArr =[]
720 802
             var hdf_total =0