oneJobQualityBom.vue 19 KB

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