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,6 +428,15 @@ export function getDrugAutoMaticList(params){
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,4 +610,12 @@ export function getInitializtion(params){
610 610
     method:"get",
611 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,6 +154,8 @@
154 154
                                          
155 155
                                         <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '人造血管')" showValue="人造血管"></label-box>
156 156
                                         &nbsp;
157
+                                         <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '扣眼')" showValue="扣眼"></label-box>
158
+                                        &nbsp;
157 159
                                     </div>
158 160
                                 </td>
159 161
                                 <td width='20'></td>

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

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

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

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

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

@@ -543,6 +543,16 @@
543 543
           >打印</el-button
544 544
         >
545 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 556
     </div>
547 557
     <div class="app-container" style="min-height:0;">
548 558
       <!--<div class="order-print-btn"-->
@@ -813,6 +823,11 @@
813 823
             v-if="org_template_info.template_id == 38"
814 824
           >
815 825
           </DialysisPrintOrderThirtyEight>
826
+          <DialysisPrintOrderThirtyNine
827
+            v-bind:childResponse="childResponse"
828
+            v-if="org_template_info.template_id == 39"
829
+          >
830
+          </DialysisPrintOrderThirtyNine>
816 831
         </div>
817 832
       </el-container>
818 833
     </div>
@@ -870,9 +885,11 @@ import DialysisPrintOrderThirtyFive from "./template/DialysisPrintOrderThirtyFiv
870 885
 import DialysisPrintOrderThirtySix from "./template/DialysisPrintOrderThirtySix";
871 886
 import DialysisPrintOrderThirtySeven from "./template/DialysisPrintOrderThirtySeven";
872 887
 import DialysisPrintOrderThirtyEight from "./template/DialysisPrintOrderThirtyEight";
