Quellcode durchsuchen

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

XMLWAN vor 2 Jahren
Ursprung
Commit
4af9faa2ab

+ 5 - 3
src/xt_pages/data/druguse.vue Datei anzeigen

@@ -93,7 +93,7 @@
93 93
                   <el-form-item label="医嘱名称 :" required prop="advice_name">
94 94
                     <el-input v-model="templateForm.advice_name" style="width:50%"></el-input>
95 95
                   </el-form-item>
96
-               </el-col> 
96
+               </el-col>
97 97
               <!-- <el-form-item label="医嘱内容 :" prop="advice_desc">
98 98
                 <el-input v-model="templateForm.advice_desc" style="width:50%"></el-input>
99 99
               </el-form-item> -->
@@ -167,7 +167,7 @@
167 167
                   </el-form-item>
168 168
                 </el-col>
169 169
               </el-row>
170
-              <el-row>  
170
+              <el-row>
171 171
                 <el-col :span="12">
172 172
                   <el-form-item label="执行频率 :" prop="execution_frequency">
173 173
                     <el-select
@@ -395,6 +395,7 @@
395 395
             <el-form ref="efForm" :rules="efRules" :model="efForm" label-width="90px">
396 396
               <el-form-item label="执行频率 :" required prop="name">
397 397
                 <el-input v-model="efForm.name" placeholder="执行频率"></el-input>
398
+                <el-input v-model="efForm.code" placeholder="编码"></el-input>
398 399
               </el-form-item>
399 400
             </el-form>
400 401
             <div slot="footer" class="dialog-footer">
@@ -486,7 +487,8 @@ export default {
486 487
       },
487 488
       efForm: {
488 489
         name: "",
489
-        id: 0
490
+        id: 0,
491
+        code:"",
490 492
       },
491 493
       unitsOption: [
492 494
         { lable: 1, name: "盒" },

+ 13 - 2
src/xt_pages/data/druguseTemplate.vue Datei anzeigen

@@ -1251,7 +1251,15 @@
1251 1251
               <el-form ref="efForm" :rules="efRules" :model="efForm" label-width="90px">
1252 1252
                 <el-form-item label="执行频率 :" required prop="name">
1253 1253
                   <el-input v-model="efForm.name" placeholder="执行频率"></el-input>
1254
+
1254 1255
                 </el-form-item>
1256
+
1257
+
1258
+                <el-form-item label="执行频率 :" >
1259
+                  <el-input v-model="efForm.code" placeholder="编码"></el-input>
1260
+                </el-form-item>
1261
+
1262
+
1255 1263
               </el-form>
1256 1264
               <div slot="footer" class="dialog-footer">
1257 1265
                 <el-button @click="efFormVisible = false">取消</el-button>
@@ -1438,7 +1446,8 @@
1438 1446
         },
1439 1447
         efForm: {
1440 1448
           name: '',
1441
-          id: 0
1449
+          id: 0,
1450
+          code: "",
1442 1451
         },
1443 1452
 
1444 1453
         drugforms: [
@@ -1976,6 +1985,7 @@
1976 1985
         this.dialogTitle = '新增给药途径'
1977 1986
         this.isEdit = false
1978 1987
       },
1988
+
1979 1989
       handleUpdateDrugWay(row, index) {
1980 1990
         this.currentIndex = index
1981 1991
         this.drugwayForm = {
@@ -2061,7 +2071,8 @@
2061 2071
         this.currentIndex = index
2062 2072
         this.efForm = {
2063 2073
           name: row.name,
2064
-          id: row.id
2074
+          id: row.id,
2075
+          code: row.code
2065 2076
         }
2066 2077
 
2067 2078
         this.efFormVisible = true

+ 188 - 188
src/xt_pages/hospitalStation/components/chargeDialog.vue Datei anzeigen

@@ -77,12 +77,12 @@
77 77
         ></el-input>
78 78
       </el-form-item>
79 79
 
80
-      <el-form-item label="支付方式:" style="width:100%;">
81
-        <el-radio-group v-model="form.pay_way">
80
+    <el-form-item label="支付方式:" style="width:100%;">
81
+         <el-radio-group v-model="form.pay_way">
82 82
           <el-radio :label="item.value" :value="item.value" v-for="(item,index) in payWays" :key="index">{{ item.label }}</el-radio>
83
-          <el-button type="primary" v-if="form.pay_way == 4" @click="reading()">读卡</el-button>
83
+           <el-button type="primary" v-if="form.pay_way == 4" @click="reading()">读卡</el-button>
84 84
 
85
-        </el-radio-group>
85
+         </el-radio-group>
86 86
       </el-form-item>
87 87
 
88 88
       <el-form-item label="个人现金支付方式:" style="width: 100%">
@@ -167,7 +167,7 @@
167 167
 
168 168
     <span slot="footer" class="dialog-footer">
169 169
     <el-button @click="cancel('formValue')">取 消</el-button>
170
-      <!--      <el-button @click="init">调试</el-button>-->
170
+<!--      <el-button @click="init">调试</el-button>-->
171 171
     <el-button type="primary" @click="confirm('formValue')">确 定</el-button>
172 172
   </span>
173 173
   </el-dialog>
@@ -259,186 +259,186 @@
259 259
         default: 1,
260 260
       },
261 261
     },
