index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753
  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="tabs_wrap">
  13. <view
  14. v-for="tab in tabs"
  15. :key="tab.value"
  16. class="tab_item"
  17. :class="{ active: tabValue === tab.value }"
  18. @click="handleTabClick(tab.value)"
  19. >
  20. {{ tab.label }}
  21. </view>
  22. </view>
  23. <view class="top-wrapper">
  24. <uni-easyinput
  25. prefixIcon="search"
  26. style="flex: 1"
  27. v-model="searchFrom.workOrderCode"
  28. placeholder="订单编码"
  29. ></uni-easyinput>
  30. <button class="search_btn" @click="doSearch">搜索</button>
  31. <button class="search_btn" @click="filterShow = true">筛选</button>
  32. </view>
  33. <view class="list_box">
  34. <u-list @scrolltolower="scrolltolower">
  35. <u-list-item v-for="(item, index) in dataList" :key="item.id || index">
  36. <view class="card_box">
  37. <view class="item_box rx-bc">
  38. <view class="round">{{ index + 1 }}</view>
  39. <view class="item_one perce100 rx-sc">
  40. <view class="lable">任务编号:</view>
  41. <view class="val">{{
  42. tabValue === "4" ? item.code : item.assigneeCode
  43. }}</view>
  44. </view>
  45. </view>
  46. <view v-if="tabValue !== '4'" class="item_box rx-bc">
  47. <view class="item_one perce100 rx-sc">
  48. <view class="lable">订单编号:</view>
  49. <view class="val">{{ item.workOrderCode }}</view>
  50. </view>
  51. </view>
  52. <view class="item_box rx-bc">
  53. <view class="item_one perce100 rx-sc">
  54. <view class="lable">计划编号:</view>
  55. <view class="val">{{ item.productionPlanCode }}</view>
  56. </view>
  57. </view>
  58. <view class="item_box rx-bc">
  59. <view class="item_one perce100 rx-sc">
  60. <view class="lable">产品名称:</view>
  61. <view class="val">{{
  62. tabValue === "4" ? item.categoryName : item.productName
  63. }}</view>
  64. </view>
  65. </view>
  66. <view class="item_box rx-bc">
  67. <view class="item_one perce100 rx-sc">
  68. <view class="lable">工序名称:</view>
  69. <view class="val">{{ item.taskName }}</view>
  70. </view>
  71. </view>
  72. <view v-if="tabValue !== '4'" class="item_box rx-bc">
  73. <view class="item_one perce50 rx-sc">
  74. <view class="lable">任务数量:</view>
  75. <view class="val">{{ item.quantity }}</view>
  76. </view>
  77. <view class="item_one perce50 rx-sc">
  78. <view class="lable">班组:</view>
  79. <view class="val">{{ item.assignTeamName }}</view>
  80. </view>
  81. </view>
  82. <template v-if="tabValue === '4'">
  83. <view class="item_box rx-bc">
  84. <view class="item_one perce50 rx-sc">
  85. <view class="lable">执行部门:</view>
  86. <view class="val">{{ item.executeGroupName || "-" }}</view>
  87. </view>
  88. <view class="item_one perce50 rx-sc">
  89. <view class="lable">执行人:</view>
  90. <view class="val">{{ item.executorName || "-" }}</view>
  91. </view>
  92. </view>
  93. <view class="item_box rx-bc">
  94. <view class="item_one perce50 rx-sc">
  95. <view class="lable">产品编码:</view>
  96. <view class="val">{{ item.categoryCode || "-" }}</view>
  97. </view>
  98. <view class="item_one perce50 rx-sc">
  99. <view class="lable">牌号:</view>
  100. <view class="val">{{ item.brandNum || "-" }}</view>
  101. </view>
  102. </view>
  103. <view class="item_box rx-bc">
  104. <view class="item_one perce50 rx-sc">
  105. <view class="lable">型号:</view>
  106. <view class="val">{{ item.modelType || "-" }}</view>
  107. </view>
  108. <view class="item_one perce50 rx-sc">
  109. <view class="lable">规格:</view>
  110. <view class="val">{{ item.specification || "-" }}</view>
  111. </view>
  112. </view>
  113. <view
  114. class="item_box rx-bc"
  115. v-if="item.realStartTime || item.realEndTime"
  116. >
  117. <view class="item_one perce100 rx-sc">
  118. <view class="lable">实际时间:</view>
  119. <view class="val"
  120. >{{ item.realStartTime || "-" }} ~
  121. {{ item.realEndTime || "-" }}</view
  122. >
  123. </view>
  124. </view>
  125. <view class="item_box rx-bc" v-if="item.remark">
  126. <view class="item_one perce100 rx-sc">
  127. <view class="lable">订单备注:</view>
  128. <view class="val">{{ item.remark }}</view>
  129. </view>
  130. </view>
  131. <view class="item_box rx-bc" v-if="item.reportRemark">
  132. <view class="item_one perce100 rx-sc">
  133. <view class="lable">报备注:</view>
  134. <view class="val">{{ item.reportRemark }}</view>
  135. </view>
  136. </view>
  137. </template>
  138. <view v-if="tabValue !== '4'" class="item_box rx-bc">
  139. <view class="item_one perce100 rx-sc">
  140. <view class="lable">状态:</view>
  141. <view class="val">
  142. <text class="tag" :class="disposalCls(item.disposalStatus)">{{
  143. disposalText(item.disposalStatus)
  144. }}</text>
  145. <text class="tag tag-default" v-if="item.statusText">{{
  146. item.statusText
  147. }}</text>
  148. </view>
  149. </view>
  150. </view>
  151. <view class="action_row">
  152. <!-- 我的任务 / 班组任务:未处置时可接收 / 拒绝 -->
  153. <button
  154. v-if="canAcceptReject(item)"
  155. class="op_btn primary"
  156. @click="receiveTask(item.id, '1')"
  157. >
  158. 接收
  159. </button>
  160. <button
  161. v-if="canAcceptReject(item)"
  162. class="op_btn warn"
  163. @click="receiveTask(item.id, '2')"
  164. >
  165. 拒绝
  166. </button>
  167. <!-- 全部任务: 已拒绝可转派 -->
  168. <button
  169. v-if="tabValue === '2' && item.disposalStatus == '2'"
  170. class="op_btn primary"
  171. @click="reassignTask(item)"
  172. >
  173. 转派
  174. </button>
  175. <!-- 详情 -->
  176. <button class="op_btn ghost" @click="details('detail', item)">
  177. 详情
  178. </button>
  179. <!-- 报工 -->
  180. <button
  181. v-if="canReport(item)"
  182. class="op_btn primary"
  183. @click="details('report', item)"
  184. >
  185. 报工
  186. </button>
  187. <!-- 报工记录 -->
  188. <button
  189. v-if="item.disposalStatus == '1' && tabValue !== '4'"
  190. class="op_btn ghost"
  191. @click="viewRecords(item.id)"
  192. >
  193. 报工记录
  194. </button>
  195. </view>
  196. </view>
  197. </u-list-item>
  198. <u-list-item v-if="dataList.length === 0">
  199. <view style="margin-top: 20vh">
  200. <u-empty iconSize="150" textSize="32" text="暂无任务"></u-empty>
  201. </view>
  202. </u-list-item>
  203. </u-list>
  204. </view>
  205. <searchPopup
  206. :show="filterShow"
  207. ref="filterRef"
  208. @close="filterShow = false"
  209. @search="onFilterSearch"
  210. ></searchPopup>
  211. <reportDialog ref="reportRef" @success="reload"></reportDialog>
  212. <ncReportDialog ref="ncReportRef" @refreshList="reload"></ncReportDialog>
  213. <recordDialog ref="recordRef"></recordDialog>
  214. <reassignDialog ref="reassignRef" @success="reload"></reassignDialog>
  215. </view>
  216. </template>
  217. <script>
  218. import {
  219. pageByCurrentUser,
  220. pageByCurrentUserLeader,
  221. pageByCurrentCurrentUserTeam,
  222. getNCtaskListData,
  223. taskManagement,
  224. listUpdateRealTimeRecord,
  225. } from "@/api/pda/workReport.js";
  226. import searchPopup from "../components/searchPopup.vue";
  227. import reportDialog from "../components/reportDialog.vue";
  228. import ncReportDialog from "../components/ncReportDialog.vue";
  229. import recordDialog from "../components/recordDialog.vue";
  230. import reassignDialog from "../components/reassignDialog.vue";
  231. let isEnd = false;
  232. export default {
  233. components: {
  234. searchPopup,
  235. reportDialog,
  236. ncReportDialog,
  237. recordDialog,
  238. reassignDialog,
  239. },
  240. data() {
  241. return {
  242. tabValue: "1",
  243. page: 1,
  244. size: 10,
  245. dataList: [],
  246. filterShow: false,
  247. searchFrom: {
  248. workOrderCode: "",
  249. teamName: "",
  250. productName: "",
  251. workTaskName: "",
  252. disposalStatus: "",
  253. status: "",
  254. },
  255. };
  256. },
  257. onShow() {
  258. if (!this.tabs.find((t) => t.value === this.tabValue)) {
  259. this.tabValue = this.tabs.length ? this.tabs[0].value : "1";
  260. }
  261. this.page = 1;
  262. this.getList();
  263. },
  264. computed: {
  265. tabs() {
  266. const list = [{ label: "我的任务", value: "1" }];
  267. if (this.$isAuthorities("mes:taskreport:allorder")) {
  268. list.push({ label: "全部任务", value: "2" });
  269. }
  270. if (this.$isAuthorities("mes:taskreport:teamorder")) {
  271. list.push({ label: "班组任务", value: "3" });
  272. }
  273. if (this.$isAuthorities("mes:taskreport:programmingorder")) {
  274. list.push({ label: "NC编程任务", value: "4" });
  275. }
  276. return list;
  277. },
  278. },
  279. methods: {
  280. back() {
  281. uni.navigateBack();
  282. },
  283. handleTabClick(val) {
  284. if (val === this.tabValue) return;
  285. this.tabValue = val;
  286. this.page = 1;
  287. this.dataList = [];
  288. this.getList();
  289. },
  290. doSearch() {
  291. this.page = 1;
  292. this.getList();
  293. },
  294. onFilterSearch(e) {
  295. this.searchFrom = { ...this.searchFrom, ...e };
  296. this.doSearch();
  297. },
  298. reload() {
  299. this.page = 1;
  300. this.getList();
  301. },
  302. scrolltolower() {
  303. if (isEnd) return;
  304. this.page++;
  305. this.getList();
  306. },
  307. async getList() {
  308. const params = {
  309. ...this.searchFrom,
  310. pageNum: this.page,
  311. size: this.size,
  312. };
  313. if (
  314. params.status !== undefined &&
  315. params.status !== null &&
  316. params.status !== "" &&
  317. this.tabValue !== "4"
  318. ) {
  319. params.status = params.status;
  320. }
  321. if (this.tabValue === "3") {
  322. const userInfo = uni.getStorageSync("userInfo") || {};
  323. params.teamIdsStr = userInfo.teamId || "";
  324. }
  325. Object.keys(params).forEach((k) => {
  326. if (params[k] === "" || params[k] === null || params[k] === undefined) {
  327. delete params[k];
  328. }
  329. });
  330. const api =
  331. this.tabValue === "1"
  332. ? pageByCurrentUser
  333. : this.tabValue === "2"
  334. ? pageByCurrentUserLeader
  335. : this.tabValue === "3"
  336. ? pageByCurrentCurrentUserTeam
  337. : getNCtaskListData;
  338. isEnd = false;
  339. try {
  340. const res = await api(params);
  341. if (!res) return;
  342. if (this.page === 1) this.dataList = [];
  343. const list = res.list || [];
  344. this.dataList.push(...list);
  345. // 判断是否到底:优先用 total/count,否则看本次返回数量是否小于 pageSize
  346. if (res.total !== undefined || res.count !== undefined) {
  347. const total = res.total || res.count;
  348. isEnd = this.dataList.length >= total;
  349. } else {
  350. isEnd = list.length < this.size;
  351. }
  352. } catch (err) {
  353. uni.showToast({ title: err.message || "加载失败", icon: "none" });
  354. }
  355. },
  356. /* 卡片操作的可见性条件(与 PC 端保持一致) */
  357. canAcceptReject(row) {
  358. const result =
  359. row.disposalStatus != "1" &&
  360. row.disposalStatus != "2" &&
  361. this.tabValue !== "2" &&
  362. this.tabValue !== "4";
  363. return result;
  364. },
  365. canReport(row) {
  366. if (this.tabValue === "4") {
  367. return !row.status || row.status.code != 5;
  368. }
  369. const noInspect =
  370. row.disposalStatus == "1" && row.hasFirstArticleDualInspection == "0";
  371. const inspectDone =
  372. row.disposalStatus == "1" &&
  373. row.totalFirstArticleDualInspectionStatus == 2 &&
  374. row.hasFirstArticleDualInspection == "1";
  375. return noInspect || inspectDone;
  376. },
  377. disposalText(s) {
  378. if (s == 0) return "待接收";
  379. if (s == 1) return "已接收";
  380. if (s == 2) return "已拒绝";
  381. return "";
  382. },
  383. disposalCls(s) {
  384. if (s == 0) return "tag-warn";
  385. if (s == 1) return "tag-success";
  386. if (s == 2) return "tag-danger";
  387. return "";
  388. },
  389. async receiveTask(id, type) {
  390. try {
  391. const res = await taskManagement({ id, disposalStatus: Number(type) });
  392. console.log("[receiveTask] api success", res);
  393. uni.showToast({
  394. title: type === "1" ? "已接收" : "已拒绝",
  395. icon: "success",
  396. });
  397. this.reload();
  398. } catch (err) {
  399. console.error("[receiveTask] api error", err);
  400. uni.showToast({
  401. title: err.message || err || "操作失败",
  402. icon: "none",
  403. });
  404. }
  405. },
  406. reassignTask(row) {
  407. this.$refs.reassignRef.open(row);
  408. },
  409. viewRecords(apsAssigneeId) {
  410. listUpdateRealTimeRecord(apsAssigneeId)
  411. .then((res) => {
  412. if (res && res.length > 0) {
  413. this.$refs.recordRef.open(res);
  414. } else {
  415. uni.showToast({ title: "暂无修改历史记录数据", icon: "none" });
  416. }
  417. })
  418. .catch((err) => {
  419. uni.showToast({ title: err.message || "加载失败", icon: "none" });
  420. });
  421. },
  422. /* 跳转报工/详情/NC */
  423. details(type, row) {
  424. if (this.tabValue === "4") {
  425. if (type === "detail") {
  426. this.$refs.ncReportRef.open(
  427. JSON.parse(JSON.stringify(row)),
  428. "detail",
  429. );
  430. return;
  431. }
  432. const data = {
  433. realStartTime: "",
  434. realEndTime: "",
  435. brandNum: row.brandNum,
  436. categoryName: row.categoryName,
  437. categoryCode: row.categoryCode,
  438. code: row.code,
  439. productionPlanCode: row.productionPlanCode,
  440. produceRoutingName: row.produceRoutingName,
  441. taskName: row.taskName,
  442. modelType: row.modelType,
  443. specification: row.specification,
  444. fileParam: [],
  445. reportRemark: row.reportRemark,
  446. id: row.id,
  447. sourceTaskId: row.sourceTaskId,
  448. };
  449. this.$refs.ncReportRef.open(data);
  450. return;
  451. }
  452. const currentRow = {
  453. assignCode: row.assignCode,
  454. mesWorkOrderCode: row.mesWorkOrderCode,
  455. workOrderCode: row.workOrderCode,
  456. workOrderId: row.workOrderId,
  457. productionPlanCode: row.productionPlanCode,
  458. produceRoutingName: row.produceRoutingName,
  459. formingNum: row.formingNum,
  460. assignTeamName: row.assignTeamName,
  461. formingWeight: row.formingWeight,
  462. planStartTime: row.planStartTime,
  463. planCompleteTime: row.planCompleteTime,
  464. startTime: row.startTime,
  465. firstTaskId: row.firstTaskId,
  466. endTime: row.endTime,
  467. taskName: row.taskName,
  468. firstTaskName: row.firstTaskName,
  469. assigneeType: row.assigneeType ? row.assigneeType.desc : "",
  470. assigneeName: row.assigneeName,
  471. weight: row.weight,
  472. quantity: row.quantity,
  473. durationText: row.durationText,
  474. apsAssigneeId: row.id,
  475. batchNo: row.batchNo,
  476. productCode: row.productCode,
  477. productName: row.productName,
  478. specification: row.specification,
  479. newWeightUnit: row.newWeightUnit,
  480. measuringUnit: row.measuringUnit,
  481. reportQuantityReported: row.reportQuantity || 0,
  482. lossQuantityReported: row.lossQuantity || 0,
  483. };
  484. const taskQuantity = Number(row.quantity) || 0;
  485. const actualQuantity = this.add(
  486. row.reportQuantity ? row.reportQuantity : 0,
  487. row.lossQuantity ? row.lossQuantity : 0,
  488. );
  489. const remaining = Math.max(this.sub(taskQuantity, actualQuantity), 0);
  490. const form = {
  491. realEndTime: row.realEndTime,
  492. realStartTime: row.realStartTime,
  493. remark: row.assigneeRemark,
  494. reportQuantity: row.reportQuantity ? remaining : taskQuantity,
  495. lossQuantity: 0,
  496. workOrderCode: row.workOrderCode,
  497. workOrderId: row.workOrderId,
  498. taskId: row.taskId,
  499. };
  500. this.$refs.reportRef.open(type, currentRow, form);
  501. },
  502. getDecimalLength(num) {
  503. return (num.toString().split(".")[1] || "").length;
  504. },
  505. toInteger(num) {
  506. const len = this.getDecimalLength(num);
  507. return {
  508. int: Math.round(num * Math.pow(10, len)),
  509. factor: Math.pow(10, len),
  510. };
  511. },
  512. add(a, b) {
  513. const { int: aInt, factor: aFactor } = this.toInteger(a);
  514. const { int: bInt, factor: bFactor } = this.toInteger(b);
  515. const maxFactor = Math.max(aFactor, bFactor);
  516. return (
  517. (aInt * (maxFactor / aFactor) + bInt * (maxFactor / bFactor)) /
  518. maxFactor
  519. );
  520. },
  521. sub(a, b) {
  522. const { int: aInt, factor: aFactor } = this.toInteger(a);
  523. const { int: bInt, factor: bFactor } = this.toInteger(b);
  524. const maxFactor = Math.max(aFactor, bFactor);
  525. return (
  526. (aInt * (maxFactor / aFactor) - bInt * (maxFactor / bFactor)) /
  527. maxFactor
  528. );
  529. },
  530. },
  531. };
  532. </script>
  533. <style lang="scss" scoped>
  534. .content-box {
  535. height: 100vh;
  536. display: flex;
  537. flex-direction: column;
  538. background-color: $page-bg;
  539. }
  540. .tabs_wrap {
  541. display: flex;
  542. background: #fff;
  543. border-bottom: 1rpx solid #eee;
  544. .tab_item {
  545. flex: 1;
  546. text-align: center;
  547. padding: 22rpx 0;
  548. font-size: 28rpx;
  549. color: #666;
  550. position: relative;
  551. &.active {
  552. color: $theme-color;
  553. font-weight: 600;
  554. &::after {
  555. content: "";
  556. position: absolute;
  557. left: 50%;
  558. bottom: 0;
  559. transform: translateX(-50%);
  560. width: 60rpx;
  561. height: 4rpx;
  562. background: $theme-color;
  563. border-radius: 2rpx;
  564. }
  565. }
  566. }
  567. }
  568. .top-wrapper {
  569. background: #fff;
  570. display: flex;
  571. align-items: center;
  572. padding: 20rpx 26rpx;
  573. gap: 20rpx;
  574. box-sizing: border-box;
  575. .search_btn {
  576. padding: 0 26rpx;
  577. height: 64rpx;
  578. line-height: 64rpx;
  579. background: $theme-color;
  580. color: #fff;
  581. border-radius: 8rpx;
  582. font-size: 26rpx;
  583. white-space: nowrap;
  584. }
  585. }
  586. .list_box {
  587. // flex: 1;
  588. min-height: 0;
  589. overflow: hidden;
  590. padding: 16rpx 0;
  591. display: flex;
  592. flex-direction: column;
  593. /deep/ .u-list {
  594. flex: 1;
  595. height: 0 !important;
  596. min-height: 0;
  597. padding: 20rpx;
  598. }
  599. .card_box {
  600. width: 100%;
  601. padding: 24rpx 28rpx;
  602. box-sizing: border-box;
  603. border-bottom: 2rpx solid #f0f0f0;
  604. background: #fff;
  605. border-radius: 12rpx;
  606. margin-bottom: 16rpx;
  607. .item_box {
  608. display: flex;
  609. flex-wrap: wrap;
  610. align-items: center;
  611. margin-top: 14rpx;
  612. .round {
  613. width: 46rpx;
  614. height: 46rpx;
  615. line-height: 46rpx;
  616. border-radius: 50%;
  617. background: $theme-color;
  618. color: #fff;
  619. font-size: 24rpx;
  620. text-align: center;
  621. margin-right: 16rpx;
  622. flex-shrink: 0;
  623. }
  624. .item_one {
  625. width: 100%;
  626. display: flex;
  627. font-size: 26rpx;
  628. line-height: 44rpx;
  629. color: #333;
  630. word-wrap: break-word;
  631. .lable {
  632. color: #666;
  633. margin-right: 8rpx;
  634. flex-shrink: 0;
  635. }
  636. .val {
  637. flex: 1;
  638. word-break: break-all;
  639. }
  640. }
  641. .perce50 {
  642. width: 48%;
  643. }
  644. .perce100 {
  645. width: 100%;
  646. }
  647. }
  648. .tag {
  649. display: inline-block;
  650. padding: 0 12rpx;
  651. height: 36rpx;
  652. line-height: 36rpx;
  653. font-size: 22rpx;
  654. border-radius: 4rpx;
  655. margin-right: 8rpx;
  656. background: #f0f0f0;
  657. color: #555;
  658. &.tag-warn {
  659. background: #fff7e6;
  660. color: #fa8c16;
  661. }
  662. &.tag-success {
  663. background: #e6f6ec;
  664. color: $theme-color;
  665. }
  666. &.tag-danger {
  667. background: #ffece8;
  668. color: #f5222d;
  669. }
  670. &.tag-default {
  671. background: #f0f0f0;
  672. color: #555;
  673. }
  674. }
  675. .action_row {
  676. display: flex;
  677. flex-wrap: wrap;
  678. gap: 14rpx;
  679. margin-top: 20rpx;
  680. padding-top: 14rpx;
  681. border-top: 1rpx dashed #eee;
  682. .op_btn {
  683. height: 56rpx;
  684. line-height: 56rpx;
  685. padding: 0 22rpx;
  686. border-radius: 6rpx;
  687. font-size: 24rpx;
  688. margin: 0;
  689. }
  690. .primary {
  691. background: $theme-color;
  692. color: #fff;
  693. }
  694. .warn {
  695. background: #fff;
  696. color: #fa8c16;
  697. border: 1rpx solid #fa8c16;
  698. }
  699. .ghost {
  700. background: #fff;
  701. color: $theme-color;
  702. border: 1rpx solid $theme-color;
  703. }
  704. }
  705. }
  706. }
  707. </style>