Browse Source

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

XMLWAN 3 years ago
parent
commit
f341d13cd1
27 changed files with 1785 additions and 115 deletions
  1. 9 0
      src/api/drug/drug_stock.js
  2. 9 1
      src/api/stock.js
  3. 2 0
      src/xt_pages/dialysis/batch_print/batch_print_order_thirty.vue
  4. 1 1
      src/xt_pages/dialysis/components/dialysisDrugs.vue
  5. 11 5
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  6. 26 9
      src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue
  7. 24 0
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  8. 1438 0
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyNine.vue
  9. 2 1
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue
  10. 8 8
      src/xt_pages/outpatientCharges/invoiceTemplate/printTwo.vue
  11. 3 6
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue
  12. 17 1
      src/xt_pages/outpatientCharges/summary.vue
  13. 19 10
      src/xt_pages/stock/detail/print.vue
  14. 54 27
      src/xt_pages/stock/detail/stockInDetail.vue
  15. 4 5
      src/xt_pages/stock/detail/stockOutDetail.vue
  16. 9 3
      src/xt_pages/stock/drugs/components/drugOutDetail.vue
  17. 2 2
      src/xt_pages/stock/drugs/drugCancelDetailPrint.vue
  18. 2 2
      src/xt_pages/stock/drugs/drugCancelOurderPrint.vue
  19. 2 1
      src/xt_pages/stock/drugs/drugOutOrderPrint.vue
  20. 2 2
      src/xt_pages/stock/drugs/drugQueryPrint.vue
  21. 15 11
      src/xt_pages/stock/drugs/drugStockInOrderDetailPrint.vue
  22. 57 7
      src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue
  23. 1 1
      src/xt_pages/stock/drugs/query.vue
  24. 2 2
      src/xt_pages/stock/stockOutOrderDetail.vue
  25. 59 6
      src/xt_pages/stock/stockOutOrderDetailPrint.vue
  26. 4 3
      src/xt_pages/stock/stockPrint.vue
  27. 3 1
      src/xt_pages/stock/stockQuery.vue

+ 9 - 0
src/api/drug/drug_stock.js View File

428
 }
428
 }
429
 
429
 
430
 
430
 
431
+export function getDrugWarehouseOrderInfo(params){
432
+   
433
+  return request({
434
+    url:"/api/drugstock/getdrugwarehouseorderinfo",
435
+    method:"get",
436
+    params:params
437
+  })
438
+}
439
+
431
 
440
 
432
 
441
 
433
 
442
 

+ 9 - 1
src/api/stock.js View File

610
     method:"get",
610
     method:"get",
611
     params:params
611
     params:params
612
   })
612
   })
613
-}
613
+}
614
+
615
+export function getWarehouseOrderInfoList(params){
616
+   return request({
617
+      url:"/api/good/getwarehouseorderinfolist",
618
+      method:"get",
619
+      params:params
620
+   })
621
+} 

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

154
                                          
154
                                          
155
                                         <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '人造血管')" showValue="人造血管"></label-box>
155
                                         <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '人造血管')" showValue="人造血管"></label-box>
156
                                         &nbsp;
156
                                         &nbsp;
157
+                                         <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '扣眼')" showValue="扣眼"></label-box>
158
+                                        &nbsp;
157
                                     </div>
159
                                     </div>
158
                                 </td>
160
                                 </td>
159
                                 <td width='20'></td>
161
                                 <td width='20'></td>

+ 1 - 1
src/xt_pages/dialysis/components/dialysisDrugs.vue View File

510
                 }
510
                 }
511
             })
511
             })
512
             this.indexInfoList = newArr
512
             this.indexInfoList = newArr
513
-            console.log("过年9999999999",this.scheduleMap)
513
+           
514
            }
514
            }
515
          
515
          
516
   
516
   

+ 11 - 5
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

588
               <el-input v-model="form.dosage_of_anticoagulants"></el-input>
588
               <el-input v-model="form.dosage_of_anticoagulants"></el-input>
589
           </el-form-item>
589
           </el-form-item>
590
         </el-col>
590
         </el-col>
591
-        
591
+
592
 
592
 
593
         <el-col :span="8" v-if="isShow('并发症其他')">
593
         <el-col :span="8" v-if="isShow('并发症其他')">
594
           <el-form-item label="并发症其他: ">
594
           <el-form-item label="并发症其他: ">
603
         </el-col>
603
         </el-col>
604
         <el-col :span="8" v-if="isShow('透析相关高血压')">
604
         <el-col :span="8" v-if="isShow('透析相关高血压')">
605
             <el-form-item label="透析相关高血压:">
605
             <el-form-item label="透析相关高血压:">
606
-        
606
+
607
              <el-select v-model="form.hypertenison">
607
              <el-select v-model="form.hypertenison">
608
               <el-option :key="0" label="请选择" :value="0"></el-option>
608
               <el-option :key="0" label="请选择" :value="0"></el-option>
609
               <el-option
609
               <el-option
681
             </el-form-item>
681
             </el-form-item>
682
         </el-col>
682
         </el-col>
683
       </el-form>
683
       </el-form>
684
-         
684
+
685
 
685
 
686
       <span slot="footer" class="dialog-footer">
686
       <span slot="footer" class="dialog-footer">
687
         <el-button @click="hide">取 消</el-button>
687
         <el-button @click="hide">取 消</el-button>
1215
       this.form.observation_content = predialysis.observation_content
1215
       this.form.observation_content = predialysis.observation_content
1216
       this.form.inpatient_department = predialysis.inpatient_department
1216
       this.form.inpatient_department = predialysis.inpatient_department
1217
       this.form.observation_content_other = predialysis.observation_content_other
1217
       this.form.observation_content_other = predialysis.observation_content_other
1218
+      if(predialysis.id > 0){
1219
+        this.form.hypertenison = predialysis.hypertenison.toString()
1220
+      }
1221
+      if(predialysis.id > 0){
1222
+        this.form.hypopiesia = predialysis.hypopiesia.toString()
1223
+      }
1218
       if(predialysis.id > 0){
1224
       if(predialysis.id > 0){
1219
          this.form.hypertenison = predialysis.hypertenison.toString()
1225
          this.form.hypertenison = predialysis.hypertenison.toString()
1220
       }
1226
       }
1221
       if(predialysis.id > 0){
1227
       if(predialysis.id > 0){
1222
         this.form.hypopiesia = predialysis.hypopiesia.toString()
1228
         this.form.hypopiesia = predialysis.hypopiesia.toString()
1223
       }
1229
       }
1224
-    
1225
-    
1230
+
1231
+
1226
       this.form.leave_office_method = predialysis.leave_office_method
1232
       this.form.leave_office_method = predialysis.leave_office_method
1227
       this.form.lapse = predialysis.lapse
1233
       this.form.lapse = predialysis.lapse
1228
       // console.log("透后", predialysis);
1234
       // console.log("透后", predialysis);

+ 26 - 9
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue View File

2
   <el-dialog title="双人核对"
2
   <el-dialog title="双人核对"
3
              :visible.sync="isVisibility"
3
              :visible.sync="isVisibility"
4
              :modal-append-to-body="false"
4
              :modal-append-to-body="false"
5
-             width="854px">
5
+             width="854px"
6
+            >
6
 
7
 
7
     <el-form :inline="true" class="demo-form-inline newInline" :model="doubleReview" label-width="105px">
8
     <el-form :inline="true" class="demo-form-inline newInline" :model="doubleReview" label-width="105px">
8
       
9
       
202
         blood_access_part_opera_id:"通路类型:"
203
         blood_access_part_opera_id:"通路类型:"
203
       }
204
       }
