ソースを参照

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

csx 3 年 前
コミット
fa18304da0

+ 16 - 0
src/api/stock.js ファイルの表示

@@ -745,3 +745,19 @@ export function getAllStockPrice(params) {
745 745
     params: params
746 746
   })
747 747
 }
748
+
749
+export function getCheckedPrice(params) {
750
+  return request({
751
+    url: '/api/stock/getcheckprice',
752
+    method: 'get',
753
+    params: params
754
+  })
755
+}
756
+
757
+export function SaveCheckedPrice(params) {
758
+  return request({
759
+    url: '/api/stock/savecheckedprice',
760
+    method: 'get',
761
+    params: params
762
+  })
763
+}

+ 4 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue ファイルの表示

@@ -666,7 +666,7 @@
666 666
             <tr>
667 667
               <td colspan="7">
668 668
                 <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
669
-                  <div class="inline_block" style="flex:1;">
669
+                  <div class="inline_block" style="flex:1;display: flex;align-items: center;">
670 670
                     上机护士:
671 671
                     <div class="under_line" style="width: 80px;text-align: center">
672 672
                       <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.start_nurse) == ''">
@@ -674,7 +674,7 @@
674 674
                       <img style="height:30px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.start_nurse)" alt="" srcset="" v-else />
675 675
                     </div>
676 676
                   </div>
677
-                  <div class="inline_block" style="flex:1;">
677
+                  <div class="inline_block" style="flex:1;display: flex;align-items: center;">
678 678
                     核对人员:
679 679
                     <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder == null">
680 680
                       <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
@@ -701,7 +701,7 @@
701 701
                       <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />
702 702
                     </div>
703 703
                   </div>
704
-                  <div class="inline_block" style="flex:1;">
704
+                  <div class="inline_block" style="flex:1;display: flex;align-items: center;">
705 705
                     下机护士:
706 706
                     <div class="under_line" style="width: 80px;text-align: center">
707 707
                       <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) == ''">
@@ -710,7 +710,7 @@
710 710
                       <img style="height:30px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse)" alt="" srcset="" v-else />
711 711
                     </div>
712 712
                   </div>
713
-                  <div class="inline_block" style="flex:1;">
713
+                  <div class="inline_block" style="flex:1;display: flex;align-items: center;">
714 714
                     治疗医生:
715 715
                     <div class="under_line" style="width: 80px;text-align: center">
716 716
                       <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(prescription.prescription_doctor) == ''">

+ 93 - 7
src/xt_pages/stock/stockModifyPrice.vue ファイルの表示

@@ -24,14 +24,14 @@
24 24
             >
25 25
             <el-date-picker
26 26
             size="small"
27
-            v-model="value1"
27
+            v-model="start_time"
28 28
             type="date"
29 29
             style="margin-left:5px;width:140px;"
30 30
             placeholder="选择日期">
31 31
             </el-date-picker>
32 32
             <el-date-picker
33 33
             size="small"
34
-            v-model="value2"
34
+            v-model="end_time"
35 35
             type="date"
36 36
             style="margin-left:5px;width:140px;"
37 37
             placeholder="选择日期">
@@ -39,14 +39,15 @@
39 39
         </div>
40 40
         <div>
41 41
             <el-button size="small" type="primary" @click="dialogVisible = true">新增</el-button>
42
-            <el-button size="small" type="primary">核对</el-button>
42
+            <el-button size="small" type="primary" @click="toCheck">核对</el-button>
43 43
             <el-button size="small" type="primary" @click="print">打印</el-button>
44 44
             <el-button size="small" type="primary">导出</el-button>
45 45
         </div>
46 46
       </div>
47 47
       <div>
48 48
             <div style="width:100%;margin-right:10px;margin-top:10px">
49
-                <el-table :data="tableList" border :height="tableHeight" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
49
+                <el-table :data="tableList" border :height="tableHeight" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"   @selection-change="changePrice">
50
+                    <el-table-column type="selection" width="55" align="center"> </el-table-column>
50 51
                     <el-table-column prop="date" label="单据编码" width="100">
51 52
                         <template slot-scope="scope" align="center">
52 53
                           {{scope.row.warehousing_order}}
@@ -64,7 +65,7 @@
64 65
                     </el-table-column>
65 66
                     <el-table-column label="单位" width="100">
66 67
                       <template slot-scope="scope">
67
-                         {{scope.row.GoodInfo.packing_unit}}
68
+                         {{scope.row.packing_unit}}
68 69
                       </template>
69 70
                     </el-table-column>
70 71
                     <el-table-column label="调价数量" width="100">
@@ -368,12 +369,54 @@
368 369
             <el-button type="primary" @click="upatePrice">保存</el-button>
