XMLWAN 3 lat temu
rodzic
commit
858132a806

+ 8 - 0
src/api/drug/drug_stock.js Wyświetl plik

485
     params: params
485
     params: params
486
   })
486
   })
487
 }
487
 }
488
+
489
+export function getAutoDrugDetail(params) {
490
+  return request({
491
+    url: '/api/drug/getautodrugdetial',
492
+    method: 'Get',
493
+    params: params
494
+  })
495
+}

+ 51 - 66
src/api/patient.js Wyświetl plik

70
 }
70
 }
71
 
71
 
72
 export function editPatientDialysisSolution(patient, id, solution, mode) {
72
 export function editPatientDialysisSolution(patient, id, solution, mode) {
73
-  
74
   return request({
73
   return request({
75
     url: '/api/patients/dialysissolution/edit?patient=' + patient + '&id=' + id + '&mode=' + mode,
74
     url: '/api/patients/dialysissolution/edit?patient=' + patient + '&id=' + id + '&mode=' + mode,
76
     method: 'put',
75
     method: 'put',
158
 }
157
 }
159
 
158
 
160
 export function createCourseOfDiseaseRecord(patient_id, content, record_time, title) {
159
 export function createCourseOfDiseaseRecord(patient_id, content, record_time, title) {
161
-  
162
   var params = {
160
   var params = {
163
     patient_id: patient_id,
161
     patient_id: patient_id,
164
     content: content,
162
     content: content,
165
     record_time: record_time,
163
     record_time: record_time,
166
     title: title
164
     title: title
167
   }
165
   }
168
-  console.log("params222222",params)
166
+  console.log('params222222', params)
169
   return request({
167
   return request({
170
     url: '/api/patient/course/create',
168
     url: '/api/patient/course/create',
171
-    method: 'post',
172
-    data: params
169
+    method: 'get',
170
+    params: params
173
   })
171
   })
174
 }
172
 }
175
 
173
 
185
   }
183
   }
186
   return request({
184
   return request({
187
     url: '/api/patient/course/modify',
185
     url: '/api/patient/course/modify',
188
-    method: 'post',
189
-    data: params
186
+    method: 'get',
187
+    params: params
190
   })
188
   })
191
 }
189
 }
192
 
190
 
376
 }
374
 }
377
 
375
 
378
 export function deleteDryWeight(id, data) {
376
 export function deleteDryWeight(id, data) {
379
- 
380
   return request({
377
   return request({
381
     url: '/api/patient/deletedryweight?id=' + id,
378
     url: '/api/patient/deletedryweight?id=' + id,
382
     method: 'delete',
379
     method: 'delete',
384
   })
381
   })
385
 }
382
 }
386
 
383
 
387
-
388
-export function saveVasularAccess(params){
389
-   
384
+export function saveVasularAccess(params) {
390
   return request({
385
   return request({
391
-    url:"/api/patient/savevasularaccess",
392
-    method:"Get",
393
-    params:params
386
+    url: '/api/patient/savevasularaccess',
387
+    method: 'Get',
388
+    params: params
394
   })
389
   })
395
-} 
390
+}
396
 
391
 
397
-export function getAllVascularAccessList(params){
398
-  
392
+export function getAllVascularAccessList(params) {
399
   return request({
393
   return request({
400
-    url:"/api/patient/getallvascualraccesslist",
401
-    method:"Get",
402
-    params:params
394
+    url: '/api/patient/getallvascualraccesslist',
395
+    method: 'Get',
396
+    params: params
403
   })
397
   })
404
 }
398
 }
405
 
399
 
406
-export function getVascularAccessByDetail(id,params){
407
-  
400
+export function getVascularAccessByDetail(id, params) {
408
   return request({
401
   return request({
409
-    url:"/api/patient/getvascularaccessbydetial?id="+id,
410
-    method:"get",
411
-    params:params,
402
+    url: '/api/patient/getvascularaccessbydetial?id=' + id,
403
+    method: 'get',
404
+    params: params
412
   })
405
   })
413
 }
406
 }
414
 
407
 
415
-export function updatedVasularAccess(params){
416
-  
408
+export function updatedVasularAccess(params) {
417
   return request({
409
   return request({
418
-    url:"/api/patient/updatevasularaccess",
419
-    method:"get",
420
-    params:params
410
+    url: '/api/patient/updatevasularaccess',
411
+    method: 'get',
412
+    params: params
421
   })
413
   })
422
 }
414
 }
423
 
415
 
424
-export function DeleteVascularAccess(id,params){
425
-  
416
+export function DeleteVascularAccess(id, params) {
426
   return request({
417
   return request({
427
-    url:"/api/patient/deletevascularaccess?id="+id,
428
-    method:"get",
429
-    params:params
418
+    url: '/api/patient/deletevascularaccess?id=' + id,
419
+    method: 'get',
420
+    params: params
430
   })
421
   })
431
 }
422
 }
