packingTgBom.vue 8.6 KB

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