Ver código fonte

透析数据

XMLWAN 4 anos atrás
pai
commit
d6760e8e40

+ 2 - 3
src/xt_pages/data/components/drugs.vue Ver arquivo

372
         // this.$refs.maintain.show();
372
         // this.$refs.maintain.show();
373
       },
373
       },
374
       openForm(id) {
374
       openForm(id) {
375
-
375
+        this.current_id = id
376
         this.getAllManufacturer()
376
         this.getAllManufacturer()
377
         if (id > 0) {
377
         if (id > 0) {
378
-          this.current_id = id
379
           let params = {
378
           let params = {
380
             id: this.current_id
379
             id: this.current_id
381
           }
380
           }
462
           }
461
           }
463
           this.$refs.addDrugs.show(0, this.formValue)
462
           this.$refs.addDrugs.show(0, this.formValue)
464
         }
463
         }
465
-      }, 
464
+      },
466
 
465
 
467
        deleteDurg(id,index){
466
        deleteDurg(id,index){
468
          console.log("id",id)
467
          console.log("id",id)

+ 5 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Ver arquivo

73
                      @click="open(4)"
73
                      @click="open(4)"
74
                      type="primary">收费
74
                      type="primary">收费
75
           </el-button>
75
           </el-button>
76
+
76
           <el-button size="small" @click="open(5)" type="primary"
77
           <el-button size="small" @click="open(5)" type="primary"
77
-                    >退费
78
+               v-if="this.hisPatientInfo.id > 0 && this.order.id > 0 &&  this.order.order_status == 2" >退费
78
           </el-button>
79
           </el-button>
80
+          <!-- <el-button size="small" @click="open(5)" type="primary"
81
+                    >退费
82
+          </el-button> -->
79
 
83
 
80
 
84
 
81
           <!--<el-button v-if="this.info.prescription_status >= 2" size="small" @click="open(7)" type="primary"-->
85
           <!--<el-button v-if="this.info.prescription_status >= 2" size="small" @click="open(7)" type="primary"-->

+ 4 - 2
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue Ver arquivo

429
               this.recordInfo.recordData[this.currentIndex].drug_id = val.selectedGoodInfo[i].id
429
               this.recordInfo.recordData[this.currentIndex].drug_id = val.selectedGoodInfo[i].id
430
               this.recordInfo.recordData[this.currentIndex].price = val.selectedGoodInfo[i].last_price.toString()
430
               this.recordInfo.recordData[this.currentIndex].price = val.selectedGoodInfo[i].last_price.toString()
431
               this.recordInfo.recordData[this.currentIndex].retail_price = val.selectedGoodInfo[i].retail_price.toString()
431
               this.recordInfo.recordData[this.currentIndex].retail_price = val.selectedGoodInfo[i].retail_price.toString()
432
-              // this.recordInfo.recordData[this.currentIndex].min_unit = val.selectedGoodInfo[i].min_unit
432
+              this.recordInfo.recordData[this.currentIndex].min_unit = val.selectedGoodInfo[i].min_unit
433
             } else {
433
             } else {
434
               const tempForm = {}
434
               const tempForm = {}
435
               tempForm["id"] = 0;
435
               tempForm["id"] = 0;
487
           loading.close()
487
           loading.close()
488
 
488
 
489
         })
489
         })
490
-      }, typeName: function(drug_id) {
490
+      },
491
+       typeName: function(drug_id) {
492
+         console.log("3333333过年",this.goodInfo)
491
         let name = "";
493
         let name = "";
492
         for (let i = 0; i < this.goodInfo.length; i++) {
494
         for (let i = 0; i < this.goodInfo.length; i++) {
493
           if (this.goodInfo[i].id == drug_id) {
495
           if (this.goodInfo[i].id == drug_id) {

+ 4 - 1
src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue Ver arquivo

417
       });
417
       });
418
     },
418
     },
419
     typeName: function(drug_id) {
419
     typeName: function(drug_id) {
420
+    
420
       let name = "";
421
       let name = "";
421
       for (let i = 0; i < this.goodInfo.length; i++) {
422
       for (let i = 0; i < this.goodInfo.length; i++) {
422
         if (this.goodInfo[i].id == drug_id) {
423
         if (this.goodInfo[i].id == drug_id) {
425
         }
426
         }
426
       }
427
       }
427
       return name;
428
       return name;
428
-    }, specificationName: function(drug_id) {
429
+    },
430
+     specificationName: function(drug_id) {
429
       let name = "";
431
       let name = "";
430
       for (let i = 0; i < this.goodInfo.length; i++) {
432
       for (let i = 0; i < this.goodInfo.length; i++) {
431
         if (this.goodInfo[i].id == drug_id) {
433
         if (this.goodInfo[i].id == drug_id) {
469
       }
471
       }
470
     },
472
     },
471
     showDialog(index, row) {
473
     showDialog(index, row) {
474
+      
472
       const loading = this.$loading({
475
       const loading = this.$loading({
473
         lock: true,
476
         lock: true,
474
         text: 'Loading',
477
         text: 'Loading',

+ 4 - 1
src/xt_pages/stock/drugs/drugsStockDialog/index.vue Ver arquivo

151
 
151
 
152
       },
152
       },
153
       comfirm: function(formName) {
153
       comfirm: function(formName) {
154
+       
154
         this.goodInfoTableData = []
155
         this.goodInfoTableData = []
155
         this.$emit('dialog-comfirm', this.getValue())
156
         this.$emit('dialog-comfirm', this.getValue())
156
         this.$refs.multipleTable.clearSelection()
157
         this.$refs.multipleTable.clearSelection()
158
       },
159
       },
159
       getValue: function() {
160
       getValue: function() {
160
         this.multipleSelection = []
161
         this.multipleSelection = []
162
+        console.log("库存22222",this.propForm.goods)
161
         for (let i = 0; i < this.propForm.goods.length; i++) {
163
         for (let i = 0; i < this.propForm.goods.length; i++) {
162
           for (let a = 0; a < this.propForm.goods[i].drug_specs.length; a++) {
164
           for (let a = 0; a < this.propForm.goods[i].drug_specs.length; a++) {
163
                 if (this.propForm.goods[i].drug_specs[a].isSelected) {
165
                 if (this.propForm.goods[i].drug_specs[a].isSelected) {
170
         }
172
         }
171
         console.log(obj)
173
         console.log(obj)
172
         return obj
174
         return obj
173
-      }, goodTypeSelect: function(id) {
175
+      },
176
+       goodTypeSelect: function(id) {
174
         this.tempGoodInfo = []
177
         this.tempGoodInfo = []
175
         this.goodInfo = []
178
         this.goodInfo = []
176
         for (let i = 0; i < this.propForm.goodInfo.length; i++) {
179
         for (let i = 0; i < this.propForm.goodInfo.length; i++) {