Browse Source

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

csx 3 years ago
parent
commit
7fae9f14fa

+ 6 - 6
src/xt_pages/data/components/consumables.vue View File

333
               min_unit:"",
333
               min_unit:"",
334
               total:"",
334
               total:"",
335
               register_number:"",
335
               register_number:"",
336
+              is_user:"2",
336
             },
337
             },
337
             isVisibility: false,
338
             isVisibility: false,
338
           }
339
           }
731
             this.goodInfo.goodInfoDialog.formValue.default_count_unit = response.data.data.goodInfo.default_count_unit
732
             this.goodInfo.goodInfoDialog.formValue.default_count_unit = response.data.data.goodInfo.default_count_unit
732
             this.goodInfo.goodInfoDialog.formValue.register_number = response.data.data.goodInfo.register_number
733
             this.goodInfo.goodInfoDialog.formValue.register_number = response.data.data.goodInfo.register_number
733
 
734
 
734
-            if (response.data.data.goodInfo.is_user <= 0) {
735
-              this.goodInfo.goodInfoDialog.formValue.is_user = ''
736
-            } else {
737
-              this.goodInfo.goodInfoDialog.formValue.is_user = response.data.data.goodInfo.is_user.toString()
738
-            }
735
+           
736
+            this.goodInfo.goodInfoDialog.formValue.is_user = response.data.data.goodInfo.is_user.toString()
737
+            
739
             this.$refs.addConsumable.show(row.id, this.goodInfo.goodInfoDialog.formValue)
738
             this.$refs.addConsumable.show(row.id, this.goodInfo.goodInfoDialog.formValue)
740
 
739
 
741
           }
740
           }
1063
         this.goodInfo.goodInfoDialog.formValue.agent = '';
1062
         this.goodInfo.goodInfoDialog.formValue.agent = '';
1064
         this.goodInfo.goodInfoDialog.formValue.good_number = '';
1063
         this.goodInfo.goodInfoDialog.formValue.good_number = '';
1065
         this.goodInfo.goodInfoDialog.formValue.register_number = '';
1064
         this.goodInfo.goodInfoDialog.formValue.register_number = '';
1066
-        this.goodInfo.goodInfoDialog.formValue.is_user = "2"
1065
+       
1067
 
1066
 
1068
 
1067
 
1069
         this.$refs.addConsumable.show(0)
1068
         this.$refs.addConsumable.show(0)
1583
        },
1582
        },
1584
     },
1583
     },
1585
     created() {
1584
     created() {
1585
+      this.goodInfo.goodInfoDialog.formValue.is_user = "2"
1586
       this.getAllGoodType();
1586
       this.getAllGoodType();
1587
       this.getAllDealer();
1587
       this.getAllDealer();
1588
       this.getAllManufacturer();
1588
       this.getAllManufacturer();

+ 2 - 2
src/xt_pages/stock/Dialog/goodInfoDailog.vue View File

452
       },
452
       },
453
       show(id,form) {
453
       show(id,form) {
454
          console.log("form",this.form)
454
          console.log("form",this.form)
455
-        this.form.is_user = "2"
455
+        
456
         if(form!=undefined){
456
         if(form!=undefined){
457
           this.unitList = []
457
           this.unitList = []
458
           var arr =  getDataConfig('hemodialysis','units')
458
           var arr =  getDataConfig('hemodialysis','units')
516
               default_count_unit:"",
516
               default_count_unit:"",
517
               min_unit:"",
517
               min_unit:"",
518
               total:"",
518
               total:"",
519
-              is_user:"2",
519
+              is_user:"",
520
             }
520
             }
521
           this.good_status = []
521
           this.good_status = []
522
           for (let key in tempform) {
522
           for (let key in tempform) {

+ 9 - 11
src/xt_pages/stock/config/goodInfo.vue View File

214
               packing_unit:"",
214
               packing_unit:"",
215
               packing_price:'',
215
               packing_price:'',
216
               default_count_unit:"",
216
               default_count_unit:"",
217
-              is_user:"2",
217
+             
218
             },
218
             },
219
 
219
 
220
             isVisibility: false
220
             isVisibility: false
310
             }
310
             }
311
 
311
 
312
           
312
           
313
-            if(this.goodInfo.goodInfoDialog.formValue.is_user <= 0){
314
-                this.goodInfo.goodInfoDialog.formValue.is_user = ''
315
-              } else{
316
-                this.goodInfo.goodInfoDialog.formValue.is_user = this.goodInfo.goodInfoDialog.is_user.toString()
317
-              }
313
+            // if(this.goodInfo.goodInfoDialog.formValue.is_user <= 0){
314
+            //     this.goodInfo.goodInfoDialog.formValue.is_user = ''
315
+            //   } else{
316
+            //     this.goodInfo.goodInfoDialog.formValue.is_user = this.goodInfo.goodInfoDialog.is_user.toString()
317
+            //   }
318
 
318
 
319
 
319
 
320
             if (response.data.data.goodInfo.medical_insurance_level <= 0) {
320
             if (response.data.data.goodInfo.medical_insurance_level <= 0) {
579
             }
579
             }
580
           })
580
           })
581
         } else if (val.isCreated == 1) {
581
         } else if (val.isCreated == 1) {
582
-          console.log("val23232323232323",val)
583
-          if(val.is_user == 0){
584
-            val.is_user = 2
585
-          }
582
+         
583
+          
586
           //新增
584
           //新增
587
           createGoodInfo(val).then(response => {
585
           createGoodInfo(val).then(response => {
588
             if (response.data.state == 0) {
586
             if (response.data.state == 0) {
638
         this.goodInfo.goodInfoDialog.formValue.dealer = ''
636
         this.goodInfo.goodInfoDialog.formValue.dealer = ''
639
         this.goodInfo.goodInfoDialog.formValue.expiry_date_warn_day_count = ''
637
         this.goodInfo.goodInfoDialog.formValue.expiry_date_warn_day_count = ''
640
         this.goodInfo.goodInfoDialog.formValue.stock_warn_count = ''
638
         this.goodInfo.goodInfoDialog.formValue.stock_warn_count = ''
641
-        this.goodInfo.goodInfoDialog.formValue.is_user = "2"
639
+       // this.goodInfo.goodInfoDialog.formValue.is_user = "2"
642
 
640
 
643
       
641
       
644
       },
642
       },