Pārlūkot izejas kodu

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

csx 3 gadus atpakaļ
vecāks
revīzija
5e720bf21c

+ 56 - 1
src/xt_pages/hospitalStation/index.vue Parādīt failu

@@ -76,7 +76,7 @@
76 76
                     <!--<el-form-item class="specialFormItem" label="医保卡号:">-->
77 77
                     <!--<div style="display:flex;">-->
78 78
                     <!--<el-input v-model="form.medicalInsuranceCard"></el-input>-->
79
-                    <!--<el-button style="margin-left:10px;" type="primary" @click="reading">读卡</el-button>-->
79
+                    <el-button style="margin-left:10px;" type="primary" @click="check" v-if="form.id_card_no.length > 0">查待遇</el-button>
80 80
                     <!--</div>-->
81 81
                     <!--</el-form-item>-->
82 82
 
@@ -335,7 +335,62 @@
335 335
     },
336 336
 
337 337
     methods: {
338
+      check(){
339
+        if(this.form.med_type == 0 || this.form.med_type == ''){
340
+          this.$message.error("医疗类别不能为空")
341
+          return
342
+        }
343
+        if(this.form.social_type == 0 || this.form.social_type == ''){
344
+          this.$message.error("社保类型不能为空")
345
+          return
346
+        }
347
+        var that = this
348
+        let params={
349
+          id_card_no: this.form.id_card_no,
350
+          admin_user_id:this.$store.getters.xt_user.user.id,
351
+          med_type: this.form.med_type,
352
+          insutype: this.form.social_type
353
+        }
354
+        axios.get('http://127.0.0.1:9532/api/treatment/check', {
355
+          params: params,
356
+          headers: {
357
+            'Permission': 5
358
+          }
359
+        })
360
+            .then(function(response) {
361
+              if (response.data.state == 0) {
362
+                that.$message.error(response.data.msg)
363
+                that.loadingone = false
364
+                return false
365
+              } else {
366
+                that.loadingone = false
367
+                if (response.data.data.failed_code == -10) {
368
+                  // that.$message.error(response.data.data.msg)
369
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
370
+                    confirmButtonText: '确 定',
371
+                    type: 'warning'
372
+                  }).then(() => {
338 373
 
374
+
375
+                  }).catch(() => {
376
+                  })
377
+                } else {
378
+                  var result_desc = '';
379
+                  result_desc = response.data.data.msg
380
+                  that.$alert(result_desc, '结果', {
381
+                    confirmButtonText: '确定',
382
+                    callback: action => {
383
+                      this.dialogFormVisible = false
384
+                    }
385
+                  });
386
+                }
387
+              }
388
+            })
389
+            .catch(function(error) {
390
+
391
+            })
392
+
393
+      },
339 394
       handleSelect(val) {
340 395
         this.form.id = val.id
341 396
         this.form.name = val.name

+ 194 - 234
src/xt_pages/hospitalStation/outpatientChargesManagement.vue Parādīt failu

@@ -95,7 +95,7 @@
95 95
 
96 96
             <!--                        <el-button v-loading="loadingtwo"-->
97 97
             <!--                                   v-if="(this.activeName != 'third' && this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 && this.order.id == 0)"-->
98
-            <!--                                   size="small"-->
98
+            <!--                    c               size="small"-->
99 99
             <!--                                   @click="open(30)"-->
100 100
             <!--                                   type="primary">上传费用明细-->
101 101
             <!--                        </el-button>-->
@@ -106,23 +106,23 @@
106 106
 <!--            </el-button>-->
107 107
 
108 108
 
109
-            <el-button v-loading="loadingtwo"
110
-                       v-if="(( this.activeName != 'third' &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 && this.order.id == 0))"
111
-                       size="small"
112
-                       @click="open(8)"
113
-                       type="primary">上传费用明细
114
-            </el-button>
109
+<!--            <el-button v-loading="loadingtwo"-->
110
+<!--                       v-if="(( this.activeName != 'third' &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 && this.order.id == 0))"-->
111
+<!--                       size="small"-->
112
+<!--                       @click="open(8)"-->
113
+<!--                       type="primary">上传费用明细-->
114
+<!--            </el-button>-->
115 115
 
116 116
             <!--<el-button size="small" @click="open(1)" type="primary">打印</el-button>-->
117 117
             <el-button v-loading="loadingone" size="small"
118
-                       v-if="(this.activeName == 'third' &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
118
+                       v-if="(this.activeName == 'first' &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
119 119
 
120 120
                        @click="open(2)"
121 121
                        type="primary">出院
122 122
             </el-button>
123 123
 
124 124
             <el-button v-loading="loadingone" size="small"
125
-                       v-if="(this.activeName == 'third' &&this.hisPatientInfo.balance_accounts_type == 2  && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
125
+                       v-if="(this.activeName == 'first' &&this.hisPatientInfo.balance_accounts_type == 2  && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
126 126
 
127 127
                        @click="open(2)"
128 128
                        type="primary">出院
@@ -137,27 +137,27 @@
137 137
             </el-button>
138 138
 
139 139
             <el-button v-loading="loadingtwo"
140
-                       v-if="(this.activeName == 'third' &&this.hisPatientInfo.balance_accounts_type == 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1  && this.order.order_status != 2)"
140
+                       v-if="(this.activeName == 'first' &&this.hisPatientInfo.balance_accounts_type == 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1  && this.order.order_status != 2)"
141 141
                        size="small"
142 142
                        @click="open(3)"
143 143
                        type="primary">收费
144 144
             </el-button>
145 145
 
146 146
             <el-button size="small" @click="open(4)" type="primary"
147
-                       v-if="this.activeName == 'third' &&this.hisPatientInfo.id > 0 && this.order.id > 0 &&  this.order.order_status == 2">
147
+                       v-if="this.activeName == 'first' &&this.hisPatientInfo.id > 0 && this.order.id > 0 &&  this.order.order_status == 2">
148 148
               退费
149 149
             </el-button>
150
-            <el-button v-if="this.activeName == 'third' &&this.order.order_status == 2" size="small" @click="open(5)"
150
+            <el-button v-if="this.activeName == 'first' &&this.order.order_status == 2" size="small" @click="open(5)"
151 151
                        type="primary"
152 152
             >结算单
153 153
             </el-button>
154 154
 
155
-            <el-button
156
-                v-if="( this.activeName != 'third' && this.hisPatientInfo.balance_accounts_type != 2  && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
155
+<!--            <el-button-->
156
+<!--                v-if="( this.activeName != 'third' && this.hisPatientInfo.balance_accounts_type != 2  && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"-->
157 157
 
158
-                size="small" @click="open(9)" type="primary"
159
-            >撤销明细
160
-            </el-button>
158
+<!--                size="small" @click="open(9)" type="primary"-->
159
+<!--            >撤销明细-->
160
+<!--            </el-button>-->
161 161
 
162 162
             <!--                        <el-button-->
163 163
             <!--                                v-if="(this.activeName != 'third' && this.hisPatientInfo.balance_accounts_type != 2  && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"-->
@@ -167,13 +167,13 @@
167 167
             <!--                        </el-button>-->
168 168
 
169 169
             <el-button
170
-                v-if="(this.activeName == 'third' &&this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1)"
170
+                v-if="(this.activeName == 'first' &&this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1)"
171 171
                 size="small" @click="open(6)" type="primary"
172 172
             >撤销出院
173 173
             </el-button>
174 174
 
175 175
             <el-button
176
-                v-if="(this.activeName == 'third' &&this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
176
+                v-if="(this.activeName == 'first' &&this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
177 177
                 size="small" @click="open(7)" type="primary"
178 178
             >撤销入院
179 179
             </el-button>
@@ -189,185 +189,184 @@
189 189
 
190 190
         <div class="mainCenter" v-loading="loading">
191 191
           <el-tabs class="settlementTabs" v-model="activeName" @tab-click="handleClick">
192
-            <el-tab-pane label="日结" name="first">
193
-              <div style="display:flex;height:100%;">
194
-                <div class="centerLeft">
195
-                  <div class="tabsBox">
196
-                    <!--<el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button>-->
197
-                    <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card"
198
-                             @tab-click="tabclickEvent">
199
-                      <el-tab-pane
200
-                          v-for="(item, index) in prescriptions"
201
-                          :key="index"
202
-                          :label="item.name"
203
-                          :name="item.name"
204
-                      >
205
-                      </el-tab-pane>
206
-
207
-                      <!--<div class="RP">-->
208
-                      <!--Rp-->
209
-                      <!--<el-date-picker-->
210
-                      <!--v-model="record_date"-->
211
-                      <!--type="date"-->
212
-                      <!--:clearable="false"-->
213
-                      <!--@change="changeDate"-->
214
-                      <!--format="yyyy-MM-dd"-->
215
-                      <!--value-format="yyyy-MM-dd"-->
216
-                      <!--placeholder="选择日期">-->
217
-                      <!--</el-date-picker>-->
218
-                      <!--</div>-->
219
-                      <!--<charge-prescription-table ref="prescription_tables"-->
220
-                      <!--:prescription="curPrescriptions"></charge-prescription-table>-->
221
-                      <!--<charge-prescription-table ref="prescription_tables" :prescription="curPrescriptions"></charge-prescription-table>-->
222
-                      <charge-prescription-table ref="prescription_tables"
223
-                                                 :manufacturers="manufacturers"
224
-                                                 :prescription="curPrescriptions"></charge-prescription-table>
225
-
226
-                    </el-tabs>
227
-
228
-                  </div>
229
-                  <div class="costBox">
230
-                    <span>当前处方总费用:<span style="color:red;">{{ total }}元</span></span>
231
-                    <span v-if="this.curPrescriptions.order_status  == 1">待结算</span>
232
-                    <span v-if="this.curPrescriptions.order_status  == 2">已结算</span>
233
-                    <span v-if="this.curPrescriptions.order_status  == 3">已退费</span>
234
-                  </div>
235
-                </div>
236
-                <div class="centerRight">
237
-                  <p class="centerRightTitle">人员信息</p>
238
-                  <div style="display:flex;justify-content: space-between;line-height:30px;">
239
-                    <span style="font-size:14px;">人员编码:{{ patientInfo.dialysis_no }}</span>
240
-                    <span style="font-size:14px;">日期:{{ record_date }}</span>
241
-                  </div>
242
-                  <ul class="basicUl">
243
-                    <li style="width:50%;">姓名:{{ patientInfo.name }}</li>
244
-                    <li style="width:50%;">性别:{{ patientInfo.gender == 1 ? '男' : '女' }}</li>
245
-                    <li style="width:50%;">年龄:{{ patientInfo.age }}</li>
246
-                    <li style="width:50%;">电话:{{ patientInfo.phone }}</li>
247
-
248
-                    <!--<span>过敏病史:</span>-->
249
-                    <!--<el-autocomplete-->
250
-                    <!--style="width:100%;"-->
251
-                    <!--class="inline-input"-->
252
-                    <!--v-model="sick_history"-->
253
-                    <!--:fetch-suggestions="querySearch2"-->
254
-                    <!--placeholder="请输入内容"-->
255
-                    <!--&gt;</el-autocomplete>-->
256
-                    <!--<li style="width:100%;">地址:{{patientInfo.home_address}}</li>-->
257
-                    <!--<li style="width:100%;">过敏史及其他病史:{{info.sick_history}}</li>-->
258
-                  </ul>
259
-                  <p class="centerRightTitle" style="padding-top: 10px;">诊断信息</p>
260
-                  <div style="display:flex;justify-content: space-between;line-height:30px;">
261
-                    <span style="font-size:14px;">住院编号:{{ hisPatientInfo.number }}</span>
262
-                  </div>
263
-                  <ul class="basicUl">
264
-                    <li style="width:50%;">医生:{{ info.doctor }}</li>
265
-                    <li style="width:50%;">科室:{{ info.departments }}</li>
266
-                    <li style="width:100%;">总费用:{{ getTotal() }}</li>
267
-
268
-                    <li style="width:100%;">判断结果:{{ info.diagnosis }}</li>
269
-                    <li style="width:100%;">是否有传染病:</li>
270
-                    <li style="width:100%;">血压:</li>
271
-                  </ul>
272
-                </div>
273
-              </div>
274
-            </el-tab-pane>
275
-            <el-tab-pane label="月结" name="second">
192
+<!--            <el-tab-pane label="日结" name="first">-->
193
+<!--              <div style="display:flex;height:100%;">-->
194
+<!--                <div class="centerLeft">-->
195
+<!--                  <div class="tabsBox">-->
196
+<!--                    &lt;!&ndash;<el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button>&ndash;&gt;-->
197
+<!--                    <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card"-->
198
+<!--                             @tab-click="tabclickEvent">-->
199
+<!--                      <el-tab-pane-->
200
+<!--                          v-for="(item, index) in prescriptions"-->
201
+<!--                          :key="index"-->
202
+<!--                          :label="item.name"-->
203
+<!--                          :name="item.name"-->
204
+<!--                      >-->
205
+<!--                      </el-tab-pane>-->
206
+
207
+<!--                      &lt;!&ndash;<div class="RP">&ndash;&gt;-->
208
+<!--                      &lt;!&ndash;Rp&ndash;&gt;-->
209
+<!--                      &lt;!&ndash;<el-date-picker&ndash;&gt;-->
210
+<!--                      &lt;!&ndash;v-model="record_date"&ndash;&gt;-->
211
+<!--                      &lt;!&ndash;type="date"&ndash;&gt;-->
212
+<!--                      &lt;!&ndash;:clearable="false"&ndash;&gt;-->
213
+<!--                      &lt;!&ndash;@change="changeDate"&ndash;&gt;-->
214
+<!--                      &lt;!&ndash;format="yyyy-MM-dd"&ndash;&gt;-->
215
+<!--                      &lt;!&ndash;value-format="yyyy-MM-dd"&ndash;&gt;-->
216
+<!--                      &lt;!&ndash;placeholder="选择日期">&ndash;&gt;-->
217
+<!--                      &lt;!&ndash;</el-date-picker>&ndash;&gt;-->
218
+<!--                      &lt;!&ndash;</div>&ndash;&gt;-->
219
+<!--                      &lt;!&ndash;<charge-prescription-table ref="prescription_tables"&ndash;&gt;-->
220
+<!--                      &lt;!&ndash;:prescription="curPrescriptions"></charge-prescription-table>&ndash;&gt;-->
221
+<!--                      &lt;!&ndash;<charge-prescription-table ref="prescription_tables" :prescription="curPrescriptions"></charge-prescription-table>&ndash;&gt;-->
222
+<!--                      <charge-prescription-table ref="prescription_tables"-->
223
+<!--                                                 :manufacturers="manufacturers"-->
224
+<!--                                                 :prescription="curPrescriptions"></charge-prescription-table>-->
225
+
226
+<!--                    </el-tabs>-->
227
+
228
+<!--                  </div>-->
229
+<!--                  <div class="costBox">-->
230
+<!--                    <span>当前处方总费用:<span style="color:red;">{{ total }}元</span></span>-->
231
+<!--                    <span v-if="this.curPrescriptions.order_status  == 1">待结算</span>-->
232
+<!--                    <span v-if="this.curPrescriptions.order_status  == 2">已结算</span>-->
233
+<!--                    <span v-if="this.curPrescriptions.order_status  == 3">已退费</span>-->
234
+<!--                  </div>-->
235
+<!--                </div>-->
236
+<!--                <div class="centerRight">-->
237
+<!--                  <p class="centerRightTitle">人员信息</p>-->
238
+<!--                  <div style="display:flex;justify-content: space-between;line-height:30px;">-->
239
+<!--                    <span style="font-size:14px;">人员编码:{{ patientInfo.dialysis_no }}</span>-->
240
+<!--                    <span style="font-size:14px;">日期:{{ record_date }}</span>-->
241
+<!--                  </div>-->
242
+<!--                  <ul class="basicUl">-->
243
+<!--                    <li style="width:50%;">姓名:{{ patientInfo.name }}</li>-->
244
+<!--                    <li style="width:50%;">性别:{{ patientInfo.gender == 1 ? '男' : '女' }}</li>-->
245
+<!--                    <li style="width:50%;">年龄:{{ patientInfo.age }}</li>-->
246
+<!--                    <li style="width:50%;">电话:{{ patientInfo.phone }}</li>-->
247
+
248
+<!--                    &lt;!&ndash;<span>过敏病史:</span>&ndash;&gt;-->
249
+<!--                    &lt;!&ndash;<el-autocomplete&ndash;&gt;-->
250
+<!--                    &lt;!&ndash;style="width:100%;"&ndash;&gt;-->
251
+<!--                    &lt;!&ndash;class="inline-input"&ndash;&gt;-->
252
+<!--                    &lt;!&ndash;v-model="sick_history"&ndash;&gt;-->
253
+<!--                    &lt;!&ndash;:fetch-suggestions="querySearch2"&ndash;&gt;-->
254
+<!--                    &lt;!&ndash;placeholder="请输入内容"&ndash;&gt;-->
255
+<!--                    &lt;!&ndash;&gt;</el-autocomplete>&ndash;&gt;-->
256
+<!--                    &lt;!&ndash;<li style="width:100%;">地址:{{patientInfo.home_address}}</li>&ndash;&gt;-->
257
+<!--                    &lt;!&ndash;<li style="width:100%;">过敏史及其他病史:{{info.sick_history}}</li>&ndash;&gt;-->
258
+<!--                  </ul>-->
259
+<!--                  <p class="centerRightTitle" style="padding-top: 10px;">诊断信息</p>-->
260
+<!--                  <div style="display:flex;justify-content: space-between;line-height:30px;">-->
261
+<!--                    <span style="font-size:14px;">住院编号:{{ hisPatientInfo.number }}</span>-->
262
+<!--                  </div>-->
263
+<!--                  <ul class="basicUl">-->
264
+<!--                    <li style="width:50%;">医生:{{ info.doctor }}</li>-->
265
+<!--                    <li style="width:50%;">科室:{{ info.departments }}</li>-->
266
+<!--                    <li style="width:100%;">总费用:{{ getTotal() }}</li>-->
267
+
268
+<!--                    <li style="width:100%;">判断结果:{{ info.diagnosis }}</li>-->
269
+<!--                    <li style="width:100%;">是否有传染病:</li>-->
270
+<!--                    <li style="width:100%;">血压:</li>-->
271
+<!--                  </ul>-->
272
+<!--                </div>-->
273
+<!--              </div>-->
274
+<!--            </el-tab-pane>-->
275
+<!--            <el-tab-pane label="月结" name="second">-->
276
+<!--              <div style="display:flex;height:100%;">-->
277
+<!--                <div class="centerLeft">-->
278
+<!--                  <div class="tabsBox">-->
279
+<!--                    &lt;!&ndash; <el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button> &ndash;&gt;-->
280
+<!--                    <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card"-->
281
+<!--                             @tab-click="tabclickEventTwo">-->
282
+
283
+<!--                      <el-tab-pane-->
284
+<!--                          v-for="(item, index) in month_prescriptions"-->
285
+<!--                          :key="index"-->
286
+<!--                          :label="item.name"-->
287
+<!--                          :name="item.name">-->
288
+<!--                      </el-tab-pane>-->
289
+
290
+<!--                      <div class="RP">-->
291
+<!--                        Rp-->
292
+<!--                        <el-date-picker-->
293
+<!--                            v-model="other_start_time"-->
294
+<!--                            prefix-icon="el-icon-date"-->
295
+<!--                            @change="changeTime"-->
296
+<!--                            :editable="false"-->
297
+<!--                            style="width: 150px;"-->
298
+<!--                            type="date"-->
299
+<!--                            :picker-options="pickerOptions"-->
300
+<!--                            placeholder="选择开始时间"-->
301
+<!--                            align="right"-->
302
+<!--                            format="yyyy-MM-dd"-->
303
+<!--                            value-format="yyyy-MM-dd">-->
304
+<!--                        </el-date-picker>-->
305
+<!--                        <span class>-</span>-->
306
+<!--                        <el-date-picker-->
307
+<!--                            v-model="other_end_time"-->
308
+<!--                            prefix-icon="el-icon-date"-->
309
+<!--                            @change="changeEndTime"-->
310
+<!--                            :editable="false"-->
311
+<!--                            style="width: 150px;"-->
312
+<!--                            type="date"-->
313
+<!--                            placeholder="选择结束时间"-->
314
+<!--                            align="right"-->
315
+<!--                            format="yyyy-MM-dd"-->
316
+<!--                            value-format="yyyy-MM-dd">-->
317
+<!--                        </el-date-picker>-->
318
+<!--                      </div>-->
319
+<!--                      &lt;!&ndash;<prescription-table :preTableData='preTableData'></prescription-table>&ndash;&gt;-->
320
+<!--                      &lt;!&ndash;<month-prescription-table ref="prescription_tables"&ndash;&gt;-->
321
+<!--                      &lt;!&ndash;:activeType="activeType"  :prescription="curMonthPrescriptions"></month-prescription-table>&ndash;&gt;-->
322
+<!--                      <charge-month-prescription-table-->
323
+<!--                          :prescription="curMonthPrescriptions"></charge-month-prescription-table>-->
324
+
325
+<!--                    </el-tabs>-->
326
+
327
+<!--                  </div>-->
328
+<!--                  <div class="costBox">-->
329
+<!--                    <span>当前处方总费用:<span style="color:red;">{{ month_total }}元</span></span>-->
330
+<!--                    &lt;!&ndash;<span>{{ state }}</span>&ndash;&gt;-->
331
+<!--                  </div>-->
332
+<!--                </div>-->
333
+<!--                <div class="centerRight">-->
334
+<!--                  <p class="centerRightTitle">人员信息</p>-->
335
+<!--                  <div style="display:flex;justify-content: space-between;line-height:30px;">-->
336
+<!--                    <span style="font-size:14px;">人员编码:{{ patientInfo.dialysis_no }}</span>-->
337
+<!--                    <span style="font-size:14px;">日期:{{ record_date }}</span>-->
338
+<!--                  </div>-->
339
+
340
+<!--                  <ul class="basicUl">-->
341
+<!--                    <li style="width:50%;">姓名:{{ patientInfo.name }}</li>-->
342
+<!--                    <li style="width:50%;">性别:{{ patientInfo.gender == 1 ? '男' : '女' }}</li>-->
343
+<!--                    <li style="width:50%;">年龄:{{ patientInfo.age }}</li>-->
344
+<!--                    <li style="width:50%;">电话:{{ patientInfo.phone }}</li>-->
345
+<!--                    <li style="width:100%;">过敏史及其他病史:{{ info.sick_history }}</li>-->
346
+
347
+<!--                  </ul>-->
348
+<!--                  <p class="centerRightTitle" style="padding-top: 10px;">诊断信息</p>-->
349
+<!--                  <div style="display:flex;justify-content: space-between;line-height:30px;">-->
350
+<!--                    <span style="font-size:14px;">门诊编号:{{ hisPatientInfo.number }}</span>-->
351
+<!--                  </div>-->
352
+<!--                  <ul class="basicUl">-->
353
+<!--                    <li style="width:50%;">医生:{{ info.doctor }}</li>-->
354
+<!--                    <li style="width:50%;">科室:{{ getDepartment(info.departments) }}</li>-->
355
+<!--                    <li style="width:100%;" v-if="activeName == 'first'">总费用:{{ getTotal() }}</li>-->
356
+<!--                    <li style="width:100%;" v-if="activeName == 'second'">总费用:{{ getTotalTwo() }}-->
357
+<!--                    </li>-->
358
+
359
+<!--                    <li style="width:100%;">判断结果:{{ info.diagnosis }}</li>-->
360
+<!--                    &lt;!&ndash;<li style="width:100%;">是否有传染病:</li>&ndash;&gt;-->
361
+<!--                    &lt;!&ndash;<li style="width:100%;">血压:</li>&ndash;&gt;-->
362
+<!--                  </ul>-->
363
+<!--                </div>-->
364
+<!--              </div>-->
365
+<!--            </el-tab-pane>-->
366
+            <el-tab-pane label="结算" name="first">
276 367
               <div style="display:flex;height:100%;">
277 368
                 <div class="centerLeft">
278 369
                   <div class="tabsBox">
279
-                    <!-- <el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button> -->
280
-                    <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card"
281
-                             @tab-click="tabclickEventTwo">
282
-
283
-                      <el-tab-pane
284
-                          v-for="(item, index) in month_prescriptions"
285
-                          :key="index"
286
-                          :label="item.name"
287
-                          :name="item.name">
288
-                      </el-tab-pane>
289
-
290
-                      <div class="RP">
291
-                        Rp
292
-                        <el-date-picker
293
-                            v-model="other_start_time"
294
-                            prefix-icon="el-icon-date"
295
-                            @change="changeTime"
296
-                            :editable="false"
297
-                            style="width: 150px;"
298
-                            type="date"
299
-                            :picker-options="pickerOptions"
300
-                            placeholder="选择开始时间"
301
-                            align="right"
302
-                            format="yyyy-MM-dd"
303
-                            value-format="yyyy-MM-dd">
304
-                        </el-date-picker>
305
-                        <span class>-</span>
306
-                        <el-date-picker
307
-                            v-model="other_end_time"
308
-                            prefix-icon="el-icon-date"
309
-                            @change="changeEndTime"
310
-                            :editable="false"
311
-                            style="width: 150px;"
312
-                            type="date"
313
-                            placeholder="选择结束时间"
314
-                            align="right"
315
-                            format="yyyy-MM-dd"
316
-                            value-format="yyyy-MM-dd">
317
-                        </el-date-picker>
318
-                      </div>
319
-                      <!--<prescription-table :preTableData='preTableData'></prescription-table>-->
320
-                      <!--<month-prescription-table ref="prescription_tables"-->
321
-                      <!--:activeType="activeType"  :prescription="curMonthPrescriptions"></month-prescription-table>-->
322
-                      <charge-month-prescription-table
323
-                          :prescription="curMonthPrescriptions"></charge-month-prescription-table>
324
-
325
-                    </el-tabs>
326
-
327
-                  </div>
328
-                  <div class="costBox">
329
-                    <span>当前处方总费用:<span style="color:red;">{{ month_total }}元</span></span>
330
-                    <!--<span>{{ state }}</span>-->
331
-                  </div>
332
-                </div>
333
-                <div class="centerRight">
334
-                  <p class="centerRightTitle">人员信息</p>
335
-                  <div style="display:flex;justify-content: space-between;line-height:30px;">
336
-                    <span style="font-size:14px;">人员编码:{{ patientInfo.dialysis_no }}</span>
337
-                    <span style="font-size:14px;">日期:{{ record_date }}</span>
338
-                  </div>
339
-
340
-                  <ul class="basicUl">
341
-                    <li style="width:50%;">姓名:{{ patientInfo.name }}</li>
342
-                    <li style="width:50%;">性别:{{ patientInfo.gender == 1 ? '男' : '女' }}</li>
343
-                    <li style="width:50%;">年龄:{{ patientInfo.age }}</li>
344
-                    <li style="width:50%;">电话:{{ patientInfo.phone }}</li>
345
-                    <li style="width:100%;">过敏史及其他病史:{{ info.sick_history }}</li>
346
-
347
-                  </ul>
348
-                  <p class="centerRightTitle" style="padding-top: 10px;">诊断信息</p>
349
-                  <div style="display:flex;justify-content: space-between;line-height:30px;">
350
-                    <span style="font-size:14px;">门诊编号:{{ hisPatientInfo.number }}</span>
351
-                  </div>
352
-                  <ul class="basicUl">
353
-                    <li style="width:50%;">医生:{{ info.doctor }}</li>
354
-                    <li style="width:50%;">科室:{{ getDepartment(info.departments) }}</li>
355
-                    <li style="width:100%;" v-if="activeName == 'first'">总费用:{{ getTotal() }}</li>
356
-                    <li style="width:100%;" v-if="activeName == 'second'">总费用:{{ getTotalTwo() }}
357
-                    </li>
358
-
359
-                    <li style="width:100%;">判断结果:{{ info.diagnosis }}</li>
360
-                    <!--<li style="width:100%;">是否有传染病:</li>-->
361
-                    <!--<li style="width:100%;">血压:</li>-->
362
-                  </ul>
363
-                </div>
364
-              </div>
365
-            </el-tab-pane>
366
-            <el-tab-pane label="结算" name="third">
367
-              <div style="display:flex;height:100%;">
368
-                <div class="centerLeft">
369
-                  <div class="tabsBox">
370
-                    <!-- <el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button> -->
371 370
                     <el-tabs class="preTabs" v-model="editSettletableTabsValue" type="border-card"
372 371
                              @tab-click="tabclickEventThree">
373 372
 
@@ -380,55 +379,16 @@
380 379
                       <settle-prescription-table
381 380
                           :prescription="curSettlePrescriptions"
382 381
                       ></settle-prescription-table>
383
-
384
-                      <!--                                <charge-month-prescription-table-->
385
-                      <!--                                    :prescription="curMonthPrescriptions"></charge-month-prescription-table>-->
386
-
387 382
                     </el-tabs>
388 383
 
389 384
                   </div>
390 385
                   <div class="costBox">
391 386
                     <span>当前处方总费用:<span style="color:red;">{{ settle_total }}元</span></span>
392
-                    <!--<span>{{ state }}</span>-->
393 387
                   </div>
394 388
                 </div>
395
-                <!--                          <div class="centerRight">-->
396
-                <!--                            <p class="centerRightTitle">人员信息</p>-->
397
-                <!--                            <div style="display:flex;justify-content: space-between;line-height:30px;">-->
398
-                <!--                              <span style="font-size:14px;">人员编码:{{patientInfo.dialysis_no}}</span>-->
399
-                <!--                              <span style="font-size:14px;">日期:{{record_date}}</span>-->
400
-                <!--                            </div>-->
401
-
402
-                <!--                            <ul class="basicUl">-->
403
-                <!--                              <li style="width:50%;">姓名:{{patientInfo.name}}</li>-->
404
-                <!--                              <li style="width:50%;">性别:{{patientInfo.gender == 1 ? '男' : '女' }}</li>-->
405
-                <!--                              <li style="width:50%;">年龄:{{patientInfo.age }}</li>-->
406
-                <!--                              <li style="width:50%;">电话:{{patientInfo.phone}}</li>-->
407
-                <!--                              <li style="width:100%;">过敏史及其他病史:{{info.sick_history}}</li>-->
408
-
409
-                <!--                            </ul>-->
410
-                <!--                            <p class="centerRightTitle" style="padding-top: 10px;">诊断信息</p>-->
411
-                <!--                            <div style="display:flex;justify-content: space-between;line-height:30px;">-->
412
-                <!--                              <span style="font-size:14px;">门诊编号:{{ hisPatientInfo.number}}</span>-->
413
-                <!--                            </div>-->
414
-                <!--                            <ul class="basicUl">-->
415
-                <!--                              <li style="width:50%;">医生:{{ info.doctor }}</li>-->
416
-                <!--                              <li style="width:50%;">科室:{{ getDepartment(info.departments) }}</li>-->
417
-                <!--                              <li style="width:100%;" v-if="activeName == 'first'">总费用:{{ getTotal() }}</li>-->
418
-                <!--                              <li style="width:100%;" v-if="activeName == 'second'">总费用:{{ getTotalTwo() }}-->
419
-                <!--                              </li>-->
420
-
421
-                <!--                              <li style="width:100%;">判断结果:{{info.diagnosis}}</li>-->
422
-                <!--                              &lt;!&ndash;<li style="width:100%;">是否有传染病:</li>&ndash;&gt;-->
423
-                <!--                              &lt;!&ndash;<li style="width:100%;">血压:</li>&ndash;&gt;-->
424
-                <!--                            </ul>-->
425
-                <!--                          </div>-->
426 389
               </div>
427 390
             </el-tab-pane>
428
-
429 391
           </el-tabs>
430
-
431
-
432 392
         </div>
433 393
       </div>
434 394
     </div>

+ 13 - 6
src/xt_pages/qcd/officesControlAnalysis/time.vue Parādīt failu

@@ -86,8 +86,8 @@
86 86
         <div class="time">
87 87
           <ul class>
88 88
             <li
89
-                :class="item.lapseto == lapsetoType ? 'active' : ''"
90
-                @click="selectLapseTo(item.lapseto)"
89
+                :class="item.lapseto == lapseto ? 'active' : ''"
90
+                @click="changeLapseto(item.lapseto)"
91 91
                 v-for="item in lapsetoState"
92 92
                 :key="item.value"
93 93
             >
@@ -102,7 +102,7 @@
102 102
           <ul class>
103 103
             <li
104 104
                 :class="item.source == originType ? 'active' : ''"
105
-                @click="selectLapseTo(item.source)"
105
+                @click="selectOrigin(item.source)"
106 106
                 v-for="item in originState"
107 107
                 :key="item.value"
108 108
             >
@@ -395,8 +395,14 @@ export default {
395 395
       return new Date(time).getTime() / 1000
396 396
     },
397 397
     selectLapseTo(state) {
398
-      this.stateType = state
399
-      this.listQuery.state = state
398
+      this.lapsetoType = state
399
+      this.getlist()
400
+      // this.listQuery.state = state
401
+    },selectOrigin(state) {
402
+      this.originType = state
403
+      // this.listQuery.state = state
404
+      this.getlist()
405
+
400 406
     },
401 407
     chooseType(val) {
402 408
       this.modesData.series = []
@@ -674,7 +680,8 @@ export default {
674 680
       const params = {
675 681
         lapseto: this.lapseto,
676 682
         startime: this.startime,
677
-        endtime: this.endtime
683
+        endtime: this.endtime,
684
+        origin:this.originType,
678 685
       }
679 686
       this.isLoading = true
680 687
       getFirstQuarter(params).then(response => {