packingTgBom.vue 7.6 KB

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