Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 4 months ago
parent
commit
8ed77aaa2e

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

916
             }
916
             }
917
           }
917
           }
918
 
918
 
919
-          if(this.$store.getters.xt_user.org_id == 0 || this.this.$store.getters.xt_user.org_id == 10138 || this.this.$store.getters.xt_user.org_id == 10278 || this.this.$store.getters.xt_user.org_id == 10610 ||  this.this.$store.getters.xt_user.org_id == 10537 ) {
919
+          if(this.$store.getters.xt_user.org_id == 0 || this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 10278 || this.$store.getters.xt_user.org_id == 10610 ||  this.$store.getters.xt_user.org_id == 10537 ) {
920
             for (let i = 0; i < array.length; i++) {
920
             for (let i = 0; i < array.length; i++) {
921
               if (array[i].drug_code.length == 0) {
921
               if (array[i].drug_code.length == 0) {
922
                 this.$message.error(array[i].drug_name + " 药品溯源码不能为空");
922
                 this.$message.error(array[i].drug_name + " 药品溯源码不能为空");
932
               }
932
               }
933
             }
933
             }
934
           }
934
           }
935
-          return
935
+
936
 
936
 
937
           if (this.recordInfo.recordData.length <= 0) {
937
           if (this.recordInfo.recordData.length <= 0) {
938
             this.$message.success("请添加入库商品");
938
             this.$message.success("请添加入库商品");

+ 1 - 1
src/xt_pages/stock/stockInOrderAdd.vue View File

787
               array[i].packing_price = array[i].packing_price.toString()
787
               array[i].packing_price = array[i].packing_price.toString()
788
             }
788
             }
789
 
789
 
790
-            if(this.$store.getters.xt_user.org_id == 0 || this.this.$store.getters.xt_user.org_id == 10138 || this.this.$store.getters.xt_user.org_id == 10278 || this.this.$store.getters.xt_user.org_id == 10610 ||  this.this.$store.getters.xt_user.org_id == 10537 ) {
790
+            if(this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 10278 || this.$store.getters.xt_user.org_id == 10610 ||  this.$store.getters.xt_user.org_id == 10537 ) {
791
               for (let i = 0; i < array.length; i++) {
791
               for (let i = 0; i < array.length; i++) {
792
                 if (array[i].good_code.length == 0) {
792
                 if (array[i].good_code.length == 0) {
793
                   this.$message.error(array[i].good_name  + " 溯源码不能为空");
793
                   this.$message.error(array[i].good_name  + " 溯源码不能为空");

+ 16 - 8
src/xt_pages/user/sickHistory_new.vue View File

216
   createNewSickHistoryRecord,
216
   createNewSickHistoryRecord,
217
   deleteSickHistoryRecords,
217
   deleteSickHistoryRecords,
218
   getNewSickHistory,
218
   getNewSickHistory,
219
-  ModifySickHistoryRecord,
220
-  getSickHistoryByPatient
219
+  ModifySickHistoryRecord
221
 } from '@/api/patient'
220
 } from '@/api/patient'
222
 import { parseTime } from '@/utils'
221
 import { parseTime } from '@/utils'
223
 import BreadCrumb from '@/xt_pages/components/bread-crumb' 
222
 import BreadCrumb from '@/xt_pages/components/bread-crumb' 
260
       uploading_new_record: false,
259
       uploading_new_record: false,
261
       templates: this.$store.getters.configlist.sick_history,
260
       templates: this.$store.getters.configlist.sick_history,
262
       select_template:"",
261
       select_template:"",
263
-      new_content: '',
262
+      new_content: "",
264
       edit_new_content: '',
263
       edit_new_content: '',
265
       edit_sick_history_time: '',
264
       edit_sick_history_time: '',
266
       selectingRows: [],
265
       selectingRows: [],
602
       return uParseTime(time, '{y}-{m}-{d}')
601
       return uParseTime(time, '{y}-{m}-{d}')
603
     },
602
     },
604
     getCurrentChange(val){
603
     getCurrentChange(val){
605
-       console.log("VAL---------------",val)
604
+      
605
+      console.log("new_content2222222222222222222---------------",val.content)
606
+      this.new_content = ""
607
+      this.new_content = val.content
608
+      // var ue = UE.getEditor('editor')
609
+      // ue.setContent(val.content)
610
+     
606
       this.record_time = this.getTime(val.record_time)
611
       this.record_time = this.getTime(val.record_time)
607
       this.id = val.id
612
       this.id = val.id
608
-      this.content = val.content
609
       this.guominyaowu_desc = val.hypersusceptibility_desc
613
       this.guominyaowu_desc = val.hypersusceptibility_desc
610
-
611
-      this.is_fumotouxishi = val.is_fumo_dialysis_history
612
-      this.is_hypersusceptibility  = val.is_shenyizhi_history
614
+      this.shen_fumo = val.is_fumo_dialysis_history
615
+      this.shen_yizhi  = val.is_shenyizhi_history
616
+      this.shen_guomi = val.is_hypersusceptibility
617
+      this.patient_id = val.patient_id
618
+     
619
+     
620
+      
613
     }
621
     }
614
   }
622
   }
615
 }
623
 }