packingQtBom.vue 9.1 KB

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