Ver código fonte

提交代码

陈少旭 1 ano atrás
pai
commit
2768936978

+ 1 - 1
src/xt_pages/outpatientCharges/chargeDetailManagement.vue Ver arquivo

686
           this.$message.error("请选择需要记账的患者")
686
           this.$message.error("请选择需要记账的患者")
687
           return
687
           return
688
         }
688
         }
689
-        var that = this
689
+
690
         let obj = {
690
         let obj = {
691
           patient_id: this.hisPatientInfo.id,
691
           patient_id: this.hisPatientInfo.id,
692
           diagnosis_time: this.record_date,
692
           diagnosis_time: this.record_date,

+ 1 - 5
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Ver arquivo

3786
             console.log("-=======")
3786
             console.log("-=======")
3787
             for (let i = 0; i < this.zuobiao_project.length; i++) {
3787
             for (let i = 0; i < this.zuobiao_project.length; i++) {
3788
               for (let b = 0; b < this.tabProject.length; b++) {
3788
               for (let b = 0; b < this.tabProject.length; b++) {
3789
-                if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01){
3789
+                if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01 &&  this.zuobiao_project[i].bby06 == this.tabProject[b].specification_name){
3790
                   console.log( this.zuobiao_project[i].lsqty)
3790
                   console.log( this.zuobiao_project[i].lsqty)
3791
                   console.log( this.tabProject[b].zuobiao_stock_num)
3791
                   console.log( this.tabProject[b].zuobiao_stock_num)
3792
                   this.tabProject[b].zuobiao_stock_num = this.zuobiao_project[i].lsqty
3792
                   this.tabProject[b].zuobiao_stock_num = this.zuobiao_project[i].lsqty
3793
                   this.tabProject[b].price = this.zuobiao_project[i].price
3793
                   this.tabProject[b].price = this.zuobiao_project[i].price
3794
-
3795
                 }
3794
                 }
3796
               }
3795
               }
3797
             }
3796
             }
3798
           }
3797
           }
3799
-
3800
           this.allProject = this.tabProject
3798
           this.allProject = this.tabProject
3801
-
3802
-
3803
           // console.log('cccc',this.allProject);
3799
           // console.log('cccc',this.allProject);
3804
         }
3800
         }
3805
       })
3801
       })

+ 19 - 11
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Ver arquivo

1634
 
1634
 
1635
       }
1635
       }
1636
       this.isloading = true
1636
       this.isloading = true
1637
-      console.log('param32323232323323223233232332', params)
1638
       getPatientInfo(params).then(response => {
1637
       getPatientInfo(params).then(response => {
1639
         if (response.data.state == 0) {
1638
         if (response.data.state == 0) {
1640
           this.$message.error(response.data.msg)
1639
           this.$message.error(response.data.msg)
1855
                   preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
1854
                   preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
1856
                 }
1855
                 }
1857
               }
1856
               }
1858
-              console.log('is_medicine')
1859
-              console.log(is_medicine)
1857
+
1860
 
1858
 
1861
               let index = i + 1
1859
               let index = i + 1
1862
               let obj = {
1860
               let obj = {
2027
                   obj.med_type = ''
2025
                   obj.med_type = ''
2028
 
2026
 
2029
                 } else {
2027
                 } else {
2030
-
2031
                   obj.med_type = parseInt(prescription.med_type)
2028
                   obj.med_type = parseInt(prescription.med_type)
2032
                 }
2029
                 }
2030
+
2031
+
2033
                 if (obj.med_type == 0 || obj.med_type == '') {
2032
                 if (obj.med_type == 0 || obj.med_type == '') {
2034
-                  if (this.org_id != 10206) {
2033
+                  if (this.org_id != 10206 && this.org_id != 0) {
2035
                     obj.med_type = 14
2034
                     obj.med_type = 14
2036
                   } else {
2035
                   } else {
2037
                     obj.med_type = 1
2036
                     obj.med_type = 1
2055
               }
2054
               }
2056
               if (this.org_id != 10206) {
2055
               if (this.org_id != 10206) {
2057
                 obj.med_type = 14
2056
                 obj.med_type = 14
2057
+              }else{
2058
+
2059
+                obj.med_type = 1
2060
+
2058
               }
2061
               }
2059
               this.prescriptions.push(obj)
2062
               this.prescriptions.push(obj)
2060
 
2063
 
4215
                         med_type: ''
4218
                         med_type: ''
4216
 
4219
 
4217
                       }
4220
                       }
4218
-                      if (this.org_id != 10206) {
4221
+                      if (this.org_id != 10206 && this.org_id != 0) {
4219
                         if (prescription.med_type == 0 || prescription.med_type == '') {
4222
                         if (prescription.med_type == 0 || prescription.med_type == '') {
4220
 
4223
 
4221
                           obj.med_type = ''
4224
                           obj.med_type = ''
4230
 
4233
 
4231
                         }
4234
                         }
4232
                       }else{
4235
                       }else{
4233
-
4234
-                        obj.med_type = prescription.med_type
4235
-
4236
+                        obj.med_type = parseInt(prescription.med_type)
4237
+                        if (obj.med_type == 0 || obj.med_type == '') {
4238
+                          obj.med_type = 1
4239
+                        }
4236
                       }
4240
                       }
4237
                       this.prescriptions.push(obj)
4241
                       this.prescriptions.push(obj)
4238
                     }
4242
                     }
4252
                     if (this.org_id != 10206) {
4256
                     if (this.org_id != 10206) {
4253
                       obj.med_type = 14
4257
                       obj.med_type = 14
4254
                     }else{
4258
                     }else{
4255
-                      obj.med_type = "1"
4259
+                      obj.med_type = 1
4256
                     }
4260
                     }
4257
 
4261
 
4258
                     this.prescriptions.push(obj)
4262
                     this.prescriptions.push(obj)
4921
                       med_type: ''
4925
                       med_type: ''
4922
 
4926
 
4923
                     }
4927
                     }
4924
-                    if (this.org_id != 10206) {
4928
+                    if (this.org_id != 10206 && this.org_id != 0) {
4925
 
4929
 
4926
                       obj.med_type = 14
4930
                       obj.med_type = 14
4931
+                    }else{
4932
+
4933
+                      obj.med_type = 1
4934
+
4927
                     }
4935
                     }
4928
 
4936
 
4929
                     this.prescriptions.push(obj)
4937
                     this.prescriptions.push(obj)

+ 1 - 1
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue Ver arquivo

2036
               console.log("-=======")
2036
               console.log("-=======")
2037
               for (let i = 0; i < this.zuobiao_project.length; i++) {
2037
               for (let i = 0; i < this.zuobiao_project.length; i++) {
2038
                 for (let b = 0; b < this.tabProject.length; b++) {
2038
                 for (let b = 0; b < this.tabProject.length; b++) {
2039
-                  if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01){
2039
+                  if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01 && this.zuobiao_project[i].bby06 == this.tabProject[b].specification_name){
2040
                     this.tabProject[b]["zuobiao_stock_num"] = this.zuobiao_project[i].lsqty
2040
                     this.tabProject[b]["zuobiao_stock_num"] = this.zuobiao_project[i].lsqty
2041
                     this.tabProject[b].price = this.zuobiao_project[i].price
2041
                     this.tabProject[b].price = this.zuobiao_project[i].price
2042
 
2042