浏览代码

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

陈少旭 1年前
父节点
当前提交
cfa3139e25

+ 100 - 0
src/api/patient.js 查看文件

@@ -812,4 +812,104 @@ export function getExportList(params){
812 812
     metod:"get",
813 813
     params:params,
814 814
   })
815
+}
816
+
817
+export function saveFallOutBedPrint(data){
818
+ 
819
+  return request({
820
+    url:"/api/patient/savefalloutbedprint",
821
+    method:"post",
822
+    data:data
823
+  })
824
+}
825
+
826
+export function getFallOutBedPrintList(params){
827
+
828
+  return request({
829
+    url:"/api/patient/getfalloutbedprintlist",
830
+    method:"get",
831
+    params:params
832
+  })
833
+}
834
+
835
+export function saveFilterInformed(data){
836
+ 
837
+  return request({
838
+    url:"/api/patient/savefilterinformed",
839
+    method:"post",
840
+    data:data,
841
+  })
842
+}
843
+
844
+export function getFilterInformed(params){
845
+  
846
+  return request({
847
+    url:"/api/patient/getfilterinformed",
848
+    method:"get",
849
+    params:params
850
+  })
851
+}
852
+
853
+export function saveProfundaInformed(data){
854
+  
855
+  return request({
856
+    url:"/api/patient/saveprofundainformed",
857
+    method:"post",
858
+    data:data
859
+  })
860
+}
861
+
862
+export function getProfundaInformed(params){
863
+  
864
+  return request({
865
+    url:"/api/patient/getprofundainformed",
866
+    method:"get",
867
+    params:params
868
+  })
869
+}
870
+
871
+export function saveArterOvenous(data){
872
+  
873
+  return request({
874
+    url:"/api/patient/arterovenous",
875
+    method:"post",
876
+    data:data,
877
+  })
878
+}
879
+
880
+export function getArterOvernous(params){
881
+
882
+  return request({
883
+    url:"/api/patient/getarterovernous",
884
+    method:"get",
885
+    params:params
886
+  })
887
+}
888
+
889
+
890
+export function saveHighriskInformed(data){
891
+  
892
+  return request({
893
+    url:"/api/patient/savehighrikinformed",
894
+    method:"post",
895
+    data:data,
896
+  })
897
+}
898
+
899
+export function getHighRiskInformed(params){
900
+  
901
+  return request({
902
+    url:"/api/patient/gethighriskinformed",
903
+    method:"get",
904
+    params:params
905
+  })
906
+}
907
+
908
+export function saveAnticoagulation(data){
909
+  
910
+  return request({
911
+    url:"/api/patient/saveanticoagulation",
912
+    method:"Get",
913
+    data:data
914
+  })
815 915
 }

文件差异内容过多而无法显示
+ 3106 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_seventytwo.vue


+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue 查看文件

@@ -1972,7 +1972,7 @@
1972 1972
                   </td>
1973 1973
                 </tr>
1974 1974
 
1975
-                 <tr v-if="org_id == 10402 || org_id == 10206">
1975
+                 <tr v-if="org_id == 10402">
1976 1976
                   <td style="padding: 0; position: relative" colspan="2">
1977 1977
                     <table class="inside_table">
1978 1978
                       <tbody>

+ 18 - 2
src/xt_pages/dialysis/bloodPresssWatch.vue 查看文件

@@ -437,6 +437,15 @@
437 437
           type="primary"
438 438
           >批量打印</el-button>
439 439
       </template>
440
+      <template v-if="this.template_id == 72">
441
+        <el-button
442
+          size="small"
443
+          icon="el-icon-printer"
444
+          :disabled="selecting_schs.length == 0"
445
+          @click="batchPrintAction"
446
+          type="primary"
447
+          >批量打印</el-button>
448
+      </template>
440 449
     </div>
441 450
     <div class="app-container">
442 451
       <!-- <div class="filter-container">
@@ -1325,6 +1334,7 @@
1325 1334
         layout="total, sizes, prev, pager, next, jumper"
1326 1335
         :total="total"
1327 1336
       ></el-pagination>
1337
+      <!-- :page-sizes="[20, 40, 60, 80,100,300,500]" -->
1328 1338
     </div>
1329 1339
   </div>
1330 1340
 </template>
@@ -1458,10 +1468,12 @@ export default {
1458 1468
       complicationList: [],
1459 1469
       template_id:0,
1460 1470
       org_id:0,
1461
-
1471
+      page2:0,
1462 1472
     };
1463 1473
   },
1464 1474
   created() {
1475
+    this.listQuery.page=sessionStorage.getItem("page");
1476
+    sessionStorage.removeItem("page");
1465 1477
     this.template_id = this.$store.getters.xt_user.template_info.template_id;
1466 1478
     this.org_id = this.$store.getters.xt_user.template_info.org_id;
1467 1479
     this.bloodPressureMmonitoringSite = getDataConfig(
@@ -1553,7 +1565,9 @@ export default {
1553 1565
       });
1554 1566
     },
