XMLWAN 4 years ago
parent
commit
35c3d9deff

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

@@ -1,11 +1,7 @@
1 1
 import request from '@/utils/request'
2 2
 
3 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 5
   return request({
10 6
     url: '/api/drugwarehouse/create?warehousing_time=' + warehousing_time + '&manufacturer_id=' + manufacturer_id + '&dealer_id=' + dealer_id + '&type=' + type,
11 7
     method: 'post',

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

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

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

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

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

@@ -201,7 +201,8 @@ export default {
201 201
       }
202 202
     },
203 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 207
     handleSizeChange(val) {},
207 208
     handleCurrentChange(val) {

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

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

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

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

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

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

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

@@ -55,6 +55,33 @@
55 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 56
           </template>
57 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 85
        <el-table-column prop="date" label="备注" align="center" width="180">
59 86
           <template slot-scope="scope">
60 87
              <span>{{scope.row.remark}}</span>
@@ -187,6 +214,44 @@
187 214
                </el-form-item>
188 215
             </el-col>
189 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 255
          <el-row v-show="show">
191 256
             <el-col :span="8">
192 257
                <el-form-item label="停用日期:">
@@ -320,6 +385,44 @@
320 385
                   </el-select>
321 386
                </el-form-item>
322 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 426
          </el-row>
324 427
          <el-row v-show="show">
325 428
             <el-col :span="8">
@@ -411,7 +514,10 @@
411 514
          user_status:1,
412 515
          remark:"",
413 516
          stop_time:"",
414
-         other_vascular:""
517
+         other_vascular:"",
518
+         ci_type:"",//导管感染转归
519
+         blood_cultupe:"", //血培养检查结果
520
+         sequelae_type:"",//患者导管转归类型
415 521
         },
416 522
         options:[
417 523
          {id:1,name:"启用"},
@@ -421,6 +527,7 @@
421 527
           {id:1,name:"流入-动脉"},
422 528
           {id:2,name:"流出-静脉"},
423 529
         ],
530
+
424 531
         blood_access_part_opera:[],
425 532
         blood_access_part:[],
426 533
         show:false,
@@ -435,6 +542,28 @@
435 542
         },
436 543
         new_blood_access_part_opera:[],
437 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 569
     methods: {
@@ -497,8 +626,12 @@
497 626
                 remark:this.form.remark,
498 627
                 stop_time:this.form.stop_time,
499 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 633
               console.log("params",params)
634
+            
502 635
              saveVasularAccess(params).then(response=>{
503 636
                 if(response.data.state == 1){
504 637
                    var access =  response.data.data.access
@@ -576,6 +709,7 @@
576 709
               }
577 710
 
578 711
               if(accessDetail.access_project == "2"){
712
+               this.showOne = true
579 713
                for(let i=0;i<this.new_blood_access_part_opera.length;i++){ 
580 714
                   if(this.new_blood_access_part_opera[i].field_type == 2){
581 715
                      arrOne.push(this.new_blood_access_part_opera[i])  
@@ -620,6 +754,9 @@
620 754
  
621 755
              this.form.user_status = accessDetail.user_status
622 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 760
              if(accessDetail.user_status == 1){
624 761
                this.show = false
625 762
              }
@@ -693,9 +830,12 @@
693 830
                 remark:this.form.remark,
694 831
                 stop_time:this.form.stop_time,
695 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 839
               updatedVasularAccess(params).then(response=>{
700 840
                 if(response.data.state == 1){
701 841
                   var access =  response.data.data.access
@@ -800,11 +940,13 @@
800 940
         if(val == 1){
801 941
            this.blood_access_part_opera = arr
802 942
            this.blood_access_part = arrTwo
943
+           this.showOne = false
803 944
           
804 945
         }
805 946
         if(val == 2){
806 947
           this.blood_access_part_opera = arrOne
807 948
           this.blood_access_part = arrThree
949
+          this.showOne = true
808 950
         }
809 951
         
810 952
         console.log("arr",arr)