packingTgBom.vue 7.7 KB

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