204
     }, methods: {
205
     }, methods: {
206
+      
205
       show() {
207
       show() {
206
-        console.log(this.double_check)
207
-
208
+        
208
         this.isVisibility = true
209
         this.isVisibility = true
209
         if (this.double_check.id > 0) {
210
         if (this.double_check.id > 0) {
210
 
211
 
252
         }
253
         }
253
       },
254
       },
254
       hide() {
255
       hide() {
256
+      
255
         this.isVisibility = false
257
         this.isVisibility = false
256
       },
258
       },
257
       handleCancle: function() {
259
       handleCancle: function() {
260
+      
258
         this.isVisibility = false
261
         this.isVisibility = false
259
 
262
 
260
       }, 
263
       }, 
776
       GetDialysateFormulationById(val) {
779
       GetDialysateFormulationById(val) {
777
          this.dialysate_formulation_options = getDataConfig('hemodialysis','dialysate_formulation')
780
          this.dialysate_formulation_options = getDataConfig('hemodialysis','dialysate_formulation')
778
          console.log("透析液配方",this.dialysate_formulation_options)
781
          console.log("透析液配方",this.dialysate_formulation_options)
782
+        
779
         let name = ''
783
         let name = ''
780
         let dfl = this.dialysate_formulation_options.length
784
         let dfl = this.dialysate_formulation_options.length
781
         for (let index = 0; index < dfl; index++) {
785
         for (let index = 0; index < dfl; index++) {
924
     },
928
     },
925
     watch: {
929
     watch: {
926
       isVisibility(val) {
930
       isVisibility(val) {
927
-      
931
+        
928
         if(this.prescription!=null && this.prescription.id!=0){
932
         if(this.prescription!=null && this.prescription.id!=0){
933
+
929
           this.diazes = this.diazes + this.prescription.dialyzer_perfusion_apparatus
934
           this.diazes = this.diazes + this.prescription.dialyzer_perfusion_apparatus
935
+          this.prescription.dialyzer_perfusion_apparatus = ""
930
           this.dialysate_formulation = this.dialysate_formulation + this.GetDialysateFormulationById(this.prescription.dialysate_formulation)
936
           this.dialysate_formulation = this.dialysate_formulation + this.GetDialysateFormulationById(this.prescription.dialysate_formulation)
931
-         
937
+          // this.prescription.dialysate_formulation = ""
932
           this.kalium = this.kalium + (this.prescription.kalium?this.prescription.kalium:"")
938
           this.kalium = this.kalium + (this.prescription.kalium?this.prescription.kalium:"")
933
-         
939
+          this.prescription.kalium = ""
934
           this.calcium = this.calcium + (this.prescription.calcium?this.prescription.calcium:"")
940
           this.calcium = this.calcium + (this.prescription.calcium?this.prescription.calcium:"")
941
+          this.prescription.calcium = ""
935
           this.dialys_mode = this.dialys_mode + this.getMode(this.prescription.mode_id)
942
           this.dialys_mode = this.dialys_mode + this.getMode(this.prescription.mode_id)
936
-          this.long_time = this.long_time + (this.prescription.dialysis_duration?this.prescription.dialysate_formulation:"")
943
+          this.prescription.mode_id= ""
944
+          this.long_time = this.long_time + (this.prescription.dialysis_duration?this.prescription.dialysis_duration:"")
945
+          this.prescription.dialysis_duration=""
937
           this.target_ultrafiltration = this.target_ultrafiltration + (this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:"")
946
           this.target_ultrafiltration = this.target_ultrafiltration + (this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:"")
947
+          this.prescription.target_ultrafiltration = ""
938
           this.anticoagulant = this.anticoagulant + this.getAnticoagulant(this.prescription.anticoagulant)
948
           this.anticoagulant = this.anticoagulant + this.getAnticoagulant(this.prescription.anticoagulant)
949
+          this.prescription.anticoagulant=""
939
           this.anticoagulant_shouji = this.anticoagulant_shouji + (this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:"")
950
           this.anticoagulant_shouji = this.anticoagulant_shouji + (this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:"")
951
+          this.prescription.anticoagulant_shouji = ""
940
           this.anticoagulant_weichi = this.anticoagulant_weichi + (this.prescription.anticoagulant_weichi?this.prescription.anticoagulant_weichi:"")
952
           this.anticoagulant_weichi = this.anticoagulant_weichi + (this.prescription.anticoagulant_weichi?this.prescription.anticoagulant_weichi:"")
941
-          this.anticoagulant_zongliang = this.anticoagulant_zongliang+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:"")
942
-          this.displace_liqui_part = this.displace_liqui_part + (this.prescription.displace_liqui_part?this.prescription.displace_liqui_part:"")
953
+         this.prescription.anticoagulant_weichi=""
954
+         this.anticoagulant_zongliang = this.anticoagulant_zongliang+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:"")
955
+         this.prescription.anticoagulant_zongliang = ""
956
+         this.displace_liqui_part = this.displace_liqui_part + (this.prescription.displace_liqui_part?this.prescription.displace_liqui_part:"")
957
+          this.prescription.displace_liqui_part
943
           this.replacement_total = this.replacement_total + (this.prescription.replacement_total?this.prescription.replacement_total:"")
958
           this.replacement_total = this.replacement_total + (this.prescription.replacement_total?this.prescription.replacement_total:"")
959
+          this.prescription.replacement_total= ""
944
           this.dialysate_flow = this.dialysate_flow + (this.prescription.dialysate_flow?this.prescription.dialysate_flow:"")
960
           this.dialysate_flow = this.dialysate_flow + (this.prescription.dialysate_flow?this.prescription.dialysate_flow:"")
961
+          this.prescription.dialysate_flow= ""
945
         }
962
         }
946
         if(this.predialysis_evaluation!=null && this.predialysis_evaluation.id!=0){
963
         if(this.predialysis_evaluation!=null && this.predialysis_evaluation.id!=0){
947
           this.puncture_needle = this.puncture_needle + this.predialysis_evaluation.puncture_needle
964
           this.puncture_needle = this.puncture_needle + this.predialysis_evaluation.puncture_needle

+ 24 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

543
           >打印</el-button
543
           >打印</el-button
544
         >
544
         >
545
       </template>
545
       </template>
546
+      <template v-if="org_template_info.template_id == 39">
547
+        <el-button
548
+          :loading="loading"
549
+          size="small"
550
+          icon="el-icon-printer"
551
+          @click="printThisPage"
552
+          type="primary"
553
+          >打印</el-button
554
+        >
555
+      </template>
546
     </div>
556
     </div>
547
     <div class="app-container" style="min-height:0;">
557
     <div class="app-container" style="min-height:0;">
548
       <!--<div class="order-print-btn"-->
558
       <!--<div class="order-print-btn"-->
813
             v-if="org_template_info.template_id == 38"
823
             v-if="org_template_info.template_id == 38"
814
           >
824
           >
815
           </DialysisPrintOrderThirtyEight>
825
           </DialysisPrintOrderThirtyEight>
826
+          <DialysisPrintOrderThirtyNine
827
+            v-bind:childResponse="childResponse"
828
+            v-if="org_template_info.template_id == 39"
829
+          >
830
+          </DialysisPrintOrderThirtyNine>
816
         </div>
831
         </div>
817
       </el-container>
832
       </el-container>
818
     </div>
833
     </div>
870
 import DialysisPrintOrderThirtySix from "./template/DialysisPrintOrderThirtySix";
885
 import DialysisPrintOrderThirtySix from "./template/DialysisPrintOrderThirtySix";
871
 import DialysisPrintOrderThirtySeven from "./template/DialysisPrintOrderThirtySeven";
886
 import DialysisPrintOrderThirtySeven from "./template/DialysisPrintOrderThirtySeven";
872
 import DialysisPrintOrderThirtyEight from "./template/DialysisPrintOrderThirtyEight";
887
 import DialysisPrintOrderThirtyEight from "./template/DialysisPrintOrderThirtyEight";
888
+import DialysisPrintOrderThirtyNine from "./template/DialysisPrintOrderThirtyNine";
873
 export default {
889
 export default {
874
   name: "dialysisPrintOrder",
890
   name: "dialysisPrintOrder",
875
   components: {
891
   components: {
892
+    DialysisPrintOrderThirtyNine,
876
     DialysisPrintOrderThirtyEight,
893
     DialysisPrintOrderThirtyEight,
877
     DialysisPrintOrderThirtySeven,
894
     DialysisPrintOrderThirtySeven,
878
     DialysisPrintOrderThirtySix,
895
     DialysisPrintOrderThirtySix,
1342
           style: style8,
1359
           style: style8,
1343
           scanStyles: false
1360
           scanStyles: false
1344
         });
1361
         });
1362
+      } else if (this.org_template_info.template_id == 39) {
1363
+        printJS({
1364
+          printable: "dialysis-print-box",
1365
+          type: "html",
1366
+          style: style3,
1367
+          scanStyles: false
1368
+        });
1345
       }
1369
       }
1346
     },
1370
     },
1347
     printThisOnePage() {
1371
     printThisOnePage() {

File diff suppressed because it is too large
+ 1438 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyNine.vue


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

176
                     <td width="100">体液过多症状:</td>
176
                     <td width="100">体液过多症状:</td>
177
                     <td width="50">
177
                     <td width="50">
178
                       <div>
178
                       <div>
179
-                        <label-box :isChecked="predialysis.humor_excessive_symptom ? getHumorExcessiveSymptom(predialysis.humor_excessive_symptom).indexOf('无') > -1 : false" showValue="无"></label-box>
179
+                         <label-box :isChecked="prescription.body_fluid == 1 ? true : false" showValue="无"></label-box>
180
+                        <!-- <label-box :isChecked="predialysis.humor_excessive_symptom ? getHumorExcessiveSymptom(predialysis.humor_excessive_symptom).indexOf('无') > -1 : false" showValue="无"></label-box> -->
180
                       </div>
181
                       </div>
181
                     </td>
182
                     </td>
182
                     <td width="180">
183
                     <td width="180">

+ 8 - 8
src/xt_pages/outpatientCharges/invoiceTemplate/printTwo.vue View File

8
             <!-- <div>{{ list.department_name }}</div> -->
8
             <!-- <div>{{ list.department_name }}</div> -->
9
             <div  style="position: absolute;top:40px;left:300px">{{ list.number }}</div>
9
             <div  style="position: absolute;top:40px;left:300px">{{ list.number }}</div>
10
             <div></div>
10
             <div></div>
11
-            <div  style="position: absolute;left:610px;top:40px;">
12
-                <span>{{ printDate.slice(0,4) }}</span>
13
-                <span>{{ printDate.slice(5,7) }}</span>
14
-                <span>{{ printDate.slice(8,11) }}</span>
11
+            <div>
12
+                <span style="position: absolute;left:590px;top:40px;">{{ printDate.slice(0,4) }}</span>
13
+                <span style="position: absolute;left:630px;top:40px;">{{ printDate.slice(5,7) }}</span>
14
+                <span style="position: absolute;left:660px;top:40px;">{{ printDate.slice(8,11) }}</span>
15
             </div>
15
             </div>
16
         </div>
16
         </div>
17
         <div style="display:flex;justify-content: space-between;">
17
         <div style="display:flex;justify-content: space-between;">
18
             <div style="position: absolute;top:60px;left:120px;"> {{ paramsObj.name }}</div>
18
             <div style="position: absolute;top:60px;left:120px;"> {{ paramsObj.name }}</div>
19
             <div style="position: absolute;top:60px;left:210px;">√</div>
19
             <div style="position: absolute;top:60px;left:210px;">√</div>
20
             <!-- <div>{{ list.pay_way }}</div> -->
20
             <!-- <div>{{ list.pay_way }}</div> -->
21
-            <!-- <div style="position: absolute;top:70px;left:460px;">{{ paramsObj.setl_time.split(' ')[0] }}</div>
22
-            <div style="position: absolute;top:70px;left:560px;">{{ paramsObj.setl_time.split(' ')[0] }}</div> -->
21
+            <div style="position: absolute;top:60px;left:460px;">{{ paramsObj.setl_time.split(' ')[0] }}</div>
22
+            <div style="position: absolute;top:60px;left:640px;">{{ paramsObj.setl_time.split(' ')[0] }}</div>
23
         </div>
23
         </div>
24
         <div style="display:flex;justify-content: space-between;">
24
         <div style="display:flex;justify-content: space-between;">
25
             <!-- <div>{{ paramsObj.gend == 1 ? '男' : '女' }}</div> -->
25
             <!-- <div>{{ paramsObj.gend == 1 ? '男' : '女' }}</div> -->
26
-            <div style="position: absolute;top:90px;left:290px;">{{ totalPrice - list.psn_cash_money }}</div>
26
+            <div style="position: absolute;top:90px;left:290px;">{{ (totalPrice - list.psn_cash_money).toFixed(2) }}</div>
27
             <div style="position: absolute;top:90px;left:460px;">{{ list.psn_cash_money }}</div>
27
             <div style="position: absolute;top:90px;left:460px;">{{ list.psn_cash_money }}</div>
28
             <div style="position: absolute;top:90px;left:640px;">门慢结算</div>
28
             <div style="position: absolute;top:90px;left:640px;">门慢结算</div>
29
         </div>
29
         </div>
102
                 <span v-else>零</span>
102
                 <span v-else>零</span>
103
             </span>
103
             </span>
104
             </span>
104
             </span>
105
-            <span style="position: absolute;top:250px;left:610px">{{ totalPrice }}</span>
105
+            <span style="position: absolute;top:250px;left:610px">{{ totalPrice.toFixed(2) }}</span>
106
         </div>
106
         </div>
107
         <div style="position: absolute;top:280px;left:460px">现金:{{ list.psn_cash_money }}</div>
107
         <div style="position: absolute;top:280px;left:460px">现金:{{ list.psn_cash_money }}</div>
108
         <div>
108
         <div>

+ 3 - 6
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

715
                   that.loadingtwo = false;
715
                   that.loadingtwo = false;
716
                   that.cal_one = this.cal_one - 1;
716
                   that.cal_one = this.cal_one - 1;
717
                   that.cal_two = this.cal_two + 1;
717
                   that.cal_two = this.cal_two + 1;
718
-                  that.patientTableData.splice(this.current_index, 1)
718
+                  // that.patientTableData.splice(this.current_index, 1)
719
 
719
 
720
 
720
 
721
                 }
721
                 }
2023
         console.log(id);
2023
         console.log(id);
2024
         this.radioStatus = id;
2024
         this.radioStatus = id;
2025
         this.getPatientList()
2025
         this.getPatientList()
2026
-      },      changeRadioAndPatient(id) {
2026
+      },   changeRadioAndPatient(id) {
2027
         // console.log(id)
2027
         // console.log(id)
2028
         // this.radioStatus = id
2028
         // this.radioStatus = id
2029
         // this.getPatientList()
2029
         // this.getPatientList()
2169
             for (let i = 0; i < this.patientTableData.length; i++){
2169
             for (let i = 0; i < this.patientTableData.length; i++){
2170
               if(this.patientInfo.id == this.patientTableData[i].id)
2170
               if(this.patientInfo.id == this.patientTableData[i].id)
2171
               this.$refs.tab.setCurrentRow(this.patientTableData[i]);
2171
               this.$refs.tab.setCurrentRow(this.patientTableData[i]);
2172
-              this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order.number,this.patientTableData[0].his_patient.id)
2172
+              this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order.number,this.patientTableData[i].his_patient.id)
2173
             }
2173
             }
2174
 
2174
 
2175
           }
