XMLWAN 2 yıl önce
ebeveyn
işleme
881784ccc3

+ 113 - 111
src/xt_pages/outpatientCharges/invoicePrint.vue Dosyayı Görüntüle

@@ -8,169 +8,171 @@
8 8
         icon="el-icon-printer"
9 9
         @click="printThisPage"
10 10
         type="primary"
11
-        >打印</el-button
11
+      >打印</el-button
12 12
       >
13 13
     </template>
14 14
     <div class="app-container" style="padding-top:40px;">
15
-        <div class='dialysisPage'>
16
-          <div v-if="org_id != 10106 && org_id != 10215 && org_id != 4 && org_id != 10188 && org_id != 10217 && org_id!= 10387 && org_id != 0" >
17
-            <printOne v-if="org_id != 10088 " :paramsObj="invoiceParams"></printOne>
18
-            <printThree v-if="org_id == 10088" :paramsObj="invoiceParams"></printThree>
19
-          </div>
20
-          <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
21
-          <printFour v-if="org_id == 10215 || org_id == 4 " :paramsObj="invoiceParams"></printFour>
22
-          <printFive v-if="org_id == 10188 " :paramsObj="invoiceParams"></printFive>
23
-          <printSix v-if="org_id == 10217" :paramsObj="invoiceParams"></printSix>
24
-          <printEight v-if="org_id == 10387|| org_id == 0" :paramsObj="invoiceParams"></printEight>
15
+      <div class='dialysisPage'>
16
+        <div v-if="org_id != 10106 && org_id != 10215 && org_id != 4 && org_id != 10188 && org_id != 10217 && org_id != 0 && org_id != 10387" >
17
+          <printOne v-if="org_id != 10088 " :paramsObj="invoiceParams"></printOne>
18
+          <printThree v-if="org_id == 10088" :paramsObj="invoiceParams"></printThree>
25 19
         </div>
20
+        <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
21
+        <printFour v-if="org_id == 10215 || org_id == 4 " :paramsObj="invoiceParams"></printFour>
22
+        <printFive v-if="org_id == 10188 " :paramsObj="invoiceParams"></printFive>
23
+        <printSix v-if="org_id == 10217" :paramsObj="invoiceParams"></printSix>
24
+        <!--          <printEight v-if="org_id == 10387 || org_id == 0" :paramsObj="invoiceParams"></printEight>-->
25
+        <print-eight v-if="org_id == 10387 || org_id == 0" :paramsObj="invoiceParams"></print-eight>
26
+      </div>
26 27
     </div>
27 28
   </div>
28 29
 </template>
29 30
 
30 31
 <script>
