fix: 智聪健康管理,统计页面,新增tab按钮。
This commit is contained in:
@@ -159,7 +159,11 @@
|
||||
</div>
|
||||
<div></div>
|
||||
</div>
|
||||
<u-list :spaceHeight="116" lowerThreshold="100">
|
||||
<div style="margin:8px">
|
||||
<button :type="firstType" style="margin-right:5px" size=mini @click="btFirstClick">档案明细</button>
|
||||
<button :type="secondType" type="primary" size=mini @click="btSecondClick">费用明细</button>
|
||||
</div>
|
||||
<u-list v-show="!tabShow" :spaceHeight="116" lowerThreshold="100">
|
||||
<u-list-item v-for="(item, index) in listData" :key="index">
|
||||
<view class="list-item">
|
||||
<view class="item-header">
|
||||
@@ -203,6 +207,19 @@
|
||||
<view>
|
||||
</view>
|
||||
</u-list>
|
||||
<u-list v-show="tabShow" :spaceHeight="116" lowerThreshold="100">
|
||||
<u-list-item v-for="(item, index) in listData" :key="index">
|
||||
<view class="list-item">
|
||||
<view class="item-header">
|
||||
<u--text lines="2"
|
||||
:text="item.name+' 花费 '+item.doctorCost+' 元'" size="30rpx" color="#333333" ></u--text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</u-list-item>
|
||||
<view>
|
||||
</view>
|
||||
</u-list>
|
||||
<u-picker itemHeight="88" :show="settingPickShow" :columns="settingColumns" keyName="settingName"
|
||||
@confirm="settingConfirm" @cancel="settingCancel"></u-picker>
|
||||
<u-picker itemHeight="88" :show="showPerson" :columns="personList" keyName="name" @cancel="handlePersonCancel"
|
||||
@@ -240,6 +257,12 @@ const timeShow= ref(false)
|
||||
const time =ref( Number(new Date()))
|
||||
const flag= ref(true)
|
||||
const record = ref({})
|
||||
|
||||
const tabShow = ref(false)
|
||||
const firstType = ref("primary")
|
||||
const secondType = ref("default")
|
||||
const secondListData = ref([])
|
||||
|
||||
const data = reactive({
|
||||
filterPanel: false,
|
||||
queryPersonParams: {
|
||||
@@ -276,6 +299,18 @@ onLoad(() => {
|
||||
isShow.value = false
|
||||
}
|
||||
});
|
||||
function btFirstClick() {
|
||||
tabShow.value=false
|
||||
firstType.value="primary"
|
||||
secondType.value="default"
|
||||
|
||||
}
|
||||
function btSecondClick() {
|
||||
secondType.value="primary"
|
||||
firstType.value="default"
|
||||
tabShow.value=true
|
||||
|
||||
}
|
||||
|
||||
function formatMultiLineData(data) {
|
||||
if (data != null) {
|
||||
@@ -316,7 +351,10 @@ function getList() {
|
||||
|
||||
getRecordAnalysis({...queryParams.value }).then(res => {
|
||||
record.value = { ...res.data }
|
||||
listData.value=[]
|
||||
secondListData.value=[]
|
||||
listData.value = listData.value.concat(res.data.recordList)
|
||||
secondListData.value = secondListData.value.concat(res.data.recordCostList)
|
||||
}).catch(() => {
|
||||
})
|
||||
}
|
||||
@@ -336,6 +374,7 @@ function getDict() {
|
||||
getRecordAnalysis({...queryParams.value }).then(res => {
|
||||
record.value = { ...res.data }
|
||||
listData.value = listData.value.concat(res.data.recordList)
|
||||
secondListData.value = secondListData.value.concat(res.data.recordCostList)
|
||||
}).catch(() => {
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user