2175
           }
2625
           'type': this.radio,
2625
           'type': this.radio,
2626
           'p_type':2,
2626
           'p_type':2,
2627
           'his_patient_id':his_patient_id
2627
           'his_patient_id':his_patient_id
2628
-
2629
-
2630
-
2631
         };
2628
         };
2632
         this.loading = true;
2629
         this.loading = true;
2633
 
2630
 

+ 17 - 1
src/xt_pages/outpatientCharges/summary.vue View File

487
                     }
487
                     }
488
                 }
488
                 }
489
               }
489
               }
490
+              var hifmi_pay = 0.00;
491
+
492
+              if(order.setl_detail.length > 0){
493
+                var jsonObj = JSON.parse(order.setl_detail);
494
+                for (let i = 0; i < jsonObj.length; i++) {
495
+                  if (order.insutype == '310') {
496
+                    if (jsonObj[i].fund_pay_type == '310300') {
497
+                      hifmi_pay = jsonObj[i].fund_payamt
498
+                    }
499
+                  }
500
+                  if (order.insutype == '390')
501
+                    if (jsonObj[i].fund_pay_type == '390200') {
502
+                      hifmi_pay = jsonObj[i].fund_payamt
503
+                    }
504
+                }
505
+              }
490
 
506
 
491
               let obj = {
507
               let obj = {
492
                 '就诊号': order.mdtrt_id,
508
                 '就诊号': order.mdtrt_id,
495
                 '险种类型': insutypeName,
511
                 '险种类型': insutypeName,
496
                 '应收金额': order.medfee_sumamt,
512
                 '应收金额': order.medfee_sumamt,
497
                 '实收金额': order.medfee_sumamt,
513
                 '实收金额': order.medfee_sumamt,
498
-                '医保统筹金额': order.fund_pay_sumamt,
514
+                '医保统筹金额': order.hifp_pay,
499
                 '大额基金金额': order.hifob_pay,
515
                 '大额基金金额': order.hifob_pay,
500
                 '大病基金金额': hifmi_pay,
516
                 '大病基金金额': hifmi_pay,
501
                 '补充保险基金金额': order.hifes_pay,
517
                 '补充保险基金金额': order.hifes_pay,

+ 19 - 10
src/xt_pages/stock/detail/print.vue View File

81
               <td width="633" style="line-height: 50px">合计</td>
81
               <td width="633" style="line-height: 50px">合计</td>
82
               <td width="80" style="line-height: 50px">
82
               <td width="80" style="line-height: 50px">
83
                 <span v-if="type == 1">{{calTotalPrice()}}</span>
83
                 <span v-if="type == 1">{{calTotalPrice()}}</span>
84
-                <span v-if="type == 3">{{getTotalPrice().toFixed(2)}}</span>
84
+                <span v-if="type == 3 && org_id!=10090">{{getTotalPrice().toFixed(2)}}</span>
85
+                <span v-if="type == 3 && org_id==10090">{{getTotalPriceOne().toFixed(2)}}</span>
85
               </td>
86
               </td>
86
               <td></td>
87
               <td></td>
87
             </tr>
88
             </tr>
186
         getPrintStockGood(this.queryParams).then(response => {
187
         getPrintStockGood(this.queryParams).then(response => {
187
           if (response.data.state == 1) {
188
           if (response.data.state == 1) {
188
             var stockTotal = response.data.data.stockTotal
189
             var stockTotal = response.data.data.stockTotal
189
-            console.log("stocktOTl",stockTotal)
190
+          
190
             this.stockTotal = stockTotal
191
             this.stockTotal = stockTotal
191
-            console.log("导出数据",response.data.data.list)
192
+           
192
             var info = response.data.data.info
193
             var info = response.data.data.info
193
-            console.log("infor2222222",info)
194
+           
194
             this.wareOutInfo = info
195
             this.wareOutInfo = info
195
             var org_id = response.data.data.orgid
196
             var org_id = response.data.data.orgid
196
-            console.log("org_id",org_id)
197
+          
197
             this.org_id = org_id
198
             this.org_id = org_id
198
 
199
 
199
             var informationlist = response.data.data.infomationList
200
             var informationlist = response.data.data.infomationList
200
-            console.log('数据列表',informationlist)
201
+           
201
             this.informationList = informationlist
202
             this.informationList = informationlist
202
             this.stockDatas = []
203
             this.stockDatas = []
203
             for (let i = 0; i < response.data.data.list.length; i++) {
204
             for (let i = 0; i < response.data.data.list.length; i++) {
205
                 if (response.data.data.list[i].query_warehousing_info.length > 0) {
206
                 if (response.data.data.list[i].query_warehousing_info.length > 0) {
206
                   this.stockDatas.push(response.data.data.list[i])
207
                   this.stockDatas.push(response.data.data.list[i])
207
                 }
208
                 }
208
-
209
+                console.log("入库打印数据源",this.stockDatas)
209
               } else if (this.type == 2) {
210
               } else if (this.type == 2) {
210
                 if (response.data.data.list[i].query_sales_return_info.length > 0) {
211
                 if (response.data.data.list[i].query_sales_return_info.length > 0) {
211
                   this.stockDatas.push(response.data.data.list[i])
212
                   this.stockDatas.push(response.data.data.list[i])
218
                 }
219
                 }
219
                
220
                
220
                 console.log("出库打印数据源",this.stockDatas)
221
                 console.log("出库打印数据源",this.stockDatas)
222
+
221
                 
223
                 
222
               } else if (this.type == 4) {
224
               } else if (this.type == 4) {
223
                 if (response.data.data.list[i].query_cancel_stock_info.length > 0) {
225
                 if (response.data.data.list[i].query_cancel_stock_info.length > 0) {
373
        for(let i=0;i<this.informationList.length;i++){
375
        for(let i=0;i<this.informationList.length;i++){
374
         for(let j=0;j<this.wareOutInfo.length;j++){
376
         for(let j=0;j<this.wareOutInfo.length;j++){
375
            if(this.informationList[i].id == this.wareOutInfo[j].good_id){
377
            if(this.informationList[i].id == this.wareOutInfo[j].good_id){
376
-             this.wareOutInfo[j].retail_price =  this.informationList[i].retail_price 
378
+             this.wareOutInfo[j].buy_price =  this.informationList[i].buy_price 
377
            }
379
            }
378
         }
380
         }
379
        }
381
        }
380
       
382
       
381
        for(let j=0;j<this.wareOutInfo.length;j++){
383
        for(let j=0;j<this.wareOutInfo.length;j++){
382
          if(id == this.wareOutInfo[j].good_id){
384
          if(id == this.wareOutInfo[j].good_id){
383
-            sum += (this.wareOutInfo[j].retail_price * this.wareOutInfo[j].count).toFixed(2)
385
+            sum += (this.wareOutInfo[j].buy_price * this.wareOutInfo[j].count).toFixed(2)
384
          }
386
          }
385
        }
387
        }
386
        
388
        
391
        var price = 0
393
        var price = 0
392
        for(let i=0;i<this.informationList.length;i++){
394
        for(let i=0;i<this.informationList.length;i++){
393
           if(id == this.informationList[i].id){
395
           if(id == this.informationList[i].id){
394
-             price = this.informationList[i].retail_price
396
+             price = this.informationList[i].buy_price
395
           }
397
           }
396
        }
398
        }
397
        return price
399
        return price
403
        }
405
        }
404
        return total_price
406
        return total_price
405
      },
407
      },
408
+     getTotalPriceOne(){
409
+       var total_price = 0
410
+       for(let i=0;i<this.stockDatas.length;i++){
411
+         total_price +=(this.getWareOut(this.stockDatas[i].id) * this.getReailPrice(this.stockDatas[i].id))
412
+       }
413
+       return total_price
414
+     },
406
      unique(arr) {
415
      unique(arr) {
407
         const res = new Map();
416
         const res = new Map();
408
         return arr.filter((arr) => !res.has(arr.id) && res.set(arr.id, 1));
417
         return arr.filter((arr) => !res.has(arr.id) && res.set(arr.id, 1));

+ 54 - 27
src/xt_pages/stock/detail/stockInDetail.vue View File

235
     this.goodUnit = this.$store.getters.good_unit
235
     this.goodUnit = this.$store.getters.good_unit
236
 
236
 
237
     this.getPrintStockGood()
237
     this.getPrintStockGood()
238
+    this.org_id = this.$store.getters.xt_user.template_info.org_id
239
+    console.log("机构ID",this.org_id)
238
   },
240
   },
239
   data() {
241
   data() {
240
     return {
242
     return {
268
       dealer: [],
270
       dealer: [],
269
       tableList:[],
271
       tableList:[],
270
       goodUnit:[],
272
       goodUnit:[],
271
-      stockTotal:[]
273
+      stockTotal:[],
274
+      org_id:0,
272
     };
275
     };
273
   },
276
   },
274
   methods: {
277
   methods: {
389
           return false;
392
           return false;
390
         } else {
393
         } else {
391
           this.total = response.data.data.total;
394
           this.total = response.data.data.total;
392
-          console.log("数据源头list2222222",response.data.data.list)
393
-
394
           for (let i = 0; i < response.data.data.list.length; i++) {
395
           for (let i = 0; i < response.data.data.list.length; i++) {
395
             var obj = response.data.data.list[i];
396
             var obj = response.data.data.list[i];
396
             obj["is_total"] = 0;
397
             obj["is_total"] = 0;
397
             this.cancelStockDate.push(obj);
398
             this.cancelStockDate.push(obj);
398
-            // this.tableList.push(obj)
399
           }
399
           }
400
           this.cancelStockDate.push({
400
           this.cancelStockDate.push({
401
             warehousing_order: "合计",
401
             warehousing_order: "合计",
439
           var alen = this.adminUserOptions.length;
439
           var alen = this.adminUserOptions.length;
440
           for (let index = 0; index < alen; index++) {
440
           for (let index = 0; index < alen; index++) {
441
             if (this.adminUserOptions[index].user_type == 2) {
441
             if (this.adminUserOptions[index].user_type == 2) {
442
-              // this.doctorOptions.push(this.adminUserOptions[index]);
442
+            
443
             }
443
             }
444
           }
444
           }
445
         }
445
         }
642
        end_time:this.end_time,
642
        end_time:this.end_time,
643
        type:1,
643
        type:1,
644
      }
644
      }
645
-   
645
+     
646
      getPrintStockGood(params).then(response=>{
646
      getPrintStockGood(params).then(response=>{
647
         if(response.data.state == 1){
647
         if(response.data.state == 1){
648
+          this.tableList = []
648
           var stockTotal =  response.data.data.stockTotal
649
           var stockTotal =  response.data.data.stockTotal
649
         
650
         
650
           this.stockTotal = stockTotal
651
           this.stockTotal = stockTotal
655
                this.tableList.push(list[i])
656
                this.tableList.push(list[i])
656
              }
657
              }
657
           }
658
           }
658
-         
659
-       
660
-       
659
+          console.log("数据源头2222222222",this.tableList)
661
         }
660
         }
662
      })
661
      })
663
    },
662
    },
727
         const res = new Map();
726
         const res = new Map();
728
         return arr.filter((arr) => !res.has(arr.specification_name) && res.set(arr.specification_name, 1));
727
         return arr.filter((arr) => !res.has(arr.specification_name) && res.set(arr.specification_name, 1));
729
       },
728
       },
729
+      uniqueOne(arr) {
730
+        const res = new Map();
731
+        return arr.filter((arr) => !res.has(arr.id) && res.set(arr.id, 1));
732
+      },
733
+      
730
       exportList(){
734
       exportList(){
731
         var obj = {index:"合计",total:0}
735
         var obj = {index:"合计",total:0}
732
         obj.total = this.calTotalPrice()
736
         obj.total = this.calTotalPrice()
740
           this.tableList[i].remark = this.tableList[i].query_warehousing_info[0].remark
744
           this.tableList[i].remark = this.tableList[i].query_warehousing_info[0].remark
741
 
745
 
742
         }
746
         }
743
-        var arr = this.unique(this.tableList)
744
-        console.log("arrrr",arr)
745
-        this.tableList = arr
746
-        this.tableList.push(obj)
747
-        console.log("数据222222",this.tableList)
748
-      
749
-        import('@/vendor/Export2Excel').then(excel => {
750
-        const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','出货价','总价','备注']
751
-        const filterVal = ['index','good_name', 'specification_name', 'min_unit','count','price','total','remark']
747
+        console.log("总共条数",this.tableList)
748
+        if(this.org_id == 10024){
749
+          var arr = this.uniqueOne(this.tableList)
750
+          this.tableList = arr
751
+          this.tableList.push(obj)
752
+          console.log("去重后条数",this.tableList)
752
         
753
         
753
-        const data = this.formatJson(filterVal, this.tableList)
754
-        
755
-          excel.export_json_to_excel({
756
-            header: tHeader,
757
-            data,
758
-            filename: '耗材入库明细'
759
-          })
760
-            this.downloadLoading = false
761
-          })
754
+          import('@/vendor/Export2Excel').then(excel => {
755
+          const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','出货价','总价','备注']
756
+          const filterVal = ['index','good_name', 'specification_name', 'min_unit','count','price','total','remark']
757
+          
758
+          const data = this.formatJson(filterVal, this.tableList)
759
+          console.log("data222222222",data)
760
+            excel.export_json_to_excel({
761
+              header: tHeader,
762
+              data,
763
+              filename: '耗材入库明细'
764
+            })
765
+              this.downloadLoading = false
766
+            })
767
+        }
768
+        if(this.org_id !=10024){
769
+           var arr = this.unique(this.tableList)
770
+            this.tableList = arr
771
+            this.tableList.push(obj)
772
+            console.log("去重后条数",this.tableList)
773
+          
774
+            import('@/vendor/Export2Excel').then(excel => {
775
+            const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','出货价','总价','备注']
776
+            const filterVal = ['index','good_name', 'specification_name', 'min_unit','count','price','total','remark']
777
+            
778
+            const data = this.formatJson(filterVal, this.tableList)
779
+            console.log("data222222222",data)
780
+              excel.export_json_to_excel({
781
+                header: tHeader,
782
+                data,
783
+                filename: '耗材入库明细'
784
+              })
785
+                this.downloadLoading = false
786
+              })
787
+        }
788
+     
762
         },
789
         },
