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