singleJobBom.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810
  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 class="item rx-sc">
  61. <view class="rx ww55">
  62. <view class="lable lable150 rx-cc">不合格数量</view>
  63. <view class="content content_num">
  64. <!-- //详情 -->
  65. <input
  66. class="uni-input"
  67. v-model="item.workReportInfo.notFormedNum"
  68. type="digit"
  69. :disabled="isDetails"
  70. @input="changeNum(item.workReportInfo.notFormedNum)"
  71. />
  72. <view class="unit">{{ item.unit }}</view>
  73. </view>
  74. </view>
  75. <view class="rx ww45">
  76. <view class="lable rx-cc ww80">重量</view>
  77. <view class="content content_num">
  78. <input
  79. class="uni-input"
  80. v-model="item.workReportInfo.notFormedWeight"
  81. type="digit"
  82. :disabled="isDetails"
  83. />
  84. <view class="unit">{{ item.weightUnit }}</view>
  85. </view>
  86. </view>
  87. </view>
  88. <view class="item rx-sc">
  89. <view class="rx ww55">
  90. <view class="lable lable150 rx-cc">报工备注</view>
  91. <view class="content content_num" style="width: 100%">
  92. <input
  93. class="uni-input"
  94. v-model="item.workReportInfo.remark"
  95. :disabled="isDetails"
  96. type="text"
  97. />
  98. </view>
  99. </view>
  100. <!-- v-if="clientEnvironmentId==2" -->
  101. <view class="rx ww45" v-if="clientEnvironmentId == 2">
  102. <view class="lable ww80 rx-cc">批次号</view>
  103. <view class="content content_num" style="width: 100%">
  104. {{ item.batchNo }}
  105. <input
  106. class="uni-input"
  107. v-model="batchNo"
  108. @input="batchNoNew"
  109. :disabled="isDetails"
  110. type="text"
  111. />
  112. </view>
  113. </view>
  114. <!-- 不是首工序展示这个按钮 -->
  115. <view
  116. class="unit-btn"
  117. @click="singleQuery"
  118. v-if="
  119. item.currentTaskDiagram.isFirstTask == 1 &&
  120. clientEnvironmentId != 3 &&
  121. item.semiProductList &&
  122. item.semiProductList.length == 0
  123. "
  124. >创建在制品</view
  125. >
  126. <!-- <view
  127. class="unit-btn"
  128. @click="singleQueryTg"
  129. v-if="
  130. item.currentTaskDiagram.isFirstTask && clientEnvironmentId == 3
  131. "
  132. >确认</view
  133. > -->
  134. </view>
  135. </view>
  136. <view class="content_table">
  137. <!-- <view class="item rx-sc">
  138. <view class="rx ww55 ">
  139. <view class="lable lable150 rx-cc ">名称</view>
  140. <view class="content content_num ">
  141. <view>{{ forValue.name }}</view>
  142. </view>
  143. </view>
  144. <view class="rx ww45">
  145. <view class="lable rx-cc ww80">编码</view>
  146. <view class="content content_num">
  147. <view>{{ forValue.code }}</view>
  148. </view>
  149. </view>
  150. </view>
  151. <view class="item rx-sc">
  152. <view class="rx ww55">
  153. <view class="lable lable150 rx-cc ww80">单位</view>
  154. <view class="content content_num">
  155. <view>{{ forValue.unit }}</view>
  156. </view>
  157. </view>
  158. <view class="rx ww45 ">
  159. <view class="lable rx-cc ww80">规格</view>
  160. <view class="content content_num rx-sc">
  161. <view>{{ forValue.specification }}</view>
  162. </view>
  163. </view>
  164. </view>
  165. <view class="item rx-sc">
  166. <view class="rx ww55">
  167. <view class="lable lable150 rx-cc ww80">牌号</view>
  168. <view class="content content_num">
  169. <view>{{ forValue.brandNum }}</view>
  170. </view>
  171. </view>
  172. <view class="rx ww45">
  173. <view class="lable rx-cc ww80">型号</view>
  174. <view class="content content_num">
  175. <view>{{ forValue.modelType }}</view>
  176. </view>
  177. </view>
  178. </view> -->
  179. <!-- <checkboxTable :tableData="tableData" :itemData="item" @tableDataFn="tableDataFn"></checkboxTable> -->
  180. <singleProductJobBom
  181. :item="item"
  182. :list="item.semiProductList"
  183. :equipmentList="item.equipmentList"
  184. ></singleProductJobBom>
  185. <!-- <singleProductJobBom
  186. :item="item"
  187. :list="item.semiProductList"
  188. :equipmentList="item.equipmentList"
  189. v-if="clientEnvironmentId == 3 && item.currentTaskDiagram.type != 6"
  190. ></singleProductJobBom> -->
  191. </view>
  192. </view>
  193. </view>
  194. </template>
  195. <script>
  196. import { createInProduct } from "@/api/pda/jobBooking.js";
  197. import checkboxTable from "../componentsTable/checkbox/checkbox.vue";
  198. import singleProductJobBom from "./singleProductJobBom.vue";
  199. import { parameterGetByCode } from "@/api/mainData/index.js";
  200. import { createInProductBatchTG } from "@/api/pda/jobBooking.js";
  201. export default {
  202. props: {
  203. item: {
  204. type: Object,
  205. default: () => {},
  206. },
  207. notFormed: {
  208. type: Array,
  209. default: () => [],
  210. },
  211. isDetails: {
  212. type: Boolean,
  213. default: false,
  214. },
  215. },
  216. watch: {
  217. notFormed: {
  218. immediate: true,
  219. deep: true,
  220. handler(newVal) {
  221. this.notFormedList = newVal;
  222. },
  223. },
  224. item: {
  225. immediate: true,
  226. deep: true,
  227. handler(newVal) {
  228. console.log(newVal, "newVal--------------");
  229. if (newVal.semiProductList && newVal.semiProductList.length != 0) {
  230. let formedNum = 0;
  231. let notFormedNum = 0;
  232. newVal.semiProductList.forEach((item) => {
  233. if (!item.extInfo.isQualified || item.extInfo.isQualified == 1) {
  234. formedNum = formedNum + Number(item.feedQuantity);
  235. } else {
  236. notFormedNum = notFormedNum + Number(item.feedQuantity);
  237. }
  238. });
  239. this.$set(this.item.workReportInfo, "formedNum", formedNum);
  240. this.$set(this.item.workReportInfo, "notFormedNum", notFormedNum);
  241. }
  242. this.$forceUpdate();
  243. if (!newVal.currentTaskDiagram.isFirstTask) {
  244. this.getSemiProductList(newVal);
  245. }
  246. },
  247. },
  248. },
  249. components: { checkboxTable, singleProductJobBom },
  250. data() {
  251. return {
  252. forValue: {},
  253. tableData: [],
  254. batchNo: "",
  255. notFormedList: [],
  256. clientEnvironmentId:
  257. uni.getStorageSync("userInfo") &&
  258. uni.getStorageSync("userInfo").clientEnvironmentId, // *1 主环境-601环境 2 soll-索尔环境 3 tg-碳谷环境
  259. };
  260. },
  261. created() {
  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. console.log(this.item, "items");
  273. },
  274. methods: {
  275. tableDataFn(tableData) {
  276. console.log(tableData);
  277. let adultCount = 0;
  278. let noAdultCount = 0;
  279. this.arrDataStatistics(tableData);
  280. tableData.forEach((v) => {
  281. if (v.selected) {
  282. console.log(11111);
  283. if (v.extInfo.isQualified == 1) {
  284. adultCount += 1;
  285. } else {
  286. noAdultCount += 1;
  287. }
  288. }
  289. });
  290. this.$set(this.item.workReportInfo, "formedNum", adultCount);
  291. this.$set(this.item.workReportInfo, "notFormedNum", noAdultCount);
  292. // this.tableData = this.notFormedList;
  293. if (!(this.clientEnvironmentId == 3 || this.item.singleReport !== 1)) {
  294. this.item.semiProductList = tableData;
  295. }
  296. },
  297. arrDataStatistics(arr) {
  298. console.log(arr);
  299. const adultCount = arr.filter(
  300. (user) => user.extInfo.isQualified == 1
  301. ).length;
  302. const noAdultCount = arr.filter(
  303. (user) => user.extInfo.isQualified !== 1
  304. ).length;
  305. console.log(adultCount, noAdultCount);
  306. this.$set(this.item.workReportInfo, "formedNum", adultCount);
  307. this.$set(this.item.workReportInfo, "notFormedNum", noAdultCount);
  308. this.$forceUpdate();
  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.item.workReportInfo.notFormedNum ||
  358. // this.item.workReportInfo.notFormedNum != 0
  359. // )
  360. // return uni.showToast({
  361. // icon: "none",
  362. // title: "请输入不合格品数",
  363. // });
  364. const req = {
  365. formedNum: this.item.workReportInfo.formedNum,
  366. notFormedNum: this.item.workReportInfo.notFormedNum || 0,
  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.item.workReportInfo.notFormedNum ||
  390. // this.item.workReportInfo.notFormedNum != 0
  391. // )
  392. // return uni.showToast({
  393. // icon: "none",
  394. // title: "请输入不合格品数",
  395. // });
  396. const req = {
  397. formedNum: this.item.workReportInfo.formedNum,
  398. notFormedNum: this.item.workReportInfo.notFormedNum || 0,
  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.item.workReportInfo, "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.item.workReportInfo, "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.item.workReportInfo,
  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.item.workReportInfo.notFormedNum);
  522. console.log(total);
  523. this.$emit("modeNum", total);
  524. this.$forceUpdate();
  525. },
  526. notForme() {
  527. let weight =
  528. Number(this.item.workReportInfo.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.item.workReportInfo, "notFormedWeight", weight);
  541. if (
  542. this.item.product[0] &&
  543. this.item.product[0].feedQuantity > 0 &&
  544. Number(this.item.workReportInfo.notFormedNum)
  545. ) {
  546. this.$set(
  547. this.item.workReportInfo,
  548. "formedNum",
  549. this.item.product[0].feedQuantity -
  550. Number(this.item.workReportInfo.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;
  572. //匹配非数字
  573. let reg = new RegExp("([^0-9]*)", "g");
  574. console.log(val, "changeNumchangeNumchangeNum");
  575. let ma = val.match(reg);
  576. //如果有非数字,替换成""
  577. if (ma.length > 0) {
  578. for (let k in ma) {
  579. if (ma[k] != "") {
  580. val = val.replace(ma[k], "0");
  581. }
  582. }
  583. }
  584. //可以为0,但不能以0开头
  585. if (val.startsWith("0") && val.length > 1) {
  586. val = val.substring(1, val.length);
  587. }
  588. // this.$set(this.item.workReportInfo, 'formedNum', val)
  589. value = val;
  590. console.log(Number(this.item.workReportInfo.formedNum), 1);
  591. console.log(Number(this.item.workReportInfo.notFormedNum), 2);
  592. let total =
  593. Number(this.item.workReportInfo.formedNum) +
  594. Number(this.item.workReportInfo.notFormedNum);
  595. console.log(total);
  596. this.$emit("modeNum", total);
  597. this.notForme();
  598. // this.blurNum()
  599. },
  600. },
  601. };
  602. </script>
  603. <style lang="scss" scoped>
  604. .unit-btn {
  605. background-color: #157a2c;
  606. height: 48rpx;
  607. padding: 0 20rpx;
  608. line-height: 48rpx;
  609. color: #fff;
  610. font-size: 12px;
  611. }
  612. .content_num {
  613. display: flex;
  614. align-items: center;
  615. padding: 0 4rpx;
  616. font-size: 26rpx !important;
  617. /deep/ .uni-input-input {
  618. border: 2rpx solid #f0f8f2;
  619. background: #f0f8f2;
  620. color: $theme-color;
  621. }
  622. }
  623. .item {
  624. display: flex;
  625. justify-content: space-between;
  626. }
  627. .title_box {
  628. margin-top: 20rpx;
  629. .name {
  630. font-size: 28rpx;
  631. font-style: normal;
  632. font-weight: 400;
  633. color: $theme-color;
  634. padding-left: 20rpx;
  635. position: relative;
  636. &:before {
  637. position: absolute;
  638. content: "";
  639. left: 0rpx;
  640. top: 0rpx;
  641. bottom: 0rpx;
  642. width: 4rpx;
  643. height: 28rpx;
  644. background: $theme-color;
  645. margin: auto;
  646. }
  647. }
  648. }
  649. .material {
  650. margin-top: 10rpx;
  651. .content_table {
  652. width: 100%;
  653. border: 2rpx solid $border-color;
  654. .item {
  655. display: flex;
  656. border-bottom: 2rpx solid $border-color;
  657. .lable {
  658. width: 132rpx;
  659. text-align: center;
  660. background-color: #f7f9fa;
  661. font-size: 26rpx;
  662. border-right: 2rpx solid $border-color;
  663. flex-shrink: 0;
  664. }
  665. .lable220 {
  666. width: 220rpx !important;
  667. font-size: 24rpx;
  668. }
  669. .lable150 {
  670. width: 156rpx !important;
  671. font-size: 24rpx;
  672. }
  673. .ww80 {
  674. width: 80rpx;
  675. }
  676. .content {
  677. width: 518rpx;
  678. min-height: 64rpx;
  679. font-size: 28rpx;
  680. line-height: 28rpx;
  681. font-style: normal;
  682. font-weight: 400;
  683. padding: 18rpx 8rpx;
  684. box-sizing: border-box;
  685. word-wrap: break-word;
  686. flex-grow: 1 !important;
  687. .unit {
  688. padding: 0 4rpx;
  689. font-size: 24rpx;
  690. color: #404446;
  691. }
  692. .penalize {
  693. width: 160rpx;
  694. line-height: 60rpx;
  695. background: $theme-color;
  696. font-size: 24rpx;
  697. text-align: center;
  698. color: #fff;
  699. }
  700. }
  701. .pd4 {
  702. padding: 4rpx 8rpx;
  703. }
  704. &:last-child {
  705. border-bottom: none;
  706. }
  707. }
  708. .ww55 {
  709. width: 55%;
  710. }
  711. .ww45 {
  712. width: 45%;
  713. }
  714. }
  715. }
  716. </style>