763
      formatJson(filterVal, jsonData) {
790
      formatJson(filterVal, jsonData) {
764
         return jsonData.map(v => filterVal.map(j => v[j]));
791
         return jsonData.map(v => filterVal.map(j => v[j]));

+ 4 - 5
src/xt_pages/stock/detail/stockOutDetail.vue View File

743
       },
743
       },
744
 
744
 
745
      exportList(){
745
      exportList(){
746
-      console.log("数据22222",this.tableList)
747
-      console.log("数据3333",this.goodInfoData)
746
+      
748
       for(let i=0;i<this.tableList.length;i++){
747
       for(let i=0;i<this.tableList.length;i++){
749
          for(let j=0;j<this.goodInfoData.length;j++){
748
          for(let j=0;j<this.goodInfoData.length;j++){
750
             if(this.tableList[i].id === this.goodInfoData[j].id){
749
             if(this.tableList[i].id === this.goodInfoData[j].id){
751
-               this.tableList[i].retail_price = this.goodInfoData[j].retail_price
750
+               this.tableList[i].buy_price = this.goodInfoData[j].buy_price
752
             }
751
             }
753
          }
752
          }
754
       }
753
       }
760
         this.tableList[i].min_unit = this.getUnit(this.tableList[i].good_unit)
759
         this.tableList[i].min_unit = this.getUnit(this.tableList[i].good_unit)
761
         this.tableList[i].count = this.getStockCount(this.tableList[i].id)
760
         this.tableList[i].count = this.getStockCount(this.tableList[i].id)
762
         // this.tableList[i].price = this.tableList[i].query_warehouseout_info[0].buy_price
761
         // this.tableList[i].price = this.tableList[i].query_warehouseout_info[0].buy_price
763
-        this.tableList[i].total = (this.getStockCount(this.tableList[i].id) * this.tableList[i].retail_price).toFixed(2)
762
+        this.tableList[i].total = (this.getStockCount(this.tableList[i].id) * this.tableList[i].buy_price).toFixed(2)
764
         this.tableList[i].remark = this.tableList[i].query_warehouseout_info[0].remark
763
         this.tableList[i].remark = this.tableList[i].query_warehouseout_info[0].remark
765
        }
764
        }
