XMLWAN 4 years ago
parent
commit
35c3d9deff

+ 1 - 5
src/api/drug/drug_stock.js View File

1
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
 
2
 
3
 export function postDrugWarehouse(params, warehousing_time, manufacturer_id, dealer_id, type) {
3
 export function postDrugWarehouse(params, warehousing_time, manufacturer_id, dealer_id, type) {
4
-  console.log("params----",params)
5
-  console.log("warehousintg",warehousing_time)
6
-  console.log("manufactureer_id",manufacturer_id)
7
-  console.log("dealer_id",dealer_id)
8
-  console.log("type",type)
4
+
9
   return request({
5
   return request({
10
     url: '/api/drugwarehouse/create?warehousing_time=' + warehousing_time + '&manufacturer_id=' + manufacturer_id + '&dealer_id=' + dealer_id + '&type=' + type,
6
     url: '/api/drugwarehouse/create?warehousing_time=' + warehousing_time + '&manufacturer_id=' + manufacturer_id + '&dealer_id=' + dealer_id + '&type=' + type,
11
     method: 'post',
7
     method: 'post',

+ 7 - 6
src/xt_pages/data/components/addDrugs.vue View File

208
                 </el-option>
208
                 </el-option>
209
               </el-select>
209
               </el-select>
210
             </el-form-item>
210
             </el-form-item>
211
-            <el-form-item label="代理商 : " prop="agent">
211
+            <!-- <el-form-item label="代理商 : " prop="agent">
212
               <el-input v-model="form.agent" style="width:160px;" placeholder="" maxlength="30"></el-input>
212
               <el-input v-model="form.agent" style="width:160px;" placeholder="" maxlength="30"></el-input>
213
-            </el-form-item>
213
+            </el-form-item> -->
214
 
214
 
215
-          <!-- <el-form-item label="经销商 : " prop="manufacturer" style="width:100%">
215
+          <el-form-item label="经销商 : " prop="dealer" style="width:100%">
216
              
216
              
217
                <el-select v-model="form.dealer" style="width:100%;" filterable placeholder="请选择">
217
                <el-select v-model="form.dealer" style="width:100%;" filterable placeholder="请选择">
218
                   <el-option
218
                   <el-option
222
                     :value="item.id">
222
                     :value="item.id">
223
                   </el-option>
223
                   </el-option>
224
               </el-select>
224
               </el-select>
225
-           </el-form-item> -->
225
+           </el-form-item>
226
 
226
 
227
             <el-form-item label=""  style="display:none;">
227
             <el-form-item label=""  style="display:none;">
228
               <el-input style="width:160px;" placeholder="" maxlength="30"></el-input>
228
               <el-input style="width:160px;" placeholder="" maxlength="30"></el-input>
446
           last_price: [{ required: true, message: '请填写上次进价',trigger: 'blur'  }],
446
           last_price: [{ required: true, message: '请填写上次进价',trigger: 'blur'  }],
447
           drug_classify: [{ required: true, message: '请选择药物分类',trigger: 'change'  }],
447
           drug_classify: [{ required: true, message: '请选择药物分类',trigger: 'change'  }],
448
           drug_dose: [{ required: true, message: '请填写剂量',trigger: 'blur'  }],
448
           drug_dose: [{ required: true, message: '请填写剂量',trigger: 'blur'  }],
449
-          manufacturer: [{ required: true, message: '请选择生产产商',trigger: 'change'  }]
449
+          manufacturer: [{ required: true, message: '请选择生产产商',trigger: 'change'  }],
450
+          dealer:[{required:true,message:'请选择经销商',trigger:'change'}]
450
         },
451
         },
451
         page:1,
452
         page:1,
452
         limit:500,
453
         limit:500,
598
         form['is_charge_use'] = this.form.is_charge_use
599
         form['is_charge_use'] = this.form.is_charge_use
599
         form['drug_code'] = this.form.drug_code
600
         form['drug_code'] = this.form.drug_code
600
         form['drug_classify'] = this.form.drug_classify
601
         form['drug_classify'] = this.form.drug_classify
601
-
602
+        form['dealer'] = this.form.dealer
602
 
603
 
603
 
604
 
604
         return form
605
         return form

+ 2 - 0
src/xt_pages/data/components/drugs.vue View File

332
           })
332
           })
