index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784
  1. <template>
  2. <Water></Water>
  3. <view class="detail-page">
  4. <view class="tabs">
  5. <view
  6. class="tab"
  7. v-for="(t, i) in tabs"
  8. :key="t.label"
  9. :class="{ active: category == t.value }"
  10. :style="{ opacity: isLoading ? 0.5 : 1 }"
  11. @click="selectTab(t)">
  12. {{ t.label }}
  13. </view>
  14. </view>
  15. <view class="grid-scroll">
  16. <scroll-view v-show="category == 1" scroll-y class="grid-scroll-view" @scrolltolower="onTableScrollToLower">
  17. <view>
  18. <view v-if="!loading && rows.length > 0" class="card-list">
  19. <view class="company-card" v-for="(company, cIdx) in rows" :key="cIdx">
  20. <view class="company-header" @click="toggleExpand(company)">
  21. <view class="company-title">
  22. <text class="company-name">入库方:{{ company.name }}</text>
  23. <view class="company-products" v-if="company.products && company.products.length">
  24. <text class="company-product-item" v-for="(prod, pIdx) in company.products" :key="pIdx">
  25. {{ getProductText(prod) }}
  26. </text>
  27. </view>
  28. <view class="company-meta" v-if="company.medicalFlag !== '是'">
  29. <view class="company-meta-row">
  30. <text class="company-meta-item">客户性质:{{ company.customerNature || "--" }}</text>
  31. <text class="company-meta-item">客户等级:{{ company.customerLevel || "--" }}</text>
  32. </view>
  33. <view class="company-meta-row">
  34. <text class="company-meta-item">责任经理:{{ company.responsibleManager || "--" }}</text>
  35. </view>
  36. </view>
  37. <!-- <text class="company-total">总数量:{{ company.totalQty }}</text> -->
  38. </view>
  39. <uni-icons :type="company.expanded ? 'up' : 'down'" size="20" color="#999"></uni-icons>
  40. </view>
  41. <view v-if="company.expanded" class="company-body">
  42. <view class="exporter-section" v-for="(exp, eIdx) in company.exporters" :key="eIdx">
  43. <view class="exporter-title" @click="toggleSubExpand(exp)">
  44. <text>{{ category == 1 ? "出库方" : "入库方" }}:{{ exp.name }}</text>
  45. <uni-icons :type="exp.expanded ? 'up' : 'down'" size="16" color="#666"></uni-icons>
  46. </view>
  47. <view class="exporter-meta" v-if="company.medicalFlag !== '是' && !exp.name.includes('华润三九')">
  48. <view class="exporter-meta-row">
  49. <text class="exporter-meta-item">客户性质:{{ exp.fromCustomerNature || "--" }}</text>
  50. <text class="exporter-meta-item">客户等级:{{ exp.fromCustomerLevel || "--" }}</text>
  51. </view>
  52. <view class="exporter-meta-row">
  53. <text class="exporter-meta-item">责任经理:{{ exp.fromResponsibleManager || "--" }}</text>
  54. </view>
  55. </view>
  56. <view v-if="exp.expanded" class="product-group" v-for="(pg, pIdx) in exp.products" :key="pIdx">
  57. <!-- Product Header Removed as requested, info is now in company header -->
  58. <!-- <view class="product-header">
  59. <text class="product-name">{{ pg.name }}</text>
  60. <text class="product-spec">{{ pg.spec }}</text>
  61. </view> -->
  62. <scroll-view scroll-x class="batch-scroll">
  63. <view class="batch-table">
  64. <view class="batch-header-row">
  65. <text class="th-cell col-batch">批号</text>
  66. <text class="th-cell col-region">货源地区</text>
  67. <text class="th-cell col-qty">货源数量(盒)</text>
  68. <text class="th-cell col-qty">终端到达数量(盒)</text>
  69. <text class="th-cell col-time">出库时间</text>
  70. <text class="th-cell col-code">追溯码抽样</text>
  71. </view>
  72. <view class="batch-row" v-for="(batch, bIdx) in pg.batches" :key="bIdx">
  73. <text class="td-cell col-batch">{{ batch.produceBatchNo }}</text>
  74. <text class="td-cell col-region">{{ batch.regionName }}</text>
  75. <text class="td-cell col-qty">{{ batch.fromQty }}</text>
  76. <text class="td-cell col-qty">{{ batch.toQty }}</text>
  77. <text class="td-cell col-time">{{ batch.billTime }}</text>
  78. <text class="td-cell col-code copyable-code" @click="copyTraceCode(batch.tracCode)">
  79. {{ batch.tracCode }}
  80. </text>
  81. </view>
  82. </view>
  83. </scroll-view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <view class="loading-row" v-if="hasMore">
  89. <view class="loading-wrapper">
  90. <image class="loading-icon" src="../../../../static/images/loading.png" />
  91. </view>
  92. </view>
  93. </view>
  94. </view>
  95. </scroll-view>
  96. <scroll-view
  97. v-show="category == 2"
  98. class="grid-scroll"
  99. scroll-y="true"
  100. scroll-x="true"
  101. :show-scrollbar="false"
  102. enhanced
  103. @scrolltolower="onTableScrollToLower">
  104. <view>
  105. <view v-if="!_loading && _rows.length > 0" class="card-list">
  106. <view class="company-card" v-for="(company, cIdx) in _rows" :key="cIdx">
  107. <view class="company-header" @click="toggleExpand(company)">
  108. <view class="company-title">
  109. <text class="company-name">出库方:{{ company.name }}</text>
  110. <view class="company-products" v-if="company.products && company.products.length">
  111. <text class="company-product-item" v-for="(prod, pIdx) in company.products" :key="pIdx">
  112. {{ getProductText(prod) }}
  113. </text>
  114. </view>
  115. <view class="company-meta" v-if="company.medicalFlag !== '是'">
  116. <view class="company-meta-row">
  117. <text class="company-meta-item">客户性质:{{ company.customerNature || "--" }}</text>
  118. <text class="company-meta-item">客户等级:{{ company.customerLevel || "--" }}</text>
  119. </view>
  120. <view class="company-meta-row">
  121. <text class="company-meta-item">责任经理:{{ company.responsibleManager || "--" }}</text>
  122. </view>
  123. </view>
  124. <!-- <text class="company-total">总数量:{{ company.totalQty }}</text> -->
  125. </view>
  126. <uni-icons :type="company.expanded ? 'up' : 'down'" size="20" color="#999"></uni-icons>
  127. </view>
  128. <view v-if="company.expanded" class="company-body">
  129. <view class="exporter-section" v-for="(exp, eIdx) in company.exporters" :key="eIdx">
  130. <view class="exporter-title" @click="toggleSubExpand(exp)">
  131. <text>{{ category == 1 ? "出库方" : "入库方" }}:{{ exp.name }}</text>
  132. <uni-icons :type="exp.expanded ? 'up' : 'down'" size="16" color="#666"></uni-icons>
  133. </view>
  134. <view class="exporter-meta" v-if="company.medicalFlag !== '是'">
  135. <view class="exporter-meta-row">
  136. <text class="exporter-meta-item">客户性质:{{ exp.fromCustomerNature || "--" }}</text>
  137. <text class="exporter-meta-item">客户等级:{{ exp.fromCustomerLevel || "--" }}</text>
  138. </view>
  139. <view class="exporter-meta-row">
  140. <text class="exporter-meta-item">责任经理:{{ exp.fromResponsibleManager || "--" }}</text>
  141. </view>
  142. </view>
  143. <view v-if="exp.expanded" class="product-group" v-for="(pg, pIdx) in exp.products" :key="pIdx">
  144. <scroll-view scroll-x class="batch-scroll">
  145. <view class="batch-table">
  146. <view class="batch-header-row">
  147. <text class="th-cell col-batch">批号</text>
  148. <text class="th-cell col-region">货源地区</text>
  149. <text class="th-cell col-qty">货源数量</text>
  150. <text class="th-cell col-qty">终端到达数量</text>
  151. <text class="th-cell col-time">入库时间</text>
  152. <text class="th-cell col-code">追溯码抽样</text>
  153. </view>
  154. <view class="batch-row" v-for="(batch, bIdx) in pg.batches" :key="bIdx">
  155. <text class="td-cell col-batch">{{ batch.produceBatchNo }}</text>
  156. <text class="td-cell col-region">{{ batch.regionName }}</text>
  157. <text class="td-cell col-qty">{{ batch.fromQty }}</text>
  158. <text class="td-cell col-qty">{{ batch.toQty }}</text>
  159. <text class="td-cell col-time">{{ batch.billTime }}</text>
  160. <text class="td-cell col-code copyable-code" @click="copyTraceCode(batch.tracCode)">
  161. {{ batch.tracCode }}
  162. </text>
  163. </view>
  164. </view>
  165. </scroll-view>
  166. </view>
  167. </view>
  168. </view>
  169. </view>
  170. <view class="loading-row" v-if="_hasMore">
  171. <view class="loading-wrapper">
  172. <image class="loading-icon" src="../../../../static/images/loading.png" />
  173. </view>
  174. </view>
  175. </view>
  176. </view>
  177. </scroll-view>
  178. <view v-if="isLoading" class="loading-wrap">
  179. <view class="loading-row">
  180. <view class="loading-wrapper">
  181. <image class="loading-icon" src="../../../../static/images/loading.png" />
  182. </view>
  183. </view>
  184. </view>
  185. <view v-if="showEmptyData" class="empty-data">
  186. <EmptyView text="该时间段没有数据,请重新选择时间段" />
  187. </view>
  188. </view>
  189. </view>
  190. <BottomScrollTip :text="'左右滑动表格查看更多内容'" />
  191. </template>
  192. <script>
  193. import EmptyView from "../../../../wigets/empty.vue";
  194. import BottomScrollTip from "../../../../wigets/BottomScrollTip.vue";
  195. import Water from "@/components/water/water.vue";
  196. import request from "../../../../request/index.js";
  197. import { formatDate } from "../../../../utils/utils.js";
  198. export default {
  199. components: {
  200. EmptyView,
  201. BottomScrollTip,
  202. Water,
  203. },
  204. data() {
  205. return {
  206. shareTitle: "报表详情",
  207. taskId: "",
  208. tableBodyHeight: 0,
  209. baseRowHeight: 76,
  210. tabs: [
  211. {
  212. label: "药品购进",
  213. value: "1",
  214. },
  215. {
  216. label: "药品销售",
  217. value: "2",
  218. },
  219. ],
  220. category: "1",
  221. loading: true,
  222. rows: [],
  223. totalCount: 0,
  224. fetchLoading: false,
  225. hasMore: true,
  226. pageNum: 1,
  227. pageSize: 10,
  228. _loading: true,
  229. _rows: [],
  230. _totalCount: 0,
  231. _fetchLoading: false,
  232. _hasMore: true,
  233. _pageNum: 1,
  234. _pageSize: 10,
  235. };
  236. },
  237. onLoad(options) {
  238. const title = this.safeDecode(options && options.title) || "报表详情";
  239. this.shareTitle = title;
  240. this.taskId = options && options.id ? options.id : "";
  241. uni.setNavigationBarTitle({ title });
  242. this.tableBodyHeight = 14 * 80;
  243. this.fetchList();
  244. },
  245. onShareAppMessage() {
  246. return {
  247. title: this.shareTitle || "报表详情",
  248. path: this.buildSharePath(),
  249. };
  250. },
  251. onShareTimeline() {
  252. return {
  253. title: this.shareTitle || "报表详情",
  254. query: this.buildShareQuery(),
  255. };
  256. },
  257. computed: {
  258. isLoading() {
  259. return (this.loading && this.category == 1) || (this._loading && this.category == 2);
  260. },
  261. showEmptyData() {
  262. if (this.isLoading) return false;
  263. if ((this.category == 1 && this.rows.length === 0) || (this.category == 2 && this._rows.length === 0)) return true;
  264. return false;
  265. },
  266. },
  267. methods: {
  268. safeDecode(value) {
  269. const raw = value == null ? "" : String(value);
  270. if (!raw) return "";
  271. try {
  272. return decodeURIComponent(raw);
  273. } catch (e) {
  274. return raw;
  275. }
  276. },
  277. buildShareQuery() {
  278. const id = encodeURIComponent(this.taskId || "");
  279. const title = encodeURIComponent(this.shareTitle || "");
  280. return `id=${id}&title=${title}`;
  281. },
  282. buildSharePath() {
  283. return `/traceCodePackages/traceabilityReport/pages/reportExport/detail/index?${this.buildShareQuery()}`;
  284. },
  285. selectTab(t) {
  286. if (this.isLoading) return;
  287. this.category = t.value;
  288. this.fetchList();
  289. },
  290. computeLeafCount(node) {
  291. if (!node || !node.enterpriseList || !node.enterpriseList.length) return 1;
  292. let sum = 0;
  293. node.enterpriseList.forEach((c) => {
  294. sum += this.computeLeafCount(c);
  295. });
  296. node.leafCount = sum;
  297. return sum;
  298. },
  299. getPrepnSpec(item = {}) {
  300. return item.prepnSpec || item.prepnSpecName || item.prepSpec || "";
  301. },
  302. getProductText(product = {}) {
  303. const name = String(product.name || "").trim();
  304. const spec = String(product.spec || "").trim();
  305. const prepnSpec = String(this.getPrepnSpec(product)).trim();
  306. const parts = [name, spec].filter(Boolean);
  307. if (prepnSpec) parts.push(prepnSpec);
  308. return parts.join(" ");
  309. },
  310. processData(list) {
  311. const res = [];
  312. if (!list || !list.length) return res;
  313. list.forEach((company) => {
  314. const companyNode = {
  315. name: company.enterpriseName,
  316. customerLevel: company.customerLevel || "",
  317. customerNature: company.customerNature || "",
  318. responsibleManager: company.responsibleManager || "",
  319. medicalFlag: company.medicalFlag || "",
  320. totalQty: 0,
  321. expanded: false, // Default collapsed
  322. exporters: [],
  323. products: [], // Collect unique products here
  324. };
  325. const uniqueProducts = {};
  326. (company.enterpriseList || []).forEach((exp) => {
  327. const expNode = {
  328. name: exp.fromEntName,
  329. fromCustomerLevel: exp.fromCustomerLevel || "",
  330. fromCustomerNature: exp.fromCustomerNature || "",
  331. fromResponsibleManager: exp.fromResponsibleManager || "",
  332. expanded: false, // Default collapsed
  333. products: [],
  334. };
  335. const productGroups = {};
  336. (exp.enterpriseList || []).forEach((item) => {
  337. const prepnSpec = this.getPrepnSpec(item);
  338. const key = [item.physicName || "", item.pkgSpec || "", prepnSpec].join("|");
  339. // Collect global unique products for the company header
  340. if (!uniqueProducts[key]) {
  341. uniqueProducts[key] = {
  342. name: item.physicName,
  343. spec: item.pkgSpec || "",
  344. prepnSpec,
  345. };
  346. }
  347. if (!productGroups[key]) {
  348. productGroups[key] = {
  349. name: item.physicName,
  350. spec: item.pkgSpec || "",
  351. prepnSpec,
  352. batches: [],
  353. };
  354. }
  355. const { minBillTime, maxBillTime } = item;
  356. const billTime = `${formatDate(minBillTime, "YYYY-MM-DD")}——${formatDate(maxBillTime, "YYYY-MM-DD")}`;
  357. const qty = Number(item.toQty) || 0;
  358. companyNode.totalQty += qty;
  359. productGroups[key].batches.push({
  360. ...item,
  361. billTime,
  362. });
  363. });
  364. Object.values(productGroups).forEach((pg) => {
  365. expNode.products.push(pg);
  366. });
  367. companyNode.exporters.push(expNode);
  368. });
  369. companyNode.products = Object.values(uniqueProducts);
  370. res.push(companyNode);
  371. });
  372. return res;
  373. },
  374. toggleExpand(item) {
  375. this.$set(item, "expanded", !item.expanded);
  376. },
  377. toggleSubExpand(item) {
  378. this.$set(item, "expanded", !item.expanded);
  379. },
  380. copyTraceCode(code) {
  381. const text = String(code || "").trim();
  382. if (!text) {
  383. uni.showToast({ title: "无可复制内容", icon: "none" });
  384. return;
  385. }
  386. uni.setClipboardData({
  387. data: text,
  388. success: () => {
  389. uni.showToast({ title: "追溯码已复制", icon: "none" });
  390. },
  391. });
  392. },
  393. onTableScrollToLower(e) {
  394. if (e?.detail?.direction === "right") return;
  395. // if (this.isLoading) return;
  396. // if (this.rows.length >= this.totalCount) return;
  397. // this.isLoading = true;
  398. // const remain = this.totalCount - this.rows.length;
  399. // const toAdd = Math.min(15, remain);
  400. // setTimeout(() => {
  401. // const more = this.rows.slice(0, toAdd);
  402. // this.rows = this.rows.concat(more);
  403. // this.isLoading = false;
  404. // }, 800);
  405. this.fetchList();
  406. },
  407. fetchList() {
  408. let obj = {
  409. pageNum: "pageNum",
  410. pageSize: "pageSize",
  411. totalCount: "totalCount",
  412. hasMore: "hasMore",
  413. fetchLoading: "fetchLoading",
  414. rows: "rows",
  415. loading: "loading",
  416. };
  417. if (this.category == 2) {
  418. obj.pageNum = "_pageNum";
  419. obj.pageSize = "_pageSize";
  420. obj.totalCount = "_totalCount";
  421. obj.hasMore = "_hasMore";
  422. obj.fetchLoading = "_fetchLoading";
  423. obj.rows = "_rows";
  424. obj.loading = "_loading";
  425. }
  426. if (this[obj.fetchLoading] || !this[obj.hasMore]) return;
  427. this[obj.fetchLoading] = true;
  428. let url = `/report/getTaskTableData`;
  429. try {
  430. request(url, {
  431. id: this.taskId,
  432. category: this.category,
  433. pageNum: this[obj.pageNum],
  434. pageSize: this[obj.pageSize],
  435. path: "/reportExport/detail/index.vue",
  436. }).then((res) => {
  437. if (res.code == 200) {
  438. const { total, list } = res.data || {};
  439. this[obj.totalCount] = total || 0;
  440. let _list = [];
  441. if (Array.isArray(list)) {
  442. _list = this.processData(list);
  443. }
  444. this[obj.rows] = [...this[obj.rows], ..._list];
  445. if (this[obj.rows].length < this[obj.totalCount]) {
  446. this[obj.hasMore] = true;
  447. this[obj.pageNum]++;
  448. } else {
  449. this[obj.hasMore] = false;
  450. }
  451. }
  452. this[obj.fetchLoading] = false;
  453. this[obj.loading] = false;
  454. });
  455. } catch (res) {
  456. console.log(res);
  457. this[obj.fetchLoading] = false;
  458. this[obj.loading] = false;
  459. }
  460. // this.rows = [];
  461. // setTimeout(() => {
  462. // const n = Math.min(15, this.totalCount);
  463. // this.rows = this.buildRows(this.genHierData()).slice(0, n);
  464. // this.fetchLoading = false;
  465. // }, 1000);
  466. },
  467. },
  468. };
  469. </script>
  470. <style scoped>
  471. .detail-page {
  472. box-sizing: border-box;
  473. padding: 24rpx;
  474. position: relative;
  475. min-height: 100vh;
  476. background: #f3f6f9;
  477. padding-bottom: calc(50rpx + env(safe-area-inset-bottom));
  478. }
  479. .grid-scroll {
  480. padding-bottom: 80rpx;
  481. }
  482. .tabs {
  483. display: flex;
  484. align-items: center;
  485. background: #fff;
  486. border-radius: 90rpx;
  487. padding: 10rpx;
  488. margin-bottom: 30rpx;
  489. }
  490. .tab {
  491. flex: 1;
  492. height: 70rpx;
  493. display: flex;
  494. align-items: center;
  495. justify-content: center;
  496. padding: 0 24rpx;
  497. border-radius: 70rpx;
  498. font-size: 28rpx;
  499. color: #333;
  500. }
  501. .tab + .tab {
  502. margin-left: 12rpx;
  503. }
  504. .tab.active {
  505. background: #2c69ff;
  506. color: #fff;
  507. }
  508. .card {
  509. position: relative;
  510. margin-top: 12rpx;
  511. font-size: 30rpx;
  512. overflow: hidden;
  513. }
  514. /* New Card Styles */
  515. .card-list {
  516. padding: 24rpx;
  517. background: #f5f7fa;
  518. min-height: 100vh;
  519. }
  520. .company-card {
  521. background: #fff;
  522. border-radius: 16rpx;
  523. margin-bottom: 24rpx;
  524. overflow: hidden;
  525. box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.05);
  526. }
  527. .company-header {
  528. padding: 24rpx 30rpx;
  529. background: #fff;
  530. display: flex;
  531. justify-content: space-between;
  532. align-items: center;
  533. border-bottom: 1rpx solid #f0f0f0;
  534. }
  535. .company-title {
  536. display: flex;
  537. flex-direction: column;
  538. }
  539. .company-name {
  540. font-size: 32rpx;
  541. font-weight: bold;
  542. color: #333;
  543. margin-bottom: 8rpx;
  544. }
  545. .company-products {
  546. margin-bottom: 8rpx;
  547. }
  548. .company-meta {
  549. margin-bottom: 8rpx;
  550. }
  551. .company-meta-row {
  552. display: flex;
  553. align-items: center;
  554. justify-content: space-between;
  555. margin-bottom: 6rpx;
  556. }
  557. .company-meta-row:last-child {
  558. margin-bottom: 0;
  559. }
  560. .company-meta-item {
  561. font-size: 26rpx;
  562. color: #666;
  563. margin-right: 24rpx;
  564. display: inline-block;
  565. }
  566. .company-product-item {
  567. font-size: 26rpx;
  568. color: #666;
  569. margin-right: 16rpx;
  570. display: inline-block;
  571. }
  572. .company-total {
  573. font-size: 24rpx;
  574. color: #999;
  575. }
  576. .company-body {
  577. background: #fff;
  578. padding: 0 24rpx 24rpx;
  579. }
  580. .exporter-section {
  581. margin-top: 24rpx;
  582. border: 1rpx solid #eef0f4;
  583. border-radius: 12rpx;
  584. overflow: hidden;
  585. }
  586. .exporter-title {
  587. background: #f8f9fb;
  588. padding: 16rpx 24rpx;
  589. font-size: 28rpx;
  590. font-weight: 600;
  591. color: #333;
  592. display: flex;
  593. justify-content: space-between;
  594. align-items: center;
  595. border-bottom: 1rpx solid #eef0f4;
  596. }
  597. .exporter-meta {
  598. background: #f8f9fb;
  599. padding: 8rpx 24rpx 16rpx;
  600. border-bottom: 1rpx solid #eef0f4;
  601. }
  602. .exporter-meta-row {
  603. display: flex;
  604. align-items: center;
  605. justify-content: space-between;
  606. margin-bottom: 6rpx;
  607. }
  608. .exporter-meta-row:last-child {
  609. margin-bottom: 0;
  610. }
  611. .exporter-meta-item {
  612. font-size: 26rpx;
  613. color: #666;
  614. margin-right: 24rpx;
  615. display: inline-block;
  616. }
  617. .product-group {
  618. padding: 0;
  619. }
  620. .product-header {
  621. padding: 16rpx 24rpx;
  622. display: flex;
  623. justify-content: space-between;
  624. font-size: 26rpx;
  625. color: #666;
  626. border-bottom: 1rpx solid #f0f0f0;
  627. }
  628. .batch-scroll {
  629. width: 100%;
  630. }
  631. .batch-table {
  632. min-width: 1560rpx;
  633. }
  634. .batch-header-row {
  635. display: flex;
  636. background: #f7f9fc;
  637. color: #2c69ff;
  638. }
  639. .batch-row {
  640. display: flex;
  641. border-bottom: 1rpx solid #f0f0f0;
  642. }
  643. .batch-row:nth-child(even) {
  644. background-color: #f7f9fc;
  645. }
  646. .batch-row:last-child {
  647. border-bottom: none;
  648. }
  649. .th-cell {
  650. padding: 16rpx 10rpx;
  651. font-size: 24rpx;
  652. text-align: center;
  653. flex-shrink: 0;
  654. font-weight: 600;
  655. }
  656. .td-cell {
  657. padding: 16rpx 10rpx;
  658. font-size: 24rpx;
  659. color: #333;
  660. text-align: center;
  661. flex-shrink: 0;
  662. word-break: break-all;
  663. display: flex;
  664. align-items: center;
  665. justify-content: center;
  666. }
  667. .col-batch {
  668. width: 220rpx;
  669. }
  670. .col-region {
  671. width: 180rpx;
  672. }
  673. .col-qty {
  674. width: 220rpx;
  675. }
  676. .col-time {
  677. width: 340rpx;
  678. }
  679. .col-code {
  680. width: 280rpx;
  681. }
  682. .copyable-code {
  683. color: #2c69ff;
  684. }
  685. .loading-row {
  686. padding: 24rpx;
  687. display: flex;
  688. justify-content: center;
  689. }
  690. .loading-wrapper {
  691. position: sticky;
  692. top: 50%;
  693. left: 0;
  694. width: calc(100vw - 48rpx);
  695. height: 76rpx;
  696. display: flex;
  697. align-items: center;
  698. justify-content: center;
  699. }
  700. .loading-icon {
  701. width: 40rpx;
  702. height: 40rpx;
  703. animation: spin 1s linear infinite;
  704. }
  705. @keyframes spin {
  706. from {
  707. transform: rotate(0deg);
  708. }
  709. to {
  710. transform: rotate(360deg);
  711. }
  712. }
  713. .empty-data,
  714. .loading-wrap {
  715. position: absolute;
  716. left: 0;
  717. top: 280rpx;
  718. z-index: 91;
  719. width: 100%;
  720. background-color: transparent;
  721. border-bottom-left-radius: 16rpx;
  722. border-bottom-right-radius: 16rpx;
  723. }
  724. .empty-data {
  725. top: 280rpx;
  726. display: flex;
  727. align-items: center;
  728. justify-content: center;
  729. background-color: transparent;
  730. }
  731. </style>