batchJobBom.vue 22 KB

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