batchJobBom.vue 21 KB

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