From 29caa2a03f55407662b75e28aeade5dd3559f329 Mon Sep 17 00:00:00 2001 From: "liu.xiaofeng@ebiz-digits.com" Date: Tue, 12 Dec 2023 15:23:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=8D=95=E4=BF=A1=E6=81=AF=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ebiz/billingDetail/billingDetail.vue | 37 ++++++++++++++----- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/src/views/ebiz/billingDetail/billingDetail.vue b/src/views/ebiz/billingDetail/billingDetail.vue index 776a4198c..18443ea0e 100644 --- a/src/views/ebiz/billingDetail/billingDetail.vue +++ b/src/views/ebiz/billingDetail/billingDetail.vue @@ -173,6 +173,19 @@ export default { } } }, + created() { + + }, + mounted() { + let date = new Date() + let month = date.getMonth() + 1 + if (month <= 9) { + month = '0' + month + } + //默认展示当天数据 + this.postDate = date.getFullYear() + '-' + month + '-' + date.getDate() + this.initData() + }, methods: { //切换当月、当天 switchDayOrMonth(index) { @@ -218,7 +231,14 @@ export default { * 查询机构下拉列表 * manageCode, manageLv传空查全国所有二级机构 **/ + this.$toast.loading({ + duration: 0, // 持续展示 toast + forbidClick: true, // 禁用背景点击 + loadingType: 'spinner', + message: '加载中……' + }) let resData = await getBranchByUser({}) + this.$toast.clear() if (resData.result != '0') return this.$toast(resData.resultMessage) this.manageLv = resData.content.level //当前token查不出机构时,展示敬请期待 @@ -275,6 +295,12 @@ export default { }, // 查询列表数据 queryOutOrderListFunc() { + this.$toast.loading({ + duration: 0, // 持续展示 toast + forbidClick: true, // 禁用背景点击 + loadingType: 'spinner', + message: '加载中……' + }) queryOutOrderList({ dateFlag: this.dateFlag, appntDate: this.postDate, @@ -284,6 +310,7 @@ export default { pageNum: this.pageNum, pageSize: this.pageSize }).then(res => { + this.$toast.clear() if (res.result == 0) { if (res.content) { this.pageNum++ @@ -388,16 +415,6 @@ export default { this.queryOutOrderListFunc() } }, - created() { - let date = new Date() - let month = date.getMonth() + 1 - if (month <= 9) { - month = '0' + month - } - //默认展示当天数据 - this.postDate = date.getFullYear() + '-' + month + '-' + date.getDate() - this.initData() - } }