369 370
         </span>
370 371
     </el-dialog>
372
+
373
+    <el-dialog
374
+        title="耗材调价核对"
375
+        :visible.sync="checkDialogVisible"
376
+        width="30%"
377
+        >
378
+        <span>
379
+          <el-form :model="form">
380
+            <el-row>
381
+              <el-col>
382
+                <el-form-item label="核对时间">
383
+                 <el-date-picker
384
+                    size="small"
385
+                    v-model="check_time"
386
+                    type="date"
387
+                    style="margin-left:5px;width:140px;"
388
+                    placeholder="选择日期">
389
+                  </el-date-picker>
390
+                </el-form-item>  
391
+              </el-col>
392
+            </el-row>  
393
+             <el-row>
394
+              <el-col>
395
+                <el-form-item label="核对人">
396
+                  <el-select v-model="checker" placeholder="请选择">
397
+                    <el-option
398
+                    v-for="item in doctorList"
399
+                    :key="item.admin_user_id"
400
+                    :label="item.user_name"
401
+                    :value="item.admin_user_id">
402
+                    </el-option>
403
+                 </el-select>
404
+                </el-form-item>  
405
+              </el-col>
406
+            </el-row>  
407
+          </el-form>  
408
+        </span>
409
+        <span slot="footer" class="dialog-footer">
410
+            <el-button @click="checkDialogVisible = false">取 消</el-button>
411
+            <el-button type="primary" @click="SaveCheckedPrice">保 存</el-button>
412
+        </span>
413
+    </el-dialog>
371 414
   </div>
372 415
 </template>
373 416
 
374 417
 <script>
375 418
 import BreadCrumb from "../components/bread-crumb";
376
-import { postSearchGoodWarehouseList,saveAdjustPrice,getAllStockPrice} from "@/api/stock"
419
+import { postSearchGoodWarehouseList,saveAdjustPrice,getAllStockPrice,SaveCheckedPrice} from "@/api/stock"
377 420
 import { uParseTime } from '@/utils/tools'
378 421
 export default {
379 422
     name: "stockModifyPrice",
@@ -417,7 +460,13 @@ export default {
417 460
             currentIndex: 0,
418 461
             editPriceDialogVisible:false,
419 462
             tableList:[],
420
-            doctorList:[]
463
+            doctorList:[],
464
+            start_time:"",
465
+            end_time:"",
466
+            ids:"",
467
+            check_time:new Date(),
468
+            checker:this.$store.getters.xt_user.user.user_name,
469
+            checkDialogVisible:false,
421 470
         }
422 471
     },
