packingTgBom.vue 9.0 KB

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