Browse Source

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

XMLWAN 2 years ago
parent
commit
e4f1de519e

+ 210 - 157
src/xt_pages/hospitalStation/components/settlePrescriptionTable.vue View File

@@ -1,132 +1,154 @@
1 1
 <template>
2 2
   <div class="prescriptionTable">
3
-<!--    <el-button-->
4
-<!--        size="small"-->
5
-<!--        type="primary"-->
6
-<!--        icon="el-icon-download"-->
7
-<!--        @click="exportData"-->
8
-<!--    >导出</el-button>-->
9
-    <el-table
10
-      v-if="prescription.type == 1"
11
-      :data="prescription.advices"
12
-      border
13
-      style="width: 99%"
14
-      :row-style="changColor"
15
-      :header-cell-style="{
16
-        backgroundColor: 'rgb(245, 247, 250)',
17
-        color: '#606266',
18
-      }"
19
-      highlight-current-row
20
-    >
21
-      <el-table-column
22
-        align="center"
23
-        type="index"
24
-        width="40"
25
-        label="序号"
26
-      ></el-table-column>
27
-      <el-table-column align="center" prop="name" width="400" label="名称">
28
-        <template slot-scope="scope"
29
-          ><span :title="scope.row.drug_name">{{
30
-            scope.row.drug_name
31
-          }}</span></template
32
-        >
33
-      </el-table-column>
34
-      <el-table-column align="center" prop="name" width="80" label="单次用量">
35
-        <template slot-scope="scope">
36
-          <!--<el-input v-model="scope.row.delivery_way" readonly></el-input>-->
37
-          <div>{{ scope.row.single_dose }}{{ scope.row.single_dose_unit }}</div>
38
-        </template>
39
-      </el-table-column>
40
-      <el-table-column align="center" prop="name" width="80" label="用法">
41
-        <template slot-scope="scope">
42
-          <!--<el-input v-model="scope.row.delivery_way" readonly></el-input>-->
43
-          <div>{{ scope.row.delivery_way }}</div>
44
-        </template>
45
-      </el-table-column>
46
-      <el-table-column align="center" prop="name" width="80" label="频率">
47
-        <template slot-scope="scope">
48
-          <div>{{ scope.row.execution_frequency }}</div>
3
+    <el-button
4
+        size="small"
5
+        type="primary"
6
+        icon="el-icon-download"
7
+        @click="exportData"
8
+    >导出</el-button>
9
+<!--    <el-table-->
10
+<!--        v-if="prescription.type == 1"-->
11
+<!--      :data="prescription.advices"-->
12
+<!--      border-->
13
+<!--      style="width: 99%"-->
14
+<!--      :row-style="changColor"-->
15
+<!--      :header-cell-style="{-->
16
+<!--        backgroundColor: 'rgb(245, 247, 250)',-->
17
+<!--        color: '#606266',-->
18
+<!--      }"-->
19
+<!--      highlight-current-row-->
20
+<!--    >-->
21
+<!--      <el-table-column-->
22
+<!--        align="center"-->
23
+<!--        type="index"-->
24
+<!--        width="40"-->
25
+<!--        label="序号"-->
26
+<!--      ></el-table-column>-->
49 27
 
50
-          <!--<el-input v-model="scope.row.execution_frequency" readonly></el-input>-->
51
-        </template>
52
-      </el-table-column>
28
+<!--      <el-table-column-->
29
+<!--          align="center"-->
30
+<!--          prop="single_dose"-->
31
+<!--          width="80"-->
32
+<!--          label="姓名"-->
33
+<!--      >-->
34
+<!--        <template slot-scope="scope">-->
35
+<!--          {{patientName}}-->
36
+<!--        </template>-->
37
+<!--      </el-table-column>-->
53 38
 
54
-      <el-table-column align="center" prop="day" width="80" label="天数">
55
-        <template slot-scope="scope">{{ scope.row.day }}天</template>
56
-      </el-table-column>
39
+<!--      <el-table-column-->
40
+<!--          align="center"-->
41
+<!--          prop="single_dose"-->
42
+<!--          width="80"-->
43
+<!--          label="就诊号"-->
44
+<!--      >-->
45
+<!--        <template slot-scope="scope">-->
46
+<!--          {{number}}-->
47
+<!--        </template>-->
48
+<!--      </el-table-column>-->
57 49
 
