Browse Source

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

陈少旭 4 months ago
parent
commit
158759173c
25 changed files with 2200 additions and 500 deletions
  1. 9 1
      src/xt_pages/data/druguseTemplate.vue
  2. 22 15
      src/xt_pages/dialysis/batch_print/batch_print_order_eightyTwo.vue
  3. 7 3
      src/xt_pages/dialysis/batch_print/batch_print_order_eightyone.vue
  4. 11 3
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  5. 8 2
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  6. 6 3
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  7. 9 1
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  8. 11 4
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  9. 2 2
      src/xt_pages/dialysis/doctorAdviceStaticPrint.vue
  10. 4 4
      src/xt_pages/dialysis/newDoctorAdvice.vue
  11. 1 1
      src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue
  12. 13 21
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  13. 32 60
      src/xt_pages/dialysis/template/DialysisPrintOrdereightytwo.vue
  14. 4 4
      src/xt_pages/dialysis/template/DialysisPrintOrdersixtySeven.vue
  15. 6 2
      src/xt_pages/outpatientCharges/statementPrint.vue
  16. 382 0
      src/xt_pages/outpatientCharges/statementTemplate/printeighteen.vue
  17. 33 6
      src/xt_pages/stock/drugs/components/purchaseDrugQuery.vue
  18. 146 13
      src/xt_pages/stock/drugs/components/purchaseNewDrugQuery.vue
  19. 150 24
      src/xt_pages/stock/drugs/components/purchaseNewDrugQueryPrint.vue
  20. 121 10
      src/xt_pages/stock/query/purchaseNewStockQuery.vue
  21. 111 4
      src/xt_pages/stock/query/purchaseNewStockQueryPrint.vue
  22. 867 112
      src/xt_pages/user/courseOfDisease_new.vue
  23. 1 0
      src/xt_pages/user/firstDiseasePrint.vue
  24. 231 192
      src/xt_pages/user/text_content.vue
  25. 13 13
      src/xt_permission.js

+ 9 - 1
src/xt_pages/data/druguseTemplate.vue View File

685
                     </el-form-item>
685
                     </el-form-item>
686
                   </el-col>
686
                   </el-col>
687
 
687
 
688
+                  <el-col :span="24">
689
+                      <el-form-item prop="remark" label="医嘱嘱托 :">
690
+                        <el-input style="width: 300px" v-model="templateFormEdit.remark"></el-input>&nbsp;
691
+                      </el-form-item>
692
+                  </el-col>
693
+
688
 
694
 
689
                 </el-row>
695
                 </el-row>
690
               </el-form>
696
               </el-form>
1453
           prescribing_number_unit: '',
1459
           prescribing_number_unit: '',
1454
           delivery_way: '',
1460
           delivery_way: '',
1455
           execution_frequency: '',
1461
           execution_frequency: '',
1456
-          id: 0
1462
+          id: 0,
1463
+          remark:""
1457
         },
1464
         },
