Browse Source

25 1月14 发药

yq1 1 month ago
parent
commit
4ded6a1fa1

+ 6 - 2
src/xt_pages/Pharmacy/DrugDispensing.vue View File

@@ -439,13 +439,14 @@
439 439
           <el-button type="primary" @click="SaveSetting">保 存</el-button>
440 440
         </span>
441 441
       </el-dialog>
442
-
442
+      <!-- 药品追溯码 -->
443 443
       <el-dialog
444 444
         title="药品追溯码"
445 445
         :visible.sync="dialogVisibleOne"
446 446
          width="40%">
447 447
        <span>
448 448
         <el-input
449
+          ref="Datefrom"
449 450
           @keyup.native="changeText"
450 451
           type="textarea"
451 452
           placeholder="请输入内容"
@@ -550,6 +551,7 @@ export default {
550 551
   },
551 552
 
552 553
   methods: {
554
+    // 追溯码
553 555
     getDrugCode(id,DataSources,DrugCode,index){
554 556
       this.id = id 
555 557
       var is_source =0
@@ -563,7 +565,9 @@ export default {
563 565
        this.textarea = DrugCode
564 566
        this.currentIndex = index
565 567
        this.dialogVisibleOne = true
566
-
568
+       this.$nextTick(()=>{
569
+        this.$refs.Datefrom.focus()
570
+       })
567 571
     },
568 572
     saveTextArea(){
569 573
       

+ 4 - 3
src/xt_pages/Pharmacy/PatientDispensing.vue View File

@@ -1244,7 +1244,7 @@ export default {
1244 1244
     getDrugCode(id,DataSources,DrugCode,index,DrugId){
1245 1245
       
1246 1246
      // 针对百霖
1247
-       if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 0){
1247
+       if(this.$store.getters.xt_user.org.id == 10138 ){
1248 1248
           var params = {
1249 1249
             drug_id:DrugId,
1250 1250
             start_time:moment().subtract(15, 'days').format("YYYY-MM-DD")
@@ -1328,10 +1328,11 @@ export default {
1328 1328
         this.is_source = is_source
1329 1329
         this.textarea = DrugCode
1330 1330
         this.currentIndex = index
1331
-        
1332 1331
         this.dialogVisibleOne = true
1333 1332
        }
1334
-
1333
+       this.$nextTick(()=>{
1334
+        this.$refs.inputRef.focus()
1335
+       })
1335 1336
      
1336 1337
 
1337 1338
     },

+ 0 - 17
src/xt_pages/user/physiqueprinting.vue View File

@@ -687,23 +687,6 @@ export default {
687 687
           this.diagnosis = this.patient.diagnose.split(',')
688 688
           
689 689
           this.list = response.data.data.sickhistorys
690
-         
691
-          if(this.list[0].content.indexOf('首次透析时间') !=-1&&this.list[0].content.indexOf('医保类型') !=-1
692
-          ){
693
-            console.log('111111111显示');
694
-          }else{
695
-            console.log('222222222隐藏');
696
-          }
697
-          // if(this.list[0].content.indexOf('首次透析时间') ==-1&&this.list[0].content.indexOf('医保类型') ==-1&&
698
-          //   this.list[0].content.indexOf('现病史') ==-1&&this.list[0].content.indexOf('既往史') ==-1
699
-          // ){
700
-          //   console.log('222222222隐藏');
701
-          // }
702
-          // console.log('ttttttt',response.data.data);
703
-          console.log('cccccc',this.list[0].content.indexOf('首次透析时间'),this.list[0].content.indexOf('医保类型'),
704
-          this.list[0].content.indexOf('现病史'),this.list[0].content.indexOf('既往史'));
705
-          
706
-          
707 690
         }
708 691
       })
709 692
     },