333
         } else if (val.id == 0) {
333
         } else if (val.id == 0) {
334
           //新增
334
           //新增
335
+          console.log("vale222222",val)
336
+         
335
           createBaseDrugLib(val).then(response => {
337
           createBaseDrugLib(val).then(response => {
336
             if (response.data.state == 0) {
338
             if (response.data.state == 0) {
337
               this.$message.error(response.data.msg)
339
               this.$message.error(response.data.msg)

+ 2 - 1
src/xt_pages/home/index.vue View File

201
       }
201
       }
202
     },
202
     },
203
     jump(id) {
203
     jump(id) {
204
-      this.$router.push({ path: "patients/inspection?id=" + id });
204
+      // this.$router.push({ path: "patients/inspection?id=" + id });
205
+      this.$router.push({path:"/patients/patients/"+id+"/inspectionInfectious"})
205
     },
206
     },
206
     handleSizeChange(val) {},
207
     handleSizeChange(val) {},
207
     handleCurrentChange(val) {
208
     handleCurrentChange(val) {

+ 2 - 1
src/xt_pages/stock/drugs/drugStockInOrder.vue View File

337
     //  this.start_time = agoDay
337
     //  this.start_time = agoDay
338
     //  console.log("333333332222",this.start_time)
338
     //  console.log("333333332222",this.start_time)
339
     this.GetWarehouse();
339
     this.GetWarehouse();
340
-    this.GetConfigInfo();
340
+    // this.GetConfigInfo();
341
     this.fetchAllAdminUsers();
341
     this.fetchAllAdminUsers();
342
   },
342
   },
343
   data() {
343
   data() {
485
         console.log(response);
485
         console.log(response);
486
         if (response.data.state == 1) {
486
         if (response.data.state == 1) {
487
           this.adminUserOptions = response.data.data.users;
487
           this.adminUserOptions = response.data.data.users;
488
+          console.log("制单人2222222",this.adminUserOptions)
488
           var alen = this.adminUserOptions.length;
489
           var alen = this.adminUserOptions.length;
489
           for (let index = 0; index < alen; index++) {
490
           for (let index = 0; index < alen; index++) {
490
             if (this.adminUserOptions[index].user_type == 2) {
491
             if (this.adminUserOptions[index].user_type == 2) {

+ 5 - 2
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue View File

567
           manufacturer_id: this.form.manufacturer,
567
           manufacturer_id: this.form.manufacturer,
568
           dealer_id: this.form.dealer
568
           dealer_id: this.form.dealer
569
         }
569
         }
570
+        console.log("2222",this.form.dealer)
570
         GetAllDrugInfoByID(params).then(response => {
571
         GetAllDrugInfoByID(params).then(response => {
571
           
572
           
572
             if (response.data.state == 0) {
573
             if (response.data.state == 0) {
581
                 this.$message.error('该厂商或经销商没有药品信息')
582
                 this.$message.error('该厂商或经销商没有药品信息')
582
                 return
583
                 return
583
               }
584
               }
584
-              this.$refs.dialog.show()
585
               for (let i = 0; i < response.data.data.drugs.length; i++) {
585
               for (let i = 0; i < response.data.data.drugs.length; i++) {
586
                 this.propForm.goods.push(
586
                 this.propForm.goods.push(
587
                   response.data.data.drugs[i]
587
                   response.data.data.drugs[i]
588
                 );
588
                 );
589
               }
589
               }
590
+              this.$refs.dialog.show()
590
               const obj = {};
591
               const obj = {};
591
               this.propForm.goods = this.propForm.goods.reduce(
592
               this.propForm.goods = this.propForm.goods.reduce(
592
                 (cur, next) => {
593
                 (cur, next) => {
595
                 },
596
                 },
596
                 []
597
                 []
597
               ); // 设置cur默认类型为数组,并且初始值为空的数组
598
               ); // 设置cur默认类型为数组,并且初始值为空的数组
599
+              
598
             }
600
             }
599
 
601
 
600
             for (let i = 0; i < this.propForm.goods.length; i++) {
602
             for (let i = 0; i < this.propForm.goods.length; i++) {
678
 
680
 
679
       }, 
681
       }, 
680
       changeDealer(val) {
682
       changeDealer(val) {
681
-
683
+        this.form.dealer = val;
684
+        this.propForm.goods= []
682
       },
685
       },
683
       getDataConfig(module, filed_name){
686
       getDataConfig(module, filed_name){
684
         return getDataConfig(module, filed_name)
687
         return getDataConfig(module, filed_name)

+ 3 - 0
src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue View File

576
       this.propForm.manufacturer = val;
576
       this.propForm.manufacturer = val;
577
     },
577
     },
578
     changeDealer(val) {
578
     changeDealer(val) {
579
+      this.propForm.goods = []
579
       this.propForm.dealer = val;
580
       this.propForm.dealer = val;
581
+      this.form.dealer = val
582
+     
580
     },
583
     },
581
     getDataConfig(module, filed_name){
584
     getDataConfig(module, filed_name){
582
      return getDataConfig(module, filed_name)
585
      return getDataConfig(module, filed_name)

+ 145 - 3
src/xt_pages/user/vascularAccess.vue View File

55
            <span v-if="scope.row.stop_time>0&&(scope.row.stop_time - scope.row.start_time)/86400 != 0">{{(scope.row.stop_time - scope.row.start_time)/86400}}</span>
55
            <span v-if="scope.row.stop_time>0&&(scope.row.stop_time - scope.row.start_time)/86400 != 0">{{(scope.row.stop_time - scope.row.start_time)/86400}}</span>
56
           </template>
56
           </template>
57
       </el-table-column>
57
       </el-table-column>
58
+       
59
+      <el-table-column prop="date" label="导管感染转归" align="center" width="120">
60
+          <template slot-scope="scope">
61
+             <span v-if="scope.row.ci_type == 1">拔管</span>
62
+             <span v-if="scope.row.ci_type == 2">治愈</span>
63
+             <span v-if="scope.row.ci_type == 3">死亡</span>
64
+             <span v-if="scope.row.ci_type == 4">放弃</span>
65
+             <span v-if="scope.row.ci_type == 9">其它</span>
66
+          </template>
67
+      </el-table-column>
68
+       
69
+       <el-table-column prop="date" label="血培养检查结果" align="center" width="120">
70
+          <template slot-scope="scope">
71
+             <span v-if="scope.row.blood_cultupe == 0">阴性</span>
72
+             <span v-if="scope.row.blood_cultupe == 1">阳性</span>
73
+             <span v-if="scope.row.blood_cultupe == 9">未查</span>
74
+          </template>
75
+      </el-table-column>
76
+      
77
+     <el-table-column prop="date" label="患者导管转归类型" align="center" width="120">
78
+          <template slot-scope="scope">
79
+             <span v-if="scope.row.sequelae_type == 1">局部感染</span>
80
+             <span v-if="scope.row.sequelae_type == 2">静脉炎</span>
81
+             <span v-if="scope.row.sequelae_type == 3">导管细菌定植</span>
82
+             <span v-if="scope.row.sequelae_type == 4">导管相关血型感染</span>
83
+          </template>
84
+      </el-table-column>
58
        <el-table-column prop="date" label="备注" align="center" width="180">
85
        <el-table-column prop="date" label="备注" align="center" width="180">
59
           <template slot-scope="scope">
86
           <template slot-scope="scope">
60
              <span>{{scope.row.remark}}</span>
87
              <span>{{scope.row.remark}}</span>
187
                </el-form-item>
214
                </el-form-item>
188
             </el-col>
215
             </el-col>
189
          </el-row>
216
          </el-row>
217
+         <el-row v-show="showOne">
218
+            <el-col :span="8">
219
+               <el-form-item label="导管感染转归:">
220
+                  <el-select v-model="form.ci_type" placeholder="请选择" style="width:150px" @change="changeStatus">
221
+                     <el-option
222
+                           v-for="item in optionsTwo"
223
+                           :key="item.id"
224
+                           :label="item.name"
225
+                           :value="item.id">
226
+                     </el-option>
227
+                  </el-select>
228
+               </el-form-item>
229
+             </el-col>
230
+             <el-col :span="8">
231
+               <el-form-item label="血培养检查结果:">
232
+                  <el-select v-model="form.blood_cultupe" placeholder="请选择" style="width:150px" @change="changeStatus">
233
+                     <el-option
234
+                           v-for="item in optionsThree"
235
+                           :key="item.id"
236
+                           :label="item.name"
237
+                           :value="item.id">
238
+                     </el-option>
239
+                  </el-select>
240
+               </el-form-item>
241
+            </el-col>
242
+            <el-col :span="8">
243
+               <el-form-item label="患者导管转归类型:">
244
+                  <el-select v-model="form.sequelae_type" placeholder="请选择" style="width:150px" @change="changeStatus">
245
+                     <el-option
246
+                           v-for="item in optionsOne"
247
+                           :key="item.id"
248
+                           :label="item.name"
249
+                           :value="item.id">
250
+                     </el-option>
251
+                  </el-select>
252
+               </el-form-item>
253
+             </el-col>
254
+         </el-row>
190
          <el-row v-show="show">
255
          <el-row v-show="show">
191
             <el-col :span="8">
256
             <el-col :span="8">
192
                <el-form-item label="停用日期:">
257
                <el-form-item label="停用日期:">
320
                   </el-select>
385
                   </el-select>
321
                </el-form-item>
386
                </el-form-item>
322
             </el-col>
387
             </el-col>
388
+         </el-row>
389
+           <el-row v-show="showOne">
390
+            <el-col :span="8">
391
+               <el-form-item label="导管感染转归:">
392
+                  <el-select v-model="form.ci_type" placeholder="请选择" style="width:150px" @change="changeStatus">
393
+                     <el-option
394
+                           v-for="item in optionsTwo"
395
+                           :key="item.id"
396
+                           :label="item.name"
397
+                           :value="item.id">
398
+                     </el-option>
399
+                  </el-select>
400
+               </el-form-item>
401
+             </el-col>
402
+             <el-col :span="8">
403
+               <el-form-item label="血培养检查结果:">
404
+                  <el-select v-model="form.blood_cultupe" placeholder="请选择" style="width:150px" @change="changeStatus">
405
+                     <el-option
406
+                           v-for="item in optionsThree"
407
+                           :key="item.id"
408
+                           :label="item.name"
409
+                           :value="item.id">
410
+                     </el-option>
411
+                  </el-select>
412
+               </el-form-item>
413
+            </el-col>
414
+            <el-col :span="8">
415
+               <el-form-item label="患者导管转归类型:">
416
+                  <el-select v-model="form.sequelae_type" placeholder="请选择" style="width:150px" @change="changeStatus">
417
+                     <el-option
418
+                           v-for="item in optionsOne"
419
+                           :key="item.id"
420
+                           :label="item.name"
421
+                           :value="item.id">
422
+                     </el-option>
423
+                  </el-select>
424
+               </el-form-item>
425
+             </el-col>
323
          </el-row>
426
          </el-row>
324
          <el-row v-show="show">
427
          <el-row v-show="show">
325
             <el-col :span="8">
428
             <el-col :span="8">
411
          user_status:1,
514
          user_status:1,
412
          remark:"",
515
          remark:"",
413
          stop_time:"",
516
          stop_time:"",
414
-         other_vascular:""
517
+         other_vascular:"",
518
+         ci_type:"",//导管感染转归
519
+         blood_cultupe:"", //血培养检查结果
520
+         sequelae_type:"",//患者导管转归类型
415
         },
521
         },
416
         options:[
522
         options:[
417
          {id:1,name:"启用"},
523
          {id:1,name:"启用"},
421
           {id:1,name:"流入-动脉"},
527
           {id:1,name:"流入-动脉"},
422
           {id:2,name:"流出-静脉"},
528
           {id:2,name:"流出-静脉"},
423
         ],
529
         ],
530
+
424
         blood_access_part_opera:[],
531
         blood_access_part_opera:[],
425
         blood_access_part:[],
532
         blood_access_part:[],
426
         show:false,
533
         show:false,
435
         },
542
         },
436
         new_blood_access_part_opera:[],
543
         new_blood_access_part_opera:[],
437
         new_blood_access_part:[],
544
         new_blood_access_part:[],
545
+       // 导管感染类型
546
+        optionsOne:[
547
+           {id:1,name:"局部感染"},
548
+           {id:2,name:"静脉炎"},
549
+           {id:3,name:"导管细菌定植"},
550
+           {id:4,name:"导管相关血型感染"},
551
+        ],
552
+      //   导管转归类型
553
+        optionsTwo:[
554
+           {id:1,name:"拔管"},
555
+           {id:2,name:"治愈"},
556
+           {id:3,name:"死亡"},
557
+           {id:4,name:"放弃"},
558
+           {id:9,name:"其它"},
559
+        ],
560
+      //  血培养检查结果
561
+        optionsThree:[
562
+           {id:0,name:"阴性"},
563
+           {id:1,name:"阳性"},
564
+           {id:9,name:"未查"}
565
+        ],
566
+        showOne:false
438
       }
567
       }
439
     },
568
     },
440
     methods: {
569
     methods: {
497
                 remark:this.form.remark,
626
                 remark:this.form.remark,
498
                 stop_time:this.form.stop_time,
627
                 stop_time:this.form.stop_time,
499
                 other_vascular:this.form.other_vascular,
628
                 other_vascular:this.form.other_vascular,
629
+                ci_type:this.form.ci_type,
630
+                blood_cultupe:this.form.blood_cultupe,
631
+                sequelae_type:this.form.sequelae_type,
500
               }
632
               }
501
               console.log("params",params)
633
               console.log("params",params)
634
+            
502
              saveVasularAccess(params).then(response=>{
635
              saveVasularAccess(params).then(response=>{
503
                 if(response.data.state == 1){
636
                 if(response.data.state == 1){
504
                    var access =  response.data.data.access
637
                    var access =  response.data.data.access
576
               }
709
               }
577
 
710
 
578
               if(accessDetail.access_project == "2"){
711
               if(accessDetail.access_project == "2"){
712
+               this.showOne = true
579
                for(let i=0;i<this.new_blood_access_part_opera.length;i++){ 
713
                for(let i=0;i<this.new_blood_access_part_opera.length;i++){ 
580
                   if(this.new_blood_access_part_opera[i].field_type == 2){
714
                   if(this.new_blood_access_part_opera[i].field_type == 2){
581
                      arrOne.push(this.new_blood_access_part_opera[i])  
715
                      arrOne.push(this.new_blood_access_part_opera[i])  
620
  
754
  
621
              this.form.user_status = accessDetail.user_status
755
              this.form.user_status = accessDetail.user_status
622
              this.form.other_vascular = accessDetail.other_vascular
756
              this.form.other_vascular = accessDetail.other_vascular
757
+             this.form.ci_type = accessDetail.ci_type
758
+             this.form.blood_cultupe = accessDetail.blood_cultupe
759
+             this.form.sequelae_type = accessDetail.sequelae_type
623
              if(accessDetail.user_status == 1){
760
              if(accessDetail.user_status == 1){
624
                this.show = false
761
                this.show = false
625
              }
762
              }
693
                 remark:this.form.remark,
830
                 remark:this.form.remark,
694
                 stop_time:this.form.stop_time,
831
                 stop_time:this.form.stop_time,
695
                 patient_id:this.patientID,
832
                 patient_id:this.patientID,
696
-                other_vascular:this.form.other_vascular
833
+                other_vascular:this.form.other_vascular,
834
+                ci_type:this.form.ci_type,
835
+                blood_cultupe:this.form.blood_cultupe,
836
+                sequelae_type:this.form.sequelae_type
697
               }
837
               }
698
-              console.log("编辑",params)
838
+            
699
               updatedVasularAccess(params).then(response=>{
839
               updatedVasularAccess(params).then(response=>{
700
                 if(response.data.state == 1){
840
                 if(response.data.state == 1){
701
                   var access =  response.data.data.access
841
                   var access =  response.data.data.access
800
         if(val == 1){
940
         if(val == 1){
801
            this.blood_access_part_opera = arr
941
            this.blood_access_part_opera = arr
802
            this.blood_access_part = arrTwo
942
            this.blood_access_part = arrTwo
943
+           this.showOne = false
803
           
944
           
804
         }
945
         }
805
         if(val == 2){
946
         if(val == 2){
806
           this.blood_access_part_opera = arrOne
947
           this.blood_access_part_opera = arrOne
807
           this.blood_access_part = arrThree
948
           this.blood_access_part = arrThree
949
+          this.showOne = true
808
         }
950
         }
809
         
951
         
810
         console.log("arr",arr)
952
         console.log("arr",arr)