浏览代码

11月14日 库存扣减更新

XMLWAN 3 年前
父节点
当前提交
04d30e086e

+ 1 - 5
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

@@ -2310,7 +2310,7 @@
2310 2310
             //   }
2311 2311
             // })
2312 2312
             if (num == 0) {
2313
-             
2313
+
2314 2314
               createHisPrescription(data, params).then(response => {
2315 2315
                 if (response.data.state == 1) {
2316 2316
                   this.$emit('change', this.patientInfo.id)
@@ -2482,10 +2482,6 @@
2482 2482
           this.$message.error('该处方已经结算,无法删除')
2483 2483
           return
2484 2484
         }
2485
-        if (targetName == '处方1') {
2486
-          this.$message.error('该处方无法删除')
2487
-          return
2488
-        }
2489 2485
         this.$confirm('处方删除后不可恢复,是否确认删除', '删除', {
2490 2486
           confirmButtonText: '确 定',
2491 2487
           cancelButtonText: '取 消',

+ 4 - 0
src/xt_pages/qcd/basicInformationAnalysis.vue 查看文件

@@ -204,6 +204,10 @@
204 204
                       <p>IUF+HD:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
205 205
                       <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
206 206
                   </span>
207
+                  <span v-if="item.mode_id == 'CVVHDF'">
208
+                      <p>IUF+HD:{{item.count}}次({{(item.count/total*100).toFixed(1)}}%)</p>
209
+                      <el-progress :percentage="(item.count/total*100).toFixed(1)"></el-progress>
210
+                  </span>
207 211
                </div>
208 212
               </div>
209 213
             </div>

+ 36 - 4
src/xt_pages/qcd/treatmentControlAnalysis/components/TimePersonal.vue 查看文件

@@ -262,6 +262,9 @@ export default {
262 262
               if(modeIdCount[i].mode_id == 19){
263 263
                modeIdCount[i].mode_id = "IUF+HD"
264 264
             }
265
+             if(modeIdCount[i].mode_id == 28){
266
+               modeIdCount[i].mode_id = "CVVHDF"
267
+            }
265 268
           }
266 269
           this.modeIdCount = modeIdCount
267 270
           let dataInfo = {}
@@ -423,6 +426,8 @@ export default {
423 426
             patients[i].mode_id = "HDF后置换"
424 427
         }else if(patients[i].mode_id == 19){
425 428
           patients[i].mode_id = "IUF+HD"
429
+        }else if(patients[i].mode_id == 28){
430
+          patients[i].mode_id = "CVVHDF"
426 431
         }
427 432
       }
428 433
     },
@@ -467,14 +472,25 @@ export default {
467 472
         console.log("DialysisData",this.DialysisData)
468 473
        for(let i=0;i<this.DialysisData.length;i++){
469 474
          this.DialysisData[i].index = i+1
470
-         this.DialysisData[i].dialysis_mode = this.getModeIdCount(this.DialysisData[i].patient_id)
475
+         this.DialysisData[i].HD = this.getHdModeIdCount(this.DialysisData[i].patient_id,"HD")
476
+         this.DialysisData[i].HDF = this.getHdModeIdCount(this.DialysisData[i].patient_id,"HDF")
477
+         this.DialysisData[i].HDHP = this.getHdModeIdCount(this.DialysisData[i].patient_id,"HD+HP")
478
+         this.DialysisData[i].HP = this.getHdModeIdCount(this.DialysisData[i].patient_id,"HP")
479
+         this.DialysisData[i].HF = this.getHdModeIdCount(this.DialysisData[i].patient_id,"HF")
480
+         this.DialysisData[i].SCUF = this.getHdModeIdCount(this.DialysisData[i].patient_id,"SCUF")
481
+         this.DialysisData[i].IUF = this.getHdModeIdCount(this.DialysisData[i].patient_id,"IUF")
482
+         this.DialysisData[i].HFHDHP = this.getHdModeIdCount(this.DialysisData[i].patient_id,"HFHD+HP")
483
+         this.DialysisData[i].HDFHP = this.getHdModeIdCount(this.DialysisData[i].patient_id,"HDF+HP")
484
+         this.DialysisData[i].CRRT = this.getHdModeIdCount(this.DialysisData[i].patient_id,"CRRT")
485
+         this.DialysisData[i].OTR = this.getHdModeIdCount(this.DialysisData[i].patient_id,"腹水回输")
471 486
          this.DialysisData[i].age = this.getAge(this.DialysisData[i].id_card_no)
472 487
          this.DialysisData[i].total_count = this.getDialysisCount(this.DialysisData[i].patient_id)
473 488
        }
489
+       console.log("hhh2323323232",this.DialysisData)
474 490
        import('@/vendor/Export2Excel').then(excel => {
475
-        const tHeader = ['序号','姓名', '年龄', '透析号','透析模式','透析总次数']
476
-        const filterVal = ['index','name', 'age', 'dialysis_no','dialysis_mode','total_count']
477
-        
491
+        const tHeader = ['序号','姓名', '年龄', '透析号','HD','HDF','HD+HP','HP','HF','SCUF','IUF','HFHD','HFHD+HP','HFR','HDF+HP','CRRT','腹水回输','总数']
492
+        const filterVal = ['index','name', 'age', 'dialysis_no','HD','HDF','HDHP','HP','HF','SCUF','IUF','HFHD','HFHDHP','HFR','HDFHP','CRRT','OTR','total_count']
493
+
478 494
         const data = this.formatJson(filterVal, this.DialysisData)
479 495
        
480 496
         excel.export_json_to_excel({
@@ -495,6 +511,22 @@ export default {
495 511
             }
496 512
           })
497 513
        );
514
+     },
515
+     getHdModeIdCount(id,mode_name){
516
+        var count = 0
517
+        var arr = []
518
+        for(let i = 0;i<this.modeIdCount.length;i++){
519
+           if(id == this.modeIdCount[i].patient_id && this.modeIdCount[i].mode_id == mode_name){
520
+             arr.push(this.modeIdCount[i])
521
+           }
522
+        }
523
+        if(arr.length > 0){
524
+          for(let i=0;i<arr.length;i++){
525
+            count += arr[i].Count
526
+          }
527
+        }
528
+       
529
+        return count
498 530
      }
499 531
 
500 532
   },

+ 5 - 5
src/xt_pages/stock/cancelStockOrderAdd.vue 查看文件

@@ -62,7 +62,7 @@
62 62
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
63 63
         >
64 64
        
65
-          <el-table-column align="center" width="230" fixed="left">
65
+         <el-table-column align="center" width="320" fixed="left">
66 66
              <template slot="header" slot-scope="scope">
67 67
               <span>耗材名称</span>
68 68
             </template>
@@ -76,7 +76,7 @@
76 76
                     placeholder="请输入耗材名称"
77 77
                     @select="handleSelect"
78 78
                     @input="changeGoodName(scope.$index)"
79
-                    style="width:200px;"
79
+                    style="width:280px;"
80 80
                   >
81 81
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
82 82
                   <template slot-scope="{ item }">
@@ -85,7 +85,7 @@
85 85
                  </el-autocomplete>
86 86
             </template>
87 87
           </el-table-column>
88
-          <el-table-column align="center" width="200">
88
+          <el-table-column align="center" width="140">
89 89
             <template slot="header" slot-scope="scope">
90 90
               <span>规格&单位<span style="color: red">*</span></span>
91 91
             </template>
@@ -98,7 +98,7 @@
98 98
             </template>
99 99
           </el-table-column>
100 100
         
101
-          <el-table-column width="150" align="center">
101
+          <el-table-column width="120" align="center">
102 102
             <template slot="header" slot-scope="scope">
103 103
               <span>退库数量<span style="color: red">*</span></span>
104 104
             </template>
@@ -118,7 +118,7 @@
118 118
             
119 119
             </template>
120 120
           </el-table-column>
121
-          <el-table-column width="150" align="center">
121
+          <el-table-column width="120" align="center">
122 122
             <template slot="header" slot-scope="scope">
123 123
               <span>单价<span style="color: red">*</span></span>
124 124
             </template>

+ 3 - 3
src/xt_pages/stock/cancelStockOrderEdit.vue 查看文件

@@ -28,7 +28,7 @@
28 28
         <el-table :data="recordInfo.recordData" :class="signAndWeighBoxPatients" style="width: 100%" border
29 29
              max-height="450" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}">
30 30
 
31
-          <el-table-column align="center" width="230">
31
+          <el-table-column align="center" width="320">
32 32
              <template slot="header" slot-scope="scope">
33 33
               <span>耗材名称</span>
34 34
             </template>
@@ -42,7 +42,7 @@
42 42
                     placeholder="请输入耗材名称"
43 43
                     @select="handleSelect"
44 44
                     @input="changeGoodName(scope.$index)"
45
-                    style="width:200px;"
45
+                    style="width:280px;"
46 46
                   >
47 47
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
48 48
                   <template slot-scope="{ item }">
@@ -53,7 +53,7 @@
53 53
           </el-table-column>
54 54
 
55 55
 
56
-         <el-table-column align="center" width="200">
56
+         <el-table-column align="center" width="140">
57 57
             
58 58
             <template slot="header" slot-scope="scope">
59 59
               <span>规格&单位<span style="color: red">*</span></span>

+ 1 - 1
src/xt_pages/stock/cancelStockOrderPrint.vue 查看文件

@@ -8,7 +8,7 @@
8 8
     <div class="app-container ">
9 9
       <div id="dialysis-print-box">
10 10
         <div class="dialysis-print-order" v-for="(it,index) in tableList" :key="index">
11
-         <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;">{{orgName}}</div>
11
+         <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
12 12
           <div class="order-title" style="font-weight:500;font-size:18px;">耗材退库登记表</div>
13 13
 
14 14
           <div style="float: left;margin-bottom: 1px;">单据编号:{{it.order_number}}</div>

+ 1 - 1
src/xt_pages/stock/drugs/cancelDrugOrderPrint.vue 查看文件

@@ -8,7 +8,7 @@
8 8
     <div class="app-container ">
9 9
       <div id="dialysis-print-box">
10 10
         <div class="dialysis-print-order" v-for="(it,index) in tableList" :key="index">
11
-         <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;">{{orgName}}</div>
11
+         <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
12 12
           <div class="order-title" style="font-weight:500;font-size:18px;">药品退库登记表</div>
13 13
 
14 14
           <div style="float: left;margin-bottom: 1px;">单据编号:{{it.order_number}}</div>

+ 1 - 1
src/xt_pages/stock/drugs/cancelDrugStockOrderAdd.vue 查看文件

@@ -576,7 +576,7 @@ export default {
576 576
             cancelStock: this.recordInfo.recordData
577 577
           };
578 578
          console.log("params2222",params,this.return_time)
579
-        
579
+          
580 580
           postDrugCancelStock(
581 581
             params,
582 582
             this.return_time,

+ 2 - 1
src/xt_pages/stock/drugs/components/drugInOrder.vue 查看文件

@@ -478,6 +478,7 @@ export default {
478 478
       return name
479 479
     },
480 480
      exportList(){
481
+        console.log("hhh233223232323",this.tabelePrintList)
481 482
         for(let i=0;i<this.tabelePrintList.length;i++){
482 483
           this.tabelePrintList[i].index = i+1
483 484
           this.tabelePrintList[i].drug_name = this.tabelePrintList[i].XtBaseDrug.drug_name
@@ -487,7 +488,7 @@ export default {
487 488
         
488 489
        import('@/vendor/Export2Excel').then(excel => {
489 490
        const tHeader = ['序号','药品名称', '规格型号', '单位','数量','单价','总价','备注']
490
-       const filterVal = ['index','drug_name', 'unit', 'min_unit','warehousing_count','price','total_price','remark']
491
+       const filterVal = ['index','drug_name', 'unit', 'max_unit','warehousing_count','price','total_price','remark']
491 492
        let obj = {'index':'合计','total_price':0}
492 493
        for(let i=0;i<this.tabelePrintList.length;i++){
493 494
          obj.total_price += this.tabelePrintList[i].price * this.tabelePrintList[i].warehousing_count

+ 8 - 4
src/xt_pages/stock/drugs/components/drugOutDetail.vue 查看文件

@@ -181,7 +181,7 @@
181 181
         </el-table-column>
182 182
         <el-table-column label="总价" align="center">
183 183
           <template slot-scope="scope">
184
-            <!-- {{scope.row.price * scope.row.count}} -->
184
+            
185 185
             {{scope.row.total_price}}
186 186
           </template>
187 187
         </el-table-column>
@@ -432,8 +432,12 @@ export default {
432 432
             is_total: 1,
433 433
             specification_name:"",
434 434
             ctime:"",
435
-            total_price:total_price.toFixed(2),
435
+            total_price:total_price,
436 436
           });
437
+         
438
+          for(let i=0;i<order.length;i++){
439
+            order[i].total_price = order[i].total_price.toFixed(2)
440
+          }
437 441
           this.tableData = order
438 442
            let objInfo = {}
439 443
           order.forEach((item,index)=>{
@@ -477,8 +481,8 @@ export default {
477 481
           for(let i=0;i<list.length;i++){
478 482
              list[i].total_price = list[i].count * list[i].price
479 483
           }
480
-         
481
-          this.tableList = list
484
+       
485
+          this.tableList = list 
482 486
           var total = response.data.data.total
483 487
           this.total = total
484 488
         } 

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrderDetailPrint.vue 查看文件

@@ -8,7 +8,7 @@
8 8
     <div class="app-container ">
9 9
       <div id="dialysis-print-box">
10 10
         <div class="dialysis-print-order" v-for="(it,index) in tableList" :key="index">
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;margin-top:40px">{{ orgName }}</div>
12 12
           <div class="order-title" style="font-size:18px;padding-top:0;">药品入库登记表</div>
13 13
 
14 14
           <div style="float: left;margin-bottom: 1px;">单据编号:{{it.warehousing_order}}</div>

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue 查看文件

@@ -688,7 +688,7 @@ export default {
688 688
             stockIn: this.recordInfo.recordData
689 689
           };
690 690
           console.log("params22222222222",params)
691
-        
691
+         
692 692
           EditDrugWarehouse(
693 693
             params,
694 694
             this.warehousing_time,

+ 3 - 2
src/xt_pages/stock/drugs/drugStockOutOrder.vue 查看文件

@@ -1162,6 +1162,7 @@ export default {
1162 1162
           this.$message.error("请勾选出库单")
1163 1163
           return
1164 1164
         }
1165
+        console.log("hh2323232322323",this.exportList)
1165 1166
         for(let i=0;i<this.exportList.length;i++){
1166 1167
           if(this.exportList[i].dealer == 0){
1167 1168
             this.exportList[i].dealer = ""
@@ -1172,8 +1173,8 @@ export default {
1172 1173
           this.exportList[i].unit = this.exportList[i].dose + this.exportList[i].dose_unit + "*" + this.exportList[i].min_number + this.exportList[i].min_unit + "/"+this.exportList[i].max_unit
1173 1174
 
1174 1175
           this.exportList[i].total_price = (this.exportList[i].count * this.exportList[i].price).toFixed(2)
1175
-          this.exportList[i].expiry_date  = this.getTime(this.exportList[i].expiry_date,"{y}-{h}-{d}")
1176
-           this.exportList[i].product_date = this.getTime(this.exportList[i].product_date,"{y}-{h}-{d}")
1176
+          this.exportList[i].expiry_date  = this.getTime(this.exportList[i].expire_date)
1177
+           this.exportList[i].product_date = this.getTime(this.exportList[i].product_date)
1177 1178
           for(let j=0;j<this.manufacturerList.length;j++){
1178 1179
             if(this.exportList[i].manufacturer == this.manufacturerList[j].id){
1179 1180
               this.exportList[i].manufacturer = this.manufacturerList[j].manufacturer_name

+ 1 - 1
src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue 查看文件

@@ -8,7 +8,7 @@
8 8
     <div class="app-container ">
9 9
       <div id="dialysis-print-box">
10 10
         <div class="dialysis-print-order" v-for="(it,index) in tableList" :key="index">
11
-         <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;">{{orgName}}</div>
11
+         <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
12 12
           <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
13 13
 
14 14
           <div style="float: left;margin-bottom: 1px;">单据编号:{{it.warehouse_out_order_number}}</div>

+ 1 - 1
src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue 查看文件

@@ -587,7 +587,7 @@
587 587
               'stockOut': this.recordInfo.recordData
588 588
             }
589 589
             console.log("param23322323233222323",params)
590
-          
590
+           
591 591
             editDrugWarehouseoutInfo(params, this.warehouse_out_time, this.$route.query.id, this.$route.query.type, this.form.manufacturer, this.form.dealer).then(response => {
592 592
               if (response.data.state == 0) {
593 593
                 this.$message.error(response.data.msg)

+ 1 - 1
src/xt_pages/stock/drugs/inventoryDetails.vue 查看文件

@@ -7,7 +7,7 @@
7 7
                 style="width: 200px;margin-left:10px;"
8 8
                 class="filter-item"
9 9
                 v-model.trim="searchKey"
10
-               placeholder="请输入单据编号或操作人姓名"
10
+               placeholder="请输入药品名称"
11 11
                 />
12 12
                 <el-button
13 13
                 size="small"

+ 47 - 21
src/xt_pages/stock/drugs/query.vue 查看文件

@@ -110,32 +110,36 @@
110 110
             <span v-if="getWarehoseInfo(scope.row.drug_warehouse_info)!=0">{{getWarehoseInfo(scope.row.drug_warehouse_info)}}{{scope.row.max_unit}}</span>
111 111
            </template>
112 112
         </el-table-column>
113
-        <el-table-column prop="drug_name" label="出库数量" align="center">
113
+        <el-table-column prop="drug_name" label="出库数量" align="center" v-if="showOne">
114 114
            <template slot-scope="scope">
115
-             <!-- <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10138 || org_id ==10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919">
116
-                <span>
117
-                 {{getOutFlush(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_cancel_stock_info)}}
118
-                </span>
119
-             </span>
120
-             <span v-else>{{getOutCount(scope.row.id)+getAutoCount(scope.row.id)}}{{scope.row.max_unit}}</span> -->
121 115
               <span>
122 116
                  {{getOutFlush(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_cancel_stock_info)}}
123 117
               </span>
124 118
            </template>
125 119
         </el-table-column>
120
+
121
+        <el-table-column prop="drug_name" label="出库数量" align="center" v-if="showTwo">
122
+           <template slot-scope="scope">
123
+           
124
+             <span>{{getOutCount(scope.row.id)+getAutoCount(scope.row.id)}}{{scope.row.max_unit}}</span>
125
+             
126
+           </template>
127
+        </el-table-column>
126 128
         
127
-        <el-table-column prop="drug_name" label="剩余库存量" align="center">
129
+        <el-table-column prop="drug_name" label="剩余库存量" align="center" v-if="showThree">
128 130
            <template slot-scope="scope">
129 131
             <div v-if="getWarehoseInfo(scope.row.drug_warehouse_info)!=0">
130
-               <!-- <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10138 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919">
131
-                {{ getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)?getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number):0}}
132
-               </span>
133
-
134
-               <span v-else>{{getWarehoseInfo(scope.row.drug_warehouse_info) - getOutCount(scope.row.id) - getAutoCount(scope.row.id)}}{{scope.row.max_unit}} </span> -->
135 132
                 {{ getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)?getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number):0}}
136 133
             </div>
137 134
            </template>
138 135
         </el-table-column>
136
+        <el-table-column prop="drug_name" label="剩余库存量" align="center" v-if="showFour">
137
+           <template slot-scope="scope">
138
+            <div v-if="getWarehoseInfo(scope.row.drug_warehouse_info)!=0">
139
+               <span>{{getWarehoseInfo(scope.row.drug_warehouse_info) - getOutCount(scope.row.id) - getAutoCount(scope.row.id)}}{{scope.row.max_unit}} </span>         
140
+            </div>
141
+           </template>
142
+        </el-table-column>
139 143
         <el-table-column prop="drug_name" label="操作" align="center" width="200px">
140 144
           <template slot-scope="scope">
141 145
             <el-button
@@ -254,6 +258,10 @@ import { min } from 'moment'
254 258
         cancelCountList:[],
255 259
         allCountList:[],
256 260
         org_id:"",
261
+        showOne:true,
262
+        showTwo:false,
263
+        showThree:true,
264
+        showFour:false,
257 265
       }
258 266
     },
259 267
     methods: {
@@ -395,8 +403,22 @@ import { min } from 'moment'
395 403
         this.$message.error("结束时间不能小于开始时间");
396 404
         this.end_time = "";
397 405
       } else {
398
-
399
-        this.getlist()
406
+        if(this.end_time == ""){
407
+          this.showOne = true
408
+          this.showTwo = false
409
+          this.showThree = true
410
+          this.showFour = false
411
+           this.getlist()
412
+        }
413
+        if(this.end_time !=""){
414
+          this.showOne = false
415
+          this.showTwo = true
416
+          this.showThree = false
417
+          this.showFour = true
418
+          this.getlist()
419
+          this.getDrugCountList()
420
+        }
421
+       
400 422
       }
401 423
 
402 424
     },
@@ -443,13 +465,17 @@ import { min } from 'moment'
443 465
            this.tableList[i].drug_type_name = this.getDrugType(this.tableList[i].drug_type)
444 466
            this.tableList[i].unit = this.tableList[i].dose + this.tableList[i].dose_unit +"*"+this.tableList[i].min_number+this.tableList[i].min_unit+"/"+this.tableList[i].max_unit
445 467
            this.tableList[i].manufacturer_name = this.getManufacturerList(this.tableList[i].manufacturer)
446
-        
447 468
           this.tableList[i].inCount =  this.getWarehoseInfo(this.tableList[i].drug_warehouse_info)
448
-          this.tableList[i].outCount = this.getWarehouseOutInfo(this.tableList[i].drug_warehouse_out,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
449
-          this.tableList[i].overplusCount =  this.getOverFlushInfo(this.tableList[i].drug_warehouse_info,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
450
-         }
469
+          if(this.end_time == 0){
470
+            this.tableList[i].outCount = this.getWarehouseOutInfo(this.tableList[i].drug_warehouse_out,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
471
+            this.tableList[i].overplusCount =  this.getOverFlushInfo(this.tableList[i].drug_warehouse_info,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
472
+          }
473
+          if(this.end_time!=0){
474
+             this.tableList[i].outCount = this.getOutCount(this.tableList[i].id)+ this.getAutoCount(this.tableList[i].id)
475
+             this.tableList[i].overplusCount  = this.getWarehoseInfo(this.tableList[i].drug_warehouse_info) - this.getOutCount(this.tableList[i].id) - this.getAutoCount(this.tableList[i].id)
451 476
 
452
-         console.log("hhhhhhhadhfadf 列表",this.tableList)
477
+          }   
478
+         }
453 479
          import('@/vendor/Export2Excel').then(excel => {
454 480
          const tHeader = ['序号', '药品类型', '药品名称','规格型号&单位','进货单价','厂家','入库数量','出库数量','剩余库存量']
455 481
          const filterVal = ['index', 'drug_type_name', 'drug_name','unit','last_price','manufacturer_name','inCount','outCount','overplusCount']
@@ -666,7 +692,7 @@ import { min } from 'moment'
666 692
        }
667 693
        return str+str_min
668 694
      },
669
-      getCancelCount(id){
695
+     getCancelCount(id){
670 696
         var count= 0
671 697
         for(let i=0;i<this.cancelCountList.length;i++){
672 698
           if(id == this.cancelCountList[i].drug_id){

+ 13 - 25
src/xt_pages/stock/stockInOrderEdit.vue 查看文件

@@ -99,7 +99,7 @@
99 99
           max-height="450"
100 100
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
101 101
         > 
102
-         <el-table-column align="center" width="200">
102
+         <el-table-column align="center" width="300">
103 103
              <template slot="header" slot-scope="scope">
104 104
               <span>耗材名称</span>
105 105
             </template>
@@ -113,7 +113,7 @@
113 113
                     placeholder="请输入耗材名称"
114 114
                     @select="handleSelect"
115 115
                     @input="changeGoodName(scope.$index)"
116
-                    style="width:160px;"
116
+                    style="width:250px;"
117 117
                   >
118 118
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
119 119
                   <template slot-scope="{ item }">
@@ -150,21 +150,18 @@
150 150
 
151 151
             </template>
152 152
           </el-table-column>
153
-          <!-- <el-table-column align="center" width="200">
153
+       
154
+         <el-table-column align="center" width="150">
154 155
             <template slot="header" slot-scope="scope">
155
-              <span>规格名称<span style="color: red">*</span></span>
156
+              <span>批号<span style="color: red">*</span></span>
156 157
             </template>
157 158
             <template slot-scope="scope">
158
-              <el-form-item style="padding-top: 15px">
159
-                <el-input
160
-                  placeholder="请输入规格名称"
161
-                  v-model="scope.row.good_id"
162
-                  :value="specificationName(scope.row.good_id)"
163
-                  @focus="showDialog(scope.$index, scope.row)"
164
-                ></el-input>
159
+              <el-form-item style="padding-top: 20px" :prop="'recordData.' + scope.$index + '.number'"
160
+                            :rules='tableRules.number' >
161
+                <el-input placeholder="请输入批号" v-model="scope.row.number"></el-input>
165 162
               </el-form-item>
166 163
             </template>
167
-          </el-table-column> -->
164
+          </el-table-column>
168 165
 
169 166
           <el-table-column align="center" width="120">
170 167
             <template slot="header" slot-scope="scope">
@@ -256,19 +253,7 @@
256 253
             </template>
257 254
           </el-table-column>
258 255
 
259
-          <el-table-column align="center" width="150">
260
-            <template slot="header" slot-scope="scope">
261
-              <span>批号</span>
262
-            </template>
263
-            <template slot-scope="scope">
264
-              <el-form-item style="padding-top: 20px">
265
-                <el-input
266
-                  placeholder="请输入批号"
267
-                  v-model="scope.row.number"
268
-                ></el-input>
269
-              </el-form-item>
270
-            </template>
271
-          </el-table-column>
256
+         
272 257
         
273 258
            <el-table-column align="center" width="150">
274 259
             <template slot="header" slot-scope="scope">
@@ -403,6 +388,9 @@ export default {
403 388
         expiry_date:[
404 389
          { required: true, message: '有效日期不能为空', trigge: 'blur' }
405 390
         ],
391
+        number:[
392
+            { required: true, message: '批号不能为空', trigge: 'blur' }
393
+        ],
406 394
       },
407 395
 
408 396
       total: "",

+ 0 - 1
src/xt_pages/stock/stockOutOrderDetailPrint.vue 查看文件

@@ -402,7 +402,6 @@ export default {
402 402
       const order_id = this.$route.query.id;
403 403
       const warehouse_out_time = this.$route.query.warehouse_out_time;
404 404
       this.GetConfigInfo();
405
-      // this.GetTotalCount(warehouse_out_time);
406 405
       this.GetOrderDetailOne(order_id)
407 406
       this.getList()
408 407
       this.getStockDrugCount()

+ 70 - 4
src/xt_pages/user/patients.vue 查看文件

@@ -320,6 +320,7 @@
320 320
           >
321 321
           </el-option>
322 322
         </el-select>
323
+        <el-button type="primary" size="small" style="float:right" @click="toExport">导出</el-button>
323 324
       </div>
324 325
 
325 326
       <el-table
@@ -463,7 +464,7 @@
463 464
         @size-change="handleSizeChange"
464 465
         @current-change="handleCurrentChange"
465 466
         :current-page="listQuery.page"
466
-        :page-sizes="[10, 20, 50, 100]"
467
+        :page-sizes="[10, 20, 50, 100,200,500,1000,2000]"
467 468
         :page-size="listQuery.limit"
468 469
         background
469 470
         style="margin-top:20px;"
@@ -604,6 +605,7 @@
604 605
             @size-change="handleSizeChangeOne"
605 606
             @current-change="handleCurrentChangeOne"
606 607
             :page-size="5"
608
+            :page-sizes="[10, 20, 50, 100,500,1000,2000]"
607 609
             background
608 610
             style="margin-top:20px;float: right"
609 611
             :total="value"
@@ -616,11 +618,10 @@
616 618
 <script>
617 619
   import { code, EditLapseto, fetchList, getMaxDialysisNo, OpenView, postExportPatients,GetRemind } from '@/api/patient'
618 620
   import { generateLog } from '@/api/config'
619
-
620 621
   import QRCode from 'qrcodejs2'
621 622
   import Vue from 'vue'
622 623
   import { Base64 } from 'js-base64'
623
-  import { uParseTime } from '@/utils/tools'
624
+  import { jsGetAge,uParseTime } from '@/utils/tools'
624 625
   import { log } from 'util'
625 626
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
626 627
   import UploadExcel from '@/xt_pages/components/UploadExcel'
@@ -1336,7 +1337,7 @@
1336 1337
         return new Date(time).getTime() / 1000
1337 1338
       },
1338 1339
       search() {
1339
-        this.listQuery.limit = 700
1340
+        
1340 1341
         this.listQuery.keywords = this.searchKey
1341 1342
         this.getList()
1342 1343
       },
@@ -1354,6 +1355,7 @@
1354 1355
             console.log('病人是', this.tableData)
1355 1356
             this.pageTotal = this.tableData.length
1356 1357
             this.total = response.data.data.total
1358
+           
1357 1359
           }
1358 1360
         })
1359 1361
       },
@@ -1515,6 +1517,70 @@
1515 1517
         }
1516 1518
 
1517 1519
       },
1520
+     toExport(){
1521
+      import('@/vendor/Export2Excel').then(excel => {
1522
+      
1523
+        console.log("hhhh323223",this.tableData)
1524
+        for(let i=0;i<this.tableData.length;i++){
1525
+          if(this.tableData[i].gender == 1){
1526
+            this.tableData[i].genders = "男"
1527
+          }
1528
+          if(this.tableData[i].gender == 2){
1529
+            this.tableData[i].genders = "女"
1530
+          }
1531
+          this.tableData[i].age_year = this.tranAge(this.tableData[i])
1532
+          this.tableData[i].first_dialysis_date = this.getTime(this.tableData[i].first_dialysis_date)
1533
+          if(this.tableData[i].lapseto == 0){
1534
+            this.tableData[i].lapesetos = ""
1535
+          }
1536
+          if(this.tableData[i].lapseto == 1){
1537
+            this.tableData[i].lapesetos = "留治"
1538
+          }
1539
+          if(this.tableData[i].lapseto == 2){
1540
+            this.tableData[i].lapesetos = "转归"
1541
+          }
1542
+           if(this.tableData[i].source == 0){
1543
+             this.tableData[i].sources = ""
1544
+          }
1545
+          if(this.tableData[i].source == 1){
1546
+             this.tableData[i].sources = "门诊"
1547
+          }
1548
+           if(this.tableData[i].source == 2){
1549
+             this.tableData[i].sources = "住院"
1550
+          }
1551
+         if(this.tableData[i].is_infectious == 0){
1552
+             this.tableData[i].is_infectiouss = ""
1553
+          }
1554
+          if(this.tableData[i].is_infectious == 1){
1555
+             this.tableData[i].is_infectiouss = "阴性"
1556
+          }
1557
+          if(this.tableData[i].is_infectious == 2){
1558
+             this.tableData[i].is_infectiouss = "阳性"
1559
+          }
1560
+        }
1561
+       
1562
+        const tHeader = ['姓名', '性别', '身份证号码','年龄','透析号','首次治疗时间','本人电话','患者来源','治疗状态','传染病']
1563
+        const filterVal = ['name', 'genders', 'id_card_no','age_year','dialysis_no','first_dialysis_date','phone','sources','lapesetos','is_infectiouss']
1564
+        console.log("table",this.tableData)
1565
+      
1566
+        const data = this.formatJson(filterVal, this.tableData)
1567
+        excel.export_json_to_excel({
1568
+          header: tHeader,
1569
+          data,
1570
+          filename: '患者名单'
1571
+        })
1572
+        this.downloadLoading = false
1573
+     })
1574
+    },
1575
+    formatJson(filterVal, jsonData) {
1576
+      return jsonData.map(v => filterVal.map(j => v[j]));
1577
+    },
1578
+    tranAge(val) {
1579
+      if(val.birthday){
1580
+        var birth = uParseTime(val.birthday, '{y}-{m}-{d}');
1581
+        return jsGetAge(birth, '-');
1582
+      }
1583
+    },
1518 1584
     }
1519 1585
   }
1520 1586
   Vue.prototype.$QRCode = function() {

+ 2 - 1
src/xt_pages/user/vascularAccess.vue 查看文件

@@ -521,7 +521,8 @@
521 521
         },
522 522
         options:[
523 523
          {id:1,name:"启用"},
524
-         {id:2,name:"停用"}
524
+         {id:2,name:"停用"},
525
+         {id:3,name:"备用"}
525 526
         ],
526 527
         optionsPass:[
527 528
           {id:1,name:"流入-动脉"},