1555 1567
     clickCurrent(val) {
1556
-      console.log(val);
1568
+      sessionStorage.setItem("page", this.listQuery.page);
1569
+      // this.page2 = this.listQuery.page
1570
+      console.log('val',this.listQuery.page);
1557 1571
       this.$router.push({
1558 1572
         path: "/dialysis/details",
1559 1573
         query: { patient_id: val.patient_id, date: val.sch_time_int,mode_id:val.mode_id }
@@ -2191,6 +2205,8 @@ export default {
2191 2205
         this.$router.push({ path: "/dialysis/print/batch/sixtyeight" });
2192 2206
       }else if (this.template_id == 70) {
2193 2207
         this.$router.push({ path: "/dialysis/print/batch/seventy" });
2208
+      }else if (this.template_id == 72) {
2209
+        this.$router.push({ path: "/dialysis/print/batch/seventytwo" });
2194 2210
       }
2195 2211
     },
2196 2212
     batchPrintActionOne: function() {

+ 25 - 3
src/xt_pages/dialysis/dialysisPrintOrder.vue 查看文件

@@ -892,6 +892,18 @@
892 892
         >
893 893
         </div>
894 894
       </template>
895
+      <template v-if="org_template_info.template_id == 72">
896
+        <div>
897
+          <el-button
898
+          :loading="loading"
899
+          size="small"
900
+          icon="el-icon-printer"
901
+          @click="printThisPage"
902
+          type="primary"
903
+          >打印</el-button
904
+        >
905
+        </div>
906
+      </template>
895 907
     </div>
896 908
     <div class="app-container" style="min-height: 0">
897 909
       <!--<div class="order-print-btn"-->
@@ -1373,6 +1385,11 @@
1373 1385
             v-if="org_template_info.template_id == 71"
1374 1386
           >
1375 1387
           </DialysisPrintOrderseventyone>
1388
+          <DialysisPrintOrderSeventyTwo
1389
+          v-bind:childResponse="childResponse"
1390
+            v-if="org_template_info.template_id == 72"
1391
+          >
1392
+          </DialysisPrintOrderSeventyTwo>
1376 1393
 
1377 1394
           <DialysisPrintOrderZero
1378 1395
             v-bind:childResponse="childResponse"
@@ -1469,6 +1486,7 @@ import DialysisPrintOrderSixtyeight from './template/DialysisPrintOrderSixtyeigh
1469 1486
 import DialysisPrintOrderSixtynine from './template/DialysisPrintOrderSixtynine'
1470 1487
 import DialysisPrintOrderSeventy from './template/DialysisPrintOrderSeventy'
1471 1488
 import DialysisPrintOrderseventyone from './template/DialysisPrintOrderseventyone'
1489
+import DialysisPrintOrderSeventyTwo from './template/DialysisPrintOrderSeventyTwo'
1472 1490
 import DialysisPrintOrderZero from './template/DialysisPrintOrderZero'
1473 1491
 export default {
1474 1492
   name: "dialysisPrintOrder",
@@ -1544,6 +1562,7 @@ export default {
1544 1562
     DialysisPrintOrderSixtynine,
1545 1563
     DialysisPrintOrderSeventy,
1546 1564
     DialysisPrintOrderseventyone,
1565
+    DialysisPrintOrderSeventyTwo,
1547 1566
     DialysisPrintOrderZero,
1548 1567
     LabelBox,
1549 1568
     BreadCrumb,
@@ -1711,6 +1730,7 @@ export default {
1711 1730
       }
1712 1731
       return "";
1713 1732
     },
1733
+    // 打印
1714 1734
     printThisPage() {
1715 1735
       // console.log("this.org_template_info.template_id",this.org_template_info.template_id)
1716 1736
       // if(this.$store.getters.xt_user.org.id == 0){
@@ -1806,7 +1826,8 @@ export default {
1806 1826
         this.org_template_info.template_id == 58 ||
1807 1827
         this.org_template_info.template_id == 60 ||
1808 1828
         this.org_template_info.template_id == 61 ||
1809
-        this.org_template_info.template_id == 66
1829
+        this.org_template_info.template_id == 66 ||
1830
+        this.org_template_info.template_id == 72
1810 1831
       ) {
1811 1832
         printJS({
1812 1833
           printable: "dialysis-print-box-1",
@@ -2204,7 +2225,8 @@ export default {
2204 2225
           style: style,
2205 2226
           scanStyles: false,
2206 2227
         });
2207
-      } else if (this.org_template_info.template_id == 199 ) {
2228
+      }
2229
+       else if (this.org_template_info.template_id == 199 ) {
2208 2230
         printJS({
2209 2231
           printable: "dialysis-print-box-1",
2210 2232
           type: "html",
@@ -2846,7 +2868,7 @@ export default {
2846 2868
       var xtdate = parseTime(schedual.schedule_date, "{y}-{m}-{d}");
2847 2869
       console.log('fffff',this.org_template_info.template_id);
2848 2870
       this.x_tdate=xtdate
2849
-    
2871
+
2850 2872
       // this.queryParams.xtdate = xtdate;
2851 2873
       // this.queryParams.xtno = schedual.patient.dialysis_no;
2852 2874
       // this.queryParams.patient_id = schedual.patient.id

文件差异内容过多而无法显示
+ 3873 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderSeventyTwo.vue


+ 8 - 8
src/xt_pages/outpatientCharges/invoicePrint.vue 查看文件

@@ -10,12 +10,12 @@
10 10
         type="primary"
11 11
       >打印</el-button>
12 12
     </template>
13
-    <div class="app-container" style="padding-top:40px;" v-if="org_id != 10217 && org_id != 10485 && org_id != 10375 && org_id != 10567 && org_id != 10188 "><!--&& org_id != 10188 && org_id != 0-->
13
+    <div class="app-container" style="padding-top:40px;" v-if="org_id != 10217 && org_id != 10485 && org_id != 10375 && org_id != 10567 && org_id != 10188 && org_id != 0"><!--&& org_id != 10188 && org_id != 0-->
14 14
         <div class='dialysisPage'>
15 15
           <div v-if="org_id != 10106 && org_id != 10215 && org_id != 4 && org_id != 10188 && org_id != 10217 && org_id != 10387&& org_id != 10210 && org_id != 10387 && org_id != 10480 " >
16 16
             <printOne v-if="org_id != 10088 && org_id != 10510 && org_id != 0" :paramsObj="invoiceParams"></printOne>
17 17
             <printThree v-if="org_id == 10088 " :paramsObj="invoiceParams"></printThree>
18
-            <printfifteen v-if="org_id == 10510 || org_id==0 " :paramsObj="invoiceParams"></printfifteen>
18
+            <printfifteen v-if="org_id == 10510  " :paramsObj="invoiceParams"></printfifteen>
19 19
           </div>
20 20
           <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
21 21
           <printFour v-if="org_id == 10215 || org_id == 4 " :paramsObj="invoiceParams"></printFour>
@@ -57,11 +57,11 @@
57 57
         <printthirteen  :paramsObj="invoiceParams"></printthirteen>
58 58
       </div>
59 59
     </div>
60
-    <!-- <div class="app-container" style="padding-top:40px;" v-if="org_id == 0">
60
+    <div class="app-container" style="" v-if="org_id == 0">
61 61
       <div class='dialysisPage'>
62
-        <printthirteen :paramsObj="invoiceParams"></printthirteen>
62
+        <printSixteen :paramsObj="invoiceParams"></printSixteen>
63 63
       </div>
64
-    </div> -->
64
+    </div>
65 65
   </div>
66 66
 </template>
67 67
 
@@ -81,6 +81,7 @@
81 81
   import printthirteen from './invoiceTemplate/printthirteen'
82 82
   import printfourteen from './invoiceTemplate/printfourteen'
83 83
   import printfifteen from './invoiceTemplate/printfifteen'
84
+  import printSixteen from './invoiceTemplate/printSixteen'
84 85
   export default {
85 86
     name: "invoicePrint",
86 87
     components: {
@@ -98,7 +99,8 @@
98 99
       printtwelve,
99 100
       printthirteen,
100 101
       printfourteen,
101
-      printfifteen
102
+      printfifteen,
103
+      printSixteen
102 104
     },
103 105
     props:{
104 106
       invoiceParams:Object
@@ -108,8 +110,6 @@
108 110
         childResponse: {},
109 111
         //   invoiceParams:{},
110 112
         org_id:''
111
-
112
-
113 113
       };
114 114
     },
115 115
     methods: {

+ 226 - 0
src/xt_pages/outpatientCharges/invoiceTemplate/printSixteen.vue 查看文件

@@ -0,0 +1,226 @@
1
+<template>
2
+  <div id='invoice-print'>
3
+      <div style="border-bottom: 1px solid black;text-align: center;font-size: 18px;margin-bottom: 10px;">
4
+        广水市第一人民医院
5
+      </div>
6
+      <div style="border-bottom: 1px solid black;text-align: center;font-size: 18px;">缴费单</div>
7
+      <div style="display: flex;border-top: 1px solid black;margin-top: 2px;">
8
+        <div style="padding:7px 5px;flex: 1;">电子发票号:</div>
9
+        <div style="padding:7px 5px;flex: 1;">门诊号:</div>
10
+      </div>
11
+      <div style="display: flex;">
12
+        <div style="flex: 1;">姓名:{{paramsObj.name}}</div>
13
+        <div style="flex: 1;">性别:{{ paramsObj.gend==1 ? '男':'女' }}</div>
14
+        <div style="flex: 1;">年龄:{{paramsObj.age}}</div>
15
+      </div>
16
+      <div style="display: flex;">
17
+        <div style="padding:7px 5px;flex: 1;">就诊卡号:</div>
18
+        <div style="padding:7px 5px;flex: 1;">开单科室:{{ list.department_name }}</div>
19
+      </div>
20
+      <div>
21
+        联系电话:
22
+      </div>
23
+      <div style="margin-top: 5px;height: 120px;">
24
+        <div style="display: flex;">
25
+          <div style="flex: 2;">项目</div>
26
+          <div style="flex: 1;">金额</div>
27
+          <div style="flex: 2;">项目</div>
28
+          <div style="flex: 1;">金额</div>
29
+        </div>
30
+        <div style="display: flex;">
31
+          <div style="flex: 2;"><span v-if="list.westernMedicineCostTotal>0">西药</span></div>
32
+          <div style="flex: 1;"><span v-if="list.westernMedicineCostTotal>0">
33
+            {{ list.westernMedicineCostTotal }}</span>
34
+          </div>
35
+          <div style="flex: 2;"><span v-if="list.checkCostTotal>0">检查费</span></div>
36
+          <div style="flex: 1;"><span v-if="list.checkCostTotal>0">{{ list.checkCostTotal }}</span></div>
37
+        </div>
38
+        <div style="display: flex;">
39
+          <div style="flex: 2;"><span v-if="list.treatCostTotal>0">治疗费</span></div>
40
+          <div style="flex: 1;"><span v-if="list.treatCostTotal>0">{{ list.treatCostTotal }}</span></div>
41
+          <div style="flex: 2;"><span v-if="list.bedCostTotal>0">床位费</span></div>
42
+          <div style="flex: 1;"><span v-if="list.bedCostTotal>0">{{ list.bedCostTotal }}</span></div>
43
+        </div>
44
+        <div style="display: flex;">
45
+          <div style="flex: 2;"><span v-if="list.chineseTraditionalMedicineCostTotal>0">中成药</span></div>
46
+          <div style="flex: 1;"><span v-if="list.chineseTraditionalMedicineCostTotal>0">
47
+            {{ list.chineseTraditionalMedicineCostTotal }}</span>
48
+          </div>
49
+          <div style="flex: 2;"><span v-if="list.laboratoryCostTotal>0">化验费</span></div>
50
+          <div style="flex: 1;"><span v-if="list.laboratoryCostTotal>0">{{ list.laboratoryCostTotal }}</span></div>
51
+        </div>
52
+        <div style="display: flex;">
53
+          <div style="flex: 2;"><span v-if="list.operationCostTotal>0">手术费</span></div>
54
+          <div style="flex: 1;"><span v-if="list.operationCostTotal>0">{{ list.operationCostTotal }}</span></div>
55
+          <div style="flex: 2;"><span v-if="list.otherCostTotal>0">其他费</span></div>
56
+          <div style="flex: 1;"><span v-if="list.otherCostTotal>0">{{ list.otherCostTotal }}</span></div>
57
+        </div> 
58
+        <div style="display: flex;">
59
+          <div style="flex: 2;"><span v-if="list.materialCostTotal>0">材料费</span></div>
60
+          <div style="flex: 1;"><span v-if="list.materialCostTotal>0">{{ list.materialCostTotal }}</span></div>
61
+          <div style="flex: 2;"><span></span></div>
62
+          <div style="flex: 1;"><span></span></div>
63
+        </div>
64
+      </div>
65
+      <div style="display: flex;">
66
+        <div style="padding:5px;flex: 1;">合计:</div>
67
+        <div style="padding:5px;flex: 2;">大写:</div>
68
+      </div>
69
+      <div >
70
+        缴费明细:现金: 统筹支付:
71
+      </div>
72
+      <div style="margin: 7px 0;">
73
+        操作员:{{paramsObj.chargeName}}
74
+      </div>
75
+      <div style="">
76
+        缴费日期:{{ paramsObj.setl_time}}
77
+      </div>
78
+      <div style="margin: 7px 0;">
79
+        湖北省财政电子票据公共服务平台网址查验真伪:http://221.232.224.111:8086/bi1lcheck
80
+      </div>
81
+      <div>
82
+        温馨提示:请妥善保管好您的缴费凭证
83
+      </div>
84
+
85
+      <div style="border: 1px solid black;margin: 15px 0;"> </div>
86
+
87
+      <div style="text-align: center;font-size: 18px;">对账单</div>
88
+      <div style="display: flex;margin-top: 3px;">
89
+        <div style="padding:7px 5px;flex: 1;">电子发票号:</div>
90
+        <div style="padding:7px 5px;flex: 1;">门诊号:</div>
91
+      </div>
92
+      <div style="display: flex;">
93
+        <div style="flex: 1;">姓名:{{paramsObj.name}}</div>
94
+        <div style="flex: 1;">操作员:{{ paramsObj.chargeName }}</div>
95
+      </div>
96
+      <div style="margin: 10px 0 15px 0;">
97
+        缴费明细:现金: 统筹支付:
98
+      </div>
99
+      <div style="">
100
+        缴费日期:{{ paramsObj.setl_time}}
101
+      </div>
102
+  </div>
103
+</template>
104
+
105
+
106
+<script>
107
+import { getInvoice } from '@/api/project/project'
108
+import { uParseTime } from '@/utils/tools'
109
+export default {
110
+  props:{
111
+      paramsObj:Object
112
+  },
113
+  data(){
114
+      return{
115
+          list:{},
116
+          printDate:'',
117
+          zhongwen:'',
118
+          totalPrice:0.0,
119
+          org_id:'',
120
+          org_name:''
121
+      }
122
+  },
123
+  created(){
124
+      console.log('paramsObj',this.paramsObj)
125
+      let params = {
126
+          order_id: this.paramsObj.order_id,
127
+          patient_id: this.paramsObj.patient_id,
128
+      }
129
+      this.getInvoice(params)
130
+      // var data = new Date();
131
+      // var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
132
+      // var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
133
+      // this.printDate = data.getFullYear() + "-" + month + "-" + date;
134
+      // this.smalltoBIG(982732.21)
135
+      this.org_id = this.$store.getters.xt_user.org_id
136
+      this.org_name = this.$store.getters.xt_user.org.org_name
137
+  },
138
+  methods:{
139
+      getInvoice(params){
140
+          getInvoice(params).then((res) => {
141
+              console.log('res',res)
142
+              this.list = res.data.data
143
+              this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
144
+                                  this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal
145
+              this.smalltoBIG(this.list.psn_cash_money)
146
+              var data = new Date(res.data.data.date * 1000);
147
+              var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
148
+              var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
149
+              this.printDate = data.getFullYear() + "-" + month + "-" + date;
150
+          })
151
+      },
152
+      smalltoBIG(n) {
153
+          // let fraction = ['角', '分'];
154
+          // let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
155
+          // let unit = [['元.', '万,', '亿,'], ["元",'拾', '佰', '仟']];
156
+          // let head = price < 0 ? '欠' : '';
157
+          // price = Math.abs(price);
158
+          // let upper = '';
159
+          // for (let i = 0; i < fraction.length; i++) {
160
+          // upper += (digit[Math.floor(price * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
161
+          // }
162
+          // upper = upper || '整';
163
+          // price = Math.floor(price);
164
+          // for (let i = 0; i < unit[0].length && price > 0; i++) {
165
+          // let p = '';
166
+          // for (let j = 0; j < unit[1].length && price > 0; j++) {
167
+          //     p = digit[price % 10] + unit[1][j] + p;
168
+          //     price = Math.floor(price / 10);
169
+          // }
170
+          // upper = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + upper;
171
+          // }
172
+          // this.zhongwen = head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整')
173
+          // console.log('6666',head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整'))
174
+          if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
175
+              return "数据非法";  //判断数据是否大于0
176
+          }
177
+
178
+          var unit = "仟佰拾亿仟佰拾万仟佰拾元角分", str = "";
179
+          n += "00";
180
+
181
+          var indexpoint = n.indexOf('.');  // 如果是小数,截取小数点前面的位数
182
+
183
+          if (indexpoint >= 0){
184
+
185
+              n = n.substring(0, indexpoint) + n.substr(indexpoint+1, 2);   // 若为小数,截取需要使用的unit单位
186
+          }
187
+
188
+          unit = unit.substr(unit.length - n.length);  // 若为整数,截取需要使用的unit单位
189
+          for (var i=0; i < n.length; i++){
190
+              str += "零壹贰叁肆伍陆柒捌玖".charAt(n.charAt(i)) + unit.charAt(i);  //遍历转化为大写的数字
191
+          }
192
+          console.log("str",str)
193
+          if(str == '零元零角零分'){
194
+              this.zhongwen = '零'
195
+          }else{
196
+              this.zhongwen =  str.replace(/零(仟|佰|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
197
+          }
198
+
199
+          console.log(this.zhongwen)
200
+      },
201
+      getTime(value, temp) {
202
+          if (value == 0) {
203
+              return ''
204
+          }
205
+          if (value != undefined) {
206
+              return uParseTime(value, temp)
207
+          }
208
+          return ''
209
+      },
210
+
211
+  },
212
+  watch:{
213
+      paramsObj:{//深度监听,可监听到对象、数组的变化
214
+          handler(val, oldVal){
215
+              let params = {
216
+                  order_id: val.order_id,
217
+                  patient_id: val.patient_id,
218
+              }
219
+              this.getInvoice(params)
220
+
221
+          },
222
+          deep:true
223
+      }
224
+  }
225
+}
226
+</script>

+ 65 - 7
src/xt_pages/user/Informed/Informedconsent.vue 查看文件

@@ -14,7 +14,7 @@
14 14
                     prefix-icon="el-icon-search"
15 15
                     v-model="input2" style="width: 200px;">
16 16
                   </el-input>
17
-                  <!-- <el-button type="primary">查看图片</el-button> -->
17
+                  <el-button type="primary">查看图片</el-button>
18 18
                 </div>
19 19
                 <div>
20 20
                   <el-table
@@ -84,20 +84,20 @@
84 84
               </div>
85 85
               <div style="width: 67%; margin-left: 10px;">
86 86
                 <div v-if="face_show">
87
-                  <Falloutbedprint :patient_id ="this.patientID"></Falloutbedprint>
87
+                  <Falloutbedprint :patient_id ="this.patientID" :listPrint="listPrint"></Falloutbedprint>
88 88
                 </div>
89 89
                 <div v-if="filter_show">
90 90
                   <!-- filter_show -->
91
-                  <Filter_informed :patient_id ="this.patientID"></Filter_informed>
91
+                  <Filter_informed :patient_id ="this.patientID" :filterList="filterList" ></Filter_informed>
92 92
                 </div>
93 93
                 <div v-if="profunda_show">
94
-                  <profunda_informed :patient_id ="this.patientID"></profunda_informed>
94
+                  <profunda_informed :patient_id ="this.patientID" :profundaPrint="profundaPrint"></profunda_informed>
95 95
                 </div>
96 96
                 <div v-if="arteriovenous_show">
97
-                  <arteriovenous_informed :patient_id ="this.patientID"></arteriovenous_informed>
97
+                  <arteriovenous_informed :patient_id ="this.patientID" :arterOvenousPrint="arterOvenousPrint"></arteriovenous_informed>
98 98
                 </div>
99 99
                 <div v-if="Highrisk_show" >
100
-                  <Highrisk_informed :patient_id ="this.patientID"></Highrisk_informed>
100
+                  <Highrisk_informed :patient_id ="this.patientID" :highRiskPrint="highRiskPrint"></Highrisk_informed>
101 101
                 </div>
102 102
                 <div v-if="anticoagulation_show">
103 103
                   <anticoagulation_informed :patient_id ="this.patientID"></anticoagulation_informed>
@@ -145,7 +145,7 @@ import Bring_informed from './components/Bring_informed'//自带药物
145 145
 import catheterization_informed from './components/catheterization_informed'//深静脉导管置入
146 146
 import dialyzer_informed from './components/dialyzer_informed'//透析器(滤器)
147 147
 import therapy_informed from './components/therapy_informed'//透析器(滤过)治疗
148
-import { getPatientDetailInformedconsent,  } from '@/api/patient'
148
+import { getPatientDetailInformedconsent,getFallOutBedPrintList,getFilterInformed,getProfundaInformed,getArterOvernous,getHighRiskInformed  } from '@/api/patient'
149 149
 export default {
150 150
   
151 151
   components: {
@@ -188,6 +188,11 @@ export default {
188 188
       patient:{},
189 189
       tableData:[],
190 190
       input2:'',
191
+      listPrint:{},
192
+      filterList:{},
193
+      profundaPrint:{},
194
+      arterOvenousPrint:{},
195
+      highRiskPrint:{}
191 196
     }
192 197
 
193 198
   },
@@ -226,6 +231,8 @@ export default {
226 231
           this.catheterization_show=false,
227 232
           this.dialyzer_show=false,
228 233
           this.therapy_show=false
234
+
235
+        //  this.getFallOutBedPrintList()
229 236
         }
230 237
         if(row.value==2){
231 238
           this.filter_show=true
@@ -240,6 +247,7 @@ export default {
240 247
           this.catheterization_show=false,
241 248
           this.dialyzer_show=false,
242 249
           this.therapy_show=false
250
+         // this.getFilterInformed()
243 251
         }
244 252
         if(row.value==3){
245 253
           this.face_show=false
@@ -254,6 +262,7 @@ export default {
254 262
           this.catheterization_show=false,
255 263
           this.dialyzer_show=false,
256 264
           this.therapy_show=false
265
+          //this.getProfundaInformed()
257 266
         }
258 267
         if(row.value==4){
259 268
           this.filter_show=false
@@ -268,6 +277,7 @@ export default {
268 277
           this.catheterization_show=false,
269 278
           this.dialyzer_show=false,
270 279
           this.therapy_show=false
280
+         // this.getArterOvernous()
271 281
         }
272 282
         if(row.value==5){
273 283
           this.face_show=false
@@ -282,6 +292,7 @@ export default {
282 292
           this.catheterization_show=false,
283 293
           this.dialyzer_show=false,
284 294
           this.therapy_show=false
295
+         // this.getHighRiskInformed()
285 296
         }
286 297
         if(row.value==6){
287 298
           this.filter_show=false
@@ -296,6 +307,7 @@ export default {
296 307
           this.catheterization_show=false,
297 308
           this.dialyzer_show=false,
298 309
           this.therapy_show=false
310
+          
299 311
         }
300 312
         if(row.value==7){
301 313
           this.face_show=false
@@ -383,6 +395,52 @@ export default {
383 395
         }
384 396
   
385 397
     },
398
+    fMethod(){
399
+      console.log("除非富足到佛欧安抚")
400
+      this.getFallOutBedPrintList()
401
+    },
402
+    getFallOutBedPrintList(){
403
+      getFallOutBedPrintList().then(response=>{
404
+          if(response.data.state ==1){
405
+             var list = response.data.data.list
406
+             this.listPrint = list
407
+          }
408
+      })
409
+    },
410
+    getFilterInformed(){
411
+      getFilterInformed().then(response=>{
412
+         if(response.data.state == 1){
413
+          var list = response.data.data.list
414
+          this.filterList = list
415
+         }
416
+      })
417
+    },
418
+
419
+    getProfundaInformed(){
420
+      getProfundaInformed().then(response=>{
421
+         if(response.data.state ==1){
422
+          var list = response.data.data.list
423
+          this.profundaPrint = list
424
+          console.log("hhahhahah",this.profundaPrint)
425
+         }
426
+      })
427
+    },
428
+    getArterOvernous(){
429
+      getArterOvernous().then(response=>{
430
+         if(response.data.state ==1){
431
+           var list = response.data.data.list
432
+           this.arterOvenousPrint = list
433
+         }
434
+      })
435
+    },
436
+    getHighRiskInformed(){
437
+      getHighRiskInformed().then(response=>{
438
+        if(response.data.state ==1){
439
+          var list = response.data.data.list
440
+          this.highRiskPrint = list
441
+        }
442
+      })
443
+    }
386 444
   }
387 445
 }
388 446
 </script>

+ 26 - 4
src/xt_pages/user/Informed/components/Falloutbedprint.vue 查看文件

@@ -110,7 +110,7 @@
110 110
           </div>
111 111
           <span slot="footer" class="dialog-footer">
112 112
             <el-button @click="dialogVisible = false">取 消</el-button>
113
-            <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
113
+            <el-button type="primary" @click="saveFallOutBedPrint">保 存</el-button>
114 114
           </span>
115 115
         </el-dialog>
116 116
     </div>
@@ -119,7 +119,7 @@
119 119
 <script>
120 120
 import print from "print-js";
121 121
 import Editor from '@/components/Editor'
122
-import { getPatientDetailInformedconsent  } from '@/api/patient'
122
+import { getPatientDetailInformedconsent,saveFallOutBedPrint  } from '@/api/patient'
123 123
 import { jsGetAge, uParseTime } from "@/utils/tools";
124 124
 const content=`<p style="font-size: 17px;font-weight: bold;padding-left: 2em;">请您仔细阅读以下内容,并自主决定是否使用人脸识别功能:</p>
125 125
 <p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
@@ -152,7 +152,10 @@ export default{
152 152
   props: {
153 153
     patient_id: {
154 154
         type: Number,
155
-      }
155
+    },
156
+    listPrint:{
157
+      type:Object,
158
+    }
156 159
    },
157 160
    components:{
158 161
     Editor
@@ -166,11 +169,15 @@ export default{
166 169
    },
167 170
 
168 171
    created(){
172
+     
173
+     if(this.listPrint!=null&& this.listPrint.id >0){
174
+       this.content =""
175
+       this.content = this.listPrint.content
176
+     }
169 177
      this.getlist()
170 178
    },
171 179
     methods:{
172 180
       getlist(){
173
-        console.log("owwwwwwwwwwwwwwwwwww",this.patient_id)
174 181
         getPatientDetailInformedconsent(this.patient_id).then(response=>{
175 182
           if(response.data.state == 1){
176 183
             var patient =  response.data.data.patients
@@ -212,6 +219,21 @@ export default{
212 219
       },
213 220
       bianji(){
214 221
         this.dialogVisible =true
222
+      },
223
+      saveFallOutBedPrint(){
224
+          var params = {
225
+            patient_id:this.patient_id,
226
+            content:this.$refs.editor.content,
227
+          }
228
+        console.log("paramswoowow",params)
229
+        saveFallOutBedPrint(params).then(response=>{
230
+           if(response.data.state ==1){
231
+              var list = response.data.data.list
232
+              this.$message.success("保存成功!")
233
+              this.$emit('fMethod',list);
234
+              this.dialogVisible = false
235
+           }
236
+        })
215 237
       }
216 238
     }
217 239
 }

+ 26 - 4
src/xt_pages/user/Informed/components/Filter_informed.vue 查看文件

@@ -80,7 +80,7 @@
80 80
         </div>
81 81
         <span slot="footer" class="dialog-footer">
82 82
           <el-button @click="dialogVisible = false">取 消</el-button>
83
-          <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
83
+          <el-button type="primary" @click="saveFilterInformed">保 存</el-button>
84 84
         </span>
85 85
       </el-dialog>
86 86
 
@@ -90,7 +90,7 @@
90 90
 <script>
91 91
 import print from "print-js";
92 92
 import Editor from '@/components/Editor'
93
-import { getPatientDetailInformedconsent  } from '@/api/patient'
93
+import { getPatientDetailInformedconsent,saveFilterInformed  } from '@/api/patient'
94 94
 import { jsGetAge, uParseTime } from "@/utils/tools";
95 95
 const content=`<p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
96 96
   <span style='position: absolute;top: 0;left: 0;'>一、</span>血液透析是急性肾损伤和慢性肾功能衰竭的一种替代治疗方法:
@@ -208,7 +208,10 @@ export default{
208 208
   props: {
209 209
     patient_id: {
210 210
         type: Number,
211
-      }
211
+      },
212
+    filterList:{
213
+       type:Object,
214
+    }
212 215
    },
213 216
    components:{
214 217
     Editor
@@ -222,11 +225,17 @@ export default{
222 225
    },
223 226
 
224 227
    created(){
228
+    if(this.filterList!=null && this.filterList.id >0){
229
+      
230
+       this.content = ""
231
+       this.content = this.filterList.content
232
+     }
225 233
      this.getlist()
234
+     
226 235
    },
227 236
     methods:{
228 237
       getlist(){
229
-        console.log("owwwwwwwwwwwwwwwwwww",this.patient_id)
238
+     
230 239
         getPatientDetailInformedconsent(this.patient_id).then(response=>{
231 240
           if(response.data.state == 1){
232 241
             var patient =  response.data.data.patients
@@ -268,6 +277,19 @@ export default{
268 277
       },
269 278
       bianji(){
270 279
         this.dialogVisible=true
280
+      },
281
+      saveFilterInformed(){
282
+         var params = {
283
+          content:this.$refs.editor.content,
284
+         }
285
+         console.log("PARAMSWWPOWPW",params)
286
+        saveFilterInformed(params).then(response=>{
287
+          if(response.data.state ==1){
288
+            var informed = response.data.data.informed
289
+            this.$emit('fMethod',informed);
290
+            this.dialogVisible = false
291
+          }
292
+        })
271 293
       }
272 294
     }
273 295
 }

+ 24 - 3
src/xt_pages/user/Informed/components/Highrisk_informed.vue 查看文件

@@ -83,7 +83,7 @@
83 83
           </div>
84 84
           <span slot="footer" class="dialog-footer">
85 85
             <el-button @click="dialogVisible = false">取 消</el-button>
86
-            <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
86
+            <el-button type="primary" @click="saveHighriskInformed">确 定</el-button>
87 87
           </span>
88 88
         </el-dialog>
89 89
     </div>
@@ -92,7 +92,7 @@
92 92
 <script>
93 93
 import print from "print-js";
94 94
 import Editor from '@/components/Editor'
95
-import { getPatientDetailInformedconsent  } from '@/api/patient'
95
+import { getPatientDetailInformedconsent,saveHighriskInformed  } from '@/api/patient'
96 96
 import { jsGetAge, uParseTime } from "@/utils/tools";
97 97
 const content=`<p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
98 98
   <span style='position: absolute;top: 0px;left: 0;'>一、</span>该知情同意书将向您介绍危重患者接受血液净化治疗选择相关事宜,你有权知道危重患者接受血液净化治疗存在的风险、预期效果及对人体等影响,请您仔细阅读,提出与治疗有关的任何疑问。决定是否同意对患者实施血液净化治疗。
@@ -150,7 +150,10 @@ export default{
150 150
   props: {
151 151
     patient_id: {
152 152
         type: Number,
153
-      }
153
+    },
154
+    highRiskPrint:{
155
+      type:Object,
156
+    }
154 157
    },
155 158
    components:{
156 159
     Editor
@@ -206,9 +209,27 @@ export default{
206 209
       },
207 210
       bianji(){
208 211
         this.dialogVisible=true
212
+      },
213
+      saveHighriskInformed(){
214
+          var params = {
215
+            content:this.$refs.editor.content
216
+          }
217
+        saveHighriskInformed(params).then(response=>{
218
+           if(response.data.state ==1){
219
+             var list = response.data.data.list
220
+             this.dialogVisible = false 
221
+             this.$message.success("保存成功!")
222
+           }
223
+           
224
+        })
209 225
       }
210 226
     },
211 227
     created(){
228
+      console.log("highRiskPrint",this.highRiskPrint)
229
+      if(this.highRiskPrint!=null && this.highRiskPrint.id >0){
230
+        this.content = ""
231
+        this.content = this.highRiskPrint.content
232
+      }
212 233
       this.getlist()
213 234
     }
214 235
 }

+ 14 - 2
src/xt_pages/user/Informed/components/anticoagulation_informed.vue 查看文件

@@ -156,7 +156,7 @@
156 156
         </div>
157 157
         <span slot="footer" class="dialog-footer">
158 158
           <el-button @click="dialogVisible = false">取 消</el-button>
159
-          <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
159
+          <el-button type="primary" @click="saveAnticoagulation">确 定</el-button>
160 160
         </span>
161 161
       </el-dialog>
162 162
   </div>
@@ -165,7 +165,7 @@
165 165
 <script>
166 166
 import print from "print-js";
167 167
 import Editor from '@/components/Editor'
168
-import { getPatientDetailInformedconsent  } from '@/api/patient'
168
+import { getPatientDetailInformedconsent,saveAnticoagulation  } from '@/api/patient'
169 169
 import { jsGetAge, uParseTime } from "@/utils/tools";
170 170
 const content=`<p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
171 171
   <span style='position: absolute;top: 0px;left: 0;'>一、</span>该知情同意书将向您介绍抗凝溶栓治疗的相关事宜,您有权知道抗凝溶栓治疗的方法、目的、存在的风险、预期效果及对人体的影响。请您仔细阅读,提出与抗凝溶栓有关的任何疑问,决定是否同意对患者实施抗凝溶栓治疗。
@@ -294,6 +294,18 @@ export default{
294 294
       },
295 295
       bianji(){
296 296
         this.dialogVisible=true
297
+      },
298
+      saveAnticoagulation(){
299
+          var params = {
300
+            content:this.$refs.editor.content
301
+          }
302
+        saveAnticoagulation(params).then(response=>{
303
+            if(response.data.state ==1){
304
+              var list = response.data.data.list
305
+              this.$message.success("保存成功")
306
+              this.dialogVisible = false
307
+            }
308
+        })
297 309
       }
298 310
   },
299 311
   created(){

+ 24 - 3
src/xt_pages/user/Informed/components/arteriovenous_informed.vue 查看文件

@@ -119,7 +119,7 @@
119 119
         </div>
120 120
         <span slot="footer" class="dialog-footer">
121 121
           <el-button @click="dialogVisible = false">取 消</el-button>
122
-          <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
122
+          <el-button type="primary" @click="saveArterOvenous">保 存</el-button>
123 123
         </span>
124 124
       </el-dialog>
125 125
   </div>
@@ -128,7 +128,7 @@
128 128
 <script>
129 129
 import print from "print-js";
130 130
 import Editor from '@/components/Editor'
131
-import { getPatientDetailInformedconsent  } from '@/api/patient'
131
+import { getPatientDetailInformedconsent,saveArterOvenous  } from '@/api/patient'
132 132
 import { jsGetAge, uParseTime } from "@/utils/tools";
133 133
 const content=`<p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
134 134
   <span style='position: absolute;top: 0px;left: 0;'>一、</span>经医生告知,本人因病情需要,须接受血液透析(滤过)治疗。需选择动静脉内瘘穿刺进行透析治疗。但由于该操作具有创伤性和风险性,因个体差异及某些不可预料的因素,穿刺及使用过程中可能会发生意外和并发症,现告知如下:
@@ -169,7 +169,10 @@ export default{
169 169
   props: {
170 170
     patient_id: {
171 171
         type: Number,
172
-      }
172
+      },
173
+    arterOvenousPrint:{
174
+      type:Object,
175
+    }
173 176
    },
174 177
    components:{
175 178
     Editor
@@ -182,6 +185,12 @@ export default{
182 185
     }
183 186
    },
184 187
   created(){
188
+    if(this.arterOvenousPrint!=null && this.arterOvenousPrint.id > 0){
189
+        
190
+      this.content = ""
191
+      this.content = this.arterOvenousPrint.content
192
+    }
193
+    
185 194
     this.getlist()
186 195
   },
187 196
   methods:{
@@ -227,6 +236,18 @@ export default{
227 236
     },
228 237
     bianji(){
229 238
       this.dialogVisible=true
239
+    },
240
+    saveArterOvenous(){
241
+       var params = {
242
+        content:this.$refs.editor.content
243
+       }
244
+      saveArterOvenous(params).then(response=>{
245
+         if(response.data.state == 1){
246
+            var list = response.data.data.list
247
+            this.$message.success("保存成功")
248
+            this.dialogVisible = false
249
+         }
250
+      })
230 251
     }
231 252
   }
232 253
 }

+ 27 - 5
src/xt_pages/user/Informed/components/profunda_informed.vue 查看文件

@@ -78,7 +78,7 @@
78 78
         </div>
79 79
         <span slot="footer" class="dialog-footer">
80 80
           <el-button @click="dialogVisible = false">取 消</el-button>
81
-          <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
81
+          <el-button type="primary" @click="saveProfundaInformed">保 存</el-button>
82 82
         </span>
83 83
       </el-dialog>
84 84
   </div>
@@ -87,7 +87,7 @@
87 87
 <script>
88 88
 import print from "print-js";
89 89
 import Editor from '@/components/Editor'
90
-import { getPatientDetailInformedconsent  } from '@/api/patient'
90
+import { getPatientDetailInformedconsent,saveProfundaInformed  } from '@/api/patient'
91 91
 import { jsGetAge, uParseTime } from "@/utils/tools";
92 92
 const content=`<p style="margin-top: 10px;margin-bottom: 4px;text-align: justify;">拟进行治疗:深静脉透析导管拔管术</p>
93 93
 <p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
@@ -143,7 +143,10 @@ export default{
143 143
   props: {
144 144
     patient_id: {
145 145
         type: Number,
146
-      }
146
+      },
147
+      profundaPrint:{
148
+       type:Object,
149
+    }
147 150
    },
148 151
    components:{
149 152
     Editor
@@ -152,16 +155,23 @@ export default{
152 155
     return{
153 156
       patient:{},
154 157
       dialogVisible:false,
155
-      content:content
158
+      content:content,
159
+     
156 160
     }
157 161
    },
158 162
 
159 163
    created(){
164
+    console.log("HSHHSHSHHSH",this.profundaPrint)
165
+     if(this.profundaPrint!=null&&this.profundaPrint.id >0){
166
+        console.log("HSHHSHSHHSH")
167
+        this.content = ""
168
+        this.content = this.profundaPrint.content
169
+     }
160 170
      this.getlist()
161 171
    },
162 172
     methods:{
163 173
       getlist(){
164
-        console.log("owwwwwwwwwwwwwwwwwww",this.patient_id)
174
+       
165 175
         getPatientDetailInformedconsent(this.patient_id).then(response=>{
166 176
           if(response.data.state == 1){
167 177
             var patient =  response.data.data.patients
@@ -203,6 +213,18 @@ export default{
203 213
       },
204 214
       bianji(){
205 215
         this.dialogVisible=true
216
+      },
217
+      saveProfundaInformed(){
218
+         var params = {
219
+          content:this.$refs.editor.content,
220
+         }
221
+        saveProfundaInformed(params).then(response=>{
222
+            if(response.data.state ==1){
223
+              var list = response.data.data.list
224
+              this.$message.success("保存成功")
225
+              this.dialogVisible = false
226
+            }
227
+        })
206 228
       }
207 229
     }
208 230
 }