소스 검색

hah阿凡达

28169 6 달 전
부모
커밋
9a53884e47

+ 35 - 0
src/api/patient.js 파일 보기

1332
     method:"Get",
1332
     method:"Get",
1333
     params:params
1333
     params:params
1334
   })
1334
   })
1335
+}
1336
+
1337
+export function saveCoureseTemplateTitle(data){
1338
+ 
1339
+  return request({
1340
+   url:"/api/patient/savecouresetemplatetitle",
1341
+   method:"post",
1342
+   data:data,
1343
+  })
1344
+}
1345
+
1346
+export function getPatientCoureOfTempalate(params){
1347
+  return request({
1348
+    url:"/api/patient/getpatientcourseoftemplate",
1349
+    method:"Get",
1350
+    params:params,
1351
+  })
1352
+}
1353
+
1354
+export function saveCourseOfNewTemplate(data){
1355
+
1356
+  return request({
1357
+    url:"/api/patient/savecourseofnewtemplate",
1358
+    method:"post",
1359
+    data:data
1360
+  })
1361
+}
1362
+
1363
+export function deleteCourseTempalte(id,params){
1364
+ 
1365
+  return request({
1366
+    url:"/api/patient/deletecourestempalte?id="+id,
1367
+    method:"Get",
1368
+    params:params
1369
+  })
1335
 }
1370
 }

+ 1 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 파일 보기

242
                     </el-col>
242
                     </el-col>
243
 
243
 
244
                     <el-col :span="8">
244
                     <el-col :span="8">
245
-                        <el-form-item label="电导度(mS/cm):" prop="conduct">
245
+                        <el-form-item label="电导度(mS/cm):" prop="conduct" v-if="isShows('电导度')">
246
                             <el-input v-model="dialysisPrescription.conduct"></el-input>
246
                             <el-input v-model="dialysisPrescription.conduct"></el-input>
247
                         </el-form-item>
247
                         </el-form-item>
248
                     </el-col>
248
                     </el-col>

+ 3 - 3
src/xt_pages/stock/detail/print.vue 파일 보기

60
               <td style="line-height: 50px">
60
               <td style="line-height: 50px">
61
                 <span v-if="type == 1"> {{ item.warehousing_count }}</span>
61
                 <span v-if="type == 1"> {{ item.warehousing_count }}</span>
62
                 <span v-if="type == 2">
62
                 <span v-if="type == 2">
63
-                  <span  v-if="org_id == 3907 || org_id == 9919 || org_id == 9583 || org_id == 0 || org_id == 10402">
63
+                  <span  v-if="org_id == 3907 || org_id == 9919 || org_id == 9583 || org_id == 0 || org_id == 10402 || org_id == 10721 || org_id == 10726 || org_id == 10697">
64
                     <!-- {{getStockCount(item.good_id) }} -->
64
                     <!-- {{getStockCount(item.good_id) }} -->
65
                     {{getMySelfCount(item.good_id) }}
65
                     {{getMySelfCount(item.good_id) }}
66
                   </span>
66
                   </span>
67
                    <span  v-if="org_id == 10265 || org_id == 10215">{{getMySelfCount(item.good_id) }}</span>
67
                    <span  v-if="org_id == 10265 || org_id == 10215">{{getMySelfCount(item.good_id) }}</span>
68
                    <span v-if="org_id == 10210 || org_id == 9671 || org_id == 9675 || org_id == 9679 || org_id == 10188 || org_id == 10217 || org_id == 9956 || org_id == 10191  || org_id ==10485">{{getWarehouseOut(item.good_id)}}</span>
68
                    <span v-if="org_id == 10210 || org_id == 9671 || org_id == 9675 || org_id == 9679 || org_id == 10188 || org_id == 10217 || org_id == 9956 || org_id == 10191  || org_id ==10485">{{getWarehouseOut(item.good_id)}}</span>
69
-                  <span v-if="org_id!=3907&&org_id!=10265 &&org_id!=9919&&org_id!=10285&&org_id!=9583&&org_id!=10215&&org_id!=10210&&org_id!=9671 &&org_id!=9679 &&org_id!=9675 && org_id!=10188&& org_id!=10217&& org_id!=9956&& org_id!=10191 && org_id!=0 && org_id!=10402 && org_id!=10485">{{getStockCount(item.good_id) }}</span>
69
+                  <span v-if="org_id!=3907&&org_id!=10265 &&org_id!=9919&&org_id!=10285&&org_id!=9583&&org_id!=10215&&org_id!=10210&&org_id!=9671 &&org_id!=9679 &&org_id!=9675 && org_id!=10188&& org_id!=10217&& org_id!=9956&& org_id!=10191 && org_id!=0 && org_id!=10402 && org_id!=10485 && org_id!=10721 && org_id!=10726 && org_id!=10697">{{getStockCount(item.good_id) }}</span>
70
                 </span>
