ソースを参照

518合并代码

XMLWAN 2 年 前
コミット
018c97f898

+ 3 - 3
src/xt_pages/outpatientTool/components/detailStatistics.vue ファイルの表示

@@ -181,7 +181,7 @@ export default {
181 181
         type: this.item_type,
182 182
         keyword: this.keywords
183 183
       }
184
-     console.log("patient_id 233232323232323",this.patient_id)
184
+    //  console.log("patient_id 233232323232323",this.patient_id)
185 185
      getHisSummaryDetailList(params).then(response=>{
186 186
        if(response.data.state == 1){
187 187
           var list =  response.data.data.list
@@ -205,7 +205,7 @@ export default {
205 205
             obj.total_price += (this.tableData[i].cnt * this.tableData[i].pric)  
206 206
           }
207 207
           obj.total_price = (obj.total_price).toFixed(2)
208
-          console.log("tabledate23232332233223",this.tableData)
208
+          // console.log("tabledate23232332233223",this.tableData)
209 209
           this.tableData.push(obj)
210 210
           var new_arr = []
211 211
        
@@ -249,7 +249,7 @@ export default {
249 249
       return total_price
250 250
     },
251 251
     getActPay(){
252
-      console.log("hh23h323223323",this.list)
252
+      // console.log("hh23h323223323",this.list)
253 253
       var act_pay = 0
254 254
       for(let i=0;i<this.list.length;i++){
255 255
         for(let j=0;j<this.list[i].orders.length;j++){

+ 94 - 24
src/xt_pages/outpatientTool/components/gatherStatistics.vue ファイルの表示

@@ -47,7 +47,6 @@
47 47
     </div>
48 48
     <el-table :data="list" border :row-style="{ color: '#303133' }" ref="table"
49 49
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
50
-              show-summary
51 50
               max-height="600"
52 51
               v-loading="detail_loading"
53 52
               highlight-current-row>
@@ -212,7 +211,12 @@ export default {
212 211
                 this.list = []
213 212
                 this.list =  this.list.concat(obj.details)
214 213
                 for(let i=0;i<this.list.length;i++){
215
-                  this.list[i].index = i
214
+                  if(this.list[i].is_total == 1){
215
+                     this.list[i].index = "合计"
216
+                  }else{
217
+                    this.list[i].index = i+1
218
+                  }
219
+                 
216 220
                 }
217 221
               }
218 222
               let newobj = {}
@@ -221,21 +225,52 @@ export default {
221 225
               this.list = []
222 226
               this.list.push(newobj)
223 227
               var new_arr = []
224
-              if(this.keywords!=""){
225
-                   let newobj = {}
226
-                   newobj['total'] = this.order.medfee_sumamt
227
-                   newobj['is_total'] = 1
228
-                   this.list.push(newobj)
229
-                   this.list =  this.list.concat(obj.details)
230
-                   for(let i=0;i<this.list.length;i++){
231
-                     if(this.list[i].is_total ==2){
232
-                        if(this.list[i].name.indexOf(this.keywords)>-1){
233
-                        new_arr.push(this.list[i])
228
+               if(this.keywords!=""){
229
+                 for(let i=0;i<this.list.length;i++){
230
+                   if(this.list[i].is_total == 2){
231
+                      if(this.list[i].name.indexOf(this.keywords)>-1){
232
+                           new_arr.push(this.list[i])
234 233
                        }
235 234
                      }
235
+                   
236
+                  }
237
+                  var new_arr_two = []
238
+                 
239
+                  for(let i=0;i<tempDetails.length;i++){
240
+                    if(tempDetails[i].advice_id >0){
241
+                       tempDetails[i].name = tempDetails[i].advice.advice_name
242
+                    }
243
+                    if(tempDetails[i].project_id > 0){
244
+                       if(tempDetails[i].type == 2 ){
245
+                         tempDetails[i].name = tempDetails[i].project.project_name
246
+                       }
247
+                       if(tempDetails[i].type == 3){
248
+                         tempDetails[i].name = tempDetails[i].good_info.good_name
249
+                       }
250
+                    }
251
+                    if(tempDetails[i].name.indexOf(this.keywords) > -1){
252
+                       new_arr_two.push(tempDetails[i])
253
+                    }
236 254
                   }
237
-                  this.list = []
238
-                  this.list = new_arr
255
+                   this.list = []
256
+                
257
+                   this.list = new_arr
258
+                    obj.details = []
259
+                    obj.details = this.setNewData(new_arr_two)
260
+
261
+                    obj.total = this.getTotal(obj.details)
262
+                    obj.details.push({
263
+                      total: obj.total,
264
+                      is_total: 1,
265
+                    })
266
+                    for(let i=0;i<obj.details.length;i++){
267
+                       if(obj.details[i].is_total == 1){
268
+                          obj.details[i].index = "合计"
269
+                       }else{
270
+                         obj.details[i].index = i+1
271
+                       }
272
+                    }
273
+                    this.list = obj.details
239 274
                 }
240 275
             }else{
241 276
               //获取所有项目类型进行去重
@@ -273,17 +308,16 @@ export default {
273 308
                 this.list = []
274 309
                 this.list =  this.list.concat(obj.details)
275 310
                 for(let i=0;i<this.list.length;i++){
276
-                  this.list[i].index = i+1
311
+                  if(this.list[i].is_total == 1){
312
+                     this.list[i].index = "合计"
313
+                  }else{
314
+                    this.list[i].index = i+1
315
+                  }
316
+                 
277 317
                 }
278 318
                 var new_arr = []
279 319
                 if(this.keywords!=""){
280
-                    obj.details.push({
281
-                      total: obj.total,
282
-                      is_total: 1,
283
-                    })
284
-                  
285
-                   this.list =  this.list.concat(obj.details)
286
-                   console.log("list233232232332323223",this.list)
320
+       
287 321
                    for(let i=0;i<this.list.length;i++){
288 322
                      if(this.list[i].is_total == 2){
289 323
                         if(this.list[i].name.indexOf(this.keywords)>-1){
@@ -292,8 +326,44 @@ export default {
292 326
                      }
293 327
                    
294 328
                   }
295
-                  this.list = []
296
-                  this.list = new_arr
329
+                  var new_arr_two = []
330
+                  for(let i=0;i<tempDetails.length;i++){
331
+                    if(tempDetails[i].advice_id >0){
332
+                       tempDetails[i].name = tempDetails[i].advice.advice_name
333
+                    }
334
+                    if(tempDetails[i].project_id > 0){
335
+                       if(tempDetails[i].type == 2 ){
336
+                         tempDetails[i].name = tempDetails[i].project.project_name
337
+                       }
338
+                       if(tempDetails[i].type == 3){
339
+                         tempDetails[i].name = tempDetails[i].good_info.good_name
340
+                       }
341
+                    }
342
+                    if(tempDetails[i].name.indexOf(this.keywords) > -1){
343
+                       new_arr_two.push(tempDetails[i])
344
+                    }
345
+                  }
346
+                   this.list = []
347
+                
348
+                   
349
+                   this.list = new_arr
350
+                    obj.details = []
351
+                    obj.details = this.setNewData(new_arr_two)
352
+
353
+                    obj.total = this.getTotal(obj.details)
354
+                    obj.details.push({
355
+                      total: obj.total,
356
+                      is_total: 1,
357
+                    })
358
+                    for(let i=0;i<obj.details.length;i++){
359
+                       if(obj.details[i].is_total == 1){
360
+                          obj.details[i].index = "合计"
361
+                       }else{
362
+                         obj.details[i].index = i+1
363
+                       }
364
+                    }
365
+                    console.log("obj23323232323232323232",obj.details)
366
+                    this.list = obj.details
297 367
                 }
298 368
              }
299 369
           }

+ 121 - 9
src/xt_pages/outpatientTool/gatherPrint.vue ファイルの表示

@@ -185,6 +185,66 @@
185 185
               newobj['is_total'] = 1
186 186
               
187 187
               this.list.push(newobj)
188
+
189
+              var new_arr = []
190
+              if(this.$route.query.keyword!=""){
191
+       
192
+                   for(let i=0;i<this.list.length;i++){
193
+                     if(this.list[i].is_total == 2){
194
+                        if(this.list[i].name.indexOf(this.$route.query.keyword)>-1){
195
+                           new_arr.push(this.list[i])
196
+                       }
197
+                     }
198
+                   
199
+                  }
200
+                  var new_arr_two = []
201
+                  for(let i=0;i<tempDetails.length;i++){
202
+                    if(tempDetails[i].advice_id >0){
203
+                       tempDetails[i].name = tempDetails[i].advice.advice_name
204
+                    }
205
+                    if(tempDetails[i].project_id > 0){
206
+                       if(tempDetails[i].type == 2 ){
207
+                         tempDetails[i].name = tempDetails[i].project.project_name
208
+                       }
209
+                       if(tempDetails[i].type == 3){
210
+                         tempDetails[i].name = tempDetails[i].good_info.good_name
211
+                       }
212
+                    }
213
+                    if(tempDetails[i].name.indexOf(this.$route.query.keyword) > -1){
214
+                       new_arr_two.push(tempDetails[i])
215
+                    }
216
+                  }
217
+                   this.list = []
218
+                
219
+                   
220
+                   this.list = new_arr
221
+                    obj.details = []
222
+                    obj.details = this.setNewData(new_arr_two)
223
+
224
+                    obj.total = this.getTotal(obj.details)
225
+                    obj.details.push({
226
+                      total: obj.total,
227
+                      is_total: 1,
228
+                    })
229
+                    for(let i=0;i<obj.details.length;i++){
230
+                       if(obj.details[i].is_total == 1){
231
+                          obj.details[i].index = "合计"
232
+                       }else{
233
+                         obj.details[i].index = i+1
234
+                       }
235
+                    }
236
+                 
237
+                    this.list = obj.details
238
+                    this.chineseTraditionalMedicineCostTotal = response.data.data.chineseTraditionalMedicineCostTotal
239
+                    this.checkCostTotal = response.data.data.checkCostTotal
240
+                    this.materialCostTotal = response.data.data.materialCostTotal
241
+                    this.laboratoryCostTotal = response.data.data.laboratoryCostTotal
242
+                    this.bedCostTotal = response.data.data.bedCostTotal
243
+                    this.operationCostTotal = response.data.data.operationCostTotal
244
+                    this.zhenChaCostTotal = response.data.data.zhenChaCostTotal
245
+                    this.otherCostTotal = response.data.data.otherCostTotal
246
+
247
+                }
188 248
             }else{
189 249
               //获取所有项目类型进行去重
190 250
               let med_chrgitm_types = []
@@ -219,18 +279,70 @@
219 279
                 })
220 280
                
221 281
                 this.list =  this.list.concat(obj.details)
222
-                console.log("oh2323232323233223232323233",this.list)
282
+              
223 283
                 for(let i=0;i<this.list.length;i++){
224 284
                   this.list[i].index = i+1
225 285
                 }
226
-                 this.chineseTraditionalMedicineCostTotal = response.data.data.chineseTraditionalMedicineCostTotal
227
-                  this.checkCostTotal = response.data.data.checkCostTotal
228
-                  this.materialCostTotal = response.data.data.materialCostTotal
229
-                  this.laboratoryCostTotal = response.data.data.laboratoryCostTotal
230
-                  this.bedCostTotal = response.data.data.bedCostTotal
231
-                  this.operationCostTotal = response.data.data.operationCostTotal
232
-                  this.zhenChaCostTotal = response.data.data.zhenChaCostTotal
233
-                  this.otherCostTotal = response.data.data.otherCostTotal
286
+              var new_arr = []
287
+              if(this.$route.query.keyword!=""){
288
+                console.log("锦鲤3332232332233223322332",this.list)
289
+                for(let i=0;i<this.list.length;i++){
290
+                     if(this.list[i].is_total == 2){
291
+                        if(this.list[i].name.indexOf(this.$route.query.keyword)>-1){
292
+                           new_arr.push(this.list[i])
293
+                       }
294
+                     }
295
+                   
296
+                  }
297
+                  var new_arr_two = []
298
+                  for(let i=0;i<tempDetails.length;i++){
299
+                    if(tempDetails[i].advice_id >0){
300
+                       tempDetails[i].name = tempDetails[i].advice.advice_name
301
+                    }
302
+                    if(tempDetails[i].project_id > 0){
303
+                       if(tempDetails[i].type == 2 ){
304
+                         tempDetails[i].name = tempDetails[i].project.project_name
305
+                       }
306
+                       if(tempDetails[i].type == 3){
307
+                         tempDetails[i].name = tempDetails[i].good_info.good_name
308
+                       }
309
+                    }
310
+                    if(tempDetails[i].name.indexOf(this.$route.query.keyword) > -1){
311
+                       new_arr_two.push(tempDetails[i])
312
+                    }
313
+                  }
314
+                  this.list = []
315
+                  console.log("new_arr2323232333333232",new_arr)
316
+                   
317
+                   this.list = new_arr
318
+                    obj.details = []
319
+                    obj.details = this.setNewData(new_arr_two)
320
+
321
+                    obj.total = this.getTotal(obj.details)
322
+                    obj.details.push({
323
+                      total: obj.total,
324
+                      is_total: 1,
325
+                    })
326
+                    for(let i=0;i<obj.details.length;i++){
327
+                       if(obj.details[i].is_total == 1){
328
+                          obj.details[i].index = "合计"
329
+                       }else{
330
+                         obj.details[i].index = i+1
331
+                       }
332
+                    }
333
+                    console.log("obj23323232323232323232",obj.details)
334
+                    this.list = obj.details
335
+              }
336
+                this.chineseTraditionalMedicineCostTotal = response.data.data.chineseTraditionalMedicineCostTotal
337
+                this.checkCostTotal = response.data.data.checkCostTotal
338
+                this.materialCostTotal = response.data.data.materialCostTotal
339
+                this.laboratoryCostTotal = response.data.data.laboratoryCostTotal
340
+                this.bedCostTotal = response.data.data.bedCostTotal
341
+                this.operationCostTotal = response.data.data.operationCostTotal
342
+                this.zhenChaCostTotal = response.data.data.zhenChaCostTotal
343
+                this.otherCostTotal = response.data.data.otherCostTotal
344
+
345
+              
234 346
              }
235 347
           }
236 348
         }

+ 23 - 0
src/xt_pages/stock/drugs/drugStockOutOrder.vue ファイルの表示

@@ -81,6 +81,17 @@
81 81
         <el-button size="small" icon="el-icon-delete" @click="batchDelete">删除</el-button>
82 82
         <el-button size="small" type="primary" @click="toPrint">打印</el-button>
83 83
         <el-button size="small" type="primary" @click="toExport">导出</el-button>
84
+
85
+        <span>&nbsp;&nbsp;</span>
86
+        <label class="title"><span class="name">出库方式</span> :</label>
87
+        <el-select size="small" v-model="way_type" filterable placeholder="请选择仓库" style="width:200px" @change="changeWay">
88
+            <el-option
89
+              v-for="(option, index) in wayList"
90
+              :key="index"
91
+              :label="option.name"
92
+              :value="option.id">
93
+            </el-option>
94
+        </el-select> 
84 95
       </div>
85 96
 
86 97
       <el-table
@@ -509,6 +520,13 @@ export default {
509 520
       storehouse_id:0,
510 521
       is_sys:0,
511 522
       org_id:0,
523
+      way_type:0,
524
+      wayList:[
525
+        { id:0,name:"全部"},
526
+        { id:1,name:"手动出库"},
527
+        { id:2,name:"自动出库"},
528
+        { id:3,name:"调拨出库"}
529
+      ]
512 530
     };
513 531
   },
514 532
   methods: {
@@ -521,6 +539,7 @@ export default {
521 539
         type: this.type,
522 540
         keywords: this.searchKey,
523 541
         storehouse_id:this.storehouse_id,
542
+        way_type:this.way_type,
524 543
       };
525 544
       this.warehouseOutDate = [];
526 545
       getDrugWarehouseOutList(Params).then(response => {
@@ -551,6 +570,7 @@ export default {
551 570
         type: this.type,
552 571
         keywords: this.searchKey,
553 572
         storehouse_id:this.storehouse_id,
573
+        way_type:this.way_type,
554 574
       };
555 575
       this.warehouseOutDate = [];
556 576
       getDrugWarehouseOutList(Params).then(response => {
@@ -1294,6 +1314,9 @@ export default {
1294 1314
     },
1295 1315
     changeStoreHouse(){
1296 1316
       this.GetWarehouseOut()
1317
+    },
1318
+    changeWay(){
1319
+       this.GetWarehouseOut()
1297 1320
     }
1298 1321
   }
1299 1322
 };

+ 7 - 4
src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue ファイルの表示

@@ -719,7 +719,7 @@ export default {
719 719
             this.recordInfo.recordData[i].min_price = val.min_price
720 720
             this.recordInfo.recordData[i].number = val.number
721 721
             this.recordInfo.recordData[i].unit = val.max_unit
722
-            
722
+            this.recordInfo.recordData[i].retail_price = val.retail_price
723 723
             if(val.retail_price == 0){
724 724
               this.recordInfo.recordData[i].price = ""
725 725
             }else{
@@ -758,10 +758,11 @@ export default {
758 758
         this.getDrugBatchNumber(val.drug_id)
759 759
         for(let i=0;i<this.recordInfo.recordData.length;i++){
760 760
           if(this.recordInfo.recordData[i].drug_id == val.drug_id){
761
-             if(this.recordInfo.recordData[i].unit == val.max_unit){
762
-                this.recordInfo.recordData[i].price = this.recordInfo.recordData[i].price
761
+             if(this.recordInfo.recordData[i].max_unit == val.max_unit){
762
+                this.recordInfo.recordData[i].price = 0
763
+                this.recordInfo.recordData[i].price = val.retail_price
763 764
              }
764
-             if(this.recordInfo.recordData[i].min_unit == val.min_unit){
765
+             if(this.recordInfo.recordData[i].max_unit == val.min_unit){
765 766
                this.recordInfo.recordData[i].price = this.recordInfo.recordData[i].min_price
766 767
              }
767 768
           }
@@ -771,6 +772,7 @@ export default {
771 772
             }
772 773
           }
773 774
         }
775
+        console.log('23323223333233232',this.recordInfo.recordData)
774 776
       },
775 777
       changeBatchNumber(val){
776 778
        
@@ -817,6 +819,7 @@ export default {
817 819
     tempObj["warehouse_info_id"] = 0
818 820
     tempObj["count"] = ""
819 821
     tempObj["admin_user_id"] =  this.$store.getters.xt_user.user.user_name
822
+    tempObj["retail_price"] = 0;
820 823
     this.recordInfo.recordData.push(tempObj);
821 824
     this.GetConfigInfo();
822 825
     this.propForm.goodUnit = this.$store.getters.good_unit;

+ 22 - 2
src/xt_pages/stock/stockOutOrder.vue ファイルの表示

@@ -82,6 +82,16 @@
82 82
         <el-button size="small" icon="el-icon-delete" @click="batchDelete">删除</el-button>
83 83
         <el-button size="small" type="primary" @click="toPrint">打印</el-button>
84 84
         <el-button size="small" type="primary" @click="toExport">导出</el-button>
85
+        <span>&nbsp;&nbsp;</span>
86
+        <label class="title"><span class="name">出库方式</span> :</label>
87
+        <el-select size="small" v-model="way_type" filterable placeholder="请选择仓库" style="width:200px" @change="changeWay">
88
+            <el-option
89
+              v-for="(option, index) in wayList"
90
+              :key="index"
91
+              :label="option.name"
92
+              :value="option.id">
93
+            </el-option>
94
+        </el-select> 
85 95
       </div>
86 96
 
87 97
       <el-table
@@ -820,6 +830,13 @@ export default {
820 830
       houselist:[],
821 831
       storehouse_id:0,
822 832
       is_sys:0,
833
+      way_type:0,
834
+      wayList:[
835
+        { id:0,name:"全部"},
836
+        { id:1,name:"手动出库"},
837
+        { id:2,name:"自动出库"},
838
+        { id:3,name:"调拨出库"}
839
+      ]
823 840
     };
824 841
   },
825 842
   methods: {
@@ -832,6 +849,7 @@ export default {
832 849
         type: this.type,
833 850
         keywords: this.searchKey,
834 851
         storehouse_id:this.storehouse_id,
852
+        way_type:this.way_type,
835 853
       };
836 854
       this.warehouseOutDate = [];
837 855
       getWarehouseOutList(Params).then(response => {
@@ -860,6 +878,7 @@ export default {
860 878
         end_time: this.end_time,
861 879
         type: this.type,
862 880
         storehouse_id:this.storehouse_id,
881
+        way_type:this.way_type,
863 882
       };
864 883
       this.warehouseOutDate = [];
865 884
       getWarehouseOutList(Params).then(response => {
@@ -1678,9 +1697,7 @@ export default {
1678 1697
              this.exportList[i].good_type_id = ""
1679 1698
           }
1680 1699
         }
1681
-        console.log("hhhh323223",this.goodType)
1682 1700
        
1683
-      
1684 1701
         const tHeader = ['耗材名称', '耗材类型', '规格&单位','出库数量','出货价','总价','生产厂商','经销商','生产日期','有效期','备注']
1685 1702
         const filterVal = ['good_name', 'good_type_id', 'unit','count','price','total_price','manufacturer','dealer','product_date','expiry_date','remark']
1686 1703
         console.log("table",this.exportList)
@@ -1741,6 +1758,9 @@ export default {
1741 1758
    },
1742 1759
    changeStoreHouse(){
1743 1760
      this.GetWarehouseOut()
1761
+   },
1762
+   changeWay(){
1763
+     this.GetWarehouseOut()
1744 1764
    }
1745 1765
   }
1746 1766
 };