Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 4 years ago
parent
commit
79a8cd38ee

+ 7 - 3
src/api/advice.js View File

@@ -15,7 +15,7 @@ export function getAllAdviceConfig() {
15 15
 }
16 16
 
17 17
 export function CreateDoctorAdvice(id, advice, mode) {
18
-  
18
+
19 19
   return request({
20 20
     url: "/api/patients/advice/create?id=" + id + "&mode=" + mode,
21 21
     method: "post",
@@ -190,7 +190,7 @@ export function CreateAdviceTemplate(data) {
190 190
 }
191 191
 
192 192
 export function UpdateAdviceTemplate(id, data,drug_id) {
193
-  
193
+
194 194
   return request({
195 195
     url: "/api/advicetemplate/update?id=" + id+"&drug_id="+drug_id,
196 196
     method: "put",
@@ -289,7 +289,7 @@ export function DeleteParentAdviceTemplate(id) {
289 289
 }
290 290
 
291 291
 export function CreateSubAdvice(params) {
292
-  
292
+
293 293
   return request({
294 294
     url: "/api/subadvice/create",
295 295
     method: "post",
@@ -502,3 +502,7 @@ export function getSchedualDoctors (params) {
502 502
     params: params
503 503
   })
504 504
 }
505
+
506
+
507
+
508
+

+ 85 - 0
src/api/his/his.js View File

@@ -181,6 +181,91 @@ export function getExportConsumeDetailList(params) {
181 181
 
182 182
 
183 183
 
184
+export function CreateHisSingleAdviceTemplate(params) {
185
+  return request({
186
+    url: "/api/hisadvicetemplate/add",
187
+    method: "post",
188
+    params:params
189
+  });
190
+}
191
+
192
+
193
+
194
+
195
+
196
+export function DeleteHisAdviceTemplate(id, template_id, parent_id) {
197
+  return request({
198
+    url:
199
+      "/api/hisadvicetemplate/delete?id=" +
200
+      id +
201
+      "&template_id=" +
202
+      template_id +
203
+      "&parent_id=" +
204
+      parent_id,
205
+    method: "delete"
206
+  });
207
+}
208
+
209
+
210
+export function postHisAdviceTemplate(params, name, advice_type) {
211
+  return request({
212
+    url:
213
+      "/api/hisadvicetemplate/create?template_name=" +
214
+      name +
215
+      "&advice_type=" +
216
+      advice_type,
217
+    method: "post",
218
+    data: params
219
+  });
220
+}
221
+
222
+
223
+
224
+
225
+export function updateHisTemplateName(params) {
226
+  return request({
227
+    url: "/api/histemplate/modify",
228
+    method: "post",
229
+    params:params
230
+  });
231
+}
232
+
233
+
234
+export function UpdateHisAdviceTemplate(params) {
235
+  return request({
236
+    url: "/api/hisadvicetemplate/update",
237
+    method: "put",
238
+    params:params
239
+  });
240
+}
241
+
242
+
243
+export function DeleteHisParentAdviceTemplate(id) {
244
+  return request({
245
+    url: "/api/hisadviceparenttemplate/delete?template_id=" + id,
246
+    method: "delete",
247
+  });
248
+}
249
+
250
+
251
+export function getAllHisAdviceTemplate () {
252
+  return request({
253
+    url: '/api/getallhisadvicetemplate',
254
+    method: 'get',
255
+  })
256
+}
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
184 269
 
185 270
 
186 271
 

+ 4 - 2
src/lang/zh.js View File

@@ -196,7 +196,7 @@ export default {
196 196
     upload_config: '质控上报配置',
197 197
     quality_control: '质控上报',
198 198
     remind_print: '排版提醒打印',
199
-    system_prescription: '处方模版',
199
+    system_prescription: '透析方案模版',
200 200
     integration_config: '集成配置',
201 201
     his_config: 'HIS集成配置',
202 202
 
@@ -231,7 +231,9 @@ export default {
231 231
     templateManagement:'模板管理',
232 232
     drugStockUserDetail:"出库人明细",
233 233
     DepartManage:"部门管理",
234
-    basicConfig:'基础配置'
234
+    basicConfig:'基础配置',
235
+
236
+    histemplate:'处方模版',
235 237
 
236 238
   },
237 239
   navbar: {

+ 10 - 2
src/router/modules/templateManagement.js View File

@@ -27,7 +27,7 @@ export default {
27 27
         meta: {
28 28
           title: 'template',
29 29
           noCache: true,
30
-    
30
+
31 31
         }
32 32
     },
33 33
     {
@@ -38,6 +38,14 @@ export default {
38 38
           title: 'system_prescription'
39 39
         }
40 40
     },
41
-    
41
+    {
42
+      path: '/data/histemplate',
43
+      component: () => import('@/xt_pages/data/hisTemplate'),
44
+      name: 'histemplate',
45
+      meta: {
46
+        title: 'histemplate'
47
+      }
48
+    },
49
+
42 50
   ]
43 51
 }

+ 30 - 31
src/xt_pages/data/druguseTemplate.vue View File

@@ -547,7 +547,7 @@
547 547
                   <el-col :span="15">
548 548
 
549 549
                     <el-form-item label="药品规格 :" prop="advice_desc">
550
-                      <el-col :span="8">                     
550
+                      <el-col :span="8">
551 551
                          <el-autocomplete
552 552
                          style="width:100px;"
553 553
                          class="inline-input"
@@ -1627,7 +1627,7 @@
1627 1627
       },
1628 1628
       onRowClick(row, event, column) {
1629 1629
         this.table_current_index = row.index
1630
-      }, 
1630
+      },
1631 1631
       modifyRecordAction: function() {
1632 1632
         if (this.table_current_index == -1) {
1633 1633
           this.$message.error('请选择一条医嘱记录')
@@ -1657,7 +1657,7 @@
1657 1657
           this.templateTableVisible = false
1658 1658
         }).catch(() => {
1659 1659
         })
1660
-      }, 
1660
+      },
1661 1661
 
1662 1662
       //添加医嘱模版
1663 1663
       submitTableTemplate(formName) {
@@ -1669,10 +1669,10 @@
1669 1669
         const params = {
1670 1670
           'data': this.adviceTableData
1671 1671
         }
1672
-      
1672
+
1673 1673
         let name = encodeURIComponent(this.form.name)
1674 1674
         console.log("params",params)
1675
-     
1675
+
1676 1676
         postAdviceTemplate(params, name, this.form.advice_type).then(response => {
1677 1677
 
1678 1678
           if (response.data.state == 0) {
@@ -1807,7 +1807,7 @@
1807 1807
 
1808 1808
       },
1809 1809
       submitTemplate(formName) {
1810
- 
1810
+
1811 1811
         if(this.src_type == ""){
1812 1812
             this.templateForm.way = 0
1813 1813
             this.templateForm.drug_id = 0
@@ -1818,7 +1818,7 @@
1818 1818
             this.templateForm.advice_name = arr[0]
1819 1819
         }
1820 1820
         console.log("2222",this.templateForm)
1821
-       
1821
+
1822 1822
         this.$refs[formName].validate(valid => {
1823 1823
           this.templateForm.single_dose = parseFloat(this.templateForm.single_dose)
1824 1824
           this.templateForm.prescribing_number = parseFloat(this.templateForm.prescribing_number)
@@ -1829,7 +1829,7 @@
1829 1829
           if (isNaN(this.templateForm.prescribing_number)) {
1830 1830
             this.templateForm.prescribing_number = 0
1831 1831
           }
1832
-          
1832
+
1833 1833
           if (valid) {
1834 1834
             const templateFormTwo = {}
1835 1835
             templateFormTwo.template_id = this.current_template_id
@@ -1948,7 +1948,7 @@
1948 1948
                     this.adviceTableData[i].weekdays = templateFormTwo.weekdays
1949 1949
                     this.adviceTableData[i].drug_id =  templateFormTwo.drug_id
1950 1950
                     this.adviceTableData[i].way   = templateFormTwo.way
1951
-                    
1951
+
1952 1952
                   }
1953 1953
                 }
1954 1954
               } else {
@@ -2147,7 +2147,7 @@
2147 2147
                 object['template_id'] = response.data.data.advice_templates[i].id
2148 2148
                 this.adviceTemplates.push(object)
2149 2149
               }
2150
-              
2150
+
2151 2151
               // 非空模版的处理
2152 2152
               for (let y = 0; y < response.data.data.advice_templates[i].DoctorAdviceTemplate.length; y++) {
2153 2153
                 if (response.data.data.advice_templates[i].id == response.data.data.advice_templates[i].DoctorAdviceTemplate[y].template_id) {
@@ -2177,21 +2177,21 @@
2177 2177
       }, cancelEditHandle() {
2178 2178
         // this.templateTableVisible = true
2179 2179
         this.templateEditFormVisible = false
2180
-      }, 
2181
-      
2180
+      },
2181
+
2182 2182
       //编辑医嘱
2183 2183
       submitEditTemplate(formName) {
2184
-        
2184
+
2185 2185
          var drug_id = 0
2186 2186
          for(let i=0;i<this.all_drug.length;i++){
2187 2187
            if(this.templateFormEdit.advice_name == this.all_drug[i].drug_name){
2188 2188
               drug_id = this.all_drug[i].id
2189 2189
            }
2190
-         } 
2190
+         }
2191 2191
         this.templateFormEdit.drug_id = drug_id
2192
-       
2192
+
2193 2193
         console.log("编辑子药",this.templateFormEdit)
2194
-       
2194
+
2195 2195
         this.$refs[formName].validate(valid => {
2196 2196
 
2197 2197
           this.templateFormEdit.single_dose = parseFloat(this.templateFormEdit.single_dose)
@@ -2221,7 +2221,7 @@
2221 2221
                 return s && s.trim()
2222 2222
               }).join(',')
2223 2223
             }
2224
-           
2224
+
2225 2225
             UpdateAdviceTemplate(this.templateFormEdit.id, this.templateFormEdit,this.templateFormEdit.drug_id).then(
2226 2226
               response => {
2227 2227
                 if (response.data.state == 0) {
@@ -2253,7 +2253,7 @@
2253 2253
             )
2254 2254
           }
2255 2255
         })
2256
-      }, 
2256
+      },
2257 2257
       drugDesc(row) {
2258 2258
         if (row.isNoSub == 2) {
2259 2259
           if (row.drug_spec.length <= 0) {
@@ -2339,13 +2339,13 @@
2339 2339
         this.table_current_index_two = row.index
2340 2340
       }, cancelHandleTwo() {
2341 2341
         this.templateFormTwoVisible = false
2342
-      }, 
2342
+      },
2343 2343
       submitTemplateTwo(formName) {
2344
-        
2344
+
2345 2345
         this.templateForm['template_id'] = this.current_template_id
2346 2346
         this.templateForm['advice_type'] = this.form.advice_type
2347
-       
2348
-      
2347
+
2348
+
2349 2349
         if (this.templateForm.frequency_type == 1) {
2350 2350
           this.templateForm.day_count = 0
2351 2351
           this.templateForm.week_days = ''
@@ -2359,7 +2359,7 @@
2359 2359
           }).join(',')
2360 2360
         }
2361 2361
         console.log("编辑模板",this.templateForm)
2362
-        
2362
+
2363 2363
         // 编辑创建医嘱模版
2364 2364
         CreateSingleAdviceTemplate(this.templateForm).then(response => {
2365 2365
           if (response.data.state == 0) {
@@ -2391,7 +2391,7 @@
2391 2391
         this.adviceTableDataTwo = []
2392 2392
       }, cancelEditHandleTwo() {
2393 2393
         this.templateEditFormTwoVisible = false
2394
-      }, 
2394
+      },
2395 2395
       submitEditTemplateTwo(formName) {
2396 2396
         this.$refs[formName].validate(valid => {
2397 2397
           this.templateFormEdit.single_dose = parseFloat(this.templateFormEdit.single_dose)
@@ -2512,7 +2512,7 @@
2512 2512
           this.editDialogTitle = '编辑医嘱'
2513 2513
           this.edit_advice_name = '医嘱内容'
2514 2514
         }
2515
-      }, 
2515
+      },
2516 2516
       openDelete(index, row) {
2517 2517
         this.hoverOrderArr = []
2518 2518
 
@@ -2689,14 +2689,14 @@
2689 2689
             this.adviceTableDataTwo.push(this.adviceTemplates[i])
2690 2690
           }
2691 2691
         }
2692
-      }, 
2692
+      },
2693 2693
       modifyTemplateName() {
2694 2694
         const params = {
2695 2695
           template_name: this.form.name,
2696 2696
           template_id: this.current_template_id
2697 2697
         }
2698 2698
         console.log("params---",params)
2699
-       
2699
+
2700 2700
         updateTemplateName(params).then(response => {
2701 2701
           if (response.data.state == 0) {
2702 2702
             this.$message.error(response.data.msg)
@@ -2825,9 +2825,9 @@
2825 2825
                 obj.id = base_drug_list[i].id
2826 2826
                 this.all_drug.push(obj)
2827 2827
               }
2828
-            }   
2828
+            }
2829 2829
         })
2830
-       
2830
+
2831 2831
     },