58
-      <el-table-column align="center" prop="name" width="80" label="总量">
59
-        <template slot-scope="scope"
60
-          >{{ scope.row.prescribing_number
61
-          }}{{ scope.row.prescribing_number_unit }}</template
62
-        >
63
-      </el-table-column>
64
-      <el-table-column align="center" prop="name" width="100" label="单价">
65
-        <template slot-scope="scope">
66
-          <div>{{ scope.row.retail_price }}元</div>
50
+<!--      <el-table-column align="center" prop="name" width="400" label="名称">-->
51
+<!--        <template slot-scope="scope"-->
52
+<!--          ><span :title="scope.row.drug_name">{{-->
53
+<!--            scope.row.drug_name-->
54
+<!--          }}</span></template-->
55
+<!--        >-->
56
+<!--      </el-table-column>-->
57
+<!--      <el-table-column align="center" prop="name" width="80" label="单次用量">-->
58
+<!--        <template slot-scope="scope">-->
59
+<!--          &lt;!&ndash;<el-input v-model="scope.row.delivery_way" readonly></el-input>&ndash;&gt;-->
60
+<!--          <div>{{ scope.row.single_dose }}{{ scope.row.single_dose_unit }}</div>-->
61
+<!--        </template>-->
62
+<!--      </el-table-column>-->
63
+<!--      <el-table-column align="center" prop="name" width="80" label="用法">-->
64
+<!--        <template slot-scope="scope">-->
65
+<!--          &lt;!&ndash;<el-input v-model="scope.row.delivery_way" readonly></el-input>&ndash;&gt;-->
66
+<!--          <div>{{ scope.row.delivery_way }}</div>-->
67
+<!--        </template>-->
68
+<!--      </el-table-column>-->
69
+<!--      <el-table-column align="center" prop="name" width="80" label="频率">-->
70
+<!--        <template slot-scope="scope">-->
71
+<!--          <div>{{ scope.row.execution_frequency }}</div>-->
67 72
 
68
-          <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
69
-        </template>
70
-      </el-table-column>
73
+<!--          &lt;!&ndash;<el-input v-model="scope.row.execution_frequency" readonly></el-input>&ndash;&gt;-->
74
+<!--        </template>-->
75
+<!--      </el-table-column>-->
71 76
 
72
-      <el-table-column align="center" prop="name" width="100" label="总价">
73
-        <template slot-scope="scope">
74
-          <div>
75
-            {{
76
-              (scope.row.prescribing_number * scope.row.retail_price).toFixed(
77
-                2
78
-              )
79
-            }}元
80
-          </div>
77
+<!--&lt;!&ndash;      <el-table-column align="center" prop="day" width="80" label="天数">&ndash;&gt;-->
78
+<!--&lt;!&ndash;        <template slot-scope="scope">{{ scope.row.day }}天</template>&ndash;&gt;-->
79
+<!--&lt;!&ndash;      </el-table-column>&ndash;&gt;-->
81 80
 
82
-          <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
83
-        </template>
84
-      </el-table-column>
81
+<!--      <el-table-column align="center" prop="name" width="80" label="总量">-->
82
+<!--        <template slot-scope="scope"-->
83
+<!--          >{{ scope.row.prescribing_number-->
84
+<!--          }}{{ scope.row.prescribing_number_unit }}</template-->
85
+<!--        >-->
86
+<!--      </el-table-column>-->
87
+<!--      <el-table-column align="center" prop="name" width="100" label="单价">-->
88
+<!--        <template slot-scope="scope">-->
89
+<!--          <div>{{ scope.row.retail_price }}元</div>-->
85 90
 
86
-      <el-table-column align="center" prop="name" width="80" label="全自费金额">
87
-        <template slot-scope="scope">
88
-          <div>{{ scope.row.fulamt_ownpay_amt }}元</div>
89
-        </template>
90
-      </el-table-column>
91
+<!--          &lt;!&ndash;<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>&ndash;&gt;-->
92
+<!--        </template>-->
93
+<!--      </el-table-column>-->
91 94
 
