semiProductJobBom.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053
  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' @change="handleInput"></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. setTimeout(()=>{
  322. this.handleInput()
  323. },800)
  324. },
  325. methods: {
  326. getSteps() {
  327. getTaskInstanceList(this.item.workOrderId).then(res => {
  328. res.pop();
  329. this.stepsList = res
  330. })
  331. },
  332. getCompute() {
  333. getComputeParam(this.item.workOrderId, this.item.currentTaskDiagram.taskId).then(res => {
  334. this.paramList = []
  335. this.paramList = res && res.paramList || []
  336. this.paramObj = res || {}
  337. })
  338. },
  339. handAddParam() {
  340. // billet: null,
  341. // density: null,
  342. // result: null,
  343. // PIPDensity: null,
  344. // volume: null,
  345. // coefficient: null
  346. if (this.isFirstTask == 1) {
  347. this.paramList.push({
  348. taskId: null,
  349. taskName: null,
  350. })
  351. }
  352. },
  353. getDelete(idx) {
  354. this.paramList.splice(idx, 1)
  355. },
  356. changeInp(item, index) {
  357. if (Number(item.billet) && Number(item.density)) {
  358. this.paramList[index].CVIWeight = (Number(this.weight) / item.billet * item.density).toFixed(2)
  359. }
  360. },
  361. paramSave() {
  362. if (this.isFirstTask == 1 && this.paramList.length > 0) {
  363. let bol
  364. let _i
  365. bol = this.paramList.every((e, i) => {
  366. _i = i + 1
  367. return e.taskId && e.billet && e.density
  368. })
  369. if (!bol) {
  370. uni.showToast({
  371. title: `请完善第${_i}计算数据`,
  372. icon: 'none'
  373. })
  374. return false
  375. }
  376. if (this.paramList.length < 1) {
  377. uni.showToast({
  378. title: `请输入二个以上计算数据`,
  379. icon: 'none'
  380. })
  381. return false
  382. }
  383. }
  384. let param = {}
  385. if (!Object.prototype.hasOwnProperty.call(this.paramObj, 'id')) {
  386. param = {
  387. paramList: this.paramList,
  388. workOrderId: this.item.workOrderId,
  389. taskId: this.item.currentTaskDiagram.taskId
  390. }
  391. } else {
  392. this.paramObj.paramList = this.paramList
  393. param = this.paramObj
  394. }
  395. saveParam(param).then(res => {
  396. uni.showToast({
  397. icon: 'none',
  398. title: '操作成功'
  399. })
  400. this.getCompute()
  401. })
  402. },
  403. openNumerate(row, idx) {
  404. if (!row.extInfo.reportWeight) {
  405. uni.showToast({
  406. icon: 'none',
  407. title: '请先输入报工重量'
  408. })
  409. return false
  410. }
  411. this.weight = row.extInfo.weight
  412. this.reportWeight = row.extInfo.reportWeight
  413. this.resultIdx = idx
  414. this.show = true
  415. },
  416. handleInput() {
  417. let arr = JSON.parse(JSON.stringify(this.list));
  418. this.sumweight(arr);
  419. // this.sunTj();
  420. console.log('arr11111112222',arr)
  421. // console.log('this.list33333',this.list)
  422. },
  423. sumweight(arr) {
  424. let formedWeight = 0;
  425. let notFormedWeight = 0;
  426. arr.map((s,i) => {
  427. if (s.extInfo.reportWeight) {
  428. if (s.extInfo.isQualified == 1) {
  429. formedWeight += s.extInfo.reportWeight * 1;
  430. } else {
  431. notFormedWeight += s.extInfo.reportWeight * 1;
  432. }
  433. } else {
  434. s.extInfo.reportWeight = null;
  435. }
  436. })
  437. console.log('chulaiuwanlo',formedWeight,notFormedWeight)
  438. this.$emit('weightEmit',formedWeight,notFormedWeight)
  439. },
  440. cancel() {
  441. this.show = false
  442. this.reportWeight = 0
  443. this.weight = 0
  444. },
  445. taskChange(e) {
  446. console.log(e)
  447. },
  448. getDelete2(idx) {
  449. uni.showModal({
  450. title: '删除',
  451. content: '是否确实删除此物料!',
  452. confirmText: '确认', //这块是确定按钮的文字
  453. success: rr => {
  454. if (rr.confirm) {
  455. this.list.splice(idx, 1)
  456. }
  457. }
  458. })
  459. },
  460. save() {
  461. if (this.isFirstTask == 1) {
  462. this.resultObj = {}
  463. if (Number(this.reportWeight) < Number(this.paramList[0].CVIWeight)) {
  464. this.resultObj = this.paramList[0]
  465. this.setDataSave()
  466. return false
  467. }
  468. if (Number(this.reportWeight) >= this.paramList[this.paramList.length - 1].CVIWeight) {
  469. this.resultObj = this.paramList[this.paramList.length - 1]
  470. this.setDataSave()
  471. return false
  472. }
  473. for (let i = 1; i < this.paramList.length; i++) {
  474. console.log(i)
  475. console.log(11, Number(this.paramList[i - 1].CVIWeight), Number(this.reportWeight))
  476. if (Number(this.paramList[i - 1].CVIWeight) < Number(this.reportWeight) && Number(this
  477. .reportWeight) < Number(this.paramList[i].CVIWeight)) {
  478. this.resultObj = this.paramList[i]
  479. break;
  480. }
  481. }
  482. this.setDataSave()
  483. }
  484. },
  485. setDataSave() {
  486. this.$set(this.list[this.resultIdx].extInfo, 'taskId', this.resultObj.taskId)
  487. this.$set(this.list[this.resultIdx].extInfo, 'density', this.resultObj.density)
  488. this.$set(this.list[this.resultIdx].extInfo, 'billet', this.resultObj.billet)
  489. this.$set(this.list[this.resultIdx].extInfo, 'taskName', this.resultObj.taskName)
  490. this.cancel()
  491. },
  492. changeHeatNumber() {
  493. console.log(this.deviceList)
  494. this.deviceList.forEach(f => {
  495. this.list.forEach(o => {
  496. if (o.deviceId && f.instanceId == o.deviceId && this.deviceList.length > 1) {
  497. o.extInfo.heatNumber = f.extInfo.heatNumber
  498. this.$forceUpdate()
  499. } else if (this.deviceList.length == 1) {
  500. o.extInfo.heatNumber = this.deviceList[0].extInfo.heatNumber
  501. this.$forceUpdate()
  502. }
  503. })
  504. })
  505. },
  506. }
  507. }
  508. </script>
  509. <style lang="scss" scoped>
  510. .title_box {
  511. margin-top: 20rpx;
  512. .name {
  513. font-size: 28rpx;
  514. font-style: normal;
  515. font-weight: 400;
  516. color: $theme-color;
  517. padding-left: 20rpx;
  518. position: relative;
  519. &:before {
  520. position: absolute;
  521. content: '';
  522. left: 0rpx;
  523. top: 0rpx;
  524. bottom: 0rpx;
  525. width: 4rpx;
  526. height: 28rpx;
  527. background: $theme-color;
  528. margin: auto;
  529. }
  530. }
  531. .btn_box {
  532. .btn {
  533. padding: 0 18rpx;
  534. height: 50rpx;
  535. line-height: 50rpx;
  536. background: $theme-color;
  537. font-size: 26rpx;
  538. font-style: normal;
  539. font-weight: 400;
  540. font-size: 24rpx;
  541. color: #fff;
  542. border-radius: 4rpx;
  543. margin-left: 24rpx;
  544. }
  545. }
  546. }
  547. .material {
  548. margin-top: 16rpx;
  549. border: 1rpx solid transparent;
  550. .content_table {
  551. width: 100%;
  552. border: 2rpx solid $border-color;
  553. box-sizing: border-box;
  554. .item {
  555. display: flex;
  556. border-bottom: 2rpx solid $border-color;
  557. .lable {
  558. width: 132rpx;
  559. text-align: center;
  560. background-color: #F7F9FA;
  561. font-size: 26rpx;
  562. border-right: 2rpx solid $border-color;
  563. flex-shrink: 0;
  564. }
  565. .lable150 {
  566. width: 156rpx !important;
  567. font-size: 24rpx;
  568. }
  569. .lable190 {
  570. width: 200rpx !important;
  571. font-size: 24rpx;
  572. }
  573. .ww80 {
  574. width: 80rpx;
  575. }
  576. .content {
  577. width: 518rpx;
  578. min-height: 64rpx;
  579. font-size: 28rpx;
  580. line-height: 28rpx;
  581. font-style: normal;
  582. font-weight: 400;
  583. padding: 18rpx 8rpx;
  584. box-sizing: border-box;
  585. word-wrap: break-word;
  586. flex-grow: 1 !important;
  587. .unit {
  588. padding: 0 4rpx;
  589. font-size: 24rpx;
  590. color: #404446;
  591. }
  592. .penalize {
  593. width: 160rpx;
  594. line-height: 60rpx;
  595. background: $theme-color;
  596. font-size: 24rpx;
  597. text-align: center;
  598. color: #fff;
  599. }
  600. }
  601. .content_H {
  602. min-height: 92rpx;
  603. }
  604. .pd4 {
  605. padding: 4rpx 8rpx;
  606. }
  607. &:last-child {
  608. border-bottom: none;
  609. }
  610. }
  611. .ww55 {
  612. width: 55%;
  613. }
  614. .ww50 {
  615. width: 50%;
  616. }
  617. .ww45 {
  618. width: 45%;
  619. }
  620. .tag_box {
  621. padding: 2rpx 10rpx;
  622. margin-right: 12rpx;
  623. background: #E6A23C;
  624. font-size: 22rpx;
  625. color: #fff;
  626. border-radius: 4rpx;
  627. }
  628. }
  629. }
  630. .materialBor {
  631. border: 1rpx solid #157A2C
  632. }
  633. .content_table2 {
  634. width: 100%;
  635. .row {
  636. width: 100%;
  637. .item {
  638. color: #404446;
  639. font-size: 28rpx;
  640. padding-left: 12rpx;
  641. }
  642. .color157 {
  643. color: $theme-color;
  644. }
  645. .ww30 {
  646. width: 30%;
  647. }
  648. .ww20 {
  649. width: 20%;
  650. }
  651. .ww15 {
  652. width: 15%;
  653. }
  654. .ww25 {
  655. width: 25%;
  656. }
  657. .ww50 {
  658. width: 50%;
  659. }
  660. .ww10 {
  661. width: 10%;
  662. }
  663. }
  664. .head {
  665. height: 64rpx;
  666. background: #F7F9FA;
  667. // border-top: 2rpx solid #E3E5E5;
  668. border-left: 2rpx solid #E3E5E5;
  669. box-sizing: border-box;
  670. .item {
  671. height: 64rpx;
  672. line-height: 64rpx;
  673. border-right: 2rpx solid #E3E5E5;
  674. box-sizing: border-box;
  675. font-size: 22rpx;
  676. }
  677. }
  678. .tr {
  679. border-top: 2rpx solid #E3E5E5;
  680. border-left: 2rpx solid #E3E5E5;
  681. .item {
  682. font-size: 24rpx;
  683. min-height: 74rpx;
  684. display: flex;
  685. align-items: center;
  686. border-right: 2rpx solid #E3E5E5;
  687. box-sizing: border-box;
  688. white-space: normal;
  689. word-break: break-all;
  690. }
  691. &:last-child {
  692. border-bottom: 2rpx solid #E3E5E5;
  693. }
  694. .numerate {
  695. font-size: 22rpx;
  696. color: $theme-color;
  697. }
  698. }
  699. }
  700. .content_num {
  701. display: flex;
  702. align-items: center;
  703. padding: 0 4rpx;
  704. /deep/ .uni-input-input {
  705. border: 2rpx solid #F0F8F2;
  706. background: #F0F8F2;
  707. color: $theme-color;
  708. }
  709. }
  710. .round {
  711. width: 32rpx;
  712. height: 32rpx;
  713. line-height: 30rpx;
  714. text-align: center;
  715. border-radius: 50%;
  716. background: $theme-color;
  717. font-size: 24rpx;
  718. font-style: normal;
  719. font-weight: 400;
  720. color: #fff;
  721. margin-right: 10rpx;
  722. }
  723. .popup_box {
  724. width: 94vw;
  725. padding: 16rpx 12rpx;
  726. box-sizing: border-box;
  727. }
  728. .operate_box {
  729. margin-top: 32rpx;
  730. padding: 10rpx 100rpx;
  731. /deep/ .u-button {
  732. width: 160rpx;
  733. }
  734. }
  735. .formula_box {
  736. font-size: 24rpx;
  737. font-style: normal;
  738. font-weight: 400;
  739. margin-top: 12rpx;
  740. }
  741. .reportWeight {
  742. font-size: 24rpx;
  743. font-style: normal;
  744. font-weight: 400;
  745. margin-top: 30rpx;
  746. text {
  747. color: $theme-color;
  748. }
  749. }
  750. </style>