singleJobBom.vue 21 KB

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