123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242 |
- <template>
- <div id="allList-print" class="allList-print">
- <div class="allListTitle">{{ $store.getters.xt_user.org.org_name }}汇总清单</div>
- <div class="allListInfo">
- <div>科别:门诊</div>
- <div>床号:</div>
- <div>门诊号:{{ order.mdtrt_id }}</div>
- <div>患者姓名:{{ patient.name }}</div>
- </div>
-
- <div class="allListInfo">
- <div>预交款:</div>
- <div>门诊日期:</div>
- <div>总费用:{{ order.medfee_sumamt }}</div>
- </div>
-
- <div class="allListInfo">
- <div>西药:{{order.westernMedicineCostTotal?order.westernMedicineCostTotal:''}}</div>
- <div >中成药:{{order.chineseTraditionalMedicineCostTotal?order.chineseTraditionalMedicineCostTotal:''}}</div>
- <div >中草药:</div>
- <div >检查费:{{order.checkCostTotal?order.checkCostTotal:''}}</div>
- </div>
-
-
- <div class="allListInfo">
- <div >输氧费:</div>
- <div>手术费:{{order.operationCostTotal?order.operationCostTotal:''}}</div>
- <div >化验费:{{order.laboratoryCostTotal?order.laboratoryCostTotal:''}}</div>
- <div>输血费:</div>
- </div>
-
-
- <div class="allListInfo">
- <div >诊察费:{{order.zhenChaCostTotal?order.zhenChaCostTotal:''}}</div>
- <div >治疗费:{{order.treatCostTotal?order.treatCostTotal:''}}</div>
- <div >护理费:</div>
- <div >床位费:{{order.bedCostTotal?order.bedCostTotal:''}}</div>
- </div>
-
-
- <div class="allListInfo">
- <div >麻醉费:</div>
- <div >材料费:{{order.materialCostTotal?order.materialCostTotal:''}}</div>
- <div >其他费:{{order.otherCostTotal?order.otherCostTotal:''}}</div>
- </div>
- <!-- <div style="display:flex;justify-content: space-between;">-->
- <!-- <div style="position: absolute;top:160px;left:40px">西药</div>-->
- <!-- <div style="position: absolute;top:160px;left:110px">{{ list.westernMedicineCostTotal }}</div>-->
- <!-- <div style="position: absolute;top:160px;left:180px">检查费</div>-->
- <!-- <div style="position: absolute;top:160px;left:260px">{{ list.checkCostTotal }}</div>-->
- <!-- <div style="position: absolute;top:160px;left:340px">化验费</div>-->
- <!-- <div style="position: absolute;top:160px;left:420px">{{ list.treatCostTotal }}</div>-->
- <!-- <div style="position: absolute;top:160px;left:500px">治疗费</div>-->
- <!-- <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>-->
- <!-- <div style="position: absolute;top:160px;left:500px">麻醉费</div>-->
- <!-- <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>-->
- <!-- </div>-->
- <!-- <div style="display:flex;justify-content: space-between;">-->
- <!-- <div style="position: absolute;top:190px;left:40px">中成药</div>-->
- <!-- <div style="position: absolute;top:190px;left:110px">{{ list.chineseTraditionalMedicineCostTotal }}</div>-->
- <!-- <div style="position: absolute;top:190px;left:180px">输氧费</div>-->
- <!-- <div style="position: absolute;top:190px;left:260px">{{ list.laboratoryCostTotal }}</div>-->
- <!-- <div style="position: absolute;top:190px;left:340px">输血费</div>-->
- <!-- <div style="position: absolute;top:190px;left:420px">{{ list.operationCostTotal }}</div>-->
- <!-- <div style="position: absolute;top:190px;left:500px">护理费</div>-->
- <!-- <div style="position: absolute;top:190px;left:580px">{{ list.otherCostTotal }}</div>-->
-
- <!-- <div style="position: absolute;top:160px;left:500px">材料费</div>-->
- <!-- <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>-->
- <!-- </div>-->
- <!-- <div style="display:flex;justify-content: space-between;">-->
- <!-- <div style="position: absolute;top:210px;left:40px">中草药</div>-->
- <!-- <div style="position: absolute;top:210px;left:110px"></div>-->
- <!-- <div style="position: absolute;top:210px;left:180px">手术费</div>-->
- <!-- <div style="position: absolute;top:210px;left:260px"></div>-->
- <!-- <div style="position: absolute;top:210px;left:340px">诊察费</div>-->
- <!-- <div style="position: absolute;top:210px;left:420px">{{ list.materialCostTotal }}</div>-->
- <!-- <div style="position: absolute;top:210px;left:500px">床位费</div>-->
- <!-- <div style="position: absolute;top:210px;left:580px"></div>-->
- <!-- <div style="position: absolute;top:160px;left:500px">其他</div>-->
- <!-- <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>-->
- <!-- </div>-->
-
-
- <table class="allListTable" border="1">
- <tr>
- <td style="width:10%">费用类别</td>
- <td style="width:35%">项目名称</td>
- <td style="width:15%">规格</td>
- <td style="width:5%">单位</td>
- <td style="width:10%">数量</td>
- <td style="width:10%">单价</td>
- <td style="width:10%">金额</td>
- <td style="width:10%">医保类型</td>
-
- </tr>
- <template v-for='(item,index) in list'>
- <tr>
- <td style="width:10%">{{ item.med_chrgitm_type }}</td>
- <td style="width:35%">{{ item.name }}</td>
- <td style="width:15%">{{ item.spec }}</td>
- <td style="width:5%">{{ item.unit }}</td>
- <td style="width:10%">{{ item.count }}</td>
- <td style="width:10%">{{ item.price }}</td>
- <td style="width:10%">{{ (item.price * item.count).toFixed(2) }}</td>
- <td style="width:10%">{{ item.medicine_insurance_kind }}</td>
-
- </tr>
- </template>
- </table>
-
- </div>
- </template>
-
- <script>
- import { uParseTime } from '@/utils/tools'
-
- export default {
- props: {
- list: {
- type: Array,
- default: function() {
- return []
- }
- }, patient: {
- type: Object,
- default: function() {
- return {}
- }
- }, order: {
- type: Object,
- default: function() {
- return {}
- }
- }, admin: {
- type: Object,
- default: function() {
- return {}
- }
- }, hospital: {
- type: Object,
- default: function() {
- return {}
- }
-
- }
- },
- data() {
- return {
- page: 1,
- pageArr: []
- }
- },
- methods: {
- getNowTime: function() {
- let dateTime
- let yy = new Date().getFullYear()
- let mm = new Date().getMonth() + 1
- let dd = new Date().getDate()
- let hh = new Date().getHours()
- let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
- :
- new Date().getMinutes()
- let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
- :
- new Date().getSeconds()
- dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss
- return dateTime
- },
- getTimes(time) {
- return uParseTime(time, '{y}-{m}-{d}')
- }, getTotal: function(items) {
- let total = 0
- for (let i = 0; i < items.length; i++) {
- total = total + (items[i].count * items[i].price).toFixed(2)
- }
- return total
-
- }
-
- },
- watch: {
- list: {
- handler(newVal) {
- this.getPage()
- },
- deep: true
- }
- }
- }
-
-
- </script>
-
- <style lang="scss" scoped>
- .allList-print {
- -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
- -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
- box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
- margin-bottom: 20px;
- padding: 20px 10px;
- }
-
- .allListTitle {
- font-size: 24px;
- text-align: center;
- font-weight: bold;
- margin-bottom: 10px;
- }
-
- .allListInfo {
- display: flex;
- font-size: 16px;
- justify-content: space-between;
- margin: 10px 0;
- }
-
- .allListTable {
- width: 100%;
- text-align: center;
- border-collapse: collapse;
- line-height: 20px;
- font-size: 14px;
- border-color: #000;
- text-align: left;
- }
-
- .allListTable tr td {
- padding: 0 5px;
- }
-
- .tableBottom {
- font-size: 16px;
- display: flex;
- margin-top: 20px;
- }
-
- .tableBottomOne {
- margin-right: 40px;
- }
- </style>
|