432
 
423
 
433
-export function savePasswayAssessment(params){
434
-  
424
+export function savePasswayAssessment(params) {
435
   return request({
425
   return request({
436
-    url:"/api/patient/savepasswayassessment",
437
-    method:"get",
438
-    params:params
426
+    url: '/api/patient/savepasswayassessment',
427
+    method: 'get',
428
+    params: params
439
   })
429
   })
440
 }
430
 }
441
 
431
 
442
-export function getAllPassWayAssessmentList(params){
443
-  
432
+export function getAllPassWayAssessmentList(params) {
444
   return request({
433
   return request({
445
-    url:"/api/patient/getallpasswayassessment",
446
-    method:"get",
447
-    params:params
434
+    url: '/api/patient/getallpasswayassessment',
435
+    method: 'get',
436
+    params: params
448
   })
437
   })
449
 }
438
 }
450
 
439
 
451
-export function getPassWayAssessmentById(id,params){
452
-  
440
+export function getPassWayAssessmentById(id, params) {
453
   return request({
441
   return request({
454
-    url:"/api/patient/getpasswayassmentbyid?id="+id,
455
-    method:"Get",
456
-    params:params,
442
+    url: '/api/patient/getpasswayassmentbyid?id=' + id,
443
+    method: 'Get',
444
+    params: params
457
   })
445
   })
458
 }
446
 }
459
 
447
 
460
-export function updatePasswayAssessment(params){
461
-  
448
+export function updatePasswayAssessment(params) {
462
   return request({
449
   return request({
463
-    url:"/api/patient/updatepasswayassesment",
464
-    method:"get",
465
-    params:params
450
+    url: '/api/patient/updatepasswayassesment',
451
+    method: 'get',
452
+    params: params
466
   })
453
   })
467
 }
454
 }
468
 
455
 
469
-export function DeletePassWayAssessMent(id,params){
470
-  
456
+export function DeletePassWayAssessMent(id, params) {
471
   return request({
457
   return request({
472
-    url:"/api/patient/deletepasswayassessment?id="+id,
473
-    method:"get",
474
-    params:params
458
+    url: '/api/patient/deletepasswayassessment?id=' + id,
459
+    method: 'get',
460
+    params: params
475
   })
461
   })
476
 }
462
 }
477
 
463
 
478
-export function getAccessList(params){
479
-  
464
+export function getAccessList(params) {
480
   return request({
465
   return request({
481
-    url:"/api/patient/getaccesslist",
482
-    method:"get",
483
-    params:params
466
+    url: '/api/patient/getaccesslist',
467
+    method: 'get',
468
+    params: params
484
   })
469
   })
485
-}
470
+}

+ 96 - 3
src/xt_pages/stock/drugs/drugStockOutOrder.vue Wyświetl plik

195
       </el-pagination>
195
       </el-pagination>
196
     </div>
196
     </div>
197
 
197
 
198
+
199
+<!-- 使用详情 -->
198
     <div v-show="tableShow" style="margin-bottom:10px">
200
     <div v-show="tableShow" style="margin-bottom:10px">
199
       <el-table
201
       <el-table
200
         :data="tableList"
202
         :data="tableList"
286
             {{scope.row.remark}}
288
             {{scope.row.remark}}
287
           </template>
289
           </template>
288
         </el-table-column>
290
         </el-table-column>
291
+
292
+        <el-table-column label="操作" align="center">
293
+          <template slot-scope="scope">
294
+             <span style="color: #589ff8" v-if="scope.row.is_sys == 1" @click="toDetail(scope.row)">使用明细</span>
295
+          </template>
296
+        </el-table-column>
289
       </el-table>
297
       </el-table>
290
 
298
 
291
     </div>
299
     </div>
442
         <el-button type="primary" @click="dialogVisibleTwo = false">确 定</el-button>
450
         <el-button type="primary" @click="dialogVisibleTwo = false">确 定</el-button>
443
       </span>
451
       </span>
444
     </el-dialog>
452
     </el-dialog>
