Browse Source

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

XMLWAN 2 years ago
parent
commit
4af9faa2ab

+ 5 - 3
src/xt_pages/data/druguse.vue View File

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

+ 13 - 2
src/xt_pages/data/druguseTemplate.vue View File

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

+ 188 - 188
src/xt_pages/hospitalStation/components/chargeDialog.vue View File

77
         ></el-input>
77
         ></el-input>
78
       </el-form-item>
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
           <el-radio :label="item.value" :value="item.value" v-for="(item,index) in payWays" :key="index">{{ item.label }}</el-radio>
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
       </el-form-item>
86
       </el-form-item>
87
 
87
 
88
       <el-form-item label="个人现金支付方式:" style="width: 100%">
88
       <el-form-item label="个人现金支付方式:" style="width: 100%">
167
 
167
 
168
     <span slot="footer" class="dialog-footer">
168
     <span slot="footer" class="dialog-footer">
169
     <el-button @click="cancel('formValue')">取 消</el-button>
169
     <el-button @click="cancel('formValue')">取 消</el-button>
170
-      <!--      <el-button @click="init">调试</el-button>-->
170
+<!--      <el-button @click="init">调试</el-button>-->
171
     <el-button type="primary" @click="confirm('formValue')">确 定</el-button>
171
     <el-button type="primary" @click="confirm('formValue')">确 定</el-button>
172
   </span>
172
   </span>
173
   </el-dialog>
173
   </el-dialog>
259
         default: 1,
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
           if (parseFloat(this.form.tmp_decimal) > parseFloat(this.form.private_price)) {
297
           if (parseFloat(this.form.tmp_decimal) > parseFloat(this.form.private_price)) {
321
-            this.form.tmp_decimal = 0
322
             // alert("押金不得大于自费金额")
298
             // alert("押金不得大于自费金额")
323
             this.$message.error("押金不得大于自费金额");
299
             this.$message.error("押金不得大于自费金额");
300
+            this.form.tmp_decimal = ""
301
+            this.form.pay_price = this.tmp_pay
324
             return
302
             return
325
           }
303
           }
326
           // this.form.private_price = parseFloat(this.form.tmp_decimal) + parseFloat(this.form.pay_price)
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
           this.form.pay_price = ((parseFloat(this.form.private_price) * 10000 - parseFloat(this.form.tmp_decimal) * 10000) / 10000).toFixed(2)
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
 
446
 
447
 
447
 
448
 <style lang="scss" scoped>
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
   .el-form {
459
   .el-form {
460
     display: flex;
460
     display: flex;
461
     flex-wrap: wrap;
461
     flex-wrap: wrap;
463
   .el-form-item {
463
   .el-form-item {
464
     width: 50%;
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
 </style>
475
 </style>

+ 1 - 0
src/xt_pages/outpatientCharges/components/registerDialog.vue View File

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

+ 124 - 124
src/xt_pages/outpatientCharges/statementTemplate/printFive.vue View File

22
         <td colspan="10">明细信息</td>
22
         <td colspan="10">明细信息</td>
23
       </tr>
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
       </tbody>
96
       </tbody>
97
     </table>
97
     </table>
98
   </div>
98
   </div>
99
 </template>
99
 </template>
100
 <script>
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
 </script>
161
 </script>
162
 
162
 
163
 
163
 

+ 10 - 17
src/xt_pages/outpatientTool/components/detailStatistics.vue View File

167
     <div style="display: flex; justify-content: space-around; margin-top: 25px">
167
     <div style="display: flex; justify-content: space-around; margin-top: 25px">
168
       <div>总费用:{{ getAllPice() }}</div>
168
       <div>总费用:{{ getAllPice() }}</div>
169
       <div>
169
       <div>
170
-        个人支付: 
170
+        个人支付:
171
         {{getActPay()}}
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
         <span v-if="his_patient.balance_accounts_type != 2">{{ getActPay() }}</span> -->
173
         <span v-if="his_patient.balance_accounts_type != 2">{{ getActPay() }}</span> -->
174
-      
174
+
175
       </div>
175
       </div>
176
       <div>基金支付记账:{{ getFundPaySumamt() }}</div>
176
       <div>基金支付记账:{{ getFundPaySumamt() }}</div>
177
       <div>补充医疗支付记账:{{ getHifesPay() }}</div>
177
       <div>补充医疗支付记账:{{ getHifesPay() }}</div>
345
             this.item_type = this.id;
345
             this.item_type = this.id;
346
           }
346
           }
347
 
347
 
348
-          
348
+
349
           if (this.keywords != "") {
349
           if (this.keywords != "") {
350
             for (let i = 0; i < this.tableData.length; i++) {
350
             for (let i = 0; i < this.tableData.length; i++) {
351
               if (this.tableData[i].index != "合计") {
351
               if (this.tableData[i].index != "合计") {
444
       return total_price.toFixed(2);
444
       return total_price.toFixed(2);
445
     },
445
     },
446
     getActPay() {
446
     getActPay() {
447
-      var arrNew = []
448
       var act_pay = 0;
447
       var act_pay = 0;
449
       for (let i = 0; i < this.list.length; i++) {
448
       for (let i = 0; i < this.list.length; i++) {
450
         for (let j = 0; j < this.list[i].orders.length; j++) {
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
       return act_pay.toFixed(2);
459
       return act_pay.toFixed(2);
467
     },
460
     },
468
     getFundPaySumamt() {
461
     getFundPaySumamt() {

+ 17 - 24
src/xt_pages/outpatientTool/detailPrint.vue View File

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

+ 53 - 60
src/xt_pages/outpatientTool/gatherPrint.vue View File

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

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