262
-    created() {
263
-    },
264
-    methods: {
265
-      reading() {
266
-        var that = this
267
-        let params = {
268
-          'id_card_type': 1,
269
-          'admin_user_id': this.$store.getters.xt_user.user.id,
270
-          'certificates':1,
271
-        }
272
-        axios.get('http://127.0.0.1:9532/zh/api/readcard', {
273
-          params: params
274
-        })
275
-          .then(function(response) {
276
-            if (response.data.state == 0) {
277
-              that.$message.error(response.data.msg)
278
-              return false
279
-            } else {
280
-              that.$message({ message: '读卡成功', type: 'success' })
281
-            }
282
-          })
283
-          .catch(function(error) {
284
-
285
-          })
286
-      },
287
-
288
-      init() {
289
-        console.log("====this.form.dec_way===", this.form.dec_way)
262
+      created() {
290 263
       },
291
-      lilili(val) {
292
-        console.log("val", val)
293
-        if (this.form.tmp_decimal == "") {
294
-          this.form.pay_price = this.tmp_pay
295
-          return
296
-        }
297
-        if (parseFloat(this.form.tmp_decimal) > parseFloat(this.form.private_price)) {
298
-          // alert("押金不得大于自费金额")
299
-          this.$message.error("押金不得大于自费金额");
300
-          this.form.tmp_decimal = ""
301
-          this.form.pay_price = this.tmp_pay
302
-          return
303
-        }
304
-        // this.form.private_price = parseFloat(this.form.tmp_decimal) + parseFloat(this.form.pay_price)
264
+      methods: {
265
+        reading() {
266
+          var that = this
267
+          let params = {
268
+            'id_card_type': 1,
269
+            'admin_user_id': this.$store.getters.xt_user.user.id,
270
+            'certificates':1,
271
+          }
272
+          axios.get('http://127.0.0.1:9532/zh/api/readcard', {
273
+            params: params
274
+          })
275
+              .then(function(response) {
276
+                if (response.data.state == 0) {
277
+                  that.$message.error(response.data.msg)
278
+                  return false
279
+                } else {
280
+                  that.$message({ message: '读卡成功', type: 'success' })
281
+                }
282
+              })
283
+              .catch(function(error) {
284
+
285
+              })
286
+        },
305 287
 
306
-        this.form.pay_price = ((parseFloat(this.form.private_price) * 10000 - parseFloat(this.form.tmp_decimal) * 10000) / 10000).toFixed(2)
307
-      },
308
-      changedecimal() {
309
-        // console.log("this.isshow前",this.isshow)
310
-        this.$forceUpdate();
311
-        this.isshow = this.form.dec_way
312
-        // console.log("this.form.dec_way后",this.form.dec_way)
313
-        if (this.isshow == false) {
314
-          // this.form.private_price = parseFloat(this.form.pay_price)
315
-          this.form.tmp_decimal = 0
316
-          this.form.pay_price = this.tmp_pay
317
-        } else {
318
-          //储存临时付款
319
-          this.tmp_pay = this.form.pay_price
288
+        init() {
289
+          console.log("====this.form.dec_way===", this.form.dec_way)
290
+        },
291
+        lilili(val) {
292
+          console.log("val", val)
293
+          if (this.form.tmp_decimal == "") {
294
+            this.form.pay_price = this.tmp_pay
295
+            return
296
+          }
320 297
           if (parseFloat(this.form.tmp_decimal) > parseFloat(this.form.private_price)) {
321
-            this.form.tmp_decimal = 0
322 298
             // alert("押金不得大于自费金额")
323 299
             this.$message.error("押金不得大于自费金额");
300
+            this.form.tmp_decimal = ""
301
+            this.form.pay_price = this.tmp_pay
324 302
             return
325 303
           }
326 304
           // this.form.private_price = parseFloat(this.form.tmp_decimal) + parseFloat(this.form.pay_price)
327
-          this.tmp_pay = this.form.pay_price
305
+
328 306
           this.form.pay_price = ((parseFloat(this.form.private_price) * 10000 - parseFloat(this.form.tmp_decimal) * 10000) / 10000).toFixed(2)
329
-        }
330
-      },
331
-      //查询用户当前的余额
332
-      updateconfig() {
333
-        var params = {
334
-          his_patient_id: this.id,
335
-        }
336
-        idtobalance(params).then((res) => {
337
-          if (res.data.state == 1) {
338
-            this.decimal = res.data.data.list;
307
+        },
308
+        changedecimal() {
309
+          // console.log("this.isshow前",this.isshow)
310
+          this.$forceUpdate();
311
+          this.isshow = this.form.dec_way
312
+          // console.log("this.form.dec_way后",this.form.dec_way)
313
+          if (this.isshow == false) {
314
+            // this.form.private_price = parseFloat(this.form.pay_price)
315
+            this.form.tmp_decimal = 0
316
+            this.form.pay_price = this.tmp_pay
317
+          } else {
318
+            //储存临时付款
319
+            this.tmp_pay = this.form.pay_price
320
+            if (parseFloat(this.form.tmp_decimal) > parseFloat(this.form.private_price)) {
321
+              this.form.tmp_decimal = 0
322
+              // alert("押金不得大于自费金额")
323
+              this.$message.error("押金不得大于自费金额");
324
+              return
325
+            }
326
+            // this.form.private_price = parseFloat(this.form.tmp_decimal) + parseFloat(this.form.pay_price)
327
+            this.tmp_pay = this.form.pay_price
328
+            this.form.pay_price = ((parseFloat(this.form.private_price) * 10000 - parseFloat(this.form.tmp_decimal) * 10000) / 10000).toFixed(2)
329
+          }
330
+        },
331
+        //查询用户当前的余额
332
+        updateconfig() {
333
+          var params = {
334
+            his_patient_id: this.id,
335
+          }
336
+          idtobalance(params).then((res) => {
337
+            if (res.data.state == 1) {
338
+              this.decimal = res.data.data.list;
339
+            }
340
+          })
341
+        },
342
+        show(total,order,id) {
343
+          this.record_date = moment(new Date()).add('year', 0).format("YYYY-MM-DD HH:mm")
344
+          //初始化
345
+          this.form.tmp_decimal = 0
346
+          this.tmp_pay = 0
347
+          this.id = id
348
+          this.updateconfig()
349
+          this.form.dec_way = false
350
+          this.form.total = total
351
+          this.form.private_price = total
352
+          this.form.pay_price = total
353
+          this.form.total = total + this.form.medical_insurance_price
354
+          this.form.discount_price = 0.0
355
+          this.form.preferential_price = 0.0
356
+
357
+          this.form.fapiao_code = "";
358
+          this.form.fapiao_number = "";
359
+          this.order = order;
360
+
361
+          if (this.order && this.order.id > 0) {
362
+            this.form.acct_pay = this.order.acct_pay
363
+            this.form.psn_pay = this.order.psn_cash_pay
364
+            this.form.total = this.order.medfee_sumamt
365
+            this.form.pay_price = (this.order.medfee_sumamt).toFixed(2)
366
+            this.form.medical_insurance_price = this.order.fund_pay_sumamt
367
+            this.form.private_price = this.order.psn_part_amt
339 368
           }
340
-        })
341
-      },
342
-      show(total,order,id) {
343
-        this.record_date = moment(new Date()).add('year', 0).format("YYYY-MM-DD HH:mm")
344
-        //初始化
345
-        this.form.tmp_decimal = 0
346
-        this.tmp_pay = 0
347
-        this.id = id
348
-        this.updateconfig()
349
-        this.form.dec_way = false
350
-        this.form.total = total
351
-        this.form.private_price = total
352
-        this.form.pay_price = total
353
-        this.form.total = total + this.form.medical_insurance_price
354
-        this.form.discount_price = 0.0
355
-        this.form.preferential_price = 0.0
356
-
357
-        this.form.fapiao_code = "";
358
-        this.form.fapiao_number = "";
359
-        this.order = order;
360
-
361
-        if (this.order && this.order.id > 0) {
362
-          this.form.acct_pay = this.order.acct_pay
363
-          this.form.psn_pay = this.order.psn_cash_pay
364
-          this.form.total = this.order.medfee_sumamt
365
-          this.form.pay_price = (this.order.medfee_sumamt).toFixed(2)
366
-          this.form.medical_insurance_price = this.order.fund_pay_sumamt
367
-          this.form.private_price = this.order.psn_part_amt
368
-        }
369 369
 
370
-        this.visibility = true
370
+          this.visibility = true
371 371
 
372
-      },
373
-      hide: function() {
374
-        this.form = Object.assign({}, this.resetForm);
375
-        this.loadingtwo = false;
376
-        this.visibility = false
377
-      }, cancel: function(formName) {
378
-        this.form.tmp_decimal = 0
379
-        this.tmp_pay = 0
380
-        this.form.dec_way = false
381
-        this.$emit('cancel', this.getValue());
382
-        this.$refs['formValue'].resetFields()
383
-      },
384
-      confirm: function(formName) {
385
-        if (parseFloat(this.form.tmp_decimal) > parseFloat(this.decimal)){
386
-          this.$message.error("押金余额不足");
387
-          return
388
-        }
389
-        this.$refs['formValue'].validate((valid) => {
390
-          if (valid) {
391
-            let value = {};
392
-            value = this.getValue();
393
-            this.$emit('confirm', value);
394
-            this.loadingtwo = true
372
+        },
373
+        hide: function() {
374
+          this.form = Object.assign({}, this.resetForm);
375
+          this.loadingtwo = false;
376
+          this.visibility = false
377
+        }, cancel: function(formName) {
378
+          this.form.tmp_decimal = 0
379
+          this.tmp_pay = 0
380
+          this.form.dec_way = false
381
+          this.$emit('cancel', this.getValue());
382
+          this.$refs['formValue'].resetFields()
383
+        },
384
+        confirm: function(formName) {
385
+          if (parseFloat(this.form.tmp_decimal) > parseFloat(this.decimal)){
386
+            this.$message.error("押金余额不足");
387
+            return
395 388
           }
396
-        })
397
-      },
398
-      getValue: function() {
399
-        let form = {};
400
-        form = this.form;
401
-        return form
402
-      },
403
-      realityPrice(val) {
404
-        if (val < (this.form.total - this.form.discount_price - this.form.preferential_price)) {
405
-          this.$message.error('实收金额不能小于收费金额');
406
-          return
407
-        }
408
-        this.form.found_price = parseInt(val) - parseInt(this.form.total) + parseInt(this.form.discount_price) + parseInt(this.form.preferential_price)
409
-      },
410
-      changeDiscountPrice(val) {
411
-        if (val > this.form.total) {
412
-          this.$message.error('折扣金额不能超过费用总额');
413
-          return
389
+          this.$refs['formValue'].validate((valid) => {
390
+            if (valid) {
391
+              let value = {};
392
+              value = this.getValue();
393
+              this.$emit('confirm', value);
394
+              this.loadingtwo = true
395
+            }
396
+          })
397
+        },
398
+        getValue: function() {
399
+          let form = {};
400
+          form = this.form;
401
+          return form
402
+        },
403
+        realityPrice(val) {
404
+          if (val < (this.form.total - this.form.discount_price - this.form.preferential_price)) {
405
+            this.$message.error('实收金额不能小于收费金额');
406
+            return
407
+          }
408
+          this.form.found_price = parseInt(val) - parseInt(this.form.total) + parseInt(this.form.discount_price) + parseInt(this.form.preferential_price)
409
+        },
410
+        changeDiscountPrice(val) {
411
+          if (val > this.form.total) {
412
+            this.$message.error('折扣金额不能超过费用总额');
413
+            return
414
+          }
415
+          this.form.reality_price = parseInt(this.form.total) - parseInt(val) - parseInt(this.form.preferential_price)
416
+        },
417
+        changePreferentialPrice(val) {
418
+          if (val > this.form.total) {
419
+            this.$message.error('优惠金额不能超过费用总额');
420
+            return
421
+          }
422
+          this.form.reality_price = parseInt(this.form.total) - parseInt(val) - parseInt(this.form.discount_price)
414 423
         }
415
-        this.form.reality_price = parseInt(this.form.total) - parseInt(val) - parseInt(this.form.preferential_price)
416 424
       },
417
-      changePreferentialPrice(val) {
418
-        if (val > this.form.total) {
419
-          this.$message.error('优惠金额不能超过费用总额');
420
-          return
421
-        }
422
-        this.form.reality_price = parseInt(this.form.total) - parseInt(val) - parseInt(this.form.discount_price)
425
+      mounted() {
426
+        var nowDate = new Date();
427
+        var nowYear = nowDate.getFullYear();
428
+        var nowMonth = nowDate.getMonth() + 1;
429
+        var nowDay = nowDate.getDate();
430
+
431
+        var nowHours = nowDate.getHours();
432
+        var nowMin = nowDate.getMinutes();
433
+        var nowSecond = nowDate.getSeconds();
434
+
435
+        this.record_date =
436
+          nowYear +
437
+          '-' +
438
+          (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
439
+          '-' +
440
+          (nowDay < 10 ? '0' + nowDay : nowDay) + " " + (nowHours < 10 ? '0' + nowHours : nowHours) + ":" + (nowMin < 10 ? '0' + nowMin : nowMin)
423 441
       }
424
-    },
425
-    mounted() {
426
-      var nowDate = new Date();
427
-      var nowYear = nowDate.getFullYear();
428
-      var nowMonth = nowDate.getMonth() + 1;
429
-      var nowDay = nowDate.getDate();
430
-
431
-      var nowHours = nowDate.getHours();
432
-      var nowMin = nowDate.getMinutes();
433
-      var nowSecond = nowDate.getSeconds();
434
-
435
-      this.record_date =
436
-        nowYear +
437
-        '-' +
438
-        (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
439
-        '-' +
440
-        (nowDay < 10 ? '0' + nowDay : nowDay) + " " + (nowHours < 10 ? '0' + nowHours : nowHours) + ":" + (nowMin < 10 ? '0' + nowMin : nowMin)
441
-    }
442 442
 
443 443
 
444 444
   }
@@ -446,16 +446,16 @@
446 446
 
447 447
 
448 448
 <style lang="scss" scoped>
449
-  /deep/input::-webkit-input-placeholder {
450
-    color: red;
451
-    font-size: 15px;
452
-  }
453
-
454
-  /deep/.el-input__inner {
455
-    background-color: transparent !important;
456
-    border: 1px solid red;
457
-  }
458
-  .chargeDialog {
449
+/deep/input::-webkit-input-placeholder {
450
+  color: red;
451
+  font-size: 15px;
452
+}
453
+
454
+/deep/.el-input__inner {
455
+  background-color: transparent !important;
456
+  border: 1px solid red;
457
+}
458
+.chargeDialog {
459 459
   .el-form {
460 460
     display: flex;
461 461
     flex-wrap: wrap;
@@ -463,13 +463,13 @@
463 463
   .el-form-item {
464 464
     width: 50%;
465 465
   }
466
-  }
467
-  .input_style {
468
-    border-radius: 5px;
469
-    border: 1px solid #dddddd;
470
-  }
471
-  .input_style:focus {
472
-    outline:none;
473
-    border: 1px solid #66b1ff;
474
-  }
466
+}
467
+.input_style {
468
+  border-radius: 5px;
469
+  border: 1px solid #dddddd;
470
+}
471
+.input_style:focus {
472
+outline:none;
473
+border: 1px solid #66b1ff;
474
+}
475 475
 </style>

+ 1 - 0
src/xt_pages/outpatientCharges/components/registerDialog.vue Datei anzeigen

@@ -638,6 +638,7 @@
638 638
           'admin_user_id': this.$store.getters.xt_user.user.id,
639 639
           'certificates':this.form.certificates,
640 640
         }
641
+        axios.defaults.retry = 0
641 642
         axios.get('http://127.0.0.1:9532/api/readcard', {
642 643
           params: params
643 644
         })

+ 124 - 124
src/xt_pages/outpatientCharges/statementTemplate/printFive.vue Datei anzeigen

@@ -22,142 +22,142 @@
22 22
         <td colspan="10">明细信息</td>
23 23
       </tr>
24 24
 
25
-      <!-- 帐单列表分为左右两列,需要对数据进行x/2分别放进list_L,list_R两个数组进行循环 -->
26
-      <tr>
27
-        <!--          <td colspan="24">-->
28
-        <!--            <template v-for="(v, i) in info.list" >-->
29
-        <!--              <el-row gutter="24" >-->
30
-        <!--                <el-col span="12" :key="i" v-if='i%2 == 0'>-->
31
-        <!--                  <table class="list_table">-->
32
-        <!--                    <template>-->
33
-        <!--                      <tr colspan="12">-->
34
-        <!--                        <td colspan="2">{{v.name}}</td>-->
35
-        <!--                        <td>{{v.spec}}</td>-->
36
-        <!--                        <td>{{v.cnt}}</td>-->
37
-        <!--                        <td>{{v.det_item_fee_sumamt}}</td>-->
38
-        <!--                      </tr>-->
39
-        <!--                    </template>-->
40
-        <!--                  </table>-->
41
-        <!--                </el-col>-->
42
-        <!--                <el-col span="12" v-if="i+1 < info.list.length">-->
43
-        <!--                  <table class="list_table">-->
44
-        <!--                    <template >-->
45
-        <!--                      <tr colspan="12">-->
46
-        <!--                        <td colspan="2">{{v.name}}</td>-->
47
-        <!--                        <td>{{v.spec}}</td>-->
48
-        <!--                        <td>{{v.cnt}}</td>-->
49
-        <!--                        <td>{{v.det_item_fee_sumamt}}</td>-->
50
-        <!--                      </tr>-->
51
-        <!--                    </template>-->
52
-        <!--                  </table>-->
53
-        <!--                </el-col>-->
54
-        <!--              </el-row>-->
55
-        <!--            </template>-->
56
-        <!--          </td>-->
57
-      <tr>
58
-        <td colspan="6">
59
-          <table class="list_table">
60
-            <tr colspan="6" v-for="(v, index) in info.L_list" :key="index">
61
-              <td colspan="2">{{v.name}}</td>
62
-              <td>{{v.spec}}</td>
63
-              <td>{{v.cnt}}</td>
64
-              <td>{{v.det_item_fee_sumamt}}</td>
65
-            </tr>
66
-          </table>
67
-        </td>
25
+        <!-- 帐单列表分为左右两列,需要对数据进行x/2分别放进list_L,list_R两个数组进行循环 -->
26
+        <tr>
27
+<!--          <td colspan="24">-->
28
+<!--            <template v-for="(v, i) in info.list" >-->
29
+<!--              <el-row gutter="24" >-->
30
+<!--                <el-col span="12" :key="i" v-if='i%2 == 0'>-->
31
+<!--                  <table class="list_table">-->
32
+<!--                    <template>-->
33
+<!--                      <tr colspan="12">-->
34
+<!--                        <td colspan="2">{{v.name}}</td>-->
35
+<!--                        <td>{{v.spec}}</td>-->
36
+<!--                        <td>{{v.cnt}}</td>-->
37
+<!--                        <td>{{v.det_item_fee_sumamt}}</td>-->
38
+<!--                      </tr>-->
39
+<!--                    </template>-->
40
+<!--                  </table>-->
41
+<!--                </el-col>-->
42
+<!--                <el-col span="12" v-if="i+1 < info.list.length">-->
43
+<!--                  <table class="list_table">-->
44
+<!--                    <template >-->
45
+<!--                      <tr colspan="12">-->
46
+<!--                        <td colspan="2">{{v.name}}</td>-->
47
+<!--                        <td>{{v.spec}}</td>-->
48
+<!--                        <td>{{v.cnt}}</td>-->
49
+<!--                        <td>{{v.det_item_fee_sumamt}}</td>-->
50
+<!--                      </tr>-->
51
+<!--                    </template>-->
52
+<!--                  </table>-->
53
+<!--                </el-col>-->
54
+<!--              </el-row>-->
55
+<!--            </template>-->
56
+<!--          </td>-->
57
+        <tr>
58
+          <td colspan="6">
59
+            <table class="list_table">
60
+              <tr colspan="6" v-for="(v, index) in info.L_list" :key="index">
61
+                <td colspan="2">{{v.name}}</td>
62
+                <td>{{v.spec}}</td>
63
+                <td>{{v.cnt}}</td>
64
+                <td>{{v.det_item_fee_sumamt}}</td>
65
+              </tr>
66
+            </table>
67
+          </td>
68 68
 
69
-        <td colspan="6">
70
-          <table class="list_table">
71
-            <tr colspan="6" v-for="(v, index) in info.R_list" :key="index">
72
-              <td colspan="2">{{v.name}}</td>
73
-              <td>{{v.spec}}</td>
74
-              <td>{{v.cnt}}</td>
75
-              <td>{{v.det_item_fee_sumamt}}</td>
76
-            </tr>
77
-          </table>
78
-        </td>
79
-      </tr>
80
-      <tr>
81
-        <td colspan="10">共一页,第一页{{info.medfee_sumamt}}</td>
82
-      </tr>
83
-      <tr class="dashed_tr">
84
-        <td colspan="10">结付分类</td>
85
-      </tr>
86
-      <tr>
87
-        <td colspan="10">
88
-          <div>费用总计:{{info.medfee_sumamt}}</div>
89
-          <div>统筹支付:{{info.fund_pay_sumamt}}</div>
90
-          <div>账户支付:{{info.acct_pay}}</div>
91
-          <div>个人现金支付:{{info.cash_payamt}}</div>
92
-          <div>其他支付:{{info.oth_pay}}</div>
93
-          <div>减免金额:</div>
94
-        </td>
95
-      </tr>
69
+          <td colspan="6">
70
+            <table class="list_table">
71
+              <tr colspan="6" v-for="(v, index) in info.R_list" :key="index">
72
+                <td colspan="2">{{v.name}}</td>
73
+                <td>{{v.spec}}</td>
74
+                <td>{{v.cnt}}</td>
75
+                <td>{{v.det_item_fee_sumamt}}</td>
76
+              </tr>
77
+            </table>
78
+          </td>
79
+        </tr>
80
+        <tr>
81
+          <td colspan="10">共一页,第一页{{info.medfee_sumamt}}</td>
82
+        </tr>
83
+        <tr class="dashed_tr">
84
+          <td colspan="10">结付分类</td>
85
+        </tr>
86
+        <tr>
87
+          <td colspan="10">
88
+            <div>费用总计:{{info.medfee_sumamt}}</div>
89
+            <div>统筹支付:{{info.fund_pay_sumamt}}</div>
90
+            <div>账户支付:{{info.acct_pay}}</div>
91
+            <div>个人现金支付:{{info.cash_payamt}}</div>
92
+            <div>其他支付:{{info.oth_pay}}</div>
93
+            <div>减免金额:</div>
94
+          </td>
95
+        </tr>
96 96
       </tbody>
97 97
     </table>
98 98
   </div>
99 99
 </template>
100 100
 <script>
101
-  export default {
102
-    props: {
103
-      info: {
104
-        type: Object,
105
-        default: function () {
106
-          return {};
107
-        },
101
+export default {
102
+  props: {
103
+    info: {
104
+      type: Object,
105
+      default: function () {
106
+        return {};
108 107
       },
109
-      p_admin: {
110
-        type: Object,
111
-        default: function () {
112
-          return {};
113
-        },
108
+    },
109
+    p_admin: {
110
+      type: Object,
111
+      default: function () {
112
+        return {};
114 113
       },
115
-      charge_admin: {
116
-        type: Object,
117
-        default: function () {
118
-          return {};
119
-        },
114
+    },
115
+    charge_admin: {
116
+      type: Object,
117
+      default: function () {
118
+        return {};
120 119
       },
121 120
     },
122
-    data() {
123
-      return {
124
-        list:[1,2,3],
125
-        list_L: [1,2],
126
-        list_R: [1,2],
127
-      };
121
+  },
122
+  data() {
123
+    return {
124
+      list:[1,2,3],
125
+      list_L: [1,2],
126
+      list_R: [1,2],
127
+    };
128
+  },
129
+  methods: {
130
+    getDay(dateString1, dateString2) {
131
+      var startDate = Date.parse(dateString1);
132
+      var endDate = Date.parse(dateString2);
133
+      if (startDate > endDate) {
134
+        return 0;
135
+      }
136
+      if (startDate == endDate) {
137
+        return 1;
138
+      }
139
+      var days = (endDate - startDate) / (1 * 24 * 60 * 60 * 1000);
140
+      return days;
128 141
     },
129
-    methods: {
130
-      getDay(dateString1, dateString2) {
131
-        var startDate = Date.parse(dateString1);
132
-        var endDate = Date.parse(dateString2);
133
-        if (startDate > endDate) {
134
-          return 0;
135
-        }
136
-        if (startDate == endDate) {
137
-          return 1;
138
-        }
139
-        var days = (endDate - startDate) / (1 * 24 * 60 * 60 * 1000);
140
-        return days;
141
-      },
142
-      getNowTime: function () {
143
-        let dateTime;
144
-        let yy = new Date().getFullYear();
145
-        let mm = new Date().getMonth() + 1;
146
-        let dd = new Date().getDate();
147
-        let hh = new Date().getHours();
148
-        let mf =
149
-          new Date().getMinutes() < 10
150
-            ? "0" + new Date().getMinutes()
151
-            : new Date().getMinutes();
152
-        let ss =
153
-          new Date().getSeconds() < 10
154
-            ? "0" + new Date().getSeconds()
155
-            : new Date().getSeconds();
156
-        dateTime = yy + "-" + mm + "-" + dd + " " + hh + ":" + mf + ":" + ss;
157
-        return dateTime;
158
-      },
142
+    getNowTime: function () {
143
+      let dateTime;
144
+      let yy = new Date().getFullYear();
145
+      let mm = new Date().getMonth() + 1;
146
+      let dd = new Date().getDate();
147
+      let hh = new Date().getHours();
148
+      let mf =
149
+        new Date().getMinutes() < 10
150
+          ? "0" + new Date().getMinutes()
151
+          : new Date().getMinutes();
152
+      let ss =
153
+        new Date().getSeconds() < 10
154
+          ? "0" + new Date().getSeconds()
155
+          : new Date().getSeconds();
156
+      dateTime = yy + "-" + mm + "-" + dd + " " + hh + ":" + mf + ":" + ss;
157
+      return dateTime;
159 158
     },
160
-  };
159
+  },
160
+};
161 161
 </script>
162 162
 
163 163
 

+ 10 - 17
src/xt_pages/outpatientTool/components/detailStatistics.vue Datei anzeigen

@@ -167,11 +167,11 @@
167 167
     <div style="display: flex; justify-content: space-around; margin-top: 25px">
168 168
       <div>总费用:{{ getAllPice() }}</div>
169 169
       <div>
170
-        个人支付: 
170
+        个人支付:
171 171
         {{getActPay()}}
172
-        <!-- <span v-if="his_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>  
172
+        <!-- <span v-if="his_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>
173 173
         <span v-if="his_patient.balance_accounts_type != 2">{{ getActPay() }}</span> -->
174
-      
174
+
175 175
       </div>
176 176
       <div>基金支付记账:{{ getFundPaySumamt() }}</div>
177 177
       <div>补充医疗支付记账:{{ getHifesPay() }}</div>
@@ -345,7 +345,7 @@ export default {
345 345
             this.item_type = this.id;
346 346
           }
347 347
 
348
-          
348
+
349 349
           if (this.keywords != "") {
350 350
             for (let i = 0; i < this.tableData.length; i++) {
351 351
               if (this.tableData[i].index != "合计") {
@@ -444,25 +444,18 @@ export default {
444 444
       return total_price.toFixed(2);
445 445
     },
446 446
     getActPay() {
447
-      var arrNew = []
448 447
       var act_pay = 0;
449 448
       for (let i = 0; i < this.list.length; i++) {
450 449
         for (let j = 0; j < this.list[i].orders.length; j++) {
451
-          //个人支付
452
-          console.log("is",this.list[i].orders[j])
453
-          if(this.list[i].orders[j].is_medicine_insurance == 0){
454
-             arrNew.push(this.list[i].orders[j])
450
+          if(this.list[i].orders[j].is_medicine_insurance == 1){
451
+            act_pay = act_pay + this.list[i].orders[j].psn_cash_pay
452
+          }else{
453
+            act_pay= act_pay +  this.list[i].orders[j].medfee_sumamt
455 454
           }
455
+
456 456
         }
457 457
       }
458
-      if(arrNew.length > 0){
459
-        for(let i=0;i<arrNew.length;i++){
460
-           for(let j=0;j<arrNew[i].order_info.length;j++){
461
-             act_pay += arrNew[i].order_info[j].cnt * arrNew[i].order_info[j].pric
462
-           }
463
-        }
464
-      }
465
-      console.log("arrNew2332323223",arrNew)
458
+
466 459
       return act_pay.toFixed(2);
467 460
     },
468 461
     getFundPaySumamt() {

+ 17 - 24
src/xt_pages/outpatientTool/detailPrint.vue Datei anzeigen

@@ -28,7 +28,7 @@
28 28
           <span v-if="his_patient!=null && his_patient.number!=''">{{his_patient.number}}</span>
29 29
           <span v-if="his_record_patient!=null && his_record_patient.ipt_otp_no!=''">{{his_record_patient.ipt_otp_no}}</span></td>
30 30
             <td>科室:
31
-          <span v-if="his_patient!=null && his_patient.departments >0"> {{ getDepartment(his_patient.departments) }}</span> 
31
+          <span v-if="his_patient!=null && his_patient.departments >0"> {{ getDepartment(his_patient.departments) }}</span>
32 32
           <span v-if="his_record_patient!=null && his_record_patient.departments > 0">{{ getDepartment(his_record_patient.departments) }}</span></td>
33 33
             <td>就诊流水号:
34 34
           <span v-if="his_patient!=null && his_patient.number!=''"> {{ his_patient.number }}</span>
@@ -60,7 +60,7 @@
60 60
         <div>患者姓名:{{ patient.name }}</div>
61 61
         <div>性别:{{ patient.gender == 1 ? "男" : "女" }}</div>
62 62
         <div>结算类别:
63
-          
63
+
64 64
           {{getType(his_record_patient.balance_accounts_type)}}
65 65
         </div>
66 66
         <div style="min-width:300px;">发票号码:{{order.fa_piao_number}}</div>
@@ -73,7 +73,7 @@
73 73
           {{ getDepartment(his_record_patient.departments) }}
74 74
         </div>
75 75
         <div style="min-width:350px;">就诊流水号:
76
-       
76
+
77 77
           {{his_record_patient.number}}
78 78
         </div>
79 79
       </div> -->
@@ -108,7 +108,7 @@
108 108
             <span v-if="item.is_total == 2">合计</span>
109 109
           </td>
110 110
           <td style="text-align: center">
111
-            <span v-if="item.is_total == 1">{{getTimes(item.record_date)}}</span> 
111
+            <span v-if="item.is_total == 1">{{getTimes(item.record_date)}}</span>
112 112
           </td>
113 113
           <td width="80" style="text-align: center">{{ item.number }}</td>
114 114
           <td style="text-align: center">
@@ -239,11 +239,11 @@ export default {
239 239
           this.patient = response.data.data.patient;
240 240
 
241 241
           this.his_patient = response.data.data.his_patient;
242
-         
242
+
243 243
          this.his_record_patient = response.data.data.his_record_patient
244 244
 
245 245
          this.hisDepatment = response.data.data.hisDepatment;
246
-          
246
+
247 247
          this.orderList = response.data.data.orderList
248 248
           this.order = response.data.data.order
249 249
           this.tableData = [];
@@ -271,7 +271,7 @@ export default {
271 271
           this.tableData.push(obj);
272 272
 
273 273
 
274
-         
274
+
275 275
           if (this.$route.query.keyword != "") {
276 276
             var new_arr = []
277 277
             for (let i = 0; i < this.tableData.length; i++) {
@@ -314,7 +314,7 @@ export default {
314 314
             objs.total_price = this.getPrice(new_arr)
315 315
             new_arr.push(objs)
316 316
             this.tableData = new_arr;
317
-           
317
+
318 318
           }
319 319
 
320 320
           if(this.$route.query.id == 1){
@@ -347,10 +347,10 @@ export default {
347 347
                 }
348 348
               }
349 349
             }
350
-         
350
+
351 351
             this.tableData = []
352 352
             obj.total_price = this.getPrice(new_arr)
353
-           
353
+
354 354
             for(let i=0;i<new_arr.length;i++){
355 355
               new_arr[i].is_total = 1
356 356
             }
@@ -376,7 +376,7 @@ export default {
376 376
               new_arr[i].is_total = 1
377 377
             }
378 378
             new_arr.push(obj)
379
-           
379
+
380 380
             this.tableData = new_arr
381 381
           }
382 382
 
@@ -393,25 +393,18 @@ export default {
393 393
       return total_price;
394 394
     },
395 395
     getActPay() {
396
-      var arrNew = []
397 396
       var act_pay = 0;
398 397
       for (let i = 0; i < this.list.length; i++) {
399 398
         for (let j = 0; j < this.list[i].orders.length; j++) {
400
-          //个人支付
401
-          console.log("is",this.list[i].orders[j])
402
-          if(this.list[i].orders[j].is_medicine_insurance == 0){
403
-             arrNew.push(this.list[i].orders[j])
399
+          if(this.list[i].orders[j].is_medicine_insurance == 1){
400
+            act_pay = act_pay + this.list[i].orders[j].psn_cash_pay
401
+          }else{
402
+            act_pay= act_pay +  this.list[i].orders[j].medfee_sumamt
404 403
           }
404
+
405 405
         }
406 406
       }
407
-      if(arrNew.length > 0){
408
-        for(let i=0;i<arrNew.length;i++){
409
-           for(let j=0;j<arrNew[i].order_info.length;j++){
410
-             act_pay += arrNew[i].order_info[j].cnt * arrNew[i].order_info[j].pric
411
-           }
412
-        }
413
-      }
414
-      console.log("arrNew2332323223",arrNew)
407
+
415 408
       return act_pay.toFixed(2);
416 409
     },
417 410
     getFundPaySumamt() {

+ 53 - 60
src/xt_pages/outpatientTool/gatherPrint.vue Datei anzeigen

@@ -10,12 +10,12 @@
10 10
         </div>
11 11
         <div class="listInfo">
12 12
             <div>科别:
13
-              <span v-if="org_id!=10215"> {{getDepartment(his_patient.departments)}}</span> 
13
+              <span v-if="org_id!=10215"> {{getDepartment(his_patient.departments)}}</span>
14 14
               {{getDepartment(his_record_patient.departments)}}
15 15
             </div>
16 16
             <div>床号:<span v-if="schedule.length > 0">{{getBedName(schedule[0].bed_id)}}</span></div>
17 17
             <div>门诊号:
18
-               <span v-if="org_id!=10215">{{his_patient.number}}</span> 
18
+               <span v-if="org_id!=10215">{{his_patient.number}}</span>
19 19
                {{his_record_patient.ipt_otp_no}}
20 20
             </div>
21 21
             <div>姓名:{{patient.name}}</div>
@@ -76,27 +76,27 @@
76 76
                    {{item.cost_type}}
77 77
                  </span>
78 78
                   <span v-if="item.type == 2">
79
-                    {{item.cost_type}} 
79
+                    {{item.cost_type}}
80 80
                   </span>
81 81
                   <span v-if="item.type == 3">
82 82
                     材料费
83
-                  </span> 
83
+                  </span>
84 84
                 </td>
85 85
                 <td style="text-align:center" >
86
-                  <span>{{item.name}}</span>  
86
+                  <span>{{item.name}}</span>
87 87
                 </td>
88 88
                 <td style="text-align:center" >
89 89
                   {{ item.spec }}
90 90
                 </td>
91 91
                 <td style="text-align:center" >
92
-                  {{item.pric}}  
92
+                  {{item.pric}}
93 93
                 </td>
94 94
                 <td style="text-align:center" >
95 95
                    {{item.count_number }}{{item.unit }}
96 96
                 </td>
97 97
                 <td style="text-align:center" >
98
-                   <span v-if="item.is_total == 1">{{ item.total }}</span>  
99
-                   <span v-if="item.is_total == 2">{{ (item.pric * item.count_number).toFixed(2) }}</span> 
98
+                   <span v-if="item.is_total == 1">{{ item.total }}</span>
99
+                   <span v-if="item.is_total == 2">{{ (item.pric * item.count_number).toFixed(2) }}</span>
100 100
                 </td>
101 101
                 <td style="text-align:center" >
102 102
                   {{getChrgitmLv(item.medical_insurance_level)}}
@@ -194,7 +194,7 @@
194 194
             return false
195 195
           } else {
196 196
           this.drugTypeList =response.data.data.drugTypeList
197
-          this.costClassifyList = response.data.data.costClassifyList 
197
+          this.costClassifyList = response.data.data.costClassifyList
198 198
           var list = response.data.data.list
199 199
           this.list = list
200 200
           this.orderList = response.data.data.orderList
@@ -206,7 +206,7 @@
206 206
                new_arr.push(list[i].orders[j])
207 207
             }
208 208
           }
209
-          
209
+
210 210
 
211 211
           var order_info = []
212 212
           for(let i=0;i<new_arr.length;i++){
@@ -228,8 +228,8 @@
228 228
               }
229 229
             }
230 230
           }
231
-          
232
-          
231
+
232
+
233 233
           //合并,相同的合并在一起
234 234
 
235 235
           let dataInfo = {}
@@ -257,8 +257,8 @@
257 257
             }
258 258
             dataInfo[item_id].child.push(item)
259 259
           })
260
-          let arr = Object.values(dataInfo) 
261
-          
260
+          let arr = Object.values(dataInfo)
261
+
262 262
           for(let i=0;i<arr.length;i++){
263 263
             for(let j=0;j<arr[i].child.length;j++){
264 264
                if(arr[i].advice_id >0){
@@ -269,8 +269,8 @@
269 269
                   arr[i].unit = arr[i].child[0].advice.prescribing_number_unit
270 270
                   arr[i].cost_type = arr[i].child[0].advice.drug.drug_type
271 271
                   arr[i].medical_insurance_level = arr[i].child[0].advice.drug.medical_insurance_level
272
-                 
273
-                 
272
+
273
+
274 274
                }
275 275
                if(arr[i].project_id > 0){
276 276
                   arr[i].record_date = arr[i].child[0].project.record_date
@@ -293,7 +293,7 @@
293 293
                arr[i].count_number +=arr[i].child[j].cnt
294 294
             }
295 295
           }
296
-          
296
+
297 297
           var obj = {is_total:1,total:0}
298 298
           obj.total = this.getAllPiceTwo(arr)
299 299
           for(let i=0;i<arr.length;i++){
@@ -307,18 +307,18 @@
307 307
           arr.push(obj)
308 308
 
309 309
           this.tableList = arr
310
-         
310
+
311 311
           this.patient = response.data.data.patient
312
-         
312
+
313 313
           this.his_patient = response.data.data.his_patient
314 314
           this.hisDepatment =  response.data.data.hisDepatment
315 315
           this.order =  response.data.data.order
316 316
           this.his_record_patient = response.data.data.his_record_patient
317
-          this.medicalInsuranceLevelList = response.data.data.medicalInsuranceLevelList  
317
+          this.medicalInsuranceLevelList = response.data.data.medicalInsuranceLevelList
318 318
           this.schedule = response.data.data.schedule
319 319
           this.bedNumber = response.data.data.bedNumber
320 320
           if(this.$route.query.keyword !=""){
321
-           
321
+
322 322
             var new_arr = []
323 323
             for(let i=0;i<this.tableList.length;i++){
324 324
               if(this.tableList[i].is_total!=1){
@@ -326,7 +326,7 @@
326 326
                   new_arr.push(this.tableList[i])
327 327
                 }
328 328
               }
329
-             
329
+
330 330
              }
331 331
               var obj ={index:"合计",is_total:1,total:0}
332 332
               obj.total = this.getAllPiceTwo(new_arr)
@@ -341,9 +341,9 @@
341 341
                 if(this.tableList[i].is_total!=1){
342 342
                   if(this.tableList[i].type == 1){
343 343
                    new_arr.push(this.tableList[i])
344
-                }  
344
+                }
345 345
               }
346
-                
346
+
347 347
              }
348 348
              this.tableList = []
349 349
              this.tableList = new_arr
@@ -353,9 +353,9 @@
353 353
              for(let i=0;i<this.tableList.length;i++){
354 354
                if(this.tableList[i].is_total!=1){
355 355
                   if(this.tableList[i].type == 2){
356
-                
356
+
357 357
                   new_arr.push(this.tableList[i])
358
-                }  
358
+                }
359 359
               }
360 360
              }
361 361
              this.tableList = []
@@ -367,7 +367,7 @@
367 367
                 if(this.tableList[i].is_total!=1){
368 368
                   if(this.tableList[i].type == 3){
369 369
                     new_arr.push(this.tableList[i])
370
-                }  
370
+                }
371 371
               }
372 372
              }
373 373
              this.tableList = []
@@ -404,7 +404,7 @@
404 404
               id: details[i].advice.drug_id,
405 405
               price: details[i].advice.price,
406 406
               record_date:details[i].advice.advice_date
407
-              
407
+
408 408
             }
409 409
             drug_ids.push(obj)
410 410
           } else if (details[i].project && details[i].project.id > 0 && details[i].project.prescription && details[i].project.prescription.type == 2) { //项目
@@ -418,10 +418,10 @@
418 418
           }
419 419
 
420 420
         }
421
-      
421
+
422 422
         let new_drug_ids = this.unique(drug_ids)
423 423
         let new_project_ids = this.unique(project_ids)
424
-       
424
+
425 425
         let list = []
426 426
         if (new_drug_ids.length > 0 && new_project_ids.length == 0) {
427 427
           for (let i = 0; i < new_drug_ids.length; i++) {
@@ -476,7 +476,7 @@
476 476
             }
477 477
             obj['count'] = count
478 478
             list.push(obj)
479
-          
479
+
480 480
           }
481 481
         }
482 482
 
@@ -502,7 +502,7 @@
502 502
             list.push(obj)
503 503
 
504 504
           }
505
-         
505
+
506 506
           for (let i = 0; i < new_project_ids.length; i++) {
507 507
             let obj = {}
508 508
             let count = 0
@@ -529,13 +529,13 @@
529 529
             }
530 530
             obj['count'] = count
531 531
             list.push(obj)
532
-          
532
+
533 533
           }
534 534
          }
535
-       
535
+
536 536
         return list
537
-      }, 
538
-    
537
+      },
538
+
539 539
       getMedicineInsuranceType(type) {
540 540
         switch (type) {
541 541
           case "01":
@@ -663,7 +663,7 @@
663 663
       }else{
664 664
         return "0.00"
665 665
       }
666
-     
666
+
667 667
     },
668 668
     getAllPiceTwo(arr){
669 669
 
@@ -678,7 +678,7 @@
678 678
       }else{
679 679
         return total_price
680 680
       }
681
-     
681
+
682 682
     },
683 683
     setMonthPrescription(month_prescriptions) {
684 684
       let drug_month_prescriptions = {
@@ -718,7 +718,7 @@
718 718
 
719 719
       drug_ids = this.unique(drug_ids)
720 720
       project_ids= this.unique(project_ids)
721
-  
721
+
722 722
       for (let i = 0; i < drug_ids.length; i++) {
723 723
         let obj = {}
724 724
         let count = 0
@@ -738,7 +738,7 @@
738 738
             obj['record_date'] = drug_month_prescriptions.advices[a].advice_date
739 739
             obj['spec'] = drug_month_prescriptions.advices[a].drug.dose  + drug_month_prescriptions.advices[a].drug.dose_unit +"*" + drug_month_prescriptions.advices[a].drug.min_number + drug_month_prescriptions.advices[a].drug.min_unit + "/" + drug_month_prescriptions.advices[a].drug.max_unit
740 740
             obj['is_total'] = 2
741
-            obj['chrgitm_lv'] =  drug_month_prescriptions.advices[a].drug.medical_insurance_level 
741
+            obj['chrgitm_lv'] =  drug_month_prescriptions.advices[a].drug.medical_insurance_level
742 742
             obj['unit'] = drug_month_prescriptions.advices[a].prescribing_number_unit
743 743
             count = count + drug_month_prescriptions.advices[a].prescribing_number
744 744
 
@@ -777,7 +777,7 @@
777 777
             obj['day'] = project_month_prescriptions.project[a].day
778 778
             obj['single_dose_unit'] = project_month_prescriptions.project[a].unit
779 779
             obj['prescribing_number_unit'] = project_month_prescriptions.project[a].unit
780
-           
780
+
781 781
             count = count + parseFloat(project_month_prescriptions.project[a].count)
782 782
             obj['price'] = parseFloat(project_month_prescriptions.project[a].price)
783 783
             obj['remark'] = project_month_prescriptions.project[a].remark
@@ -911,7 +911,7 @@
911 911
             total_price += this.tableList[i].count_number * this.tableList[i].pric
912 912
          }
913 913
       }
914
-      
914
+
915 915
       return total_price.toFixed(2)
916 916
     },
917 917
     getChineseTraditionalMedicineCostTotal(){
@@ -1041,7 +1041,7 @@
1041 1041
       return total_price.toFixed(2)
1042 1042
     },
1043 1043
     getDrugType(id){
1044
-    
1044
+
1045 1045
       var name = ""
1046 1046
       for(let i=0;i<this.drugTypeList.length;i++){
1047 1047
          if(id == this.drugTypeList[i].value){
@@ -1108,42 +1108,35 @@
1108 1108
       for(let i=0;i<this.orderList.length;i++){
1109 1109
         fund_pay_sumamt +=this.orderList[i].fund_pay_sumamt
1110 1110
       }
1111
-     
1111
+
1112 1112
       if(fund_pay_sumamt >0){
1113 1113
         return fund_pay_sumamt.toFixed(2)
1114 1114
       }else{
1115
-      
1115
+
1116 1116
         return "0.00"
1117 1117
       }
1118 1118
     },
1119 1119
     getActPay() {
1120
-      var arrNew = []
1121 1120
       var act_pay = 0;
1122 1121
       for (let i = 0; i < this.list.length; i++) {
1123 1122
         for (let j = 0; j < this.list[i].orders.length; j++) {
1124
-          //个人支付
1125
-          console.log("is",this.list[i].orders[j])
1126
-          if(this.list[i].orders[j].is_medicine_insurance == 0){
1127
-             arrNew.push(this.list[i].orders[j])
1123
+          if(this.list[i].orders[j].is_medicine_insurance == 1){
1124
+            act_pay = act_pay + this.list[i].orders[j].psn_cash_pay
1125
+          }else{
1126
+            act_pay= act_pay +  this.list[i].orders[j].medfee_sumamt
1128 1127
           }
1128
+
1129 1129
         }
1130 1130
       }
1131
-      if(arrNew.length > 0){
1132
-        for(let i=0;i<arrNew.length;i++){
1133
-           for(let j=0;j<arrNew[i].order_info.length;j++){
1134
-             act_pay += arrNew[i].order_info[j].cnt * arrNew[i].order_info[j].pric
1135
-           }
1136
-        }
1137
-      }
1138
-      console.log("arrNew2332323223",arrNew)
1131
+
1139 1132
       return act_pay.toFixed(2);
1140 1133
     },
1141 1134
 
1142 1135
     },
1143 1136
     created(){
1144 1137
       this.org_id = this.$store.getters.xt_user.org.id;
1145
-     
1146
-      this.getGatherDetailList()   
1138
+
1139
+      this.getGatherDetailList()
1147 1140
     }
1148 1141
 
1149 1142
   }

+ 5 - 0
src/xt_pages/qcd/workAnalysis/nurse.vue Datei anzeigen

@@ -421,10 +421,15 @@
421 421
                 total_diffcult_nurse = total_diffcult_nurse + resp.data.data[i].difficult_nuser_count
422 422
                 total_new_fistula_nurse = total_new_fistula_nurse + resp.data.data[i].new_nuser_count
423 423
                 total_start_nurse = total_start_nurse + resp.data.data[i].start_nuser_count
424
+                console.log( resp.data.data[i].start_nuser_count)
425
+
426
+                console.log(total_start_nurse)
424 427
                 total_finish_nurse = total_finish_nurse + resp.data.data[i].finish_nuser_count
425 428
                 total_washpipe_nurse = total_washpipe_nurse + resp.data.data[i].washpipe_nuser_count
426 429
                 this.tableData.push(resp.data.data[i])
427 430
              }
431
+              console.log(total_start_nurse)
432
+
428 433
               this.tableData.push( {
429 434
                 user_name:"合计",
430 435
                 cure_count:total_cure,