Browse Source

hah阿凡达

28169 4 months ago
parent
commit
d2b0c51a79

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

1748
                           置换液的速度<br />(ml/h)
1748
                           置换液的速度<br />(ml/h)
1749
                           </td>
1749
                           </td>
1750
                           <td width="50" v-if="org_id == 10375">置换率<br />(ml/h)</td>
1750
                           <td width="50" v-if="org_id == 10375">置换率<br />(ml/h)</td>
1751
-                          <td width="50" v-if=" org_id ==0 || org_id ==10489">超滤率<br />(ml/h)</td>
1751
+                          <td width="50" v-if=" org_id ==0 || org_id ==10489 || org_id == 10735">超滤率<br />(ml/h)</td>
1752
                           <td width="50" v-if="org_id != 3877 && org_id != 10449 && org_id!=10600 && org_id!=10683">超滤量<br />
1752
                           <td width="50" v-if="org_id != 3877 && org_id != 10449 && org_id!=10600 && org_id!=10683">超滤量<br />
1753
                             <span v-if="org_id!=10471"> (ml)</span>
1753
                             <span v-if="org_id!=10471"> (ml)</span>
1754
                             <span v-if="org_id==10471">L</span>
1754
                             <span v-if="org_id==10471">L</span>
1989
                           <td width="50" v-if="org_id == 10375"><br />
1989
                           <td width="50" v-if="org_id == 10375"><br />
1990
                             {{ monitor_record.replacement_rate?monitor_record.replacement_rate:"0" }}
1990
                             {{ monitor_record.replacement_rate?monitor_record.replacement_rate:"0" }}
1991
                           </td>
1991
                           </td>
1992
-                          <td width="50" v-if="org_id == 10489 || org_id ==0"><br />
1992
+                          <td width="50" v-if="org_id == 10489 || org_id ==0 || org_id == 10735"><br />
1993
 
1993
 