1458
         drugdicForm: {
1465
         drugdicForm: {
1459
           name: '',
1466
           name: '',
2584
         this.templateFormEdit.weekday = row.week_days.split(',')
2591
         this.templateFormEdit.weekday = row.week_days.split(',')
2585
         this.templateFormEdit.drug_id = row.drug_id
2592
         this.templateFormEdit.drug_id = row.drug_id
2586
         this.templateFormEdit.way  = row.way
2593
         this.templateFormEdit.way  = row.way
2594
+        this.templateFormEdit.remark = row.remark
2587
         this.templateEditFormVisible = true
2595
         this.templateEditFormVisible = true
2588
         if (row.parent_id > 0) {
2596
         if (row.parent_id > 0) {
2589
           this.editDialogTitle = '编辑子药'
2597
           this.editDialogTitle = '编辑子药'

+ 22 - 15
src/xt_pages/dialysis/batch_print/batch_print_order_eightyTwo.vue View File

112
               </div>
112
               </div>
113
             </div>
113
             </div>
114
           </div>
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
             </div>
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
             </div>
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
             </div>
138
             </div>
139
+            
133
           </div>
140
           </div>
134
           <div class="row">
141
           <div class="row">
135
             抗凝药物&nbsp;&nbsp;
142
             抗凝药物&nbsp;&nbsp;

+ 7 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_eightyone.vue View File

1905
                 }
1905
                 }
1906
                 let objInfo = {}
1906
                 let objInfo = {}
1907
                 this.records[i].his_advices.forEach((item,index)=>{
1907
                 this.records[i].his_advices.forEach((item,index)=>{
1908
-                  // console.log("itemwowowowowo",item)
1908
+                  console.log("itemwowowowowo",item)
1909
                   let { new_groupno } = item
1909
                   let { new_groupno } = item
1910
                   if(item.delivery_way !='口服' && item.delivery_way!='中药口服' && item.advice_name.indexOf('胰岛素')==-1){
1910
                   if(item.delivery_way !='口服' && item.delivery_way!='中药口服' && item.advice_name.indexOf('胰岛素')==-1){
1911
                     if(item.execution_frequency.indexOf('上机前')==-1){
1911
                     if(item.execution_frequency.indexOf('上机前')==-1){
1942
                   }
1942
                   }
1943
                 })
1943
                 })
1944
                 let newArr = Object.values(objInfo);
1944
                 let newArr = Object.values(objInfo);
1945
-                console.log("newArrwowoowowowo",newArr)
1945
+                console.log("newArrwowoowowowo",this.records[i].his_advices)
1946
                 if(newArr!=null && newArr.length >0){
1946
                 if(newArr!=null && newArr.length >0){
1947
                   for(let y=0;y<newArr.length;y++){
1947
                   for(let y=0;y<newArr.length;y++){
1948
                     for(let z=0;z<this.records[i].his_advices.length;z++){
1948
                     for(let z=0;z<this.records[i].his_advices.length;z++){
1949
-                       if(newArr[y].new_groupno == this.records[i].his_advices[z].new_groupno){
1949
+                       if(newArr[y].new_groupno == this.records[i].his_advices[z].new_groupno && 
1950
+                          this.records[i].his_advices[z].execution_frequency.indexOf('上机前')==-1 &&
1951
+                          this.records[i].his_advices[z].delivery_way.indexOf('口服') ==-1 && 
1952
+                          this.records[i].his_advices[z].delivery_way!='中药口服' && 
1953
+                          this.records[i].his_advices[z].advice_name.indexOf('胰岛素') ==-1){
1950
                           newArr[y].child.push(this.records[i].his_advices[z])
1954
                           newArr[y].child.push(this.records[i].his_advices[z])
1951
                        }
1955
                        }
1952
                     }
1956
                     }

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

1696
                         </tr>
1696
                         </tr>
1697
                         <tr>
1697
                         <tr>
1698
                           <td width="60">时间</td>
1698
                           <td width="60">时间</td>
1699
+                          <td width="60" v-if="org_id == 10735">体温<br />(mmHg)</td>
1699
                           <td width="60">血压<br />(mmHg)</td>
1700
                           <td width="60">血压<br />(mmHg)</td>
1700
                           <td width="50">脉搏<br />(次/分)</td>
1701
                           <td width="50">脉搏<br />(次/分)</td>
1701
                           <td width="50" v-if="org_id!=10489">呼吸<br />(次/分)</td>
1702
                           <td width="50" v-if="org_id!=10489">呼吸<br />(次/分)</td>
1747
                           置换液的速度<br />(ml/h)
1748
                           置换液的速度<br />(ml/h)
1748
                           </td>
1749
                           </td>
1749
                           <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>
1750
-                          <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>
1751
                           <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 />
1752
                             <span v-if="org_id!=10471"> (ml)</span>
1753
                             <span v-if="org_id!=10471"> (ml)</span>
1753
                             <span v-if="org_id==10471">L</span>
1754
                             <span v-if="org_id==10471">L</span>
1762
                             "
1763
                             "
1763
                             width="50"
1764
                             width="50"
1764
                           >
1765
                           >
1765
-                          <span v-if="org_id!=10683">置换量</span>
1766
+                          <span v-if="org_id!=10683">置换量(L)</span>
1766
                           <span v-if="org_id==10683">置换液速度</span>
1767
                           <span v-if="org_id==10683">置换液速度</span>
1767
                             <br />
1768
                             <br />
1768
                             <span v-if="org_id!=10598 && org_id!=10567 && org_id!=10724 && org_id!=10644">
1769
                             <span v-if="org_id!=10598 && org_id!=10567 && org_id!=10724 && org_id!=10644">
1828
                               getTime(monitor_record.operate_time, "{h}:{i}")
1829
                               getTime(monitor_record.operate_time, "{h}:{i}")
1829
                             }}
1830
                             }}
1830
                           </td>
1831
                           </td>
1832
+                          <td v-if="org_id == 10735">
1833
+                            {{
1834
+                              monitor_record.temperature
1835
+                                ? monitor_record.temperature
1836
+                                : ""
1837
+                            }}
1838
+                          </td>
1831
                           <td>
1839
                           <td>
1832
                             {{
1840
                             {{
1833
                               monitor_record.systolic_blood_pressure
1841
                               monitor_record.systolic_blood_pressure
1981
                           <td width="50" v-if="org_id == 10375"><br />
1989
                           <td width="50" v-if="org_id == 10375"><br />
1982
                             {{ monitor_record.replacement_rate?monitor_record.replacement_rate:"0" }}
1990
                             {{ monitor_record.replacement_rate?monitor_record.replacement_rate:"0" }}
1983
                           </td>
1991
                           </td>
1984
-                          <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 />
1985
 
1993
 
1986
                                    {{
1994
                                    {{
1987
                                      monitor_record.ultrafiltration_rate
1995
                                      monitor_record.ultrafiltration_rate

+ 8 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

388
           <span class="unit">{{ ultrafiltration != "0" ? "L" : "" }}</span>
388
           <span class="unit">{{ ultrafiltration != "0" ? "L" : "" }}</span>
389
         </li>
389
         </li>
390
 
390
 
391
-        <li v-if="isShow('电导度')">
391
+        <!-- <li v-if="isShow('电导度')">
392
           <label>电导度 : </label>
392
           <label>电导度 : </label>
393
           <span class="content">{{
393
           <span class="content">{{
394
             conductivity != "0" ? conductivity : ""
394
             conductivity != "0" ? conductivity : ""
395
           }}</span>
395
           }}</span>
396
           <span class="unit">{{ conductivity != "0" ? "mS/m" : "" }}</span>
396
           <span class="unit">{{ conductivity != "0" ? "mS/m" : "" }}</span>
397
-        </li>
397
+        </li> -->
398
 
398
 
399
         <li v-if="isShow('置换液') && dialysis_mode == 'HDF'">
399
         <li v-if="isShow('置换液') && dialysis_mode == 'HDF'">
400
           <label
400
           <label
419
           <span class="unit"></span>
419
           <span class="unit"></span>
420
         </li>
420
         </li>
421
 
421
 
422
+        <li v-if="isShow('电导度')">
423
+          <label>电导度: </label>
424
+          <span class="content">{{ this.prescription.conduct }}</span>
425
+          <span class="unit"></span>
426
+        </li>
427
+
422
         <li v-if="isShow('血管通路')">
428
         <li v-if="isShow('血管通路')">
423
           <label>血管通路: </label>
429
           <label>血管通路: </label>
424
           <span class="content">{{ blood_access }}</span>
430
           <span class="content">{{ blood_access }}</span>

+ 6 - 3
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

49
           <el-col :span="8" v-if="isShow('实际超滤量')">
49
           <el-col :span="8" v-if="isShow('实际超滤量')">
50
             <el-form-item
50
             <el-form-item
51
               label="实际超滤量(ml): " :prop="isName('实际超滤量')" :rules="isCheckmust('实际超滤量')"
51
               label="实际超滤量(ml): " :prop="isName('实际超滤量')" :rules="isCheckmust('实际超滤量')"
52
-              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.template_id == 56 || this.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410 || this.$store.getters.xt_user.template_info.org_id == 10495 || this.$store.getters.xt_user.template_info.org_id == 10558 || this.$store.getters.xt_user.template_info.org_id == 10597 || this.$store.getters.xt_user.template_info.org_id == 10599 || this.$store.getters.xt_user.template_info.org_id == 10612 || this.$store.getters.xt_user.template_info.org_id == 10617 || this.$store.getters.xt_user.template_info.org_id == 10480 || this.$store.getters.xt_user.template_info.org_id == 10693  || this.$store.getters.xt_user.template_info.org_id == 10697 || this.$store.getters.xt_user.template_info.org_id == 10702 || this.$store.getters.xt_user.template_info.org_id == 10635 || this.$store.getters.xt_user.template_info.org_id == 10721 || this.$store.getters.xt_user.template_info.org_id == 10727"  >
52
+              v-if="(this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.template_id == 56 || this.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410 || this.$store.getters.xt_user.template_info.org_id == 10495 || this.$store.getters.xt_user.template_info.org_id == 10558 || this.$store.getters.xt_user.template_info.org_id == 10597 || this.$store.getters.xt_user.template_info.org_id == 10599 || this.$store.getters.xt_user.template_info.org_id == 10612 || this.$store.getters.xt_user.template_info.org_id == 10617 || this.$store.getters.xt_user.template_info.org_id == 10480 || this.$store.getters.xt_user.template_info.org_id == 10693  || this.$store.getters.xt_user.template_info.org_id == 10697 || this.$store.getters.xt_user.template_info.org_id == 10702 || this.$store.getters.xt_user.template_info.org_id == 10635 || this.$store.getters.xt_user.template_info.org_id == 10721 || this.$store.getters.xt_user.template_info.org_id == 10727) && this.$store.getters.xt_user.template_info.org_id != 10624"  >
53
               <el-input v-model="form.actual_ultrafiltration"></el-input>
53
               <el-input v-model="form.actual_ultrafiltration"></el-input>
54
             </el-form-item>
54
             </el-form-item>
55
             <el-form-item label="实际超滤量(L): " v-else :prop="isName('实际超滤量')" :rules="isCheckmust('实际超滤量')">
55
             <el-form-item label="实际超滤量(L): " v-else :prop="isName('实际超滤量')" :rules="isCheckmust('实际超滤量')">
1221
               ParamsQuery['mode'] = '3'
1221
               ParamsQuery['mode'] = '3'
1222
             }
1222
             }
1223
           }
1223
           }
1224
-
1224
+          
1225
+          if(this.form.machine_run == 0){
1226
+            this.form.machine_run = ""
1227
+          }
1225
           const data = {}
1228
           const data = {}
1226
           data['weight_after'] = this.form.weight_after ? parseFloat(this.form.weight_after) : 0
1229
           data['weight_after'] = this.form.weight_after ? parseFloat(this.form.weight_after) : 0
1227
           data['weight_loss'] = this.form.weight_loss ? parseFloat(this.form.weight_loss) : 0
1230
           data['weight_loss'] = this.form.weight_loss ? parseFloat(this.form.weight_loss) : 0
1291
           data["lapse"] = this.form.lapse
1294
           data["lapse"] = this.form.lapse
1292
           data["consciousness"] = this.form.consciousness
1295
           data["consciousness"] = this.form.consciousness
1293
           data["fallrisk"] = this.form.fallrisk
1296
           data["fallrisk"] = this.form.fallrisk
1294
-          data["machine_run"] = this.form.machine_run
1297
+          data["machine_run"] = this.form.machine_run?this.form.machine_run:""
1295
           data["after_urea"] = this.form.after_urea
1298
           data["after_urea"] = this.form.after_urea
1296
           data["pip_coagulation"] = this.form.pip_coagulation
1299
           data["pip_coagulation"] = this.form.pip_coagulation
1297
           data["accumulated_blood_volume"] = this.form.accumulated_blood_volume
1300
           data["accumulated_blood_volume"] = this.form.accumulated_blood_volume

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

3023
             } else if (schedual.schedule_type == 3) {
3023
             } else if (schedual.schedule_type == 3) {
3024
               this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
3024
               this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
3025
             }
3025
             }
3026
+           }else if(this.$store.getters.xt_user.org.id == 10735){
3027
+              if (schedual.schedule_type == 1) {
3028
+              this.start_time = year + '-' + month + '-' + day + ' ' + '6:00'
3029
+            } else if (schedual.schedule_type == 2) {
3030
+              this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
3031
+            } else if (schedual.schedule_type == 3) {
3032
+              this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
3033
+            }
3026
            }else if(this.$store.getters.xt_user.org.id == 10353){
3034
            }else if(this.$store.getters.xt_user.org.id == 10353){
3027
               if (schedual.schedule_type == 1) {
3035
               if (schedual.schedule_type == 1) {
3028
               this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
3036
               this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
3305
         this.pre = pre
3313
         this.pre = pre
3306
         // console.log("pre1", pre);
3314
         // console.log("pre1", pre);
3307
         this.getPermission()
3315
         this.getPermission()
3308
-        if(this.$store.getters.xt_user.template_info.org_id==10164 || this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10635 || this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id == 10726 || this.$store.getters.xt_user.template_info.org_id == 10727  || this.$store.getters.xt_user.template_info.org_id == 10731){
3316
+        if(this.$store.getters.xt_user.template_info.org_id==10164 || this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10635 || this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id == 10726 || this.$store.getters.xt_user.template_info.org_id == 10727  || this.$store.getters.xt_user.template_info.org_id == 10731 || this.$store.getters.xt_user.template_info.org_id == 10735){
3309
           this.getPatientBefor()
3317
           this.getPatientBefor()
3310
         }
3318
         }
3311
 
3319
 

+ 11 - 4
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

2869
 
2869
 
2870
         var resp = rs.data.data;
2870
         var resp = rs.data.data;
2871
 
2871
 
2872
-        this.form.operate_time = resp.monitor.operate_time
2872
+        //针对胶州少海医院
2873
+        if(this.org_id == 10735){
2874
+          this.form.operate_time = resp.monitor.operate_time
2875
+          ? (resp.monitor.operate_time + 1800) * 1000
2876
+          : Date.parse(new Date());
2877
+        }else{
2878
+          this.form.operate_time = resp.monitor.operate_time
2873
           ? (resp.monitor.operate_time + 3600) * 1000
2879
           ? (resp.monitor.operate_time + 3600) * 1000
2874
           : Date.parse(new Date());
2880
           : Date.parse(new Date());
2875
-
2881
+        }
2882
+      
2876
 
2883
 
2877
         this.form.temperature = ""
2884
         this.form.temperature = ""
2878
 
2885
 
2882
         this.form.diastolic_bp = ""; // this.last_monitor_record.diastolic_blood_pressure;
2889
         this.form.diastolic_bp = ""; // this.last_monitor_record.diastolic_blood_pressure;
2883
         this.form.blood_flow_volume = resp.monitor.blood_flow_volume ? resp.monitor.blood_flow_volume: "";
2890
         this.form.blood_flow_volume = resp.monitor.blood_flow_volume ? resp.monitor.blood_flow_volume: "";
2884
         // 静脉压
2891
         // 静脉压
2885
-        if (this.org_id == 10060 || this.org_id == 10387) {
2892
+        if (this.org_id == 10060 || this.org_id == 10387 || this.org_id ==10735) {
2886
           this.form.venous_pressure = resp.monitor.venous_pressure;
2893
           this.form.venous_pressure = resp.monitor.venous_pressure;
2887
         }else if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id == 10469 || this.org_id == 10471 ){
2894
         }else if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id == 10469 || this.org_id == 10471 ){
2888
           this.form.venous_pressure = 80
2895
           this.form.venous_pressure = 80
2906
         this.form.arterial_pressure_type = resp.monitor.arterial_pressure_type
2913
         this.form.arterial_pressure_type = resp.monitor.arterial_pressure_type
2907
           ? resp.monitor.arterial_pressure_type
2914
           ? resp.monitor.arterial_pressure_type
2908
           : 1;
2915
           : 1;
2909
-        if (this.org_id == 10060  || this.org_id == 10387) {
2916
+        if (this.org_id == 10060  || this.org_id == 10387 || this.org_id == 10735) {
2910
           this.form.transmembrane_pressure = resp.monitor.transmembrane_pressure;
2917
           this.form.transmembrane_pressure = resp.monitor.transmembrane_pressure;
2911
         }else if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340){
2918
         }else if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340){
2912
           this.form.transmembrane_pressure = 60
2919
           this.form.transmembrane_pressure = 60

+ 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
                     }

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue View File

1300
                             {{
1300
                             {{
1301
                               monitor.displacement_quantity
1301
                               monitor.displacement_quantity
1302
                                 ? monitor.displacement_quantity
1302
                                 ? monitor.displacement_quantity
1303
-                                : "0"
1303
+                                : ""
1304
                             }}
1304
                             }}
1305
                           </span>
1305
                           </span>
1306
                         </td>
1306
                         </td>

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

383
                     <div
383
                     <div
384
                       class="inline_block"
384
                       class="inline_block"
385
                       style="margin-left: 10px; flex: 1"
385
                       style="margin-left: 10px; flex: 1"
386
-                      v-if="(org_id == 10598 || org_id == 0) &&  predialysis.internal_fistula!=''"
386
+                      v-if="(org_id == 10598 ) &&  predialysis.internal_fistula!=''"
387
                     >
387
                     >
388
                       穿刺针:
388
                       穿刺针:
389
                       <div
389
                       <div
390
                         class="under_line"
390
                         class="under_line"
391
                         style="width: 100px; text-align: center"
391
                         style="width: 100px; text-align: center"
392
                       >
392
                       >
393
-                      <span v-if="org_id==10580">
393
+                      <span>
394
                         {{ dialysisOrder.puncture_needle}}
394
                         {{ dialysisOrder.puncture_needle}}
395
                       </span>
395
                       </span>
396
-                      <span v-if="org_id != 10580 && org_id!=0">
397
-                        {{
398
-                          predialysis.puncture_needle
399
-                            ? predialysis.puncture_needle
400
-                            : "/"
401
-                        }}
402
-                      </span>
403
 
396
 
404
                       </div>
397
                       </div>
405
                     </div>
398
                     </div>
413
                         class="under_line"
406
                         class="under_line"
414
                         style="width: 100px; text-align: center"
407
                         style="width: 100px; text-align: center"
415
                       >
408
                       >
416
-                      <span v-if="org_id==10580">
417
-                        {{ dialysisOrder.puncture_needle}}
418
-                      </span>
419
-                      <span v-if="org_id != 10580 && org_id!=0">
409
+                      <span>
420
                         {{
410
                         {{
421
                           predialysis.puncture_needle
411
                           predialysis.puncture_needle
422
                             ? predialysis.puncture_needle
412
                             ? predialysis.puncture_needle
1756
                       </div>
1746
                       </div>
1757
                     </div>
1747
                     </div>
1758
                   </div>
1748
                   </div>
1759
-
1760
-
1761
                   <div
1749
                   <div
1762
                     class="row"
1750
                     class="row"
1763
                     style="padding: 2px 0; line-height: 23px; display: flex"
1751
                     style="padding: 2px 0; line-height: 23px; display: flex"
1812
                       </tr>
1800
                       </tr>
1813
                       <tr>
1801
                       <tr>
1814
                         <td width="50">时间</td>
1802
                         <td width="50">时间</td>
1803
+                        <td width="50" v-if="org_id==10735">体温(°C)</td>
1815
                         <td width="65">血压<br />(mmHg)</td>
1804
                         <td width="65">血压<br />(mmHg)</td>
1816
                         <td width="50">脉搏<br />(次/分)</td>
1805
                         <td width="50">脉搏<br />(次/分)</td>
1817
                         <td width="50" v-if="org_id!=10489">呼吸<br />(次/分)</td>
1806
                         <td width="50" v-if="org_id!=10489">呼吸<br />(次/分)</td>
1852
                         </td>
1841
                         </td>
1853
                         <td width="50" v-if="org_id == 10121">SpO₂<br />(%)</td>
1842
                         <td width="50" v-if="org_id == 10121">SpO₂<br />(%)</td>
1854
                         <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>
1855
-                        <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>
1856
                         <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">
1857
                           超滤量<br />
1846
                           超滤量<br />
1858
                          <span v-if="org_id == 10471">L</span>
1847
                          <span v-if="org_id == 10471">L</span>
1864
                           <span v-if="org_id == 10683">置换液速度</span>
1853
                           <span v-if="org_id == 10683">置换液速度</span>
1865
                           <span v-if="org_id!=10683">置换量</span>
1854
                           <span v-if="org_id!=10683">置换量</span>
1866
                           <br />
1855
                           <br />
1867
-                          <span v-if="org_id!=10598 && org_id!=10567 && org_id!=10724 && org_id!=10644">
1856
+                          <span v-if="org_id!=10598 && org_id!=10567 && org_id!=10724 && org_id!=10644 && org_id!=10353">
1868
                             <span v-if="org_id!=0&&org_id!=10683">(ml)</span>
1857
                             <span v-if="org_id!=0&&org_id!=10683">(ml)</span>
1869
                             <span v-if="org_id==10683">(ml/h)</span>
1858
                             <span v-if="org_id==10683">(ml/h)</span>
1870
                           </span>
1859
                           </span>
1871
-                          <span v-if="org_id==10598 || org_id == 10567 || org_id == 10724 || org_id == 10644">(L)</span>
1860
+                          <span v-if="org_id==10598 || org_id == 10567 || org_id == 10724 || org_id == 10644 || org_id== 10353">(L)</span>
1872
                         </td>
1861
                         </td>
1873
                         <td width="50" v-if="org_id == 3877 || org_id == 10449">滤前压(mmHg)</td>
1862
                         <td width="50" v-if="org_id == 3877 || org_id == 10449">滤前压(mmHg)</td>
1874
                         <td width="50" v-if="org_id == 9538 || org_id ==10600 || org_id ==10629 || org_id ==10510 || org_id == 10580 || org_id == 10598 || org_id == 10567 || org_id == 0 || org_id == 10724">KT/V</td>
1863
                         <td width="50" v-if="org_id == 9538 || org_id ==10600 || org_id ==10629 || org_id ==10510 || org_id == 10580 || org_id == 10598 || org_id == 10567 || org_id == 0 || org_id == 10724">KT/V</td>
1883
 
1872
 
1884
                       <tr v-for="(monitor, monindex) in monitors" :key="monindex">
1873
                       <tr v-for="(monitor, monindex) in monitors" :key="monindex">
1885
                         <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
1874
                         <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
1875
+                        <td v-if="org_id == 10735">
1876
+                          {{ monitor.temperature ? monitor.temperature : "" }}
1877
+                        </td>
1886
                         <td>{{monitor.systolic_blood_pressure? monitor.systolic_blood_pressure + "/": ""}}
1878
                         <td>{{monitor.systolic_blood_pressure? monitor.systolic_blood_pressure + "/": ""}}
1887
                           {{monitor.diastolic_blood_pressure? monitor.diastolic_blood_pressure: ""}}</td>
1879
                           {{monitor.diastolic_blood_pressure? monitor.diastolic_blood_pressure: ""}}</td>
1888
                         <td>{{ monitor.pulse_frequency? monitor.pulse_frequency: ""}}</td>
1880
                         <td>{{ monitor.pulse_frequency? monitor.pulse_frequency: ""}}</td>
1978
                         <td v-if="org_id == 10375"><br />
1970
                         <td v-if="org_id == 10375"><br />
1979
                           {{ monitor.replacement_rate? monitor.replacement_rate: ""}}
1971
                           {{ monitor.replacement_rate? monitor.replacement_rate: ""}}
1980
                         </td>
1972
                         </td>
1981
-                        <td v-if="org_id == 10489 "><br />
1973
+                        <td v-if="org_id == 10489 || org_id == 10735 || org_id == 0"><br />
1982
                           {{ monitor.ultrafiltration_rate? monitor.ultrafiltration_rate: ""}}
1974
                           {{ monitor.ultrafiltration_rate? monitor.ultrafiltration_rate: ""}}
1983
                         </td>
1975
                         </td>
1984
                         <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">
2031
                                     : ""
2023
                                     : ""
2032
                                 }}
2024
                                 }}
2033
                               </span>
2025
                               </span>
2034
-                             
2026
+
2035
                             </span>
2027
                             </span>
2036
                             </span>
2028
                             </span>
2037
                             <span v-if="org_id == 10683">
2029
                             <span v-if="org_id == 10683">
5439
               tempmonitorflag = false;
5431
               tempmonitorflag = false;
5440
             }
5432
             }
5441
             if ((tempmonitorflag && index == this.monitors.length - 1)&&(this.org_id!=10414)) {
5433
             if ((tempmonitorflag && index == this.monitors.length - 1)&&(this.org_id!=10414)) {
5442
-              if(this.org_id!=10683){
5434
+              if(this.org_id!=10683 && this.org_id!=0  && this.org_id!=10644){
5443
                 this.monitors[index].end = "【结束透析】";
5435
                 this.monitors[index].end = "【结束透析】";
5444
               }
5436
               }
5445
             }
5437
             }

+ 32 - 60
src/xt_pages/dialysis/template/DialysisPrintOrdereightytwo.vue View File

92
               </div>
92
               </div>
93
             </div>
93
             </div>
94
         </div>
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
           </div>
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
           </div>
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
           </div>
114
           </div>
115
+          
116
+          
109
         </div>
117
         </div>
110
 
118
 
111
         <div class="row">
119
         <div class="row">
114
         <div class="row">
122
         <div class="row">
115
           抗凝药物&nbsp;&nbsp;
123
           抗凝药物&nbsp;&nbsp;
116
           <div class="inline_block under_line" style="width:90%;text-align: left;">
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
             <div class="inline_block">&nbsp;&nbsp;&nbsp;
126
             <div class="inline_block">&nbsp;&nbsp;&nbsp;
119
               剂量:首剂
127
               剂量:首剂
120
               <div class="inline_block" style="width:50px;text-align:center">
128
               <div class="inline_block" style="width:50px;text-align:center">
1313
           this.doctorForm.url = doctorname.url
1321
           this.doctorForm.url = doctorname.url
1314
           var prescription = response.data.data.dialysisPrescription
1322
           var prescription = response.data.data.dialysisPrescription
1315
           console.log('透析处方', prescription)
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
           if (prescription.blood_access === 1) {
1324
           if (prescription.blood_access === 1) {
1362
             prescription.blood_access = '正常'
1325
             prescription.blood_access = '正常'
1363
           }
1326
           }
1763
       const options = this.anticoagulantsConfit
1726
       const options = this.anticoagulantsConfit
1764
       if(val != ''){
1727
       if(val != ''){
1765
         for(let i in options){
1728
         for(let i in options){
1766
-          if(val == options[i].name){
1729
+          if(val == options[i].id){
1767
             return options[i].shouji_unit
1730
             return options[i].shouji_unit
1768
           }
1731
           }
1769
         }
1732
         }
1776
       const options = this.anticoagulantsConfit
1739
       const options = this.anticoagulantsConfit
1777
       if(val != ''){
1740
       if(val != ''){
1778
         for(let i in options){
1741
         for(let i in options){
1779
-          if(val == options[i].name){
1742
+          if(val == options[i].id){
1780
             return options[i].weichi_unit
1743
             return options[i].weichi_unit
1781
           }
1744
           }
1782
         }
1745
         }
1788
       const options = this.anticoagulantsConfit
1751
       const options = this.anticoagulantsConfit
1789
       if(val != ''){
1752
       if(val != ''){
1790
         for(let i in options){
1753
         for(let i in options){
1791
-          if(val == options[i].name){
1754
+          if(val == options[i].id){
1792
             return options[i].zongliang_unit
1755
             return options[i].zongliang_unit
1793
           }
1756
           }
1794
         }
1757
         }
1796
         return ''
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
   watch: {
1772
   watch: {
1801
     'patientInfo.gender': function() {
1773
     'patientInfo.gender': function() {

+ 4 - 4
src/xt_pages/dialysis/template/DialysisPrintOrdersixtySeven.vue View File

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
     <div id="dialysis-print-box-1">
3
     <div id="dialysis-print-box-1">
4
-      <div
5
-        id="dialysis-print-box-1-1"
4
+      <el-button type="primary" @click="checkData">一键核对</el-button>
5
+      <div id="dialysis-print-box-1-1"
6
         class="dialysis-print-order print-template-two print_page_main_content"
6
         class="dialysis-print-order print-template-two print_page_main_content"
7
       >
7
       >
8
         <div style="display: inline-block; width: 100%; text-align: center">
8
         <div style="display: inline-block; width: 100%; text-align: center">
26
               display: inline-block;
26
               display: inline-block;
27
             "
27
             "
28
           >
28
           >
29
-            血液净化治疗记录单
29
+            血液净化治疗记录单67
30
           </div>
30
           </div>
31
 
31
 
32
           <div class="infoTitle"> 透前情况</div>
32
           <div class="infoTitle"> 透前情况</div>
373
                           <span>{{
373
                           <span>{{
374
                             it.execution_frequency
374
                             it.execution_frequency
375
                           }}</span>
375
                           }}</span>
376
-                          
376
+
377
                           <span v-if="it.remark !=''"
377
                           <span v-if="it.remark !=''"
378
                             >({{ it.remark }})</span
378
                             >({{ it.remark }})</span
379
                           >
379
                           >

+ 6 - 2
src/xt_pages/outpatientCharges/statementPrint.vue View File

69
       <!-- 顺有好 -->
69
       <!-- 顺有好 -->
70
       <printSixtheen :info="info" v-if="org_id == 10697"></printSixtheen>
70
       <printSixtheen :info="info" v-if="org_id == 10697"></printSixtheen>
71
       <!-- 杏康 -->
71
       <!-- 杏康 -->
72
-      <printSeventheen  :info="info" v-if=" org_id == 10721"></printSeventheen>
72
+      <printSeventheen  :info="info" v-if=" org_id == 10721 || org_id == 0"></printSeventheen>
73
+      <printeighteen :info="info" v-if=" org_id == 10726 || org_id == 0"></printeighteen>
74
+
73
       <printOne :info="info" v-if=" org_id != 9990 &&
75
       <printOne :info="info" v-if=" org_id != 9990 &&
74
             org_id != 10138 && org_id != 9504 && org_id != 10028 &&
76
             org_id != 10138 && org_id != 9504 && org_id != 10028 &&
75
             org_id != 10610 && org_id !=10537 && org_id !=10697 &&
77
             org_id != 10610 && org_id !=10537 && org_id !=10697 &&
110
 import printfivetheen from './statementTemplate/printfivetheen'
112
 import printfivetheen from './statementTemplate/printfivetheen'
111
 import printSixtheen from './statementTemplate/printSixtheen'
113
 import printSixtheen from './statementTemplate/printSixtheen'
112
 import printSeventheen from './statementTemplate/printSeventheen'
114
 import printSeventheen from './statementTemplate/printSeventheen'
115
+import printeighteen from './statementTemplate/printeighteen'
113
 export default {
116
 export default {
114
   name: 'dialysisPrintOrder',
117
   name: 'dialysisPrintOrder',
115
   components: {
118
   components: {
130
     printfourteen,
133
     printfourteen,
131
     printfivetheen,
134
     printfivetheen,
132
     printSixtheen,
135
     printSixtheen,
133
-    printSeventheen
136
+    printSeventheen,
137
+    printeighteen
134
   },
138
   },
135
   props: {
139
   props: {
136
     paramsObj: Object
140
     paramsObj: Object

+ 382 - 0
src/xt_pages/outpatientCharges/statementTemplate/printeighteen.vue View File

1
+<template>
2
+  <div  id="statement-print" class="statement-print"
3
+       style="position: relative;">
4
+    <div class="print-content">
5
+      <div class="print-title">
6
+        <h1 style="text-align: center;">江西省抚州市医疗保险医疗费用结算单</h1>
7
+      </div>
8
+
9
+      <div class="print-tab" style="margin: 0px auto; text-align: center;font-size: 16px;">
10
+        <table class="statementTable" border="1">
11
+          <tr>
12
+            <td width="100">机构编码</td>
13
+            <td width="150">{{info.fixmedins_code}}</td>
14
+            <td width="120">医保结算级别</td>
15
+            <td width="150" colspan="2">
16
+              <span  v-if="info.hosp_lv == '1'">三级特等</span>
17
+              <span  v-else-if="info.hosp_lv == '2'">三级甲等</span>
18
+              <span v-else-if="info.hosp_lv == '3'">三级乙等</span>
19
+              <span v-else-if="info.hosp_lv == '4'">三级丙等</span>
20
+              <span v-else-if="info.hosp_lv == '5'">二级甲等</span>
21
+              <span v-else-if="info.hosp_lv == '6'">二级乙等</span>
22
+              <span v-else-if="info.hosp_lv == '7'">二级丙等</span>
23
+              <span  v-else-if="info.hosp_lv == '8'">一级甲等</span>
24
+              <span v-else-if="info.hosp_lv == '9'">一级乙等</span>
25
+              <span v-else-if="info.hosp_lv == '10'">一级丙等</span>
26
+              <span  v-else-if="info.hosp_lv == '11'">无等级</span>
27
+              <span  v-else></span>
28
+            </td>
29
+            <td width="100">机构名称</td>
30
+            <td colspan="4">{{info.fixmedins_name}}</td>
31
+          </tr>
32
+          <tr>
33
+            <td width="100">姓名</td>
34
+            <td width="150">{{info.psn_name}}</td>
35
+            <td width="120">性别</td>
36
+            <td width="50" v-if="info.gend == '1'">男</td>
37
+            <td width="50" v-if="info.gend == '2'">女</td>
38
+            <td width="100">出生日期</td>
39
+            <td width="100">{{getBirth(info.certno)}}</td>
40
+            <td width="100">人员类别</td>
41
+            <td  width="150" v-if="info.psn_type == '11'">在职</td>
42
+            <td  width="150" v-else-if="info.psn_type == '1101'">职工在职</td>
43
+            <td  width="150" v-else-if="info.psn_type == '1102'">公务员在职</td>
44
+            <td  width="150" v-else-if="info.psn_type == '1103'">灵活就业人员在职</td>
45
+            <td  width="150" v-else-if="info.psn_type == '1160'">地方其他扩展人员</td>
46
+
47
+            <td  width="150" v-else-if="info.psn_type == '12'">退休人员</td>
48
+            <td  width="150" v-else-if="info.psn_type == '1201'">职工退休</td>
49
+            <td  width="150" v-else-if="info.psn_type == '1202'">公务员退休</td>
50
+            <td  width="150" v-else-if="info.psn_type == '1203'">灵活就业人员退休</td>
51
+            <td  width="150" v-else-if="info.psn_type == '1260'">地方其他扩展人员</td>
52
+
53
+            <td  width="150" v-else-if="info.psn_type == '13'">离休</td>
54
+            <td  width="150" v-else-if="info.psn_type == '1300'">离休人员</td>
55
+            <td  width="150" v-else-if="info.psn_type == '1360'">地方其他扩展人员</td>
56
+
57
+            <td  width="150" v-else-if="info.psn_type == '14'">居民(未成年)</td>
58
+            <td  width="150" v-else-if="info.psn_type == '1401'">新生儿</td>
59
+            <td  width="150" v-else-if="info.psn_type == '1402'">学龄前儿童</td>
60
+            <td  width="150" v-else-if="info.psn_type == '1403'">中小学生</td>
61
+            <td  width="150" v-else-if="info.psn_type == '1404'">大学生</td>
62
+            <td  width="150" v-else-if="info.psn_type == '1405'">未成年(未入学)</td>
63
+
64
+            <td  width="150" v-else-if="info.psn_type == '15'">居民(成年)</td>
65
+            <td  width="150" v-else-if="info.psn_type == '1501'">普通居民(成年)</td>
66
+            <td  width="150" v-else-if="info.psn_type == '1560'">地方其他扩展身份</td>
67
+
68
+            <td  width="150" v-else-if="info.psn_type == '16'">居民(老年)</td>
69
+            <td width="150" v-else></td>
70
+            <td width="120">公务员标志</td>
71
+            <td width="80">否</td>
72
+            
73
+          </tr>
74
+          <tr>
75
+            <td>单位名称</td>
76
+            <td colspan="4">{{info.emp_name}}</td>
77
+            <td width="100">联系电话</td>
78
+            <td width="100">{{info.patient.phone}}</td>
79
+            <td width="150">人员身份类别</td>
80
+            <td colspan="2"></td>
81
+          </tr>
82
+          <tr>
83
+            <td width="100">结算ID</td>
84
+            <td width="150"></td>
85
+            <td width="120">住院号</td>
86
+            <td width="150" colspan="2">{{info.number}}</td>
87
+            <td width="100">医疗类别</td>
88
+            <td width="150">
89
+              <span v-if="info.med_type == '11'">普通门诊</span>
90
+              <span v-if="info.med_type == '12'">门诊挂号</span>
91
+              <span v-if="info.med_type == '13'">急诊</span>
92
+              <span v-if="info.med_type == '14'">门诊特殊病</span>
93
+              <span v-if="info.med_type == '15'">门诊统筹</span>
94
+              <span v-if="info.med_type == '16'">门诊慢性病</span>
95
+              <span v-if="info.med_type == '21'">普通住院</span>
96
+            </td>
97
+            <td width="150">住院天数</td>
98
+            <td colspan="2">{{getDay(info.begndate,info.enddate)}}</td>
99
+          </tr>
100
+          <tr>
101
+            <td>身份证号</td>
102
+            <td colspan="4">{{info.certno}}</td>
103
+            <td width="100">险种</td>
104
+            <td width="100">
105
+              <span v-if="info.insutype == '310'">职工基本医疗保险</span>
106
+              <span v-if="info.insutype == '320'">公务员医疗补助</span>
107
+              <span v-if="info.insutype == '330'">大额医疗费用补助</span>
108
+              <span v-if="info.insutype == '340'">离休人员医疗保障</span>
109
+              <span v-if="info.insutype == '390'">城乡居民基本医疗保险</span>
110
+              <span v-if="info.insutype == '392'">城乡居民大病医疗保险</span>
111
+              <span v-if="info.insutype == '510'">生育保险</span>
112
+            </td>
113
+            <td width="150">参保医保区划</td>
114
+            <td colspan="2"></td>
115
+          </tr>
116
+          <tr>
117
+            <td width="100">科别</td>
118
+            <td width="150">门诊</td>
119
+            <td width="120">床号</td>
120
+            <td width="150" colspan="2"></td>
121
+            <td width="100">入院日期</td>
122
+            <td width="150">{{info.begndate ? info.begndate.split(' ')[0] : ''}}</td>
123
+            <td width="150">出院日期</td>
124
+            <td colspan="2">{{info.enddate ? info.enddate.split(' ')[0] : ''}}</td>
125
+          </tr>
126
+          <tr>
127
+            <td width="100">入院主要诊断</td>
128
+            <td colspan="2">{{info.dise_name}}</td>
129
+            <td width="150" colspan="2">出院主要诊断</td>
130
+            <td colspan="2">{{info.dise_name}}</td>
131
+            <td width="150">结算时间</td>
132
+            <td colspan="2">{{info.setl_time ? info.setl_time.split(' ')[0] : ''}}</td>
133
+          </tr>
134
+          <tr>
135
+            <td width="100">项目名称</td>
136
+            <td width="200" colspan="2">金额</td>
137
+            <td width="200" colspan="2">符合政策范围</td>
138
+            <td width="250" colspan="2">先行自付 </td>
139
+            <td width="150">全自费</td>
140
+            <td colspan="2">超限价</td> 
141
+          </tr>
142
+          <tr v-if="info.treat_cost_total > 0">
143
+            <td width="100">治疗费</td>
144
+            <td width="200" colspan="2">{{info.treat_cost_total}}</td>
145
+            <td width="200" colspan="2">{{info.treatInscpTotal}}</td>
146
+            <td width="250" colspan="2">{{info.treat_cost_part_self_total}}</td>
147
+            <td width="150">{{info.treatSelfTotal}}</td>
148
+            <td colspan="2">{{info.treat_cost_self_total}}</td>
149
+          </tr>
150
+          <tr>
151
+            <td width="100">护理费</td>
152
+            <td width="200" colspan="2"></td>
153
+            <td width="200" colspan="2"></td>
154
+            <td width="250" colspan="2"></td>
155
+            <td width="150"></td>
156
+            <td colspan="2"></td>
157
+          </tr>
158
+          <tr v-if="info.material_cost_total > 0">
159
+            <td width="100">卫生材料费</td>
160
+            <td width="200" colspan="2">{{info.material_cost_total}}</td>
161
+            <td width="200" colspan="2">{{info.materialInscpTotal}}</td>
162
+            <td width="250" colspan="2">{{info.material_cost_part_self_total}}</td>
163
+            <td width="150">{{info.materialSelfTotal}}</td>
164
+            <td colspan="2">{{info.material_cost_self_total}}</td>
165
+          </tr>
166
+          <tr v-if="info.western_medicine_cost_total > 0">
167
+            <td width="100">西药费</td>
168
+            <td width="200" colspan="2">{{info.western_medicine_cost_total}}</td>
169
+            <td width="200" colspan="2">{{info.westernMedicineInscpTotal}}</td>
170
+            <td width="250" colspan="2">{{info.western_medicine_cost_part_self_total}}</td>
171
+            <td width="150">{{info.westernMedicineSelfTotal}}</td>
172
+            <td colspan="2">{{info.western_medicine_cost_self_total}}</td>
173
+          </tr>
174
+          <tr>
175
+            <td width="100">金额合计</td>
176
+            <td width="200" colspan="2">
177
+              {{(parseFloat(info.treat_cost_total) + parseFloat(info.material_cost_total) + 
178
+                  parseFloat(info.western_medicine_cost_total) ).toFixed(2) 
179
+              }}
180
+            </td>
181
+            <td width="200" colspan="2">
182
+              {{(parseFloat(info.treatInscpTotal) + parseFloat(info.materialInscpTotal) + 
183
+                  parseFloat(info.westernMedicineInscpTotal) ).toFixed(2) 
184
+              }}
185
+            </td>
186
+            <td width="250" colspan="2">
187
+              {{(parseFloat(info.treat_cost_part_self_total) + parseFloat(info.material_cost_part_self_total) + 
188
+                  parseFloat(info.western_medicine_cost_part_self_total) ).toFixed(2) 
189
+              }}
190
+            </td>
191
+            <td width="150">
192
+              {{(parseFloat(info.treatSelfTotal) + parseFloat(info.materialSelfTotal) + 
193
+                  parseFloat(info.westernMedicineSelfTotal) ).toFixed(2) 
194
+              }}
195
+            </td>
196
+            <td colspan="2">
197
+              {{(parseFloat(info.treat_cost_self_total) + parseFloat(info.material_cost_self_total) + 
198
+                  parseFloat(info.western_medicine_cost_self_total) ).toFixed(2) 
199
+              }}
200
+            </td>
201
+          </tr>
202
+          <tr>
203
+            <td colspan="3">起付线</td>
204
+            <td colspan="2">
205
+              {{info.new_order.act_pay_dedc}}
206
+            </td>
207
+            <td colspan="2">基本统筹基金支付</td>
208
+            <td colspan="3">{{info.hifp_pay}}</td>
209
+          </tr>
210
+          <tr>
211
+            <td colspan="3">大病基金支付</td>
212
+            <td colspan="2">
213
+              {{info.hifmi_pay}}
214
+            </td>
215
+            <td colspan="2">医疗救助基金支付</td>
216
+            <td colspan="3">{{info.maf_pay}}</td>
217
+          </tr>
218
+          <tr>
219
+            <td colspan="3">重大病疾病补充保险支付</td>
220
+            <td colspan="2">
221
+              {{info.new_order.hifmi_pay}}
222
+            </td>
223
+            <td colspan="2">公务员补助支付</td>
224
+            <td colspan="3">
225
+              {{info.new_order.cvlserv_pay }}
226
+            </td>
227
+          </tr>
228
+          <tr>
229
+            <td colspan="3">其他基金支付</td>
230
+            <td colspan="2">{{info.oth_pay}}</td>
231
+            <td colspan="2">个人帐户支付</td>
232
+            <td colspan="3">{{info.acct_pay?info.acct_pay.toFixed(2):0}}</td>
233
+          </tr>
234
+          <tr>
235
+            <td colspan="3">医院垫付金额</td>
236
+            <td colspan="2">
237
+              {{info.new_order.hosp_part_amt ? info.new_order.hosp_part_amt :'0'}}
238
+            </td>
239
+            <td colspan="2">个人现金支付</td>
240
+            <td colspan="3">
241
+              {{info.new_order.psn_cash_pay}}
242
+            </td>
243
+          </tr>
244
+          <tr>
245
+            <td colspan="10" style="text-align: left;">
246
+              本次就医:总费用:{{info.medfee_sumamt}}元&nbsp; 基金支付:{{info.fund_pay_sumamt}}元 &nbsp;个人帐户:{{info.acct_pay?info.acct_pay.toFixed(2):0}}元 &nbsp;
247
+              共济帐户:0元 &nbsp;个人现金:{{info.new_order.psn_cash_pay}}元 &nbsp; 账户余额:0元
248
+            </td>
249
+          </tr>
250
+          <tr>
251
+            <td colspan="5" style="border-right: 0;text-align: left;">
252
+              <span>备注:其他基金支付包含军转、财政、慈善、商保等支付来源</span>
253
+            </td>
254
+            <td colspan="5" style="border-left: 0;text-align: left;">
255
+              <span>打印时间:{{getNowTime()}}</span>
256
+            </td>
257
+          </tr>
258
+          <tr>
259
+            <td colspan="5" style="border-right: 0;text-align: left;">
260
+              <span>经办人签名:</span>
261
+            </td>
262
+            <td colspan="5" style="border-left: 0;text-align: left;">
263
+              <span>领款人签名:</span>
264
+            </td>
265
+          </tr>
266
+        </table>
267
+      </div>
268
+    </div>
269
+
270
+  </div>
271
+</template>
272
+<script>
273
+import { getChargePrint } from '@/api/project/project'
274
+import { uParseTime } from '@/utils/tools'
275
+
276
+export default {
277
+data() {
278
+  return {
279
+    list: {},
280
+    prescription: [],
281
+    patient: {},
282
+    orgname: '',
283
+
284
+    result: {},
285
+    org_code: '',
286
+    patient_name: '',
287
+    doctor_code: '',
288
+    doctor_name: '',
289
+
290
+    name_arr: [],
291
+    spec_arr: [],
292
+    count_arr: [],
293
+    price_arr: [],
294
+    total_arr: []
295
+
296
+  }
297
+},
298
+props: {
299
+  paramsObj: Object,
300
+  info: {
301
+    type: Object,
302
+    default: function() {
303
+      return {}
304
+    }
305
+  },
306
+  balanceAccounts: Object
307
+},
308
+methods: {
309
+  getBirth(idNo){
310
+    var year = idNo.substring(6, 10);
311
+    var month = idNo.substring(10, 12);
312
+    var day = idNo.substring(12, 14);
313
+    return  year + '-' + month + '-' + day;
314
+  },
315
+  getDay(dateString1,dateString2){
316
+    var  startDate = Date.parse(dateString1);
317
+    var  endDate = Date.parse(dateString2);
318
+    if (startDate>endDate){
319
+      return 0;
320
+    }
321
+    if (startDate==endDate){
322
+      return 1;
323
+    }
324
+    var days=(endDate - startDate)/(1*24*60*60*1000);
325
+    return  days;
326
+  },
327
+  getTime(value, temp) {
328
+    if (value != undefined) {
329
+      return uParseTime(value, temp)
330
+    }
331
+    return ''
332
+  },
333
+  getNowTime: function () {
334
+    let dateTime;
335
+    let yy = new Date().getFullYear();
336
+    let mm = new Date().getMonth() + 1;
337
+    let dd = new Date().getDate();
338
+    let hh = new Date().getHours();
339
+    let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
340
+      :
341
+      new Date().getMinutes();
342
+    let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
343
+      :
344
+      new Date().getSeconds();
345
+    dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss;
346
+    return dateTime
347
+  },
348
+},
349
+mounted() {
350
+
351
+
352
+},
353
+watch: {
354
+  paramsObj: {//深度监听,可监听到对象、数组的变化
355
+    handler(val, oldVal) {
356
+
357
+
358
+    },
359
+    deep: true
360
+  }
361
+}
362
+}
363
+</script>
364
+
365
+
366
+<style lang="scss" scoped>
367
+.prescription-print {
368
+-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
369
+-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
370
+box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
371
+margin-bottom: 20px;
372
+padding: 20px 10px;
373
+}
374
+.statementTable {
375
+  width: 100%;
376
+  text-align: center;
377
+  border-collapse: collapse;
378
+  line-height: 40px;
379
+  font-size: 14px;
380
+  border-color: #000;
381
+}
382
+</style>

+ 33 - 6
src/xt_pages/stock/drugs/components/purchaseDrugQuery.vue View File

404
               list[i].drugAddOne= 0
404
               list[i].drugAddOne= 0
405
               list[i].drugOutOne =0
405
               list[i].drugOutOne =0
406
               list[i].drugIn = this.GetDrugStartFlow(list[i].DrugStatFlow.over_count,list[i].min_number,list[i].min_unit,list[i].max_unit) 
406
               list[i].drugIn = this.GetDrugStartFlow(list[i].DrugStatFlow.over_count,list[i].min_number,list[i].min_unit,list[i].max_unit) 
407
-          
407
+              
408
+            
408
               list[i].drugInMoney = list[i].last_price
409
               list[i].drugInMoney = list[i].last_price
409
               list[i].drugSaleMoney = (list[i].drugIn * list[i].drugInMoney).toFixed(2)
410
               list[i].drugSaleMoney = (list[i].drugIn * list[i].drugInMoney).toFixed(2)
410
 
411
 
411
               list[i].drugAdd = this.drugAddInfo(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
412
               list[i].drugAdd = this.drugAddInfo(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
412
               list[i].drugAddOne = this.drugAddInfoOne(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
413
               list[i].drugAddOne = this.drugAddInfoOne(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
413
-           
414
-              list[i].drugAddPrice = list[i].last_price
415
-              list[i].drugAddSalePrice = (list[i].drugAdd * list[i].drugAddPrice).toFixed(2)
414
+            
415
+              if(this.org_id == 0 || this.org_id == 10644){
416
+                list[i].drugAddPrice = ""
417
+                list[i].drugAddSalePrice = this.drugAddInfoOnePirce(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
418
+              }else{
419
+                list[i].drugAddPrice = list[i].last_price
420
+                list[i].drugAddSalePrice = (list[i].drugAdd * list[i].drugAddPrice).toFixed(2)
421
+              }
422
+
423
+             
424
+
425
+
416
 
426
 
417
               list[i].drugOut=  this.getDrugOut(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
427
               list[i].drugOut=  this.getDrugOut(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
418
               list[i].drugOutOne =this.getDrugOutOne(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
428
               list[i].drugOutOne =this.getDrugOutOne(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
1063
     var total = 0
1073
     var total = 0
1064
     var totalone = 0
1074
     var totalone = 0
1065
     var totaltwo = 0
1075
     var totaltwo = 0
1066
-    var max_str = "";
1067
-    var min_str = "";
1068
     if(arr!=null && arr.length > 0){
1076
     if(arr!=null && arr.length > 0){
1069
       for(let i=0;i<arr.length;i++){
1077
       for(let i=0;i<arr.length;i++){
1070
         totalone += arr[i].count
1078
         totalone += arr[i].count
1081
     return total
1089
     return total
1082
 
1090
 
1083
    },
1091
    },
1092
+   drugAddInfoOnePirce(arr,min_number,min_unit,max_unit,arr2){
1093
+    var total = 0
1094
+    var totalone_price = 0
1095
+    var total_two_price = 0
1096
+    if(arr!=null && arr.length > 0){
1097
+      for(let i=0;i<arr.length;i++){
1098
+        totalone_price += arr[i].count * arr[i].price
1099
+      }
1100
+    }
1101
+    if(arr2!=null && arr2.length >0){
1102
+      for(let i=0;i<arr2.length;i++){
1103
+        total_two_price += arr2[i].count * arr[i].price
1104
+      }
1105
+    }
1106
+    total = totalone_price + total_two_price
1107
+
1108
+    
1109
+    return total
1110
+   },
1084
    getdrugAddPrice(arr,min_number,min_unit,max_unit,arr2){
1111
    getdrugAddPrice(arr,min_number,min_unit,max_unit,arr2){
1085
     var total = 0
1112
     var total = 0
1086
     var totalone =0
1113
     var totalone =0

+ 146 - 13
src/xt_pages/stock/drugs/components/purchaseNewDrugQuery.vue View File

216
 
216
 
217
   },
217
   },
218
   methods:{
218
   methods:{
219
+    GetInitStartFlowPice(val1,val2,val3,val4,val5,min_number,min_unit,max_unit){
220
+      var total_one_price =0
221
+      var total_two_price = 0
222
+      var total_three_price =0
223
+      var total_four_price =0
224
+      var total_five_price = 0
225
+      var total =0
226
+   
227
+      if(val1!=null && val1.length>0){
228
+         for(let i=0;i<val1.length;i++){
229
+          total_one_price +=val1[i].count*val1[i].price
230
+         }
231
+      }  
232
+
233
+      if(val2!=null && val2.length>0){
234
+         for(let i=0;i<val2.length;i++){
235
+          total_two_price +=val2[i].count*val2[i].price
236
+         }
237
+      }  
238
+    
239
+      console.log("val3",val3)
240
+      if(val3!=null && val3.length>0){
241
+         for(let i=0;i<val3.length;i++){
242
+          total_three_price +=val3[i].count*val3[i].price
243
+         }
244
+      }  
245
+      if(val4!=null && val4.length>0){
246
+         for(let i=0;i<val4.length;i++){
247
+          total_four_price +=val4[i].count*val4[i].price
248
+         }
249
+      }  
250
+
251
+      if(val5!=null && val5.length>0){
252
+         for(let i=0;i<val5.length;i++){
253
+          total_five_price +=val5[i].count*val5[i].price
254
+         }
255
+      }  
256
+     
257
+      var total = (total_one_price + total_two_price -total_three_price-total_four_price + total_five_price).toFixed(2)
258
+      if(total >0){
259
+        return ""
260
+      }else{
261
+        return total
262
+      }
263
+       
264
+    },
265
+    drugAddInfoOnePirce(arr,min_number,min_unit,max_unit,arr2){
266
+      
267
+        var total = 0
268
+        var totalone_price = 0
269
+        var total_two_price = 0
270
+        if(arr!=null && arr.length > 0){
271
+          for(let i=0;i<arr.length;i++){
272
+            totalone_price += arr[i].count * arr[i].price
273
+          }
274
+        }
275
+        if(arr2!=null && arr2.length >0){
276
+          for(let i=0;i<arr2.length;i++){ 
277
+            total_two_price += arr2[i].count * arr2[i].price
278
+          }
279
+        }
280
+        total = totalone_price + total_two_price
281
+
282
+        if(total>0){
283
+          return total.toFixed(2)
284
+        }else{
285
+          return ""
286
+        }
287
+        
288
+    },
289
+    getDrugOutPriceOne(arr,min_number,min_unit,max_unit,arr2,arr3){
290
+    var total = 0
291
+    var totalone_price = 0
292
+    var total_two_price = 0
293
+    var total_three_price = 0
294
+   
295
+    if(arr!=null&&arr.length > 0){
296
+      for(let i=0;i<arr.length;i++){
297
+        totalone_price +=arr[i].count * arr[i].price
298
+      }
299
+    }
300
+    if(arr2!=null && arr2.length>0){
301
+      for(let i=0;i<arr2.length;i++){
302
+        total_two_price +=arr2[i].count * arr2[i].price
303
+      }
304
+    }
305
+    if(arr3!=null && arr3.length>0){
306
+      for(let i=0;i<arr3.length;i++){
307
+        total_three_price +=arr3[i].count * arr3[i].price
308
+      }
309
+    }
310
+ 
311
+    total = (totalone_price + total_two_price - total_three_price).toFixed(2)
312
+    if(total >0){
313
+      return total
314
+    }else{
315
+      return ""
316
+    }
317
+    
318
+   },
319
+   GetDrugOverOnePrice(totalone,totaltwo,totalthree,min_number,min_unit,max_unit){
320
+
321
+   
322
+     var total = 0
323
+      total = (parseFloat(totalone)  + parseFloat(totaltwo)  - parseFloat(totalthree))
324
+      console.log("total-=---------------",total)
325
+      if(total >0){
326
+        return total.toFixed(2)
327
+      }else{
328
+        return ""
329
+      }
330
+     
331
+       
332
+    },
219
     changeStorehouseName(){
333
     changeStorehouseName(){
220
 
334
 
221
     },
335
     },
393
                }
507
                }
394
              }
508
              }
395
 
509
 
396
-            if(this.org_id !=10210 && this.org_id!=0 && this.org_id !=10402 && this.org_id !=10215){
510
+            if(this.org_id !=10210 && this.org_id !=10402 && this.org_id !=10215){
397
 
511
 
398
                //  新版
512
                //  新版
399
              if(list[i].new_drug_in_flow_info!=null && list[i].new_drug_in_flow_info.length>0){
513
              if(list[i].new_drug_in_flow_info!=null && list[i].new_drug_in_flow_info.length>0){
441
            
555
            
442
             }
556
             }
443
 
557
 
444
-            console.log("list23323223322332232323322323wode",list)
558
+           
445
             for(let i=0;i<list.length;i++){
559
             for(let i=0;i<list.length;i++){
446
               list[i].last_price_in = 0
560
               list[i].last_price_in = 0
447
               list[i].drugAddOne= 0
561
               list[i].drugAddOne= 0
448
               list[i].drugOutOne =0
562
               list[i].drugOutOne =0
449
               
563
               
450
-              if(this.org_id ==10210  || this.org_id ==10402 || this.org_id ==10215 || this.org_id == 0 || this.org_id ==10191){
564
+              if(this.org_id ==10210  || this.org_id ==10402 || this.org_id ==10215 || this.org_id ==10191){
451
                  list[i].drugIn = this.GetDrugStartFlow(list[i].DrugStatFlow.over_count,list[i].min_number,list[i].min_unit,list[i].max_unit) 
565
                  list[i].drugIn = this.GetDrugStartFlow(list[i].DrugStatFlow.over_count,list[i].min_number,list[i].min_unit,list[i].max_unit) 
452
               }else{
566
               }else{
453
                 list[i].drugIn = this.GetInitStartFlow(list[i].new_drug_in_flow_info,list[i].new_drug_profit_flow_info,list[i].new_drug_out_flow_info,list[i].new_drug_no_profit_flow_info,list[i].new_drug_cancel_flow_info,list[i].min_number,list[i].min_unit,list[i].max_unit)
567
                 list[i].drugIn = this.GetInitStartFlow(list[i].new_drug_in_flow_info,list[i].new_drug_profit_flow_info,list[i].new_drug_out_flow_info,list[i].new_drug_no_profit_flow_info,list[i].new_drug_cancel_flow_info,list[i].min_number,list[i].min_unit,list[i].max_unit)
456
 
570
 
457
            
571
            
458
               list[i].over_count_one = this.GetInitStartFlowOne(list[i].new_drug_in_flow_info,list[i].new_drug_profit_flow_info,list[i].new_drug_out_flow_info,list[i].new_drug_no_profit_flow_info,list[i].new_drug_cancel_flow_info,list[i].min_number,list[i].min_unit,list[i].max_unit) 
572
               list[i].over_count_one = this.GetInitStartFlowOne(list[i].new_drug_in_flow_info,list[i].new_drug_profit_flow_info,list[i].new_drug_out_flow_info,list[i].new_drug_no_profit_flow_info,list[i].new_drug_cancel_flow_info,list[i].min_number,list[i].min_unit,list[i].max_unit) 
459
-              list[i].drugInMoney = list[i].last_price
460
-              if(this.org_id == 0 || this.org_id == 10697){
461
-                list[i].drugSaleMoney =  (list[i].over_count_one * list[i].last_price).toFixed(2)
573
+             
574
+              if(this.org_id == 0 || this.org_id == 10644){
575
+                list[i].drugInMoney = ""
462
               }else{
576
               }else{
577
+                list[i].drugInMoney = list[i].last_price
578
+              }
579
+              if(this.org_id == 10697){
580
+                list[i].drugSaleMoney =  (list[i].over_count_one * list[i].last_price).toFixed(2)
581
+              }else if(this.org_id == 0 || this.org_id == 10644){
582
+              
583
+                list[i].drugSaleMoney =  this.GetInitStartFlowPice(list[i].new_drug_in_flow_info,list[i].new_drug_profit_flow_info,list[i].new_drug_out_flow_info,list[i].new_drug_no_profit_flow_info,list[i].new_drug_cancel_flow_info,list[i].min_number,list[i].min_unit,list[i].max_unit)
584
+              } else{
463
                 list[i].drugSaleMoney = "/"
585
                 list[i].drugSaleMoney = "/"
464
               }
586
               }
465
              
587
              
467
               list[i].drugAdd = this.drugAddInfo(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
589
               list[i].drugAdd = this.drugAddInfo(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
468
               list[i].drugAddOne = this.drugAddInfoOne(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
590
               list[i].drugAddOne = this.drugAddInfoOne(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
469
               
591
               
470
-              if(this.org_id == 0 || this.org_id == 10697){
592
+              if( this.org_id == 10697){
471
                  list[i].drugAddPrice = list[i].last_price
593
                  list[i].drugAddPrice = list[i].last_price
472
                  list[i].drugAddSalePrice = (list[i].last_price *list[i].drugAddOne).toFixed(2)
594
                  list[i].drugAddSalePrice = (list[i].last_price *list[i].drugAddOne).toFixed(2)
473
-              }else{
595
+              }else if(this.org_id == 0 || this.org_id == 10644){
596
+                list[i].drugAddPrice = "/"
597
+                list[i].drugAddSalePrice = this.drugAddInfoOnePirce(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
598
+                console.log("本期增加加淀粉",list[i].drugAddSalePrice)
599
+              } else{
474
                 list[i].drugAddPrice = "/"
600
                 list[i].drugAddPrice = "/"
475
                 list[i].drugAddSalePrice = "/"
601
                 list[i].drugAddSalePrice = "/"
476
               }
602
               }
479
               list[i].drugOut=  this.getDrugOut(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
605
               list[i].drugOut=  this.getDrugOut(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
480
               list[i].drugOutOne =this.getDrugOutOne(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
606
               list[i].drugOutOne =this.getDrugOutOne(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
481
            
607
            
482
-              if(this.org_id == 0 || this.org_id == 10697){
608
+              if( this.org_id == 10697){
483
                 list[i].drugOutPrice = list[i].retail_price
609
                 list[i].drugOutPrice = list[i].retail_price
484
                 list[i].drugOutSalePrice = (list[i].drugOutOne * list[i].retail_price).toFixed(2)
610
                 list[i].drugOutSalePrice = (list[i].drugOutOne * list[i].retail_price).toFixed(2)
485
-              }else{
611
+              }else if(this.org_id == 0 || this.org_id == 10644){
612
+                list[i].drugOutPrice = "/"
613
+                list[i].drugOutSalePrice= this.getDrugOutPriceOne(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
614
+              } else{
486
                 list[i].drugOutPrice = "/"
615
                 list[i].drugOutPrice = "/"
487
                 list[i].drugOutSalePrice = "/"
616
                 list[i].drugOutSalePrice = "/"
488
               }
617
               }
496
             }
625
             }
497
              
626
              
498
             list[i].overDrugOne = this.GetDrugOverOne(list[i].over_count_one,list[i].drugAddOne,list[i].drugOutOne,list[i].min_number,list[i].min_unit,list[i].max_unit)
627
             list[i].overDrugOne = this.GetDrugOverOne(list[i].over_count_one,list[i].drugAddOne,list[i].drugOutOne,list[i].min_number,list[i].min_unit,list[i].max_unit)
499
-            if(this.org_id == 0 || this.org_id == 10697){
628
+            if(this.org_id == 10697){
500
                 list[i].overDrugPrice = list[i].retail_price
629
                 list[i].overDrugPrice = list[i].retail_price
501
                 list[i].oveDrugSaleMoney = (list[i].overDrugOne * list[i].retail_price).toFixed(2)
630
                 list[i].oveDrugSaleMoney = (list[i].overDrugOne * list[i].retail_price).toFixed(2)
502
-            }else{
631
+            }else if(this.org_id == 0 || this.org_id ==10644){
632
+              console.log("加个2323323",list[i].drugAddSalePrice)
633
+                list[i].overDrugPrice = ""
634
+                list[i].oveDrugSaleMoney = this.GetDrugOverOnePrice(list[i].drugSaleMoney,list[i].drugAddSalePrice,list[i].drugOutSalePrice,list[i].min_number,list[i].min_unit,list[i].max_unit)
635
+            } else{
503
              list[i].overDrugPrice = "/"
636
              list[i].overDrugPrice = "/"
504
              list[i].oveDrugSaleMoney = "/"
637
              list[i].oveDrugSaleMoney = "/"
505
             }
638
             }
506
            
639
            
507
             }
640
             }
508
             
641
             
509
-            if(this.org_id == 0 || this.org_id == 10697){
642
+            if(this.org_id == 10697){
510
               if(list!=null && list.length>0){
643
               if(list!=null && list.length>0){
511
                 var obj = {drug_type:"",drug_name:"合计",dose:"",dose_unit:"",min_number:"",min_unit:"",max_unit:"",medical_insurance_number:"",manufacturer:"",dealer:"",drugIn:"",drugInMoney:"",drugSaleMoney:0,drugAdd:"",drugAddPrice:"",drugAddSalePrice:0,drugOut:"",drugOutPrice:"",drugOutSalePrice:0,overDrug:"",overDrugPrice:"",oveDrugSaleMoney:0}
644
                 var obj = {drug_type:"",drug_name:"合计",dose:"",dose_unit:"",min_number:"",min_unit:"",max_unit:"",medical_insurance_number:"",manufacturer:"",dealer:"",drugIn:"",drugInMoney:"",drugSaleMoney:0,drugAdd:"",drugAddPrice:"",drugAddSalePrice:0,drugOut:"",drugOutPrice:"",drugOutSalePrice:0,overDrug:"",overDrugPrice:"",oveDrugSaleMoney:0}
512
                 for(let i=0;i<list.length;i++){
645
                 for(let i=0;i<list.length;i++){

+ 150 - 24
src/xt_pages/stock/drugs/components/purchaseNewDrugQueryPrint.vue View File

349
                 list[i].drugAddOne= 0
349
                 list[i].drugAddOne= 0
350
                 list[i].drugOutOne =0
350
                 list[i].drugOutOne =0
351
                
351
                
352
-                if(this.org_id ==10210 || this.org_id ==10402 || this.org_id ==10215){
352
+                if(this.org_id ==10210 || this.org_id ==10402 || this.org_id ==10215  || this.org_id ==10191){
353
                    list[i].drugIn = this.GetDrugStartFlow(list[i].DrugStatFlow.over_count,list[i].min_number,list[i].min_unit,list[i].max_unit) 
353
                    list[i].drugIn = this.GetDrugStartFlow(list[i].DrugStatFlow.over_count,list[i].min_number,list[i].min_unit,list[i].max_unit) 
354
                 }else{
354
                 }else{
355
                   list[i].drugIn = this.GetInitStartFlow(list[i].new_drug_in_flow_info,list[i].new_drug_profit_flow_info,list[i].new_drug_out_flow_info,list[i].new_drug_no_profit_flow_info,list[i].new_drug_cancel_flow_info,list[i].min_number,list[i].min_unit,list[i].max_unit)
355
                   list[i].drugIn = this.GetInitStartFlow(list[i].new_drug_in_flow_info,list[i].new_drug_profit_flow_info,list[i].new_drug_out_flow_info,list[i].new_drug_no_profit_flow_info,list[i].new_drug_cancel_flow_info,list[i].min_number,list[i].min_unit,list[i].max_unit)
357
               
357
               
358
                list[i].over_count_one = this.GetInitStartFlowOne(list[i].new_drug_in_flow_info,list[i].new_drug_profit_flow_info,list[i].new_drug_out_flow_info,list[i].new_drug_no_profit_flow_info,list[i].new_drug_cancel_flow_info,list[i].min_number,list[i].min_unit,list[i].max_unit) 
358
                list[i].over_count_one = this.GetInitStartFlowOne(list[i].new_drug_in_flow_info,list[i].new_drug_profit_flow_info,list[i].new_drug_out_flow_info,list[i].new_drug_no_profit_flow_info,list[i].new_drug_cancel_flow_info,list[i].min_number,list[i].min_unit,list[i].max_unit) 
359
                
359
                
360
-                // list[i].drugInMoney = "/"
361
-                // list[i].drugSaleMoney = "/"
362
-
360
+               if(this.org_id == 0 || this.org_id == 10644){
361
+                list[i].drugInMoney = ""
362
+              }else{
363
                 list[i].drugInMoney = list[i].last_price
363
                 list[i].drugInMoney = list[i].last_price
364
-                if(this.org_id == 0 || this.org_id == 10697){
364
+              }
365
+
366
+                if( this.org_id == 10697){
365
                   list[i].drugSaleMoney =  (list[i].over_count_one * list[i].last_price).toFixed(2)
367
                   list[i].drugSaleMoney =  (list[i].over_count_one * list[i].last_price).toFixed(2)
368
+                }else if(this.org_id == 0 || this.org_id == 10644){
369
+                  list[i].drugAddPrice = ""
370
+                  list[i].drugSaleMoney =  this.GetInitStartFlowPice(list[i].new_drug_in_flow_info,list[i].new_drug_profit_flow_info,list[i].new_drug_out_flow_info,list[i].new_drug_no_profit_flow_info,list[i].new_drug_cancel_flow_info,list[i].min_number,list[i].min_unit,list[i].max_unit)
366
                 }else{
371
                 }else{
367
                   list[i].drugSaleMoney = "/"
372
                   list[i].drugSaleMoney = "/"
368
                 }
373
                 }
370
                 list[i].drugAdd = this.drugAddInfo(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
375
                 list[i].drugAdd = this.drugAddInfo(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
371
                 list[i].drugAddOne= this.drugAddInfoOne(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
376
                 list[i].drugAddOne= this.drugAddInfoOne(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
372
                
377
                
373
-                // list[i].drugAddPrice = "/"
374
-                // list[i].drugAddSalePrice = "/"
375
-
376
-                if(this.org_id == 0 || this.org_id == 10697){
378
+               
379
+                if(this.org_id == 10697){
377
                  list[i].drugAddPrice = list[i].last_price
380
                  list[i].drugAddPrice = list[i].last_price
378
                  list[i].drugAddSalePrice = (list[i].last_price *list[i].drugAddOne).toFixed(2)
381
                  list[i].drugAddSalePrice = (list[i].last_price *list[i].drugAddOne).toFixed(2)
379
-              }else{
380
-                list[i].drugAddPrice = "/"
381
-                list[i].drugAddSalePrice = "/"
382
-              }
383
-
382
+                }else if(this.org_id == 0 || this.org_id ==10644){
383
+                  list[i].drugAddPrice = "/"
384
+                  list[i].drugAddSalePrice = this.drugAddInfoOnePirce(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
385
+                  console.log("本期增加加淀粉",list[i].drugAddSalePrice)
386
+                } else{
387
+                  list[i].drugAddPrice = "/"
388
+                  list[i].drugAddSalePrice = "/"
389
+                }
390
+ 
384
                 list[i].drugOut=  this.getDrugOut(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
391
                 list[i].drugOut=  this.getDrugOut(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
385
                 list[i].drugOutOne = this.getDrugOutOne(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
392
                 list[i].drugOutOne = this.getDrugOutOne(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
386
                 
393
                 
387
-                // list[i].drugOutPrice = "/"
388
-                // list[i].drugOutSalePrice = "/"
394
+              
389
 
395
 
390
-                if(this.org_id == 0 || this.org_id == 10697){
396
+                if( this.org_id == 10697){
391
                   list[i].drugOutPrice = list[i].retail_price
397
                   list[i].drugOutPrice = list[i].retail_price
392
                   list[i].drugOutSalePrice = (list[i].drugOutOne * list[i].retail_price).toFixed(2)
398
                   list[i].drugOutSalePrice = (list[i].drugOutOne * list[i].retail_price).toFixed(2)
393
-                }else{
399
+                }else if(this.org_id == 0 || this.org_id == 10644){
400
+                  list[i].drugOutPrice = "/"
401
+                  list[i].drugOutSalePrice= this.getDrugOutPriceOne(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
402
+                } else{
394
                   list[i].drugOutPrice = "/"
403
                   list[i].drugOutPrice = "/"
395
                   list[i].drugOutSalePrice = "/"
404
                   list[i].drugOutSalePrice = "/"
396
                 }
405
                 }
401
                 }else{
410
                 }else{
402
                   list[i].overDrug = this.GetDrugOver(list[i].over_count_one,list[i].drugAddOne,list[i].drugOutOne,list[i].min_number,list[i].min_unit,list[i].max_unit)
411
                   list[i].overDrug = this.GetDrugOver(list[i].over_count_one,list[i].drugAddOne,list[i].drugOutOne,list[i].min_number,list[i].min_unit,list[i].max_unit)
403
                 }
412
                 }
404
-                // list[i].overDrugPrice = "/"
405
-                // list[i].oveDrugSaleMoney = "/"
413
+               
406
                 list[i].overDrugOne = this.GetDrugOverOne(list[i].over_count_one,list[i].drugAddOne,list[i].drugOutOne,list[i].min_number,list[i].min_unit,list[i].max_unit)
414
                 list[i].overDrugOne = this.GetDrugOverOne(list[i].over_count_one,list[i].drugAddOne,list[i].drugOutOne,list[i].min_number,list[i].min_unit,list[i].max_unit)
407
-                if(this.org_id == 0 || this.org_id == 10697){
415
+                if(this.org_id == 10697){
408
                   list[i].overDrugPrice = list[i].retail_price
416
                   list[i].overDrugPrice = list[i].retail_price
409
                   list[i].oveDrugSaleMoney = (list[i].overDrugOne * list[i].retail_price).toFixed(2)
417
                   list[i].oveDrugSaleMoney = (list[i].overDrugOne * list[i].retail_price).toFixed(2)
410
-                }else{
418
+                }else if(this.org_id == 0 || this.org_id ==10644){
419
+                  list[i].overDrugPrice = ""
420
+                  list[i].oveDrugSaleMoney = this.GetDrugOverOnePrice(list[i].drugSaleMoney,list[i].drugAddSalePrice,list[i].drugOutSalePrice,list[i].min_number,list[i].min_unit,list[i].max_unit)
421
+                } else{
411
                   list[i].overDrugPrice = "/"
422
                   list[i].overDrugPrice = "/"
412
                   list[i].oveDrugSaleMoney = "/"
423
                   list[i].oveDrugSaleMoney = "/"
413
                 }
424
                 }
414
             }
425
             }
415
-            if(this.org_id == 0 || this.org_id == 10697){
426
+            if(this.org_id == 10697){
416
               if(list!=null && list.length>0){
427
               if(list!=null && list.length>0){
417
                 var obj = {drug_type:"",drug_name:"合计",dose:"",dose_unit:"",min_number:"",min_unit:"",max_unit:"",medical_insurance_number:"",manufacturer:"",dealer:"",drugIn:"",drugInMoney:"",drugSaleMoney:0,drugAdd:"",drugAddPrice:"",drugAddSalePrice:0,drugOut:"",drugOutPrice:"",drugOutSalePrice:0,overDrug:"",overDrugPrice:"",oveDrugSaleMoney:0}
428
                 var obj = {drug_type:"",drug_name:"合计",dose:"",dose_unit:"",min_number:"",min_unit:"",max_unit:"",medical_insurance_number:"",manufacturer:"",dealer:"",drugIn:"",drugInMoney:"",drugSaleMoney:0,drugAdd:"",drugAddPrice:"",drugAddSalePrice:0,drugOut:"",drugOutPrice:"",drugOutSalePrice:0,overDrug:"",overDrugPrice:"",oveDrugSaleMoney:0}
418
                 for(let i=0;i<list.length;i++){
429
                 for(let i=0;i<list.length;i++){
1475
          return 0
1486
          return 0
1476
        }
1487
        }
1477
      
1488
      
1478
-    }
1489
+    },
1490
+    
1491
+    GetInitStartFlowPice(val1,val2,val3,val4,val5,min_number,min_unit,max_unit){
1492
+      var total_one_price =0
1493
+      var total_two_price = 0
1494
+      var total_three_price =0
1495
+      var total_four_price =0
1496
+      var total_five_price = 0
1497
+      var total =0
1498
+   
1499
+      if(val1!=null && val1.length>0){
1500
+         for(let i=0;i<val1.length;i++){
1501
+          total_one_price +=val1[i].count*val1[i].price
1502
+         }
1503
+      }  
1504
+
1505
+      if(val2!=null && val2.length>0){
1506
+         for(let i=0;i<val2.length;i++){
1507
+          total_two_price +=val2[i].count*val2[i].price
1508
+         }
1509
+      }  
1510
+    
1511
+      console.log("val3",val3)
1512
+      if(val3!=null && val3.length>0){
1513
+         for(let i=0;i<val3.length;i++){
1514
+          total_three_price +=val3[i].count*val3[i].price
1515
+         }
1516
+      }  
1517
+      if(val4!=null && val4.length>0){
1518
+         for(let i=0;i<val4.length;i++){
1519
+          total_four_price +=val4[i].count*val4[i].price
1520
+         }
1521
+      }  
1522
+
1523
+      if(val5!=null && val5.length>0){
1524
+         for(let i=0;i<val5.length;i++){
1525
+          total_five_price +=val5[i].count*val5[i].price
1526
+         }
1527
+      }  
1528
+     
1529
+      var total = (total_one_price + total_two_price -total_three_price-total_four_price + total_five_price)
1530
+       
1531
+      if(total >0){
1532
+        return total.toFixed(2)
1533
+      }else{
1534
+        return ""
1535
+      }
1536
+       
1537
+    },
1538
+    drugAddInfoOnePirce(arr,min_number,min_unit,max_unit,arr2){
1539
+      
1540
+      var total = 0
1541
+      var totalone_price = 0
1542
+      var total_two_price = 0
1543
+      if(arr!=null && arr.length > 0){
1544
+        for(let i=0;i<arr.length;i++){
1545
+          totalone_price += arr[i].count * arr[i].price
1546
+        }
1547
+      }
1548
+      if(arr2!=null && arr2.length >0){
1549
+        for(let i=0;i<arr2.length;i++){ 
1550
+          total_two_price += arr2[i].count * arr2[i].price
1551
+        }
1552
+      }
1553
+      total = totalone_price + total_two_price
1554
+
1555
+      if(total>0){
1556
+        return total.toFixed(2)
1557
+      }else{
1558
+        return ""
1559
+      }
1560
+      
1561
+   },
1562
+    getDrugOutPriceOne(arr,min_number,min_unit,max_unit,arr2,arr3){
1563
+      var total = 0
1564
+      var totalone_price = 0
1565
+      var total_two_price = 0
1566
+      var total_three_price = 0
1567
+    
1568
+      if(arr!=null&&arr.length > 0){
1569
+        for(let i=0;i<arr.length;i++){
1570
+          totalone_price +=arr[i].count * arr[i].price
1571
+        }
1572
+      }
1573
+      if(arr2!=null && arr2.length>0){
1574
+        for(let i=0;i<arr2.length;i++){
1575
+          total_two_price +=arr2[i].count * arr2[i].price
1576
+        }
1577
+      }
1578
+      if(arr3!=null && arr3.length>0){
1579
+        for(let i=0;i<arr3.length;i++){
1580
+          total_three_price +=arr3[i].count * arr3[i].price
1581
+        }
1582
+      }
1583
+  
1584
+      total = (totalone_price + total_two_price - total_three_price)
1585
+      if(total >0){
1586
+        return total.toFixed(2)
1587
+      }else{
1588
+        return ""
1589
+      }
1590
+    
1591
+   },
1592
+   GetDrugOverOnePrice(totalone,totaltwo,totalthree,min_number,min_unit,max_unit){
1593
+      console.log("totalone----------------",totalone)
1594
+      console.log("totaltwo----------------",totalone)
1595
+      console.log("totalthree----------------",totalthree)
1596
+      var total = 0
1597
+      total = totalone  + totaltwo  - totalthree
1598
+      if(total >0 || total!="NaN"){
1599
+        console.log("haaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
1600
+        return total.toFixed(2)
1601
+      }else{
1602
+        return ""
1603
+      }
1604
+    },
1479
    },
1605
    },
1480
     created(){
1606
     created(){
1481
       this.org_id =  this.$store.getters.xt_user.org_id
1607
       this.org_id =  this.$store.getters.xt_user.org_id

+ 121 - 10
src/xt_pages/stock/query/purchaseNewStockQuery.vue View File

281
                   list[i].stockIn = list[i].GoodStartFlowInfo.over_count
281
                   list[i].stockIn = list[i].GoodStartFlowInfo.over_count
282
                 }else{
282
                 }else{
283
                   list[i].stockIn = this.getAllStockIn(list[i].StWarehousingInfoTwo) + this.getAllStockInFlow(list[i].WareStartInStockFlow) - this.getAllOutStockIn(list[i].WarehouseOutInfoTenty) - this.getAllStockOutFlow(list[i].WareStartOutStockFlow)
283
                   list[i].stockIn = this.getAllStockIn(list[i].StWarehousingInfoTwo) + this.getAllStockInFlow(list[i].WareStartInStockFlow) - this.getAllOutStockIn(list[i].WarehouseOutInfoTenty) - this.getAllStockOutFlow(list[i].WareStartOutStockFlow)
284
-                  // console.log("剩余库存---------------",list[i].stockIn)
284
+                  
285
                   if(list[i].stockIn <0){
285
                   if(list[i].stockIn <0){
286
                     list[i].stockIn =0
286
                     list[i].stockIn =0
287
                   }
287
                   }
288
                 }
288
                 }
289
                
289
                
290
               }
290
               }
291
-              //  list[i].stockIn = list[i].GoodStartFlowInfo.over_count
292
-               if(this.org_id == 0 || this.org_id ==10697){
291
+             
292
+               if(this.org_id ==10697){
293
                   list[i].stock_in_price = list[i].buy_price
293
                   list[i].stock_in_price = list[i].buy_price
294
                   list[i].stockMoney = (list[i].buy_price * list[i].stockIn).toFixed(2)
294
                   list[i].stockMoney = (list[i].buy_price * list[i].stockIn).toFixed(2)
295
+               }else if(this.org_id == 0 || this.org_id == 10644){
296
+                 list[i].stock_in_price = "/"
297
+                list[i].stockMoney = (this.getAllStockInPrice(list[i].StWarehousingInfoTwo) + this.getAllStockInFlowPrice(list[i].WareStartInStockFlow) - this.getAllOutStockInPrice(list[i].WarehouseOutInfoTenty) - this.getAllStockOutFlowPrice(list[i].WareStartOutStockFlow)).toFixed(2)
298
+                
295
                }else{
299
                }else{
296
                 list[i].stock_in_price = "/"
300
                 list[i].stock_in_price = "/"
297
                 list[i].stockMoney = "/"
301
                 list[i].stockMoney = "/"
301
               
305
               
302
               list[i].stockAdd = this.getWarehouseInfoOne(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit)//期间增加
306
               list[i].stockAdd = this.getWarehouseInfoOne(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit)//期间增加
303
 
307
 
304
-              if(this.org_id == 0 || this.org_id ==10697){
308
+              if(this.org_id ==10697){
305
                list[i].addStockMoney = list[i].buy_price 
309
                list[i].addStockMoney = list[i].buy_price 
306
                 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)
307
-              }else{
311
+              }else if(this.org_id == 0 || this.org_id == 10644){
312
+                list[i].addStockMoney = "/"
313
+                list[i].saleStockMoney = this.getWarehouseInfoOnePrice(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit).toFixed(2)
314
+              } else{
308
                list[i].addStockMoney = "/"
315
                list[i].addStockMoney = "/"
309
                list[i].saleStockMoney = "/"
316
                list[i].saleStockMoney = "/"
310
               }
317
               }
311
              
318
              
312
 
319
 
313
               list[i].outStock = this.getWarehosueOutInfo(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)//本期减少
320
               list[i].outStock = this.getWarehosueOutInfo(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)//本期减少
314
-              if(this.org_id == 0 || this.org_id == 10697){
321
+              if(this.org_id == 10697){
315
                 list[i].stockOutprice = list[i].packing_price
322
                 list[i].stockOutprice = list[i].packing_price
316
                 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 == 10644){
325
+                list[i].stockOutprice = "/"
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)
317
               }else{
331
               }else{
318
                 list[i].stockOutprice = "/"
332
                 list[i].stockOutprice = "/"
319
                 list[i].saleOutMoney = "/"
333
                 list[i].saleOutMoney = "/"
320
               }
334
               }
335
+
336
+
321
              
337
              
322
               if(this.org_id == 10265){
338
               if(this.org_id == 10265){
323
                 list[i].overStock = list[i].GoodEndFlowInfo.over_count
339
                 list[i].overStock = list[i].GoodEndFlowInfo.over_count
333
                
349
                
334
               }
350
               }
335
             
351
             
336
-              if(this.org_id == 0 || this.org_id ==10697){
352
+              if(this.org_id ==10697){
337
                 list[i].overPrice = list[i].packing_price
353
                 list[i].overPrice = list[i].packing_price
338
                 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)
355
+              }else if(this.org_id == 0 || this.org_id ==10644){
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)
360
+                list[i].overMoney = (parseFloat(list[i].stockMoney)  + parseFloat(list[i].saleStockMoney) - parseFloat(list[i].saleOutMoney)).toFixed(2)
361
+                // console.log("hahahha",list[i].overMoney)
339
               }else{
362
               }else{
340
                 list[i].overPrice = "/"
363
                 list[i].overPrice = "/"
341
                 list[i].overMoney = "/"
364
                 list[i].overMoney = "/"
351
               if(list.length!=null){
374
               if(list.length!=null){
352
                 for(let i=0;i<list.length;i++){
375
                 for(let i=0;i<list.length;i++){
353
                  
376
                  
354
-                  //  obj.stock_in_price += (this.tableList[i].stock_in_price).toFixed(2)
355
                   obj.stockMoney += parseFloat(list[i].stockMoney) 
377
                   obj.stockMoney += parseFloat(list[i].stockMoney) 
356
-                  //  obj.stockOutprice += (this.tableList[i].stockOutprice).toFixed(2)
378
+                 
357
                   obj.saleStockMoney += parseFloat(list[i].saleStockMoney)
379
                   obj.saleStockMoney += parseFloat(list[i].saleStockMoney)
358
 
380
 
359
                   obj.saleOutMoney += parseFloat(list[i].saleOutMoney)
381
                   obj.saleOutMoney += parseFloat(list[i].saleOutMoney)
360
-                  //  obj.overPrice += (this.tableList[i].overPrice).toFixed(2)
382
+                 
361
                   obj.overMoney += parseFloat(list[i].overMoney)
383
                   obj.overMoney += parseFloat(list[i].overMoney)
362
 
384
 
363
                 }
385
                 }
721
       return 0
743
       return 0
722
     }
744
     }
723
   },
745
   },
746
+  getWarehouseInfoOnePrice(val,val2){
747
+    var count_price =0 
748
+    var count_one_price = 0
749
+    var all_count_price = 0
750
+    if(val!=null && val.length >0){
751
+     for(let i=0;i<val.length;i++){
752
+      count_price +=val[i].count * val[i].price
753
+     }
754
+    }
755
+    if(val2!=null && val2.length > 0){
756
+     for(let i=0;i<val2.length;i++){
757
+      count_one_price +=val2[i].count * val[i].price
758
+     }
759
+    }
760
+    all_count_price = count_price + count_one_price
761
+
762
+    if(all_count_price > 0 ){
763
+      return all_count_price
764
+    }else{
765
+      return 0
766
+    }
767
+  },
724
   getAddStockMony(val,val2){
768
   getAddStockMony(val,val2){
725
     var total_price =0 
769
     var total_price =0 
726
     var total_price_one = 0
770
     var total_price_one = 0
901
       return 0
945
       return 0
902
      }
946
      }
903
    },
947
    },
948
+   getWarehosueOutInfoPrice(val,val2,val3){
949
+     var count_price = 0
950
+     var count_one_price = 0
951
+     var all_count_price = 0
952
+     var count_two_price = 0
953
+     if(val!=null && val.length >0){
954
+       for(let i=0;i<val.length;i++){
955
+        count_price += val[i].count * val[i].price
956
+       }
957
+     }
958
+     if(val2!=null && val2.length > 0){
959
+      for(let i=0;i<val2.length;i++){
960
+        count_one_price +=val2[i].count  * val[i].price
961
+      }
962
+     }
963
+     if(val3!=null && val3.length > 0){
964
+      for(let i=0;i<val3.length;i++){
965
+        count_two_price +=val3[i].count  * val[i].price
966
+      }
967
+     }
968
+     console.log("本期减少",count_price)
969
+     console.log("盘亏",count_one_price)
970
+     console.log("退库",all_count_price)
971
+     all_count_price = count_price +count_one_price - count_two_price
972
+     console.log("数据我哦我我",all_count_price)
973
+     if(all_count_price >0){
974
+       return all_count_price
975
+     }
976
+   },
904
    stockOutprice(val,val2,val3){
977
    stockOutprice(val,val2,val3){
905
      var total_price = 0
978
      var total_price = 0
906
      var total_price_one = 0
979
      var total_price_one = 0
1207
       }
1280
       }
1208
       return count
1281
       return count
1209
     },
1282
     },
1283
+    getAllStockInPrice(val){
1284
+       var total_price =0
1285
+       if(val!=null && val.length>0){
1286
+         for(let i=0;i<val.length;i++){
1287
+            total_price += val[i].warehousing_count * val[i].price
1288
+         }
1289
+
1290
+       }
1291
+       return total_price
1292
+    },
1293
+
1210
     getAllOutStockIn(val){
1294
     getAllOutStockIn(val){
1211
        var count = 0 
1295
        var count = 0 
1212
        if(val!=null && val.length>0){
1296
        if(val!=null && val.length>0){
1216
        }
1300
        }
1217
        return count
1301
        return count
1218
     },
1302
     },
1303
+    getAllOutStockInPrice(val){
1304
+      var total_price = 0 
1305
+       if(val!=null && val.length>0){
1306
+         for(let i=0;i<val.length;i++){
1307
+          total_price += val[i].count * val[i].price
1308
+         }
1309
+       }
1310
+       return total_price
1311
+    },
1219
     getAllStockInFlow(val){
1312
     getAllStockInFlow(val){
1220
       var count = 0
1313
       var count = 0
1221
       if(val!=null && val.length>0){
1314
       if(val!=null && val.length>0){
1225
       }
1318
       }
1226
       return count
1319
       return count
1227
     },
1320
     },
1321
+    getAllStockInFlowPrice(val){
1322
+      var total_price = 0
1323
+      if(val!=null && val.length>0){
1324
+        for(let i=0;i<val.length;i++){
1325
+          total_price+= val[i].count * val[i].total_price
1326
+        }
1327
+      }
1328
+      return total_price
1329
+    },
1228
     getAllStockOutFlow(val){
1330
     getAllStockOutFlow(val){
1229
       var count = 0
1331
       var count = 0
1230
       if(val!=null && val.length>0){
1332
       if(val!=null && val.length>0){
1234
       }
1336
       }
1235
       return count
1337
       return count
1236
     },
1338
     },
1339
+    getAllStockOutFlowPrice(val){
1340
+      var total_price = 0
1341
+      if(val!=null && val.length>0){
1342
+        for(let i=0;i<val.length;i++){
1343
+          total_price+= val[i].count * val[i].price
1344
+        }
1345
+      }
1346
+      return total_price
1347
+    },
1237
     getAllQuery(){
1348
     getAllQuery(){
1238
 
1349
 
1239
      this.getlist()
1350
      this.getlist()

+ 111 - 4
src/xt_pages/stock/query/purchaseNewStockQueryPrint.vue View File

187
                     if(this.org_id == 0 || this.org_id ==10697){
187
                     if(this.org_id == 0 || this.org_id ==10697){
188
                       list[i].stock_in_price = list[i].buy_price
188
                       list[i].stock_in_price = list[i].buy_price
189
                       list[i].stockMoney = (list[i].buy_price * list[i].stockIn).toFixed(2)
189
                       list[i].stockMoney = (list[i].buy_price * list[i].stockIn).toFixed(2)
190
-                    }else{
190
+                    }else if(this.org_id == 0 || this.org_id == 10644){
191
+                      list[i].stock_in_price = "/"
192
+                      list[i].stockMoney = (this.getAllStockInPrice(list[i].StWarehousingInfoTwo) + this.getAllStockInFlowPrice(list[i].WareStartInStockFlow) - this.getAllOutStockInPrice(list[i].WarehouseOutInfoTenty) - this.getAllStockOutFlowPrice(list[i].WareStartOutStockFlow)).toFixed(2)
193
+                    } else{
191
                       list[i].stock_in_price = "/"
194
                       list[i].stock_in_price = "/"
192
                       list[i].stockMoney = "/"
195
                       list[i].stockMoney = "/"
193
                     }
196
                     }
198
                     if(this.org_id == 0 || this.org_id ==10697){
201
                     if(this.org_id == 0 || this.org_id ==10697){
199
                         list[i].addStockMoney = list[i].buy_price 
202
                         list[i].addStockMoney = list[i].buy_price 
200
                         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)
201
-                      }else{
204
+                    }else if(this.org_id == 0 || this.org_id == 10644){
205
+                      list[i].addStockMoney = "/"
206
+                      list[i].saleStockMoney = this.getWarehouseInfoOnePrice(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit).toFixed(2)
207
+                     
208
+                    }else{
202
                         list[i].addStockMoney = "/"
209
                         list[i].addStockMoney = "/"
203
                         list[i].saleStockMoney = "/"
210
                         list[i].saleStockMoney = "/"
204
                       }
211
                       }
210
                     if(this.org_id == 0 || this.org_id == 10697){
217
                     if(this.org_id == 0 || this.org_id == 10697){
211
                       list[i].stockOutprice = list[i].packing_price
218
                       list[i].stockOutprice = list[i].packing_price
212
                       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)
220
+                    }else if(this.org_id == 0 || this.org_id == 10644){
221
+                      list[i].addStockMoney = "/"
222
+                      list[i].saleStockMoney = this.getWarehouseInfoOnePrice(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit).toFixed(2)
223
+                      
213
                     }else{
224
                     }else{
214
                       list[i].stockOutprice = "/"
225
                       list[i].stockOutprice = "/"
215
                       list[i].saleOutMoney = "/"
226
                       list[i].saleOutMoney = "/"
224
                     if(this.org_id == 0 || this.org_id ==10697){
235
                     if(this.org_id == 0 || this.org_id ==10697){
225
                       list[i].overPrice = list[i].packing_price
236
                       list[i].overPrice = list[i].packing_price
226
                       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)
238
+                     }else if(this.org_id == 0 || this.org_id == 10644){
239
+                      list[i].stockOutprice = "/"
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
+                      }
227
                      }else{
244
                      }else{
228
                         list[i].overPrice = "/"
245
                         list[i].overPrice = "/"
229
                         list[i].overMoney = "/"
246
                         list[i].overMoney = "/"
359
       return "0.00"
376
       return "0.00"
360
      }
377
      }
361
    },
378
    },
362
-     saleOutprice(val,val2,val3){
379
+    saleOutprice(val,val2,val3){
363
      var total_price = 0
380
      var total_price = 0
364
      var total_price_one = 0
381
      var total_price_one = 0
365
      var all_price = 0
382
      var all_price = 0
792
       }
809
       }
793
       return count
810
       return count
794
     },
811
     },
812
+    getAllStockInPrice(val){
813
+       var total_price =0
814
+       if(val!=null && val.length>0){
815
+         for(let i=0;i<val.length;i++){
816
+            total_price += val[i].warehousing_count * val[i].price
817
+         }
818
+
819
+       }
820
+       return total_price
821
+    },
795
     getAllOutStockIn(val){
822
     getAllOutStockIn(val){
796
        var count = 0 
823
        var count = 0 
797
        if(val!=null && val.length>0){
824
        if(val!=null && val.length>0){
801
        }
828
        }
802
        return count
829
        return count
803
     },
830
     },
831
+    getAllStockInFlowPrice(val){
832
+      var total_price = 0
833
+      if(val!=null && val.length>0){
834
+        for(let i=0;i<val.length;i++){
835
+          total_price+= val[i].count * val[i].total_price
836
+        }
837
+      }
838
+      return total_price
839
+    },
804
     getAllStockInFlow(val){
840
     getAllStockInFlow(val){
805
       var count = 0
841
       var count = 0
806
       if(val!=null && val.length>0){
842
       if(val!=null && val.length>0){
818
         }
854
         }
819
       }
855
       }
820
       return count
856
       return count
821
-    } 
857
+    },
858
+    getAllOutStockInPrice(val){
859
+      var total_price = 0 
860
+       if(val!=null && val.length>0){
861
+         for(let i=0;i<val.length;i++){
862
+          total_price += val[i].count * val[i].price
863
+         }
864
+       }
865
+       return total_price
866
+    },
867
+    getAllStockOutFlowPrice(val){
868
+      var total_price = 0
869
+      if(val!=null && val.length>0){
870
+        for(let i=0;i<val.length;i++){
871
+          total_price+= val[i].count * val[i].price
872
+        }
873
+      }
874
+      return total_price
875
+    },
876
+    getWarehouseInfoOnePrice(val,val2){
877
+      var count_price =0 
878
+      var count_one_price = 0
879
+      var all_count_price = 0
880
+      if(val!=null && val.length >0){
881
+      for(let i=0;i<val.length;i++){
882
+        count_price +=val[i].count * val[i].price
883
+      }
884
+      }
885
+      if(val2!=null && val2.length > 0){
886
+      for(let i=0;i<val2.length;i++){
887
+        count_one_price +=val2[i].count * val[i].price
888
+      }
889
+      }
890
+      all_count_price = count_price + count_one_price
891
+
892
+      if(all_count_price > 0 ){
893
+        return all_count_price
894
+      }else{
895
+        return 0
896
+      }
897
+    },
898
+    getWarehosueOutInfoPrice(val,val2,val3){
899
+     var count_price = 0
900
+     var count_one_price = 0
901
+     var all_count_price = 0
902
+     var count_two_price = 0
903
+     if(val!=null && val.length >0){
904
+       for(let i=0;i<val.length;i++){
905
+        count_price += val[i].count * val[i].price
906
+       }
907
+     }
908
+     if(val2!=null && val2.length > 0){
909
+      for(let i=0;i<val2.length;i++){
910
+        count_one_price +=val2[i].count  * val[i].price
911
+      }
912
+     }
913
+     if(val3!=null && val3.length > 0){
914
+      for(let i=0;i<val3.length;i++){
915
+        count_two_price +=val3[i].count  * val[i].price
916
+      }
917
+     }
918
+     console.log("本期减少",count_price)
919
+     console.log("盘亏",count_one_price)
920
+     console.log("退库",all_count_price)
921
+     all_count_price = count_price +count_one_price - count_two_price
922
+     console.log("数据我哦我我",all_count_price)
923
+     if(all_count_price >0){
924
+       return all_count_price
925
+     }else{
926
+      return 0
927
+     }
928
+   },
822
 
929
 
823
    },
930
    },
824
     created(){
931
     created(){

File diff suppressed because it is too large
+ 867 - 112
src/xt_pages/user/courseOfDisease_new.vue


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

+ 231 - 192
src/xt_pages/user/text_content.vue View File

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <table border="1" class="table" style="border-collapse: collapse;width: 100%;">
4
-      <tr>
5
-        <th colspan="7" style="padding: 5px;">透析阶段小结(2024-12-01~2024-12-31)</th>
6
-      </tr>
7
-      <tr>
8
-        <td width="150" style="padding: 5px;">基本信息</td>
9
-        <td style="padding: 5px;" colspan="6">
10
-          <span>姓名:朱康林</span>  <span>性别:男</span>  <span>年龄:58</span>  <span>透析号:21000005</span>
11
-        </td>
12
-      </tr>
13
-      <tr>
14
-        <td style="align-items: center;padding: 5px;">透析处方</td>
15
-        <td colspan="6" style='padding:5px'>
16
-          <p style='font-weight: bold;'>总次数:1次;</p>
17
-          <p style='margin-bottom: 10px;' >其中HD1次,平均4.00小时/次,使用空心纤维血液透析器B-18BHF(B-18BHF);</p>
18
-          <p style='font-weight: bold;'>总次数:1次;</p>
19
-          <p style='margin-bottom: 10px;'>钾:2.0mmol/L;钙:1.5mmol/L;碳酸氢根:32mmol/L;处方钠:138~138mmol/L</p>
20
-          <p style='font-weight: bold;'>抗凝方式:</p>
21
-          <p >低分子肝素,剂量:3500.00~3500.00IU;</p>
22
-        </td>
23
-      </tr>
24
-      <tr>
25
-        <td style="align-items: center;padding: 5px;">透析情况</td>
26
-        <td colspan="6" style='padding:5px'>
27
-          <p>透析间期平均体重增加:2.90kg;</p>
28
-          <p>凝血:透析器-0度(1次);</p>
29
-          <p>平均血流量:250.00mL/min;最大血流量:250mL/min;</p>
30
-          <p>平均超滤量:2900.00ml/次;平均超滤率:9.84mL/kg/h;</p>
31
-          <p>
32
-            <span style='font-weight: bold;'>透前血压:</span>&nbsp;<span class="">收缩压:174~174mmHg;舒张压:69~69mmHg;</span>
33
-          </p>
34
-          <p>
35
-            <span style='font-weight: bold;'>透后血压:</span>&nbsp;<span class="">收缩压:155~155mmHg;舒张压:87~87mmHg;</span>
36
-          </p>
37
-          <p>
38
-            <span style='font-weight: bold;'>透中最低血压:</span>&nbsp;<span class="">收缩压:148~148mmHg;舒张压:56~56mmHg;</span>
39
-          </p>
40
-          <p>
41
-            <span style='font-weight: bold;'>透中最高血压:</span>&nbsp;<span class="">收缩压:175~175mmHg;舒张压:87~87mmHg;</span>
42
-          </p>
43
-        </td>
44
-      </tr>
45
-      <tr>
46
-        <td style="align-items: center;padding: 5px;">干体重</td>
47
-        <td colspan="6" style='padding: 5px;'>
48
-          <p>
49
-            <span style='font-weight: bold;'>当前干体重:</span>&nbsp;<span class="">73.7kg;</span>
50
-          </p>
51
-          <p>
52
-            <span style='font-weight: bold;'>调整记录:</span>&nbsp;<span class="">无</span>
53
-          </p>
54
-        </td>
55
-      </tr>
56
-      <tr>
57
-        <td style="align-items: center;padding: 5px;">血管通路</td>
58
-        <td colspan="6" style='padding: 5px;'>
59
-          <p>
60
-            <span style='font-weight: bold;'>使用的血管通路:</span>&nbsp;<span class="">${ this.ceshi } &nbsp;&nbsp;建立时间:${ this.ceshi }</span>
61
-          </p>   
62
-        </td>
63
-      </tr>
64
-      <tr>
65
-        <td style="align-items: center;padding: 5px;">合并症/并发症</td>
66
-        <td colspan="6" style='padding: 5px;'>
67
-          <p>
68
-            <span style='font-weight: bold;'>合并症:</span>&nbsp;<span class="">无</span>
69
-          </p>
70
-          <p>
71
-            <span style='font-weight: bold;'>透析并发症:</span>&nbsp;<span class="">无</span>
72
-          </p>
73
-        </td>
74
-      </tr>
75
-      <tr>
76
-        <td style="align-items: center;padding: 5px;">检验结果</td>
77
-        <td colspan="6" style='padding: 5px;'>
78
-          <span class="">无</span>
79
-        </td>
80
-      </tr>
81
-      <tr>
82
-        <td style="align-items: center;padding: 5px;">检查结果</td>
83
-        <td colspan="6" style='padding: 5px;'>
84
-          <span class="">无</span>
85
-        </td>
86
-      </tr>
87
-      <tr>
88
-        <td style="align-items: center;padding: 5px;">医嘱用药</td>
89
-        <td colspan="6" style="padding: 0;">
90
-          <p style="display: flex;text-align: center;border-bottom: 1px solid black;">
91
-            <span style="width: 30%;display: inline-block;padding: 5px;border-right: 1px solid black;">药物名称</span>
92
-            <span style="width:20% ;display: inline-block;border-right: 1px solid black;">医嘱类型</span>
93
-            <span style="width: 20%;display: inline-block;border-right: 1px solid black;">开始时间</span>
94
-            <span style="width: 20%;display: inline-block;border-right: 1px solid black;">单次用量</span>
95
-            <span style="width: 20%;display: inline-block;border-right: 1px solid black;">执行频率</span>
96
-            <span style="width: 10%;display: inline-block;">状态</span>
97
-          </p>
98
-          <p v-for="(item,index) in num" :key="index" style="display: flex;text-align: center;border-bottom: 1px solid black;">
99
-            <span style="width: 30%;display: inline-block;text-align: left;border-right: 1px solid black;">{{ item }}</span>
100
-            <span style="width:20% ;display: inline-block;border-right: 1px solid black;padding: 5px;">{{ item }}</span>
101
-            <span style="width: 20%;display: inline-block; border-right: 1px solid black;">{{ item }}</span>
102
-            <span style="width: 20%;display: inline-block;border-right: 1px solid black;">{{ item }}</span>
103
-            <span style="width: 20%;display: inline-block;border-right: 1px solid black;">执行频率</span>
104
-            <span style="width: 10%;display: inline-block;">状态</span>
105
-          </p>
106
-    
107
-        </td> 
108
-      </tr>
109
-      <tr>
110
-        <td style="align-items: center;padding: 5px;">透析总评价和建议</td>
111
-        <td colspan="6" style='padding: 5px;'>
112
-          <p class="">1、血压控制不良,随时监测血压,并加用口服降压药,将血压控制在正常范围;</p>
113
-          <p class="">2、透析间期体重增加稳定,继续保持;</p>
114
-          <p class="">3、血液透析时血流量达标,注意保护内瘘避免狭窄;</p>
115
-        </td>
116
-      </tr>
117
-      <tr>
118
-        <td style="align-items: center;padding: 5px;">医师签名</td>
119
-        <td></td>
120
-      </tr>
121
-    </table> -->
3
+ 
122
     <div v-html="content" id="editer"></div>
4
     <div v-html="content" id="editer"></div>
123
-    <!-- <table border="1" style="border-collapse:collapse ;width: 100%;text-align: center;">
124
-                    <tr>
125
-                      <th style='padding: 5px;'>药物名称</th>
126
-                      <th style='padding: 5px;'>医嘱类型</th>
127
-                      <th style='padding: 5px;'>开始时间</th>
128
-                      <th style='padding: 5px;'>单次用量</th>
129
-                      <th style='padding: 5px;'>执行频率</th>
130
-                      <th style='padding: 5px;'>状态</th>
131
-                    </tr>
132
-                    <tr>
133
-                      <td style='padding: 5px;'>血液透析</td>
134
-                      <td style='padding: 5px;'>长期医嘱</td>
135
-                      <td style='padding: 5px;'>2021-11-06</td>
136
-                      <td style='padding: 5px;'>项</td>
137
-                      <td style='padding: 5px;'>一周三次</td>
138
-                      <td style='padding: 5px;'></td>
139
-                    </tr>
140
-                  </table> -->
141
   </div>
5
   </div>
142
 </template>
6
 </template>
143
 
7
 
144
 <script>
8
 <script>
9
+import { watch } from 'vue';
10
+import {getAutoPatientContent} from '@/api/patient'
11
+import { uParseTime } from '@/utils/tools'
145
 export default{
12
 export default{
13
+   props: {
14
+    patient: {
15
+      type: Object,
16
+    },
17
+  //   prescriptionList:{
18
+  //     type:Array
19
+  //   },
20
+  //   berforList:{
21
+  //     type:Array
22
+  //   },
23
+  //   monitorList:{
24
+  //     type:Array
25
+  //   },
26
+  //   dryweightList:{
27
+  //     type:Array
28
+  //   },
29
+  //   inpectionList:{
30
+  //     type:Array
31
+  //   },
32
+  //   dialysisOrder:{
33
+  //     type:Array
34
+  //   },
35
+    start_date:{
36
+      type:String
37
+    },
38
+    end_date:{
39
+      type:String
40
+    },
41
+    patient_id:{
42
+      type:Number
43
+    },
44
+    longAdvice:{
45
+      type:Array
46
+    }
47
+   },
146
   data(){
48
   data(){
147
     return {
49
     return {
148
       content:'',
50
       content:'',
149
       ceshi:111111,
51
       ceshi:111111,
150
-      num:6,
52
+      show:true,
151
       tab:[{id:1,name:'人促红注射液',type:'长期医嘱',start:'2024-12-04',dosage:"3000iu",pinlv:'一周三次',status:''},
53
       tab:[{id:1,name:'人促红注射液',type:'长期医嘱',start:'2024-12-04',dosage:"3000iu",pinlv:'一周三次',status:''},
152
             {id:2,name:'人促红注射液2',type:'长期医嘱',start:'2024-12-05',dosage:"3000iu",pinlv:'一周三次',status:''}, 
54
             {id:2,name:'人促红注射液2',type:'长期医嘱',start:'2024-12-05',dosage:"3000iu",pinlv:'一周三次',status:''}, 
153
-        ]
55
+      ],
56
+      Inspect:[{id:1,name:'血常规',date:'2024-12-09',left:[{c_id:1,c_name:'血红蛋白',c_value:110},{c_id:2,c_name:'血红蛋白2',c_value:110}],
57
+            right:[{c_id:1,c_name:'白细胞1',c_value:110},{c_id:2,c_name:'白细胞3',c_value:110}]},
58
+            {id:2,name:'血常规',date:'2024-12-09',left:[{c_id:1,c_name:'血红蛋白',c_value:110},{c_id:2,c_name:'血红蛋白2',c_value:110}],
59
+            right:[{c_id:1,c_name:'白细胞1',c_value:110},{c_id:2,c_name:'白细胞3',c_value:110}]}
60
+      ],
61
+       name:"",
62
+       gander:"",
63
+       age:0,
64
+       dialysis_no:"",
65
+       prescriptionList:[],
66
+       berforList:[],
67
+       monitorList:[],
68
+       dryweightList:[],
69
+       inpectionList:[],
70
+       dialysisOrderList:[],
71
+       patient:{},
72
+       patient2:{},
73
+       text:'',
74
+      
154
     }
75
     }
155
   },
76
   },
156
   created(){
77
   created(){
78
+   
79
+  },
80
+  watch:{
81
+   
157
     
82
     
158
-    const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
83
+   
84
+  },
85
+  beforeMount(){
86
+     console.log("patinet==========================",this.patient)
87
+     console.log("longAdvice-----------------------",this.longAdvice)
88
+      if(this.longAdvice!=null && this.longAdvice.length>0){
89
+        for(let i=0;i<this.longAdvice.length;i++){
90
+            this.longAdvice[i].advice_type_name = ""
91
+            if(this.longAdvice[i].advice_type == 1){
92
+              this.longAdvice[i].advice_type_name = "长期医嘱"
93
+            }
94
+            if(this.longAdvice[i].stop_state == 1){
95
+              this.longAdvice[i].stop_state_name = "停用"
96
+            }
97
+            if(this.longAdvice[i].stop_state == 2){
98
+              this.longAdvice[i].stop_state_name = "未停用"
99
+            }
100
+         }
101
+      }
102
+     
103
+     const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
159
               <tr>
104
               <tr>
160
-                <th colspan="2" style="padding: 5px;">透析阶段小结(2024-12-01~2024-12-31)</th>
105
+                <th colspan="2" style="padding: 5px;">透析阶段小结(${this.start_date}~${this.end_date})</th>
161
               </tr>
106
               </tr>
162
               <tr>
107
               <tr>
163
                 <td width="130" style="padding: 5px;">基本信息</td>
108
                 <td width="130" style="padding: 5px;">基本信息</td>
164
                 <td style="padding: 5px;">
109
                 <td style="padding: 5px;">
165
-                  <span>姓名:朱康林</span>  <span>性别:男</span>  <span>年龄:58</span>  <span>透析号:21000005</span>
110
+                  <span>姓名:${this.patient.name}</span>  <span>性别:${this.patient.gender_name}</span>  <span>年龄:${this.patient.age}</span>  <span>透析号:${this.patient.dialysis_no}</span>
166
                 </td>
111
                 </td>
167
               </tr>
112
               </tr>
168
               <tr>
113
               <tr>
169
                 <td style="align-items: center;padding: 5px;">透析处方</td>
114
                 <td style="align-items: center;padding: 5px;">透析处方</td>
170
                 <td style='padding:5px'>
115
                 <td style='padding:5px'>
171
-                  <p style='font-weight: bold;'>总次数:1次;</p>
172
-                  <p style='margin-bottom: 10px;' >其中HD1次,平均4.00小时/次,使用空心纤维血液透析器B-18BHF(B-18BHF);</p>
173
-                  <p style='font-weight: bold;'>总次数:1次;</p>
174
-                  <p style='margin-bottom: 10px;'>钾:2.0mmol/L;钙:1.5mmol/L;碳酸氢根:32mmol/L;处方钠:138~138mmol/L</p>
116
+                  <p style='font-weight: bold;'>总次数: ;</p>
117
+                  <p style='margin-bottom: 10px;' >其中;</p>
118
+                  <p style='margin-bottom: 10px;'></p>
175
                   <p style='font-weight: bold;'>抗凝方式:</p>
119
                   <p style='font-weight: bold;'>抗凝方式:</p>
176
                   <p >低分子肝素,剂量:3500.00~3500.00IU;</p>
120
                   <p >低分子肝素,剂量:3500.00~3500.00IU;</p>
177
                 </td>
121
                 </td>
227
               </tr>
171
               </tr>
228
               <tr>
172
               <tr>
229
                 <td style="align-items: center;padding: 5px;">检查结果</td>
173
                 <td style="align-items: center;padding: 5px;">检查结果</td>
230
-                <td style='padding: 5px;'>
231
-                  <span class="">无</span>
174
+                <td>
175
+                  
232
                 </td>
176
                 </td>
233
               </tr>
177
               </tr>
234
               <tr>
178
               <tr>
235
                 <td style="align-items: center;padding: 5px;">医嘱用药</td>
179
                 <td style="align-items: center;padding: 5px;">医嘱用药</td>
236
                 <td  class='' style="padding: 0;">
180
                 <td  class='' style="padding: 0;">
237
                   <p style="display: flex;text-align: center;border-bottom: 1px solid black;">
181
                   <p style="display: flex;text-align: center;border-bottom: 1px solid black;">
238
-<span style="width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">药物名称</span><span style="width:20% ;display: inline-block;padding: 5px 0;border-right: 1px solid black;">医嘱类型</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">开始时间</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">单次用量</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">执行频率</span><span style="width: 10%;padding: 5px 0;display: inline-block;">状态</span></p>
182
+                    <span style="width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">药物名称</span><span style="width:20% ;display: inline-block;padding: 5px 0;border-right: 1px solid black;">医嘱类型</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">开始时间</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">单次用量</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">执行频率</span><span style="width: 10%;padding: 5px 0;display: inline-block;">状态</span></p>
239
                 </td>
183
                 </td>
240
               </tr>
184
               </tr>
185
+              
186
+              
241
               <tr>
187
               <tr>
242
                 <td style="align-items: center;padding: 5px;">透析总评价和建议</td>
188
                 <td style="align-items: center;padding: 5px;">透析总评价和建议</td>
243
                 <td style='padding: 5px;'>
189
                 <td style='padding: 5px;'>
253
                 </td>
199
                 </td>
254
               </tr>
200
               </tr>
255
             </table>`
201
             </table>`
256
-    
257
-    this.content = contents
258
-    
202
+            // this.text = contents
203
+            this.content = contents
259
   },
204
   },
260
   mounted(){
205
   mounted(){
261
-    console.log('document.getElementById3334',document.getElementById('editer'))
262
-    const iframeDoc = document.getElementById('editer').getElementsByTagName('tbody')[0].children[9].children[1]
263
-    var newListArr =[]
264
-    for(let j in this.tab){
265
-      const obj={
266
-        id:this.tab[j].id,
267
-        newlist:'newList'+j
268
-      }
269
-      newListArr.push(obj) 
270
-    }
271
-    for(let i in this.tab){
272
-      for(let j in newListArr){
273
-        if(this.tab[i].id==newListArr[j].id){
274
-          let newList = document.createElement('p');
275
-          newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
206
+    this.$nextTick(() =>{
207
+      console.log('document.getElementById(editer)',document.getElementById('editer').getElementsByTagName('tbody')[0].children[9]);
208
+      
209
+      const iframeDoc = document.getElementById('editer').getElementsByTagName('tbody')[0].children[9].children[1]
210
+      const jiancDoc = document.getElementById('editer').getElementsByTagName('tbody')[0].children[8].children[1]
211
+      console.log('document.getElementById(editer)1111',jiancDoc);
212
+      if(this.Inspect.length<1){
213
+        let newList = document.createElement('p');
214
+        newList.style.cssText = 'padding: 5px;'
215
+        newList.textContent = '无';
216
+        jiancDoc.appendChild(newList)
217
+      }else{
218
+        let newList = document.createElement('p');
219
+            newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
220
+            let newListItem1 = document.createElement('span');
221
+            newListItem1.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
222
+            let newListItem2 = document.createElement('span');
223
+            newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
224
+            let newListItem3 = document.createElement('span');
225
+            newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
226
+            let newListItem4 = document.createElement('span');
227
+            newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
228
+            let newListItem5 = document.createElement('span');
229
+            newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
230
+            let newListItem6 = document.createElement('span');
231
+            newListItem6.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;'
232
+            newListItem1.textContent = '检验项目';
233
+            newListItem2.textContent = '检验时间';
234
+            newListItem3.textContent = '检验内容';
235
+            newListItem4.textContent = '结果';
236
+            newListItem5.textContent = '检验内容';
237
+            newListItem6.textContent = '结果';
238
+            newList.appendChild(newListItem1);
239
+            newList.appendChild(newListItem2);
240
+            newList.appendChild(newListItem3);
241
+            newList.appendChild(newListItem4);
242
+            newList.appendChild(newListItem5);
243
+            newList.appendChild(newListItem6);
244
+            jiancDoc.appendChild(newList)
245
+        for(let i in this.Inspect){
246
+          let newList1 = document.createElement('p');
247
+          const child1 = document.createElement('p')
248
+          const child2 = document.createElement('p')
249
+          const child3 = document.createElement('p')
250
+          newList1.appendChild(child1);
251
+          newList1.appendChild(child2);
252
+          newList1.appendChild(child3);
253
+          newList1.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
254
+          child1.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;'
255
+          child2.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;flex-wrap: wrap;'
256
+          child3.style.cssText= 'width: 40%;display: inline-block;display: flex;flex-wrap: wrap;'
257
+
276
           let newListItem1 = document.createElement('span');
258
           let newListItem1 = document.createElement('span');
277
-          newListItem1.style.cssText= 'width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
259
+          newListItem1.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
278
           let newListItem2 = document.createElement('span');
260
           let newListItem2 = document.createElement('span');
279
-          newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
280
-          let newListItem3 = document.createElement('span');
281
-          newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
282
-          let newListItem4 = document.createElement('span');
283
-          newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
284
-          let newListItem5 = document.createElement('span');
285
-          newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
286
-          let newListItem6 = document.createElement('span');
287
-          newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
288
-          newListItem1.textContent = this.tab[i].name;
289
-          newListItem2.textContent = this.tab[i].type;
290
-          newListItem3.textContent = this.tab[i].start;
291
-          newListItem4.textContent = this.tab[i].dosage;
292
-          newListItem5.textContent = this.tab[i].pinlv;
293
-          newListItem6.textContent = this.tab[i].status;
294
-          newList.appendChild(newListItem1);
295
-          newList.appendChild(newListItem2);
296
-          newList.appendChild(newListItem3);
297
-          newList.appendChild(newListItem4);
298
-          newList.appendChild(newListItem5);
299
-          newList.appendChild(newListItem6);
300
-          iframeDoc.appendChild(newList)
261
+          newListItem2.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;'
262
+          newListItem1.textContent = this.Inspect[i].name;
263
+          newListItem2.textContent = this.Inspect[i].date;
264
+          child1.appendChild(newListItem1);
265
+          child1.appendChild(newListItem2);
266
+          for(let j in this.Inspect[i].left){
267
+            let newListItem3 = document.createElement('span');
268
+            newListItem3.style.cssText= 'border-bottom: 1px solid black;width:50%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
269
+            let newListItem4 = document.createElement('span');
270
+            newListItem4.style.cssText= 'border-bottom: 1px solid black;width:50%;display: inline-block;padding: 5px 0;'
271
+            newListItem3.textContent = this.Inspect[i].left[j].c_name;
272
+            newListItem4.textContent = this.Inspect[i].left[j].c_value;
273
+            child2.appendChild(newListItem3);
274
+            child2.appendChild(newListItem4);
275
+          }
276
+          for(let x in this.Inspect[i].right){
277
+            let newListItem5 = document.createElement('span');
278
+            newListItem5.style.cssText= 'width: 50%;display: inline-block;padding: 5px 0;border-right: 1px solid black;border-bottom: 1px solid black;'
279
+            let newListItem6 = document.createElement('span');
280
+            newListItem6.style.cssText= 'width: 50%;display: inline-block;padding: 5px 0;border-bottom: 1px solid black;'
281
+            newListItem5.textContent = this.Inspect[i].right[x].c_name;
282
+            newListItem6.textContent = this.Inspect[i].right[x].c_value;
283
+            child3.appendChild(newListItem5);
284
+            child3.appendChild(newListItem6);
285
+          }
286
+          jiancDoc.appendChild(newList1)
301
         }
287
         }
302
       }
288
       }
303
-    }
304
-    this.$emit('new_content',this.content) 
289
+
290
+
291
+      var newListArr =[]
292
+      for(let j in this.longAdvice){
293
+        const obj={
294
+          id:this.longAdvice[j].id,
295
+          newlist:'newList'+j
296
+        }
297
+        newListArr.push(obj) 
298
+      }
299
+      for(let i in this.longAdvice){
300
+        for(let j in newListArr){
301
+          if(this.longAdvice[i].id==newListArr[j].id){
302
+            let newList = document.createElement('p');
303
+            newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
304
+            let newListItem1 = document.createElement('span');
305
+            newListItem1.style.cssText= 'width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
306
+            let newListItem2 = document.createElement('span');
307
+            newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
308
+            let newListItem3 = document.createElement('span');
309
+            newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
310
+            let newListItem4 = document.createElement('span');
311
+            newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
312
+            let newListItem5 = document.createElement('span');
313
+            newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
314
+            let newListItem6 = document.createElement('span');
315
+            newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
316
+            newListItem1.textContent = this.longAdvice[i].advice_name;
317
+            newListItem2.textContent = this.longAdvice[i].advice_type_name;
318
+            newListItem3.textContent = this.getTime(this.longAdvice[i].start_time)
319
+            newListItem4.textContent = this.longAdvice[i].single_dose +this.longAdvice[i].single_dose_unit ;
320
+            newListItem5.textContent = this.longAdvice[i].execution_frequency;
321
+            newListItem6.textContent = this.longAdvice[i].stop_state_name;
322
+            newList.appendChild(newListItem1);
323
+            newList.appendChild(newListItem2);
324
+            newList.appendChild(newListItem3);
325
+            newList.appendChild(newListItem4);
326
+            newList.appendChild(newListItem5);
327
+            newList.appendChild(newListItem6);
328
+            iframeDoc.appendChild(newList)
329
+          }
330
+        }
331
+      }
332
+      this.$emit('new_content',this.content)
333
+    })
334
+    console.log("name:",this.name)
335
+    console.log("gander:",this.gander)
336
+    console.log("age:",this.age)
337
+    console.log("dialysis_no:",this.dialysis_no)
338
+   
339
+  },
340
+  methods: {
341
+    getTime (time) {
342
+      return uParseTime(time, '{y}-{m}-{d}')
343
+     },
305
   }
344
   }
306
   
345
   
307
 }
346
 }

+ 13 - 13
src/xt_permission.js View File

12
 
12
 
13
 router.beforeEach((to, from, next) => {
13
 router.beforeEach((to, from, next) => {
14
   // 线上注释
14
   // 线上注释
15
-  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-    store.dispatch('VerifyConfigList', []).then(() => {
17
-      next()
18
-    })
19
-  }
20
-  if (store.getters.permission_routers === undefined) {
21
-    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-      next()
23
-    })
24
-  } else {
25
-    next()
26
-  }
27
-  return
15
+  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+  //   store.dispatch('VerifyConfigList', []).then(() => {
17
+  //     next()
18
+  //   })
19
+  // }
20
+  // if (store.getters.permission_routers === undefined) {
21
+  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+  //     next()
23
+  //   })
24
+  // } else {
25
+  //   next()
26
+  // }
27
+  // return
28
   // 线上注释
28
   // 线上注释
29
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))