Browse Source

新分支

28169 8 months ago
parent
commit
af24622047

+ 38 - 0
src/api/drug/drug.js View File

@@ -1,4 +1,5 @@
1 1
 import request from '@/utils/request'
2
+import url from 'postcss-url'
2 3
 
3 4
 export function getCurrentPatient(params) {
4 5
   return request({
@@ -670,4 +671,41 @@ export function getCheckGoodBatchList(id,params){
670 671
     method:"get",
671 672
     params:params,
672 673
   })
674
+}
675
+
676
+
677
+export function getAllSelfDrugInfoList(params){
678
+
679
+  return request({
680
+    url:"/api/drug/getallselfdruginfolist",
681
+    method:"get",
682
+    params:params,
683
+  })
684
+}
685
+
686
+export function getallPatientList(params){
687
+
688
+  return request({
689
+    url:"/api/drug/getallpatientlist",
690
+    method:"Get",
691
+    params:params
692
+  })
693
+}
694
+
695
+export function postSearchSelfDrugList(keyword,params){
696
+
697
+  return request({
698
+    url:"/api/drug/postsearchselfdruglist?keyword="+keyword,
699
+    method:"get",
700
+    params:params
701
+  })
702
+}
703
+
704
+export function postSelfDrugWarehouse(data){
705
+  
706
+  return request({
707
+    url:"/api/drug/postselfdrugwarehouse",
708
+    method:"post",
709
+    data:data
710
+  })
673 711
 }

+ 18 - 0
src/api/patient.js View File

@@ -1102,4 +1102,22 @@ export function deleteSolution(id,params){
1102 1102
     method:"Get",
1103 1103
     params:params,
1104 1104
   })
1105
+}
1106
+
1107
+export function saveTreamtPlan(data){
1108
+
1109
+  return request({
1110
+    url:"/api/patient/savetreamentplan",
1111
+    method:"post",
1112
+    data:data,
1113
+  })
1114
+}
1115
+
1116
+export function getTreamentPlan(params){
1117
+
1118
+  return request({
1119
+    url:"/api/patient/gettreamentplan",
1120
+    method:"get",
1121
+    params:params
1122
+  })
1105 1123
 }

+ 3 - 1
src/lang/zh.js View File

