Pārlūkot izejas kodu

HIS 系统提交

XMLWAN 4 gadus atpakaļ
vecāks
revīzija
28bd1dd674

+ 7 - 7
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Parādīt failu

204
 
204
 
205
 
205
 
206
 <script>
206
 <script>
207
-  import { getPatientInfo, getSchedulePatientList, getInitData } from '@/api/his/his'
207
+  import { getPatientInfo, getSchedulePatientList, getInitData,createHisPrescription } from '@/api/his/his'
208
   import { getDictionaryDataConfig} from "@/utils/data";
208
   import { getDictionaryDataConfig} from "@/utils/data";
209
   import prescriptionTable from './prescriptionTable'
209
   import prescriptionTable from './prescriptionTable'
210
   import selectTemplate from './selectTemplate'
210
   import selectTemplate from './selectTemplate'
211
   import saveTemplate from './saveTemplate'
211
   import saveTemplate from './saveTemplate'
212
   import additionalCharges from './additionalCharges'
212
   import additionalCharges from './additionalCharges'
213
   import { getHisProject,addProjectTeam,getAllProjectTeam,getPojectListById } from '@/api/project/project'
213
   import { getHisProject,addProjectTeam,getAllProjectTeam,getPojectListById } from '@/api/project/project'
214
-  // import { getPatientInfo, getSchedulePatientList } from '@/api/his/his'
214
+  // import { getPatientInfo, getSchedulePatientList,createHisPrescription } from '@/api/his/his'
215
 
215
 
216
   export default {
216
   export default {
217
     props: {
217
     props: {
377
           }
377
           }
378
 
378
 
379
           for (let i = 0; i < this.prescriptions.length; i++){
379
           for (let i = 0; i < this.prescriptions.length; i++){
380
-            if(this.prescriptions[i].advices.length > 0 && this.prescriptions[i].projects.length == 0){
380
+            if(this.prescriptions[i].advices.length > 0 && this.prescriptions[i].project.length == 0){
381
               this.prescriptions[i]['type'] = 1
381
               this.prescriptions[i]['type'] = 1
382
             }
382
             }
383
-            if(this.prescriptions[i].advices.length == 0 && this.prescriptions[i].projects.length > 0){
383
+            if(this.prescriptions[i].advices.length == 0 && this.prescriptions[i].project.length > 0){
384
               this.prescriptions[i]['type'] = 2
384
               this.prescriptions[i]['type'] = 2
385
             }
385
             }
386
             for (let b = 0; b < this.prescriptions[i].advices.length; b++){
386
             for (let b = 0; b < this.prescriptions[i].advices.length; b++){
393
           let data={
393
           let data={
394
             "prescriptions":this.prescriptions
394
             "prescriptions":this.prescriptions
395
           }
395
           }
396
-
396
+           console.log("data",data)
397
+           console.log("params",params)
397
           createHisPrescription(data,params).then(response=>{
398
           createHisPrescription(data,params).then(response=>{
398
             if(response.data.state == 1){
399
             if(response.data.state == 1){
399
               this.prescriptions = []
400
               this.prescriptions = []
400
-              this.
401
-
401
+              this.$message.success("保存成功")
402
             }
402
             }
403
           })
403
           })
404
           localStorage.setItem('drugs', JSON.stringify(this.preDrugs))
404
           localStorage.setItem('drugs', JSON.stringify(this.preDrugs))