singleJobBom.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803
  1. <template>
  2. <view>
  3. <!-- 单个报工 -->
  4. <view class="title_box rx-bc">
  5. <view class="name">报工信息</view>
  6. </view>
  7. <view class="material">
  8. <view class="content_table">
  9. <view class="item rx-sc">
  10. <view class="rx">
  11. <view class="lable lable150 rx-cc">报工数量</view>
  12. <view class="content">
  13. {{ tableData.length || 0 }}
  14. </view>
  15. </view>
  16. </view>
  17. <view class="item rx-sc">
  18. <view class="rx ww55">
  19. <view class="lable lable150 rx-cc">要求生产数量</view>
  20. <view class="content rx-sc">
  21. <view>{{ item.formingNum }}</view>
  22. <view class="unit">{{ item.unit }}</view>
  23. </view>
  24. </view>
  25. <view class="rx ww45">
  26. <view class="lable rx-cc ww80">重量</view>
  27. <view class="content content_num">
  28. <view>{{ item.formingWeight }}</view>
  29. <view class="unit">{{ item.weightUnit }}</view>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="item rx-sc">
  34. <view class="rx ww55">
  35. <view class="lable lable150 rx-cc">合格品数量</view>
  36. <view class="content content_num">
  37. <input
  38. class="uni-input"
  39. v-model="item.workReportInfo.formedNum"
  40. :disabled="isDetails"
  41. @input="blurNum(item.workReportInfo)"
  42. type="digit"
  43. />
  44. <view class="unit">{{ item.unit }}</view>
  45. </view>
  46. </view>
  47. <view class="rx ww45">
  48. <view class="lable rx-cc ww80">重量</view>
  49. <view class="content content_num">
  50. <input
  51. class="uni-input"
  52. v-model="item.workReportInfo.formedWeight"
  53. type="digit"
  54. :disabled="isDetails"
  55. />
  56. <view class="unit">{{ item.weightUnit }}</view>
  57. </view>
  58. </view>
  59. </view>
  60. <view
  61. class="item rx-sc"
  62. v-for="(not, notIndex) in notFormedList"
  63. :key="notIndex"
  64. >
  65. <view class="rx ww55">
  66. <view class="lable lable150 rx-cc">不合格数量</view>
  67. <view class="content content_num">
  68. <!-- //详情 -->
  69. <input
  70. class="uni-input"
  71. v-model="item.workReportInfo.notFormedNum"
  72. type="digit"
  73. :disabled="isDetails"
  74. v-if="isDetails"
  75. @input="changeNum"
  76. />
  77. <input
  78. class="uni-input"
  79. v-model="not.notFormedNum"
  80. type="number"
  81. v-else
  82. @input="changeNum(not)"
  83. />
  84. <view class="unit">{{ item.unit }}</view>
  85. </view>
  86. </view>
  87. <view class="rx ww45">
  88. <view class="lable rx-cc ww80">重量</view>
  89. <view class="content content_num">
  90. <input
  91. class="uni-input"
  92. v-model="item.workReportInfo.notFormedWeight"
  93. type="digit"
  94. :disabled="isDetails"
  95. v-if="isDetails"
  96. />
  97. <input
  98. class="uni-input"
  99. v-model="not.notFormedWeight"
  100. type="digit"
  101. :disabled="isDetails"
  102. v-else
  103. />
  104. <view class="unit">{{ item.weightUnit }}</view>
  105. <!-- <view class="penalize" v-if='!isDetails'
  106. :style="{ background: not.warehouseId ? '#FFA07A' : '' }" @click="penalize">处置</view> -->
  107. <!-- <view class="penalize" v-if='isDetails'
  108. :style="{ background: not.warehouseId ? '#FFA07A' : '' }"
  109. @click="handleView(isDetails ? not.warehouseName : item.warehouseName)">查看</view> -->
  110. </view>
  111. </view>
  112. </view>
  113. <view class="item rx-sc">
  114. <view class="rx ww55">
  115. <view class="lable lable150 rx-cc">报工备注</view>
  116. <view class="content content_num" style="width: 100%">
  117. <input
  118. class="uni-input"
  119. v-model="item.workReportInfo.remark"
  120. :disabled="isDetails"
  121. type="text"
  122. />
  123. </view>
  124. </view>
  125. <!-- v-if="clientEnvironmentId==2" -->
  126. <view class="rx ww45" v-if="clientEnvironmentId == 2">
  127. <view class="lable ww80 rx-cc">批次号</view>
  128. <view class="content content_num" style="width: 100%">
  129. {{ item.batchNo }}
  130. <input
  131. class="uni-input"
  132. v-model="batchNo"
  133. @input="batchNoNew"
  134. :disabled="isDetails"
  135. type="text"
  136. />
  137. </view>
  138. </view>
  139. <!-- 不是首工序展示这个按钮 -->
  140. <view
  141. class="unit-btn"
  142. @click="singleQuery"
  143. v-if="
  144. item.currentTaskDiagram.isFirstTask && clientEnvironmentId != 3
  145. "
  146. >确认</view
  147. >
  148. <!-- <view
  149. class="unit-btn"
  150. @click="singleQueryTg"
  151. v-if="
  152. item.currentTaskDiagram.isFirstTask && clientEnvironmentId == 3
  153. "
  154. >确认</view
  155. > -->
  156. </view>
  157. </view>
  158. <view class="content_table">
  159. <!-- <view class="item rx-sc">
  160. <view class="rx ww55 ">
  161. <view class="lable lable150 rx-cc ">名称</view>
  162. <view class="content content_num ">
  163. <view>{{ forValue.name }}</view>
  164. </view>
  165. </view>
  166. <view class="rx ww45">
  167. <view class="lable rx-cc ww80">编码</view>
  168. <view class="content content_num">
  169. <view>{{ forValue.code }}</view>
  170. </view>
  171. </view>
  172. </view>
  173. <view class="item rx-sc">
  174. <view class="rx ww55">
  175. <view class="lable lable150 rx-cc ww80">单位</view>
  176. <view class="content content_num">
  177. <view>{{ forValue.unit }}</view>
  178. </view>
  179. </view>
  180. <view class="rx ww45 ">
  181. <view class="lable rx-cc ww80">规格</view>
  182. <view class="content content_num rx-sc">
  183. <view>{{ forValue.specification }}</view>
  184. </view>
  185. </view>
  186. </view>
  187. <view class="item rx-sc">
  188. <view class="rx ww55">
  189. <view class="lable lable150 rx-cc ww80">牌号</view>
  190. <view class="content content_num">
  191. <view>{{ forValue.brandNum }}</view>
  192. </view>
  193. </view>
  194. <view class="rx ww45">
  195. <view class="lable rx-cc ww80">型号</view>
  196. <view class="content content_num">
  197. <view>{{ forValue.modelType }}</view>
  198. </view>
  199. </view>
  200. </view> -->
  201. <!-- <checkboxTable :tableData="tableData" :itemData="item" @tableDataFn="tableDataFn"></checkboxTable> -->
  202. <singleProductJobBom
  203. :item="item"
  204. :list="item.semiProductList"
  205. :equipmentList="item.equipmentList"
  206. ></singleProductJobBom>
  207. </view>
  208. </view>
  209. </view>
  210. </template>
  211. <script>
  212. import { createInProduct } from "@/api/pda/jobBooking.js";
  213. import checkboxTable from "../componentsTable/checkbox/checkbox.vue";
  214. import singleProductJobBom from "./singleProductJobBom.vue";
  215. import { parameterGetByCode } from "@/api/mainData/index.js";
  216. import { createInProductBatchTG } from "@/api/pda/jobBooking.js";
  217. export default {
  218. props: {
  219. item: {
  220. type: Object,
  221. default: () => {},
  222. },
  223. notFormed: {
  224. type: Array,
  225. default: () => [],
  226. },
  227. isDetails: {
  228. type: Boolean,
  229. default: false,
  230. },
  231. },
  232. watch: {
  233. notFormed: {
  234. immediate: true,
  235. deep: true,
  236. handler(newVal) {
  237. this.notFormedList = newVal;
  238. },
  239. },
  240. item: {
  241. immediate: true,
  242. deep: true,
  243. handler(newVal) {
  244. if (!newVal.currentTaskDiagram.isFirstTask) {
  245. this.getSemiProductList(newVal);
  246. }
  247. },
  248. },
  249. },
  250. components: { checkboxTable, singleProductJobBom },
  251. data() {
  252. return {
  253. forValue: {},
  254. tableData: [],
  255. batchNo: "",
  256. notFormedList: [],
  257. clientEnvironmentId:
  258. uni.getStorageSync("userInfo") &&
  259. uni.getStorageSync("userInfo").clientEnvironmentId, // *1 主环境-601环境 2 soll-索尔环境 3 tg-碳谷环境
  260. };
  261. },
  262. created() {
  263. if (this.isDetails) {
  264. this.notFormedList = this.notFormedList.map((m) => {
  265. return {
  266. notFormedNum: Number(m.quantity),
  267. notFormedWeight: m.weight,
  268. ...m,
  269. };
  270. });
  271. }
  272. this.getByCode();
  273. console.log(this.item, "items");
  274. },
  275. methods: {
  276. tableDataFn(tableData) {
  277. console.log(tableData);
  278. let adultCount = 0;
  279. let noAdultCount = 0;
  280. this.arrDataStatistics(tableData);
  281. tableData.forEach((v) => {
  282. if (v.selected) {
  283. console.log(11111);
  284. if (v.extInfo.isQualified == 1) {
  285. adultCount += 1;
  286. } else {
  287. noAdultCount += 1;
  288. }
  289. }
  290. });
  291. this.$set(this.item.workReportInfo, "formedNum", adultCount);
  292. this.$set(this.notFormedList[0], "notFormedNum", noAdultCount);
  293. // this.tableData = this.notFormedList;
  294. if (!(this.clientEnvironmentId == 3 || this.item.singleReport !== 1)) {
  295. this.item.semiProductList = tableData;
  296. }
  297. },
  298. arrDataStatistics(arr) {
  299. console.log(arr);
  300. const adultCount = arr.filter(
  301. (user) => user.extInfo.isQualified == 1
  302. ).length;
  303. const noAdultCount = arr.filter(
  304. (user) => user.extInfo.isQualified !== 1
  305. ).length;
  306. console.log(adultCount, noAdultCount);
  307. this.$set(this.item.workReportInfo, "formedNum", adultCount);
  308. this.$set(this.notFormedList[0], "notFormedNum", noAdultCount);
  309. },
  310. getByCode() {
  311. parameterGetByCode({ code: "enable_quality_plus" }).then((res) => {
  312. if (
  313. res.value == "1" &&
  314. (this.item.currentTaskDiagram.type == 6 ||
  315. this.item.currentTaskDiagram.type == 2 ||
  316. this.item.currentTaskDiagram.type == 2)
  317. ) {
  318. uni.showModal({
  319. title: "提示",
  320. content: "质检需要去PC端进行",
  321. success: function (res) {
  322. if (res.confirm) {
  323. console.log("用户点击确定");
  324. } else if (res.cancel) {
  325. console.log("用户点击取消");
  326. }
  327. },
  328. });
  329. }
  330. });
  331. },
  332. getSemiProductList(newVal) {
  333. console.log(newVal);
  334. if (newVal.semiProductList.length) {
  335. newVal.semiProductList.map((v) => {
  336. v.selected = true;
  337. });
  338. this.arrDataStatistics(newVal.semiProductList);
  339. this.tableData = newVal.semiProductList;
  340. }
  341. if (newVal.pickOutInList.length) {
  342. newVal.pickOutInList.map((v) => {
  343. v.selected = true;
  344. });
  345. this.arrDataStatistics(newVal.pickOutInList);
  346. this.tableData = newVal.pickOutInList;
  347. }
  348. },
  349. singleQuery() {
  350. console.log(this.item.workReportInfo);
  351. if (!this.item.workReportInfo.formedNum)
  352. return uni.showToast({
  353. icon: "none",
  354. title: "请输入合格品数",
  355. });
  356. if (
  357. this.notFormedList[0].notFormedNum == "" ||
  358. this.notFormedList[0].notFormedNum == null
  359. )
  360. return uni.showToast({
  361. icon: "none",
  362. title: "请输入不合格品数",
  363. });
  364. const req = {
  365. formedNum: this.item.workReportInfo.formedNum,
  366. notFormedNum: this.notFormedList[0].notFormedNum,
  367. taskId: this.item.workReportInfo.taskId,
  368. workOrderId: this.item.workReportInfo.workOrderId,
  369. };
  370. createInProduct(req).then((res) => {
  371. if (res && res.length) {
  372. this.forValue = res[0];
  373. res.map((v) => {
  374. v.selected = true;
  375. });
  376. this.tableData = res;
  377. this.item.semiProductList = res;
  378. }
  379. });
  380. },
  381. singleQueryTg() {
  382. console.log(this.item.workReportInfo);
  383. if (!this.item.workReportInfo.formedNum)
  384. return uni.showToast({
  385. icon: "none",
  386. title: "请输入合格品数",
  387. });
  388. if (
  389. this.notFormedList[0].notFormedNum == "" ||
  390. this.notFormedList[0].notFormedNum == null
  391. )
  392. return uni.showToast({
  393. icon: "none",
  394. title: "请输入不合格品数",
  395. });
  396. const req = {
  397. formedNum: this.item.workReportInfo.formedNum,
  398. notFormedNum: this.notFormedList[0].notFormedNum,
  399. taskId: this.item.workReportInfo.taskId,
  400. workOrderId: this.item.workReportInfo.workOrderId,
  401. };
  402. createInProductBatchTG(req).then((res) => {
  403. if (res && res.length) {
  404. this.forValue = res[0];
  405. res.map((v) => {
  406. v.selected = true;
  407. });
  408. this.tableData = res;
  409. this.item.semiProductList = res;
  410. }
  411. });
  412. },
  413. /**
  414. * 更新批次号
  415. *
  416. * @param e 事件对象
  417. */
  418. batchNoNew(e) {
  419. this.item.workReportInfo.batchNo = this.item.batchNo + e.target.value;
  420. },
  421. setFormedNum(num) {
  422. this.item.workReportInfo.formedNum = num;
  423. let weight =
  424. Number(this.item.workReportInfo.formedNum) *
  425. Number(this.item.singleWeight) *
  426. Number(this.item.weightMultiple);
  427. if (["G", "g", "克"].includes(this.item.singleWeightUnit)) {
  428. weight = parseFloat((weight / 1000).toFixed(2));
  429. } else {
  430. weight = parseFloat(weight.toFixed(2));
  431. }
  432. this.$set(this.item.workReportInfo, "formedWeight", weight);
  433. this.$forceUpdate();
  434. },
  435. penalize() {
  436. this.$emit("penalize", null);
  437. },
  438. handleView(name) {
  439. uni.showToast({
  440. icon: "none",
  441. title: name || "未设置",
  442. });
  443. },
  444. blurNum(value) {
  445. let total = 0;
  446. //匹配非数字
  447. let val = value.formedNum;
  448. let reg = new RegExp("([^0-9]*)", "g");
  449. let ma = val.match(reg);
  450. //如果有非数字,替换成""
  451. if (ma.length > 0) {
  452. for (let k in ma) {
  453. if (ma[k] != "") {
  454. val = val.replace(ma[k], 0);
  455. }
  456. }
  457. }
  458. //可以为0,但不能以0开头
  459. if (val.startsWith("0") && val.length > 1) {
  460. val = val.substring(1, val.length);
  461. }
  462. value.formedNum = val;
  463. if (this.item.currentTaskDiagram.isFirstTask) {
  464. // formingNum 生产数量 feedQuantity this.item.product[0] //投料数量
  465. if (value.formedNum > this.item.formingNum) {
  466. this.$set(
  467. this.item.workReportInfo,
  468. "workReportInfo",
  469. this.item.formingNum
  470. );
  471. this.$set(this.notFormedList[0], "notFormedNum", 0);
  472. this.notForme();
  473. return uni.showToast({
  474. icon: "none",
  475. title: "合格品数量不能大于要求生产数量",
  476. });
  477. }
  478. } else {
  479. if (this.item.product.length) {
  480. if (value.formedNum > this.item.product[0].feedQuantity) {
  481. console.log(this.item.product[0].feedQuantity);
  482. this.$set(
  483. this.item.workReportInfo,
  484. "workReportInfo",
  485. this.item.product[0].feedQuantity
  486. );
  487. this.$set(this.notFormedList[0], "notFormedNum", 0);
  488. this.notForme();
  489. return uni.showToast({
  490. icon: "none",
  491. title: "合格品数量不能大于投料数量",
  492. });
  493. }
  494. }
  495. }
  496. if (
  497. this.item.product[0] &&
  498. this.item.product[0].feedQuantity > 0 &&
  499. Number(this.item.workReportInfo.formedNum)
  500. ) {
  501. this.$set(
  502. this.notFormedList[0],
  503. "notFormedNum",
  504. this.item.product[0].feedQuantity -
  505. Number(this.item.workReportInfo.formedNum)
  506. );
  507. this.notForme();
  508. }
  509. let weight =
  510. Number(this.item.workReportInfo.formedNum) *
  511. Number(this.item.singleWeight) *
  512. Number(this.item.weightMultiple);
  513. if (["G", "g", "克"].includes(this.item.singleWeightUnit)) {
  514. weight = parseFloat((weight / 1000).toFixed(2));
  515. } else {
  516. weight = parseFloat(weight.toFixed(2));
  517. }
  518. this.$set(this.item.workReportInfo, "formedWeight", weight);
  519. total =
  520. Number(this.item.workReportInfo.formedNum) +
  521. Number(this.notFormedList[0].notFormedNum);
  522. console.log(total);
  523. this.$emit("modeNum", total);
  524. this.$forceUpdate();
  525. },
  526. notForme() {
  527. let weight =
  528. Number(this.notFormedList[0].notFormedNum) *
  529. Number(this.item.singleWeight) *
  530. Number(this.item.weightMultiple);
  531. if (
  532. this.item.singleWeightUnit == "G" ||
  533. this.item.singleWeightUnit == "g" ||
  534. this.item.singleWeightUnit == "克"
  535. ) {
  536. weight = parseFloat((weight / 1000).toFixed(2));
  537. } else {
  538. weight = parseFloat(weight.toFixed(2));
  539. }
  540. this.$set(this.notFormedList[0], "notFormedWeight", weight);
  541. if (
  542. this.item.product[0] &&
  543. this.item.product[0].feedQuantity > 0 &&
  544. Number(this.notFormedList[0].notFormedNum)
  545. ) {
  546. this.$set(
  547. this.item.workReportInfo,
  548. "formedNum",
  549. this.item.product[0].feedQuantity -
  550. Number(this.notFormedList[0].notFormedNum)
  551. );
  552. let weight =
  553. Number(this.item.workReportInfo.formedNum) *
  554. Number(this.item.singleWeight) *
  555. Number(this.item.weightMultiple);
  556. if (
  557. this.item.singleWeightUnit == "G" ||
  558. this.item.singleWeightUnit == "g" ||
  559. this.item.singleWeightUnit == "克"
  560. ) {
  561. weight = parseFloat((weight / 1000).toFixed(2));
  562. } else {
  563. weight = parseFloat(weight.toFixed(2));
  564. }
  565. this.$set(this.item.workReportInfo, "formedWeight", weight);
  566. }
  567. this.$forceUpdate();
  568. },
  569. changeNum(value) {
  570. // 不合格数量
  571. let val = value.notFormedNum;
  572. //匹配非数字
  573. let reg = new RegExp("([^0-9]*)", "g");
  574. let ma = val.match(reg);
  575. //如果有非数字,替换成""
  576. if (ma.length > 0) {
  577. for (let k in ma) {
  578. if (ma[k] != "") {
  579. val = val.replace(ma[k], "0");
  580. }
  581. }
  582. }
  583. //可以为0,但不能以0开头
  584. if (val.startsWith("0") && val.length > 1) {
  585. val = val.substring(1, val.length);
  586. }
  587. // this.$set(this.item.workReportInfo, 'formedNum', val)
  588. value.notFormedNum = val;
  589. console.log(Number(this.item.workReportInfo.formedNum), 1);
  590. console.log(Number(this.notFormedList[0].notFormedNum), 2);
  591. let total =
  592. Number(this.item.workReportInfo.formedNum) +
  593. Number(this.notFormedList[0].notFormedNum);
  594. console.log(total);
  595. this.$emit("modeNum", total);
  596. this.notForme();
  597. // this.blurNum()
  598. },
  599. },
  600. };
  601. </script>
  602. <style lang="scss" scoped>
  603. .unit-btn {
  604. background-color: #157a2c;
  605. height: 48rpx;
  606. padding: 0 20rpx;
  607. line-height: 48rpx;
  608. color: #fff;
  609. }
  610. .content_num {
  611. display: flex;
  612. align-items: center;
  613. padding: 0 4rpx;
  614. font-size: 26rpx !important;
  615. /deep/ .uni-input-input {
  616. border: 2rpx solid #f0f8f2;
  617. background: #f0f8f2;
  618. color: $theme-color;
  619. }
  620. }
  621. .item {
  622. display: flex;
  623. justify-content: space-between;
  624. }
  625. .title_box {
  626. margin-top: 20rpx;
  627. .name {
  628. font-size: 28rpx;
  629. font-style: normal;
  630. font-weight: 400;
  631. color: $theme-color;
  632. padding-left: 20rpx;
  633. position: relative;
  634. &:before {
  635. position: absolute;
  636. content: "";
  637. left: 0rpx;
  638. top: 0rpx;
  639. bottom: 0rpx;
  640. width: 4rpx;
  641. height: 28rpx;
  642. background: $theme-color;
  643. margin: auto;
  644. }
  645. }
  646. }
  647. .material {
  648. margin-top: 10rpx;
  649. .content_table {
  650. width: 100%;
  651. border: 2rpx solid $border-color;
  652. .item {
  653. display: flex;
  654. border-bottom: 2rpx solid $border-color;
  655. .lable {
  656. width: 132rpx;
  657. text-align: center;
  658. background-color: #f7f9fa;
  659. font-size: 26rpx;
  660. border-right: 2rpx solid $border-color;
  661. flex-shrink: 0;
  662. }
  663. .lable220 {
  664. width: 220rpx !important;
  665. font-size: 24rpx;
  666. }
  667. .lable150 {
  668. width: 156rpx !important;
  669. font-size: 24rpx;
  670. }
  671. .ww80 {
  672. width: 80rpx;
  673. }
  674. .content {
  675. width: 518rpx;
  676. min-height: 64rpx;
  677. font-size: 28rpx;
  678. line-height: 28rpx;
  679. font-style: normal;
  680. font-weight: 400;
  681. padding: 18rpx 8rpx;
  682. box-sizing: border-box;
  683. word-wrap: break-word;
  684. flex-grow: 1 !important;
  685. .unit {
  686. padding: 0 4rpx;
  687. font-size: 24rpx;
  688. color: #404446;
  689. }
  690. .penalize {
  691. width: 160rpx;
  692. line-height: 60rpx;
  693. background: $theme-color;
  694. font-size: 24rpx;
  695. text-align: center;
  696. color: #fff;
  697. }
  698. }
  699. .pd4 {
  700. padding: 4rpx 8rpx;
  701. }
  702. &:last-child {
  703. border-bottom: none;
  704. }
  705. }
  706. .ww55 {
  707. width: 55%;
  708. }
  709. .ww45 {
  710. width: 45%;
  711. }
  712. }
  713. }
  714. </style>