瀏覽代碼

新分支

28169 11 月之前
父節點
當前提交
af24622047

+ 38 - 0
src/api/drug/drug.js 查看文件

1
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
+import url from 'postcss-url'
2
 
3
 
3
 export function getCurrentPatient(params) {
4
 export function getCurrentPatient(params) {
4
   return request({
5
   return request({
670
     method:"get",
671
     method:"get",
671
     params:params,
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 查看文件

1102
     method:"Get",
1102
     method:"Get",
1103
     params:params,
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 查看文件

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

+ 22 - 0
src/router/modules/selfPreparedMedicine.js 查看文件

12
     isChild: true
12
     isChild: true
13
   },
13
   },
14
   children: [
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
       path: '/stock/selfstockquery',
38
       path: '/stock/selfstockquery',
17
       component: () => import('@/xt_pages/stock/selfPreparedMedicine/stockquery'),
39
       component: () => import('@/xt_pages/stock/selfPreparedMedicine/stockquery'),

+ 2 - 2
src/xt_pages/management/index.vue 查看文件

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

+ 2 - 2
src/xt_pages/role/admin.vue 查看文件

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

+ 36 - 4
src/xt_pages/stock/selfPreparedMedicine/index.vue 查看文件

2
     <div class="main-contain">
2
     <div class="main-contain">
3
         <div class="position">
3
         <div class="position">
4
             <bread-crumb :crumbs="crumbs"></bread-crumb>
4
             <bread-crumb :crumbs="crumbs"></bread-crumb>
5
-            <el-button
5
+            <!-- <el-button
6
                 size="small"
6
                 size="small"
7
                 @click="setting"
7
                 @click="setting"
8
                 class="filter-item"
8
                 class="filter-item"
9
                 style="float:right;"
9
                 style="float:right;"
10
                 type="primary"
10
                 type="primary"
11
                 >设置
11
                 >设置
12
-            </el-button>
12
+            </el-button> -->
13
         </div>
13
         </div>
14
 
14
 
15
         <div class="app-container">
15
         <div class="app-container">
60
                     <div style="display:flex;justify-content: space-between;align-items: center;">
60
                     <div style="display:flex;justify-content: space-between;align-items: center;">
61
                         <div class="tablesTitle">自备药列表</div>
61
                         <div class="tablesTitle">自备药列表</div>
62
                         <div>
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
                             <el-button type="primary" size="mini" @click="openForm(2)">入库</el-button>
64
                             <el-button type="primary" size="mini" @click="openForm(2)">入库</el-button>
65
                             <el-button type="primary" size="mini" @click="openForm(3)">出库</el-button>
65
                             <el-button type="primary" size="mini" @click="openForm(3)">出库</el-button>
66
                         </div>
66
                         </div>
67
                     </div>
67
                     </div>
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>
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
                         <el-table-column align="center" prop="dialysis_no" label="药品名称" width="120">
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
                         </el-table-column>
103
                         </el-table-column>
72
                         <el-table-column align="center" prop="name" label="规格名称">
104
                         <el-table-column align="center" prop="name" label="规格名称">
73
                             <template slot-scope="scope">{{ scope.row.drug_spec }}</template>
105
                             <template slot-scope="scope">{{ scope.row.drug_spec }}</template>

+ 1 - 3
src/xt_pages/stock/stockOutOrder.vue 查看文件

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

+ 14 - 3
src/xt_pages/user/Informed/Informedconsent.vue 查看文件

124
                   <Medicalhistory :patient_id ="this.patientID" :medicalList="medicalList" ref="childThrity" @getPatientMeDicalList="getPatientMeDicalList"></Medicalhistory>
124
                   <Medicalhistory :patient_id ="this.patientID" :medicalList="medicalList" ref="childThrity" @getPatientMeDicalList="getPatientMeDicalList"></Medicalhistory>
125
                 </div>
125
                 </div>
126
                 <div v-if="show14">
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
                 </div>
128
                 </div>
129
                 <div v-if="show15">
129
                 <div v-if="show15">
130
                   <criticalpatient_informed :patient_id ="this.patientID" ref="childFivety" :patientCritaicalInformedPrint="patientCritaicalInformedPrint" @getPatientCriticalList="getPatientCriticalList"></criticalpatient_informed>
130
                   <criticalpatient_informed :patient_id ="this.patientID" ref="childFivety" :patientCritaicalInformedPrint="patientCritaicalInformedPrint" @getPatientCriticalList="getPatientCriticalList"></criticalpatient_informed>
160
 import heal_informed from './components/heal_informed'
160
 import heal_informed from './components/heal_informed'
161
 import criticalpatient_informed from './components/criticalpatient_informed'
161
 import criticalpatient_informed from './components/criticalpatient_informed'
162
 import criticalpatient_informed2 from './components/criticalpatient_informed2'
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
 export default {
164
 export default {
165
 
165
 
166
   components: {
166
   components: {
226
       dialyzerInformedPrint:{},
226
       dialyzerInformedPrint:{},
227
       therapyinformePrint:{},
227
       therapyinformePrint:{},
228
       patientCritaicalInformedPrint:{},
228
       patientCritaicalInformedPrint:{},
229
-      patientCritaicalInformedOnePrint:{}
229
+      patientCritaicalInformedOnePrint:{},
230
+      patientTreamentPlan:{}
230
     }
231
     }
231
 
232
 
232
   },
233
   },
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
     rowClick(row, column, event){
404
     rowClick(row, column, event){
395
      console.log('1111',row);
405
      console.log('1111',row);
660
           this.show14=true,
670
           this.show14=true,
661
           this.show15=false,
671
           this.show15=false,
662
           this.show16=false
672
           this.show16=false
673
+          this.getTreamentPlan()
663
         }
674
         }
664
         if(row.value==15){
675
         if(row.value==15){
665
      
676
      

+ 35 - 3
src/xt_pages/user/Informed/components/heal_informed.vue 查看文件

81
         </div>
81
         </div>
82
         <span slot="footer" class="dialog-footer">
82
         <span slot="footer" class="dialog-footer">
83
           <el-button @click="dialogVisible = false">取 消</el-button>
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
         </span>
85
         </span>
86
       </el-dialog>
86
       </el-dialog>
87
 
87
 
91
 <script>
91
 <script>
92
 import print from "print-js";
92
 import print from "print-js";
93
 import Editor from '@/components/Editor'
93
 import Editor from '@/components/Editor'
94
-import { getPatientDetailInformedconsent  } from '@/api/patient'
94
+import { getPatientDetailInformedconsent,saveTreamtPlan  } from '@/api/patient'
95
 import { jsGetAge, uParseTime } from "@/utils/tools";
95
 import { jsGetAge, uParseTime } from "@/utils/tools";
96
 const content=`<p style='padding-left: 2em;margin-top: 10px;margin-bottom: 4px'>
96
 const content=`<p style='padding-left: 2em;margin-top: 10px;margin-bottom: 4px'>
97
   <span class="abs-index"></span>患者透析过程中出现低血压95/76mmHg,诉有头晕,予以最低超滤量,并回0.9%氯化钠200m1,原来超滤量减少200ml,建议患者控制透析间期体重增加不超5%,患者本人表示不同意医生处理方案,认为超滤量不能改,而且不能回水,那样会导致积水,经解释沟通后,患者家属仍坚持低血压时不予改超滤量,不同意回水处理,并表示后果自负,今由于患者本人多次不同意医生的处理方案,多次拒绝医生一切处理方案,医生也已将透析中反复低血压可能导致的后果如:导致内痿血流不足,内痿栓塞,内痿朋塌,严重低血压导致休克死亡等后果充分告知其家属,患者家属表示知情,后果自负,签字为证
97
   <span class="abs-index"></span>患者透析过程中出现低血压95/76mmHg,诉有头晕,予以最低超滤量,并回0.9%氯化钠200m1,原来超滤量减少200ml,建议患者控制透析间期体重增加不超5%,患者本人表示不同意医生处理方案,认为超滤量不能改,而且不能回水,那样会导致积水,经解释沟通后,患者家属仍坚持低血压时不予改超滤量,不同意回水处理,并表示后果自负,今由于患者本人多次不同意医生的处理方案,多次拒绝医生一切处理方案,医生也已将透析中反复低血压可能导致的后果如:导致内痿血流不足,内痿栓塞,内痿朋塌,严重低血压导致休克死亡等后果充分告知其家属,患者家属表示知情,后果自负,签字为证
117
   props: {
117
   props: {
118
     patient_id: {
118
     patient_id: {
119
         type: Number,
119
         type: Number,
120
-      }
120
+      },
121
+    patientTreamentPlan:{
122
+       type:Object,
123
+    }
121
   },
124
   },
122
   components:{
125
   components:{
123
     Editor
126
     Editor
174
       },
177
       },
175
       bianji(){
178
       bianji(){
176
         this.dialogVisible=true
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
   created(){
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
     this.getlist()
212
     this.getlist()
181
   }
213
   }
182
 }
214
 }