Browse Source

自备药

XMLWAN 4 years ago
parent
commit
991f2699e5
1 changed files with 9 additions and 2 deletions
  1. 9 2
      src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue

+ 9 - 2
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue View File

833
         }
833
         }
834
 
834
 
835
       },
835
       },
836
-
836
+  //  上一方
837
       AddNewAdvice(name) {
837
       AddNewAdvice(name) {
838
+        for(let i=0;i<this.other_doctor_advices.length;i++){
839
+           this.other_doctor_advices[i].single_dose = this.other_doctor_advices[i].single_dose.toString()
840
+           this.other_doctor_advices[i].prescribing_number = this.other_doctor_advices[i].prescribing_number.toString()
841
+        }
838
         this.$refs[name].validate(valid => {
842
         this.$refs[name].validate(valid => {
839
           if (valid) {
843
           if (valid) {
840
             var submitForm = {
844
             var submitForm = {
844
               adviceNames: this.other_doctor_advices,
848
               adviceNames: this.other_doctor_advices,
845
               remark: ''
849
               remark: ''
846
             }
850
             }
847
-
851
+            console.log("2223333",submitForm)
852
+           
848
             let mode = '1'
853
             let mode = '1'
849
             CreateGroupAdvice(this.patientid, 0, submitForm, mode).then(
854
             CreateGroupAdvice(this.patientid, 0, submitForm, mode).then(
850
               response => {
855
               response => {
2205
           if (response.data.state == 1) {
2210
           if (response.data.state == 1) {
2206
 
2211
 
2207
             var doctor_advices = response.data.data.advices
2212
             var doctor_advices = response.data.data.advices
2213
+            console.log("doctor_advices",doctor_advices)
2214
+           
2208
             this.other_doctor_advices = doctor_advices
2215
             this.other_doctor_advices = doctor_advices
2209
             this.request_record_date = uParseTime(this.other_doctor_advices[0].record_date, '{y}-{m}-{d}')
2216
             this.request_record_date = uParseTime(this.other_doctor_advices[0].record_date, '{y}-{m}-{d}')
2210
             this.sch = response.data.data.schedule
2217
             this.sch = response.data.data.schedule