index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968
  1. <template>
  2. <view class="detail-page">
  3. <!-- 背景层 -->
  4. <view class="header-bg"></view>
  5. <!-- 顶部内容层 -->
  6. <view class="header-section">
  7. <view class="header-content">
  8. <view class="title-group">
  9. <text class="main-title">感冒灵大批量跨区域客户</text>
  10. <text class="sub-title">订单维度:单笔订单实际盒数 {{ ">" }} 20000盒</text>
  11. <text class="sub-title">地域维度:出库企业所在省份 ≠ 入库企业所在省份</text>
  12. </view>
  13. <view class="stat-box">
  14. <text class="stat-num">{{ totalCount }}</text>
  15. <text class="stat-unit">家</text>
  16. </view>
  17. </view>
  18. <view class="header-toolbar">
  19. <view class="filter-tabs">
  20. <view class="tab-item" v-for="(tab, index) in timeFilters" :key="index"
  21. :class="{ active: currentFilter === tab.value }" @click="switchFilter(tab.value)">
  22. {{ tab.label }}
  23. </view>
  24. </view>
  25. <view class="filter-wrap">
  26. <view class="selector" @click.stop="toggleProvinceDropdown">
  27. <text class="selector-text">{{
  28. selectedProvince || "全部省份"
  29. }}</text>
  30. <text class="selector-arrow" :class="{ open: dropdownProvinceOpen }"></text>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. <!-- 列表区域 -->
  36. <scroll-view class="list-scroll" scroll-y="true" refresher-enabled :refresher-triggered="isRefreshing"
  37. @refresherrefresh="onRefresh">
  38. <view class="list-container">
  39. <view class="date-group" v-for="group in groupedRows" :key="group.date">
  40. <view class="group-header" @click="toggleGroup(group)">
  41. <view class="checkbox group-checkbox" :class="{ checked: isGroupChecked(group) }"></view>
  42. <text class="group-date">{{ group.date }}</text>
  43. </view>
  44. <view class="card-item" v-for="(item, index) in group.list" :key="index" @click="toDetail(item)">
  45. <view class="checkbox item-checkbox" :class="{ checked: item.checked }" @click.stop="toggleItem(item)">
  46. </view>
  47. <view class="card-content">
  48. <view class="card-header">
  49. <view class="header-left">
  50. <text class="index-num">{{ index + 1 }}</text>
  51. <text class="company-name">{{ item.customerName }}</text>
  52. <text class="level-tag" :class="getLevelClass(item.customerLevel)">
  53. {{ item.customerLevel }}
  54. </text>
  55. </view>
  56. <view class="header-right">
  57. <text class="alert-count">{{ item.totalWarningAmount }}次预警</text>
  58. </view>
  59. </view>
  60. <view class="card-body">
  61. <view class="info-grid">
  62. <view class="info-item">
  63. <text class="label">省份</text>
  64. <text class="value">{{ item.customerProvinceName ?? '--' }}</text>
  65. </view>
  66. <view class="info-item">
  67. <text class="label">责任人</text>
  68. <text class="value">{{ item.responsibleManager }}</text>
  69. </view>
  70. <view class="info-item">
  71. <text class="label">性质</text>
  72. <text class="value">{{ item.customerCategory }}</text>
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. <view v-if="!loading && rows.length === 0" class="empty-data">
  80. <EmptyView text="无相关数据" />
  81. </view>
  82. </view>
  83. </scroll-view>
  84. <!-- 底部按钮区 -->
  85. <view class="footer-btn-area">
  86. <!-- <button class="action-btn history-btn" @click="handleHistory">
  87. 历史记录
  88. </button> -->
  89. <button class="action-btn export-btn" @click="handleExport">
  90. 导出至邮箱
  91. </button>
  92. </view>
  93. <!-- 蒙层 -->
  94. <view class="report-export-create-modal-mask" v-if="emailModalOpen" @click="closeEmailModal"
  95. @touchmove.stop.prevent></view>
  96. <!-- 邮箱导出弹窗 -->
  97. <view class="report-export-create-modal report-export-create-email-modal"
  98. :class="{ 'report-export-create-modal--open': emailModalOpen }" v-if="emailModalOpen">
  99. <view class="report-export-create-modal-title">
  100. <text>发送至邮箱</text>
  101. <view class="report-export-create-modal-close" @click.stop="closeEmailModal">×</view>
  102. </view>
  103. <view class="report-export-create-modal-body">
  104. <up-input v-model="emailForm.email" border="none" :customStyle="{
  105. backgroundColor: '#ebf3fb',
  106. height: '80rpx',
  107. paddingLeft: '20rpx',
  108. }" placeholder="请填写邮箱" @input="emailError = false" disabled>
  109. <template #suffix>
  110. <view style="margin-right: 20rpx; color: #666">@999.com.cn</view>
  111. </template>
  112. </up-input>
  113. <text v-if="emailError" class="report-export-error-text">请输入邮箱</text>
  114. </view>
  115. <view class="report-export-create-modal-footer">
  116. <view class="report-export-create-modal-btn cancel-btn" @click.stop="closeEmailModal">取消</view>
  117. <view class="report-export-create-modal-btn confirm-btn" @click.stop="handleSendEmail">发送</view>
  118. </view>
  119. </view>
  120. <!-- 独立的下拉菜单层 -->
  121. <view class="dropdown-layer" v-if="dropdownProvinceOpen" @click.stop>
  122. <view class="dropdown">
  123. <view class="dropdown-search-bar">
  124. <input class="dropdown-search-input" v-model="provinceSearchText" placeholder="搜索省份..."
  125. placeholder-style="color: #999" />
  126. </view>
  127. <scroll-view scroll-y="true" class="dropdown-scroll-view">
  128. <view class="dropdown-item" v-for="(p, i) in filteredProvinceList" :key="p || i" :class="{
  129. active: p === selectedProvince || (!selectedProvince && i === 0),
  130. }" @click.stop="selectProvince(p)">
  131. {{ p || "全部省份" }}
  132. <text v-if="p === selectedProvince || (!selectedProvince && i === 0)" class="check-mark">✓</text>
  133. </view>
  134. <view v-if="filteredProvinceList.length === 0" class="dropdown-empty">暂无数据</view>
  135. </scroll-view>
  136. </view>
  137. </view>
  138. </view>
  139. </template>
  140. <script>
  141. import EmptyView from "../../../wigets/empty.vue";
  142. import request from "../../../request/index.js";
  143. import { formatDate } from "../../../utils/utils.js";
  144. export default {
  145. components: {
  146. EmptyView,
  147. },
  148. data() {
  149. return {
  150. isRefreshing: false,
  151. loading: false,
  152. rows: [],
  153. allRows: [],
  154. dropdownProvinceOpen: false,
  155. provinceSearchText: "",
  156. provinceList: [""],
  157. selectedProvince: "",
  158. totalCount: 0,
  159. emailModalOpen: false,
  160. emailForm: {
  161. email: "",
  162. },
  163. emailError: false,
  164. currentFilter: "1",
  165. timeFilters: [
  166. { label: "昨日", value: "1" },
  167. { label: "近7天", value: "7" },
  168. { label: "近15天", value: "15" },
  169. { label: "近30天", value: "30" },
  170. ],
  171. };
  172. },
  173. created() {
  174. this.resetFetch();
  175. this.getProviceList();
  176. const userEmail = uni.getStorageSync('traceCode_useremail')
  177. this.emailForm.email = userEmail
  178. },
  179. methods: {
  180. formatDate,
  181. getProviceList() {
  182. request("/common/getProviceList", {
  183. path: "traceabilityReport/pages/ganmaoling/index.vue",
  184. }).then((res) => {
  185. if (res.code == 200) {
  186. const _data = res.data || [];
  187. this.provinceList = ["", ..._data.map((item) => item.regionName)];
  188. }
  189. });
  190. },
  191. getLevelClass(level) {
  192. if (level === "VIP") return "tag-vip";
  193. if (level === "二级") return "tag-l2";
  194. if (level === "三级") return "tag-l3";
  195. return "tag-default";
  196. },
  197. switchFilter(value) {
  198. if (this.currentFilter === value) return;
  199. this.currentFilter = value;
  200. this.resetFetch();
  201. },
  202. fetchList() {
  203. if (this.loading) return;
  204. this.loading = true;
  205. request(
  206. `/report/ganmaoling/list?days=${this.currentFilter}`,
  207. {
  208. path: "traceabilityReport/pages/ganmaoling/index.vue",
  209. },
  210. "get",
  211. ).then((res) => {
  212. if (res.code == 200) {
  213. this.allRows = (res.data || []).map(item => ({ ...item, checked: false }));
  214. this.applyFilter();
  215. }
  216. this.loading = false;
  217. this.isRefreshing = false;
  218. });
  219. },
  220. async onRefresh() {
  221. this.isRefreshing = true;
  222. this.fetchList();
  223. },
  224. resetFetch() {
  225. this.rows = [];
  226. this.fetchList();
  227. },
  228. applyFilter() {
  229. if (!this.selectedProvince) {
  230. this.rows = [...this.allRows];
  231. } else {
  232. this.rows = this.allRows.filter(item => item.customerProvinceName === this.selectedProvince);
  233. }
  234. this.totalCount = this.rows.length;
  235. },
  236. toggleProvinceDropdown() {
  237. this.dropdownProvinceOpen = !this.dropdownProvinceOpen;
  238. },
  239. closeProvinceDropdown() {
  240. this.dropdownProvinceOpen = false;
  241. },
  242. selectProvince(province) {
  243. this.selectedProvince = province || "";
  244. this.dropdownProvinceOpen = false;
  245. this.applyFilter();
  246. },
  247. toDetail(item) {
  248. uni.navigateTo({
  249. url: `/traceCodePackages/traceabilityReport/pages/ganmaoling/detail/index?name=${encodeURIComponent(item.customerName)}&updatedTime=${item.updatedTime || ""}`,
  250. });
  251. },
  252. handleExport() {
  253. if (this.rows.length == 0) {
  254. uni.showToast({
  255. title: '暂无数据...',
  256. icon: 'none'
  257. })
  258. return
  259. }
  260. this.emailModalOpen = true;
  261. this.emailError = false;
  262. },
  263. closeEmailModal() {
  264. this.emailModalOpen = false;
  265. },
  266. handleSendEmail() {
  267. if (!this.emailForm.email) {
  268. this.emailError = true;
  269. return;
  270. }
  271. uni.showLoading({ title: "发送中..." });
  272. const yesterday = new Date();
  273. yesterday.setDate(yesterday.getDate() - 1);
  274. const dateStr = this.formatDate(yesterday, "YYYY-MM-DD");
  275. request(
  276. `/report/ganmaoling/sendemail`,
  277. {
  278. updatedTime: dateStr,
  279. emailAddress: this.emailForm.email + "@999.com.cn",
  280. path: "traceabilityReport/pages/ganmaoling/index.vue",
  281. },
  282. "post",
  283. ).then((res) => {
  284. uni.hideLoading();
  285. if (res.code == 200) {
  286. uni.showToast({
  287. title: "发送成功",
  288. icon: "success",
  289. });
  290. this.closeEmailModal();
  291. } else {
  292. uni.showToast({
  293. title: res.msg || "发送失败",
  294. icon: "none",
  295. });
  296. }
  297. });
  298. },
  299. handleHistory() {
  300. // uni.navigateTo({
  301. // url: "/traceCodePackages/traceabilityReport/pages/ganmaoling/history/index",
  302. // });
  303. },
  304. toggleItem(item) {
  305. item.checked = !item.checked;
  306. },
  307. toggleGroup(group) {
  308. const allChecked = this.isGroupChecked(group);
  309. group.list.forEach(item => {
  310. item.checked = !allChecked;
  311. });
  312. },
  313. isGroupChecked(group) {
  314. if (!group || !group.list || group.list.length === 0) return false;
  315. return group.list.every(item => item.checked);
  316. },
  317. },
  318. computed: {
  319. groupedRows() {
  320. const groups = {};
  321. this.rows.forEach((item) => {
  322. const fullTime = item.updatedTime || "";
  323. const date = fullTime.split(" ")[0] || fullTime.split("T")[0] || "未知日期";
  324. if (!groups[date]) {
  325. groups[date] = [];
  326. }
  327. groups[date].push(item);
  328. });
  329. // Sort by date descending
  330. return Object.keys(groups)
  331. .sort((a, b) => new Date(b.replace(/-/g, "/")) - new Date(a.replace(/-/g, "/")))
  332. .map((date) => ({
  333. date,
  334. list: groups[date],
  335. }));
  336. },
  337. filteredProvinceList() {
  338. if (!this.provinceSearchText) {
  339. return this.provinceList;
  340. }
  341. return this.provinceList.filter((p) =>
  342. p?.toLowerCase()?.includes(this.provinceSearchText.toLowerCase()),
  343. );
  344. },
  345. },
  346. };
  347. </script>
  348. <style scoped>
  349. .detail-page {
  350. display: flex;
  351. flex-direction: column;
  352. height: calc(100vh - 116rpx - env(safe-area-inset-bottom));
  353. box-sizing: border-box;
  354. background: #f5f7fa;
  355. position: relative;
  356. }
  357. /* Header Background Layer */
  358. .header-bg {
  359. position: absolute;
  360. top: 0;
  361. left: 0;
  362. width: 100%;
  363. height: 320rpx;
  364. /* Fixed height for background */
  365. background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  366. border-bottom-left-radius: 40rpx;
  367. border-bottom-right-radius: 40rpx;
  368. z-index: 1;
  369. box-shadow: 0 10rpx 30rpx rgba(24, 144, 255, 0.2);
  370. }
  371. /* Header Content Layer */
  372. .header-section {
  373. padding: 40rpx 40rpx 80rpx;
  374. position: relative;
  375. z-index: 3;
  376. /* Above List */
  377. color: #fff;
  378. /* Transparent background to allow overlap effect */
  379. }
  380. .header-content {
  381. display: flex;
  382. justify-content: space-between;
  383. align-items: flex-start;
  384. position: relative;
  385. z-index: 2;
  386. margin-bottom: 30rpx;
  387. }
  388. .title-group {
  389. display: flex;
  390. flex-direction: column;
  391. flex: 1;
  392. margin-right: 20rpx;
  393. }
  394. .main-title {
  395. font-size: 44rpx;
  396. font-weight: bold;
  397. margin-bottom: 16rpx;
  398. letter-spacing: 2rpx;
  399. line-height: 1.2;
  400. }
  401. .sub-title {
  402. font-size: 24rpx;
  403. opacity: 0.9;
  404. margin-bottom: 8rpx;
  405. line-height: 1.4;
  406. }
  407. .stat-box {
  408. display: flex;
  409. align-items: baseline;
  410. }
  411. .stat-num {
  412. font-size: 56rpx;
  413. font-weight: bold;
  414. margin-right: 8rpx;
  415. font-family: "DINAlternate-Bold", sans-serif;
  416. }
  417. .stat-unit {
  418. font-size: 24rpx;
  419. opacity: 0.8;
  420. }
  421. /* Header Toolbar */
  422. .header-toolbar {
  423. display: flex;
  424. justify-content: space-between;
  425. align-items: center;
  426. position: relative;
  427. z-index: 3;
  428. }
  429. .update-tip {
  430. display: inline-flex;
  431. align-items: center;
  432. background: rgba(255, 255, 255, 0.15);
  433. padding: 8rpx 20rpx;
  434. border-radius: 30rpx;
  435. font-size: 22rpx;
  436. backdrop-filter: blur(10px);
  437. }
  438. .tip-icon {
  439. margin-right: 8rpx;
  440. font-size: 20rpx;
  441. }
  442. /* Filter Tabs */
  443. .filter-tabs {
  444. display: flex;
  445. background: rgba(255, 255, 255, 0.2);
  446. border-radius: 30rpx;
  447. padding: 4rpx;
  448. margin-right: 20rpx;
  449. }
  450. .tab-item {
  451. padding: 8rpx 24rpx;
  452. font-size: 24rpx;
  453. color: rgba(255, 255, 255, 0.8);
  454. border-radius: 26rpx;
  455. transition: all 0.3s;
  456. }
  457. .tab-item.active {
  458. background: #fff;
  459. color: #1890ff;
  460. font-weight: 600;
  461. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  462. }
  463. /* Filter Styles */
  464. .filter-wrap {
  465. position: relative;
  466. }
  467. .selector {
  468. display: flex;
  469. align-items: center;
  470. color: #fff;
  471. font-size: 26rpx;
  472. font-weight: 500;
  473. padding: 8rpx 20rpx;
  474. background: rgba(255, 255, 255, 0.2);
  475. border-radius: 30rpx;
  476. border: 1rpx solid rgba(255, 255, 255, 0.3);
  477. }
  478. .selector-text {
  479. max-width: 200rpx;
  480. overflow: hidden;
  481. white-space: nowrap;
  482. text-overflow: ellipsis;
  483. }
  484. .selector-arrow {
  485. margin-left: 10rpx;
  486. width: 0;
  487. height: 0;
  488. border-left: 8rpx solid transparent;
  489. border-right: 8rpx solid transparent;
  490. border-top: 10rpx solid #fff;
  491. transition: transform 0.3s;
  492. }
  493. .selector-arrow.open {
  494. transform: rotate(180deg);
  495. }
  496. /* Dropdown Layer (Absolute on top of everything) */
  497. .dropdown-layer {
  498. position: absolute;
  499. top: 300rpx;
  500. /* Adjust based on header layout */
  501. right: 40rpx;
  502. z-index: 999;
  503. }
  504. .dropdown {
  505. width: 360rpx;
  506. background: #fff;
  507. border-radius: 12rpx;
  508. box-shadow: 0 8rpx 30rpx rgba(0, 0, 0, 0.15);
  509. overflow: hidden;
  510. }
  511. .dropdown-search-bar {
  512. padding: 16rpx;
  513. border-bottom: 1rpx solid #f0f0f0;
  514. }
  515. .dropdown-search-input {
  516. background: #f5f7fa;
  517. height: 64rpx;
  518. border-radius: 32rpx;
  519. padding: 0 24rpx;
  520. font-size: 26rpx;
  521. }
  522. .dropdown-scroll-view {
  523. max-height: 400rpx;
  524. }
  525. .dropdown-item {
  526. padding: 20rpx 30rpx;
  527. font-size: 28rpx;
  528. color: #333;
  529. display: flex;
  530. justify-content: space-between;
  531. align-items: center;
  532. transition: background 0.2s;
  533. }
  534. .dropdown-item:active {
  535. background: #f5f7fa;
  536. }
  537. .dropdown-item.active {
  538. color: #1890ff;
  539. font-weight: 500;
  540. background: #e6f7ff;
  541. }
  542. .check-mark {
  543. font-size: 24rpx;
  544. }
  545. .dropdown-empty {
  546. padding: 40rpx;
  547. text-align: center;
  548. color: #999;
  549. font-size: 26rpx;
  550. }
  551. /* List Section */
  552. .list-scroll {
  553. flex: 1;
  554. height: 0;
  555. padding: 0 24rpx;
  556. box-sizing: border-box;
  557. margin-top: -20rpx;
  558. /* Overlap effect */
  559. position: relative;
  560. z-index: 2;
  561. /* Between bg and header content */
  562. }
  563. .list-container {
  564. padding-top: 10rpx;
  565. padding-bottom: calc(200rpx + env(safe-area-inset-bottom));
  566. }
  567. .date-group {
  568. margin-bottom: 24rpx;
  569. }
  570. .group-header {
  571. display: flex;
  572. align-items: flex-start;
  573. padding: 24rpx 30rpx;
  574. background: #e6f7ff;
  575. border-radius: 20rpx;
  576. margin-bottom: 20rpx;
  577. box-shadow: 0 4rpx 12rpx rgba(24, 144, 255, 0.1);
  578. }
  579. .group-date {
  580. font-size: 32rpx;
  581. font-weight: bold;
  582. color: #1890ff;
  583. margin-left: 20rpx;
  584. line-height: 44rpx;
  585. /* Match checkbox height for alignment */
  586. }
  587. .checkbox {
  588. width: 44rpx;
  589. height: 44rpx;
  590. border: 3rpx solid #d9d9d9;
  591. border-radius: 8rpx;
  592. flex-shrink: 0;
  593. position: relative;
  594. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  595. box-sizing: border-box;
  596. margin-top: 0;
  597. /* Reset margin */
  598. background: #fff;
  599. }
  600. .checkbox.checked {
  601. background: #1890ff;
  602. border-color: #1890ff;
  603. box-shadow: 0 4rpx 10rpx rgba(24, 144, 255, 0.3);
  604. }
  605. .checkbox.checked::after {
  606. content: '';
  607. position: absolute;
  608. left: 14rpx;
  609. top: 8rpx;
  610. width: 10rpx;
  611. height: 20rpx;
  612. border: 4rpx solid #fff;
  613. border-top: 0;
  614. border-left: 0;
  615. transform: rotate(45deg);
  616. }
  617. .card-item {
  618. background: #fff;
  619. border-radius: 20rpx;
  620. padding: 30rpx;
  621. margin-bottom: 24rpx;
  622. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.04);
  623. transition: all 0.2s;
  624. display: flex;
  625. align-items: flex-start;
  626. /* Align to top */
  627. }
  628. .item-checkbox {
  629. margin-right: 24rpx;
  630. margin-top: 6rpx;
  631. /* Align with first line of text */
  632. }
  633. .card-content {
  634. flex: 1;
  635. overflow: hidden;
  636. display: flex;
  637. flex-direction: column;
  638. }
  639. .card-item:active {
  640. transform: scale(0.99);
  641. }
  642. .card-header {
  643. display: flex;
  644. justify-content: space-between;
  645. align-items: flex-start;
  646. margin-bottom: 24rpx;
  647. }
  648. .header-left {
  649. flex: 1;
  650. display: flex;
  651. align-items: center;
  652. flex-wrap: wrap;
  653. margin-right: 20rpx;
  654. gap: 12rpx;
  655. }
  656. .index-num {
  657. font-size: 24rpx;
  658. color: #999;
  659. font-family: monospace;
  660. }
  661. .company-name {
  662. font-size: 32rpx;
  663. font-weight: 600;
  664. color: #096dd9;
  665. line-height: 1.4;
  666. text-decoration: underline;
  667. }
  668. .level-tag {
  669. font-size: 20rpx;
  670. padding: 4rpx 12rpx;
  671. border-radius: 8rpx;
  672. white-space: nowrap;
  673. line-height: 1.2;
  674. }
  675. .header-right {
  676. flex-shrink: 0;
  677. }
  678. .tag-vip {
  679. background: linear-gradient(135deg, #e6f7ff, #bae7ff);
  680. color: #096dd9;
  681. }
  682. .tag-l2 {
  683. background: linear-gradient(135deg, #f6ffed, #d9f7be);
  684. color: #389e0d;
  685. }
  686. .tag-l3 {
  687. background: linear-gradient(135deg, #fff7e6, #ffe7ba);
  688. color: #d46b08;
  689. }
  690. .tag-default {
  691. background: #f5f5f5;
  692. color: #999;
  693. }
  694. .card-body {
  695. background: #f9fbfd;
  696. border-radius: 12rpx;
  697. padding: 24rpx;
  698. }
  699. .info-grid {
  700. display: flex;
  701. flex-wrap: wrap;
  702. gap: 24rpx;
  703. }
  704. .info-item {
  705. display: flex;
  706. align-items: center;
  707. min-width: 45%;
  708. }
  709. .info-item .label {
  710. font-size: 24rpx;
  711. color: #999;
  712. margin-right: 12rpx;
  713. }
  714. .info-item .value {
  715. font-size: 26rpx;
  716. color: #666;
  717. font-weight: 500;
  718. }
  719. .alert-count {
  720. font-size: 22rpx;
  721. color: #ff4d4f;
  722. background: rgba(255, 77, 79, 0.1);
  723. padding: 6rpx 16rpx;
  724. border-radius: 20rpx;
  725. font-weight: 600;
  726. }
  727. .empty-data {
  728. padding-top: 120rpx;
  729. }
  730. .footer-btn-area {
  731. padding: 24rpx 32rpx calc(24rpx + env(safe-area-inset-bottom));
  732. background: #fff;
  733. box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.08);
  734. position: fixed;
  735. z-index: 100;
  736. bottom: 0;
  737. width: 100%;
  738. box-sizing: border-box;
  739. display: flex;
  740. gap: 24rpx;
  741. }
  742. .action-btn {
  743. flex: 1;
  744. height: 88rpx;
  745. line-height: 88rpx;
  746. border-radius: 44rpx;
  747. font-size: 30rpx;
  748. font-weight: 600;
  749. text-align: center;
  750. border: none;
  751. transition: all 0.3s;
  752. }
  753. .action-btn::after {
  754. border: none;
  755. }
  756. .action-btn:active {
  757. transform: scale(0.96);
  758. }
  759. .history-btn {
  760. background: #fff;
  761. color: #1890ff;
  762. border: 2rpx solid #1890ff;
  763. box-shadow: 0 4rpx 12rpx rgba(24, 144, 255, 0.1);
  764. }
  765. .export-btn {
  766. background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  767. color: #fff;
  768. box-shadow: 0 6rpx 16rpx rgba(24, 144, 255, 0.35);
  769. }
  770. /* 弹窗样式 */
  771. .report-export-create-modal-mask {
  772. position: fixed;
  773. top: 0;
  774. left: 0;
  775. right: 0;
  776. bottom: 0;
  777. background: rgba(0, 0, 0, 0.6);
  778. z-index: 999;
  779. backdrop-filter: blur(2px);
  780. }
  781. .report-export-create-modal {
  782. position: fixed;
  783. z-index: 1000;
  784. background: #fff;
  785. transition: all 0.3s ease;
  786. }
  787. .report-export-create-email-modal {
  788. top: 50%;
  789. left: 50%;
  790. transform: translate(-50%, -50%);
  791. width: 620rpx;
  792. border-radius: 24rpx;
  793. opacity: 0;
  794. visibility: hidden;
  795. overflow: hidden;
  796. }
  797. .report-export-create-email-modal.report-export-create-modal--open {
  798. opacity: 1;
  799. visibility: visible;
  800. }
  801. .report-export-create-modal-title {
  802. padding: 36rpx 32rpx;
  803. font-size: 36rpx;
  804. color: #333;
  805. text-align: center;
  806. font-weight: 600;
  807. border-bottom: 1rpx solid #f0f0f0;
  808. position: relative;
  809. }
  810. .report-export-create-modal-close {
  811. position: absolute;
  812. right: 32rpx;
  813. top: 50%;
  814. transform: translateY(-50%);
  815. font-size: 44rpx;
  816. color: #999;
  817. line-height: 1;
  818. padding: 10rpx;
  819. }
  820. .report-export-create-modal-body {
  821. padding: 48rpx 40rpx 32rpx;
  822. }
  823. .report-export-error-text {
  824. font-size: 24rpx;
  825. color: #ff4d4f;
  826. margin-top: 12rpx;
  827. display: block;
  828. }
  829. .report-export-create-modal-footer {
  830. padding: 0 40rpx 48rpx;
  831. display: flex;
  832. justify-content: space-between;
  833. gap: 24rpx;
  834. }
  835. .report-export-create-modal-btn {
  836. height: 88rpx;
  837. line-height: 88rpx;
  838. border-radius: 44rpx;
  839. text-align: center;
  840. font-size: 30rpx;
  841. font-weight: 600;
  842. flex: 1;
  843. margin: 0;
  844. }
  845. .cancel-btn {
  846. background: #f5f7fa;
  847. color: #666;
  848. border: 1rpx solid #e4e7ed;
  849. }
  850. .confirm-btn {
  851. background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  852. color: #fff;
  853. box-shadow: 0 6rpx 16rpx rgba(24, 144, 255, 0.3);
  854. }
  855. </style>