semiProductJobBom.vue 19 KB

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