766
        var arr = this.unique(this.tableList)
765
        var arr = this.unique(this.tableList)
769
        this.tableList.push(obj)
768
        this.tableList.push(obj)
770
        import('@/vendor/Export2Excel').then(excel => {
769
        import('@/vendor/Export2Excel').then(excel => {
771
        const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','出货价','总价','备注']
770
        const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','出货价','总价','备注']
772
-       const filterVal = ['index','good_name', 'specification_name', 'min_unit','count','retail_price','total','remark']
771
+       const filterVal = ['index','good_name', 'specification_name', 'min_unit','count','buy_price','total','remark']
773
 
772
 
774
        const data = this.formatJson(filterVal, this.tableList)
773
        const data = this.formatJson(filterVal, this.tableList)
775
        console.log("data",data)
774
        console.log("data",data)

+ 9 - 3
src/xt_pages/stock/drugs/components/drugOutDetail.vue View File

456
         for(let i=0;i<this.tableList.length;i++){
456
         for(let i=0;i<this.tableList.length;i++){
457
           for(let j=0;j<this.drugList.length;j++){
457
           for(let j=0;j<this.drugList.length;j++){
458
              if(this.tableList[i].drug_id == this.drugList[j].id){
458
              if(this.tableList[i].drug_id == this.drugList[j].id){
459
-               this.tableList[i].retail_price = this.drugList[j].retail_price
459
+               this.tableList[i].last_price = this.drugList[j].last_price
460
+               
460
              }
461
              }
461
           }
462
           }
462
           this.tableList[i].index = i+1
463
           this.tableList[i].index = i+1
463
         }
464
         }
465
+        for(let i=0;i<this.tableList.length;i++){
466
+           this.tableList[i].total_price = this.tableList[i].last_price * this.tableList[i].count
467
+        }
468
+       console.log("列表数据333333333",this.tableList)
469
+      
464
        import('@/vendor/Export2Excel').then(excel => {
470
        import('@/vendor/Export2Excel').then(excel => {
465
        const tHeader = ['序号','药品名称', '规格型号', '单位','数量','单价','总价','备注']
471
        const tHeader = ['序号','药品名称', '规格型号', '单位','数量','单价','总价','备注']
466
-       const filterVal = ['index','drug_name', 'drug_spec', 'min_unit','count','retail_price','total_price','remark']
472
+       const filterVal = ['index','drug_name', 'drug_spec', 'min_unit','count','last_price','total_price','remark']
467
        let obj = {'index':'合计','total_price':0}
473
        let obj = {'index':'合计','total_price':0}
468
        for(let i=0;i<this.tableList.length;i++){
474
        for(let i=0;i<this.tableList.length;i++){
469
-         obj.total_price += this.tableList[i].retail_price * this.tableList[i].count
475
+         obj.total_price += (this.tableList[i].last_price * this.tableList[i].count)
470
        }
476
        }
471
        for(let j=0;j<this.tableList.length;j++){
477
        for(let j=0;j<this.tableList.length;j++){
472
           this.tableList[j].total_price = this.tableList[j].total_price.toFixed(2)
478
           this.tableList[j].total_price = this.tableList[j].total_price.toFixed(2)

+ 2 - 2
src/xt_pages/stock/drugs/drugCancelDetailPrint.vue View File

56
             <tbody>
56
             <tbody>
57
             <tr>
57
             <tr>
58
               <td width="633" style="line-height: 50px">合计</td>
58
               <td width="633" style="line-height: 50px">合计</td>
59
-              <td width="80" style="line-height: 50px">{{getTotal()}}</td>
59
+              <td width="80" style="line-height: 50px">{{getTotal().toFixed(2)}}</td>
60
               <td></td>
60
               <td></td>
61
             </tr>
61
             </tr>
62
 
62
 
172
       getTotal(){
172
       getTotal(){
173
          var total = 0
173
          var total = 0
174
          for(let i=0;i<this.cancelStockDate.length;i++){
174
          for(let i=0;i<this.cancelStockDate.length;i++){
175
-            total += this.cancelStockDate[i].price
175
+            total += this.cancelStockDate[i].price*this.cancelStockDate[i].count 
176
          }
176
          }
177
          return total
177
          return total
178
       }
178
       }

+ 2 - 2
src/xt_pages/stock/drugs/drugCancelOurderPrint.vue View File

55
             <tbody>
55
             <tbody>
56
             <tr>
56
             <tr>
57
               <td width="633" style="line-height: 50px">合计</td>
57
               <td width="633" style="line-height: 50px">合计</td>
58
-              <td width="80" style="line-height: 50px">{{getTotal()}}</td>
58
+              <td width="80" style="line-height: 50px">{{getTotal().toFixed(2)}}</td>
59
               <td></td>
59
               <td></td>
60
             </tr>
60
             </tr>
61
 
61
 
171
       getTotal(){
171
       getTotal(){
172
          var total = 0
172
          var total = 0
173
          for(let i=0;i<this.cancelStockDate.length;i++){
173
          for(let i=0;i<this.cancelStockDate.length;i++){
174
-            total += this.cancelStockDate[i].price
174
+            total += this.cancelStockDate[i].price*this.cancelStockDate[i].count
175
          }
175
          }
176
          return total
176
          return total
177
       }
177
       }

+ 2 - 1
src/xt_pages/stock/drugs/drugOutOrderPrint.vue View File

168
         limit:this.limit,
168
         limit:this.limit,
169
         page:this.page,
169
         page:this.page,
170
        }
170
        }
171
+       console.log("出库数据22222",params)
171
       getDrugOutDetail(params).then(response=>{
172
       getDrugOutDetail(params).then(response=>{
172
         if(response.data.state == 1){
173
         if(response.data.state == 1){
173
           var drugInOrder = response.data.data.order
174
           var drugInOrder = response.data.data.order
249
         var price = 0
250
         var price = 0
250
         for(let i=0;i<this.drugList.length;i++){
251
         for(let i=0;i<this.drugList.length;i++){
251
           if(id == this.drugList[i].id){
252
           if(id == this.drugList[i].id){
252
-             price = this.drugList[i].retail_price
253
+             price = this.drugList[i].last_price
253
           }
254
           }
254
         }
255
         }
255
         return price
256
         return price

+ 2 - 2
src/xt_pages/stock/drugs/drugQueryPrint.vue View File

93
         signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
93
         signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
94
         start_time: '',
94
         start_time: '',
95
         end_time: '',
95
         end_time: '',
96
-        page: 1,
97
-        limit: 10000,
96
+        page: this.$route.query.page,
97
+        limit: this.$route.query.limit,
98
         goodType: [],
98
         goodType: [],
99
         goodInfo: [],
99
         goodInfo: [],
100
         tempArr: [],
100
         tempArr: [],

+ 15 - 11
src/xt_pages/stock/drugs/drugStockInOrderDetailPrint.vue View File

10
         <div class="dialysis-print-order">
10
         <div class="dialysis-print-order">
11
           <div style="font-size:22px;font-weight:bold;text-align:center;">{{ orgName }}</div>
11
           <div style="font-size:22px;font-weight:bold;text-align:center;">{{ orgName }}</div>
12
           <div class="order-title" style="font-size:18px;padding-top:0;">药品入库登记表</div>
12
           <div class="order-title" style="font-size:18px;padding-top:0;">药品入库登记表</div>
13
-         
13
+
14
           <div style="float: right;margin-bottom: 1px;">{{getDateTwo()}}</div>
14
           <div style="float: right;margin-bottom: 1px;">{{getDateTwo()}}</div>
15
 
15
 
16
           <table class="print-table" border="1">
16
           <table class="print-table" border="1">
22
               <td style="line-height:18px;" width="80">生产<br>厂商</td>
22
               <td style="line-height:18px;" width="80">生产<br>厂商</td>
23
               <td style="line-height:18px;" width="80">单位</td>
23
               <td style="line-height:18px;" width="80">单位</td>
24
               <td style="line-height:18px;" width="80">进货价</td>
24
               <td style="line-height:18px;" width="80">进货价</td>
25
-              <td style="line-height:18px;" width="80">入库<br>数量</td> 
25
+              <td style="line-height:18px;" width="80">入库<br>数量</td>
26
               <td style="line-height:18px;" width="60">总价</td>
26
               <td style="line-height:18px;" width="60">总价</td>
27
               <td style="line-height:18px;" width="80">批号</td>
27
               <td style="line-height:18px;" width="80">批号</td>
28
               <td style="line-height:18px;" width="120">生产日期</td>
28
               <td style="line-height:18px;" width="120">生产日期</td>
50
               <td style="line-height: 18px">
50
               <td style="line-height: 18px">
51
                    <span>{{ item.warehousing_count }}</span>
51
                    <span>{{ item.warehousing_count }}</span>
52
               </td>
52
               </td>
53
-              
53
+
54
               <td style="line-height:18px">
54
               <td style="line-height:18px">
55
                   <span>{{(item.warehousing_count * item.price).toFixed(2)}}</span>
55
                   <span>{{(item.warehousing_count * item.price).toFixed(2)}}</span>
56
               </td>
56
               </td>
66
             </tr>
66
             </tr>
67
             </tbody>
67
             </tbody>
68
           </table>
68
           </table>
69
-        
70
 
69
 
71
-          <div style="display:flex;margin-top:1px;float:right;">
70
+          <div style="display:flex;margin-top:1px;float:right;" v-if="orgId == 10024">
72
             <div style="width:50px;">审批:</div><div style="width:100px;"></div>
71
             <div style="width:50px;">审批:</div><div style="width:100px;"></div>
73
-            <div style="width:80px;">药材主任:</div><div style="width:100px;"></div>
74
             <div style="width:50px;">会计:</div><div style="width:100px;"><span v-if='orgId == 10024'>徐立琼</span></div>
72
             <div style="width:50px;">会计:</div><div style="width:100px;"><span v-if='orgId == 10024'>徐立琼</span></div>
75
             <div style="width:50px;">审核:</div><div style="width:100px;"><span v-if='orgId == 10024'>徐立琼</span></div>
73
             <div style="width:50px;">审核:</div><div style="width:100px;"><span v-if='orgId == 10024'>徐立琼</span></div>
76
             <div style="width:70px;">制单人:</div><div style="width:100px;">{{ getXuserName(this.WarehouseInfo.warehouse.creater) }}</div>
74
             <div style="width:70px;">制单人:</div><div style="width:100px;">{{ getXuserName(this.WarehouseInfo.warehouse.creater) }}</div>
77
           </div>
75
           </div>
76
+          <div style="display:flex;margin-top:1px;float:right;" v-if="orgId !=10024">
77
+            <div style="width:50px;">审批:</div><div style="width:100px;"></div>
78
+            <div style="width:80px;">药材主任:</div><div style="width:100px;"></div>
79
+            <div style="width:50px;">会计:</div><div style="width:100px;"></div>
80
+            <div style="width:70px;">制单人:</div><div style="width:100px;">{{ getXuserName(this.WarehouseInfo.warehouse.creater) }}</div>
81
+          </div>
78
         </div>
82
         </div>
79
 
83
 
80
       </div>
84
       </div>
165
         }
169
         }
166
         return ''
170
         return ''
167
       },
171
       },
168
-     
172
+
169
       printThisPage() {
173
       printThisPage() {
170
         var ptime = Math.round(new Date().getTime() / 1000)
174
         var ptime = Math.round(new Date().getTime() / 1000)
171
         this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
175
         this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
177
           scanStyles: false
181
           scanStyles: false
178
         })
182
         })
179
       },
183
       },
180
-   
184
+
181
       getUnit(id){
185
       getUnit(id){
182
         var name = ""
186
         var name = ""
183
         for(let i=0;i<this.goodUnit.length;i++){
187
         for(let i=0;i<this.goodUnit.length;i++){
229
             for (let i = 0; i < response.data.data.list.length; i++) {
233
             for (let i = 0; i < response.data.data.list.length; i++) {
230
               this.list.push(response.data.data.list[i])
234
               this.list.push(response.data.data.list[i])
231
             }
235
             }
232
-           
236
+
233
             for(let j=0;j<this.list.length;j++){
237
             for(let j=0;j<this.list.length;j++){
234
               this.list[j].manufacturer_name = ""
238
               this.list[j].manufacturer_name = ""
235
             }
239
             }
236
 
240
 
237
             for(let i=0;i<this.list.length;i++){
241
             for(let i=0;i<this.list.length;i++){
238
-           
242
+
239
               for(let j=0;j<this.manufacturer.length;j++){
243
               for(let j=0;j<this.manufacturer.length;j++){
240
                  if(this.list[i].manufacturer == this.manufacturer[j].id){
244
                  if(this.list[i].manufacturer == this.manufacturer[j].id){
241
                     this.list[i].manufacturer_name = this.manufacturer[j].manufacturer_name
245
                     this.list[i].manufacturer_name = this.manufacturer[j].manufacturer_name
331
       const order_id = this.$route.query.id;
335
       const order_id = this.$route.query.id;
332
       this.GetOrderDetail(order_id);
336
       this.GetOrderDetail(order_id);
333
       this.getList()
337
       this.getList()
334
-      
338
+
335
     }
339
     }
336
 
340
 
337
   }
341
   }

+ 57 - 7
src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue View File

10
         <div class="dialysis-print-order">
10
         <div class="dialysis-print-order">
11
          <div class="order-yy-name" style="font-weight:bold;">{{orgName}}</div>
11
          <div class="order-yy-name" style="font-weight:bold;">{{orgName}}</div>
12
           <div class="order-title" style="font-weight:normal;">药品出库登记表</div>
12
           <div class="order-title" style="font-weight:normal;">药品出库登记表</div>
13
+         <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;">{{orgName}}</div>
14
+          <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
13
 
15
 
14
           <div style="float: right;margin-bottom: 1px;">{{getDateTwo()}}</div>
16
           <div style="float: right;margin-bottom: 1px;">{{getDateTwo()}}</div>
15
 
17
 
47
              <td  style="line-height:50px">
49
              <td  style="line-height:50px">
48
                 {{(item.count * item.price).toFixed(2)}}
50
                 {{(item.count * item.price).toFixed(2)}}
49
              </td>
51
              </td>
50
-             <td></td>
51
-             <td></td>
52
-             <td></td>
52
+             <td>{{getNumber(item.drug_id)}}</td>
53
+             <td>{{getProductDate(item.drug_id)}}</td>
54
+             <td>{{getExpiryDate(item.drug_id)}}</td>
53
             </tr>
55
             </tr>
54
              <tr>
56
              <tr>
55
                <td style="line-height:50px">合计</td>
57
                <td style="line-height:50px">合计</td>
68
             <div style="width:70px;">制单人:</div><div style="width:100px;"></div>
70
             <div style="width:70px;">制单人:</div><div style="width:100px;"></div>
69
           </div>
71
           </div>
70
           <div v-if="orgId == 10024" style="display:flex;margin-top:1px;float:right;">
72
           <div v-if="orgId == 10024" style="display:flex;margin-top:1px;float:right;">
71
-            <div style="width:70px;">科室:</div><div style="width:100px;"></div>
72
-            <div style="width:70px;">领料人:</div><div style="width:100px;"></div>
73
+            <div style="width:50px;">科室:</div><div style="width:60px;"></div>
74
+            <div style="width:70px;">领料人:</div><div style="width:60px;"></div>
73
             <div style="width:80px;">审批:</div><div style="width:100px;"></div>
75
             <div style="width:80px;">审批:</div><div style="width:100px;"></div>
74
             <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
76
             <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
75
             <div style="width:50px;">审核:</div><div style="width:100px;">徐立琼</div>
77
             <div style="width:50px;">审核:</div><div style="width:100px;">徐立琼</div>
90
   import { jsGetAge, uParseTime } from '@/utils/tools'
92
   import { jsGetAge, uParseTime } from '@/utils/tools'
91
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
93
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
92
   import print from 'print-js'
94
   import print from 'print-js'
93
-  import {  getDrugWarehouseOutInfo } from '@/api/drug/drug_stock'
95
+  import {  getDrugWarehouseOutInfo,getDrugWarehouseOrderInfo } from '@/api/drug/drug_stock'
94
   import {getBaseDrugLibList} from '@/api/data'
96
   import {getBaseDrugLibList} from '@/api/data'
95
   export default {
97
   export default {
96
     name: 'dialysisPrintOrder',
98
     name: 'dialysisPrintOrder',
128
         limit:10000,
130
         limit:10000,
129
         keywords:"",
131
         keywords:"",
130
         orgId:'',
132
         orgId:'',
131
-        orgName:""
133
+        orgName:"",
134
+        drugOrderList:[]
132
       }
135
       }
133
     },
136
     },
134
     methods: {
137
     methods: {
256
         });
259
         });
257
         this.sameRowArr = sameRowArr
260
         this.sameRowArr = sameRowArr
258
       },
261
       },
262
+      getDrugWarehouseOrderInfo(){
263
+        getDrugWarehouseOrderInfo().then(response=>{
264
+           if(response.data.state == 1){
265
+             var list =  response.data.data.list
266
+             console.log("入库单详情",list)
267
+             this.drugOrderList = list
268
+           }
269
+        })
270
+      },
271
+      getNumber(id){
272
+        var number = ""
273
+        for(let i=0;i<this.drugOrderList.length;i++){
274
+          if(id == this.drugOrderList[i].drug_id){
275
+              number = this.drugOrderList[i].number
276
+          }
277
+        }
278
+        return number
279
+      },
280
+      getProductDate(id){
281
+        var product_date = ""
282
+        for(let i=0;i<this.drugOrderList.length;i++){
283
+           if(id == this.drugOrderList[i].drug_id){
284
+             product_date = this.drugOrderList[i].product_date
285
+           }
286
+        }
287
+        return this.getTime(product_date)
288
+      },
289
+      getExpiryDate(id){
290
+         var expiry_date = ""
291
+         for(let i=0;i<this.drugOrderList.length;i++){
292
+           if(id == this.drugOrderList[i].drug_id){
293
+             expiry_date = this.drugOrderList[i].expiry_date
294
+           }
295
+        }
296
+        return this.getTime(expiry_date)
297
+      },
298
+      getTime(val) {
299
+         if(val < 0){
300
+           return ""
301
+         }
302
+         if(val == ""){
303
+          return ""
304
+         }else {
305
+          return uParseTime(val, '{y}-{m}-{d}')
306
+         }
307
+      },
259
     },
308
     },
260
     created() {
309
     created() {
261
       this.orgName = this.$store.getters.xt_user.org.org_name;
310
       this.orgName = this.$store.getters.xt_user.org.org_name;
263
       this.orgId = this.$store.getters.xt_user.org.id;
312
       this.orgId = this.$store.getters.xt_user.org.id;
264
       this.GetOrderDetail(order_id);
313
       this.GetOrderDetail(order_id);
265
       this.getList()
314
       this.getList()
315
+      this.getDrugWarehouseOrderInfo()
266
     }
316
     }
267
 
317
 
268
   }
318
   }

+ 1 - 1
src/xt_pages/stock/drugs/query.vue View File

455
       printOrder(){
455
       printOrder(){
456
         this.$router.push({
456
         this.$router.push({
457
           name: "drugQueryPrint",
457
           name: "drugQueryPrint",
458
-          query: {drug_category:this.drug_category,keyword:this.keywords,start_time:this.start_time,end_time:this.end_time}
458
+          query: {drug_category:this.drug_category,keyword:this.keywords,start_time:this.start_time,end_time:this.end_time,page:this.page,limit:this.limit}
459
         });
459
         });
460
       }
460
       }
461
     }
461
     }