@@ -189,7 +189,9 @@ export default {
189 189
     selfPreparedMedicine: '自备药管理',
190 190
     wareHouseManage: '仓库管理',
191 191
     inventoryTransfer: '库存调拨',
192
-
192
+    selfPrepareWaresing:"自备药入库",
193
+    selfPrepareWaresingOut:"自备药出库",
194
+    selfPrepareWareOut:"自备药出库",
193 195
     // consumablesManagement: '耗材管理',
194 196
     warehouseReceipt: '出入库',
195 197
     warehouseReceiptOther: '出入库',

+ 22 - 0
src/router/modules/selfPreparedMedicine.js View File

@@ -12,6 +12,28 @@ export default {
12 12
     isChild: true
13 13
   },
14 14
   children: [
15
+    {
16
+      path: '/stock/selfwarehouse/info',
17
+      component: () => import('@/xt_pages/stock/selfPreparedMedicine/warehouseInfo'),
18
+      name: 'selfPrepareWaresing',
19
+      meta: { title: '自备药入库', noCache: true }
20
+
21
+    },
22
+    {
23
+      path: '/stock/selfwarehouse/info/add',
24
+      component: () => import('@/xt_pages/stock/selfPreparedMedicine/addWarehouseInfo'),
25
+      name: 'selfPrepareWaresingAdd',
26
+      meta: { title: '自备药入库', noCache: true },
27
+      hidden: true,
28
+      is_menu: false,
29
+    },
30
+    {
31
+      path: '/stock/selfwarehouse/out',
32
+      component: () => import('@/xt_pages/stock/selfPreparedMedicine/warehouseOut'),
33
+      name: 'selfPrepareWareOut',
34
+      meta: { title: '自备药出库', noCache: true }
35
+
36
+    },
15 37
     {
16 38
       path: '/stock/selfstockquery',
17 39
       component: () => import('@/xt_pages/stock/selfPreparedMedicine/stockquery'),

+ 2 - 2
src/xt_pages/management/index.vue View File

@@ -31,14 +31,14 @@
31 31
           >搜索</el-button
32 32
         >
33 33
 
34
-        <!-- <el-button
34
+        <el-button
35 35
           class="filter-item"
36 36
           type="primary"
37 37
           icon="el-icon-search"
38 38
           size="small"
39 39
           @click="Auto()"
40 40
           >脚本</el-button
41
-        > -->
41
+        >
42 42
       </div>
43 43
 
44 44
       <div class="cell clearfix">

+ 2 - 2
src/xt_pages/role/admin.vue View File

@@ -227,12 +227,12 @@
227 227
           @click="toAutoDrug">自动生成</el-button> -->
228 228
 
229 229
 
230
-         <!-- <el-button
230
+         <el-button
231 231
           type="primary"
232 232
           size="small"
233 233
           icon="el-icon-circle-plus-outline"
234 234
           style="float:left"
235
-          @click="toAutoDiagnose">自动脚本</el-button> -->
235
+          @click="toAutoDiagnose">自动脚本</el-button>
236 236
 
237 237
         <!-- <el-button
238 238
           type="primary"

+ 36 - 4
src/xt_pages/stock/selfPreparedMedicine/index.vue View File

@@ -2,14 +2,14 @@
2 2
     <div class="main-contain">
3 3
         <div class="position">
4 4
             <bread-crumb :crumbs="crumbs"></bread-crumb>
5
-            <el-button
5
+            <!-- <el-button
6 6
                 size="small"
7 7
                 @click="setting"
8 8
                 class="filter-item"
9 9
                 style="float:right;"
10 10
                 type="primary"
11 11
                 >设置
12
-            </el-button>
12
+            </el-button> -->
13 13
         </div>
14 14
 
15 15
         <div class="app-container">
@@ -60,14 +60,46 @@
60 60
                     <div style="display:flex;justify-content: space-between;align-items: center;">
61 61
                         <div class="tablesTitle">自备药列表</div>
62 62
                         <div>
63
-                            <el-button type="primary" size="mini" @click="openForm(1)">添加</el-button>
63
+                            <!-- <el-button type="primary" size="mini" @click="openForm(1)">添加</el-button> -->
64 64
                             <el-button type="primary" size="mini" @click="openForm(2)">入库</el-button>
65 65
                             <el-button type="primary" size="mini" @click="openForm(3)">出库</el-button>
66 66
                         </div>
67 67
                     </div>
68 68
                     <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
69 69
                         <el-table-column align="center" prop="dialysis_no" label="药品名称" width="120">
70
-                            <template slot-scope="scope">{{scope.row.drug_name}}</template>
70
+                            <template slot-scope="scope">
71
+                              <el-form-item style="padding-top: 20px">
72
+                                  <el-autocomplete
73
+                                    class="checkSearch"
74
+                                    popper-class="my-autocomplete"
75
+                                    v-model="scope.row.drug_name"
76
+                                    :fetch-suggestions="querySearchAsync"
77
+                                    :trigger-on-focus="true"
78
+                                    placeholder="请输入药品名称"
79
+                                    @select="handleSelect"
80
+                                    @input="changeDrugName(scope.$index)"
81
+                                    style="width: 160px"
82
+                                  >
83
+                                    <i class="el-icon-search el-input__icon" slot="suffix"></i>
84
+                                    <template slot-scope="{ item }">
85
+                                      <div class="name">
86
+                                        {{
87
+                                          item.drug_name +
88
+                                          item.dose +
89
+                                          item.dose_unit +
90
+                                          "*" +
91
+                                          item.min_number +
92
+                                          item.min_unit +
93
+                                          "/" +
94
+                                          item.max_unit +
95
+                                          "  " +
96
+                                          item.manufacturer
97
+                                        }}
98
+                                      </div>
99
+                                    </template>
100
+                                  </el-autocomplete>
101
+                                </el-form-item>
102
+                            </template>
71 103
                         </el-table-column>
72 104
                         <el-table-column align="center" prop="name" label="规格名称">
73 105
                             <template slot-scope="scope">{{ scope.row.drug_spec }}</template>

+ 1 - 3
src/xt_pages/stock/stockOutOrder.vue View File

@@ -2526,8 +2526,7 @@ export default {
2526 2526
       }
2527 2527
      }
2528 2528
      if(count > 0){
2529
-      console.log("good_id",good_id)
2530
-      console.log("数量我哦哦我",count)
2529
+     
2531 2530
       return count
2532 2531
      }else{
2533 2532
       return 0 
@@ -2536,7 +2535,6 @@ export default {
2536 2535
      
2537 2536
     },
2538 2537
     getRow(row){
2539
-      console.log("row233323232",row)
2540 2538
       var name = ""
2541 2539
       if(this.stockFlowList!=null && this.stockFlowList.length > 0){
2542 2540
         for(let i=0;i<this.stockFlowList.length;i++){

+ 14 - 3
src/xt_pages/user/Informed/Informedconsent.vue View File

@@ -124,7 +124,7 @@
124 124
                   <Medicalhistory :patient_id ="this.patientID" :medicalList="medicalList" ref="childThrity" @getPatientMeDicalList="getPatientMeDicalList"></Medicalhistory>
125 125
                 </div>
126 126
                 <div v-if="show14">
127
-                  <heal_informed :patient_id ="this.patientID" ></heal_informed>
127
+                  <heal_informed :patient_id ="this.patientID" ref="childSeventy" ::patientTreamentPlan="patientTreamentPlan" @getTreamentPlan="getTreamentPlan"></heal_informed>
128 128
                 </div>
129 129
                 <div v-if="show15">
130 130
                   <criticalpatient_informed :patient_id ="this.patientID" ref="childFivety" :patientCritaicalInformedPrint="patientCritaicalInformedPrint" @getPatientCriticalList="getPatientCriticalList"></criticalpatient_informed>
@@ -160,7 +160,7 @@ import Medicalhistory from './components/Medicalhistory'
160 160
 import heal_informed from './components/heal_informed'
161 161
 import criticalpatient_informed from './components/criticalpatient_informed'
162 162
 import criticalpatient_informed2 from './components/criticalpatient_informed2'
163
-import { getPatientDetailInformedconsent,getFallOutBedPrintList,getFilterInformed,getProfundaInformed,getArterOvernous,getHighRiskInformed,getPatientMeDicalList,getAnticoagulationInformed,getCriticalInformed,getHemoperfusionInformed,getInformedConsent,getCatheterization,getDialyzerInformed, getTherapyInformed,getPatientCriticalList,getPatientCriticalOneList } from '@/api/patient'
163
+import { getPatientDetailInformedconsent,getFallOutBedPrintList,getFilterInformed,getProfundaInformed,getArterOvernous,getHighRiskInformed,getPatientMeDicalList,getAnticoagulationInformed,getCriticalInformed,getHemoperfusionInformed,getInformedConsent,getCatheterization,getDialyzerInformed, getTherapyInformed,getPatientCriticalList,getPatientCriticalOneList,getTreamentPlan } from '@/api/patient'
164 164
 export default {
165 165
 
166 166
   components: {
@@ -226,7 +226,8 @@ export default {
226 226
       dialyzerInformedPrint:{},
227 227
       therapyinformePrint:{},
228 228
       patientCritaicalInformedPrint:{},
229
-      patientCritaicalInformedOnePrint:{}
229
+      patientCritaicalInformedOnePrint:{},
230
+      patientTreamentPlan:{}
230 231
     }
231 232
 
232 233
   },
@@ -390,6 +391,15 @@ export default {
390 391
         }
391 392
       })
392 393
     },
394
+    getTreamentPlan(){
395
+      getTreamentPlan().then(response=>{
396
+        if(response.data.state ==1){
397
+          var list = response.data.data.treamentPlan
398
+          this.patientTreamentPlan = list  
399
+          this.$refs.childSeventy.show(list)
400
+        }
401
+      })
402
+    },
393 403
    
394 404
     rowClick(row, column, event){
395 405
      console.log('1111',row);
@@ -660,6 +670,7 @@ export default {
660 670
           this.show14=true,
661 671
           this.show15=false,
662 672
           this.show16=false
673
+          this.getTreamentPlan()
663 674
         }
664 675
         if(row.value==15){
665 676
      

+ 35 - 3
src/xt_pages/user/Informed/components/heal_informed.vue View File

@@ -81,7 +81,7 @@
81 81
         </div>
82 82
         <span slot="footer" class="dialog-footer">
83 83
           <el-button @click="dialogVisible = false">取 消</el-button>
84
-          <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
84
+          <el-button type="primary" @click="saveTreamtPlan">确 定</el-button>
85 85
         </span>
86 86
       </el-dialog>
87 87
 
@@ -91,7 +91,7 @@
91 91
 <script>
92 92
 import print from "print-js";
93 93
 import Editor from '@/components/Editor'
94
-import { getPatientDetailInformedconsent  } from '@/api/patient'
94
+import { getPatientDetailInformedconsent,saveTreamtPlan  } from '@/api/patient'
95 95
 import { jsGetAge, uParseTime } from "@/utils/tools";
96 96
 const content=`<p style='padding-left: 2em;margin-top: 10px;margin-bottom: 4px'>
97 97
   <span class="abs-index"></span>患者透析过程中出现低血压95/76mmHg,诉有头晕,予以最低超滤量,并回0.9%氯化钠200m1,原来超滤量减少200ml,建议患者控制透析间期体重增加不超5%,患者本人表示不同意医生处理方案,认为超滤量不能改,而且不能回水,那样会导致积水,经解释沟通后,患者家属仍坚持低血压时不予改超滤量,不同意回水处理,并表示后果自负,今由于患者本人多次不同意医生的处理方案,多次拒绝医生一切处理方案,医生也已将透析中反复低血压可能导致的后果如:导致内痿血流不足,内痿栓塞,内痿朋塌,严重低血压导致休克死亡等后果充分告知其家属,患者家属表示知情,后果自负,签字为证
@@ -117,7 +117,10 @@ export default{
117 117
   props: {
118 118
     patient_id: {
119 119
         type: Number,
120
-      }
120
+      },
121
+    patientTreamentPlan:{
122
+       type:Object,
123
+    }
121 124
   },
122 125
   components:{
123 126
     Editor
@@ -174,9 +177,38 @@ export default{
174 177
       },
175 178
       bianji(){
176 179
         this.dialogVisible=true
180
+      },
181
+      show(val){    
182
+       if(val!=null){
183
+        console.log("valw233223",val)
184
+         if(val.content!=""){
185
+           this.content = ""
186
+           this.content = val.content
187
+         }
188
+         
189
+       }
190
+     },
191
+      saveTreamtPlan(){
192
+        var params = {
193
+          content:this.$refs.editor.content
194
+         }
195
+        saveTreamtPlan(params).then(response=>{
196
+            if(response.data.state ==1){
197
+              var list = response.data.data.list
198
+              this.$emit('fMethod',list);
199
+              this.dialogVisible = false
200
+              this.$emit("getTreamentPlan","");
201
+            }
202
+        })
177 203
       }
178 204
   },
179 205
   created(){
206
+    console.log("hahhahahahahahwo",this.patientTreamentPlan)
207
+    if(this.patientTreamentPlan!=null && this.patientTreamentPlan.id >0){
208
+      
209
+      this.content = ""
210
+      this.content = this.patientTreamentPlan.content
211
+    }
180 212
     this.getlist()
181 213
   }
182 214
 }