packingTgBom.vue 8.7 KB

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