70
                 </span>
71
 
71
 
72
                 <span v-if="type == 4"> {{ item.count }}</span>
72
                 <span v-if="type == 4"> {{ item.count }}</span>
90
               <td style="line-height:50px">
90
               <td style="line-height:50px">
91
                 <span v-if="type == 1">{{(item.warehousing_count * item.price).toFixed(2)}}</span>
91
                 <span v-if="type == 1">{{(item.warehousing_count * item.price).toFixed(2)}}</span>
92
                 <span v-if="type == 2">
92
                 <span v-if="type == 2">
93
-                  <span v-if="org_id == 3907 || org_id ==9919 || org_id == 0 || org_id ==10402 || org_id == 10721 || org_id == 10726 || org_id == 10697">
93
+                  <span v-if="org_id == 3907 || org_id ==9919 || org_id == 0 || org_id ==10402">
94
                     <!-- {{(getStockCount(item.good_id) * item.buy_price).toFixed(2)}} -->
94
                     <!-- {{(getStockCount(item.good_id) * item.buy_price).toFixed(2)}} -->
95
                      {{(getMySelfCount(item.good_id) * item.buy_price).toFixed(2)}}
95
                      {{(getMySelfCount(item.good_id) * item.buy_price).toFixed(2)}}
96
                      
96
                      

+ 4 - 4
src/xt_pages/user/components/PatientSidebar.vue 파일 보기

179
             //   name: '3-3',
179
             //   name: '3-3',
180
             //   label: '体格检查新'
180
             //   label: '体格检查新'
181
             // },
181
             // },
182
-            // {
183
-            //   name: '3-5',
184
-            //   label: '病程记录新'
185
-            // },
182
+            {
183
+              name: '3-5',
184
+              label: '病程记录新'
185
+            },
186
             {
186
             {
187
               name: '1-11',
187
               name: '1-11',
188
               label: '首次病程记录'
188
               label: '首次病程记录'

+ 106 - 33
src/xt_pages/user/courseOfDisease_new.vue 파일 보기

105
         center>
105
         center>
106
         <div>
106
         <div>
107
           模板名称:
107
           模板名称:
108
-          <el-input v-model="template_name" placeholder="请输入内容" style="width: 160px;"></el-input>
108
+          <el-input v-model="title" placeholder="请输入内容" style="width: 160px;"></el-input>
109
         </div>
109
         </div>
110
         <span slot="footer" class="dialog-footer">
110
         <span slot="footer" class="dialog-footer">
111
           <el-button @click="template_dialog = false">取 消</el-button>
111
           <el-button @click="template_dialog = false">取 消</el-button>
112
-          <el-button type="primary" @click="template_save">确 定</el-button>
112
+          <el-button type="primary" @click="saveTemplate">确 定</el-button>
113
         </span>
113
         </span>
114
       </el-dialog>
114
       </el-dialog>
115
       <el-dialog
115
       <el-dialog
122
           <div style="display: flex;">
122
           <div style="display: flex;">
123
             <div style="width: 27%;">
123
             <div style="width: 27%;">
124
               <el-table
124
               <el-table
125
-                :data="tableData"
125
+                :data="templateList"
126
                 :highlight-current-row="true"
126
                 :highlight-current-row="true"
127
                 @row-click="rowclick"
127
                 @row-click="rowclick"
128
+                 ref="record_table_one"
129
+                 @current-change="getCurrentChangeTwo"
128
                 style="width: 100%">
130
                 style="width: 100%">
129
-                <el-table-column
130
-                  prop="index"
131
-                  label="序号"
132
-                  width="">
131
+                <el-table-column prop="index" label="序号"  width="">
132
+                  <template slot-scope="scope">
133
+                       {{ scope.$index + 1 }}
134
+                   </template>
133
                 </el-table-column>
135
                 </el-table-column>
134
-                <el-table-column
135
-                  prop="name"
136
-                  label="模板名称"
137
-                  width="">
136
+                <el-table-column prop="name" label="模板名称" width="">
137
+                  <template slot-scope="scope">
138
+                       {{ scope.row.title }}
139
+                   </template>
138
                 </el-table-column>
140
                 </el-table-column>
139
               </el-table>
141
               </el-table>
140
             </div>
142
             </div>
142
               <div class="Second_title">模板内容</div>
144
               <div class="Second_title">模板内容</div>
143
               <div style="">
145
               <div style="">
144
                 <keep-alive>
146
                 <keep-alive>
145
-                  <ueditor ref="ue" :content="new_content" id="editor"></ueditor>
147
+                  <ueditor ref="editorOne" id="editors" :content="new_content"></ueditor>
146
                 </keep-alive>
148
                 </keep-alive>
147
               </div>
149
               </div>
148
             </div>
150
             </div>
151
         <span slot="footer" class="dialog-footer" style="text-align: center;">
153
         <span slot="footer" class="dialog-footer" style="text-align: center;">
152
           <el-button type="danger" @click="template_dele">删除模板</el-button>
154
           <el-button type="danger" @click="template_dele">删除模板</el-button>
153
           <el-button type="primary" @click="template_save">保存模板</el-button>
155
           <el-button type="primary" @click="template_save">保存模板</el-button>
154
-          <el-button type="primary" @click="template_save">应用</el-button>
156
+          <el-button type="primary" @click="toContentPint">应用</el-button>
155
           <el-button @click="library_dialog = false">取消</el-button>
157
           <el-button @click="library_dialog = false">取消</el-button>
156
         </span>
158
         </span>
157
       </el-dialog>
159
       </el-dialog>
226
     createNewCourseOfDiseaseRecord,
228
     createNewCourseOfDiseaseRecord,
227
     deleteNewCouseOfDisease,
229
     deleteNewCouseOfDisease,
228
     modifyCourseOfDiseaseRecord,
230
     modifyCourseOfDiseaseRecord,
229
-    getPatientCourseOfDiseaseList
231
+    getPatientCourseOfDiseaseList,
232
+    saveCoureseTemplateTitle,
233
+    getPatientCoureOfTempalate,
234
+    saveCourseOfNewTemplate,
235
+    deleteCourseTempalte
230
   } from '@/api/patient'
236
   } from '@/api/patient'