423 472
     methods:{
@@ -582,6 +631,7 @@ export default {
582 631
             start_time:this.start_time,
583 632
             end_time:this.end_time,
584 633
          }
634
+        console.log("params",params)
585 635
        getAllStockPrice(params).then(response=>{
586 636
          if(response.data.state == 1){
587 637
            var list = response.data.data.list
@@ -601,6 +651,42 @@ export default {
601 651
           }
602 652
        }
603 653
        return user_name
654
+     },
655
+     changePrice(val){
656
+       console.log("val23232322323",val)
657
+      
658
+       var arr = []
659
+      
660
+       for(let i=0;i<val.length;i++){
661
+         arr.push(val[i].id)
662
+       }
663
+      var str = arr.join(",")
664
+    
665
+      console.log("str",str)
666
+      this.ids = str
667
+     
668
+     },
669
+     toCheck(){
670
+      if(this.ids.length <=0){
671
+         this.$message.error("请勾选核对数据")
672
+         return
673
+       }else{
674
+         this.checkDialogVisible = true
675
+       }
676
+    
677
+     },
678
+     SaveCheckedPrice(){
679
+         var params = {
680
+            ids:this.ids,
681
+            check_time:this.getTime(this.check_time),
682
+            checker:this.checker,
683
+         }
684
+       console.log("params",params)
685
+       SaveCheckedPrice(params).then(response=>{
686
+         if(response.data.state == 1){
687
+            
688
+         }
689
+       })
604 690
      }
605 691
     },
606 692
     created(){

+ 15 - 2
src/xt_pages/user/templateSummary.vue ファイルの表示

@@ -74,7 +74,18 @@
74 74
                   <span style="margin-right:10px;line-height:20px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
75 75
                 </div>
76 76
                 <!-- <el-divider></el-divider> -->
77
-                <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结总结:{{editObj.template_inspection_content}}</div>  
77
+                <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结总结:
78
+                  <div>
79
+                    <div v-for="item in editObj.template_inspection_content">
80
+                    <p style="font-weight: bold;margin: 10px 0;">{{ item.project_name }}</p>
81
+                    <div style="display:flex;flex-wrap: wrap;">
82
+                      <div v-for="it in item.arr" style="width:33%;">
83
+                        {{ it.item_name }} {{ it.inspect_value }}
84
+                      </div>
85
+                    </div>
86
+                  </div>
87
+                  </div>
88
+                </div>  
78 89
                 <!-- <el-divider></el-divider> -->
79 90
                 <div style="padding:10px;line-height:20px;">阶段小结个体化透析方案:{{editObj.template_plan_content}}</div>
80 91
               </div>
@@ -1218,6 +1229,8 @@
1218 1229
            if(response.data.state == 1){
1219 1230
               var list = response.data.data.list
1220 1231
               console.log("🔎3232322323232332",list)
1232
+              let arr = list.template_inspection_content ? JSON.parse(list.template_inspection_content) : []
1233
+              list.template_inspection_content = arr
1221 1234
               this.editObj = list
1222 1235
 
1223 1236
            }
@@ -1355,7 +1368,7 @@
1355 1368
             befor_pressure:parseInt(this.form.befor_pressure),
1356 1369
             template_summary_content:this.form.template_summary_content,
1357 1370
             template_plan_content:this.form.template_plan_content,
1358
-            template_inspection_content:this.form.template_inspection_content,
1371
+            template_inspection_content:JSON.stringify(this.form.template_inspection_content),
1359 1372
             admin_user_id:this.form.admin_user_id,
1360 1373
             record_time:this.form.record_time,
1361 1374
             after_pressure:this.form.after_pressure,

+ 58 - 36
src/xt_pages/user/templateSummaryPrint.vue ファイルの表示

@@ -1,12 +1,14 @@
1 1
 <template>
2
+<div>
3
+  <div style="float:right">
4
+    <el-button type="primary" size="small" @click="printThisPage">打印</el-button> 
5
+  </div>
2 6
   <div id="dialysis-print-box">
3 7
     <div class="dialysis-print-order">
4 8
       <div class="order-yy-name"></div>
5 9
       <div class="order-title">{{ orgname }}&nbsp;&nbsp;&nbsp;血液透析患者诊疗阶段小结</div>
6
-      <div style="float:right">
7
-         <el-button type="primary" size="small" @click="printThisPage">打印</el-button> 
8
-      </div>
9
-      <div>
10
+      
11
+      <div style="padding-bottom:20px;border-bottom:1px solid #000;margin-top:40px;">
10 12
          <span>姓名:{{patientList.patient.name}}</span>  
11 13
          <span>年龄:{{getNewAge(patientList.patient.id_card_no)}}</span>  
12 14
          <span>性别:
@@ -15,47 +17,61 @@
15 17
          </span> 
16 18
          <span>诊断:{{patientList.patient.diagnose}}</span> 
17 19
       </div>
18
-      <div class="under-line"></div>
19
-      <div>
20
+      <div style="padding:20px 0;border-bottom:1px solid #000;font-weight:bold;">
20 21
         <span>阶段评估时间:{{getTime(patientList.record_time)}}</span>  
21 22
       </div>
22
-      <div class="under-line"></div>
23
-       <div>
24
-        <span>阶段小结概要:</span>  
25
-        <div>
26
-          <span>干体重:{{patientList.patient.dry_weight}}(kg)</span>  
27
-          <span>共透析:{{patientList.patient.dialysis_count}}</span>  
28
-          <span>HD:{{patientList.hd_count}}</span>  
29
-          <span>HDF:{{patientList.hdf_count}}</span>  
30
-          <span>HP:{{patientList.hp_count}}</span>  
31
-          <span>其他:{{patientList.other_count}}</span> 
32
-          <span>透析器:{{patientList.dialzer_apparatus}}</span>  
33
-          <span>抗凝剂:{{patientList.anticoagulant}}</span>  
34
-          <span>透析液(钾:{{patientList.kalium}} 钙:{{patientList.autunite}} Na:{{patientList.natrium}} ):</span> 
35
-          <span>每次透析(小时):{{patientList.hour}}时{{patientList.minute}}分</span>
36
-          <span>透前体重:{{patientList.befor_weight}}</span>
37
-          <span>透后体重:{{patientList.after_weight}}</span>
38
-          <span>透前血压:{{patientList.befor_pressure}}</span>
39
-          <span>透后血压:{{patientList.after_pressure}}</span>
23
+       <div style="padding:20px 0;border-bottom:1px solid #000;">
24
+        <span style="font-weight:bold;">阶段小结概要:</span>  
25
+        <div style="margin-top:20px;">
26
+          <div style="display:flex;justify-content: space-between;">
27
+            <span>干体重:{{patientList.patient.dry_weight}}(kg)</span>  
28
+            <span>共透析:{{patientList.patient.dialysis_count}}</span>  
29
+            <span>HD:{{patientList.hd_count}}</span>  
30
+            <span>HDF:{{patientList.hdf_count}}</span>  
31
+            <span>HP:{{patientList.hp_count}}</span>  
32
+            <span>其他:{{patientList.other_count}}</span> 
33
+          </div>
34
+          <div style="display:flex;justify-content: space-between;margin-top:10px;">
35
+            <span>透析器:{{patientList.dialzer_apparatus}}</span>  
36
+            <span>抗凝剂:{{patientList.anticoagulant}}</span>  
37
+            <span>透析液(钾:{{patientList.kalium}} 钙:{{patientList.autunite}} Na:{{patientList.natrium}} ):</span> 
38
+            <span>每次透析(小时):{{patientList.hour}}时{{patientList.minute}}分</span>
39
+          </div>
40
+          <div style="display:flex;justify-content: space-between;margin-top:10px;">
41
+            <span>透前体重:{{patientList.befor_weight}}</span>
42
+            <span>透后体重:{{patientList.after_weight}}</span>
43
+            <span>透前血压:{{patientList.befor_pressure}}</span>
44
+            <span>透后血压:{{patientList.after_pressure}}</span>
45
+          </div>
40 46
         </div>
41 47
       </div>
42
-      <div class="under-line"></div>
43
-      <div>
44
-        <span>阶段小结总结:{{patientList.template_summary_content}}</span>  
48
+      <div style="padding:20px 0;border-bottom:1px solid #000;min-height:200px;">
49
+        <span style="font-weight:bold;">阶段小结总结:</span><div>{{patientList.template_summary_content}}</div>  
50
+      </div>
51
+     <div style="padding:20px 0;border-bottom:1px solid #000;min-height:250px;">
52
+        <span style="font-weight:bold;">阶段小结化验结果:</span>
53
+        <div class="borderBox">
54
+          <div v-for="item in patientList.template_inspection_content">
55
+            <p>{{ item.project_name }}</p>
56
+            <div style="display:flex;flex-wrap: wrap;">
57
+              <div v-for="it in item.arr" style="width:33%;">
58
+                {{ it.item_name }} {{ it.inspect_value }}
59
+              </div>
60
+            </div>
61
+          </div>
62
+        </div> 
45 63
       </div>
46
-     <div class="under-line"></div>
47
-     <div>
48
-        <span>阶段小结化验结果:{{patientList.template_inspection_content}}</span>  
64
+      <div style="padding:20px 0;border-bottom:1px solid #000;min-height:200px;">
65
+        <span style="font-weight:bold;">阶段小结个性化方案:</span>
66
+        <div>{{patientList.template_plan_content}}</div>
49 67
       </div>
50
-     <div class="under-line"></div>
51
-     <div>阶段小结个性化方案:{{patientList.template_plan_content}}</div>
52
-     <div class="under-line"></div>
53
-     <div>
68
+     <div style="margin-top:10px;">
54 69
        <span>记录医生:{{getPatientList(patientList.admin_user_id)}}</span>  
55 70
        <span>记录时间:{{getTime(patientList.record_time)}}</span>  
56 71
      </div>
57 72
     </div>
58 73
   </div>
74
+</div>
59 75
 </template>
60 76
 
61 77
 <script>
@@ -263,7 +279,7 @@ export default {
263 279
     printThisPage() {
264 280
         var ptime = Math.round(new Date().getTime() / 1000)
265 281
         this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
266
-        const style ='@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
282
+        const style ='@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;font-weight: bold;margin: 10px 0;}'
267 283
         printJS({
268 284
             printable: 'dialysis-print-box',
269 285
             type: 'html',
@@ -293,6 +309,8 @@ export default {
293 309
         if(response.data.state == 1){
294 310
           var list = response.data.data.list
295 311
           console.log("listw23222323",list)
312
+          let arr = JSON.parse(list.template_inspection_content)
313
+          list.template_inspection_content = arr
296 314
           this.patientList = list
297 315
           var doctorList = response.data.data.doctorList
298 316
           console.log("doctorlsit",doctorList)
@@ -331,7 +349,7 @@ export default {
331 349
          }
332 350
       }
333 351
       return name
334
-    }
352
+    },
335 353
     
336 354
   },
337 355
  
@@ -346,6 +364,10 @@ export default {
346 364
 </script>
347 365
 
348 366
 <style>
367
+.borderBox  p{
368
+  font-weight: bold;
369
+  margin: 10px 0;
370
+}
349 371
 .dialysis-print-order {
350 372
   width: 960px;
351 373
   margin: 0 auto;