index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928
  1. <template>
  2. <view class="content-box">
  3. <uni-nav-bar
  4. fixed="true"
  5. statusBar="true"
  6. left-icon="back"
  7. title="请托列表"
  8. background-color="#157A2C"
  9. color="#fff"
  10. @clickLeft="back"
  11. ></uni-nav-bar>
  12. <view class="top-wrapper">
  13. <uni-section>
  14. <uni-easyinput
  15. prefixIcon="search"
  16. v-model="searchForm.name"
  17. placeholder="请输入名称"
  18. ></uni-easyinput>
  19. </uni-section>
  20. <image
  21. class="menu_icon"
  22. src="~@/static/pda/menu.svg"
  23. @click="showFilter = true"
  24. ></image>
  25. <button class="search_btn" @click="handleSearch">搜索</button>
  26. <button class="search_btn" @click="handleAdd">新增</button>
  27. </view>
  28. <view class="list_box">
  29. <u-list @scrolltolower="loadMore">
  30. <u-list-item v-for="item in list" :key="item.id">
  31. <view class="list-item" @click="goDetail(item)">
  32. <view class="item-header">
  33. <view class="item-code">{{ item.code }}</view>
  34. <view class="item-status">
  35. <text class="status-tag" :class="getStatusClass(item.status)">{{
  36. getStatusText(item.status)
  37. }}</text>
  38. </view>
  39. </view>
  40. <view class="item-row">
  41. <text class="label">类型:</text>
  42. <text class="value">{{ getTypeText(item.type) }}</text>
  43. </view>
  44. <view class="item-row">
  45. <text class="label">名称:</text>
  46. <text class="value">{{ item.name }}</text>
  47. </view>
  48. <view class="item-row">
  49. <text class="label">紧急程度:</text>
  50. <text class="value">{{
  51. item.priority == 1 ? "一般" : "紧急"
  52. }}</text>
  53. </view>
  54. <view class="item-row">
  55. <text class="label">请托数量:</text>
  56. <text class="value"
  57. >{{ item.totalCount }}{{ item.measuringUnit }}</text
  58. >
  59. </view>
  60. <view class="item-row">
  61. <text class="label">受托工厂:</text>
  62. <text class="value">{{ item.beEntrustedFactoriesName }}</text>
  63. </view>
  64. <view class="item-row">
  65. <text class="label">发货状态:</text>
  66. <text class="value">
  67. <text
  68. class="status-tag"
  69. :class="getSendStatusClass(item.sendStatus)"
  70. >{{ getSendStatusText(item.sendStatus) }}</text
  71. >
  72. </text>
  73. </view>
  74. <view class="item-row">
  75. <text class="label">审批状态:</text>
  76. <text class="value">
  77. <text
  78. class="status-tag"
  79. :class="getApprovalStatusClass(item.approvalStatus)"
  80. >{{ getApprovalStatusText(item.approvalStatus) }}</text
  81. >
  82. </text>
  83. </view>
  84. <view class="item-footer">
  85. <text class="time">{{ item.createTime }}</text>
  86. </view>
  87. <view
  88. class="item-actions"
  89. v-if="
  90. canEdit(item) ||
  91. canSubmit(item) ||
  92. canDelete(item) ||
  93. canSend(item) ||
  94. canReceive(item) ||
  95. canViewReceiveDetail(item) ||
  96. canViewSendDetail(item)
  97. "
  98. >
  99. <button
  100. v-if="canEdit(item)"
  101. class="action-btn btn-primary"
  102. @click.stop="handleEdit(item)"
  103. >
  104. 编辑
  105. </button>
  106. <button
  107. v-if="canDelete(item)"
  108. class="action-btn btn-error"
  109. @click.stop="handleDelete(item)"
  110. >
  111. 删除
  112. </button>
  113. <button
  114. v-if="canSubmit(item)"
  115. class="action-btn btn-success"
  116. @click.stop="handleSubmit(item)"
  117. >
  118. 提交
  119. </button>
  120. <button
  121. v-if="canSend(item)"
  122. class="action-btn btn-warning"
  123. @click.stop="handleSend(item)"
  124. >
  125. 发货
  126. </button>
  127. <button
  128. v-if="canReceive(item)"
  129. class="action-btn btn-success"
  130. @click.stop="handleReceive(item)"
  131. >
  132. 收货
  133. </button>
  134. <button
  135. v-if="canViewReceiveDetail(item)"
  136. class="action-btn btn-info"
  137. @click.stop="handleReceiveDetail(item)"
  138. >
  139. 收货详情
  140. </button>
  141. <button
  142. v-if="canViewSendDetail(item)"
  143. class="action-btn btn-order"
  144. @click.stop="handleSendDetail(item)"
  145. >
  146. 发货详情
  147. </button>
  148. </view>
  149. </view>
  150. </u-list-item>
  151. <u-list-item v-if="list.length === 0">
  152. <view class="empty-wrapper">
  153. <u-empty iconSize="150" textSize="32" text="暂无数据"></u-empty>
  154. </view>
  155. </u-list-item>
  156. </u-list>
  157. </view>
  158. <SearchPopup mode="top" v-if="showFilter">
  159. <template v-slot:list>
  160. <view class="search_list">
  161. <u-form
  162. labelPosition="left"
  163. :model="searchForm"
  164. labelWidth="180"
  165. labelAlign="left"
  166. >
  167. <u-form-item label="类型:" borderBottom>
  168. <zxz-uni-data-select
  169. :localdata="typeList"
  170. v-model="searchForm.type"
  171. dataValue="value"
  172. dataKey="label"
  173. format="{label}"
  174. ></zxz-uni-data-select>
  175. </u-form-item>
  176. <u-form-item label="请托工厂:" borderBottom>
  177. <zxz-uni-data-select
  178. :localdata="factoryList"
  179. v-model="searchForm.factoriesId"
  180. dataValue="id"
  181. dataKey="name"
  182. format="{name}"
  183. filterable
  184. ></zxz-uni-data-select>
  185. </u-form-item>
  186. <u-form-item label="受托工厂:" borderBottom>
  187. <zxz-uni-data-select
  188. :localdata="beEntrustedFactoryList"
  189. v-model="searchForm.beEntrustedFactoriesId"
  190. dataValue="id"
  191. dataKey="name"
  192. format="{name}"
  193. filterable
  194. ></zxz-uni-data-select>
  195. </u-form-item>
  196. <u-form-item label="完成时间:" borderBottom>
  197. <view class="date-range-wrapper">
  198. <view
  199. class="date-picker-box"
  200. @click="showStartPicker = true"
  201. >
  202. <text :class="{ placeholder: !startTimeDisplay }">
  203. {{ startTimeDisplay || "开始日期" }}
  204. </text>
  205. </view>
  206. <text class="date-separator">至</text>
  207. <view
  208. class="date-picker-box"
  209. @click="showEndPicker = true"
  210. >
  211. <text :class="{ placeholder: !endTimeDisplay }">
  212. {{ endTimeDisplay || "结束日期" }}
  213. </text>
  214. </view>
  215. </view>
  216. </u-form-item>
  217. </u-form>
  218. </view>
  219. </template>
  220. <template v-slot:operate>
  221. <view class="operate_box">
  222. <u-button
  223. size="small"
  224. class="u-reset-button reset-btn"
  225. @click="filterCancel"
  226. >重置</u-button
  227. >
  228. <u-button
  229. type="success"
  230. size="small"
  231. class="u-reset-button confirm-btn"
  232. @click="filterConfirm"
  233. >确定</u-button
  234. >
  235. </view>
  236. </template>
  237. </SearchPopup>
  238. <!-- 开始日期选择器 -->
  239. <u-datetime-picker
  240. v-model="startTime"
  241. :show="showStartPicker"
  242. mode="date"
  243. @confirm="confirmStartTime"
  244. @cancel="showStartPicker = false"
  245. ></u-datetime-picker>
  246. <!-- 结束日期选择器 -->
  247. <u-datetime-picker
  248. v-model="endTime"
  249. :show="showEndPicker"
  250. mode="date"
  251. @confirm="confirmEndTime"
  252. @cancel="showEndPicker = false"
  253. ></u-datetime-picker>
  254. </view>
  255. </template>
  256. <script>
  257. import { getList, submit, remove } from "@/api/entrust/index.js";
  258. import SearchPopup from "../../components/searchPopup.vue";
  259. import { getFactoryarea } from "@/api/inspectionWork/index";
  260. let isEnd = false;
  261. export default {
  262. components: {
  263. SearchPopup,
  264. },
  265. data() {
  266. return {
  267. searchForm: {
  268. type: "",
  269. name: "",
  270. factoriesId: "",
  271. beEntrustedFactoriesId: "",
  272. planDeliveryTimeStart: "",
  273. planDeliveryTimeEnd: "",
  274. },
  275. typeList: [],
  276. factoryList: [],
  277. beEntrustedFactoryList: [],
  278. list: [],
  279. pageNum: 1,
  280. pageSize: 20,
  281. total: 0,
  282. loading: false,
  283. hasMore: true,
  284. showFilter: false,
  285. showStartPicker: false,
  286. showEndPicker: false,
  287. startTime: "",
  288. endTime: "",
  289. startTimeDisplay: "",
  290. endTimeDisplay: "",
  291. };
  292. },
  293. onLoad() {
  294. this.getTypeList();
  295. this.getFactoryList();
  296. },
  297. onShow() {
  298. this.loadData(true);
  299. },
  300. methods: {
  301. back() {
  302. uni.navigateBack();
  303. },
  304. async getTypeList() {
  305. // 获取字典数据
  306. this.typeList = [
  307. { label: "加工", value: "1" },
  308. { label: "装配", value: "2" },
  309. ];
  310. },
  311. async getFactoryList() {
  312. try {
  313. const res = await getFactoryarea({
  314. pageNum: 1,
  315. size: 999,
  316. type: 1,
  317. });
  318. const list = res?.list || [];
  319. this.factoryList = [...list];
  320. this.beEntrustedFactoryList = [...list];
  321. } catch (error) {
  322. console.error("获取工厂列表失败", error);
  323. }
  324. },
  325. confirmStartTime(e) {
  326. const timestamp = e.value;
  327. const date = new Date(timestamp);
  328. this.startTime = timestamp;
  329. this.startTimeDisplay = this.formatDate(date);
  330. this.searchForm.planDeliveryTimeStart = this.formatDateTime(
  331. date,
  332. "00:00:00",
  333. );
  334. this.showStartPicker = false;
  335. },
  336. confirmEndTime(e) {
  337. const timestamp = e.value;
  338. const date = new Date(timestamp);
  339. this.endTime = timestamp;
  340. this.endTimeDisplay = this.formatDate(date);
  341. this.searchForm.planDeliveryTimeEnd = this.formatDateTime(
  342. date,
  343. "23:59:59",
  344. );
  345. this.showEndPicker = false;
  346. },
  347. formatDate(date) {
  348. const year = date.getFullYear();
  349. const month = String(date.getMonth() + 1).padStart(2, "0");
  350. const day = String(date.getDate()).padStart(2, "0");
  351. return `${year}-${month}-${day}`;
  352. },
  353. formatDateTime(date, time) {
  354. return `${this.formatDate(date)} ${time}`;
  355. },
  356. async loadData(isRefresh = false) {
  357. if (this.loading) return;
  358. if (isRefresh) {
  359. this.pageNum = 1;
  360. this.list = [];
  361. this.hasMore = true;
  362. }
  363. if (!this.hasMore) return;
  364. this.loading = true;
  365. isEnd = false;
  366. try {
  367. const res = await getList({
  368. pageNum: this.pageNum,
  369. size: this.pageSize,
  370. ...this.searchForm,
  371. });
  372. if (this.pageNum === 1) {
  373. this.list = [];
  374. }
  375. if (res.list && res.list.length > 0) {
  376. this.list.push(...res.list);
  377. this.total = res.total;
  378. isEnd = this.list.length >= this.total;
  379. this.hasMore = !isEnd;
  380. } else {
  381. isEnd = true;
  382. this.hasMore = false;
  383. }
  384. } catch (error) {
  385. uni.showToast({
  386. title: "加载失败",
  387. icon: "none",
  388. });
  389. } finally {
  390. this.loading = false;
  391. }
  392. },
  393. loadMore() {
  394. if (isEnd) return;
  395. this.pageNum++;
  396. this.loadData();
  397. },
  398. handleSearch() {
  399. this.loadData(true);
  400. },
  401. filterConfirm() {
  402. this.showFilter = false;
  403. this.loadData(true);
  404. },
  405. filterCancel() {
  406. this.searchForm.type = "";
  407. this.searchForm.factoriesId = "";
  408. this.searchForm.beEntrustedFactoriesId = "";
  409. this.searchForm.planDeliveryTimeStart = "";
  410. this.searchForm.planDeliveryTimeEnd = "";
  411. this.startTime = "";
  412. this.endTime = "";
  413. this.startTimeDisplay = "";
  414. this.endTimeDisplay = "";
  415. this.showFilter = false;
  416. this.loadData(true);
  417. },
  418. goDetail(item) {
  419. uni.navigateTo({
  420. url: `/pages/pda/entrust/detail/detail?id=${item.id}`,
  421. });
  422. },
  423. handleAdd() {
  424. uni.navigateTo({
  425. url: "/pages/pda/entrust/create/create?type=add",
  426. });
  427. },
  428. handleEdit(item) {
  429. uni.navigateTo({
  430. url: `/pages/pda/entrust/create/create?type=edit&id=${item.id}`,
  431. });
  432. },
  433. handleDelete(item) {
  434. uni.showModal({
  435. title: "提示",
  436. content: "确定要删除该请托单吗?",
  437. success: async (res) => {
  438. if (res.confirm) {
  439. try {
  440. await remove([item.id]);
  441. uni.showToast({
  442. title: "删除成功",
  443. icon: "success",
  444. });
  445. this.loadData(true);
  446. } catch (error) {
  447. uni.showToast({
  448. title: "删除失败",
  449. icon: "none",
  450. });
  451. }
  452. }
  453. },
  454. });
  455. },
  456. handleSubmit(item) {
  457. uni.showModal({
  458. title: "提示",
  459. content: "确定要提交该请托单吗?",
  460. success: async (res) => {
  461. if (res.confirm) {
  462. try {
  463. await submit({
  464. businessId: item.id,
  465. beEntrustedDeptId: item.beEntrustedDeptId,
  466. });
  467. uni.showToast({
  468. title: "提交成功",
  469. icon: "success",
  470. });
  471. this.loadData(true);
  472. } catch (error) {
  473. uni.showToast({
  474. title: "提交失败",
  475. icon: "none",
  476. });
  477. }
  478. }
  479. },
  480. });
  481. },
  482. handleSend(item) {
  483. uni.navigateTo({
  484. url: `/pages/pda/entrust/goods/goods?id=${item.id}&type=add`,
  485. });
  486. },
  487. handleReceive(item) {
  488. uni.navigateTo({
  489. url: `/pages/pda/entrust/goods/goods?id=${item.id}&type=receipt`,
  490. });
  491. },
  492. canEdit(item) {
  493. return (
  494. (item.status == 0 &&
  495. item.approvalStatus != 1 &&
  496. item.approvalStatus != 2) ||
  497. item.approvalStatus == 3
  498. );
  499. },
  500. canDelete(item) {
  501. return (
  502. item.status == 0 && item.approvalStatus != 1 && item.approvalStatus != 2
  503. );
  504. },
  505. canSubmit(item) {
  506. return item.approvalStatus != 1 && item.approvalStatus != 2;
  507. },
  508. canSend(item) {
  509. return (
  510. item.approvalStatus == 2 &&
  511. (item.sendStatus == 0 || !item.sendStatus || item.sendStatus == 5)
  512. );
  513. },
  514. canReceive(item) {
  515. return item.approvalStatus == 2 && item.sendStatus == 3;
  516. },
  517. canViewReceiveDetail(item) {
  518. return item.approvalStatus == 2 && item.sendStatus == 4;
  519. },
  520. canViewSendDetail(item) {
  521. return (
  522. item.approvalStatus == 2 &&
  523. item.sendStatus != 0 &&
  524. item.sendStatus &&
  525. item.sendStatus != 5 &&
  526. item.sendStatus != 3 &&
  527. item.sendStatus != 4
  528. );
  529. },
  530. handleReceiveDetail(item) {
  531. uni.navigateTo({
  532. url: `/pages/pda/entrust/goods/goods?id=${item.id}&type=receipt`,
  533. });
  534. },
  535. handleSendDetail(item) {
  536. uni.navigateTo({
  537. url: `/pages/pda/entrust/goods/goods?id=${item.id}&type=detail`,
  538. });
  539. },
  540. getTypeText(type) {
  541. const typeMap = {
  542. 1: "加工",
  543. 2: "装配",
  544. };
  545. return typeMap[type] || "";
  546. },
  547. getStatusText(status) {
  548. const statusMap = {
  549. 0: "未提交",
  550. 1: "已提交",
  551. 2: "已发布",
  552. };
  553. return statusMap[status] || "";
  554. },
  555. getStatusClass(status) {
  556. const classMap = {
  557. 0: "status-default",
  558. 1: "status-warning",
  559. 2: "status-success",
  560. };
  561. return classMap[status] || "status-default";
  562. },
  563. getSendStatusText(sendStatus) {
  564. const statusMap = {
  565. 0: "未发货",
  566. 1: "已发货",
  567. 2: "已收货",
  568. 3: "受托已发",
  569. 4: "请托已收",
  570. 5: "受托拒收",
  571. 6: "请托拒收",
  572. };
  573. return statusMap[sendStatus] || "未发货";
  574. },
  575. getSendStatusClass(sendStatus) {
  576. if (!sendStatus || sendStatus == 0) return "status-default";
  577. if (sendStatus == 5 || sendStatus == 6) return "status-danger";
  578. return "status-success";
  579. },
  580. getApprovalStatusText(approvalStatus) {
  581. const statusMap = {
  582. 0: "未提交",
  583. 1: "审核中",
  584. 2: "审核通过",
  585. 3: "审核不通过",
  586. };
  587. return statusMap[approvalStatus] || "未提交";
  588. },
  589. getApprovalStatusClass(approvalStatus) {
  590. const classMap = {
  591. 0: "status-default",
  592. 1: "status-warning",
  593. 2: "status-success",
  594. 3: "status-danger",
  595. };
  596. return classMap[approvalStatus] || "status-default";
  597. },
  598. },
  599. };
  600. </script>
  601. <style lang="scss">
  602. page {
  603. height: 100vh;
  604. overflow: hidden;
  605. }
  606. </style>
  607. <style lang="scss" scoped>
  608. .content-box {
  609. height: 100vh;
  610. overflow: hidden;
  611. display: flex;
  612. flex-direction: column;
  613. background-color: $page-bg;
  614. }
  615. .top-wrapper {
  616. background-color: #fff;
  617. display: flex;
  618. width: 100%;
  619. padding: 20rpx 26rpx;
  620. align-items: center;
  621. gap: 16rpx;
  622. flex-shrink: 0;
  623. box-sizing: border-box;
  624. /deep/.uni-section {
  625. margin-top: 0px;
  626. flex: 1;
  627. min-width: 0;
  628. }
  629. /deep/.uni-section-header {
  630. padding: 0px;
  631. }
  632. .search_btn {
  633. flex-shrink: 0;
  634. padding: 0 26rpx;
  635. height: 64rpx;
  636. line-height: 64rpx;
  637. background: $theme-color;
  638. font-size: 26rpx;
  639. border-radius: 8rpx;
  640. color: #fff;
  641. white-space: nowrap;
  642. margin: 0;
  643. }
  644. .menu_icon {
  645. flex-shrink: 0;
  646. width: 44rpx;
  647. height: 44rpx;
  648. }
  649. .add_btn {
  650. width: 70rpx;
  651. height: 70rpx;
  652. line-height: 70rpx;
  653. padding: 0;
  654. background: $theme-color;
  655. font-size: 48rpx;
  656. color: #fff;
  657. border-radius: 50%;
  658. margin: 0;
  659. }
  660. }
  661. .list_box {
  662. // flex: 1;
  663. overflow: hidden;
  664. padding: 16rpx 0;
  665. .u-list {
  666. height: 100% !important;
  667. }
  668. }
  669. .list-item {
  670. background-color: #fff;
  671. border-radius: 12rpx;
  672. padding: 24rpx;
  673. margin: 0 24rpx 20rpx;
  674. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.08);
  675. .item-header {
  676. display: flex;
  677. justify-content: space-between;
  678. align-items: center;
  679. margin-bottom: 20rpx;
  680. padding-bottom: 20rpx;
  681. border-bottom: 1rpx solid #f0f0f0;
  682. .item-code {
  683. font-size: 32rpx;
  684. font-weight: bold;
  685. color: $theme-color;
  686. }
  687. }
  688. .item-row {
  689. display: flex;
  690. margin-bottom: 16rpx;
  691. font-size: 28rpx;
  692. .label {
  693. color: #999;
  694. min-width: 160rpx;
  695. }
  696. .value {
  697. flex: 1;
  698. color: #333;
  699. word-break: break-all;
  700. }
  701. }
  702. .item-footer {
  703. margin-top: 20rpx;
  704. padding-top: 20rpx;
  705. border-top: 1rpx solid #f0f0f0;
  706. .time {
  707. font-size: 24rpx;
  708. color: #999;
  709. }
  710. }
  711. .item-actions {
  712. display: flex !important;
  713. justify-content: flex-end !important;
  714. gap: 12rpx;
  715. margin-top: 20rpx;
  716. overflow-x: auto;
  717. .action-btn {
  718. flex: 0 0 auto !important;
  719. width: auto !important;
  720. border-radius: 32rpx !important;
  721. height: 56rpx !important;
  722. line-height: 56rpx !important;
  723. font-size: 26rpx !important;
  724. padding: 0 24rpx !important;
  725. margin: 0 !important;
  726. border: none !important;
  727. color: #fff !important;
  728. &.btn-primary {
  729. background-color: #2979ff !important;
  730. }
  731. &.btn-error {
  732. background-color: #f56c6c !important;
  733. }
  734. &.btn-success {
  735. background-color: $theme-color !important;
  736. }
  737. &.btn-warning {
  738. background-color: #ff9900 !important;
  739. }
  740. &.btn-info {
  741. background-color: #e0ffff !important;
  742. }
  743. &.btn-order {
  744. background-color: #b23aee !important;
  745. }
  746. }
  747. }
  748. }
  749. .status-tag {
  750. display: inline-block;
  751. padding: 4rpx 16rpx;
  752. border-radius: 4rpx;
  753. font-size: 24rpx;
  754. &.status-default {
  755. background-color: #f0f0f0;
  756. color: #666;
  757. }
  758. &.status-warning {
  759. background-color: #fff7e6;
  760. color: #faad14;
  761. }
  762. &.status-success {
  763. background-color: rgba(21, 122, 44, 0.1);
  764. color: $theme-color;
  765. }
  766. &.status-danger {
  767. background-color: #fff1f0;
  768. color: #ff4d4f;
  769. }
  770. }
  771. .empty-wrapper {
  772. display: flex;
  773. align-items: center;
  774. justify-content: center;
  775. padding-top: 25vh;
  776. }
  777. .search_list {
  778. min-height: 100rpx;
  779. padding: 24rpx 32rpx;
  780. .date-range-wrapper {
  781. display: flex;
  782. align-items: center;
  783. gap: 12rpx;
  784. .date-picker-box {
  785. flex: 1;
  786. padding: 12rpx 16rpx;
  787. border: 1rpx solid #e0e0e0;
  788. border-radius: 6rpx;
  789. font-size: 28rpx;
  790. color: #333;
  791. min-height: 56rpx;
  792. line-height: 32rpx;
  793. .placeholder {
  794. color: #c0c4cc;
  795. }
  796. }
  797. .date-separator {
  798. font-size: 28rpx;
  799. color: #666;
  800. }
  801. }
  802. }
  803. .operate_box {
  804. display: flex;
  805. flex-direction: row;
  806. align-items: center;
  807. justify-content: space-between;
  808. padding: 24rpx 32rpx 32rpx;
  809. gap: 24rpx;
  810. .reset-btn {
  811. flex: 1;
  812. height: 72rpx;
  813. border-radius: 36rpx;
  814. font-size: $uni-font-size-sm;
  815. }
  816. .confirm-btn {
  817. flex: 1;
  818. height: 72rpx;
  819. border-radius: 36rpx;
  820. font-size: $uni-font-size-sm;
  821. }
  822. }
  823. </style>