31
-import printOne from './invoiceTemplate/printOne'
32
-import printTwo from './invoiceTemplate/printTwo'
33
-import printThree from './invoiceTemplate/printThree'
34
-import printFour from './invoiceTemplate/printFour'
35
-import printFive from './invoiceTemplate/printFive'
36
-import printSix from './invoiceTemplate/printSix'
37
-import printSeven from './invoiceTemplate/printSeven'
38
-import printEight from './invoiceTemplate/printEight'
39
-export default {
40
-   name: "invoicePrint",
41
-  components: {
42
-    printOne,
43
-    printTwo,
44
-    printThree,
45
-    printFour,
46
-    printFive,
47
-    printSix,
48
-    printSeven,
49
-    printEight
50
-  },
51
-  props:{
52
-    invoiceParams:Object
53
-  },
54
-  data() {
55
-    return {
56
-      childResponse: {},
57
-    //   invoiceParams:{},
58
-     org_id:''
32
+  import printOne from './invoiceTemplate/printOne'
33
+  import printTwo from './invoiceTemplate/printTwo'
34
+  import printThree from './invoiceTemplate/printThree'
35
+  import printFour from './invoiceTemplate/printFour'
36
+  import printFive from './invoiceTemplate/printFive'
37
+  import printSix from './invoiceTemplate/printSix'
38
+  import printSeven from './invoiceTemplate/printSeven'
39
+  import printEight from './invoiceTemplate/printEight'
40
+  import PrintEight from "./invoiceTemplate/printEight";
41
+  export default {
42
+    name: "invoicePrint",
43
+    components: {
44
+      PrintEight,
45
+      printOne,
46
+      printTwo,
47
+      printThree,
48
+      printFour,
49
+      printFive,
50
+      printSix,
51
+      printSeven
52
+    },
53
+    props:{
54
+      invoiceParams:Object
55
+    },
56
+    data() {
57
+      return {
58
+        childResponse: {},
59
+        //   invoiceParams:{},
60
+        org_id:''
59 61
 
60 62
 
61
-    };
62
-  },
63
-  methods: {
64
-    getAdminUser(id) {
65
-      if (id == 0) {
66
-        return "";
67
-      }
68
-      if (id == undefined) {
69
-        return "";
70
-      }
71
-      for (let i = 0; i < this.adminUser.length; i++) {
72
-        if (this.adminUser[i].id == id) {
73
-          return this.adminUser[i].name;
74
-        }
75
-      }
63
+      };
76 64
     },
77
-    getTime(value, temp) {
78
-      if (value == 0) {
65
+    methods: {
66
+      getAdminUser(id) {
67
+        if (id == 0) {
68
+          return "";
69
+        }
70
+        if (id == undefined) {
71
+          return "";
72
+        }
73
+        for (let i = 0; i < this.adminUser.length; i++) {
74
+          if (this.adminUser[i].id == id) {
75
+            return this.adminUser[i].name;
76
+          }
77
+        }
78
+      },
79
+      getTime(value, temp) {
80
+        if (value == 0) {
81
+          return "";
82
+        }
83
+        if (value != undefined) {
84
+          return uParseTime(value, temp);
85
+        }
79 86
         return "";
80
-      }
81
-      if (value != undefined) {
82
-        return uParseTime(value, temp);
83
-      }
84
-      return "";
85
-    },
86
-    printThisPage() {
87
+      },
88
+      printThisPage() {
87 89
         const style =
88
-        '@media print {#invoice-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar div{width:150px;}}';
90
+          '@media print {#invoice-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar div{width:150px;}}';
89 91
         printJS({
90
-            printable: "invoice-print",
91
-            type: "html",
92
-            style: style,
93
-            scanStyles: false
92
+          printable: "invoice-print",
93
+          type: "html",
94
+          style: style,
95
+          scanStyles: false
94 96
         });
95 97
 
96 98
 
97
-      // if (this.org_template_info.template_id == 1) {
98
-      //   printJS({
99
-      //     printable: "dialysis-print-box",
100
-      //     type: "html",
101
-      //     style: style,
102
-      //     scanStyles: false
103
-      //   });
104
-      // }
99
+        // if (this.org_template_info.template_id == 1) {
100
+        //   printJS({
101
+        //     printable: "dialysis-print-box",
102
+        //     type: "html",
103
+        //     style: style,
104
+        //     scanStyles: false
105
+        //   });
106
+        // }
107
+      },
105 108
     },
106
-  },
107
-  created() {
109
+    created() {
108 110
       console.log('this.invoiceParams',this.invoiceParams)
109 111
       this.org_id = this.$store.getters.xt_user.org_id
110
-  },
111
-  watch:{
112
-    paramsObj:{//深度监听,可监听到对象、数组的变化
113
-      handler(val, oldVal){
114
-        this.invoiceParams = val
112
+    },
113
+    watch:{
114
+      paramsObj:{//深度监听,可监听到对象、数组的变化
115
+        handler(val, oldVal){
116
+          this.invoiceParams = val
115 117
 
116
-      },
117
-      deep:true
118
+        },
119
+        deep:true
120
+      }
118 121
     }
119
-  }
120
-};
122
+  };
121 123
 </script>
122 124
 
123 125
 <style lang="scss" scoped>
124
-.printTitle{
126
+  .printTitle{
125 127
     font-size: 22px;
126 128
     text-align: center;
127 129
     font-weight: bold;
128
-}
129
-.infoMain{
130
+  }
131
+  .infoMain{
130 132
     display: flex;
131 133
     flex-wrap: wrap;
132 134
     border-bottom: 2px solid #000;
133 135
     padding:0 10px;
134
-}
135
-.infoMain .infoP{
136
+  }
137
+  .infoMain .infoP{
136 138
     width: 33%;
137 139
     line-height: 24px;
138
-}
139
-.prescriptionBox{
140
+  }
141
+  .prescriptionBox{
140 142
     padding:0 10px;
141 143
     height:600px;
142
-}
143
-.Rp{
144
+  }
145
+  .Rp{
144 146
     font-size: 22px;
145 147
     font-weight: bold;
146
-}
147
-.drugsBox{
148
+  }
149
+  .drugsBox{
148 150
     padding-left: 40px;
149 151
     margin-bottom: 10px;
150
-}
151
-.drugsBox p{
152
+  }
153
+  .drugsBox p{
152 154
     line-height: 30px;
153
-}
154
-.drugsOne{
155
+  }
156
+  .drugsOne{
155 157
     line-height: 24px;
156
-}
157
-.drugsOne span{
158
+  }
159
+  .drugsOne span{
158 160
     margin-right: 20px;
159
-}
160
-.doctorBox{
161
+  }
162
+  .doctorBox{
161 163
     display: flex;
162 164
     justify-content: space-between;
163 165
     padding:0 10px;
164 166
     line-height: 24px;
165 167
     border-bottom: 2px solid #000;
166
-}
167
-.actionBar{
168
+  }
169
+  .actionBar{
168 170
     display: flex;
169 171
     justify-content: space-between;
170 172
     line-height: 24px;
171 173
     padding:0 10px;
172
-}
173
-.actionBar p{
174
+  }
175
+  .actionBar p{
174 176
     width:150px;
175
-}
177
+  }
176 178
 </style>

+ 163 - 163
src/xt_pages/outpatientCharges/invoiceTemplate/printEight.vue Dosyayı Görüntüle

@@ -1,66 +1,66 @@
1 1
 <template>
2
-    <div id='invoice-print'>
3
-        <div style="display:flex;">
4
-            <!-- <div style="position: absolute;top:70px;left:70px;">{{ list.order_number }}</div> -->
5
-            <!-- <div>{{ list.id_card_no }}</div> -->
6
-        </div>
7
-        <!-- <div style="display:flex;justify-content: space-between;">
8
-            <div>{{ list.department_name }}</div>
9
-            <div  style="position: absolute;top:70px;left:300px">{{ list.number }}</div>
10
-            <div></div>
11
-            <div  style="position: absolute;left:560px;top:70px;">
12
-                <span>{{ printDate.slice(0,4) }}</span>
13
-                <span>{{ printDate.slice(5,7) }}</span>
14
-                <span>{{ printDate.slice(8,11) }}</span>
15
-            </div>
16
-        </div> -->
17
-        <div style="display:flex;justify-content: space-between;">
18
-            <div style="position: absolute;top:90px;left:40px;"> {{ paramsObj.name }}</div>
19
-            <div  style="position: absolute;top:90px;left:340px">{{ '门诊号' }}</div>
20
-            <!-- <div style="position: absolute;top:90px;left:240px;">√</div> -->
21
-            <!-- <div>{{ list.pay_way }}</div> -->
22
-            <!-- <div style="position: absolute;top:70px;left:460px;">{{ paramsObj.setl_time.split(' ')[0] }}</div>
23
-            <div style="position: absolute;top:70px;left:560px;">{{ paramsObj.setl_time.split(' ')[0] }}</div> -->
24
-        </div>  
25
-        <!-- <div style="display:flex;justify-content: space-between;">
26
-            
27
-            <div style="position: absolute;top:110px;left:260px;">{{ totalPrice - list.psn_cash_money }}</div>
28
-            <div style="position: absolute;top:110px;left:440px;">{{ list.psn_cash_money }}</div>
29
-            <div style="position: absolute;top:110px;left:580px;">门慢结算</div>
30
-        </div> -->
31
-        <div style="display:flex;justify-content: space-between;">
32
-            <div style="position: absolute;top:160px;left:40px">西药</div>
33
-            <div style="position: absolute;top:160px;left:110px">{{ list.westernMedicineCostTotal }}</div>
34
-            <div style="position: absolute;top:160px;left:180px">检查费</div>
35
-            <div style="position: absolute;top:160px;left:260px">{{ list.checkCostTotal }}</div>
36
-            <div style="position: absolute;top:160px;left:340px">治疗费</div>
37
-            <div style="position: absolute;top:160px;left:420px">{{ list.treatCostTotal }}</div>
38
-            <div style="position: absolute;top:160px;left:500px">床位费</div>
39
-            <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>
40
-        </div>
41
-        <div style="display:flex;justify-content: space-between;">
42
-            <div style="position: absolute;top:190px;left:40px">中成药</div>
43
-            <div style="position: absolute;top:190px;left:110px">{{ list.chineseTraditionalMedicineCostTotal }}</div>
44
-            <div style="position: absolute;top:190px;left:180px">化验费</div>
45
-            <div style="position: absolute;top:190px;left:260px">{{ list.laboratoryCostTotal }}</div>
46
-            <div style="position: absolute;top:190px;left:340px">手术费</div>
47
-            <div style="position: absolute;top:190px;left:420px">{{ list.operationCostTotal }}</div>
48
-            <div style="position: absolute;top:190px;left:500px">其他费</div>
49
-            <div style="position: absolute;top:190px;left:580px">{{ list.otherCostTotal }}</div>
50
-        </div>
51
-        <div style="display:flex;justify-content: space-between;">
52
-            <div style="position: absolute;top:210px;left:40px"></div>
53
-            <div style="position: absolute;top:210px;left:110px"></div>
54
-            <div style="position: absolute;top:210px;left:180px"></div>
55
-            <div style="position: absolute;top:210px;left:260px"></div>
56
-            <div style="position: absolute;top:210px;left:340px">材料费</div>
57
-            <div style="position: absolute;top:210px;left:420px">{{ list.materialCostTotal }}</div>
58
-            <div style="position: absolute;top:210px;left:500px"></div>
59
-            <div style="position: absolute;top:210px;left:580px"></div>
2
+  <div id='invoice-print'>
3
+    <div style="display:flex;">
4
+      <!-- <div style="position: absolute;top:70px;left:70px;">{{ list.order_number }}</div> -->
5
+      <!-- <div>{{ list.id_card_no }}</div> -->
6
+    </div>
7
+    <!-- <div style="display:flex;justify-content: space-between;">
8
+        <div>{{ list.department_name }}</div>
9
+        <div  style="position: absolute;top:70px;left:300px">{{ list.number }}</div>
10
+        <div></div>
11
+        <div  style="position: absolute;left:560px;top:70px;">
12
+            <span>{{ printDate.slice(0,4) }}</span>
13
+            <span>{{ printDate.slice(5,7) }}</span>
14
+            <span>{{ printDate.slice(8,11) }}</span>
60 15
         </div>
61
-        <div>
62
-            <span style="position: absolute;top:240px;left:180px">{{ totalPrice }}</span>
63
-            <span>
16
+    </div> -->
17
+    <div style="display:flex;justify-content: space-between;">
18
+      <div style="position: absolute;top:90px;left:40px;"> {{ paramsObj.name }}</div>
19
+      <div  style="position: absolute;top:90px;left:340px">{{ list.number }}</div>
20
+      <!-- <div style="position: absolute;top:90px;left:240px;">√</div> -->
21
+      <!-- <div>{{ list.pay_way }}</div> -->
22
+      <!-- <div style="position: absolute;top:70px;left:460px;">{{ paramsObj.setl_time.split(' ')[0] }}</div>
23
+      <div style="position: absolute;top:70px;left:560px;">{{ paramsObj.setl_time.split(' ')[0] }}</div> -->
24
+    </div>
25
+    <!-- <div style="display:flex;justify-content: space-between;">
26
+
27
+        <div style="position: absolute;top:110px;left:260px;">{{ totalPrice - list.psn_cash_money }}</div>
28
+        <div style="position: absolute;top:110px;left:440px;">{{ list.psn_cash_money }}</div>
29
+        <div style="position: absolute;top:110px;left:580px;">门慢结算</div>
30
+    </div> -->
31
+    <div style="display:flex;justify-content: space-between;">
32
+      <div style="position: absolute;top:160px;left:40px">西药</div>
33
+      <div style="position: absolute;top:160px;left:110px">{{ list.westernMedicineCostTotal }}</div>
34
+      <div style="position: absolute;top:160px;left:180px">检查费</div>
35
+      <div style="position: absolute;top:160px;left:260px">{{ list.checkCostTotal }}</div>
36
+      <div style="position: absolute;top:160px;left:340px">治疗费</div>
37
+      <div style="position: absolute;top:160px;left:420px">{{ list.treatCostTotal }}</div>
38
+      <div style="position: absolute;top:160px;left:500px">床位费</div>
39
+      <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>
40
+    </div>
41
+    <div style="display:flex;justify-content: space-between;">
42
+      <div style="position: absolute;top:190px;left:40px">中成药</div>
43
+      <div style="position: absolute;top:190px;left:110px">{{ list.chineseTraditionalMedicineCostTotal }}</div>
44
+      <div style="position: absolute;top:190px;left:180px">化验费</div>
45
+      <div style="position: absolute;top:190px;left:260px">{{ list.laboratoryCostTotal }}</div>
46
+      <div style="position: absolute;top:190px;left:340px">手术费</div>
47
+      <div style="position: absolute;top:190px;left:420px">{{ list.operationCostTotal }}</div>
48
+      <div style="position: absolute;top:190px;left:500px">其他费</div>
49
+      <div style="position: absolute;top:190px;left:580px">{{ list.otherCostTotal }}</div>
50
+    </div>
51
+    <div style="display:flex;justify-content: space-between;">
52
+      <div style="position: absolute;top:210px;left:40px"></div>
53
+      <div style="position: absolute;top:210px;left:110px"></div>
54
+      <div style="position: absolute;top:210px;left:180px"></div>
55
+      <div style="position: absolute;top:210px;left:260px"></div>
56
+      <div style="position: absolute;top:210px;left:340px">材料费</div>
57
+      <div style="position: absolute;top:210px;left:420px">{{ list.materialCostTotal }}</div>
58
+      <div style="position: absolute;top:210px;left:500px"></div>
59
+      <div style="position: absolute;top:210px;left:580px"></div>
60
+    </div>
61
+    <div>
62
+      <span style="position: absolute;top:240px;left:180px">{{ totalPrice }}</span>
63
+      <span>
64 64
             <span  style="position: absolute;top:260px;left:180px">
65 65
                 <span v-if="zhongwen.indexOf('万') > -1 && zhongwen.indexOf('拾') > -1 && zhongwen.indexOf('拾') == 1">
66 66
                     {{ zhongwen.substring(0,1) }}
@@ -70,7 +70,7 @@
70 70
             <span  style="position: absolute;top:260px;left:220px">
71 71
                 <span v-if="zhongwen.indexOf('万') > -1">
72 72
                     {{ zhongwen.substring(zhongwen.indexOf('万') - 1,zhongwen.indexOf('万')) }}
73
-                </span> 
73
+                </span>
74 74
                 <span v-else>零</span>
75 75
             </span>
76 76
             <span  style="position: absolute;top:260px;left:260px">
@@ -110,129 +110,129 @@
110 110
                 <span v-else>零</span>
111 111
             </span>
112 112
             </span>
113
-        </div>
114
-        <!-- <div style="position: absolute;top:300px;left:460px">现金:{{ list.psn_cash_money }}</div> -->
115
-        <!-- <div>
116
-            <div style="position: absolute;top:340px;left:120px">{{ org_name }}</div>
117
-            <div v-if="org_id == 9990" style="position: absolute;top:340px;left:300px">钱玉玲</div>
118
-            <div v-if="org_id == 9990" style="position: absolute;top:340px;left:420px">陈国杰</div>
119
-        </div> -->
113
+    </div>
114
+    <!-- <div style="position: absolute;top:300px;left:460px">现金:{{ list.psn_cash_money }}</div> -->
115
+    <!-- <div>
116
+        <div style="position: absolute;top:340px;left:120px">{{ org_name }}</div>
117
+        <div v-if="org_id == 9990" style="position: absolute;top:340px;left:300px">钱玉玲</div>
118
+        <div v-if="org_id == 9990" style="position: absolute;top:340px;left:420px">陈国杰</div>
119
+    </div> -->
120 120
 
121
-           <div style="position: absolute;left:60px;top:300px;">
122
-                <span style="padding-right:20px;">{{ printDate.slice(0,4) }}</span>
123
-                <span style="padding-right:20px;">{{ printDate.slice(5,7) }}</span>
124
-                <span>{{ printDate.slice(8,11) }}</span>
125
-            </div>
126
-            <div style="position: absolute;top:300px;left:300px">收款人姓名</div>
121
+    <div style="position: absolute;left:60px;top:300px;">
122
+      <span style="padding-right:20px;">{{ printDate.slice(0,4) }}</span>
123
+      <span style="padding-right:20px;">{{ printDate.slice(5,7) }}</span>
124
+      <span>{{ printDate.slice(8,11) }}</span>
127 125
     </div>
126
+    <div style="position: absolute;top:300px;left:300px">{{'罗佳菊'}}</div>
127
+  </div>
128 128
 </template>
129 129
 
130 130
 
131 131
 <script>
132
-import { getInvoice } from '@/api/project/project'
133
-export default {
132
+  import { getInvoice } from '@/api/project/project'
133
+  export default {
134 134
     props:{
135
-        paramsObj:Object
135
+      paramsObj:Object
136 136
     },
137 137
     data(){
138
-        return{
139
-            list:{},
140
-            printDate:'',
141
-            zhongwen:'',
142
-            totalPrice:0.0,
143
-            org_id:'',
144
-            org_name:''
145
-        }
138
+      return{
139
+        list:{},
140
+        printDate:'',
141
+        zhongwen:'',
142
+        totalPrice:0.0,
143
+        org_id:'',
144
+        org_name:''
145
+      }
146 146
     },
147 147
     created(){
148
-        console.log('paramsObj',this.paramsObj)
149
-        let params = {
150
-            order_id: this.paramsObj.order_id,
151
-            patient_id: this.paramsObj.patient_id,
152
-            number: this.paramsObj.number,
153
-        }
154
-        this.getInvoice(params)
155
-        // var data = new Date();
156
-        // var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
157
-        // var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
158
-        // this.printDate = data.getFullYear() + "-" + month + "-" + date;
159
-        // this.smalltoBIG(982732.21)
160
-        this.org_id = this.$store.getters.xt_user.org_id
161
-        this.org_name = this.$store.getters.xt_user.org.org_name
148
+      console.log('paramsObj',this.paramsObj)
149
+      let params = {
150
+        order_id: this.paramsObj.order_id,
151
+        patient_id: this.paramsObj.patient_id,
152
+        number: this.paramsObj.number,
153
+      }
154
+      this.getInvoice(params)
155
+      // var data = new Date();
156
+      // var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
157
+      // var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
158
+      // this.printDate = data.getFullYear() + "-" + month + "-" + date;
159
+      // this.smalltoBIG(982732.21)
160
+      this.org_id = this.$store.getters.xt_user.org_id
161
+      this.org_name = this.$store.getters.xt_user.org.org_name
162 162
     },
163 163
     methods:{
164
-        getInvoice(params){
165
-            getInvoice(params).then((res) => {
166
-                console.log('res',res)
167
-                this.list = res.data.data
168
-                this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
169
-                                    this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal
170
-                this.smalltoBIG(this.totalPrice)
171
-                var data = new Date(res.data.data.date * 1000);
172
-                var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
173
-                var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
174
-                this.printDate = data.getFullYear() + "-" + month + "-" + date;
175
-            })
176
-        },
177
-        smalltoBIG(n) {
178
-            // let fraction = ['角', '分'];
179
-            // let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
180
-            // let unit = [['元.', '万,', '亿,'], ["元",'拾', '佰', '仟']];
181
-            // let head = price < 0 ? '欠' : '';
182
-            // price = Math.abs(price);
183
-            // let upper = '';
184
-            // for (let i = 0; i < fraction.length; i++) {
185
-            // upper += (digit[Math.floor(price * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
186
-            // }
187
-            // upper = upper || '整';
188
-            // price = Math.floor(price);
189
-            // for (let i = 0; i < unit[0].length && price > 0; i++) {
190
-            // let p = '';
191
-            // for (let j = 0; j < unit[1].length && price > 0; j++) {
192
-            //     p = digit[price % 10] + unit[1][j] + p;
193
-            //     price = Math.floor(price / 10);
194
-            // }
195
-            // upper = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + upper;
196
-            // }
197
-            // this.zhongwen = head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整')
198
-            // console.log('6666',head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整'))
199
-            if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
200
-                return "数据非法";  //判断数据是否大于0
201
-            }
164
+      getInvoice(params){
165
+        getInvoice(params).then((res) => {
166
+          console.log('res',res)
167
+          this.list = res.data.data
168
+          this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
169
+            this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal
170
+          this.smalltoBIG(this.totalPrice)
171
+          var data = new Date(res.data.data.date * 1000);
172
+          var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
173
+          var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
174
+          this.printDate = data.getFullYear() + "-" + month + "-" + date;
175
+        })
176
+      },
177
+      smalltoBIG(n) {
178
+        // let fraction = ['角', '分'];
179
+        // let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
180
+        // let unit = [['元.', '万,', '亿,'], ["元",'拾', '佰', '仟']];
181
+        // let head = price < 0 ? '欠' : '';
182
+        // price = Math.abs(price);
183
+        // let upper = '';
184
+        // for (let i = 0; i < fraction.length; i++) {
185
+        // upper += (digit[Math.floor(price * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
186
+        // }
187
+        // upper = upper || '整';
188
+        // price = Math.floor(price);
189
+        // for (let i = 0; i < unit[0].length && price > 0; i++) {
190
+        // let p = '';
191
+        // for (let j = 0; j < unit[1].length && price > 0; j++) {
192
+        //     p = digit[price % 10] + unit[1][j] + p;
193
+        //     price = Math.floor(price / 10);
194
+        // }
195
+        // upper = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + upper;
196
+        // }
197
+        // this.zhongwen = head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整')
198
+        // console.log('6666',head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整'))
199
+        if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
200
+          return "数据非法";  //判断数据是否大于0
201
+        }
202 202
 
203
-            var unit = "仟佰拾亿仟佰拾万仟佰拾元角分", str = "";
204
-            n += "00";
203
+        var unit = "仟佰拾亿仟佰拾万仟佰拾元角分", str = "";
204
+        n += "00";
205 205
 
206
-            var indexpoint = n.indexOf('.');  // 如果是小数,截取小数点前面的位数
206
+        var indexpoint = n.indexOf('.');  // 如果是小数,截取小数点前面的位数
207 207
 
208
-            if (indexpoint >= 0){
208
+        if (indexpoint >= 0){
209 209
 
210
-                n = n.substring(0, indexpoint) + n.substr(indexpoint+1, 2);   // 若为小数,截取需要使用的unit单位
211
-            }
210
+          n = n.substring(0, indexpoint) + n.substr(indexpoint+1, 2);   // 若为小数,截取需要使用的unit单位
211
+        }
212 212
 
213
-            unit = unit.substr(unit.length - n.length);  // 若为整数,截取需要使用的unit单位
214
-            for (var i=0; i < n.length; i++){
215
-                str += "零壹贰叁肆伍陆柒捌玖".charAt(n.charAt(i)) + unit.charAt(i);  //遍历转化为大写的数字
216
-            }
213
+        unit = unit.substr(unit.length - n.length);  // 若为整数,截取需要使用的unit单位
214
+        for (var i=0; i < n.length; i++){
215
+          str += "零壹贰叁肆伍陆柒捌玖".charAt(n.charAt(i)) + unit.charAt(i);  //遍历转化为大写的数字
216
+        }
217 217
 
218
-            this.zhongwen =  str.replace(/零(仟|佰|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
219
-            console.log(this.zhongwen)
220
-        },
218
+        this.zhongwen =  str.replace(/零(仟|佰|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
219
+        console.log(this.zhongwen)
220
+      },
221 221
 
222 222
     },
223 223
     watch:{
224
-        paramsObj:{//深度监听,可监听到对象、数组的变化
225
-            handler(val, oldVal){
226
-                let params = {
227
-                    order_id: val.order_id, 
228
-                    patient_id: val.patient_id,
229
-                    number: val.number,
230
-                }
231
-                this.getInvoice(params)
224
+      paramsObj:{//深度监听,可监听到对象、数组的变化
225
+        handler(val, oldVal){
226
+          let params = {
227
+            order_id: val.order_id,
228
+            patient_id: val.patient_id,
229
+            number: val.number,
230
+          }
231
+          this.getInvoice(params)
232 232
 
233
-            },
234
-            deep:true
235
-        }
233
+        },
234
+        deep:true
235
+      }
236 236
     }
237
-}
237
+  }
238 238
 </script>

+ 95 - 450
src/xt_pages/user/dialysisSolution.vue Dosyayı Görüntüle

@@ -3,7 +3,10 @@
3 3
     <patient-sidebar :id="patientID" defaultActive="2-1"></patient-sidebar>
4 4
     <div class="patient-app-container app-container">
5 5
       <div class="Total">
6
+        <!-- <div class="plan" >透析计划</div> -->
7
+        <!-- <table-title title="长期透析处方"></table-title> -->
6 8
         <div class="sum">
9
+          <!-- <span>透析总频率:<el-input :value="totalrate" disabled style="width:180px"></el-input></span> -->
7 10
           <el-button
8 11
             type="primary"
9 12
             size="small"
@@ -39,7 +42,7 @@
39 42
           min-width="50"
40 43
         >
41 44
           <template slot-scope="scope">
42
-            {{modeOptions[scope.row.mode_id]?modeOptions[scope.row.mode_id].name:''}}
45
+            {{ modeOptions[scope.row.mode_id]?modeOptions[scope.row.mode_id].name:'' }}
43 46
           </template>
44 47
         </el-table-column>
45 48
         <el-table-column
@@ -53,7 +56,25 @@
53 56
             {{ scope.row.dialysis_duration_minute }} 分钟
54 57
           </template>
55 58
         </el-table-column>
56
-      
59
+        <!-- <el-table-column
60
+          prop="period"
61
+          label="频率"
62
+          align="center"
63
+          min-width="50">
64
+          <template slot-scope="scope" >
65
+              <span v-if="scope.row.parent_id === 0" >{{scope.row.period}}{{scope.row.times}}</span>
66
+              <span v-else >--</span>
67
+          </template>
68
+        </el-table-column> -->
69
+        <!-- <el-table-column
70
+          prop="name"
71
+          label="处方名"
72
+          align="center"
73
+          min-width="50">
74
+          <template slot-scope="scope" >
75
+              <span >{{scope.row.name}}{{scope.row.sub_name}}</span>
76
+          </template>
77
+        </el-table-column> -->
57 78
         <el-table-column
58 79
           prop="doctor"
59 80
           label="医生"
@@ -86,13 +107,17 @@
86 107
             <span>{{ scope.row.updated_time | parseTime("{y}-{m}-{d}") }}</span>
87 108
           </template>
88 109
         </el-table-column>
89
-
90
-        <el-table-column  align="center" label="状态" width="60">
91
-          <template slot-scope="scope">
92
-            <span v-if="scope.row.solution_status == 1">生效</span>
93
-            <span v-if="scope.row.solution_status == 2">失效</span>
94
-          </template>
95
-        </el-table-column>
110
+        <!-- <el-table-column
111
+           prop="state"
112
+           label="状态"
113
+           align="center"
114
+           min-width="40">
115
+           <template slot-scope="scope" >
116
+               <span v-if="scope.row.initiate_mode==1">启用</span>
117
+               <span v-else-if="scope.row.initiate_mode==2">停用</span>
118
+               <span v-else>未知</span>
119
+             </template>
120
+        </el-table-column> -->
96 121
         <el-table-column label="操作" align="center" min-width="140">
97 122
           <template slot-scope="scope">
98 123
             <el-tooltip
@@ -108,22 +133,19 @@
108 133
                 @click="openEdit(scope.$index, scope.row)"
109 134
               ></el-button>
110 135
             </el-tooltip>
111
-
112
-
113
-             <el-tooltip
114
-              class="item"
115
-              effect="dark"
116
-              content="查看更多"
117
-              placement="top"
118
-            >
119
-              <el-button
120
-                size="small"
121
-                type="primary"
122
-                @click="toClick(scope.row)">
123
-                查看更多
124
-              </el-button>
125
-            </el-tooltip>
126
-         
136
+            <!--   <el-button
137
+                 size="mini"
138
+                 type="primary"
139
+                 @click="openChildEdit(scope.$index, scope.row)" v-else>编辑</el-button>
140
+
141
+               <el-button
142
+                 size="mini"
143
+                 type="success"
144
+                 @click="openNewChild(scope.$index, scope.row)" v-if="scope.row.parent_id===0">新增</el-button>
145
+               <el-button
146
+                 size="mini"
147
+                 type="danger"
148
+                 @click="handleDelete(scope.$index, scope.row)">删除</el-button>-->
127 149
           </template>
128 150
         </el-table-column>
129 151
       </el-table>
@@ -140,111 +162,8 @@
140 162
         :total="total"
141 163
       >
142 164
       </el-pagination>
143
-      
144
-      <div v-show="startShow">
145
-        <el-row :gutter="20" v-if="isShows('透析模式')">
146
-          <el-col :span="6"><div class="grid-content bg-purple">透析模式:{{modeOptions[current_solution.mode_id]?modeOptions[current_solution.mode_id].name:''}}</div></el-col>
147
-        </el-row>
148
-         <el-row :gutter="20">
149
-          <el-col :span="6"  v-if="isShows('透析时长')"><div class="grid-content bg-purple">透析时长:{{current_solution.dialysis_duration_hour}}小时{{current_solution.dialysis_duration_minute}}分钟</div></el-col>
150
-          <el-col :span="6"  v-if="isShows('血流量')"><div class="grid-content bg-purple">血流量(ml/min):{{current_solution.blood_flow_volume}}</div></el-col>
151
-          <el-col :span="6"  v-if="isShows('透析液配方')"><div class="grid-content bg-purple">透析液配方:{{getDialysateFormulation(current_solution.dialysate_formulation)}}</div></el-col>
152
-          <el-col :span="6"  v-if="isShows('抗凝剂')"><div class="grid-content bg-purple">抗凝剂:{{getAnticoagulant(current_solution.anticoagulant)}}</div></el-col>
153
-        </el-row>
154
-
155
-         <el-row :gutter="20">
156
-          <el-col :span="6"  v-if="isShows('首剂')"><div class="grid-content bg-purple">首剂
157
-            <span v-if="current_solution.anticoagulant == 6">(iu):</span>
158
-            <span v-if="current_solution.anticoagulant == 7">(iu):</span>
159
-            <span v-if="current_solution.anticoagulant == 5">(mg):</span>
160
-            <span v-if="current_solution.anticoagulant == 4">(mg):</span>
161
-            <span v-if="current_solution.anticoagulant == 3">(iu):</span>
162
-            <span v-if="current_solution.anticoagulant == 2">(mg):</span>
163
-            <span v-if="current_solution.anticoagulant == 1">(mg):</span>
164
-            {{current_solution.anticoagulant_shouji}}</div></el-col>
165
-          <el-col :span="6"  v-if="isShows('维持')"><div class="grid-content bg-purple">维持
166
-              <span v-if="current_solution.anticoagulant == 7">(iu/h):</span>
167
-              <span v-if="current_solution.anticoagulant == 6">(iu/h):</span>
168
-              <span v-if="current_solution.anticoagulant == 5">(ml/h):</span>
169
-              <span v-if="current_solution.anticoagulant == 4">(mg/h):</span>
170
-              <span v-if="current_solution.anticoagulant == 3">(iu/h):</span>
171
-              <span v-if="current_solution.anticoagulant == 2">(mg/h):</span>
172
-              <span v-if="current_solution.anticoagulant == 1">(mg/h):</span>
173
-            {{current_solution.anticoagulant_weichi}}</div></el-col>
174
-          <el-col :span="6" v-if="isShows('总量')"><div class="grid-content bg-purple">总量
175
-            <span v-if="current_solution.anticoagulant == 5">(mg):</span>
176
-            <span v-if="current_solution.anticoagulant == 6">(iu):</span>
177
-            <span v-if="current_solution.anticoagulant == 7">(iu):</span>
178
-            <span v-if="current_solution.anticoagulant == 4">(mg):</span>
179
-            <span v-if="current_solution.anticoagulant == 3">(iu):</span>
180
-            <span v-if="current_solution.anticoagulant == 2">(mg):</span>
181
-            <span v-if="current_solution.anticoagulant == 1">(mg):</span>
182
-            {{current_solution.anticoagulant_zongliang}}</div></el-col>
183
-          <el-col :span="6"><div class="grid-content bg-purple">钾(mmol/L):{{current_solution.kalium}}</div></el-col>
184
-        </el-row>
185
-
186
-       <el-row :gutter="20">
187
-          <el-col :span="6" v-if="isShows('钠')"><div class="grid-content bg-purple">钠(mmol/L):{{current_solution.sodium}}</div></el-col>
188
-          <el-col :span="6" v-if="isShows('钙')"><div class="grid-content bg-purple">钙:(mmol/L):{{current_solution.calcium}}</div></el-col>
189
-          <el-col :span="6" v-if="isShows('透析器/灌流器')"><div class="grid-content bg-purple">透析器/灌流器:{{current_solution.dialyzer_perfusion_apparatus}}</div></el-col>
190
-        </el-row>
191
-
192
-          <el-row :gutter="20">
193
-            <el-col :span="6" v-if="isShows('透析器')"><div class="grid-content bg-purple">透析器:{{current_solution.dialysis_dialyszers}}</div></el-col>
194
-            <el-col :span="6" v-if="isShows('灌流器')"><div class="grid-content bg-purple">灌流器:{{current_solution.dialysis_irrigation}}</div></el-col>
195
-            <el-col :span="6" v-if="isShows('碳酸氢盐')"><div class="grid-content bg-purple">碳酸氢盐(mmol/L):{{current_solution.bicarbonate}}</div></el-col>
196
-            <el-col :span="6" v-if="isShows('葡萄糖')"><div class="grid-content bg-purple">葡萄糖(mmol/L):{{current_solution.amylaceum}}</div></el-col>
197
-         </el-row>
198
-
199
-            <el-row :gutter="20">
200
-            <el-col :span="6" v-if="isShows('透析液流量')"><div class="grid-content bg-purple">透析液流量(ml/min):{{current_solution.dialysate_flow}}</div></el-col>
201
-            <el-col :span="6" v-if="isShows('透析液温度')"><div class="grid-content bg-purple">透析液温度(℃):{{current_solution.dialysate_temperature}}</div></el-col>
202
-            <el-col :span="6" v-if="isShows('电导度')"><div class="grid-content bg-purple">电导度(mS/cm):{{current_solution.conductivity}}</div></el-col>
203
-            <el-col :span="6" v-if="isShows('体液过多症状')"><div class="grid-content bg-purple">体液过多症状:{{getBodyFluid(current_solution.body_fluid)}}</div></el-col>
204
-         </el-row>
205
-
206
-           <el-row :gutter="20">
207
-            <el-col :span="6" v-if="isShows('体液过多其他症状')"><div class="grid-content bg-purple">体液过多其他症状:{{current_solution.body_fluid_other}}</div></el-col>
208
-            <el-col :span="6" v-if="isShows('透析前使用特殊药物')"><div class="grid-content bg-purple">透析前使用特殊药物:{{getSpecialMedicine(current_solution.special_medicine)}}</div></el-col>
209
-            <el-col :span="6" v-if="isShows('使用其他特殊药物')"><div class="grid-content bg-purple">使用其他特殊药物:{{current_solution.special_medicine_other}}</div></el-col>
210
-            <el-col :span="6" v-if="isShows('血管通路')"><div class="grid-content bg-purple">血管通路:{{getBloodAccess(current_solution.blood_access)}}</div></el-col>
211
-         </el-row>
212
-
213
-           <el-row :gutter="20">
214
-            <el-col :span="6" v-if="isShows('血浆分离器')"><div class="grid-content bg-purple">血浆分离器:{{current_solution.plasma_separator}}</div></el-col>
215
-            <el-col :span="6" v-if="isShows('透析管路')"><div class="grid-content bg-purple">透析管路:{{current_solution.hemodialysis_pipelines}}</div></el-col>
216
-            <el-col :span="6" v-if="isShows('透析管路支数')"><div class="grid-content bg-purple">透析管路支数:{{current_solution.hemodialysis_pipelines_count}}</div></el-col>
217
-            <el-col :span="6" v-if="isShows('穿刺针')"><div class="grid-content bg-purple">穿刺针:{{current_solution.puncture_needle}}</div></el-col>
218
-         </el-row>
219
-
220
-           <el-row :gutter="20">
221
-            <el-col :span="6"  v-if="isShows('穿刺针支数')"><div class="grid-content bg-purple">穿刺针支数:{{current_solution.puncture_needle_count}}</div></el-col>
222
-            <el-col :span="6"  v-if="isShows('促红素')"><div class="grid-content bg-purple">促红素:{{current_solution.epo_count}}</div></el-col>
223
-            <el-col :span="6" v-if="isShows('促红素支数')"><div class="grid-content bg-purple">促红素支数:{{current_solution.epo_count}}</div></el-col>
224
-            <el-col :span="6" v-if="isShows('最大超滤率')"><div class="grid-content bg-purple">最大超滤率(ml/h):{{current_solution.max_ultrafiltration_rate}}</div></el-col>
225
-           </el-row>
226
-             <el-row :gutter="20">
227
-              <el-col :span="6"  v-if="isShows('置换液') && (current_solution.mode_id == 2 || current_solution.mode_id == 5 || current_solution.mode_id == 12)"><div class="grid-content bg-purple">置换液:{{getDisplaceLiqui(current_solution.displace_liqui_part)}}</div></el-col>
228
-              <el-col :span="6"  v-if="isShows('置换液总量') && (current_solution.mode_id == 2 || current_solution.mode_id == 5 || current_solution.mode_id == 12)"><div class="grid-content bg-purple">置换液总量:{{current_solution.displace_liqui_value}}</div></el-col>
229
-           </el-row>
230
-            <el-row :gutter="20">
231
-              <el-col :span="6"  v-if="isShows('吸氧')"><div class="grid-content bg-purple">吸氧:
232
-                 <span v-if="current_solution.oxygen_uptake == 1">需</span>
233
-                 <span v-if="current_solution.oxygen_uptake == 2">无</span>
234
-               </div></el-col>
235
-              <el-col :span="6"  v-if="isShows('吸氧') && current_solution.oxygen_uptake == 1"><div class="grid-content bg-purple">吸氧流量(L/分):{{current_solution.oxygen_flow}}</div></el-col>
236
-              <el-col :span="6"  v-if="isShows('吸氧') && current_solution.oxygen_uptake == 1"><div class="grid-content bg-purple">吸氧时长(h):{{current_solution.oxygen_time}}</div></el-col>
237
-           </el-row>
238
-           <el-row :gutter="20">
239
-            <el-col :span="6"><div class="grid-content bg-purple">备注:{{current_solution.remark}}</div></el-col>
240
-         </el-row>
241
-      </div>
242
-
243 165
     </div>
244 166
 
245
-   
246
-
247
-
248 167
     <el-dialog
249 168
       :title="isEdit ? '编辑透析处方' : '新增透析处方'"
250 169
       :visible.sync="dialogVisible"
@@ -523,19 +442,12 @@
523 442
               <el-input v-model="addPlan.bicarbonate"></el-input>
524 443
             </el-form-item>
525 444
           </el-col>
526
-          <!-- <el-col :span="8" v-if="isShows('葡萄糖')">
445
+          <el-col :span="8" v-if="isShows('葡萄糖')">
527 446
             <el-form-item label="葡萄糖(mmol/L): " prop="glucose">
528 447
               <el-input v-model="addPlan.glucose"></el-input>
529 448
             </el-form-item>
530
-          </el-col> -->
531
-          
532
-          <el-col :span="8" v-if="isShows('葡萄糖')">
533
-            <el-form-item label="葡萄糖(mmol/L): " prop="amylaceum">
534
-              <el-input v-model="addPlan.amylaceum"></el-input>
535
-            </el-form-item>
536 449
           </el-col>
537 450
 
538
-
539 451
           <el-col :span="8" v-if="isShows('透析液流量')">
540 452
             <el-form-item label="透析液流量(ml/min): " prop="dialysate_flow">
541 453
               <el-input v-model="addPlan.dialysate_flow"></el-input>
@@ -625,6 +537,25 @@
625 537
               </el-select>
626 538
             </el-form-item>
627 539
 
540
+            <!-- <el-form-item
541
+              label="置换方式:"
542
+              v-if="
543
+                isShows('置换液')   && (addPlan.mode == 2 || addPlan.mode == 5 || addPlan.mode == 12)
544
+              "
545
+            >
546
+              <el-select
547
+                v-model="addPlan.displace_liqui_part"
548
+                placeholder="请选择"
549
+              >
550
+                <el-option :key="0" label="请选择" :value="0"></el-option>
551
+                <el-option
552
+                  v-for="(option, index) in displace_liqui_part_option"
553
+                  :key="index"
554
+                  :label="option.name"
555
+                  :value="option.id"
556
+                ></el-option>
557
+              </el-select>
558
+            </el-form-item> -->
628 559
           </el-col>
629 560
 
630 561
           <el-col :span="8" v-if="isShows('置换液总量')  && (addPlan.mode == 2 || addPlan.mode == 5 || addPlan.mode == 12)">
@@ -648,6 +579,8 @@
648 579
             </el-form-item>
649 580
           </el-col>
650 581
 
582
+          <!-- </el-row>
583
+          <el-row :gutter="20" > -->
651 584
           <el-col :span="8" v-if="isShows('实际超滤量')">
652 585
             <el-form-item label="实际超滤量(L)">
653 586
               <el-input v-model="addPlan.ultrafiltration"></el-input>
@@ -796,118 +729,8 @@
796 729
       v-on:dialog-comfirm="innerDialogComfirm"
797 730
       v-on:dialog-cancle="innerDialogCancle">
798 731
     </multi-select-box>
799
-     
800
-
801 732
 
802 733
 
803
-    <el-dialog
804
-      :visible.sync="startDialogVisible"
805
-      width="1010px"
806
-    >
807
-      <el-table
808
-        ref="solutionTable"
809
-        :data="tableList"
810
-        border
811
-        fit
812
-        highlight-current-row
813
-        :header-cell-style="{
814
-          backgroundColor: 'rgb(245, 247, 250)',
815
-          color: '#606266'
816
-        }"
817
-        :row-style="{ color: '#303133' }"
818
-        style="width: 100%"
819
-      >
820
-        <el-table-column type="index" align="center" label="序号" width="60">
821
-        </el-table-column>
822
-        <el-table-column
823
-          prop="mode_name"
824
-          align="center"
825
-          label="透析模式"
826
-          min-width="50"
827
-        >
828
-          <template slot-scope="scope">
829
-            {{modeOptions[scope.row.mode_id]?modeOptions[scope.row.mode_id].name:''}}
830
-          </template>
831
-        </el-table-column>
832
-        <el-table-column
833
-          prop="dialysis_duration"
834
-          align="center"
835
-          label="透析时长"
836
-          min-width="50"
837
-        >
838
-          <template slot-scope="scope">
839
-            {{ scope.row.dialysis_duration_hour }} 小时
840
-            {{ scope.row.dialysis_duration_minute }} 分钟
841
-          </template>
842
-        </el-table-column>
843
-      
844
-        <el-table-column
845
-          prop="doctor"
846
-          label="医生"
847
-          align="center"
848
-          min-width="110"
849
-        >
850
-          <template slot-scope="scope">
851
-            <span>{{ getAdminUserName(scope.row.registrars_id) }}</span>
852
-          </template>
853
-        </el-table-column>
854
-
855
-        <el-table-column
856
-          prop="created_time"
857
-          align="center"
858
-          label="创建日期"
859
-          min-width="60"
860
-        >
861
-          <template slot-scope="scope">
862
-            <span>{{ scope.row.created_time | parseTime("{y}-{m}-{d}") }}</span>
863
-          </template>
864
-        </el-table-column>
865
-
866
-        <el-table-column
867
-          prop="updated_time"
868
-          align="center"
869
-          label="更新日期"
870
-          min-width="60"
871
-        >
872
-          <template slot-scope="scope">
873
-            <span>{{ scope.row.updated_time | parseTime("{y}-{m}-{d}") }}</span>
874
-          </template>
875
-        </el-table-column>
876
-        <el-table-column  align="center" label="状态" width="60">
877
-          <template slot-scope="scope">
878
-            <span v-if="scope.row.solution_status == 1">生效</span>
879
-            <span v-if="scope.row.solution_status == 2">失效</span>
880
-          </template>
881
-        </el-table-column>
882
-      </el-table>
883
-      <el-pagination
884
-        align="right"
885
-        @size-change="handleSizeChangeOne"
886
-        @current-change="handleCurrentChangeOne"
887
-        :current-page="pageOne"
888
-        :page-sizes="[10, 20, 50, 100]"
889
-        :page-size="10"
890
-        background
891
-        style="margin-top:20px;"
892
-        layout="total, sizes, prev, pager, next, jumper"
893
-        :total="totalOne"
894
-      >
895
-      </el-pagination>
896
-      <span slot="footer" class="dialog-footer">
897
-        <el-button
898
-          type="primary"
899
-          @click="startDialogVisible = false"
900
-          >取消</el-button
901
-        >
902
-        <el-button
903
-          type="primary"
904
-          @click="startDialogVisible = false"
905
-         
906
-          >确定</el-button
907
-        >
908
-      </span>
909
-    </el-dialog>
910
-
911 734
   </div>
912 735
 </template>
913 736
 
@@ -922,8 +745,7 @@ import {
922 745
   editChildPatientDialysisSolution,
923 746
   editDialysisSolutionDetail,
924 747
   editPatientDialysisSolution,
925
-  findePatientDialysisLongSolutions,
926
-  getDialysisSolutionDetailList
748
+  fetchPatientDialysisSolutions
927 749
 } from '@/api/patient'
928 750
 
929 751
 import { getSystemPrescription } from '@/api/config'
@@ -1073,7 +895,7 @@ export default {
1073 895
         epo:"",
1074 896
         epo_count:"",
1075 897
         max_ultrafiltration_rate:"",
1076
-        amylaceum:"",
898
+
1077 899
       },
1078 900
       childPlan: {
1079 901
         mode: '',
@@ -1209,13 +1031,6 @@ export default {
1209 1031
       {id:2,name:"无"}
1210 1032
      ],
1211 1033
      oxygenShow:false,
1212
-     startDialogVisible:false,
1213
-     tableList:[],
1214
-     totalOne:0,
1215
-     pageOne:1,
1216
-     limitOne:10,
1217
-     startShow:false,
1218
-     solutionDetail:{},
1219 1034
     }
1220 1035
   },
1221 1036
   watch: {
@@ -1381,8 +1196,6 @@ export default {
1381 1196
     },
1382 1197
 
1383 1198
     tableCurrentChange(current) {
1384
-      console.log("current",current)
1385
-      this.startShow = true
1386 1199
       if (typeof current === 'undefined' || current == null) {
1387 1200
         this.current_solution = {
1388 1201
           id: 0,
@@ -1507,7 +1320,18 @@ export default {
1507 1320
               duration: 2000
1508 1321
             })
1509 1322
             this.tableData.splice(index, 1)
1510
-           
1323
+            // if (row.parent_id>0) {
1324
+            //   this.tableData.splice(index,1);
1325
+            // }else {
1326
+            //     var resetTableData = this.tableData;
1327
+            //     this.tableData = [];
1328
+            //     var that = this;
1329
+            //     resetTableData.forEach(function(item, itemindex){
1330
+            //         if (item.id != row.id && item.parent_id != row.id) {
1331
+            //             that.tableData.push(item);
1332
+            //         }
1333
+            //     });
1334
+            // }
1511 1335
           }
1512 1336
         })
1513 1337
       })
@@ -1662,12 +1486,10 @@ export default {
1662 1486
           this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1663 1487
           this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1664 1488
           this.addPlan.mode_id = parseInt(this.addPlan.mode_id)
1665
-          if(this.addPlan.mode!=2 && this.addPlan.mode!=5&&this.addPlan.mode!=12){
1489
+          if(this.addPlan.mode_id!=2 && this.addPlan.mode_id!=5&&this.addPlan.mode_id!=12){
1666 1490
             this.addPlan.displace_liqui_part = 0
1667 1491
             this.addPlan.displace_liqui_value = 0
1668 1492
           }
1669
-          console.log("this.addplan",this.addPlan)
1670
-          
1671 1493
           editPatientDialysisSolution(this.patientID,this.addPlan.id,this.addPlan, mode).then(response => {
1672 1494
             if (response.data.state == 0) {
1673 1495
               this.$message.error(response.data.msg)
@@ -1693,41 +1515,7 @@ export default {
1693 1515
               // this.tableData[this.current_index].updated_time = response.data.data.solution.updated_time;
1694 1516
 
1695 1517
               this.current_index = -1
1696
-             
1697
-              console.log("responsedd23332233223wo",response.data.data.solution)
1698
-              this.current_solution.mode_name = response.data.data.solution.mode_name
1699
-              this.current_solution.dialysis_duration_hour = response.data.data.solution.dialysis_duration_hour
1700
-              this.current_solution.dialysis_duration_minute = response.data.data.solution.dialysis_duration_minute
1701
-              this.current_solution.blood_flow_volume = response.data.data.solution.blood_flow_volume
1702
-              this.current_solution.dialysate_formulation = response.data.data.solution.dialysate_formulation
1703
-              this.current_solution.anticoagulant = response.data.data.solution.anticoagulant
1704
-              this.current_solution.anticoagulant_shouji  = response.data.data.solution.anticoagulant_shouji
1705
-              this.current_solution.anticoagulant_weichi = response.data.data.solution.anticoagulant_weichi
1706
-              this.current_solution.anticoagulant_zongliang = response.data.data.solution.anticoagulant_zongliang
1707
-              this.current_solution.sodium =response.data.data.solution.sodium
1708
-              this.current_solution.calcium = response.data.data.solution.calcium
1709
-              this.current_solution.dialyzer_perfusion_apparatus = response.data.data.solution.dialyzer_perfusion_apparatus
1710
-              this.current_solution.dialysis_dialyszers = response.data.data.solution.dialysis_dialyszers
1711
-              this.current_solution.dialysis_irrigation = response.data.data.solution.dialysis_irrigation
1712
-              this.current_solution.bicarbonate = response.data.data.solution.bicarbonate
1713
-              this.current_solution.glucose = response.data.data.data.solution.glucose
1714
-              this.current_solution.dialysate_flow = response.data.data.solution.dialysate_flow
1715
-              this.current_solution.dialysate_temperature = response.data.data.solution.dialysate_temperature
1716
-              this.current_solution.conductivity = response.data.data.solution.conductivity
1717
-              this.current_solution.body_fluid = response.data.data.solution.body_fluid
1718
-              this.current_solution.body_fluid_other = response.data.data.solution.body_fluid_other
1719
-              this.current_solution.special_medicine = response.data.data.solution.special_medicine
1720
-              this.current_solution.special_medicine_other = response.data.data.solution.special_medicine_other
1721
-              this.current_solution.blood_access = response.data.data.solution.blood_access
1722
-              this.current_solution.plasma_separator = response.data.data.solution.plasma_separator
1723
-              this.current_solution.hemodialysis_pipelines = response.data.data.solution.hemodialysis_pipelines
1724
-              this.current_solution.hemodialysis_pipelines_count = response.data.data.solution.hemodialysis_pipelines_count
1725
-              this.current_solution.puncture_needle =response.data.data.solution.puncture_needle
1726
-              this.current_solution.puncture_needle_count = response.data.solution.puncture_needle_count
1727
-              this.current_solution.epo_count = response.data.data.solution.epo_count
1728
-              this.current_solution.max_ultrafiltration_rate = response.data.data.solution.max_ultrafiltration_rate
1729
-              this.current_solution.remark = response.data.data.solution.remark
1730
-              this.FindePatientDialysisLongSolutions()
1518
+              this.fetchPatientDialysisSolutions()
1731 1519
               return false
1732 1520
             }
1733 1521
           })
@@ -1769,7 +1557,7 @@ export default {
1769 1557
               }
1770 1558
               this.total += 1
1771 1559
               // this.$refs[formName].resetFields()
1772
-              this.FindePatientDialysisLongSolutions()
1560
+              this.fetchPatientDialysisSolutions()
1773 1561
               return false
1774 1562
             }
1775 1563
           })
@@ -1781,22 +1569,14 @@ export default {
1781 1569
     },
1782 1570
     handleSizeChange(val) {
1783 1571
       this.queryParams.limit = val
1784
-      this.FindePatientDialysisLongSolutions()
1572
+      this.fetchPatientDialysisSolutions()
1785 1573
     },
1786 1574
     handleCurrentChange(val) {
1787 1575
       this.queryParams.page = val
1788
-      this.FindePatientDialysisLongSolutions()
1789
-    },
1790
-     handleSizeChangeOne(val) {
1791
-      this.limitOne = val
1792
-      this.getDialysisSolutionDetailList()
1793
-    },
1794
-     handleCurrentChangeOne(val) {
1795
-      this.pageOne = val
1796
-      this.getDialysisSolutionDetailList()
1576
+      this.fetchPatientDialysisSolutions()
1797 1577
     },
1798 1578
     openEdit(index, row) {
1799
-      
1579
+      console.log("ro233344433344444444",row)
1800 1580
       this.current_index = index
1801 1581
       this.addPlan.id = row.id
1802 1582
       this.addPlan.mode = row.mode_id
@@ -2101,8 +1881,8 @@ export default {
2101 1881
         }
2102 1882
       })