2832 2832
 
2833 2833
 
@@ -2871,7 +2871,6 @@
2871 2871
             }
2872 2872
         }
2873 2873
       },
2874
-
2875 2874
       changeDrugDescTwo(name) {
2876 2875
         this.current_drug_spec = name
2877 2876
         for (let i = 0; i < this.drugSpec.length; i++) {
@@ -2887,7 +2886,7 @@
2887 2886
           }
2888 2887
         }
2889 2888
       },
2890
-      
2889
+
2891 2890
 
2892 2891
      querySearch(queryString, cb) {
2893 2892
         console.log('queryString',queryString)

+ 1 - 1
src/xt_pages/outpatientDoctorStation/pastInquiries.vue View File

@@ -19,7 +19,7 @@
19 19
                 :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
20 20
         <el-table-column align="center" label="序号" width="60" type="index"></el-table-column>
21 21
         <el-table-column align="center" prop="name" label="姓名" width="100">
22
-          <template slot-scope="scope">{{ scope.row.patients.name }}</template>
22
+          <template slot-scope="scope">{{ scope.row.patient   .name }}</template>
23 23
         </el-table-column>
24 24
         <el-table-column align="center" prop="name" label="处方日期" width="110">
25 25
           <template slot-scope="scope"> {{getTimes(scope.row.info.ctime)}}</template>