index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887
  1. <template>
  2. <!-- 生产首页 -->
  3. <view class="content-box">
  4. <uni-nav-bar
  5. fixed="true"
  6. statusBar="true"
  7. left-icon="back"
  8. :title="title"
  9. background-color="#157A2C"
  10. color="#fff"
  11. @clickLeft="back"
  12. ></uni-nav-bar>
  13. <view class="top-wrapper cx">
  14. <stepsNav
  15. v-if="info.taskId && stepsList.length"
  16. :stepsList="stepsList"
  17. :taskId="info.taskId"
  18. @selectStep="selectStep"
  19. ></stepsNav>
  20. <view class="tab_box rx-sc">
  21. <view
  22. class="tab_item"
  23. :class="{ active: tabType == 1 }"
  24. @click="handTab(1)"
  25. >基本信息</view
  26. >
  27. <view
  28. class="tab_item"
  29. :class="{ active: tabType == 2 }"
  30. @click="handTab(2)"
  31. >生产明细</view
  32. >
  33. <view
  34. class="tab_item"
  35. :class="{ active: tabType == 3 }"
  36. @click="handTab(3)"
  37. >详情</view
  38. >
  39. </view>
  40. </view>
  41. <view class="list_box">
  42. <u-list @scrolltolower="scrolltolower" key="info" v-if="tabType == 1">
  43. <!-- 工单信息卡片 -->
  44. <view class="info-card">
  45. <view class="info-card__header">
  46. <view class="info-card__header-bar"></view>
  47. <text class="info-card__header-title">工单信息</text>
  48. </view>
  49. <view class="info-card__body">
  50. <view class="info-row full">
  51. <text class="info-label">生产工单号</text>
  52. <text class="info-value highlight">{{ info.code }}</text>
  53. </view>
  54. <view class="info-row full">
  55. <text class="info-label">计划编号</text>
  56. <text class="info-value">{{ info.productionPlanCode }}</text>
  57. </view>
  58. <view class="info-row full">
  59. <text class="info-label">工艺路线</text>
  60. <text class="info-value highlight">{{ info.produceRoutingName }}</text>
  61. </view>
  62. <view class="info-grid">
  63. <view class="info-row half">
  64. <text class="info-label">批次号</text>
  65. <text class="info-value highlight">{{ info.batchNo }}</text>
  66. </view>
  67. <view class="info-row half">
  68. <text class="info-label">委外状态</text>
  69. <text class="info-value">{{ info.outsourceStatus | outsourceStatusText }}</text>
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. <!-- 产品信息卡片 -->
  75. <view class="info-card">
  76. <view class="info-card__header">
  77. <view class="info-card__header-bar"></view>
  78. <text class="info-card__header-title">产品信息</text>
  79. </view>
  80. <view class="info-card__body">
  81. <view class="info-row full">
  82. <text class="info-label">编码</text>
  83. <text class="info-value">{{ info.productCode }}</text>
  84. </view>
  85. <view class="info-row full">
  86. <text class="info-label">名称</text>
  87. <text class="info-value">{{ info.productName }}</text>
  88. </view>
  89. <view class="info-grid">
  90. <view class="info-row half">
  91. <text class="info-label">牌号</text>
  92. <text class="info-value">{{ info.brandNo }}</text>
  93. </view>
  94. <view class="info-row half">
  95. <text class="info-label">规格</text>
  96. <text class="info-value">{{ info.specification }}</text>
  97. </view>
  98. </view>
  99. <view class="info-row full">
  100. <text class="info-label">型号</text>
  101. <text class="info-value">{{ info.model }}</text>
  102. </view>
  103. </view>
  104. </view>
  105. <!-- 生产信息卡片 -->
  106. <view class="info-card">
  107. <view class="info-card__header">
  108. <view class="info-card__header-bar"></view>
  109. <text class="info-card__header-title">生产信息</text>
  110. </view>
  111. <view class="info-card__body">
  112. <view class="info-grid">
  113. <view class="info-row half">
  114. <text class="info-label">要求数量</text>
  115. <text class="info-value">{{ info.formingNum }} {{ info.unit }}</text>
  116. </view>
  117. <view class="info-row half">
  118. <text class="info-label">要求重量</text>
  119. <text class="info-value">{{ info.formingWeight }} {{ info.weightUnit }}</text>
  120. </view>
  121. </view>
  122. <view class="info-grid">
  123. <view class="info-row half">
  124. <text class="info-label">已完成数量</text>
  125. <text class="info-value highlight">{{ info.formedNum }}</text>
  126. </view>
  127. <view class="info-row half">
  128. <text class="info-label">已完成重量</text>
  129. <text class="info-value highlight">{{ info.formedWeight }}</text>
  130. </view>
  131. </view>
  132. <view class="info-grid">
  133. <view class="info-row half">
  134. <text class="info-label">报工类型</text>
  135. <text class="info-value">{{ info.singleReport == 1 ? "单个报工" : "批量报工" }}</text>
  136. </view>
  137. <view class="info-row half">
  138. <text class="info-label">领料状态</text>
  139. <text class="info-value">{{ isPickingStatus }}</text>
  140. </view>
  141. </view>
  142. <view class="info-row full">
  143. <text class="info-label">投料状态</text>
  144. <text class="info-value">{{ isFeedStatus }}</text>
  145. </view>
  146. </view>
  147. </view>
  148. <!-- 计划时间卡片 -->
  149. <view class="info-card">
  150. <view class="info-card__header">
  151. <view class="info-card__header-bar"></view>
  152. <text class="info-card__header-title">计划时间</text>
  153. </view>
  154. <view class="info-card__body">
  155. <view class="info-row full">
  156. <text class="info-label">开始时间</text>
  157. <text class="info-value">{{ info.planStartTime }}</text>
  158. </view>
  159. <view class="info-row full">
  160. <text class="info-label">结束时间</text>
  161. <text class="info-value">{{ info.planCompleteTime }}</text>
  162. </view>
  163. </view>
  164. </view>
  165. <!-- 底部留白 -->
  166. <view style="height: 20rpx;"></view>
  167. </u-list>
  168. <u-list @scrolltolower="scrolltolower" key="detail" v-if="tabType == 2">
  169. <view
  170. v-for="(item, index) in produceList"
  171. :key="index"
  172. class="detail-list"
  173. >
  174. <view class="name"
  175. >{{ item.taskName }}
  176. <text v-if="index == 0" style="color: #157a2c; font-size: 32rpx">
  177. (首工序)</text
  178. >
  179. </view>
  180. <view class="list rx-bc" @click="handDetails(item)">
  181. <view class="title rx-sc">
  182. <image class="icon" src="~@/static/pda/layers.svg"></image>
  183. 待投料数量
  184. </view>
  185. <view class="rx-ec" v-if="item.firstTaskDetails.length > 0">
  186. <text style="color: #157a2c; font-size: 24rpx"> 明细</text>
  187. <image
  188. class="arrow_right2"
  189. src="~@/static/pda/arrow_right2.svg"
  190. ></image>
  191. </view>
  192. <view class="rx-ec" v-else>
  193. {{ item.waitFeedNum }}
  194. <image
  195. class="arrow_right2"
  196. src="~@/static/pda/arrow_right2.svg"
  197. ></image>
  198. </view>
  199. </view>
  200. <view class="list rx-bc" @click="handDetails(item)">
  201. <view class="title rx-sc">
  202. <image class="icon" src="~@/static/pda/check-square.svg"></image>
  203. 已投料数量
  204. </view>
  205. <view class="rx-ec" v-if="item.firstTaskDetails.length > 0">
  206. <text style="color: #157a2c; font-size: 24rpx"> 明细</text>
  207. <image
  208. class="arrow_right2"
  209. src="~@/static/pda/arrow_right2.svg"
  210. ></image>
  211. </view>
  212. <view class="rx-ec" v-else>
  213. {{ item.feedNum }}
  214. <image
  215. class="arrow_right2"
  216. src="~@/static/pda/arrow_right2.svg"
  217. ></image>
  218. </view>
  219. </view>
  220. <view class="list rx-bc">
  221. <view class="title rx-sc">
  222. <image class="icon" src="~@/static/pda/target.svg"></image>
  223. 已报工数量
  224. </view>
  225. <view class="rx-ec">
  226. {{ item.reportedNum }}
  227. <image
  228. class="arrow_right2"
  229. src="~@/static/pda/arrow_right2.svg"
  230. ></image>
  231. </view>
  232. </view>
  233. </view>
  234. </u-list>
  235. <u-list
  236. @scrolltolower="scrolltolower"
  237. key="btnDeatils"
  238. v-if="tabType == 3"
  239. >
  240. <view style="margin-top: 15px">
  241. <button class="search_btn" @click="handleDetails">报工详情</button>
  242. </view>
  243. <view style="margin-top: 15px">
  244. <button class="search_btn" @click="handleFeedDetails">
  245. 投料详情
  246. </button>
  247. </view>
  248. </u-list>
  249. </view>
  250. <!-- // 按钮组件 -->
  251. <view class="bottom-wrapper">
  252. <bottomOperate
  253. @operate="operate"
  254. @refresh="refresh"
  255. :taskObj="{
  256. currentTaskName: currentTaskName || info.taskName,
  257. currentTaskId: currentTaskId || info.taskId,
  258. workOrderId: id,
  259. existOutsource: existOutsource,
  260. }"
  261. :state="currentType"
  262. :gdStatus="info.status"
  263. :controlReportMethod="controlReportMethod"
  264. :stepsList="stepsList"
  265. :info="info"
  266. ></bottomOperate>
  267. </view>
  268. <productionDetailed ref="productionDetailedRef"> </productionDetailed>
  269. </view>
  270. </template>
  271. <script>
  272. import bottomOperate from "../../components/bottomOperate.vue";
  273. import stepsNav from "../../components/stepsNav.vue";
  274. import productionDetailed from "./productionDetailed.vue";
  275. import {
  276. getTaskInstanceList,
  277. workorderInfo,
  278. produceDetail,
  279. checkStatus,
  280. skipTask,
  281. } from "@/api/pda/workOrder.js";
  282. export default {
  283. components: {
  284. bottomOperate,
  285. stepsNav,
  286. productionDetailed,
  287. },
  288. filters: {
  289. outsourceStatusText(v) {
  290. return v == 1 ? "未委外" : v == 2 ? "委外中" : v == 3 ? "完成委外" : "";
  291. },
  292. },
  293. computed: {
  294. isFeedStatus() {
  295. const currentStep = this.stepsList?.[this.currentStepIndex];
  296. // 投料状态 0未投料 1已投料 2已报工
  297. return (
  298. this.feedStatusOption.find(
  299. (item) => item.value === currentStep?.feedStatus,
  300. )?.label || ""
  301. );
  302. },
  303. isPickingStatus() {
  304. const currentStep = this.stepsList?.[this.currentStepIndex];
  305. // 领料状态 0未领料 1领料中2已出库3已驳回
  306. return (
  307. this.pickStatusOption.find(
  308. (item) => item.value === currentStep?.pickStatus,
  309. )?.label || ""
  310. );
  311. },
  312. },
  313. data() {
  314. return {
  315. title: "",
  316. tabType: 1,
  317. id: null,
  318. stepsList: [],
  319. info: {},
  320. taskId: null,
  321. singleReport: null, // 报工类型 1单个报工 2批量报工
  322. produceList: [],
  323. feedAllow: true,
  324. currentTaskId: null,
  325. currentTaskName: null,
  326. currentType: 1,
  327. existOutsource: 0,
  328. controlReportMethod: null,
  329. clientEnvironmentId:
  330. uni.getStorageSync("userInfo") &&
  331. uni.getStorageSync("userInfo").clientEnvironmentId, // *1 主环境-601环境 2 soll-索尔环境 3 tg-碳谷环境
  332. feedNeedEquipment: 1, //投料是否要添加生产设备1是0否
  333. currentStepIndex: 0, // 当前步骤索引
  334. pickStatusOption: [
  335. {
  336. label: "未领料",
  337. value: 0,
  338. },
  339. {
  340. label: "领料中",
  341. value: 1,
  342. },
  343. {
  344. label: "已出库",
  345. value: 2,
  346. },
  347. {
  348. label: "已驳回",
  349. value: 3,
  350. },
  351. ],
  352. feedStatusOption: [
  353. {
  354. label: "未投料",
  355. value: 0,
  356. },
  357. {
  358. label: "已投料",
  359. value: 1,
  360. },
  361. {
  362. label: "已报工",
  363. value: 2,
  364. },
  365. ],
  366. };
  367. },
  368. onLoad(options) {
  369. this.title = options.title;
  370. this.id = options.id;
  371. this.singleReport = options.singleReport; // 报工类型
  372. uni.showLoading({
  373. title: "加载中",
  374. });
  375. },
  376. onShow() {
  377. this.getInfo();
  378. this.getSteps();
  379. this.produce(); // 生产明细
  380. },
  381. methods: {
  382. scrolltolower() {},
  383. handTab(type) {
  384. if (type != this.tabType) {
  385. this.tabType = type;
  386. }
  387. },
  388. getSteps() {
  389. getTaskInstanceList(this.id).then((res) => {
  390. // for(let i = 0; i < res.length; i++) {
  391. // if(res[i].taskTypeName == '自然干燥' ||res[i].taskTypeName == '升温干燥') {
  392. // res[i - 1].btns = [ { name: '更换周转车', type: 'turnover'}]
  393. // }
  394. // }
  395. this.stepsList = res;
  396. this.setTypeFn();
  397. });
  398. },
  399. refresh() {
  400. console.log(1);
  401. this.getInfo();
  402. },
  403. getInfo() {
  404. workorderInfo(this.id)
  405. .then((res) => {
  406. console.log(res, 99999999999);
  407. this.info = res;
  408. this.taskId = res.taskId;
  409. this.setTypeFn();
  410. this.feedStatus();
  411. uni.hideLoading();
  412. })
  413. .catch(() => {
  414. uni.hideLoading();
  415. });
  416. },
  417. setTypeFn() {
  418. this.stepsList.length &&
  419. this.stepsList.find((f) => {
  420. let id = this.currentTaskId || this.taskId;
  421. if (f.taskId == id) {
  422. ((this.currentType = f.type),
  423. (this.existOutsource = f.existOutsource));
  424. this.controlReportMethod = f.controlReportMethod;
  425. this.currentStepIndex = f.index;
  426. }
  427. });
  428. },
  429. feedStatus() {
  430. let taskId = this.currentTaskId || this.taskId;
  431. checkStatus(this.id, taskId).then((res) => {
  432. this.feedAllow = res;
  433. });
  434. },
  435. // 点击工序列表
  436. selectStep(item) {
  437. console.log("item", item);
  438. this.currentTaskId = item.taskId;
  439. this.currentTaskName = item.taskTypeName;
  440. this.existOutsource = item.existOutsource;
  441. this.currentType = item.type;
  442. this.controlReportMethod = item.controlReportMethod;
  443. this.feedNeedEquipment = item.feedNeedEquipment;
  444. this.currentStepIndex = item.index;
  445. this.feedStatus();
  446. },
  447. // 点击之后调用事件
  448. operate(type, item) {
  449. console.log(4444, type, item);
  450. // if (this.info.outsourceStatus == 2) {
  451. // uni.showToast({
  452. // title: "工单在委外中",
  453. // icon: "none",
  454. // })
  455. // return false
  456. // }
  457. if (this.info.status == 9) {
  458. uni.showToast({
  459. title: "工单在暂停中",
  460. icon: "none",
  461. });
  462. return false;
  463. }
  464. if (this.info.status == 10) {
  465. uni.showToast({
  466. title: "工单已终止",
  467. icon: "none",
  468. });
  469. return false;
  470. }
  471. let url;
  472. let taskId = this.currentTaskId || this.taskId;
  473. let taskName = this.currentTaskName || this.info.taskName;
  474. if (type == "picking") {
  475. url = "/pages/pda/picking/details";
  476. let _arr = JSON.stringify([this.info.id]);
  477. url += `?arr=${encodeURIComponent(_arr)}&taskId=${taskId}`;
  478. uni.navigateTo({
  479. url,
  480. });
  481. }
  482. // 投料
  483. else if (type == "feeding") {
  484. // this.outsourceForm.isFirstTask
  485. // 碳谷走老逻辑 批量走 老逻辑
  486. if (this.clientEnvironmentId == 3 || this.info.singleReport !== 1) {
  487. url = "/pages/pda/feeding/details";
  488. let _arr = JSON.stringify([this.info.id]);
  489. url += `?arr=${encodeURIComponent(
  490. _arr,
  491. )}&taskId=${taskId}&taskName=${taskName}&type=${type}&feedNeedEquipment=${
  492. this.feedNeedEquipment
  493. }`;
  494. } else {
  495. // 单个投料
  496. let arr = this.stepsList.find((f) => f.taskId == this.info.taskId);
  497. // 首工序走老逻辑
  498. console.log(arr.isFirstTask, "11111");
  499. if (arr.isFirstTask == 1) {
  500. url = "/pages/pda/feeding/details";
  501. let _arr = JSON.stringify([this.info.id]);
  502. url += `?arr=${encodeURIComponent(
  503. _arr,
  504. )}&taskId=${taskId}&taskName=${taskName}&type=${type}&feedNeedEquipment=${
  505. this.feedNeedEquipment
  506. }&taskType=${this.currentType}`;
  507. } else {
  508. // 首工序
  509. url = "/pages/pda/feeding/details";
  510. let _arr = JSON.stringify([this.info.id]);
  511. url += `?arr=${encodeURIComponent(
  512. _arr,
  513. )}&taskId=${taskId}&taskName=${taskName}&type=${type}&feedNeedEquipment=${
  514. this.feedNeedEquipment
  515. }&taskType=${this.currentType}`;
  516. }
  517. }
  518. uni.navigateTo({
  519. url,
  520. });
  521. }
  522. // 报工
  523. else if (type == "jobBooking") {
  524. // if (!this.feedAllow || this.clientEnvironmentId == 3) {
  525. // } else {
  526. // uni.showToast({
  527. // title: "请先投料",
  528. // icon: "none",
  529. // })
  530. // }
  531. url = "/pages/pda/jobBooking/index/index";
  532. url += `?id=${this.info.id}&taskId=${taskId}&taskName=${taskName}
  533. &taskType=${this.currentType}&isOutsource=${item.isOutsource || 0}
  534. &categoryId=${this.info.categoryId}&singleReport=${this.info.singleReport}`;
  535. uni.navigateTo({
  536. url,
  537. });
  538. } else if (type == "turnover") {
  539. url = "/pages/pda/turnover/index/index";
  540. url += `?workOrderId=${this.info.id}&taskId=${taskId}&taskName=${taskName}`;
  541. uni.navigateTo({
  542. url,
  543. });
  544. } else if (type == "qualityTurnover") {
  545. url = "/pages/pda/turnover/index/quality";
  546. url += `?workOrderId=${this.info.id}&taskId=${taskId}&taskName=${taskName}`;
  547. uni.navigateTo({
  548. url,
  549. });
  550. } else if (type == "sample") {
  551. url = "/pages/pda/sample/index/index";
  552. url += `?workOrderId=${this.info.id}&taskId=${taskId}&taskName=${taskName}`;
  553. uni.navigateTo({
  554. url,
  555. });
  556. } else if (type == "sampleJob") {
  557. url = "/pages/pda/sample/index/jobBooking";
  558. url += `?workOrderId=${this.info.id}&taskId=${taskId}&taskName=${taskName}`;
  559. uni.navigateTo({
  560. url,
  561. });
  562. } else if (type == "inspection") {
  563. url = "/pages/pda/sample/inspection/index";
  564. url += `?workOrderId=${this.info.id}&taskId=${taskId}&taskName=${taskName}`;
  565. uni.navigateTo({
  566. url,
  567. });
  568. } else if (type == "inspectionJob") {
  569. url = "/pages/pda/sample/inspection/job";
  570. url += `?workOrderId=${this.info.id}&taskId=${taskId}&taskName=${taskName}`;
  571. uni.navigateTo({
  572. url,
  573. });
  574. } else if (type == "warehousing") {
  575. url = "/pages/pda/warehousing/index";
  576. url += `?workOrderId=${this.info.id}&taskId=${taskId}`;
  577. uni.navigateTo({
  578. url,
  579. });
  580. } else if (type == "skip") {
  581. uni.showModal({
  582. title: "提示",
  583. content: `是否跳过${taskName}工序!`,
  584. confirmText: "确认", //这块是确定按钮的文字
  585. success: (rr) => {
  586. if (rr.confirm) {
  587. let param = {
  588. taskId: this.currentTaskId || this.taskId,
  589. workOrderId: this.id,
  590. };
  591. skipTask(param).then((res) => {
  592. console.log(res);
  593. });
  594. } else {
  595. }
  596. },
  597. });
  598. } else if (type == "outPicking") {
  599. url = "/pages/pda/picking/details";
  600. let _arr = JSON.stringify([this.info.id]);
  601. url += `?arr=${encodeURIComponent(
  602. _arr,
  603. )}&taskId=${taskId}&isOutsource=1`;
  604. uni.navigateTo({
  605. url,
  606. });
  607. }
  608. },
  609. produce() {
  610. produceDetail(this.id).then((res) => {
  611. this.produceList = res.produceDetail;
  612. });
  613. },
  614. handleDetails() {
  615. let taskId = this.currentTaskId || this.taskId;
  616. let taskName = this.currentTaskName || this.info.taskName;
  617. let url = "/pages/pda/workOrder/index/details";
  618. url += `?id=${this.info.id}&taskId=${taskId}&taskName=${taskName}&taskType=${this.currentType}`;
  619. uni.navigateTo({
  620. url,
  621. });
  622. },
  623. handleFeedDetails() {
  624. let taskId = this.currentTaskId || this.taskId;
  625. let url = "/pages/pda/feeding/bill/index";
  626. url += `?id=${this.info.id}&taskId=${taskId}`;
  627. uni.navigateTo({
  628. url,
  629. });
  630. },
  631. handDetails(item) {
  632. if (this.clientEnvironmentId == 2) {
  633. if (item.firstTaskDetails.length > 0) {
  634. this.$refs.productionDetailedRef.open(item);
  635. } else {
  636. uni.showToast({
  637. title: "暂无明细",
  638. icon: "none",
  639. });
  640. }
  641. }
  642. },
  643. },
  644. };
  645. </script>
  646. <style lang="scss" scoped>
  647. .content-box {
  648. height: 100vh;
  649. overflow: hidden;
  650. display: flex;
  651. flex-direction: column;
  652. background-color: $page-bg;
  653. }
  654. .top-wrapper {
  655. background-color: #fff;
  656. display: flex;
  657. width: 750rpx;
  658. background: #fff;
  659. align-items: center;
  660. }
  661. .tab_box {
  662. width: 100%;
  663. height: 68rpx;
  664. .tab_item {
  665. height: 68rpx;
  666. line-height: 68rpx;
  667. padding: 0 20rpx;
  668. font-size: 32rpx;
  669. color: #979c9e;
  670. }
  671. .active {
  672. box-sizing: border-box;
  673. border-bottom: 6rpx solid $theme-color;
  674. color: $theme-color;
  675. }
  676. }
  677. .list_box {
  678. flex: 1;
  679. overflow: hidden;
  680. padding: 4rpx 0;
  681. .u-list {
  682. height: 100% !important;
  683. }
  684. /* 基本信息 - 卡片样式 */
  685. .info-card {
  686. width: calc(100% - 48rpx);
  687. margin: 20rpx 24rpx 0;
  688. background: #ffffff;
  689. border-radius: 16rpx;
  690. box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.06);
  691. overflow: hidden;
  692. .info-card__header {
  693. display: flex;
  694. align-items: center;
  695. padding: 24rpx 28rpx;
  696. background: linear-gradient(135deg, rgba(21, 122, 44, 0.06) 0%, rgba(21, 122, 44, 0.02) 100%);
  697. border-bottom: 1rpx solid #f0f0f0;
  698. .info-card__header-bar {
  699. width: 6rpx;
  700. height: 32rpx;
  701. background: $theme-color;
  702. border-radius: 3rpx;
  703. margin-right: 16rpx;
  704. flex-shrink: 0;
  705. }
  706. .info-card__header-title {
  707. font-size: 30rpx;
  708. font-weight: 600;
  709. color: $uni-text-color;
  710. }
  711. }
  712. .info-card__body {
  713. padding: 16rpx 28rpx 8rpx;
  714. }
  715. }
  716. .info-grid {
  717. display: flex;
  718. flex-wrap: nowrap;
  719. }
  720. .info-row {
  721. display: flex;
  722. align-items: center;
  723. padding: 14rpx 0;
  724. box-sizing: border-box;
  725. overflow: hidden;
  726. &.half {
  727. width: 50%;
  728. &:nth-child(odd) {
  729. padding-right: 16rpx;
  730. }
  731. &:nth-child(even) {
  732. padding-left: 16rpx;
  733. }
  734. }
  735. &.full {
  736. width: 100%;
  737. }
  738. }
  739. .info-label {
  740. color: $uni-text-color-grey;
  741. font-size: 28rpx;
  742. flex-shrink: 0;
  743. margin-right: 8rpx;
  744. line-height: 40rpx;
  745. white-space: nowrap;
  746. &::after {
  747. content: ':';
  748. }
  749. }
  750. .info-value {
  751. color: $uni-text-color;
  752. font-size: 28rpx;
  753. flex: 1;
  754. line-height: 40rpx;
  755. min-width: 0;
  756. overflow: hidden;
  757. text-overflow: ellipsis;
  758. white-space: nowrap;
  759. &.highlight {
  760. color: $theme-color;
  761. }
  762. }
  763. .detail-list {
  764. line-height: 80rpx;
  765. .name {
  766. color: #090a0a;
  767. font-size: 32rpx;
  768. font-weight: 600;
  769. padding: 0 32rpx;
  770. box-sizing: border-box;
  771. border-bottom: 1rpx solid #e3e5e5;
  772. }
  773. .list {
  774. padding: 0 32rpx;
  775. box-sizing: border-box;
  776. border-bottom: 1rpx solid #e3e5e5;
  777. .title {
  778. font-weight: 400;
  779. color: #090a0a;
  780. }
  781. .icon {
  782. width: 36rpx;
  783. height: 36rpx;
  784. margin-right: 8rpx;
  785. }
  786. .arrow_right2 {
  787. width: 12rpx;
  788. height: 24rpx;
  789. margin-left: 8rpx;
  790. }
  791. }
  792. }
  793. }
  794. .bottom-wrapper {
  795. }
  796. .search_btn {
  797. width: 240rpx;
  798. height: 70rpx;
  799. line-height: 70rpx;
  800. padding: 0 24rpx;
  801. background: $theme-color;
  802. font-size: 32rpx;
  803. color: #fff;
  804. margin: 0;
  805. margin-left: 26rpx;
  806. }
  807. </style>