2103 1883
     },
2104
-    FindePatientDialysisLongSolutions() {
2105
-      findePatientDialysisLongSolutions(this.queryParams).then(response => {
1884
+    fetchPatientDialysisSolutions() {
1885
+      fetchPatientDialysisSolutions(this.queryParams).then(response => {
2106 1886
         if (response.data.state == 1) {
2107 1887
           this.tableData = response.data.data.solutions
2108 1888
           this.total = response.data.data.total
@@ -2164,7 +1944,7 @@ export default {
2164 1944
         return false
2165 1945
       }
2166 1946
       this.anticoagulant = this.anticoagulantsConfit[thismode]
2167
-      console.log("数据",this.anticoagulant)
1947
+
2168 1948
       if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
2169 1949
          this.addPlan.anticoagulant_zongliang = ""
2170 1950
          this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
@@ -2191,10 +1971,12 @@ export default {
2191 1971
       ) {
2192 1972
         return false
2193 1973
       }
1974
+      // this.current_model = this.modeOptions[thismode];
2194 1975
       this.addPlan.mode_name = this.modeOptions[thismode].name
2195 1976
       const params = {
2196 1977
         id: thismode
2197 1978
       }
1979
+
2198 1980
       getSystemPrescription(params).then(response => {
2199 1981
         if (response.data.state == 1) {
2200 1982
            var prescription =   response.data.data.prescription
@@ -2378,141 +2160,6 @@ export default {
2378 2160
       this.addPlan.oxygen_time = ""
2379 2161
      }
2380 2162
     },
2381
-    toClick(val){
2382
-      this.solutionDetail = val
2383
-      var params = {
2384
-        mode_id:val.mode_id,
2385
-        patient_id:val.patient_id,
2386
-        page:this.pageOne,
2387
-        limit:this.limitOne,
2388
-      }
2389
-      getDialysisSolutionDetailList(params).then(response=>{
2390
-        if(response.data.state == 1){
2391
-          this.startDialogVisible = true
2392
-          var list = response.data.data.list
2393
-          this.totalOne = response.data.data.total
2394
-          this.tableList = list
2395
-        }
2396
-      })
2397
-    },
2398
-    getDialysisSolutionDetailList(){
2399
-       var params = {
2400
-         mode_id:this.solutionDetail.mode_id,
2401
-         patient_id:this.solutionDetail.patient_id,
2402
-         page:this.pageOne,
2403
-         limit:this.limitOne,
2404
-       }
2405
-       console.log("params2222222",params)
2406
-      getDialysisSolutionDetailList(params).then(response=>{
2407
-         if(response.data.state == 1){
2408
-          var list = response.data.data.list
2409
-          this.totalOne = 0
2410
-          this.totalOne = response.data.data.total
2411
-          this.tableList = []
2412
-          this.tableList = list
2413
-         }
2414
-      })
2415
-    },
2416
-
2417
-    //修改
2418
-    getDialysateFormulation(id){
2419
-      var name = ""
2420
-      for(let i=0;i<this.dialysate_formulation.length;i++){
2421
-        if(id == this.dialysate_formulation[i].id){
2422
-          name = this.dialysate_formulation[i].name
2423
-        }
2424
-      }
2425
-      return name
2426
-    },
2427
-    getAnticoagulant(id){
2428
-      var name = ""
2429
-      if(id == 1){
2430
-         name = "无肝素"
2431
-      }
2432
-      if(id == 2){
2433
-        name = "普通肝素"
2434
-      }
2435
-      if(id == 3){
2436
-        name = "低分子肝素"
2437
-      }
2438
-      if(id == 4){
2439
-        name = "阿加曲班"
2440
-      }
2441
-      if(id == 5){
2442
-         name ="枸橼酸钠"
2443
-      }
2444
-      if(id == 6){
2445
-        name = "低分子肝素钙"
2446
-      }
2447
-      if(id == 7){
2448
-        name = "低分子肝素钠"
2449
-      }
2450
-      if(id ==8){
2451
-        name = "依诺肝素"
2452
-      }
2453
-      if(id ==9){
2454
-        name = "达肝素"
2455
-      }
2456
-      if(id ==10){
2457
-        name = "体外抗凝"
2458
-      }
2459
-      if(id ==11){
2460
-        name = "那曲肝素"
2461
-      }
2462
-      if(id ==12){
2463
-        name = "无抗凝剂"
2464
-      }
2465
-     if(id ==13){
2466
-        name = "那曲肝素钙"
2467
-      }
2468
-      return name
2469
-    },
2470
-    getBodyFluid(id){
2471
-     var name = ""
2472
-     for(let i=0;i<this.body_fluid_option.length;i++){
2473
-       if(id == this.body_fluid_option[i].id){
2474
-          name = this.body_fluid_option[i].name
2475
-       }
2476
-     }
2477
-     return name
2478
-    },
2479
-    getBloodAccess(id){
2480
-      var name = ""
2481
-      for(let i=0;i<this.blood_access_option.length;i++){
2482
-        if(id == this.blood_access_option[i].id){
2483
-           name = this.blood_access_option[i].name
2484
-        }
2485
-      }
2486
-      return name
2487
-    },
2488
-    getHemodialysisPipelines(id){
2489
-      console.log("管路",this.hemodialysisPipelinesOptions,id)
2490
-      var name = ""
2491
-      for(let i=0;i<this.hemodialysisPipelinesOptions.length;i++){
2492
-        if(id == this.hemodialysisPipelinesOptions[i].id){
2493
-            name = this.hemodialysisPipelinesOptions[i].name
2494
-        }
2495
-      }
2496
-      return name
2497
-    },
2498
-    getDisplaceLiqui(id){
2499
-     var name = ""
2500
-     for(let i=0;i<this.displace_liqui_part_option.length;i++){
2501
-       if(id == this.displace_liqui_part_option[i].id){
2502
-          name = this.displace_liqui_part_option[i].name
2503
-       }
2504
-     } 
2505
-     return name
2506
-    },
2507
-    getSpecialMedicine(id){
2508
-      var name = ""
2509
-      for(let i=0;i<this.special_medicine_option.length;i++){
2510
-         if(id == this.special_medicine_option[i].id){
2511
-            name = this.special_medicine_option[i].name
2512
-         }
2513
-      }
2514
-      return name
2515
-    }
2516 2163
   },
2517 2164
   created() {
2518 2165
     const id = this.$route.params && this.$route.params.id
@@ -2530,12 +2177,11 @@ export default {
2530 2177
 
2531 2178
     this.GetDeviceData()
2532 2179
     this.fetchAllAdminUsers()
2533
-    this.FindePatientDialysisLongSolutions()
2180
+    this.fetchPatientDialysisSolutions()
2534 2181
     this.modeOptions = this.$store.getters.treatment_mode
2535 2182
     this.anticoagulantsSet = this.$store.getters.anticoagulants_set
2536 2183
     this.replacementWays = this.$store.getters.replacement_ways
2537 2184
     this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
2538
-   
2539 2185
     this.blood_filters = this.$store.getters.blood_filters
2540 2186
     this.perfusion_apparatus = this.$store.getters.perfusion_apparatus
2541 2187
     this.hemodialysis_machines = this.$store.getters.hemodialysis_machines
@@ -2622,4 +2268,3 @@ export default {
2622 2268
   background-color: #d0d3da;
2623 2269
 }
2624 2270
 </style>
2625
-