oneJobQualityBomPL.vue 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583
  1. <template>
  2. <view>
  3. <view class="title_box rx-bc">
  4. <view class="name">报工信息2: ({{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 style="color:#157A2C;">{{it.feedQuantity }}</view>
  85. </view>
  86. </view>
  87. <view class="rx ww50">
  88. <view class="lable lable150 rx-cc ">投料类型</view>
  89. <view class="content rx-sc" style="color:#157A2C;">
  90. <view>批量投料</view>
  91. </view>
  92. </view>
  93. </view>
  94. </view>
  95. <view class="content_table2">
  96. <view class="head row rx-sc">
  97. <view class="item ww25" style="font-size: 20rpx;">
  98. 合格品数量
  99. </view>
  100. <view class="item ww25">报工总重量/{{it.extInfo.weightUnit}} </view>
  101. <view class="item ww30 rx-bc">
  102. <text>处置</text>
  103. </view>
  104. <view class="item ww20 ">
  105. 取样 </view>
  106. </view>
  107. <view class="table">
  108. <view class="tr row rx-sc" v-for="(yy, yyIdx) in it.extInfo.batchReportInfo">
  109. <view class="item ww25 content_num">
  110. <view >{{yy.allFeedQuantity }}</view>
  111. </view>
  112. <view class="item ww25 content_num">
  113. <view v-if='isDetails'>{{yy.allReportWeight }}</view>
  114. <input class="uni-input" v-else v-model="yy.allReportWeight" type='digit'></input>
  115. </view>
  116. <view class="item ww30" v-if='isDetails'>
  117. {{it.extInfo.taskName}}
  118. </view>
  119. <view class="item ww30" v-else>
  120. <zxz-uni-data-select :localdata="stepsList" v-model="yy.taskId" dataValue='taskId'
  121. format='{taskTypeName}' dataKey="taskId" filterable
  122. @change=" e => yy.taskName = e.taskTypeName" :clear='false'></zxz-uni-data-select>
  123. </view>
  124. <view class="item ww20">
  125. </view>
  126. </view>
  127. </view>
  128. </view>
  129. </view>
  130. </view>
  131. </template>
  132. <script>
  133. import {
  134. getTaskInstanceList
  135. } from '@/api/pda/workOrder.js'
  136. export default {
  137. props: {
  138. item: {
  139. type: Object,
  140. default: () => {}
  141. },
  142. list: {
  143. type: Array,
  144. default: () => []
  145. },
  146. isDetails: {
  147. type: Boolean,
  148. default: false
  149. }
  150. },
  151. watch: {
  152. },
  153. data() {
  154. return {
  155. taskTypeName: null,
  156. isFirstTask: null,
  157. stepsList: [],
  158. }
  159. },
  160. created() {
  161. this.taskTypeName = this.item.currentTaskDiagram.taskTypeName
  162. this.isFirstTask = this.item.currentTaskDiagram.isFirstTask
  163. this.getSteps()
  164. },
  165. methods: {
  166. getSteps() {
  167. getTaskInstanceList(this.item.workOrderId).then(res => {
  168. this.stepsList = res
  169. })
  170. },
  171. }
  172. }
  173. </script>
  174. <style lang="scss" scoped>
  175. .title_box {
  176. margin-top: 20rpx;
  177. .name {
  178. font-size: 28rpx;
  179. font-style: normal;
  180. font-weight: 400;
  181. color: $theme-color;
  182. padding-left: 20rpx;
  183. position: relative;
  184. &:before {
  185. position: absolute;
  186. content: '';
  187. left: 0rpx;
  188. top: 0rpx;
  189. bottom: 0rpx;
  190. width: 4rpx;
  191. height: 28rpx;
  192. background: $theme-color;
  193. margin: auto;
  194. }
  195. }
  196. .btn_box {
  197. .btn {
  198. padding: 0 18rpx;
  199. height: 50rpx;
  200. line-height: 50rpx;
  201. background: $theme-color;
  202. font-size: 26rpx;
  203. font-style: normal;
  204. font-weight: 400;
  205. font-size: 24rpx;
  206. color: #fff;
  207. border-radius: 4rpx;
  208. margin-left: 24rpx;
  209. }
  210. }
  211. }
  212. .material {
  213. margin-top: 16rpx;
  214. .content_table {
  215. width: 100%;
  216. border: 2rpx solid $border-color;
  217. .item {
  218. display: flex;
  219. border-bottom: 2rpx solid $border-color;
  220. .lable {
  221. width: 132rpx;
  222. text-align: center;
  223. background-color: #F7F9FA;
  224. font-size: 26rpx;
  225. border-right: 2rpx solid $border-color;
  226. flex-shrink: 0;
  227. }
  228. .lable150 {
  229. width: 156rpx !important;
  230. font-size: 24rpx;
  231. }
  232. .lable190 {
  233. width: 190rpx !important;
  234. font-size: 24rpx;
  235. }
  236. .ww80 {
  237. width: 80rpx;
  238. }
  239. .content {
  240. width: 500rpx;
  241. min-height: 64rpx;
  242. font-size: 28rpx;
  243. line-height: 28rpx;
  244. font-style: normal;
  245. font-weight: 400;
  246. padding: 18rpx 8rpx;
  247. box-sizing: border-box;
  248. word-wrap: break-word;
  249. flex-grow: 1 !important;
  250. .unit {
  251. padding: 0 4rpx;
  252. font-size: 24rpx;
  253. color: #404446;
  254. }
  255. .penalize {
  256. width: 160rpx;
  257. line-height: 60rpx;
  258. background: $theme-color;
  259. font-size: 24rpx;
  260. text-align: center;
  261. color: #fff;
  262. }
  263. }
  264. .content_H {
  265. min-height: 92rpx;
  266. }
  267. .pd4 {
  268. padding: 4rpx 8rpx;
  269. }
  270. &:last-child {
  271. border-bottom: none;
  272. }
  273. }
  274. .ww55 {
  275. width: 55%;
  276. }
  277. .ww50 {
  278. width: 50%;
  279. }
  280. .ww45 {
  281. width: 45%;
  282. }
  283. }
  284. }
  285. .content_table2 {
  286. width: 100%;
  287. // margin-top: 16rpx;
  288. .row {
  289. width: 100%;
  290. .item {
  291. color: #404446;
  292. font-size: 28rpx;
  293. padding-left: 12rpx;
  294. }
  295. .color157 {
  296. color: $theme-color;
  297. }
  298. .ww30 {
  299. width: 30%;
  300. }
  301. .ww20 {
  302. width: 20%;
  303. }
  304. .ww15 {
  305. width: 15%;
  306. }
  307. .ww25 {
  308. width: 25%;
  309. }
  310. .ww50 {
  311. width: 50%;
  312. }
  313. .ww10 {
  314. width: 10%;
  315. }
  316. .ww40 {
  317. width: 40%;
  318. }
  319. }
  320. .head {
  321. height: 64rpx;
  322. background: #F7F9FA;
  323. border-top: 2rpx solid #E3E5E5;
  324. border-left: 2rpx solid #E3E5E5;
  325. .item {
  326. height: 64rpx;
  327. line-height: 64rpx;
  328. border-right: 2rpx solid #E3E5E5;
  329. box-sizing: border-box;
  330. font-size: 22rpx;
  331. }
  332. }
  333. .tr {
  334. border-top: 2rpx solid #E3E5E5;
  335. border-left: 2rpx solid #E3E5E5;
  336. .item {
  337. font-size: 24rpx;
  338. min-height: 74rpx;
  339. display: flex;
  340. align-items: center;
  341. border-right: 2rpx solid #E3E5E5;
  342. box-sizing: border-box;
  343. white-space: normal;
  344. word-break: break-all;
  345. }
  346. &:last-child {
  347. border-bottom: 2rpx solid #E3E5E5;
  348. }
  349. .numerate {
  350. font-size: 22rpx;
  351. color: $theme-color;
  352. }
  353. }
  354. }
  355. .content_num {
  356. display: flex;
  357. align-items: center;
  358. padding: 0 4rpx;
  359. /deep/ .uni-input-input {
  360. border: 2rpx solid #F0F8F2;
  361. background: #F0F8F2;
  362. color: $theme-color;
  363. }
  364. }
  365. .round {
  366. width: 32rpx;
  367. height: 32rpx;
  368. line-height: 32rpx;
  369. text-align: center;
  370. border-radius: 50%;
  371. background: $theme-color;
  372. font-size: 24rpx;
  373. font-style: normal;
  374. font-weight: 400;
  375. color: #fff;
  376. margin-right: 18rpx;
  377. }
  378. .popup_box {
  379. width: 94vw;
  380. padding: 16rpx 12rpx;
  381. box-sizing: border-box;
  382. }
  383. .operate_box {
  384. margin-top: 32rpx;
  385. padding: 10rpx 100rpx;
  386. /deep/ .u-button {
  387. width: 160rpx;
  388. }
  389. }
  390. .formula_box {
  391. font-size: 24rpx;
  392. font-style: normal;
  393. font-weight: 400;
  394. margin-top: 12rpx;
  395. }
  396. .reportWeight {
  397. font-size: 24rpx;
  398. font-style: normal;
  399. font-weight: 400;
  400. margin-top: 30rpx;
  401. text {
  402. color: $theme-color;
  403. }
  404. }
  405. </style>