92
-      <el-table-column align="center" prop="name" width="80" label="超限价金额">
93
-        <template slot-scope="scope">
94
-          <div>{{ scope.row.overlmt_amt  }}元</div>
95
-        </template>
96
-      </el-table-column>
95
+<!--      <el-table-column align="center" prop="name" width="100" label="总价">-->
96
+<!--        <template slot-scope="scope">-->
97
+<!--          <div>-->
98
+<!--            {{-->
99
+<!--              (scope.row.prescribing_number * scope.row.retail_price).toFixed(-->
100
+<!--                2-->
101
+<!--              )-->
102
+<!--            }}元-->
103
+<!--          </div>-->
97 104
 
98
-      <el-table-column
99
-        align="center"
100
-        prop="name"
101
-        width="80"
102
-        label="先行自付金额"
103
-      >
104
-        <template slot-scope="scope">
105
-          <div>{{ scope.row.preselfpay_amt }}元</div>
106
-        </template>
107
-      </el-table-column>
105
+<!--          &lt;!&ndash;<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>&ndash;&gt;-->
106
+<!--        </template>-->
107
+<!--      </el-table-column>-->
108 108
 
109
-      <el-table-column
110
-        align="center"
111
-        prop="name"
112
-        width="70"
113
-        label="符合正常范围金额"
114
-      >
115
-        <template slot-scope="scope">
116
-          <div>{{scope.row.inscp_scp_amt}}元</div>
117
-        </template>
118
-      </el-table-column>
109
+<!--      <el-table-column align="center" prop="name" width="80" label="全自费金额">-->
110
+<!--        <template slot-scope="scope">-->
111
+<!--          <div>{{ scope.row.fulamt_ownpay_amt }}元</div>-->
112
+<!--        </template>-->
113
+<!--      </el-table-column>-->
119 114
 
120
-      <el-table-column align="center" prop="name" width="60" label="备注">
121
-        <template slot-scope="scope">
122
-          <!--<el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder="" readonly></el-input>-->
123
-          <div>{{ scope.row.remark }}</div>
124
-        </template>
125
-      </el-table-column>
126
-    </el-table>
115
+<!--      <el-table-column align="center" prop="name" width="80" label="超限价金额">-->
116
+<!--        <template slot-scope="scope">-->
117
+<!--          <div>{{ scope.row.overlmt_amt  }}元</div>-->
118
+<!--        </template>-->
119
+<!--      </el-table-column>-->
120
+
121
+<!--      <el-table-column-->
122
+<!--        align="center"-->
123
+<!--        prop="name"-->
124
+<!--        width="80"-->
125
+<!--        label="先行自付金额"-->
126
+<!--      >-->
127
+<!--        <template slot-scope="scope">-->
128
+<!--          <div>{{ scope.row.preselfpay_amt }}元</div>-->
129
+<!--        </template>-->
130
+<!--      </el-table-column>-->
131
+
132
+<!--      <el-table-column-->
133
+<!--        align="center"-->
134
+<!--        prop="name"-->
135
+<!--        width="70"-->
136
+<!--        label="符合正常范围金额"-->
137
+<!--      >-->
138
+<!--        <template slot-scope="scope">-->
139
+<!--          <div>{{scope.row.inscp_scp_amt}}元</div>-->
140
+<!--        </template>-->
141
+<!--      </el-table-column>-->
142
+
143
+<!--      <el-table-column align="center" prop="name" width="60" label="备注">-->
144
+<!--        <template slot-scope="scope">-->
145
+<!--          &lt;!&ndash;<el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder="" readonly></el-input>&ndash;&gt;-->
146
+<!--          <div>{{ scope.row.remark }}</div>-->
147
+<!--        </template>-->
148
+<!--      </el-table-column>-->
149
+<!--    </el-table>-->
127 150
     <el-table
128 151
         id="out-table"
129
-        v-if="prescription.type == 2"
130 152
       :data="prescription.project"
131 153
       border
132 154
       style="width: 99%"
@@ -137,75 +159,100 @@
137 159
       }"
