Bläddra i källkod

Merge branch '20200710_pc_vue_new_branch' into 20200916_pc_vue_new_branch

csx 4 år sedan
förälder
incheckning
18951e4038

+ 55 - 9
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Visa fil

174
 
174
 
175
 
175
 
176
 <script>
176
 <script>
177
+  import { getPatientInfo, getSchedulePatientList, getInitData } from '@/api/his/his'
178
+  import { getDictionaryDataConfig} from "@/utils/data";
177
   import prescriptionTable from './prescriptionTable'
179
   import prescriptionTable from './prescriptionTable'
178
   import selectTemplate from './selectTemplate'
180
   import selectTemplate from './selectTemplate'
179
   import saveTemplate from './saveTemplate'
181
   import saveTemplate from './saveTemplate'
180
   import additionalCharges from './additionalCharges'
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
   export default {
186
   export default {
185
     props: {
187
     props: {
220
         doctorValue: '',
222
         doctorValue: '',
221
         departmentOptions: [],
223
         departmentOptions: [],
222
         departmentValue: '',
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
     methods: {
235
     methods: {
320
         console.log(this.prescriptions)
329
         console.log(this.prescriptions)
321
       },
330
       },
322
       clickTab(index) {
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
         this.rightTab = index
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
 
363
 
349
 
364
 
350
         // console.log(this.prescriptions)
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
     },created(){
396
     },created(){
353
       this.getInitData()
397
       this.getInitData()
398
+      //获取所有项目
399
+      this.getlist()
354
     }
400
     }
355
   }
401
   }
356
 </script>
402
 </script>