singleJobBom.vue 22 KB

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