packingTgBom.vue 7.6 KB

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