888
+import DialysisPrintOrderThirtyNine from "./template/DialysisPrintOrderThirtyNine";
873 889
 export default {
874 890
   name: "dialysisPrintOrder",
875 891
   components: {
892
+    DialysisPrintOrderThirtyNine,
876 893
     DialysisPrintOrderThirtyEight,
877 894
     DialysisPrintOrderThirtySeven,
878 895
     DialysisPrintOrderThirtySix,
@@ -1342,6 +1359,13 @@ export default {
1342 1359
           style: style8,
1343 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 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,7 +176,8 @@
176 176
                     <td width="100">体液过多症状:</td>
177 177
                     <td width="50">
178 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 181
                       </div>
181 182
                     </td>
182 183
                     <td width="180">

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

@@ -8,22 +8,22 @@
8 8
             <!-- <div>{{ list.department_name }}</div> -->
9 9
             <div  style="position: absolute;top:40px;left:300px">{{ list.number }}</div>
10 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 15
             </div>
16 16
         </div>
17 17
         <div style="display:flex;justify-content: space-between;">
18 18
             <div style="position: absolute;top:60px;left:120px;"> {{ paramsObj.name }}</div>
19 19
             <div style="position: absolute;top:60px;left:210px;">√</div>
20 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 23
         </div>
24 24
         <div style="display:flex;justify-content: space-between;">
25 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 27
             <div style="position: absolute;top:90px;left:460px;">{{ list.psn_cash_money }}</div>
28 28
             <div style="position: absolute;top:90px;left:640px;">门慢结算</div>
29 29
         </div>
@@ -102,7 +102,7 @@
102 102
                 <span v-else>零</span>
103 103
             </span>
104 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 106
         </div>
107 107
         <div style="position: absolute;top:280px;left:460px">现金:{{ list.psn_cash_money }}</div>
108 108
         <div>

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

@@ -715,7 +715,7 @@
715 715
                   that.loadingtwo = false;
716 716
                   that.cal_one = this.cal_one - 1;
717 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,7 +2023,7 @@
2023 2023
         console.log(id);
2024 2024
         this.radioStatus = id;
2025 2025
         this.getPatientList()
2026
-      },      changeRadioAndPatient(id) {
2026
+      },   changeRadioAndPatient(id) {
2027 2027
         // console.log(id)
2028 2028
         // this.radioStatus = id
2029 2029
         // this.getPatientList()
@@ -2169,7 +2169,7 @@
2169 2169
             for (let i = 0; i < this.patientTableData.length; i++){
2170 2170
               if(this.patientInfo.id == this.patientTableData[i].id)
2171 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,9 +2625,6 @@
2625 2625
           'type': this.radio,
2626 2626
           'p_type':2,
2627 2627
           'his_patient_id':his_patient_id
2628
-
2629
-
2630
-
2631 2628
         };
2632 2629
         this.loading = true;
2633 2630
 

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

@@ -487,6 +487,22 @@
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 507
               let obj = {
492 508
                 '就诊号': order.mdtrt_id,
@@ -495,7 +511,7 @@
495 511
                 '险种类型': insutypeName,
496 512
                 '应收金额': order.medfee_sumamt,
497 513
                 '实收金额': order.medfee_sumamt,
498
-                '医保统筹金额': order.fund_pay_sumamt,
514
+                '医保统筹金额': order.hifp_pay,
499 515
                 '大额基金金额': order.hifob_pay,
500 516
                 '大病基金金额': hifmi_pay,
501 517
                 '补充保险基金金额': order.hifes_pay,

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

@@ -81,7 +81,8 @@
81 81
               <td width="633" style="line-height: 50px">合计</td>
82 82
               <td width="80" style="line-height: 50px">
83 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 86
               </td>
86 87
               <td></td>
87 88
             </tr>
@@ -186,18 +187,18 @@
186 187
         getPrintStockGood(this.queryParams).then(response => {
187 188
           if (response.data.state == 1) {
188 189
             var stockTotal = response.data.data.stockTotal
189
-            console.log("stocktOTl",stockTotal)
190
+          
190 191
             this.stockTotal = stockTotal
191
-            console.log("导出数据",response.data.data.list)
192
+           
192 193
             var info = response.data.data.info
193
-            console.log("infor2222222",info)
194
+           
194 195
             this.wareOutInfo = info
195 196
             var org_id = response.data.data.orgid
196
-            console.log("org_id",org_id)
197
+          
197 198
             this.org_id = org_id
198 199
 
199 200
             var informationlist = response.data.data.infomationList
200
-            console.log('数据列表',informationlist)
201
+           
201 202
             this.informationList = informationlist
202 203
             this.stockDatas = []
203 204
             for (let i = 0; i < response.data.data.list.length; i++) {
@@ -205,7 +206,7 @@
205 206
                 if (response.data.data.list[i].query_warehousing_info.length > 0) {
206 207
                   this.stockDatas.push(response.data.data.list[i])
207 208
                 }
208
-
209
+                console.log("入库打印数据源",this.stockDatas)
209 210
               } else if (this.type == 2) {
210 211
                 if (response.data.data.list[i].query_sales_return_info.length > 0) {
211 212
                   this.stockDatas.push(response.data.data.list[i])
@@ -218,6 +219,7 @@
218 219
                 }
219 220
                
220 221
                 console.log("出库打印数据源",this.stockDatas)
222
+
221 223
                 
222 224
               } else if (this.type == 4) {
223 225
                 if (response.data.data.list[i].query_cancel_stock_info.length > 0) {
@@ -373,14 +375,14 @@
373 375
        for(let i=0;i<this.informationList.length;i++){
374 376
         for(let j=0;j<this.wareOutInfo.length;j++){
375 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 383
        for(let j=0;j<this.wareOutInfo.length;j++){
382 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,7 +393,7 @@
391 393
        var price = 0
392 394
        for(let i=0;i<this.informationList.length;i++){
393 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 399
        return price
@@ -403,6 +405,13 @@
403 405
        }
404 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 415
      unique(arr) {
407 416
         const res = new Map();
408 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,6 +235,8 @@ export default {
235 235
     this.goodUnit = this.$store.getters.good_unit
236 236
 
237 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 241
   data() {
240 242
     return {
@@ -268,7 +270,8 @@ export default {
268 270
       dealer: [],
269 271
       tableList:[],
270 272
       goodUnit:[],
271
-      stockTotal:[]
273
+      stockTotal:[],
274
+      org_id:0,
272 275
     };
273 276
   },
274 277
   methods: {
@@ -389,13 +392,10 @@ export default {
389 392
           return false;
390 393
         } else {
391 394
           this.total = response.data.data.total;
392
-          console.log("数据源头list2222222",response.data.data.list)
393
-
394 395
           for (let i = 0; i < response.data.data.list.length; i++) {
395 396
             var obj = response.data.data.list[i];
396 397
             obj["is_total"] = 0;
397 398
             this.cancelStockDate.push(obj);
398
-            // this.tableList.push(obj)
399 399
           }
400 400
           this.cancelStockDate.push({
401 401
             warehousing_order: "合计",
@@ -439,7 +439,7 @@ export default {
439 439
           var alen = this.adminUserOptions.length;
440 440
           for (let index = 0; index < alen; index++) {
441 441
             if (this.adminUserOptions[index].user_type == 2) {
442
-              // this.doctorOptions.push(this.adminUserOptions[index]);
442
+            
443 443
             }
444 444
           }
445 445
         }
@@ -642,9 +642,10 @@ export default {
642 642
        end_time:this.end_time,
643 643
        type:1,
644 644
      }
645
-   
645
+     
646 646
      getPrintStockGood(params).then(response=>{
647 647
         if(response.data.state == 1){
648
+          this.tableList = []
648 649
           var stockTotal =  response.data.data.stockTotal
649 650
         
650 651
           this.stockTotal = stockTotal
@@ -655,9 +656,7 @@ export default {
655 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,6 +726,11 @@ export default {
727 726
         const res = new Map();
728 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 734
       exportList(){
731 735
         var obj = {index:"合计",total:0}
732 736
         obj.total = this.calTotalPrice()
@@ -740,25 +744,48 @@ export default {
740 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 790
      formatJson(filterVal, jsonData) {
764 791
         return jsonData.map(v => filterVal.map(j => v[j]));

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

@@ -743,12 +743,11 @@ export default {
743 743
       },
744 744
 
745 745
      exportList(){
746
-      console.log("数据22222",this.tableList)
747
-      console.log("数据3333",this.goodInfoData)
746
+      
748 747
       for(let i=0;i<this.tableList.length;i++){
749 748
          for(let j=0;j<this.goodInfoData.length;j++){
750 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,7 +759,7 @@ export default {
760 759
         this.tableList[i].min_unit = this.getUnit(this.tableList[i].good_unit)
761 760
         this.tableList[i].count = this.getStockCount(this.tableList[i].id)
762 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 763
         this.tableList[i].remark = this.tableList[i].query_warehouseout_info[0].remark
765 764
        }
766 765
        var arr = this.unique(this.tableList)
@@ -769,7 +768,7 @@ export default {
769 768
        this.tableList.push(obj)
770 769
        import('@/vendor/Export2Excel').then(excel => {
771 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 773
        const data = this.formatJson(filterVal, this.tableList)
775 774
        console.log("data",data)

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

@@ -456,17 +456,23 @@ export default {
456 456
         for(let i=0;i<this.tableList.length;i++){
457 457
           for(let j=0;j<this.drugList.length;j++){
458 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 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 470
        import('@/vendor/Export2Excel').then(excel => {
465 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 473
        let obj = {'index':'合计','total_price':0}
468 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 477
        for(let j=0;j<this.tableList.length;j++){
472 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,7 +56,7 @@
56 56
             <tbody>
57 57
             <tr>
58 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 60
               <td></td>
61 61
             </tr>
62 62
 
@@ -172,7 +172,7 @@
172 172
       getTotal(){
173 173
          var total = 0
174 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 177
          return total
178 178
       }

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

@@ -55,7 +55,7 @@
55 55
             <tbody>
56 56
             <tr>
57 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 59
               <td></td>
60 60
             </tr>
61 61
 
@@ -171,7 +171,7 @@
171 171
       getTotal(){
172 172
          var total = 0
173 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 176
          return total
177 177
       }

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

@@ -168,6 +168,7 @@
168 168
         limit:this.limit,
169 169
         page:this.page,
170 170
        }
171
+       console.log("出库数据22222",params)
171 172
       getDrugOutDetail(params).then(response=>{
172 173
         if(response.data.state == 1){
173 174
           var drugInOrder = response.data.data.order
@@ -249,7 +250,7 @@
249 250
         var price = 0
250 251
         for(let i=0;i<this.drugList.length;i++){
251 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 256
         return price

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

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

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

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

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

@@ -10,6 +10,8 @@
10 10
         <div class="dialysis-print-order">
11 11
          <div class="order-yy-name" style="font-weight:bold;">{{orgName}}</div>
12 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 16
           <div style="float: right;margin-bottom: 1px;">{{getDateTwo()}}</div>
15 17
 
@@ -47,9 +49,9 @@
47 49
              <td  style="line-height:50px">
48 50
                 {{(item.count * item.price).toFixed(2)}}
49 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 55
             </tr>
54 56
              <tr>
55 57
                <td style="line-height:50px">合计</td>
@@ -68,8 +70,8 @@
68 70
             <div style="width:70px;">制单人:</div><div style="width:100px;"></div>
69 71
           </div>
70 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 75
             <div style="width:80px;">审批:</div><div style="width:100px;"></div>
74 76
             <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
75 77
             <div style="width:50px;">审核:</div><div style="width:100px;">徐立琼</div>
@@ -90,7 +92,7 @@
90 92
   import { jsGetAge, uParseTime } from '@/utils/tools'
91 93
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
92 94
   import print from 'print-js'
93
-  import {  getDrugWarehouseOutInfo } from '@/api/drug/drug_stock'
95
+  import {  getDrugWarehouseOutInfo,getDrugWarehouseOrderInfo } from '@/api/drug/drug_stock'
94 96
   import {getBaseDrugLibList} from '@/api/data'
95 97
   export default {
96 98
     name: 'dialysisPrintOrder',
@@ -128,7 +130,8 @@
128 130
         limit:10000,
129 131
         keywords:"",
130 132
         orgId:'',
131
-        orgName:""
133
+        orgName:"",
134
+        drugOrderList:[]
132 135
       }
133 136
     },
134 137
     methods: {
@@ -256,6 +259,52 @@
256 259
         });
257 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 309
     created() {
261 310
       this.orgName = this.$store.getters.xt_user.org.org_name;
@@ -263,6 +312,7 @@
263 312
       this.orgId = this.$store.getters.xt_user.org.id;
264 313
       this.GetOrderDetail(order_id);
265 314
       this.getList()
315
+      this.getDrugWarehouseOrderInfo()
266 316
     }
267 317
 
268 318
   }

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

@@ -455,7 +455,7 @@
455 455
       printOrder(){
456 456
         this.$router.push({
457 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,7 +124,7 @@
124 124
     created() {
125 125
       const order_id = this.$route.query.id
126 126
       const warehouse_out_time = this.$route.query.warehouse_out_time
127
-      console.log("时间搓",warehouse_out_time)
127
+     
128 128
       this.GetConfigInfo()
129 129
       this.GetOrderDetail(order_id)
130 130
       this.GetTotalCount(warehouse_out_time)
@@ -234,7 +234,7 @@
234 234
             }
235 235
             this.warehousingOutInfo.info = response.data.data.info
236 236
           
237
-            console.log("数据源头9999999999",this.warehousingOutInfo.warehousingOutData)
237
+          
238 238
             this.handleSpanTempArr()
239 239
           }
240 240
         })

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

@@ -41,9 +41,9 @@
41 41
                                     <td>{{getOutStockCount(item.good_id) + getWarehouseOutInfoCount(item.warehouse_out_id,item.good_id)}}</td>
42 42
                                     <td>{{item.price}}</td>
43 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 47
                                 </tr>
48 48
                                 <tr>
49 49
                                   <td>合计</td>
@@ -63,7 +63,7 @@
63 63
                         <div v-if="orgId == 10024" style="display:flex;margin-top:1px;float:right;">
64 64
                           <div style="width:50px;">科室:</div><div style="width:60px;"></div>
65 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 67
                           <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
68 68
                           <div style="width:50px;">审核:</div><div style="width:100px;">徐立琼</div>
69 69
                           <div style="width:70px;">制单人:</div><div style="width:100px;">徐立琼</div>
@@ -77,9 +77,10 @@
77 77
 
78 78
 <script>
79 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 81
 import print from 'print-js'
82 82
 const moment = require('moment');
83
+import { uParseTime } from '@/utils/tools'
83 84
 export default {
84 85
     components:{
85 86
         BreadCrumb
@@ -117,6 +118,7 @@ export default {
117 118
             wareoutList:[],
118 119
             orgId:'',
119 120
             orgName:'',
121
+            orderInList:[]
120 122
         }
121 123
     },
122 124
     methods:{
@@ -272,7 +274,56 @@ export default {
272 274
             }
273 275
          }
274 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 329
     created(){
@@ -284,6 +335,8 @@ export default {
284 335
       this.GetOrderDetail(order_id);
285 336
       this.GetTotalCount(warehouse_out_time);
286 337
       this.getList()
338
+      //获取所有入库单
339
+      this.getWarehouseOrderInfoList()
287 340
     }
288 341
 }
289 342
 </script>

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

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

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

@@ -332,6 +332,7 @@ export default {
332 332
         this.$message.error("开始时间不能大于结束时间");
333 333
         this.start_time = "";
334 334
       } else {
335
+        this.start_time = val
335 336
         this.GetAllStockQuery();
336 337
       }
337 338
     },
@@ -341,6 +342,7 @@ export default {
341 342
         this.$message.error("结束时间不能小于开始时间");
342 343
         this.end_time = "";
343 344
       } else {
345
+        this.end_time = val
344 346
         this.GetAllStockQuery();
345 347
       }
346 348
      
@@ -405,7 +407,7 @@ export default {
405 407
        this.GetAllStockQuery()
406 408
       },
407 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