更新密码找回uniapp

This commit is contained in:
hero920103 committed 2026-11-16 17:22:50 +08:00
1 parent 7f9a66da0f
commit 3fdda89833
1304 files changed
+3503 -26132

No files matched your search

-15
View File
@@ -34,7 +34,6 @@
<text class="quick" @tap="useQuick">近30天</text>
</view>
<!-- 购销汇总:方向 + 维度 -->
<view v-if="tab === 'summary'" class="chip-row">
<view
v-for="s in SIDES"
@@ -51,7 +50,6 @@
</view>
</view>
<!-- 排行:榜单方向 + 条数 -->
<view v-else-if="tab === 'rank'" class="chip-row">
<view class="chip" :class="{ active: order === 'desc' }" @tap="onOrder('desc')">
<text>热销榜</text>
@@ -65,7 +63,6 @@
</view>
</view>
<!-- 收发存:仓库 + 关键字 -->
<template v-else-if="tab === 'move'">
<view class="chip-row">
<view class="chip" :class="{ active: !!warehouseId }" @tap="openWarehouse">
@@ -89,7 +86,6 @@
<text class="state-text">统计中...</text>
</view>
<!-- 购销汇总 -->
<template v-else-if="tab === 'summary'">
<view class="kpi-row">
<view class="kpi">
@@ -113,7 +109,6 @@
</view>
</template>
<!-- 热销 / 滞销排行 -->
<template v-else-if="tab === 'rank'">
<view v-if="!rank.list.length" class="state-box">
<u-empty mode="search" text="暂无排行数据" />
@@ -128,7 +123,6 @@
</view>
</template>
<!-- 收发存汇总 -->
<template v-else-if="tab === 'move'">
<view class="kpi-row">
<view class="kpi">
@@ -181,7 +175,6 @@
</view>
</template>
<!-- 毛利分析 -->
<template v-else-if="tab === 'profit'">
<view class="hero-card">
<view class="hero-line">
@@ -218,7 +211,6 @@
</view>
</template>
<!-- 账龄分析 -->
<template v-else-if="tab === 'aging'">
<view v-for="side in AGING_SIDES" :key="side.key" class="ag-block">
<view class="ag-head">
@@ -253,7 +245,6 @@
</view>
</template>
<!-- 资金流水 -->
<template v-else>
<view class="kpi-row">
<view class="kpi">
@@ -298,10 +289,6 @@
</template>
<script setup>
/**
* 报表中心。所有口径都直接取后端结果,端上不再二次汇总:
* 购销汇总的退货冲减、毛利的实际出库成本、收发存的期初倒推,与 Web 端同一份 core。
*/
import { computed, ref } from 'vue'
import { onLoad, onReachBottom } from '@dcloudio/uni-app'
import FaIcon from '@/components/FaIcon.vue'
@@ -400,7 +387,6 @@ function onDate(key, e) {
run()
}
/** 报表默认看最近一个周转周期,空区间会把「没数据」误读成「没配好」 */
function useQuick() {
const to = new Date()
const from = new Date(to.getTime() - 29 * 86400000)
@@ -433,7 +419,6 @@ async function run() {
else if (tab.value === 'aging') await loadAging()
else await loadCash()
} catch (e) {
// 单个报表失败只清当前视图,不影响切到其他 tab 再看
} finally {
loading.value = false
}