batchJobBom.vue 23 KB

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