1994
                                    {{
1994
                                    {{
1995
                                      monitor_record.ultrafiltration_rate
1995
                                      monitor_record.ultrafiltration_rate

+ 1 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

3025
             }
3025
             }
3026
            }else if(this.$store.getters.xt_user.org.id == 10735){
3026
            }else if(this.$store.getters.xt_user.org.id == 10735){
3027
               if (schedual.schedule_type == 1) {
3027
               if (schedual.schedule_type == 1) {
3028
-              this.start_time = year + '-' + month + '-' + day + ' ' + '6:30'
3028
+              this.start_time = year + '-' + month + '-' + day + ' ' + '6:00'
3029
             } else if (schedual.schedule_type == 2) {
3029
             } else if (schedual.schedule_type == 2) {
3030
               this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
3030
               this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
3031
             } else if (schedual.schedule_type == 3) {
3031
             } else if (schedual.schedule_type == 3) {

+ 2 - 2
src/xt_pages/dialysis/doctorAdviceStaticPrint.vue View File

141
                   let { advice_name } = item
141
                   let { advice_name } = item
142
                   if (!dataInfo[advice_name]) {
142
                   if (!dataInfo[advice_name]) {
143
                     dataInfo[advice_name] = {
143
                     dataInfo[advice_name] = {
144
-                      advice_name:item.advice_name,
144
+                      advice_name:item.advice_name.replace(/\s+/g, ''),
145
                       child: [],
145
                       child: [],
146
                       count:0,
146
                       count:0,
147
                       drug_id:item.drug_id,
147
                       drug_id:item.drug_id,
157
                 if(arr.length > 0){
157
                 if(arr.length > 0){
158
                   for(let i=0;i<doctorList.length;i++){
158
                   for(let i=0;i<doctorList.length;i++){
159
                     for(let j=0;j<arr.length;j++){
159
                     for(let j=0;j<arr.length;j++){
160
-                      if(doctorList[i].advice_name == arr[j].advice_name){
160
+                      if(doctorList[i].advice_name.replace(/\s+/g, '') == arr[j].advice_name){
161
                           arr[j].child.push(doctorList[i])
161
                           arr[j].child.push(doctorList[i])
162
                       }
162
                       }
163
                     }
163
                     }

+ 4 - 4
src/xt_pages/dialysis/newDoctorAdvice.vue View File

55
             <el-button type="primary" @click="toSeachOne">搜索</el-button>
55
             <el-button type="primary" @click="toSeachOne">搜索</el-button>
56
           </div>
56
           </div>
57
           <div style="flex: 1;text-align: right;">
57
           <div style="flex: 1;text-align: right;">
58
-            <el-button type="primary" size="small" @click="toStatic" v-if="org_id!=0  && org_id!=10340">药品统计</el-button>
58
+            <el-button type="primary" size="small" @click="toStatic" v-if="org_id!=10340">药品统计</el-button>
59
 
59
 
60
-            <el-button type="primary" size="small" @click="toStaticOne" v-if="org_id == 0 || org_id==10340">药品统计</el-button>
60
+            <el-button type="primary" size="small" @click="toStaticOne" v-if="org_id==10340">药品统计</el-button>
61
             <el-button type="primary" size="small" @click="toStaticThree">药品月统计</el-button>
61
             <el-button type="primary" size="small" @click="toStaticThree">药品月统计</el-button>
62
 
62
 
63
             <el-button type="primary" size="small" @click="toStaticTwo">耗材统计</el-button>
63
             <el-button type="primary" size="small" @click="toStaticTwo">耗材统计</el-button>
2081
                   let { advice_name } = item
2081
                   let { advice_name } = item
2082
                   if (!dataInfo[advice_name]) {
2082
                   if (!dataInfo[advice_name]) {
2083
                     dataInfo[advice_name] = {
2083
                     dataInfo[advice_name] = {
2084
-                      advice_name:item.advice_name,
2084
+                      advice_name:item.advice_name.replace(/\s+/g, ''),
2085
                       child: [],
2085
                       child: [],
2086
                       count:0,
2086
                       count:0,
2087
                       drug_id:item.drug_id,
2087
                       drug_id:item.drug_id,
2098
                 if(arr.length > 0){
2098
                 if(arr.length > 0){
2099
                   for(let i=0;i<doctorList.length;i++){
2099
                   for(let i=0;i<doctorList.length;i++){
2100
                     for(let j=0;j<arr.length;j++){
2100
                     for(let j=0;j<arr.length;j++){
2101
-                      if(doctorList[i].advice_name == arr[j].advice_name){
2101
+                      if(doctorList[i].advice_name.replace(/\s+/g, '') == arr[j].advice_name){
2102
                           arr[j].child.push(doctorList[i])
2102
                           arr[j].child.push(doctorList[i])
2103
                       }
2103
                       }
2104
                     }
2104
                     }

+ 3 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

1841
                         </td>
1841
                         </td>
1842
                         <td width="50" v-if="org_id == 10121">SpO₂<br />(%)</td>
1842
                         <td width="50" v-if="org_id == 10121">SpO₂<br />(%)</td>
1843
                         <td width="50" v-if="org_id == 10375">置换率<br />(ml/h)</td>
1843
                         <td width="50" v-if="org_id == 10375">置换率<br />(ml/h)</td>
1844
-                        <td width="50" v-if="org_id ==10489">超滤率<br/>(ml/h)</td>
1844
+                        <td width="50" v-if="org_id ==10489 || org_id == 10735 || org_id == 0">超滤率<br/>(ml/h)</td>
1845
                         <td width="50" v-if="org_id != 3877 && org_id != 10449 && org_id != 10600&& org_id != 10683">
1845
                         <td width="50" v-if="org_id != 3877 && org_id != 10449 && org_id != 10600&& org_id != 10683">
1846
                           超滤量<br />
1846
                           超滤量<br />
1847
                          <span v-if="org_id == 10471">L</span>
1847
                          <span v-if="org_id == 10471">L</span>
1970
                         <td v-if="org_id == 10375"><br />
1970
                         <td v-if="org_id == 10375"><br />
1971
                           {{ monitor.replacement_rate? monitor.replacement_rate: ""}}
1971
                           {{ monitor.replacement_rate? monitor.replacement_rate: ""}}
1972
                         </td>
1972
                         </td>
1973
-                        <td v-if="org_id == 10489 "><br />
1973
+                        <td v-if="org_id == 10489 || org_id == 10735 || org_id == 0"><br />
1974
                           {{ monitor.ultrafiltration_rate? monitor.ultrafiltration_rate: ""}}
1974
                           {{ monitor.ultrafiltration_rate? monitor.ultrafiltration_rate: ""}}
1975
                         </td>
1975
                         </td>
1976
                         <td v-if="org_id!=10600 && org_id!=10644  && org_id!=10683">
1976
                         <td v-if="org_id!=10600 && org_id!=10644  && org_id!=10683">
5431
               tempmonitorflag = false;
5431
               tempmonitorflag = false;
5432
             }
5432
             }
5433
             if ((tempmonitorflag && index == this.monitors.length - 1)&&(this.org_id!=10414)) {
5433
             if ((tempmonitorflag && index == this.monitors.length - 1)&&(this.org_id!=10414)) {
5434
-              if(this.org_id!=10683){
5434
+              if(this.org_id!=10683 && this.org_id!=0  && this.org_id!=10644){
5435
                 this.monitors[index].end = "【结束透析】";
5435
                 this.monitors[index].end = "【结束透析】";
5436
               }
5436
               }
5437
             }
5437
             }

+ 4 - 0
src/xt_pages/stock/drugs/components/purchaseNewDrugQuery.vue View File

304
     return total
304
     return total
305
    },
305
    },
306
    GetDrugOverOnePrice(totalone,totaltwo,totalthree,min_number,min_unit,max_unit){
306
    GetDrugOverOnePrice(totalone,totaltwo,totalthree,min_number,min_unit,max_unit){
307
+
308
+    console.log("hahhahha",totalone)
309
+    console.log("totaltwo",totaltwo)
310
+    console.log("totalthree",totalthree)
307
       var total = 0
311
       var total = 0
308
       
312
       
309
       total = (totalone + totaltwo - totalthree).toFixed(2)
313
       total = (totalone + totaltwo - totalthree).toFixed(2)

+ 9 - 2
src/xt_pages/stock/query/purchaseNewStockQuery.vue View File

308
               if(this.org_id ==10697){
308
               if(this.org_id ==10697){
309
                list[i].addStockMoney = list[i].buy_price 
309
                list[i].addStockMoney = list[i].buy_price 
310
                 list[i].saleStockMoney = (list[i].buy_price *list[i].stockAdd).toFixed(2)
310
                 list[i].saleStockMoney = (list[i].buy_price *list[i].stockAdd).toFixed(2)
311
-              }else if(this.org_id == 0 || this.org_id == 10164){
311
+              }else if(this.org_id == 0 || this.org_id == 10644){
312
                 list[i].addStockMoney = "/"
312
                 list[i].addStockMoney = "/"
313
                 list[i].saleStockMoney = this.getWarehouseInfoOnePrice(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit).toFixed(2)
313
                 list[i].saleStockMoney = this.getWarehouseInfoOnePrice(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit).toFixed(2)
314
               } else{
314
               } else{
321
               if(this.org_id == 10697){
321
               if(this.org_id == 10697){
322
                 list[i].stockOutprice = list[i].packing_price
322
                 list[i].stockOutprice = list[i].packing_price
323
                 list[i].saleOutMoney = (list[i].packing_price * list[i].outStock).toFixed(2)
323
                 list[i].saleOutMoney = (list[i].packing_price * list[i].outStock).toFixed(2)
324
-              }else if(this.org_id == 0 || this.org_id == 10164){
324
+              }else if(this.org_id == 0 || this.org_id == 10644){
325
                 list[i].stockOutprice = "/"
325
                 list[i].stockOutprice = "/"
326
                 list[i].saleOutMoney = this.getWarehosueOutInfoPrice(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
326
                 list[i].saleOutMoney = this.getWarehosueOutInfoPrice(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
327
+                if(list[i].saleOutMoney == "NaN"){
328
+                  list[i].saleOutMoney = ""
329
+                }
330
+                console.log("list[i].saleOutMoney",list[i].saleOutMoney)
327
               }else{
331
               }else{
328
                 list[i].stockOutprice = "/"
332
                 list[i].stockOutprice = "/"
329
                 list[i].saleOutMoney = "/"
333
                 list[i].saleOutMoney = "/"
350
                 list[i].overMoney = (list[i].packing_price*list[i].overStock).toFixed(2)
354
                 list[i].overMoney = (list[i].packing_price*list[i].overStock).toFixed(2)
351
               }else if(this.org_id == 0 || this.org_id ==10644){
355
               }else if(this.org_id == 0 || this.org_id ==10644){
352
                 list[i].overPrice = "/"
356
                 list[i].overPrice = "/"
357
+                console.log("stockMoney-00000000000000",list[i].stockMoney)
358
+                console.log("saleStockMoney-00000000000000",list[i].saleStockMoney)
359
+                console.log("saleOutMoney-00000000000000",list[i].saleOutMoney)
353
                 list[i].overMoney = (parseFloat(list[i].stockMoney)  + parseFloat(list[i].saleStockMoney) - parseFloat(list[i].saleOutMoney)).toFixed(2)
360
                 list[i].overMoney = (parseFloat(list[i].stockMoney)  + parseFloat(list[i].saleStockMoney) - parseFloat(list[i].saleOutMoney)).toFixed(2)
354
                 // console.log("hahahha",list[i].overMoney)
361
                 // console.log("hahahha",list[i].overMoney)
355
               }else{
362
               }else{

+ 8 - 3
src/xt_pages/stock/query/purchaseNewStockQueryPrint.vue View File

201
                     if(this.org_id == 0 || this.org_id ==10697){
201
                     if(this.org_id == 0 || this.org_id ==10697){
202
                         list[i].addStockMoney = list[i].buy_price 
202
                         list[i].addStockMoney = list[i].buy_price 
203
                         list[i].saleStockMoney = (list[i].buy_price *list[i].stockAdd).toFixed(2)
203
                         list[i].saleStockMoney = (list[i].buy_price *list[i].stockAdd).toFixed(2)
204
-                    }else if(this.org_id == 0 || this.org_id == 10164){
204
+                    }else if(this.org_id == 0 || this.org_id == 10644){
205
                       list[i].addStockMoney = "/"
205
                       list[i].addStockMoney = "/"
206
                       list[i].saleStockMoney = this.getWarehouseInfoOnePrice(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit).toFixed(2)
206
                       list[i].saleStockMoney = this.getWarehouseInfoOnePrice(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit).toFixed(2)
207
+                     
207
                     }else{
208
                     }else{
208
                         list[i].addStockMoney = "/"
209
                         list[i].addStockMoney = "/"
209
                         list[i].saleStockMoney = "/"
210
                         list[i].saleStockMoney = "/"
216
                     if(this.org_id == 0 || this.org_id == 10697){
217
                     if(this.org_id == 0 || this.org_id == 10697){
217
                       list[i].stockOutprice = list[i].packing_price
218
                       list[i].stockOutprice = list[i].packing_price
218
                       list[i].saleOutMoney = (list[i].packing_price * list[i].outStock).toFixed(2)
219
                       list[i].saleOutMoney = (list[i].packing_price * list[i].outStock).toFixed(2)
219
-                    }else if(this.org_id == 0 || this.org_id == 10164){
220
+                    }else if(this.org_id == 0 || this.org_id == 10644){
220
                       list[i].addStockMoney = "/"
221
                       list[i].addStockMoney = "/"
221
                       list[i].saleStockMoney = this.getWarehouseInfoOnePrice(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit).toFixed(2)
222
                       list[i].saleStockMoney = this.getWarehouseInfoOnePrice(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit).toFixed(2)
223
+                      
222
                     }else{
224
                     }else{
223
                       list[i].stockOutprice = "/"
225
                       list[i].stockOutprice = "/"
224
                       list[i].saleOutMoney = "/"
226
                       list[i].saleOutMoney = "/"
233
                     if(this.org_id == 0 || this.org_id ==10697){
235
                     if(this.org_id == 0 || this.org_id ==10697){
234
                       list[i].overPrice = list[i].packing_price
236
                       list[i].overPrice = list[i].packing_price
235
                       list[i].overMoney = (list[i].packing_price*list[i].overStock).toFixed(2)
237
                       list[i].overMoney = (list[i].packing_price*list[i].overStock).toFixed(2)
236
-                     }else if(this.org_id == 0 || this.org_id == 10164){
238
+                     }else if(this.org_id == 0 || this.org_id == 10644){
237
                       list[i].stockOutprice = "/"
239
                       list[i].stockOutprice = "/"
238
                       list[i].saleOutMoney = this.getWarehosueOutInfoPrice(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
240
                       list[i].saleOutMoney = this.getWarehosueOutInfoPrice(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
241
+                      if(list[i].saleOutMoney == "NaN"){
242
+                        list[i].saleOutMoney = ""
243
+                      }
239
                      }else{
244
                      }else{
240
                         list[i].overPrice = "/"
245
                         list[i].overPrice = "/"
241
                         list[i].overMoney = "/"
246
                         list[i].overMoney = "/"

+ 13 - 10
src/xt_pages/user/courseOfDisease_new.vue View File

248
           <div v-show="AuToShow">
248
           <div v-show="AuToShow">
249
             <text_content @new_content="newcontent" :patient="patient" :prescriptionList="prescriptionList" :berforList="berforList" 
249
             <text_content @new_content="newcontent" :patient="patient" :prescriptionList="prescriptionList" :berforList="berforList" 
250
             :monitorList="monitorList" :dryweightList="dryweightList" :inpectionList="inpectionList" :dialysisOrderList="dialysisOrderList" 
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>
251
+            :start_date="start_date" :end_date="end_date" :patient_id="patient_id" :num="num" :longAdvice="longAdvice"></text_content>
252
           </div>
252
           </div>
253
         </div>
253
         </div>
254
 
254
 
340
         template_id:0,
340
         template_id:0,
341
         title:"",
341
         title:"",
342
         templateList:[],
342
         templateList:[],
343
-        tab:[{id:1,name:'人促红注射液',type:'长期医嘱',start:'2024-12-04',dosage:"3000iu",pinlv:'一周三次',status:''},
344
-            {id:2,name:'人促红注射液2',type:'长期医嘱',start:'2024-12-05',dosage:"3000iu",pinlv:'一周三次',status:''}, 
345
-        ],
343
+        // tab:[{id:1,name:'人促红注射液',type:'长期医嘱',start:'2024-12-04',dosage:"3000iu",pinlv:'一周三次',status:''},
344
+        //     {id:2,name:'人促红注射液2',type:'长期医嘱',start:'2024-12-05',dosage:"3000iu",pinlv:'一周三次',status:''}, 
345
+        // ],
346
         prescriptionList:[],
346
         prescriptionList:[],
347
         berforList:[],
347
         berforList:[],
348
         monitorList:[],
348
         monitorList:[],
352
         patient:{},
352
         patient:{},
353
         AuToShow:false,
353
         AuToShow:false,
354
 
354
 
355
-        num:22222222
355
+        num:"",
356
+        longAdvice:[]
356
       //   name:"",
357
       //   name:"",
357
       //  gander:"",
358
       //  gander:"",
358
       //  age:0,
359
       //  age:0,
567
       auto_click(){
568
       auto_click(){
568
         this.start_date = this.getFirstDayOfWeek(new Date())
569
         this.start_date = this.getFirstDayOfWeek(new Date())
569
         this.end_date = this.getTime(new Date())
570
         this.end_date = this.getTime(new Date())
570
-        // this.getAutoPatientContent()
571
-        this.auto_dialog = true
571
+        this.getAutoPatientContent()
572
+        // this.auto_dialog = true
572
       },
573
       },
573
       autotext_click(){
574
       autotext_click(){
574
         
575
         
1246
             
1247
             
1247
             this.patient = {}
1248
             this.patient = {}
1248
             var patient = response.data.data.patient
1249
             var patient = response.data.data.patient
1249
-            console.log("patinet-=================",patient)
1250
+           
1250
             if(patient.gender == 1){
1251
             if(patient.gender == 1){
1251
                patient.gender_name = "男"
1252
                patient.gender_name = "男"
1252
             }
1253
             }
1254
                patient.gender_name = "女"
1255
                patient.gender_name = "女"
1255
             }
1256
             }
1256
 
1257
 
1257
-           this.patient2 = patient
1258
-           console.log('this.patient2',this.patient2);
1258
+           this.patient = patient
1259
             var dialysisOrderList =response.data.data.dialysisOrder
1259
             var dialysisOrderList =response.data.data.dialysisOrder
1260
             
1260
             
1261
             var total_count = 0
1261
             var total_count = 0
1404
             
1404
             
1405
            
1405
            
1406
            var longAdvice = response.data.data.longAdvice
1406
            var longAdvice = response.data.data.longAdvice
1407
+           console.log("longAdvice-------------------------",longAdvice)
1408
+           this.longAdvice = longAdvice
1407
 
1409
 
1410
+            this.auto_dialog  =  true
1408
 
1411
 
1409
             // const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
1412
             // const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
1410
             //   <tr>
1413
             //   <tr>

+ 1 - 0
src/xt_pages/user/firstDiseasePrint.vue View File

49
 
49
 
50
             </div>
50
             </div>
51
           </div>
51
           </div>
52
+           <span style="font-size:20px">主诉内容:</span>
52
             <div class="inline_block" style="margin-left: 30px">
53
             <div class="inline_block" style="margin-left: 30px">
53
                    <div v-html="hosDetail.main_content"> </div>
54
                    <div v-html="hosDetail.main_content"> </div>
54
             </div>
55
             </div>

File diff suppressed because it is too large
+ 773 - 972
src/xt_pages/user/text_content.vue