oneJobBom.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  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. <input class="uni-input" v-model="it.extInfo.materielCode"></input>
  39. </view>
  40. </view>
  41. <view class="rx ww50">
  42. <view class="lable lable150 rx-cc ">客户代号</view>
  43. <view class="content content_num">
  44. <input class="uni-input" v-model="it.extInfo.clientCode"></input>
  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 content_H">
  52. <input class="uni-input" v-model="it.extInfo.engrave"></input>
  53. </view>
  54. </view>
  55. <view class="rx ww50">
  56. <view class="lable lable150 rx-cc ">位置</view>
  57. <view class="content ">
  58. <zxz-uni-data-select :localdata="positionList" v-model="it.position" dataValue='id'
  59. format='{name}' dataKey="code" filterable :clear='false'></zxz-uni-data-select>
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. <view class="content_table2">
  65. <view class="head row rx-sc">
  66. <view class="item ww25">物料重量Kg</view>
  67. <view class="item ww25">报工重量kg</view>
  68. <view class="item ww25">质检结果</view>
  69. <view class="item ww25">处置</view>
  70. </view>
  71. <view class="table">
  72. <view class="tr row rx-sc">
  73. <view class="item ww25">32.67</view>
  74. <view class="item ww25 content_num">
  75. <input class="uni-input" v-model="it.formedNum"></input>
  76. </view>
  77. <view class="item ww25">
  78. <zxz-uni-data-select :localdata="inspectionList" v-model="it.inspection" dataValue='id'
  79. format='{name}' dataKey="code" filterable :clear='false'></zxz-uni-data-select>
  80. </view>
  81. <view class="item ww25">
  82. <zxz-uni-data-select :localdata="stepsList" v-model="it.disposeOf" dataValue='id'
  83. format='{taskTypeName}' dataKey="code" filterable :clear='false'></zxz-uni-data-select>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. </view>
  90. </template>
  91. <script>
  92. import {
  93. getTaskInstanceList
  94. } from '@/api/pda/workOrder.js'
  95. export default {
  96. props: {
  97. item: {
  98. type: Object,
  99. default: () => {}
  100. },
  101. list: {
  102. type: Array,
  103. default: () => []
  104. }
  105. },
  106. watch: {
  107. },
  108. data() {
  109. return {
  110. classificationList: [],
  111. stepsList: [],
  112. positionList: [{
  113. id: '1',
  114. name: '内'
  115. },
  116. {
  117. id: '2',
  118. name: '中'
  119. },
  120. {
  121. id: '1',
  122. name: '外'
  123. }
  124. ],
  125. inspectionList: [{
  126. id: '1',
  127. name: '合格'
  128. },
  129. {
  130. id: '2',
  131. name: '不合格'
  132. },
  133. ]
  134. }
  135. },
  136. created() {
  137. this.getSteps()
  138. },
  139. methods: {
  140. getSteps() {
  141. console.log(this.item)
  142. getTaskInstanceList(this.item.workOrderId).then(res => {
  143. this.stepsList = res
  144. })
  145. },
  146. }
  147. }
  148. </script>
  149. <style lang="scss" scoped>
  150. .title_box {
  151. margin-top: 20rpx;
  152. .name {
  153. font-size: 28rpx;
  154. font-style: normal;
  155. font-weight: 400;
  156. color: $theme-color;
  157. padding-left: 20rpx;
  158. position: relative;
  159. &:before {
  160. position: absolute;
  161. content: '';
  162. left: 0rpx;
  163. top: 0rpx;
  164. bottom: 0rpx;
  165. width: 4rpx;
  166. height: 28rpx;
  167. background: $theme-color;
  168. margin: auto;
  169. }
  170. }
  171. }
  172. .material {
  173. margin-top: 10rpx;
  174. .content_table {
  175. width: 100%;
  176. border: 2rpx solid $border-color;
  177. .item {
  178. display: flex;
  179. border-bottom: 2rpx solid $border-color;
  180. .lable {
  181. width: 132rpx;
  182. text-align: center;
  183. background-color: #F7F9FA;
  184. font-size: 26rpx;
  185. border-right: 2rpx solid $border-color;
  186. flex-shrink: 0;
  187. }
  188. .lable150 {
  189. width: 156rpx !important;
  190. font-size: 24rpx;
  191. }
  192. .lable190 {
  193. width: 190rpx !important;
  194. font-size: 24rpx;
  195. }
  196. .ww80 {
  197. width: 80rpx;
  198. }
  199. .content {
  200. width: 518rpx;
  201. min-height: 64rpx;
  202. font-size: 28rpx;
  203. line-height: 28rpx;
  204. font-style: normal;
  205. font-weight: 400;
  206. padding: 18rpx 8rpx;
  207. box-sizing: border-box;
  208. word-wrap: break-word;
  209. flex-grow: 1 !important;
  210. .unit {
  211. padding: 0 4rpx;
  212. font-size: 24rpx;
  213. color: #404446;
  214. }
  215. .penalize {
  216. width: 160rpx;
  217. line-height: 60rpx;
  218. background: $theme-color;
  219. font-size: 24rpx;
  220. text-align: center;
  221. color: #fff;
  222. }
  223. }
  224. .content_H {
  225. min-height: 92rpx;
  226. }
  227. .pd4 {
  228. padding: 4rpx 8rpx;
  229. }
  230. &:last-child {
  231. border-bottom: none;
  232. }
  233. }
  234. .ww55 {
  235. width: 55%;
  236. }
  237. .ww50 {
  238. width: 50%;
  239. }
  240. .ww45 {
  241. width: 45%;
  242. }
  243. }
  244. }
  245. .content_table2 {
  246. width: 100%;
  247. .row {
  248. width: 100%;
  249. .item {
  250. color: #404446;
  251. font-size: 28rpx;
  252. padding-left: 12rpx;
  253. }
  254. .color157 {
  255. color: $theme-color;
  256. }
  257. .ww20 {
  258. width: 20%;
  259. }
  260. .ww35 {
  261. width: 35%;
  262. }
  263. .ww25 {
  264. width: 25%;
  265. }
  266. }
  267. .head {
  268. height: 64rpx;
  269. background: #F7F9FA;
  270. border-top: 2rpx solid #E3E5E5;
  271. border-left: 2rpx solid #E3E5E5;
  272. .item {
  273. height: 64rpx;
  274. line-height: 64rpx;
  275. border-right: 2rpx solid #E3E5E5;
  276. box-sizing: border-box;
  277. }
  278. }
  279. .tr {
  280. border-top: 2rpx solid #E3E5E5;
  281. border-left: 2rpx solid #E3E5E5;
  282. .item {
  283. font-size: 24rpx;
  284. min-height: 74rpx;
  285. display: flex;
  286. align-items: center;
  287. border-right: 2rpx solid #E3E5E5;
  288. box-sizing: border-box;
  289. white-space: normal;
  290. word-break: break-all;
  291. }
  292. &:last-child {
  293. border-bottom: 2rpx solid #E3E5E5;
  294. }
  295. }
  296. }
  297. .content_num {
  298. display: flex;
  299. align-items: center;
  300. padding: 0 4rpx;
  301. /deep/ .uni-input-input {
  302. border: 2rpx solid #F0F8F2;
  303. background: #F0F8F2;
  304. color: $theme-color;
  305. }
  306. }
  307. .round {
  308. width: 32rpx;
  309. height: 32rpx;
  310. line-height: 32rpx;
  311. text-align: center;
  312. border-radius: 50%;
  313. background: $theme-color;
  314. font-size: 24rpx;
  315. font-style: normal;
  316. font-weight: 400;
  317. color: #fff;
  318. margin-right: 18rpx;
  319. }
  320. </style>