浏览代码

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

see999 3 年前
父节点
当前提交
56f78aa937

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

@@ -485,3 +485,11 @@ export function getSinleOrderDetail(params) {
485 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 查看文件

@@ -70,7 +70,6 @@ export function createPatientDialysisSolution(id, solution, mode) {
70 70
 }
71 71
 
72 72
 export function editPatientDialysisSolution(patient, id, solution, mode) {
73
-  
74 73
   return request({
75 74
     url: '/api/patients/dialysissolution/edit?patient=' + patient + '&id=' + id + '&mode=' + mode,
76 75
     method: 'put',
@@ -158,18 +157,17 @@ export function getCourseOfDiseaseRecords(patient_id, start_time_ymd, end_time_y
158 157
 }
159 158
 
160 159
 export function createCourseOfDiseaseRecord(patient_id, content, record_time, title) {
161
-  
162 160
   var params = {
163 161
     patient_id: patient_id,
164 162
     content: content,
165 163
     record_time: record_time,
166 164
     title: title
167 165
   }
168
-  console.log("params222222",params)
166
+  console.log('params222222', params)
169 167
   return request({
170 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,8 +183,8 @@ export function modifyCourseOfDiseaseRecord(patient_id, content, record_time, id
185 183
   }
186 184
   return request({
187 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,7 +374,6 @@ export function modifyDryWeightData(params) {
376 374
 }
377 375
 
378 376
 export function deleteDryWeight(id, data) {
379
- 
380 377
   return request({
381 378
     url: '/api/patient/deletedryweight?id=' + id,
382 379
     method: 'delete',
@@ -384,102 +381,90 @@ export function deleteDryWeight(id, data) {
384 381
   })
385 382
 }
386 383
 
387
-
388
-export function saveVasularAccess(params){
389
-   
384
+export function saveVasularAccess(params) {
390 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 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 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 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 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 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 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 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 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 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 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
+}

+ 0 - 1
src/xt_pages/data/components/project.vue 查看文件

@@ -228,7 +228,6 @@ export default {
228 228
               label: '未备案'
229 229
           }],
230 230
           is_mark:"",
231
-          limit:100,
232 231
           page:1,
233 232
           departMentList:[],
234 233
            dialogVisible:false,

+ 96 - 3
src/xt_pages/stock/drugs/drugStockOutOrder.vue 查看文件

@@ -195,6 +195,8 @@
195 195
       </el-pagination>
196 196
     </div>
197 197
 
198
+
199
+<!-- 使用详情 -->
198 200
     <div v-show="tableShow" style="margin-bottom:10px">
199 201
       <el-table
200 202
         :data="tableList"
@@ -286,6 +288,12 @@
286 288
             {{scope.row.remark}}
287 289
           </template>
288 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 297
       </el-table>
290 298
 
291 299
     </div>
@@ -442,7 +450,63 @@
442 450
         <el-button type="primary" @click="dialogVisibleTwo = false">确 定</el-button>
443 451
       </span>
444 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 510
 </template>
447 511
 
448 512
 <script>
@@ -456,7 +520,8 @@ import {
456 520
   getDrugWarehouseOutInfo,
457 521
   getDrugWarehouseOutUser,
458 522
   getDrugAutoMaticList,
459
-  getSinleOrderDetail
523
+  getSinleOrderDetail,
524
+  getAutoDrugDetail
460 525
 } from "@/api/drug/drug_stock";
461 526
 import BreadCrumb from "../../components/bread-crumb";
462 527
 import { getInitializtion } from '@/api/stock'
@@ -528,6 +593,7 @@ export default {
528 593
       drugTypeList:[],
529 594
       tableShow:false,
530 595
       manufacturerList:[],
596
+      drugDialogVisible:false,
531 597
     };
532 598
   },
533 599
   methods: {
@@ -976,7 +1042,34 @@ export default {
976 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 1075
 </script>

+ 6 - 1
src/xt_pages/stock/stockInOrderEdit.vue 查看文件

@@ -610,10 +610,13 @@ export default {
610 610
               return;
611 611
             }
612 612
           }
613
-
613
+          for(let i=0;i<this.recordInfo.recordData.length;i++){
614
+            this.recordInfo.recordData[i].price = this.recordInfo.recordData[i].price.toString()
615
+          }
614 616
           const params = {
615 617
             stockIn: this.recordInfo.recordData
616 618
           };
619
+          console.log("params2222",params)
617 620
           EditWarehouse(
618 621
             params,
619 622
             this.warehousing_time,
@@ -660,7 +663,9 @@ export default {
660 663
             response.data.data.info[i].good_name = response.data.data.info[i].GoodInfo.good_name
661 664
             response.data.data.info[i].name = response.data.data.info[i].GoodInfo.specification_name + "*" + response.data.data.info[i].GoodInfo.min_number+response.data.data.info[i].GoodInfo.min_unit
662 665
             response.data.data.info[i].min_unit = response.data.data.info[i].GoodInfo.min_unit
666
+           
663 667
             this.recordInfo.recordData.push(response.data.data.info[i]);
668
+           
664 669
             console.log("列表",this.recordInfo.recordData)
665 670
           }
666 671
 

+ 1 - 0
src/xt_pages/user/courseOfDisease.vue 查看文件

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