231
   import { fetchAllDoctorAndNurse } from "@/api/doctor";
237
   import { fetchAllDoctorAndNurse } from "@/api/doctor";
232
   import { parseTime } from '@/utils'
238
   import { parseTime } from '@/utils'
281
         admin_user_id:0,
287
         admin_user_id:0,
282
         record_date:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
288
         record_date:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
283
         template_name:"",
289
         template_name:"",
284
-        id:0
290
+        id:0,
291
+        doctorOptions:[],
292
+        template_content:"",
293
+        template_id:0,
294
+        title:"",
295
+        templateList:[]
285
       }
296
       }
286
     },
297
     },
287
     created() {
298
     created() {
304
 
315
 
305
     },
316
     },
306
     methods: {
317
     methods: {
307
-      template_dele(){
308
 
318
 
319
+      toContentPint(){
320
+        this.$refs.editor.contents = this.template_content
321
+        this.library_dialog = false
322
+      },
323
+      getCurrentChangeOne(val){
324
+        this.$refs.editor.contents = val.content
325
+        this.record_date = this.getTime(val.record_time)
326
+        this.id = val.id
309
       },
327
       },
310
-      rowclick(){
328
+      getCurrentChangeTwo(val){
329
+   
330
+        this.$refs.editorOne.contents = val.content
331
+        this.template_content = ""
332
+        this.template_content = val.content
333
+        this.template_id = val.id
334
+     },
335
+     template_dele(){
336
+       deleteCourseTempalte(this.template_id).then(response=>{
337
+        if(response.data.state == 1){
338
+          var msg =  response.data.data.msg
339
+          this.$message.success("删除成功!")
340
+          this.library_dialog = false
341
+          this.getPatientCoureOfTempalateOne()
342
+        }
343
+      })
344
+     },
345
+     getPatientCoureOfTempalateOne(){
346
+
347
+     },
348
+     rowclick(){
311
 
349
 
312
       },
350
       },
313
       prints(){
351
       prints(){
314
 
352
 
353
+      },
354
+      saveTemplate(){
355
+   
356
+        var params = {
357
+          title:this.title,
358
+          content: this.$refs.editor.contents,
359
+        }
360
+      saveCoureseTemplateTitle(params).then(response=>{
361
+        if(response.data.state == 1){
362
+          var courseTemplate =  response.data.data.courseTemplate
363
+          this.$message.success("保存成功!")
364
+          this.template_dialog = false
365
+        }
366
+        })
315
       },
367
       },
316
       template_save(){
368
       template_save(){
317
-
369
+        var params = {
370
+         template_id:this.template_id,
371
+         content:this.$refs.editorOne.contents
372
+        }
373
+      
374
+        saveCourseOfNewTemplate(params).then(response=>{
375
+           if(response.data.state == 1){
376
+              var msg = response.data.data.msg
377
+              this.$message.success("保存成功")
378
+              this.library_dialog = false
379
+           }
380
+        })
318
       },
381
       },
319
       getDocName(admin_user_id){
382
       getDocName(admin_user_id){
320
         var user_name = ""
383
         var user_name = ""
347
        });
410
        });
