singleJobBom.vue 23 KB

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