138 160
       highlight-current-row
139 161
     >
162
+
140 163
       <el-table-column
141 164
         align="center"
142 165
         type="index"
143 166
         width="40"
144 167
         label="序号"
145 168
       ></el-table-column>
146
-      <el-table-column
147
-        align="center"
148
-        prop="project_name"
149
-        width="400"
150
-        label="名称"
151
-      >
152
-        <template slot-scope="scope">{{ scope.row.project_name }}</template>
153
-      </el-table-column>
154
-      <el-table-column
155
-        align="center"
156
-        prop="statistical_classification"
157
-        width="100"
158
-        label="组"
159
-      >
160
-        <template slot-scope="scope">{{
161
-          getGroup(scope.row.statistical_classification)
162
-        }}</template>
163
-      </el-table-column>
164 169
 
165 170
       <el-table-column
166
-        align="center"
167
-        prop="single_dose"
168
-        width="80"
169
-        label="单次用量"
171
+          align="center"
172
+          prop="single_dose"
173
+          width="80"
174
+          label="姓名"
170 175
       >
171 176
         <template slot-scope="scope">
172
-          <!--<el-input v-model="scope.row.delivery_way" placeholder="" readonly></el-input>-->
173
-          {{ scope.row.single_dose }}{{ scope.row.unit }}
177
+          {{patientName}}
174 178
         </template>
175 179
       </el-table-column>
180
+
176 181
       <el-table-column
177
-        align="center"
178
-        prop="delivery_way"
179
-        width="80"
180
-        label="用法"
182
+          align="center"
183
+          prop="single_dose"
184
+          width="80"
185
+          label="就诊号"
181 186
       >
182 187
         <template slot-scope="scope">
183
-          <!--<el-input v-model="scope.row.delivery_way" placeholder="" readonly></el-input>-->
184
-          {{ scope.row.delivery_way }}
188
+          {{number}}
185 189
         </template>
186 190
       </el-table-column>
191
+
192
+
187 193
       <el-table-column
188 194
         align="center"
189
-        prop="execution_frequency"
190
-        width="80"
191
-        label="频率"
195
+        prop="project_name"
196
+        width="400"
197
+        label="名称"
192 198
       >
193
-        <template slot-scope="scope">
194
-          <!--<el-input v-model="scope.row.execution_frequency" placeholder="" readonly></el-input>-->
195
-          {{ scope.row.execution_frequency }}
196
-        </template>
199
+        <template slot-scope="scope">{{ scope.row.project_name }}</template>
197 200
       </el-table-column>
201
+<!--      <el-table-column-->
202
+<!--        align="center"-->
203
+<!--        prop="statistical_classification"-->
204
+<!--        width="100"-->
205
+<!--        label="组"-->
206
+<!--      >-->
207
+<!--        <template slot-scope="scope">{{-->
208
+<!--          getGroup(scope.row.statistical_classification)-->
209
+<!--        }}</template>-->
210
+<!--      </el-table-column>-->
211
+
198 212
       <el-table-column
199 213
         align="center"
200
-        prop="number_days"
214
+        prop="single_dose"
201 215
         width="80"
202
-        label="天数"
216
+        label="单次用量"
203 217
       >
204 218
         <template slot-scope="scope">
205
-          <!--<el-input v-model="scope.row.number_days" placeholder="" readonly></el-input>-->
206
-          {{ scope.row.number_days }}天
219
+          <!--<el-input v-model="scope.row.delivery_way" placeholder="" readonly></el-input>-->
220
+          {{ scope.row.single_dose }}{{ scope.row.unit }}
207 221
         </template>
208 222
       </el-table-column>
