semiProductJobBom.vue 21 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052
  1. <template>
  2. <view>
  3. <view class="title_box rx-bc">
  4. <view class="name"> 报工信息: ({{list.length || 0}})个</view>
  5. </view>
  6. <view :class="['material', it.extInfo.reportWeight && it.extInfo.reportWeight && 'materialBor']"
  7. v-for="(it, idx) in list" :key="idx">
  8. <view class="content_table">
  9. <view class="item rx-sc">
  10. <view class="rx">
  11. <view class="lable lable190 rx-cc " @click="getDelete2(idx)">
  12. <view class="round">{{idx + 1}}</view>
  13. <uni-icons custom-prefix="iconfont" type="icon-shanchu" size="16"
  14. color="#fa3534"></uni-icons>
  15. 物料编码
  16. </view>
  17. <view class="content rx-bc">
  18. <view>{{it.code}} </view>
  19. <view class="tag_box"
  20. v-if="Object.prototype.hasOwnProperty.call(it, 'extInfo') && Object.prototype.hasOwnProperty.call(it.extInfo, 'productionTimes') && Object.prototype.hasOwnProperty.call(it.extInfo.productionTimes,item.currentTaskDiagram.taskId) ">
  21. {{ it.extInfo.productionTimes[item.currentTaskDiagram.taskId]}}
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="item rx-sc">
  27. <view class="rx">
  28. <view class="lable lable150 rx-cc ">名称</view>
  29. <view class="content rx-bc">
  30. <view>{{it.name}} <text v-if="[2, 23,9,28].includes(Number(it.rootCategoryLevelId))">
  31. ({{it.rootCategoryLevelId == 2 ? '在制品' : it.rootCategoryLevelId == 23 ? '半成品' : it.rootCategoryLevelId == 9 ? '产品' : it.rootCategoryLevelId == 28 ? '废品' : '' }})
  32. </text> </view>
  33. <view class="rx-ec">
  34. <view class="tag_box " v-if="it.isCache" style="margin-right: -36rpx; margin-right: 4rpx;">缓</view>
  35. <view class="tag_box " v-if="Object.prototype.hasOwnProperty.call(it.extInfo, 'isOutsource') && it.extInfo.isOutsource == 1" style="margin-right: -36rpx;">委外</view>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="item rx-sc">
  41. <view class="rx">
  42. <view class="lable lable150 rx-cc ">型号</view>
  43. <view class="content rx-sc">
  44. <view>{{it.modelType}}</view>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="item rx-sc">
  49. <view class="rx ww50 ">
  50. <view class="lable lable150 rx-cc ">物料代号</view>
  51. <view class="content content_num">
  52. <view v-if='isDetails'>{{it.extInfo.materielCode }}</view>
  53. <input class="uni-input" v-else v-model="it.extInfo.materielCode"></input>
  54. </view>
  55. </view>
  56. <view class="rx ww50">
  57. <view class="lable lable150 rx-cc ">客户代号</view>
  58. <view class="content content_num">
  59. <view v-if='isDetails'>{{it.extInfo.clientCode }}</view>
  60. <input class="uni-input" v-else v-model="it.extInfo.clientCode"></input>
  61. </view>
  62. </view>
  63. </view>
  64. <view class="item rx-sc">
  65. <view class="rx ww50 ">
  66. <view class="lable lable150 rx-cc ">刻码</view>
  67. <view class="content content_num ">
  68. <view v-if='isDetails'>{{it.extInfo.engrave }}</view>
  69. <input class="uni-input" v-else v-model="it.extInfo.engrave"></input>
  70. </view>
  71. </view>
  72. <view class="rx ww50">
  73. <view class="lable lable150 rx-cc ">序列号</view>
  74. <view class="content content_num">
  75. <view v-if='isDetails'>{{it.extInfo.productSequence }}</view>
  76. </view>
  77. </view>
  78. </view>
  79. <view class="item rx-sc">
  80. <view class="rx ww50">
  81. <view class="lable lable150 rx-cc ">设备</view>
  82. <view class="content ">
  83. <view>{{ it.deviceName || it.extInfo.deviceName }}</view>
  84. </view>
  85. </view>
  86. <view class="rx ww50">
  87. <view class="lable lable150 rx-cc ">炉次号</view>
  88. <view class="content content_num ">
  89. <view v-if='isDetails'>{{it.extInfo.heatNumber }}</view>
  90. <input class="uni-input" v-else v-model="it.extInfo.heatNumber"></input>
  91. </view>
  92. </view>
  93. </view>
  94. <view class="item rx-sc">
  95. <view class="rx ww50">
  96. <view class="lable lable150 rx-cc ">位置</view>
  97. <view class="content content_num">
  98. <view v-if='isDetails'>{{it.extInfo.position }}</view>
  99. <input class="uni-input" v-else v-model="it.extInfo.position"></input>
  100. </view>
  101. </view>
  102. </view>
  103. <view class="item rx-sc">
  104. <view class="rx ww45">
  105. <view class="lable lable150 rx-cc ">是否合格</view>
  106. <view class="content content_num">
  107. <zxz-uni-data-select :localdata="isQualifiedList" v-model="it.extInfo.isQualified"
  108. dataValue='code' format='{name}' dataKey="code" filterable :disabled="isDetails"
  109. :clear='false'></zxz-uni-data-select>
  110. </view>
  111. </view>
  112. <!-- <view class="rx ww50" v-if="it.extInfo.isQualified && it.extInfo.isQualified == 2">
  113. <view class="lable lable150 rx-cc ">类型</view>
  114. <view class="content content_num">
  115. <zxz-uni-data-select :localdata="notTypeList" v-model="it.extInfo.notType" dataValue='code'
  116. format='{name}' dataKey="code" filterable :disabled="isDetails"
  117. :clear='false'></zxz-uni-data-select>
  118. </view>
  119. </view> -->
  120. </view>
  121. <!-- <view class="item rx-sc" v-if="it.extInfo.isQualified != 1 && it.extInfo.notType != 5 ">
  122. <view class="rx ">
  123. <view class="lable lable150 rx-cc ">原因</view>
  124. <view class="content content_num">
  125. <view v-if='isDetails'>{{it.extInfo.notReason }}</view>
  126. <input class="uni-input" v-else v-model="it.extInfo.notReason"></input>
  127. </view>
  128. </view>
  129. </view> -->
  130. </view>
  131. <view class="content_table2" v-if="![1,2,3,4].includes(Number(it.extInfo.notType))&&clientEnvironmentId==3" >
  132. <view class="head row rx-sc">
  133. <view class="item ww25" style="font-size: 20rpx;">{{it.extInfo.newWeight ? '上道工序重量' : '物料重量' }}
  134. {{it.extInfo.weightUnit}}
  135. </view>
  136. <view class="item ww25">报工重量{{it.extInfo.weightUnit}}</view>
  137. <view class="item ww25" v-if="isFirstTask == 1">质检结果
  138. </view>
  139. <view class="item ww25" :class="[ isFirstTask == 1 ? 'ww25' : 'ww50' ]">处置
  140. </view>
  141. </view>
  142. <view class="table">
  143. <view class="tr row rx-sc">
  144. <view class="item ww25"
  145. v-if="Object.prototype.hasOwnProperty.call(it.extInfo, 'newWeight') && it.extInfo.newWeight">
  146. {{ it.extInfo.newWeight }}
  147. </view>
  148. <view class="item ww25 content_num"
  149. v-if="!Object.prototype.hasOwnProperty.call(it.extInfo, 'newWeight') || it.extInfo.newWeight == null || it.extInfo.newWeight == 0 ">
  150. <input class="uni-input " v-model="it.extInfo.weight" type='digit'></input>
  151. </view>
  152. <view class="item ww25 content_num">
  153. <view v-if='isDetails'>{{it.extInfo.reportWeight }}</view>
  154. <input class="uni-input" v-else v-model="it.extInfo.reportWeight" type='digit' @input="handleInput"></input>
  155. </view>
  156. <view class="item ww25" @click="openNumerate(it, idx)" v-if="isFirstTask == 1">
  157. <view class="numerate">点击计算</view>
  158. </view>
  159. <view class="item" v-if='isDetails' :class="[ isFirstTask == 1 ? 'ww25' : 'ww50' ]">
  160. {{it.extInfo.taskName}}
  161. </view>
  162. <view class="item " v-else :class="[ isFirstTask == 1 ? 'ww25' : 'ww50' ]">
  163. <zxz-uni-data-select :localdata="stepsList" v-model="it.extInfo.taskId" dataValue='taskId'
  164. format='{taskTypeName}' dataKey="taskId" filterable
  165. @change=" e => it.extInfo.taskName = e.taskTypeName"
  166. :clear='false'></zxz-uni-data-select>
  167. </view>
  168. </view>
  169. </view>
  170. </view>
  171. </view>
  172. <u-popup :show="show" mode='center' v-if='show' :closeOnClickOverlay='false'>
  173. <view class="popup_box">
  174. <view class="title_box rx-bc">
  175. <view class="name">工序计算列表</view>
  176. <view class="btn_box rx-ec">
  177. <view class="btn" @click="handAddParam">新增</view>
  178. </view>
  179. </view>
  180. <view class="content_table2">
  181. <view class="head row rx-sc">
  182. <view class="item ww30">工序名称</view>
  183. <view class="item ww20">坯体密度</view>
  184. <view class="item ww20">密度系数</view>
  185. <view class="item ww20">重量</view>
  186. <view class="item ww10">操作</view>
  187. </view>
  188. <view class="table">
  189. <view class="tr row rx-sc" v-for="(it, idx) in paramList" :key='idx'>
  190. <view class="item rx-bc ww30">
  191. <zxz-uni-data-select :localdata="stepsList" v-model="it.taskId" dataValue='taskId'
  192. format='{taskTypeName}' dataKey="taskId" filterable
  193. @change=" e => it.taskName = e.taskTypeName" :clear='false'></zxz-uni-data-select>
  194. </view>
  195. <view class="item ww20 content_num">
  196. <input class="uni-input" v-model="it.billet" type="digit"
  197. @input="changeInp(it, idx)"></input>
  198. </view>
  199. <view class="item ww20 content_num">
  200. <input class="uni-input" v-model="it.density" type="digit"
  201. @input="changeInp(it, idx)"></input>
  202. </view>
  203. <view class="item ww20" v-if=" (idx == 0 || idx != paramList.length - 1)">
  204. < {{it.CVIWeight}} </view>
  205. <view class="item ww20" v-if=" paramList.length > 1 && idx == paramList.length - 1">
  206. ≥ {{it.CVIWeight }}
  207. </view>
  208. <view class="item ww10 rx-cc" @click="getDelete(idx)">
  209. <uni-icons custom-prefix="iconfont" type="icon-shanchu" size="20"
  210. color="#fa3534"></uni-icons>
  211. </view>
  212. </view>
  213. </view>
  214. <view class="formula_box">计算公式: 物料重量/坯体密度*密度系数 </view>
  215. <view class="rx-cc">
  216. <u-button size="small" class="u-reset-button" style="width: 300rpx;margin: 20rpx;"
  217. type="success" @click="paramSave">工序列表保存</u-button>
  218. </view>
  219. <view class="reportWeight rx-sc">
  220. 物料重量: {{weight}} ;
  221. 报工重量: {{reportWeight}}
  222. </view>
  223. </view>
  224. <view class="operate_box rx-sc">
  225. <u-button size="small" class="u-reset-button" @click="cancel">取消</u-button>
  226. <u-button size="small" class="u-reset-button" type="success" @click="save">确定</u-button>
  227. </view>
  228. </view>
  229. </u-popup>
  230. </view>
  231. </template>
  232. <script>
  233. import {
  234. getTaskInstanceList
  235. } from '@/api/pda/workOrder.js'
  236. import {
  237. saveParam,
  238. getComputeParam
  239. } from '@/api/pda/tangu.js'
  240. export default {
  241. props: {
  242. item: {
  243. type: Object,
  244. default: () => {}
  245. },
  246. list: {
  247. type: Array,
  248. default: () => []
  249. },
  250. isDetails: {
  251. type: Boolean,
  252. default: false
  253. },
  254. equipmentList: {
  255. type: Array,
  256. default: () => []
  257. },
  258. },
  259. watch: {
  260. equipmentList: {
  261. immediate: true,
  262. deep: true,
  263. handler(newVal) {
  264. this.deviceList = newVal
  265. this.changeHeatNumber()
  266. }
  267. },
  268. },
  269. data() {
  270. return {
  271. taskTypeName: null,
  272. isFirstTask: null,
  273. stepsList: [],
  274. clientEnvironmentId: uni.getStorageSync("userInfo") && uni.getStorageSync("userInfo").clientEnvironmentId, // *1 主环境-601环境 2 soll-索尔环境 3 tg-碳谷环境
  275. show: false,
  276. rowIt: [],
  277. paramList: [],
  278. paramObj: {},
  279. weight: 0,
  280. reportWeight: 0,
  281. resultObj: {},
  282. resultIdx: 0,
  283. deviceList: [],
  284. isQualifiedList: [{
  285. code: '1',
  286. name: '合格'
  287. },
  288. {
  289. code: '2',
  290. name: '不合格'
  291. }
  292. ],
  293. notTypeList: [{
  294. code: "1",
  295. name: '返工'
  296. },
  297. {
  298. code: "2",
  299. name: '返修'
  300. },
  301. {
  302. code: "3",
  303. name: '报废'
  304. },
  305. {
  306. code: '4',
  307. name: '降级使用'
  308. },
  309. {
  310. code: "5",
  311. name: '让步接收'
  312. }
  313. ]
  314. }
  315. },
  316. created() {
  317. this.taskTypeName = this.item.currentTaskDiagram.taskTypeName
  318. this.isFirstTask = this.item.currentTaskDiagram.isFirstTask
  319. this.getSteps()
  320. this.getCompute()
  321. },
  322. methods: {
  323. getSteps() {
  324. getTaskInstanceList(this.item.workOrderId).then(res => {
  325. res.pop();
  326. this.stepsList = res
  327. })
  328. },
  329. getCompute() {
  330. getComputeParam(this.item.workOrderId, this.item.currentTaskDiagram.taskId).then(res => {
  331. this.paramList = []
  332. this.paramList = res && res.paramList || []
  333. this.paramObj = res || {}
  334. })
  335. },
  336. handAddParam() {
  337. // billet: null,
  338. // density: null,
  339. // result: null,
  340. // PIPDensity: null,
  341. // volume: null,
  342. // coefficient: null
  343. if (this.isFirstTask == 1) {
  344. this.paramList.push({
  345. taskId: null,
  346. taskName: null,
  347. })
  348. }
  349. },
  350. getDelete(idx) {
  351. this.paramList.splice(idx, 1)
  352. },
  353. changeInp(item, index) {
  354. if (Number(item.billet) && Number(item.density)) {
  355. this.paramList[index].CVIWeight = (Number(this.weight) / item.billet * item.density).toFixed(2)
  356. }
  357. },
  358. paramSave() {
  359. if (this.isFirstTask == 1 && this.paramList.length > 0) {
  360. let bol
  361. let _i
  362. bol = this.paramList.every((e, i) => {
  363. _i = i + 1
  364. return e.taskId && e.billet && e.density
  365. })
  366. if (!bol) {
  367. uni.showToast({
  368. title: `请完善第${_i}计算数据`,
  369. icon: 'none'
  370. })
  371. return false
  372. }
  373. if (this.paramList.length < 1) {
  374. uni.showToast({
  375. title: `请输入二个以上计算数据`,
  376. icon: 'none'
  377. })
  378. return false
  379. }
  380. }
  381. let param = {}
  382. if (!Object.prototype.hasOwnProperty.call(this.paramObj, 'id')) {
  383. param = {
  384. paramList: this.paramList,
  385. workOrderId: this.item.workOrderId,
  386. taskId: this.item.currentTaskDiagram.taskId
  387. }
  388. } else {
  389. this.paramObj.paramList = this.paramList
  390. param = this.paramObj
  391. }
  392. saveParam(param).then(res => {
  393. uni.showToast({
  394. icon: 'none',
  395. title: '操作成功'
  396. })
  397. this.getCompute()
  398. })
  399. },
  400. openNumerate(row, idx) {
  401. if (!row.extInfo.reportWeight) {
  402. uni.showToast({
  403. icon: 'none',
  404. title: '请先输入报工重量'
  405. })
  406. return false
  407. }
  408. this.weight = row.extInfo.weight
  409. this.reportWeight = row.extInfo.reportWeight
  410. this.resultIdx = idx
  411. this.show = true
  412. },
  413. handleInput() {
  414. let arr = JSON.parse(JSON.stringify(this.list));
  415. this.sumweight(arr);
  416. // this.sunTj();
  417. // console.log('arr11111112222',arr)
  418. // console.log('this.list33333',this.list)
  419. },
  420. sumweight(arr) {
  421. let formedWeight = 0;
  422. let notFormedWeight = 0;
  423. arr.map((s,i) => {
  424. if (s.extInfo.reportWeight) {
  425. if (s.extInfo.isQualified == 1) {
  426. formedWeight += s.extInfo.reportWeight * 1;
  427. } else {
  428. notFormedWeight += s.extInfo.reportWeight * 1;
  429. }
  430. } else {
  431. s.extInfo.reportWeight = null;
  432. }
  433. })
  434. console.log('chulaiuwanlo',formedWeight,notFormedWeight)
  435. this.$emit('weightEmit',formedWeight,notFormedWeight)
  436. },
  437. cancel() {
  438. this.show = false
  439. this.reportWeight = 0
  440. this.weight = 0
  441. },
  442. taskChange(e) {
  443. console.log(e)
  444. },
  445. getDelete2(idx) {
  446. uni.showModal({
  447. title: '删除',
  448. content: '是否确实删除此物料!',
  449. confirmText: '确认', //这块是确定按钮的文字
  450. success: rr => {
  451. if (rr.confirm) {
  452. this.list.splice(idx, 1)
  453. }
  454. }
  455. })
  456. },
  457. save() {
  458. if (this.isFirstTask == 1) {
  459. this.resultObj = {}
  460. if (Number(this.reportWeight) < Number(this.paramList[0].CVIWeight)) {
  461. this.resultObj = this.paramList[0]
  462. this.setDataSave()
  463. return false
  464. }
  465. if (Number(this.reportWeight) >= this.paramList[this.paramList.length - 1].CVIWeight) {
  466. this.resultObj = this.paramList[this.paramList.length - 1]
  467. this.setDataSave()
  468. return false
  469. }
  470. for (let i = 1; i < this.paramList.length; i++) {
  471. console.log(i)
  472. console.log(11, Number(this.paramList[i - 1].CVIWeight), Number(this.reportWeight))
  473. if (Number(this.paramList[i - 1].CVIWeight) < Number(this.reportWeight) && Number(this
  474. .reportWeight) < Number(this.paramList[i].CVIWeight)) {
  475. this.resultObj = this.paramList[i]
  476. break;
  477. }
  478. }
  479. this.setDataSave()
  480. }
  481. },
  482. setDataSave() {
  483. this.$set(this.list[this.resultIdx].extInfo, 'taskId', this.resultObj.taskId)
  484. this.$set(this.list[this.resultIdx].extInfo, 'density', this.resultObj.density)
  485. this.$set(this.list[this.resultIdx].extInfo, 'billet', this.resultObj.billet)
  486. this.$set(this.list[this.resultIdx].extInfo, 'taskName', this.resultObj.taskName)
  487. this.cancel()
  488. },
  489. changeHeatNumber() {
  490. console.log(this.deviceList)
  491. this.deviceList.forEach(f => {
  492. this.list.forEach(o => {
  493. if (o.deviceId && f.instanceId == o.deviceId && this.deviceList.length > 1) {
  494. o.extInfo.heatNumber = f.extInfo.heatNumber
  495. this.$forceUpdate()
  496. } else if (this.deviceList.length == 1) {
  497. o.extInfo.heatNumber = this.deviceList[0].extInfo.heatNumber
  498. this.$forceUpdate()
  499. }
  500. })
  501. })
  502. },
  503. }
  504. }
  505. </script>
  506. <style lang="scss" scoped>
  507. .title_box {
  508. margin-top: 20rpx;
  509. .name {
  510. font-size: 28rpx;
  511. font-style: normal;
  512. font-weight: 400;
  513. color: $theme-color;
  514. padding-left: 20rpx;
  515. position: relative;
  516. &:before {
  517. position: absolute;
  518. content: '';
  519. left: 0rpx;
  520. top: 0rpx;
  521. bottom: 0rpx;
  522. width: 4rpx;
  523. height: 28rpx;
  524. background: $theme-color;
  525. margin: auto;
  526. }
  527. }
  528. .btn_box {
  529. .btn {
  530. padding: 0 18rpx;
  531. height: 50rpx;
  532. line-height: 50rpx;
  533. background: $theme-color;
  534. font-size: 26rpx;
  535. font-style: normal;
  536. font-weight: 400;
  537. font-size: 24rpx;
  538. color: #fff;
  539. border-radius: 4rpx;
  540. margin-left: 24rpx;
  541. }
  542. }
  543. }
  544. .material {
  545. margin-top: 16rpx;
  546. border: 1rpx solid transparent;
  547. .content_table {
  548. width: 100%;
  549. border: 2rpx solid $border-color;
  550. box-sizing: border-box;
  551. .item {
  552. display: flex;
  553. border-bottom: 2rpx solid $border-color;
  554. .lable {
  555. width: 132rpx;
  556. text-align: center;
  557. background-color: #F7F9FA;
  558. font-size: 26rpx;
  559. border-right: 2rpx solid $border-color;
  560. flex-shrink: 0;
  561. }
  562. .lable150 {
  563. width: 156rpx !important;
  564. font-size: 24rpx;
  565. }
  566. .lable190 {
  567. width: 200rpx !important;
  568. font-size: 24rpx;
  569. }
  570. .ww80 {
  571. width: 80rpx;
  572. }
  573. .content {
  574. width: 518rpx;
  575. min-height: 64rpx;
  576. font-size: 28rpx;
  577. line-height: 28rpx;
  578. font-style: normal;
  579. font-weight: 400;
  580. padding: 18rpx 8rpx;
  581. box-sizing: border-box;
  582. word-wrap: break-word;
  583. flex-grow: 1 !important;
  584. .unit {
  585. padding: 0 4rpx;
  586. font-size: 24rpx;
  587. color: #404446;
  588. }
  589. .penalize {
  590. width: 160rpx;
  591. line-height: 60rpx;
  592. background: $theme-color;
  593. font-size: 24rpx;
  594. text-align: center;
  595. color: #fff;
  596. }
  597. }
  598. .content_H {
  599. min-height: 92rpx;
  600. }
  601. .pd4 {
  602. padding: 4rpx 8rpx;
  603. }
  604. &:last-child {
  605. border-bottom: none;
  606. }
  607. }
  608. .ww55 {
  609. width: 55%;
  610. }
  611. .ww50 {
  612. width: 50%;
  613. }
  614. .ww45 {
  615. width: 45%;
  616. }
  617. .tag_box {
  618. padding: 2rpx 10rpx;
  619. margin-right: 12rpx;
  620. background: #E6A23C;
  621. font-size: 22rpx;
  622. color: #fff;
  623. border-radius: 4rpx;
  624. }
  625. }
  626. }
  627. .materialBor {
  628. border: 1rpx solid #157A2C
  629. }
  630. .content_table2 {
  631. width: 100%;
  632. .row {
  633. width: 100%;
  634. .item {
  635. color: #404446;
  636. font-size: 28rpx;
  637. padding-left: 12rpx;
  638. }
  639. .color157 {
  640. color: $theme-color;
  641. }
  642. .ww30 {
  643. width: 30%;
  644. }
  645. .ww20 {
  646. width: 20%;
  647. }
  648. .ww15 {
  649. width: 15%;
  650. }
  651. .ww25 {
  652. width: 25%;
  653. }
  654. .ww50 {
  655. width: 50%;
  656. }
  657. .ww10 {
  658. width: 10%;
  659. }
  660. }
  661. .head {
  662. height: 64rpx;
  663. background: #F7F9FA;
  664. // border-top: 2rpx solid #E3E5E5;
  665. border-left: 2rpx solid #E3E5E5;
  666. box-sizing: border-box;
  667. .item {
  668. height: 64rpx;
  669. line-height: 64rpx;
  670. border-right: 2rpx solid #E3E5E5;
  671. box-sizing: border-box;
  672. font-size: 22rpx;
  673. }
  674. }
  675. .tr {
  676. border-top: 2rpx solid #E3E5E5;
  677. border-left: 2rpx solid #E3E5E5;
  678. .item {
  679. font-size: 24rpx;
  680. min-height: 74rpx;
  681. display: flex;
  682. align-items: center;
  683. border-right: 2rpx solid #E3E5E5;
  684. box-sizing: border-box;
  685. white-space: normal;
  686. word-break: break-all;
  687. }
  688. &:last-child {
  689. border-bottom: 2rpx solid #E3E5E5;
  690. }
  691. .numerate {
  692. font-size: 22rpx;
  693. color: $theme-color;
  694. }
  695. }
  696. }
  697. .content_num {
  698. display: flex;
  699. align-items: center;
  700. padding: 0 4rpx;
  701. /deep/ .uni-input-input {
  702. border: 2rpx solid #F0F8F2;
  703. background: #F0F8F2;
  704. color: $theme-color;
  705. }
  706. }
  707. .round {
  708. width: 32rpx;
  709. height: 32rpx;
  710. line-height: 30rpx;
  711. text-align: center;
  712. border-radius: 50%;
  713. background: $theme-color;
  714. font-size: 24rpx;
  715. font-style: normal;
  716. font-weight: 400;
  717. color: #fff;
  718. margin-right: 10rpx;
  719. }
  720. .popup_box {
  721. width: 94vw;
  722. padding: 16rpx 12rpx;
  723. box-sizing: border-box;
  724. }
  725. .operate_box {
  726. margin-top: 32rpx;
  727. padding: 10rpx 100rpx;
  728. /deep/ .u-button {
  729. width: 160rpx;
  730. }
  731. }
  732. .formula_box {
  733. font-size: 24rpx;
  734. font-style: normal;
  735. font-weight: 400;
  736. margin-top: 12rpx;
  737. }
  738. .reportWeight {
  739. font-size: 24rpx;
  740. font-style: normal;
  741. font-weight: 400;
  742. margin-top: 30rpx;
  743. text {
  744. color: $theme-color;
  745. }
  746. }
  747. </style>