348
       },
411
       },
349
       add_click(){
412
       add_click(){
350
-        this.add_index = 1
413
+        this.admin_user_id = ""
414
+        this.admin_user_id = this.$store.getters.xt_user.user.id
415
+        this.fetchAllDoctorAndNurse()
416
+        this.$refs.editor.contents = ""
417
+        this.id = 0
351
         this.disabled = false
418
         this.disabled = false
419
+        this.add_index = 1
352
       },
420
       },
353
       showCancel(){
421
       showCancel(){
354
         this.add_index = 0
422
         this.add_index = 0
388
         if(this.add_index ==0){
456
         if(this.add_index ==0){
389
           this.template_dialog = true
457
           this.template_dialog = true
390
         }else{
458
         }else{
391
-          this.library_dialog = true
392
-        }
459
+         getPatientCoureOfTempalate().then(response=>{
460
+          if(response.data.state == 1){
461
+            this.library_dialog = true
462
+            this.templateList = response.data.data.templateList
463
+            console.log("hahhahahaha",this.$refs)
464
+            if(this.templateList!=null && this.templateList.length>0){
465
+              this.$refs.record_table_one.setCurrentRow(this.templateList[0])
466
+            }
467
+            console.log("haaaaaaaaaaaaa",this.templateList)
468
+            
469
+          }
470
+        })
471
+     
472
+       }
393
       },
473
       },
394
       auto_click(){
474
       auto_click(){
395
         this.auto_dialog = true
475
         this.auto_dialog = true
524
           deleteNewCouseOfDisease(this.id).then(response=>{
604
           deleteNewCouseOfDisease(this.id).then(response=>{
525
             if (response.data.state==1) {
605
             if (response.data.state==1) {
526
               var msg = response.data.data.msg
606
               var msg = response.data.data.msg
527
-              this.$message.success("保存成功!")
607
+              this.$message.success("删除成功!")
528
               this.getlist()
608
               this.getlist()
529
             }
609
             }
530
           });
610
           });
535
 
615
 
536
       },
616
       },
537
       showEdit() {
617
       showEdit() {
538
-        if (this.table_current_index == -1) {
539
-          this.$message.error('请选择要修改的病程内容')
540
-          return
541
-        }
542
-        this.show_edit_dialog = true
543
-        this.edit_course_of_disease_time = this.recordTime(this.records[this.table_current_index].record_time)
544
-        this.edit_new_content = this.records[this.table_current_index].content
545
-        this.edit_current_id = this.records[this.table_current_index].id
546
-        this.edit_title = this.records[this.table_current_index].title
547
-        this.$refs.record_table.setCurrentRow(null)
618
+       
619
+        this.add_index =1
620
+        this.disabled = false
548
 
621
 
549
       }, tableRow({ row, rowIndex }) {
622
       }, tableRow({ row, rowIndex }) {
550
         // 把每一行的索引放进row
623
         // 把每一行的索引放进row
703
         return anticoagulant_name
776
         return anticoagulant_name
704
       },
777
       },
705
       getTime (time) {
778
       getTime (time) {
706
-      return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
779
+      return uParseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
707
       },
780
       },
708
       getTimeOne (time) {
781
       getTimeOne (time) {
709
       return uParseTime(time, '{y}-{m}-{d}')
782
       return uParseTime(time, '{y}-{m}-{d}')

+ 3 - 1
src/xt_pages/user/deathSummary.vue 파일 보기

518
           transplant:transplant,
518
           transplant:transplant,
519
           patient_id:this.patientID,
519
           patient_id:this.patientID,
520
           remark:this.remark,
520
           remark:this.remark,
521
-          last_record_date:this.last_record_date
521
+          last_record_date:this.last_record_date?this.last_record_date:""
522
         }
522
         }
523
         console.log("parasm===============",params)
523
         console.log("parasm===============",params)
524
        
524
        
609
                }
609
                }
610
                if(deathSummary.last_record_date>0){
610
                if(deathSummary.last_record_date>0){
611
                 this.last_record_date = this.getTime(deathSummary.last_record_date)
611
                 this.last_record_date = this.getTime(deathSummary.last_record_date)
612
+               }else{
613
+                this.last_record_date = ""
612
                }
614
                }
613
                 this.updateShow = true
615
                 this.updateShow = true
614
                 this.deathDisabed = true
616
                 this.deathDisabed = true