+ 2 - 2
src/xt_pages/stock/stockOutOrderDetail.vue View File

124
     created() {
124
     created() {
125
       const order_id = this.$route.query.id
125
       const order_id = this.$route.query.id
126
       const warehouse_out_time = this.$route.query.warehouse_out_time
126
       const warehouse_out_time = this.$route.query.warehouse_out_time
127
-      console.log("时间搓",warehouse_out_time)
127
+     
128
       this.GetConfigInfo()
128
       this.GetConfigInfo()
129
       this.GetOrderDetail(order_id)
129
       this.GetOrderDetail(order_id)
130
       this.GetTotalCount(warehouse_out_time)
130
       this.GetTotalCount(warehouse_out_time)
234
             }
234
             }
235
             this.warehousingOutInfo.info = response.data.data.info
235
             this.warehousingOutInfo.info = response.data.data.info
236
           
236
           
237
-            console.log("数据源头9999999999",this.warehousingOutInfo.warehousingOutData)
237
+          
238
             this.handleSpanTempArr()
238
             this.handleSpanTempArr()
239
           }
239
           }
240
         })
240
         })

+ 59 - 6
src/xt_pages/stock/stockOutOrderDetailPrint.vue View File

41
                                     <td>{{getOutStockCount(item.good_id) + getWarehouseOutInfoCount(item.warehouse_out_id,item.good_id)}}</td>
