packingTgBom.vue 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523
  1. <template>
  2. <view>
  3. <view class="title_box rx-bc">
  4. <view class="name">打包信息: ({{item.packInfo.pickOutInList.length || 0}})个</view>
  5. </view>
  6. <view class="material " v-for="(it, idx) in item.packInfo.pickOutInList" :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 >{{it.extInfo.position }}</view>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="content_table2">
  67. <view class="head row rx-sc">
  68. <view class="item ww25">工序重量{{it.extInfo.weightUnit}}</view>
  69. <view class="item ww25">处置kg</view>
  70. <view class="item ww50">
  71. 发货(包装)码
  72. </view>
  73. </view>
  74. <view class="table">
  75. <view class="tr row rx-sc">
  76. <view class="item ww25">{{it.extInfo.newWeight }}
  77. </view>
  78. <view class="item ww25 content_num">
  79. 入库
  80. </view>
  81. <view class="item ww50">
  82. <input class="uni-input content_num" v-model="it.sendCode"></input>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. </template>
  90. <script>
  91. import {
  92. getTaskInstanceList
  93. } from '@/api/pda/workOrder.js'
  94. import {
  95. saveParam,
  96. getComputeParam
  97. } from '@/api/pda/tangu.js'
  98. export default {
  99. props: {
  100. item: {
  101. type: Object,
  102. default: () => {}
  103. },
  104. list: {
  105. type: Array,
  106. default: () => []
  107. },
  108. isDetails: {
  109. type: Boolean,
  110. default: false
  111. }
  112. },
  113. watch: {
  114. list: {
  115. immediate: true,
  116. deep: true,
  117. handler(newVal) {
  118. this.item['packInfo'] = {}
  119. this.item['packInfo'].pickOutInList = newVal
  120. }
  121. }
  122. },
  123. data() {
  124. return {
  125. taskTypeName: null,
  126. isFirstTask: null,
  127. }
  128. },
  129. created() {
  130. this.taskTypeName = this.item.currentTaskDiagram.taskTypeName
  131. this.isFirstTask = this.item.currentTaskDiagram.isFirstTask
  132. },
  133. methods: {
  134. }
  135. }
  136. </script>
  137. <style lang="scss" scoped>
  138. .title_box {
  139. margin-top: 20rpx;
  140. .name {
  141. font-size: 28rpx;
  142. font-style: normal;
  143. font-weight: 400;
  144. color: $theme-color;
  145. padding-left: 20rpx;
  146. position: relative;
  147. &:before {
  148. position: absolute;
  149. content: '';
  150. left: 0rpx;
  151. top: 0rpx;
  152. bottom: 0rpx;
  153. width: 4rpx;
  154. height: 28rpx;
  155. background: $theme-color;
  156. margin: auto;
  157. }
  158. }
  159. .btn_box {
  160. .btn {
  161. padding: 0 18rpx;
  162. height: 50rpx;
  163. line-height: 50rpx;
  164. background: $theme-color;
  165. font-size: 26rpx;
  166. font-style: normal;
  167. font-weight: 400;
  168. font-size: 24rpx;
  169. color: #fff;
  170. border-radius: 4rpx;
  171. margin-left: 24rpx;
  172. }
  173. }
  174. }
  175. .material {
  176. margin-top: 10rpx;
  177. .content_table {
  178. width: 100%;
  179. border: 2rpx solid $border-color;
  180. .item {
  181. display: flex;
  182. border-bottom: 2rpx solid $border-color;
  183. .lable {
  184. width: 132rpx;
  185. text-align: center;
  186. background-color: #F7F9FA;
  187. font-size: 26rpx;
  188. border-right: 2rpx solid $border-color;
  189. flex-shrink: 0;
  190. }
  191. .lable150 {
  192. width: 156rpx !important;
  193. font-size: 24rpx;
  194. }
  195. .lable190 {
  196. width: 190rpx !important;
  197. font-size: 24rpx;
  198. }
  199. .ww80 {
  200. width: 80rpx;
  201. }
  202. .content {
  203. width: 518rpx;
  204. min-height: 64rpx;
  205. font-size: 28rpx;
  206. line-height: 28rpx;
  207. font-style: normal;
  208. font-weight: 400;
  209. padding: 18rpx 8rpx;
  210. box-sizing: border-box;
  211. word-wrap: break-word;
  212. flex-grow: 1 !important;
  213. .unit {
  214. padding: 0 4rpx;
  215. font-size: 24rpx;
  216. color: #404446;
  217. }
  218. .penalize {
  219. width: 160rpx;
  220. line-height: 60rpx;
  221. background: $theme-color;
  222. font-size: 24rpx;
  223. text-align: center;
  224. color: #fff;
  225. }
  226. }
  227. .content_H {
  228. min-height: 92rpx;
  229. }
  230. .pd4 {
  231. padding: 4rpx 8rpx;
  232. }
  233. &:last-child {
  234. border-bottom: none;
  235. }
  236. }
  237. .ww55 {
  238. width: 55%;
  239. }
  240. .ww50 {
  241. width: 50%;
  242. }
  243. .ww45 {
  244. width: 45%;
  245. }
  246. }
  247. }
  248. .content_table2 {
  249. width: 100%;
  250. margin-top: 16rpx;
  251. .row {
  252. width: 100%;
  253. .item {
  254. color: #404446;
  255. font-size: 28rpx;
  256. padding-left: 12rpx;
  257. }
  258. .color157 {
  259. color: $theme-color;
  260. }
  261. .ww30 {
  262. width: 30%;
  263. }
  264. .ww20 {
  265. width: 20%;
  266. }
  267. .ww15 {
  268. width: 15%;
  269. }
  270. .ww25 {
  271. width: 25%;
  272. }
  273. .ww50 {
  274. width: 50%;
  275. }
  276. .ww10 {
  277. width: 10%;
  278. }
  279. }
  280. .head {
  281. height: 64rpx;
  282. background: #F7F9FA;
  283. border-top: 2rpx solid #E3E5E5;
  284. border-left: 2rpx solid #E3E5E5;
  285. .item {
  286. height: 64rpx;
  287. line-height: 64rpx;
  288. border-right: 2rpx solid #E3E5E5;
  289. box-sizing: border-box;
  290. font-size: 22rpx;
  291. }
  292. }
  293. .tr {
  294. border-top: 2rpx solid #E3E5E5;
  295. border-left: 2rpx solid #E3E5E5;
  296. .item {
  297. font-size: 24rpx;
  298. min-height: 74rpx;
  299. display: flex;
  300. align-items: center;
  301. border-right: 2rpx solid #E3E5E5;
  302. box-sizing: border-box;
  303. white-space: normal;
  304. word-break: break-all;
  305. }
  306. &:last-child {
  307. border-bottom: 2rpx solid #E3E5E5;
  308. }
  309. .numerate {
  310. font-size: 22rpx;
  311. color: $theme-color;
  312. }
  313. }
  314. }
  315. .content_num {
  316. display: flex;
  317. align-items: center;
  318. padding: 0 4rpx;
  319. /deep/ .uni-input-input {
  320. border: 2rpx solid #F0F8F2;
  321. background: #F0F8F2;
  322. color: $theme-color;
  323. }
  324. }
  325. .round {
  326. width: 32rpx;
  327. height: 32rpx;
  328. line-height: 32rpx;
  329. text-align: center;
  330. border-radius: 50%;
  331. background: $theme-color;
  332. font-size: 24rpx;
  333. font-style: normal;
  334. font-weight: 400;
  335. color: #fff;
  336. margin-right: 18rpx;
  337. }
  338. .popup_box {
  339. width: 94vw;
  340. padding: 16rpx 12rpx;
  341. box-sizing: border-box;
  342. }
  343. .operate_box {
  344. margin-top: 32rpx;
  345. padding: 10rpx 100rpx;
  346. /deep/ .u-button {
  347. width: 160rpx;
  348. }
  349. }
  350. .formula_box {
  351. font-size: 24rpx;
  352. font-style: normal;
  353. font-weight: 400;
  354. margin-top: 12rpx;
  355. }
  356. .reportWeight {
  357. font-size: 24rpx;
  358. font-style: normal;
  359. font-weight: 400;
  360. margin-top: 30rpx;
  361. text {
  362. color: $theme-color;
  363. }
  364. }
  365. </style>