445
-  </div>
453
+
454
+
455
+   
456
+    <el-dialog
457
+      title="提示"
458
+      :visible.sync="drugDialogVisible"
459
+      width="90%">
460
+      <span>
461
+        <el-table :data="userList" :class="signAndWeighBoxPatients" style="width: 50%"
462
+                  border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
463
+        >
464
+          <el-table-column min-width="35" align="center">
465
+            <template slot="header" slot-scope="scope">
466
+              <span>序号</span>
467
+            </template>
468
+            <template slot-scope="scope">
469
+              <span v-if="scope.row.is_total == 0">{{scope.$index+1}}</span>
470
+              <span v-if="scope.row.is_total == 1">{{'合计'}}</span>
471
+            </template>
472
+          </el-table-column>
473
+
474
+          <el-table-column min-width="35" align="center">
475
+            <template slot="header" slot-scope="scope">
476
+              <span>使用人</span>
477
+            </template>
478
+            <template slot-scope="scope">
479
+              <span v-if="scope.row.is_total == 0">{{scope.row.user.name}}</span>
480
+              <span v-if="scope.row.is_total == 1"></span>
481
+            </template>
482
+          </el-table-column>
483
+          <el-table-column min-width="35" align="center">
484
+            <template slot="header" slot-scope="scope">
485
+              <span>使用数量</span>
486
+            </template>
487
+            <template slot-scope="scope">
488
+              <span >{{scope.row.count}}</span>
489
+            </template>
490
+          </el-table-column>
491
+
492
+          <el-table-column min-width="35" align="center">
493
+            <template slot="header" slot-scope="scope">
494
+              <span>使用时间</span>
495
+            </template>
496
+            <template slot-scope="scope">
497
+              <span  v-if="scope.row.is_total == 0">{{scope.row.ctime | parseTime('{y}-{m}-{d} {h}:{i}')}} </span>
498
+              <span  v-if="scope.row.is_total == 1">{{scope.row.total}} </span>
499
+            </template>
500
+          </el-table-column>
501
+
502
+        </el-table>
503
+      </span>
504
+      <span slot="footer" class="dialog-footer">
505
+        <el-button @click="drugDialogVisible = false">取 消</el-button>
506
+        <el-button type="primary" @click="drugDialogVisible = false">确 定</el-button>
507
+      </span>
508
+    </el-dialog>
509
+   </div>
446
 </template>
510
 </template>
447
 
511
 
448
 <script>
512
 <script>
456
   getDrugWarehouseOutInfo,
520
   getDrugWarehouseOutInfo,
457
   getDrugWarehouseOutUser,
521
   getDrugWarehouseOutUser,
458
   getDrugAutoMaticList,
522
   getDrugAutoMaticList,
459
-  getSinleOrderDetail
523
+  getSinleOrderDetail,
524
+  getAutoDrugDetail
460
 } from "@/api/drug/drug_stock";
525
 } from "@/api/drug/drug_stock";
461
 import BreadCrumb from "../../components/bread-crumb";
526
 import BreadCrumb from "../../components/bread-crumb";
462
 import { getInitializtion } from '@/api/stock'
527
 import { getInitializtion } from '@/api/stock'
528
       drugTypeList:[],
593
       drugTypeList:[],
529
       tableShow:false,
594
       tableShow:false,
530
       manufacturerList:[],
595
       manufacturerList:[],
596
+      drugDialogVisible:false,
531
     };
597
     };
532
   },
598
   },
533
   methods: {
599
   methods: {
976
           this.tableList = list
1042
           this.tableList = list
977
         }
1043
         }
978
      })
1044
      })
979
-   }
1045
+   },
1046
+   toDetail(val){
1047
+    
1048
+     console.log("val",val)
1049
+     var params = {
1050
+       drug_id:val.drug_id,
1051
+       record_time:val.sys_record_time,
1052
+     }
1053
+     this.userList = []
1054
+     getAutoDrugDetail(params).then(response=>{
1055
+       if(response.data.state == 1){
1056
+        this.drugDialogVisible = true
1057
+        var total = 0
1058
+        for (let i = 0; i < response.data.data.list.length; i++) {
1059
+          var obj = response.data.data.list[i]
1060
+          obj['is_total'] = 0
1061
+          this.userList.push(obj)
1062
+          total = total + response.data.data.list[i].count
1063
+        }
1064
+        this.userList.push({
1065
+          is_total: 1,
1066
+          total: total,
1067
+        })
1068
+       }
1069
+     })
1070
+   },
1071
+
1072
+    
980
   }
1073
   }
981
 };
1074
 };
982
 </script>
1075
 </script>

+ 1 - 0
src/xt_pages/user/courseOfDisease.vue Wyświetl plik

335
           return
335
           return
336
         }
336
         }
337
         this.uploading_new_record = true
337
         this.uploading_new_record = true
338
+        
338
         createCourseOfDiseaseRecord(this.patient_id, this.new_content, this.course_of_disease_time, this.title).then(rs => {
339
         createCourseOfDiseaseRecord(this.patient_id, this.new_content, this.course_of_disease_time, this.title).then(rs => {
339
           this.uploading_new_record = false
340
           this.uploading_new_record = false
340
           var resp = rs.data
341
           var resp = rs.data