41
                                     <td>{{getOutStockCount(item.good_id) + getWarehouseOutInfoCount(item.warehouse_out_id,item.good_id)}}</td>
42
                                     <td>{{item.price}}</td>
42
                                     <td>{{item.price}}</td>
43
                                     <td>{{((getOutStockCount(item.good_id) +getWarehouseOutInfoCount(item.warehouse_out_id,item.good_id))*item.price).toFixed(2)}}</td>
43
                                     <td>{{((getOutStockCount(item.good_id) +getWarehouseOutInfoCount(item.warehouse_out_id,item.good_id))*item.price).toFixed(2)}}</td>
44
-                                    <td></td>
45
-                                    <td></td>
46
-                                    <td></td>
44
+                                    <td>{{getNumber(item.good_id)}}</td>
45
+                                    <td>{{getProductDate(item.good_id)}}</td>
46
+                                    <td>{{getExpiryDate(item.good_id)}}</td>
47
                                 </tr>
47
                                 </tr>
48
                                 <tr>
48
                                 <tr>
49
                                   <td>合计</td>
49
                                   <td>合计</td>
63
                         <div v-if="orgId == 10024" style="display:flex;margin-top:1px;float:right;">
63
                         <div v-if="orgId == 10024" style="display:flex;margin-top:1px;float:right;">