223
+<!--      <el-table-column-->
224
+<!--        align="center"-->
225
+<!--        prop="delivery_way"-->
226
+<!--        width="80"-->
227
+<!--        label="用法"-->
228
+<!--      >-->
229
+<!--        <template slot-scope="scope">-->
230
+<!--          &lt;!&ndash;<el-input v-model="scope.row.delivery_way" placeholder="" readonly></el-input>&ndash;&gt;-->
231
+<!--          {{ scope.row.delivery_way }}-->
232
+<!--        </template>-->
233
+<!--      </el-table-column>-->
234
+<!--      <el-table-column-->
235
+<!--        align="center"-->
236
+<!--        prop="execution_frequency"-->
237
+<!--        width="80"-->
238
+<!--        label="频率"-->
239
+<!--      >-->
240
+<!--        <template slot-scope="scope">-->
241
+<!--          &lt;!&ndash;<el-input v-model="scope.row.execution_frequency" placeholder="" readonly></el-input>&ndash;&gt;-->
242
+<!--          {{ scope.row.execution_frequency }}-->
243
+<!--        </template>-->
244
+<!--      </el-table-column>-->
245
+<!--      <el-table-column-->
246
+<!--        align="center"-->
247
+<!--        prop="number_days"-->
248
+<!--        width="80"-->
249
+<!--        label="天数"-->
250
+<!--      >-->
251
+<!--        <template slot-scope="scope">-->
252
+<!--          &lt;!&ndash;<el-input v-model="scope.row.number_days" placeholder="" readonly></el-input>&ndash;&gt;-->
253
+<!--          {{ scope.row.number_days }}天-->
254
+<!--        </template>-->
255
+<!--      </el-table-column>-->
209 256
 
210 257
       <el-table-column align="center" prop="total" width="80" label="总量">
211 258
         <template slot-scope="scope">
