|
@@ -174,12 +174,14 @@
|
174
|
174
|
|
175
|
175
|
|
176
|
176
|
<script>
|
|
177
|
+ import { getPatientInfo, getSchedulePatientList, getInitData } from '@/api/his/his'
|
|
178
|
+ import { getDictionaryDataConfig} from "@/utils/data";
|
177
|
179
|
import prescriptionTable from './prescriptionTable'
|
178
|
180
|
import selectTemplate from './selectTemplate'
|
179
|
181
|
import saveTemplate from './saveTemplate'
|
180
|
182
|
import additionalCharges from './additionalCharges'
|
181
|
|
- import { getPatientInfo, getSchedulePatientList, getInitData } from '@/api/his/his'
|
182
|
|
- import { getDictionaryDataConfig} from "@/utils/data";
|
|
183
|
+ import { getHisProject,addProjectTeam } from '@/api/project/project'
|
|
184
|
+ // import { getPatientInfo, getSchedulePatientList } from '@/api/his/his'
|
183
|
185
|
|
184
|
186
|
export default {
|
185
|
187
|
props: {
|
|
@@ -220,7 +222,14 @@
|
220
|
222
|
doctorValue: '',
|
221
|
223
|
departmentOptions: [],
|
222
|
224
|
departmentValue: '',
|
223
|
|
- total: 0
|
|
225
|
+ total: 0,
|
|
226
|
+ showOne:true,
|
|
227
|
+ showTwo:false,
|
|
228
|
+ state1:"",
|
|
229
|
+ value:"",
|
|
230
|
+ options:[],
|
|
231
|
+ tabProject:[],
|
|
232
|
+ strids:""
|
224
|
233
|
}
|
225
|
234
|
},
|
226
|
235
|
methods: {
|
|
@@ -320,12 +329,18 @@
|
320
|
329
|
console.log(this.prescriptions)
|
321
|
330
|
},
|
322
|
331
|
clickTab(index) {
|
323
|
|
- console.log(index)
|
|
332
|
+ if(index == 1){
|
|
333
|
+ this.showOne = true
|
|
334
|
+ this.showTwo = false
|
|
335
|
+ this.$nextTick(() => {
|
|
336
|
+ this.$refs.prescription_tables.setNewData(this.prescriptions[this.prescriptions.length-1])
|
|
337
|
+ });
|
|
338
|
+ }
|
|
339
|
+ if(index == 2){
|
|
340
|
+ this.showTwo = true
|
|
341
|
+ this.showOne = false
|
|
342
|
+ }
|
324
|
343
|
this.rightTab = index
|
325
|
|
- // this.curPrescriptions = this.prescriptions[index]
|
326
|
|
- this.$nextTick(() => {
|
327
|
|
- this.$refs.prescription_tables.setNewData(this.prescriptions[this.prescriptions.length-1])
|
328
|
|
- });
|
329
|
344
|
|
330
|
345
|
|
331
|
346
|
},
|
|
@@ -348,9 +363,40 @@
|
348
|
363
|
|
349
|
364
|
|
350
|
365
|
// console.log(this.prescriptions)
|
351
|
|
- }
|
|
366
|
+ },
|
|
367
|
+ selectChange(row){
|
|
368
|
+ console.log("row222",row)
|
|
369
|
+ var ids = []
|
|
370
|
+ for(let i=0;i<row.length;i++){
|
|
371
|
+ ids.push(row[i].id)
|
|
372
|
+ }
|
|
373
|
+ console.log("ids",ids)
|
|
374
|
+ var strids = ids.join(",")
|
|
375
|
+ this.strids = strids
|
|
376
|
+ },
|
|
377
|
+ addProjectTeam(){
|
|
378
|
+ var params = {
|
|
379
|
+ strids:this.strids
|
|
380
|
+ }
|
|
381
|
+ addProjectTeam(params).then(response=>{
|
|
382
|
+ if(response.data.state == 1){
|
|
383
|
+ var team = response.data.data.team
|
|
384
|
+ console.log("team",team)
|
|
385
|
+ }
|
|
386
|
+ })
|
|
387
|
+ }, getlist(){
|
|
388
|
+ getHisProject().then(response=>{
|
|
389
|
+ if(response.data.state == 1){
|
|
390
|
+ var project = response.data.data.project
|
|
391
|
+ console.log("project",project)
|
|
392
|
+ this.tabProject = project
|
|
393
|
+ }
|
|
394
|
+ })
|
|
395
|
+ },
|
352
|
396
|
},created(){
|
353
|
397
|
this.getInitData()
|
|
398
|
+ //获取所有项目
|
|
399
|
+ this.getlist()
|
354
|
400
|
}
|
355
|
401
|
}
|
356
|
402
|
</script>
|