64
                           <div style="width:50px;">科室:</div><div style="width:60px;"></div>
64
                           <div style="width:50px;">科室:</div><div style="width:60px;"></div>
65
                           <div style="width:70px;">领料人:</div><div style="width:60px;"></div>
65
                           <div style="width:70px;">领料人:</div><div style="width:60px;"></div>
66
-                          <div style="width:80px;">审批:</div><div style="width:100px;"></div>
66
+                          <div style="width:80px;">审批:</div><div style="width:100px;">肖庆娥</div>
67
                           <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
67
                           <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
68
                           <div style="width:50px;">审核:</div><div style="width:100px;">徐立琼</div>
68
                           <div style="width:50px;">审核:</div><div style="width:100px;">徐立琼</div>
69
                           <div style="width:70px;">制单人:</div><div style="width:100px;">徐立琼</div>
69
                           <div style="width:70px;">制单人:</div><div style="width:100px;">徐立琼</div>
77
 
77
 
78
 <script>
78
 <script>
79
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
79
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
80
-import { GetAllConfig,getWarehouseOutInfo,GetOutStockTotalCount,getGoodInfoList } from "@/api/stock";
80
+import { GetAllConfig,getWarehouseOutInfo,GetOutStockTotalCount,getGoodInfoList,getWarehouseOrderInfoList } from "@/api/stock";
81
 import print from 'print-js'
81
 import print from 'print-js'
82
 const moment = require('moment');
82
 const moment = require('moment');
83
+import { uParseTime } from '@/utils/tools'
83
 export default {
84
 export default {
84
     components:{
85
     components:{
85
         BreadCrumb
86
         BreadCrumb
117
             wareoutList:[],
118
             wareoutList:[],
118
             orgId:'',
119
             orgId:'',
119
             orgName:'',
120
             orgName:'',
121
+            orderInList:[]
120
         }
122
         }
121
     },
123
     },
122
     methods:{
124
     methods:{
272
             }
274
             }
273
          }
275
          }
274
         return count
276
         return count
275
-      }
277
+      },
278
+
279
+      getWarehouseOrderInfoList(){
280
+         getWarehouseOrderInfoList().then(response=>{
281
+             if(response.data.state == 1){
282
+               var list = response.data.data.list
283
+               console.log("入库单详情",list)
284
+               this.orderInList = list
285
+             }
286
+         })
287
+      },
288
+      getNumber(id){
289
+        var name = ""
290
+        for(let i=0;i<this.orderInList.length;i++){
291
+           if(id == this.orderInList[i].good_id){
292
+               name = this.orderInList[i].number
293
+           }
294
+        }
295
+        return name
296
+      },
297
+      getProductDate(id){
298
+        var product_date = ""
299
+         for(let i=0;i<this.orderInList.length;i++){
300
+           if(id == this.orderInList[i].good_id){
301
+               product_date =  this.orderInList[i].product_date
302
+           }
303
+         }
304
+         return this.getTime(product_date)
305
+      },
306
+
307
+      getExpiryDate(id){
308
+         var expiry_date = ""
309
+         for(let i=0;i<this.orderInList.length;i++){
310
+           if(id == this.orderInList[i].good_id){
311
+              expiry_date = this.orderInList[i].expiry_date
312
+           }
313
+         }
314
+         return this.getTime(expiry_date)
315
+      },
316
+      getTime(val) {
317
+         if(val < 0){
318
+           return ""
319
+         }
320
+         if(val == ""){
321
+          return ""
322
+         }else {
323
+          return uParseTime(val, '{y}-{m}-{d}')
324
+         }
325
+      },
326
+
276
 
327
 
277
     },
328
     },
278
     created(){
329
     created(){
284
       this.GetOrderDetail(order_id);
335
       this.GetOrderDetail(order_id);
285
       this.GetTotalCount(warehouse_out_time);
336
       this.GetTotalCount(warehouse_out_time);
286
       this.getList()
337
       this.getList()
338
+      //获取所有入库单
339
+      this.getWarehouseOrderInfoList()
287
     }
340
     }
288
 }
341
 }
289
 </script>
342
 </script>

+ 4 - 3
src/xt_pages/stock/stockPrint.vue View File

83
           tableData:[],
83
           tableData:[],
84
           time_now:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
84
           time_now:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
85
           type_name:"",
85
           type_name:"",
86
-          limit:20,
87
-          page:1,
86
+          limit:"",
87
+          page:"",
88
           WarehouseInfo: {
88
           WarehouseInfo: {
89
           loading: false,
89
           loading: false,
90
           warehouseInfoDate: []
90
           warehouseInfoDate: []
173
       this.type_name = type_name
173
       this.type_name = type_name
174
       var keyword = this.$route.query.keyword
174
       var keyword = this.$route.query.keyword
175
       this.keyword = keyword
175
       this.keyword = keyword
176
-
176
+      this.page = this.$route.query.page
177
+      this.limit = this.$route.query.limit
177
       this.getlist()
178
       this.getlist()
178
     }
179
     }
179
 }
180
 }

+ 3 - 1
src/xt_pages/stock/stockQuery.vue View File

332
         this.$message.error("开始时间不能大于结束时间");
332
         this.$message.error("开始时间不能大于结束时间");
333
         this.start_time = "";
333
         this.start_time = "";
334
       } else {
334
       } else {
335
+        this.start_time = val
335
         this.GetAllStockQuery();
336
         this.GetAllStockQuery();
336
       }
337
       }
337
     },
338
     },
341
         this.$message.error("结束时间不能小于开始时间");
342
         this.$message.error("结束时间不能小于开始时间");
342
         this.end_time = "";
343
         this.end_time = "";
343
       } else {
344
       } else {
345
+        this.end_time = val
344
         this.GetAllStockQuery();
346
         this.GetAllStockQuery();
345
       }
347
       }
346
      
348
      
405
        this.GetAllStockQuery()
407
        this.GetAllStockQuery()
406
       },
408
       },
407
       toPrint(){
409
       toPrint(){
408
-        this.$router.push("/stock/stockprint?start_time="+this.start_time+"&end_time="+this.end_time+"&keyword="+this.keywords+"&type_name="+this.type_name)
410
+        this.$router.push("/stock/stockprint?start_time="+this.start_time+"&end_time="+this.end_time+"&keyword="+this.keywords+"&type_name="+this.type_name+"&page="+this.page+"&limit="+this.limit)
409
         
411
         
410
       },
412
       },
411
 
413