@@ -304,7 +351,9 @@ import { getDictionaryDataConfig } from "@/utils/data";
304 351
 export default {
305 352
   props: {
306 353
     prescription: Object,
307
-  },
354
+    patientName:String,
355
+    number:String,
356
+},
308 357
   data() {
309 358
     return {
310 359
       drugways: [],
@@ -325,7 +374,11 @@ export default {
325 374
   },
326 375
   methods: {
327 376
     exportData(){
328
-        let excelName = '导出表格名称.xlsx';
377
+      let excelName =  ""
378
+
379
+
380
+        excelName = this.patientName + "项目耗材"+'.xlsx';
381
+
329 382
         var xlsxParam = { raw: true };//转换成excel时,使用原始的格式
330 383
         // 克隆节点
331 384
         let tables = document.getElementById("out-table").cloneNode(true);

+ 35 - 12
src/xt_pages/hospitalStation/invoiceTemplate/printThree.vue View File

@@ -20,7 +20,7 @@
20 20
             <!-- 姓名 -->
21 21
             <div style="position: absolute;top:90px;left:120px;"> {{ paramsObj.name }}</div>
22 22
             <!-- 个人电脑编号 -->
23
-            <div style="position: absolute;top:90px;left:240px;"></div>
23
+            <div style="position: absolute;top:90px;left:240px;">{{psn_no}}</div>
24 24
             <!-- 科室 -->
25 25
             <div style="position: absolute;top:90px;left:240px;">{{'血透'}}</div>
26 26
             <!-- 床号 -->
@@ -29,13 +29,13 @@
29 29
 
30 30
         <div style="display:flex;justify-content: space-between;">
31 31
             <!-- 住院号 -->
32
-            <div style="position: absolute;top:90px;left:120px;"> {{ list.his_hospital_record.number?list.order.mdtrt_id:'' }}</div>
32
+            <div style="position: absolute;top:90px;left:120px;"> {{ number?number:'' }}</div>
33 33
             <!-- 入院日期 -->
34
-            <div style="position: absolute;top:90px;left:240px;">{{list.his_hospital_record.in_hosptial_time?list.his_hospital_record.in_hosptial_time.spilt(' ')[0]:''}}</div>
34
+            <div style="position: absolute;top:90px;left:240px;">{{in_hosptial_time?in_hosptial_time.split(' ')[0]:''}}</div>
35 35
             <!-- 出院日期 -->
36
-            <div style="position: absolute;top:90px;left:240px;">{{list.his_hospital_record.out_hosptial_time?list.his_hospital_record.out_hosptial_time.spilt(' ')[0]:''}}</div>
36
+            <div style="position: absolute;top:90px;left:240px;">{{out_hosptial_time?out_hosptial_time.split(' ')[0]:''}}</div>
37 37
             <!-- 住院天数 -->
38
-          <div style="position: absolute;top:90px;left:240px;">{{getDay(list.his_hospital_record.in_hosptial_time.split(' ')[0] ,list.his_hospital_record.out_hosptial_time.split(' ')[0])}}</div>
38
+          <div style="position: absolute;top:90px;left:240px;">{{getDay(in_hosptial_time.split(' ')[0] ,out_hosptial_time.split(' ')[0])}}</div>
39 39
         </div>
40 40
 
41 41
         <!-- <div style="display:flex;justify-content: space-between;">
@@ -137,7 +137,7 @@
137 137
                 <span v-else>零</span>
138 138
             </span>
139 139
             </span>
140
-            <span style="position: absolute;top:280px;left:540px">{{ totalPrice }}</span>
140
+            <span style="position: absolute;top:280px;left:540px">{{ list.order.medfee_sumamt }}</span>
141 141
         </div>
142 142
 
143 143
 
@@ -167,7 +167,7 @@
167 167
         </div> -->
168 168
         <!-- 其他基金支付 -->
169 169
         <!-- <div style="position: absolute;top:340px;left:560px">
170
-            
170
+
171 171
           {{list.order.oth_pay?list.order.oth_pay:''}}
172 172
 
173 173
         </div> -->
@@ -207,15 +207,19 @@ export default {
207 207
     },
208 208
     data(){
209 209
         return{
210
-            list:{},
210
+            list:null,
211 211
             printDate:'',
212 212
             zhongwen:'',
213 213
             totalPrice:0.0,
214 214
             org_id:'',
215
-            org_name:''
215
+            org_name:'',
216
+          psn_no:"",
217
+          in_hosptial_time:'',
218
+          out_hosptial_time:'',
219
+          number:'',
216 220
         }
217 221
     },
218
-    created(){
222
+    mounted(){
219 223
         console.log('paramsObj',this.paramsObj)
220 224
         let params = {
221 225
             order_id: this.paramsObj.order_id,
@@ -248,14 +252,33 @@ export default {
248 252
             getInvoice(params).then((res) => {
249 253
                 console.log('res',res)
250 254
                 this.list = res.data.data
251
-                this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
255
+                console.log(this.list)
256
+              console.log(this.list.his_hospital_record)
257
+
258
+              this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
252 259
                                     this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal
253
-                this.smalltoBIG(this.totalPrice)
260
+                this.smalltoBIG( this.list.order.medfee_sumamt)
254 261
                 // var data = new Date(res.data.data.date * 1000);
255 262
                 var data = new Date(this.paramsObj.setl_time);
256 263
                 var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
257 264
                 var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
258 265
                 this.printDate = data.getFullYear() + "-" + month + "-" + date;
266
+
267
+              if(this.list.his.id > 0){
268
+                this.in_hosptial_time = this.getTime()
269
+                this.out_hosptial_time = this.list.order.setl_time.split(' ')[0]
270
+              }else{
271
+                this.in_hosptial_time = this.list.his_hospital_record.in_hosptial_time.split(' ')[0]
272
+                this.out_hosptial_time = this.list.his_hospital_record.out_hosptial_time.split(' ')[0]
273
+              }
274
+
275
+              this.id_card_no = this.list.his_hospital_record.id_card_no
276
+              this.number = this.list.his_hospital_record.number
277
+              this.psn_no = this.list.his_hospital_record.psn_no
278
+
279
+
280
+              this.balance_accounts_type = this.list.his_hospital_record.balance_accounts_type
281
+              this.gend= this.list.his_hospital_record.gend
259 282
             })
260 283
         },
261 284
         smalltoBIG(n) {

+ 2 - 0
src/xt_pages/hospitalStation/outpatientChargesManagement.vue View File

@@ -176,6 +176,8 @@
176 176
                           :name="item.name">
177 177
                       </el-tab-pane>
178 178
                       <settle-prescription-table
179
+                          :patientName="hisPatientInfo.name"
180
+                          :number="hisPatientInfo.number"
179 181
                           :prescription="curSettlePrescriptions"
180 182
                       ></settle-prescription-table>
181 183
                     </el-tabs>

+ 25 - 8
src/xt_pages/hospitalStation/shouJuTemplate/shouJuPrintOne.vue View File

@@ -16,7 +16,7 @@
16 16
       <!-- 姓名 -->
17 17
       <div style="position: absolute;top:90px;left:120px;"> {{ paramsObj.name }}</div>
18 18
       <!-- 个人电脑编号 -->
19
-      <div style="position: absolute;top:90px;left:240px;"></div>
19
+      <div style="position: absolute;top:90px;left:240px;">{{psn_no}}</div>
20 20
       <!-- 科室 -->
21 21
       <div style="position: absolute;top:90px;left:240px;">{{'血透'}}</div>
22 22
       <!-- 床号 -->
@@ -25,13 +25,13 @@
25 25
 
26 26
     <div style="display:flex;justify-content: space-between;">
27 27
       <!-- 住院号 -->
28
-      <div style="position: absolute;top:90px;left:120px;"> {{ list.his_hospital_record.number?list.order.mdtrt_id:'' }}</div>
28
+      <div style="position: absolute;top:90px;left:120px;"> {{ number?number:'' }}</div>
29 29
       <!-- 入院日期 -->
30
-      <div style="position: absolute;top:90px;left:240px;">{{list.his_hospital_record.in_hosptial_time?list.his_hospital_record.in_hosptial_time.spilt(' ')[0]:''}}</div>
30
+      <div style="position: absolute;top:90px;left:240px;">{{in_hosptial_time?in_hosptial_time.split(' ')[0]:''}}</div>
31 31
       <!-- 出院日期 -->
32
-      <div style="position: absolute;top:90px;left:240px;">{{list.his_hospital_record.out_hosptial_time?list.his_hospital_record.out_hosptial_time.spilt(' ')[0]:''}}</div>
32
+      <div style="position: absolute;top:90px;left:240px;">{{out_hosptial_time?out_hosptial_time.split(' ')[0]:''}}</div>
33 33
       <!-- 住院天数 -->
34
-      <div style="position: absolute;top:90px;left:240px;">{{getDay(list.his_hospital_record.in_hosptial_time.split(' ')[0] ,list.his_hospital_record.out_hosptial_time.split(' ')[0])}}</div>
34
+      <div style="position: absolute;top:90px;left:240px;">{{getDay(in_hosptial_time.split(' ')[0] ,out_hosptial_time.split(' ')[0])}}</div>
35 35
     </div>
36 36
 
37 37
     <!-- <div style="display:flex;justify-content: space-between;">
@@ -133,7 +133,7 @@
133 133
                 <span v-else>零</span>
134 134
             </span>
135 135
             </span>
136
-      <span style="position: absolute;top:280px;left:540px">{{ totalPrice }}</span>
136
+      <span style="position: absolute;top:280px;left:540px">{{ list.order.medfee_sumamt }}</span>
137 137
     </div>
138 138
 
139 139
 
@@ -209,7 +209,11 @@ export default {
209 209
       zhongwen:'',
210 210
       totalPrice:0.0,
211 211
       org_id:'',
212
-      org_name:''
212
+      org_name:'',
213
+      psn_no:"",
214
+      in_hosptial_time:'',
215
+      out_hosptial_time:'',
216
+      number:'',
213 217
     }
214 218
   },
215 219
   created(){
@@ -247,12 +251,25 @@ export default {
247 251
         this.list = res.data.data
248 252
         this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
249 253
             this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal
250
-        this.smalltoBIG(this.totalPrice)
254
+        this.smalltoBIG(this.list.order.medfee_sumamt)
251 255
         // var data = new Date(res.data.data.date * 1000);
252 256
         var data = new Date(this.paramsObj.setl_time);
253 257
         var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
254 258
         var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
255 259
         this.printDate = data.getFullYear() + "-" + month + "-" + date;
260
+        if(this.list.his.id > 0){
261
+          this.in_hosptial_time = this.getTime()
262
+          this.out_hosptial_time = this.list.order.setl_time.split(' ')[0]
263
+        }else{
264
+          this.in_hosptial_time = this.list.his_hospital_record.in_hosptial_time.split(' ')[0]
265
+          this.out_hosptial_time = this.list.his_hospital_record.out_hosptial_time.split(' ')[0]
266
+        }
267
+
268
+        this.id_card_no = this.list.his_hospital_record.id_card_no
269
+        this.number = this.list.his_hospital_record.number
270
+        this.psn_no = this.list.his_hospital_record.psn_no
271
+
272
+
256 273
       })
257 274
     },
258 275
     smalltoBIG(n) {

+ 23 - 2
src/xt_pages/hospitalStation/summary.vue View File

@@ -31,6 +31,16 @@
31 31
                         :value="item.value">
32 32
                     </el-option>
33 33
                   </el-select>
34
+
35
+                  <el-select size="small" v-model="charge_type" placeholder="请选择"
36
+                             style="width:150px;margin-left:10px;" @change="changeChargeType">
37
+                    <el-option
38
+                        v-for="(item,index) in charge_types"
39
+                        :key="index"
40
+                        :label="item.label"
41
+                        :value="item.value">
42
+                    </el-option>
43
+                  </el-select>
34 44
                     <el-date-picker size="small" v-model="start_time" prefix-icon="el-icon-date"
35 45
                                     @change="handleStartTimeChange" :editable="false" :clearable="false"
36 46
                                     style="width: 196px;margin-right:10px;" type="date" placeholder="选择开始日期"
@@ -121,7 +131,7 @@
121 131
                           上传结算清单
122 132
                         </el-button>
123 133
                         <el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button>
124
-<!--                      <el-button size="mini" type="primary" @click="shouJuPrint(scope.row)">打印收据</el-button>-->
134
+                      <el-button size="mini" type="primary" @click="shouJuPrint(scope.row)">打印收据</el-button>
125 135
 
126 136
 <!--                        <el-button size="mini" type="primary" @click="refundOne(scope.row)">-->
127 137
 <!--                            撤销出院-->
@@ -277,6 +287,7 @@
277 287
         settlementVisible: false,
278 288
         sort_type:1,
279 289
         p_type:1,
290
+        charge_type:0,
280 291
         sort_types: [
281 292
           { value: 1, label: '处方时间' },
282 293
           { value: 2, label: '结算时间' }
@@ -285,6 +296,10 @@
285 296
           { value: 0, label: '全部' },
286 297
           { value: 1, label: '住院' },
287 298
           { value: 2, label: '门诊' }
299
+        ],charge_types:[
300
+          { value: 0, label: '全部' },
301
+          { value: 1, label: '医保' },
302
+          { value: 2, label: '自费' }
288 303
         ],
289 304
         shouJuVisible:false,
290 305
 
@@ -322,6 +337,11 @@
322 337
           }
323 338
         }).catch(function(error) {
324 339
         })
340
+      },changeChargeType(){
341
+        this.page = 1
342
+        this.keywords = ''
343
+        this.getHisOrderList()
344
+
325 345
       },
326 346
       changePType(){
327 347
         this.page = 1
@@ -839,7 +859,8 @@
839 859
           end_time: this.end_time,
840 860
           type: this.admin_user_id,
841 861
           p_type: this.p_type,
842
-          sort_type: this.sort_type
862
+          sort_type: this.sort_type,
863
+          charge_type: this.charge_type
843 864
 
844 865
         }
845 866
         getHisOrderList(params).then(response => {

+ 1 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -203,7 +203,7 @@
203 203
 
204 204
 
205 205
                                 <el-button v-loading="loadingtwo"
206
-                                           v-if="((hisPatientInfo.id > 0 && items.curPrescriptions.order.id == 0) || items.curPrescriptions.order.order_status == 1 ||  items.curPrescriptions.order.order_status == 3)&& org_id != 10340"
206
+                                           v-if="((hisPatientInfo.id > 0 && items.curPrescriptions.order.id == 0) || items.curPrescriptions.order.order_status == 1 ||  items.curPrescriptions.order.order_status == 3) && org_id != 10340"
207 207
                                            size="small"
208 208
                                            @click="open(4,items.med_type,items.curPrescriptions.order,items.prescriptions)"
209 209
                                            type="primary">收费

File diff suppressed because it is too large
+ 658 - 488
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue