Quellcode durchsuchen

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

csx vor 4 Jahren
Ursprung
Commit
79a8cd38ee

+ 7 - 3
src/api/advice.js Datei anzeigen

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

+ 85 - 0
src/api/his/his.js Datei anzeigen

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 Datei anzeigen

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

+ 10 - 2
src/router/modules/templateManagement.js Datei anzeigen

27
         meta: {
27
         meta: {
28
           title: 'template',
28
           title: 'template',
29
           noCache: true,
29
           noCache: true,
30
-    
30
+
31
         }
31
         }
32
     },
32
     },
33
     {
33
     {
38
           title: 'system_prescription'
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 Datei anzeigen

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

+ 1 - 1
src/xt_pages/outpatientDoctorStation/pastInquiries.vue Datei anzeigen

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