Commit 1eaed899 authored by 高滢's avatar 高滢

住院病房价格

parent c25fc577
...@@ -80,14 +80,14 @@ ...@@ -80,14 +80,14 @@
</el-table-column> </el-table-column>
<el-table-column label="标准价格" min-width="80" align="left" show-overflow-tooltip> <el-table-column label="标准价格" min-width="80" align="left" show-overflow-tooltip>
<template #default="{row}"> <template #default="{row}">
<div v-if="row.chooseStatus==='0'"> <!-- <div v-if="row.chooseStatus==='0'">-->
<span v-show="row.wardType==='1'">{{ moneyFormat(inHospitalInfo.ordinaryPrice )+ '元/天' }}</span> <!-- <span v-show="row.wardType==='1'">{{ moneyFormat(inHospitalInfo.ordinaryPrice )+ '元/天' }}</span>-->
<span v-show="row.wardType==='2'">{{ moneyFormat(inHospitalInfo.icuPrice) + '元/天' }}</span> <span>{{ moneyFormat(row.icuPrice) + '元/天' }}</span>
</div> <!-- </div>-->
<div v-else> <!-- <div v-else>-->
<span v-show="row.wardType==='1'">{{ moneyFormat(row.ordinaryPrice )+ '元/天' }}</span> <!-- <span v-show="row.wardType==='1'">{{ moneyFormat(row.ordinaryPrice )+ '元/天' }}</span>-->
<span v-show="row.wardType==='2'">{{ moneyFormat(row.icuPrice) + '元/天' }}</span> <!-- <span v-show="row.wardType==='2'">{{ moneyFormat(row.icuPrice) + '元/天' }}</span>-->
</div> <!-- </div>-->
</template> </template>
</el-table-column> </el-table-column>
<el-table-column class-name="small-padding fixed-width" align="left" label="操作" min-width="80"> <el-table-column class-name="small-padding fixed-width" align="left" label="操作" min-width="80">
...@@ -271,11 +271,11 @@ export default { ...@@ -271,11 +271,11 @@ export default {
this.chooseWard.wardLeaderName = row.wardLeaderName this.chooseWard.wardLeaderName = row.wardLeaderName
this.chooseWard.wardLeaderPhone = row.wardLeaderPhone this.chooseWard.wardLeaderPhone = row.wardLeaderPhone
this.highlightedRowId = row.wardId this.highlightedRowId = row.wardId
if (row.wardType === '2') { // if (row.wardType === '2') {
this.chooseWard.standardAmount = row.icuPrice this.chooseWard.standardAmount = row.icuPrice
} else if (row.wardType === '1') { // } else if (row.wardType === '1') {
this.chooseWard.standardAmount = row.ordinaryPrice // this.chooseWard.standardAmount = row.ordinaryPrice
} // }
}, },
highlightRow(scope) { highlightRow(scope) {
if (scope.row.chooseStatus !== '0') { if (scope.row.chooseStatus !== '0') {
......
...@@ -82,8 +82,8 @@ ...@@ -82,8 +82,8 @@
<div style="padding: 0 20px;margin-top: -10px"> <div style="padding: 0 20px;margin-top: -10px">
<!-- 列表区--> <!-- 列表区-->
<el-table <el-table
style="cursor: pointer;"
ref="table" ref="table"
style="cursor: pointer;"
:data="wardList" :data="wardList"
:header-cell-style="{ background:'#F4F4F4'}" :header-cell-style="{ background:'#F4F4F4'}"
:row-class-name="highlightRow" :row-class-name="highlightRow"
...@@ -112,14 +112,14 @@ ...@@ -112,14 +112,14 @@
</el-table-column> </el-table-column>
<el-table-column label="病房每日单价" min-width="80" align="left" show-overflow-tooltip> <el-table-column label="病房每日单价" min-width="80" align="left" show-overflow-tooltip>
<template #default="{row}"> <template #default="{row}">
<div v-if="row.chooseStatus==='0'"> <!-- <div v-if="row.chooseStatus==='0'">-->
<span v-show="row.wardType==='1'">{{ moneyFormat(inHospitalInfo.ordinaryPrice )+ '元/天' }}</span> <!-- <span v-show="row.wardType==='1'">{{ moneyFormat(inHospitalInfo.ordinaryPrice )+ '元/天' }}</span>-->
<span v-show="row.wardType==='2'">{{ moneyFormat(inHospitalInfo.icuPrice) + '元/天' }}</span> <span>{{ moneyFormat(row.icuPrice) + '元/天' }}</span>
</div> <!-- </div>-->
<div v-else> <!-- <div v-else>-->
<span v-show="row.wardType==='1'">{{ moneyFormat(row.ordinaryPrice )+ '元/天' }}</span> <!-- <span v-show="row.wardType==='1'">{{ moneyFormat(row.ordinaryPrice )+ '元/天' }}</span>-->
<span v-show="row.wardType==='2'">{{ moneyFormat(row.icuPrice) + '元/天' }}</span> <!-- <span v-show="row.wardType==='2'">{{ moneyFormat(row.icuPrice) + '元/天' }}</span>-->
</div> <!-- </div>-->
</template> </template>
</el-table-column> </el-table-column>
<el-table-column class-name="small-padding fixed-width" align="left" label="操作" min-width="80"> <el-table-column class-name="small-padding fixed-width" align="left" label="操作" min-width="80">
...@@ -293,11 +293,11 @@ export default { ...@@ -293,11 +293,11 @@ export default {
this.chooseWard.wardLeaderName = row.wardLeaderName this.chooseWard.wardLeaderName = row.wardLeaderName
this.chooseWard.wardLeaderPhone = row.wardLeaderPhone this.chooseWard.wardLeaderPhone = row.wardLeaderPhone
this.highlightedRowId = row.wardId this.highlightedRowId = row.wardId
if (row.wardType === '2') { // if (row.wardType === '2') {
this.chooseWard.standardAmount = row.icuPrice this.chooseWard.standardAmount = row.icuPrice
} else if (row.wardType === '1') { // } else if (row.wardType === '1') {
this.chooseWard.standardAmount = row.ordinaryPrice // this.chooseWard.standardAmount = row.ordinaryPrice
} // }
}, },
highlightRow(scope) { highlightRow(scope) {
if (scope.row.chooseStatus !== '0') { if (scope.row.chooseStatus !== '0') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment